@hotelinking/ui 1.30.2 → 1.30.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/style.css +1 -1
- package/dist/ui.cjs.js +1 -1
- package/dist/ui.es.js +30 -28
- package/package.json +2 -2
package/dist/style.css
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
@import url("https://rsms.me/inter/inter.css");
|
|
2
2
|
|
|
3
|
-
/*! tailwindcss v3.3.3 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;font-feature-settings:"cv11","ss01";font-family:Inter var,sans-serif;font-variation-settings:"opsz" 32;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}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;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}[multiple],[type=date],[type=datetime-local],[type=email],[type=month],[type=number],[type=password],[type=search],[type=tel],[type=text],[type=time],[type=url],[type=week],input:where(:not([type])),select,textarea{--tw-shadow:0 0 #0000;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-radius:0;border-width:1px;font-size:1rem;line-height:1.5rem;padding:.5rem .75rem}[multiple]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=email]:focus,[type=month]:focus,[type=number]:focus,[type=password]:focus,[type=search]:focus,[type=tel]:focus,[type=text]:focus,[type=time]:focus,[type=url]:focus,[type=week]:focus,input:where(:not([type])):focus,select:focus,textarea:focus{--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);border-color:#2563eb;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}input::-moz-placeholder,textarea::-moz-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em}::-webkit-datetime-edit,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-meridiem-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-year-field{padding-bottom:0;padding-top:0}select{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple],[size]:where(select:not([size="1"])){background-image:none;background-position:0 0;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{--tw-shadow:0 0 #0000;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;background-origin:border-box;border-color:#6b7280;border-width:1px;color:#2563eb;display:inline-block;flex-shrink:0;height:1rem;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle;width:1rem}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:2px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}[type=checkbox]:checked,[type=radio]:checked{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}[type=checkbox]:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 16 16'%3E%3Cpath d='M12.207 4.793a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L6.5 9.086l4.293-4.293a1 1 0 0 1 1.414 0z'/%3E%3C/svg%3E")}[type=radio]:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='3'/%3E%3C/svg%3E")}[type=checkbox]:checked:focus,[type=checkbox]:checked:hover,[type=radio]:checked:focus,[type=radio]:checked:hover{background-color:currentColor;border-color:transparent}[type=checkbox]:indeterminate{background-color:currentColor;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3E%3C/svg%3E");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}[type=checkbox]:indeterminate:focus,[type=checkbox]:indeterminate:hover{background-color:currentColor;border-color:transparent}[type=file]{background:unset;border-color:inherit;border-radius:0;border-width:0;font-size:unset;line-height:inherit;padding:0}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.sr-only{clip:rect(0,0,0,0);border-width:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.inset-x-0{left:0;right:0}.inset-y-0{bottom:0;top:0}.-left-1{left:-.25rem}.-top-0{top:0}.bottom-0{bottom:0}.bottom-0\.5{bottom:.125rem}.left-0{left:0}.left-12{left:3rem}.left-4{left:1rem}.right-0{right:0}.top-0{top:0}.top-1\/2{top:50%}.top-4{top:1rem}.z-0{z-index:0}.z-10{z-index:10}.z-50{z-index:50}.-mx-2{margin-left:-.5rem;margin-right:-.5rem}.-my-1{margin-bottom:-.25rem;margin-top:-.25rem}.-my-1\.5{margin-bottom:-.375rem;margin-top:-.375rem}.-my-2{margin-bottom:-.5rem;margin-top:-.5rem}.mx-0{margin-left:0;margin-right:0}.mx-0\.5{margin-left:.125rem;margin-right:.125rem}.mx-4{margin-left:1rem;margin-right:1rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-bottom:.25rem;margin-top:.25rem}.-mb-8{margin-bottom:-2rem}.-mb-px{margin-bottom:-1px}.-ml-0{margin-left:0}.-ml-0\.5{margin-left:-.125rem}.-ml-2{margin-left:-.5rem}.-ml-3{margin-left:-.75rem}.-ml-px{margin-left:-1px}.-mr-1{margin-right:-.25rem}.-mt-2{margin-top:-.5rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.ml-16{margin-left:4rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-3{margin-right:.75rem}.mr-4{margin-right:1rem}.mt-0{margin-top:0}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-8{margin-top:2rem}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.flow-root{display:flow-root}.hidden{display:none}.h-10{height:2.5rem}.h-12{height:3rem}.h-16{height:4rem}.h-20{height:5rem}.h-3{height:.75rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-80{height:20rem}.h-full{height:100%}.max-h-60{max-height:15rem}.min-h-full{min-height:100%}.w-0{width:0}.w-0\.5{width:.125rem}.w-10{width:2.5rem}.w-11{width:2.75rem}.w-12{width:3rem}.w-16{width:4rem}.w-2{width:.5rem}.w-20{width:5rem}.w-3{width:.75rem}.w-4{width:1rem}.w-48{width:12rem}.w-5{width:1.25rem}.w-56{width:14rem}.w-6{width:1.5rem}.w-8{width:2rem}.w-9\/12{width:75%}.w-full{width:100%}.min-w-0{min-width:0}.min-w-full{min-width:100%}.max-w-2xl{max-width:42rem}.max-w-sm{max-width:24rem}.flex-1{flex:1 1 0%}.flex-none{flex:none}.flex-shrink-0{flex-shrink:0}.flex-grow,.grow{flex-grow:1}.table-fixed{table-layout:fixed}.origin-top-right{transform-origin:top right}.translate-x-0{--tw-translate-x:0px}.translate-x-0,.translate-x-5{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-5{--tw-translate-x:1.25rem}.translate-y-0{--tw-translate-y:0px}.translate-y-0,.translate-y-2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-2{--tw-translate-y:0.5rem}.translate-y-4{--tw-translate-y:1rem}.rotate-90,.translate-y-4{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate:90deg}.scale-100{--tw-scale-x:1;--tw-scale-y:1}.scale-100,.scale-95{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-95{--tw-scale-x:.95;--tw-scale-y:.95}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.gap-x-3{-moz-column-gap:.75rem;column-gap:.75rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.gap-x-6{-moz-column-gap:1.5rem;column-gap:1.5rem}.-space-x-px>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(-1px*(1 - var(--tw-space-x-reverse)));margin-right:calc(-1px*var(--tw-space-x-reverse))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.75rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.75rem*var(--tw-space-x-reverse))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(1rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(1rem*var(--tw-space-x-reverse))}.space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(2rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(2rem*var(--tw-space-x-reverse))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.25rem*var(--tw-space-y-reverse));margin-top:calc(.25rem*(1 - var(--tw-space-y-reverse)))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1rem*var(--tw-space-y-reverse));margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0;border-bottom-width:calc(1px*var(--tw-divide-y-reverse));border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)))}.divide-gray-100>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:rgb(243 244 246/var(--tw-divide-opacity))}.divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:rgb(229 231 235/var(--tw-divide-opacity))}.divide-gray-300>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:rgb(209 213 219/var(--tw-divide-opacity))}.self-center{align-self:center}.justify-self-end{justify-self:end}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis}.truncate,.whitespace-nowrap{white-space:nowrap}.break-normal{overflow-wrap:normal;word-break:normal}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-l-md{border-bottom-left-radius:.375rem;border-top-left-radius:.375rem}.rounded-r-md{border-bottom-right-radius:.375rem;border-top-right-radius:.375rem}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-l{border-left-width:1px}.border-l-4{border-left-width:4px}.border-r-0{border-right-width:0}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-black{--tw-border-opacity:1;border-color:rgb(0 0 0/var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.border-gray-400{--tw-border-opacity:1;border-color:rgb(156 163 175/var(--tw-border-opacity))}.border-green-200{--tw-border-opacity:1;border-color:rgb(187 247 208/var(--tw-border-opacity))}.border-green-400{--tw-border-opacity:1;border-color:rgb(74 222 128/var(--tw-border-opacity))}.border-indigo-200{--tw-border-opacity:1;border-color:rgb(199 210 254/var(--tw-border-opacity))}.border-indigo-400{--tw-border-opacity:1;border-color:rgb(129 140 248/var(--tw-border-opacity))}.border-indigo-500{--tw-border-opacity:1;border-color:rgb(99 102 241/var(--tw-border-opacity))}.border-red-200{--tw-border-opacity:1;border-color:rgb(254 202 202/var(--tw-border-opacity))}.border-red-300{--tw-border-opacity:1;border-color:rgb(252 165 165/var(--tw-border-opacity))}.border-red-400{--tw-border-opacity:1;border-color:rgb(248 113 113/var(--tw-border-opacity))}.border-transparent{border-color:transparent}.border-yellow-200{--tw-border-opacity:1;border-color:rgb(254 240 138/var(--tw-border-opacity))}.border-yellow-400{--tw-border-opacity:1;border-color:rgb(250 204 21/var(--tw-border-opacity))}.bg-\[\#0ff\]{--tw-bg-opacity:1;background-color:rgb(0 255 255/var(--tw-bg-opacity))}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.bg-cyan-300{--tw-bg-opacity:1;background-color:rgb(103 232 249/var(--tw-bg-opacity))}.bg-cyan-500{--tw-bg-opacity:1;background-color:rgb(6 182 212/var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity))}.bg-gray-300{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity:1;background-color:rgb(107 114 128/var(--tw-bg-opacity))}.bg-green-100{--tw-bg-opacity:1;background-color:rgb(220 252 231/var(--tw-bg-opacity))}.bg-green-300{--tw-bg-opacity:1;background-color:rgb(134 239 172/var(--tw-bg-opacity))}.bg-green-400{--tw-bg-opacity:1;background-color:rgb(74 222 128/var(--tw-bg-opacity))}.bg-green-50{--tw-bg-opacity:1;background-color:rgb(240 253 244/var(--tw-bg-opacity))}.bg-green-500{--tw-bg-opacity:1;background-color:rgb(34 197 94/var(--tw-bg-opacity))}.bg-green-600{--tw-bg-opacity:1;background-color:rgb(22 163 74/var(--tw-bg-opacity))}.bg-indigo-100{--tw-bg-opacity:1;background-color:rgb(224 231 255/var(--tw-bg-opacity))}.bg-indigo-200{--tw-bg-opacity:1;background-color:rgb(199 210 254/var(--tw-bg-opacity))}.bg-indigo-50{--tw-bg-opacity:1;background-color:rgb(238 242 255/var(--tw-bg-opacity))}.bg-indigo-500{--tw-bg-opacity:1;background-color:rgb(99 102 241/var(--tw-bg-opacity))}.bg-indigo-600{--tw-bg-opacity:1;background-color:rgb(79 70 229/var(--tw-bg-opacity))}.bg-indigo-800{--tw-bg-opacity:1;background-color:rgb(55 48 163/var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity))}.bg-red-400{--tw-bg-opacity:1;background-color:rgb(248 113 113/var(--tw-bg-opacity))}.bg-red-50{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity))}.bg-red-600{--tw-bg-opacity:1;background-color:rgb(220 38 38/var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-yellow-100{--tw-bg-opacity:1;background-color:rgb(254 249 195/var(--tw-bg-opacity))}.bg-yellow-300{--tw-bg-opacity:1;background-color:rgb(253 224 71/var(--tw-bg-opacity))}.bg-yellow-400{--tw-bg-opacity:1;background-color:rgb(250 204 21/var(--tw-bg-opacity))}.bg-yellow-50{--tw-bg-opacity:1;background-color:rgb(254 252 232/var(--tw-bg-opacity))}.bg-yellow-500{--tw-bg-opacity:1;background-color:rgb(234 179 8/var(--tw-bg-opacity))}.bg-yellow-600{--tw-bg-opacity:1;background-color:rgb(202 138 4/var(--tw-bg-opacity))}.bg-opacity-75{--tw-bg-opacity:0.75}.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-0{padding-bottom:0;padding-top:0}.py-0\.5{padding-bottom:.125rem;padding-top:.125rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-1\.5{padding-bottom:.375rem;padding-top:.375rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.py-3\.5{padding-bottom:.875rem;padding-top:.875rem}.py-4{padding-bottom:1rem;padding-top:1rem}.py-40{padding-bottom:10rem;padding-top:10rem}.py-5{padding-bottom:1.25rem;padding-top:1.25rem}.py-6{padding-bottom:1.5rem;padding-top:1.5rem}.pb-12{padding-bottom:3rem}.pb-3{padding-bottom:.75rem}.pb-4{padding-bottom:1rem}.pb-40{padding-bottom:10rem}.pb-5{padding-bottom:1.25rem}.pb-6{padding-bottom:1.5rem}.pb-8{padding-bottom:2rem}.pb-80{padding-bottom:20rem}.pl-1{padding-left:.25rem}.pl-11{padding-left:2.75rem}.pl-2{padding-left:.5rem}.pl-3{padding-left:.75rem}.pl-4{padding-left:1rem}.pl-6{padding-left:1.5rem}.pr-1{padding-right:.25rem}.pr-10{padding-right:2.5rem}.pr-2{padding-right:.5rem}.pr-3{padding-right:.75rem}.pr-4{padding-right:1rem}.pr-9{padding-right:2.25rem}.pt-0{padding-top:0}.pt-0\.5{padding-top:.125rem}.pt-1{padding-top:.25rem}.pt-1\.5{padding-top:.375rem}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.pt-5{padding-top:1.25rem}.pt-6{padding-top:1.5rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-middle{vertical-align:middle}.text-2xl{font-size:1.5rem;line-height:2rem}.text-\[10px\]{font-size:10px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.leading-5{line-height:1.25rem}.leading-6{line-height:1.5rem}.leading-none{line-height:1}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.text-cyan-300{--tw-text-opacity:1;color:rgb(103 232 249/var(--tw-text-opacity))}.text-gray-300{--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}.text-green-400{--tw-text-opacity:1;color:rgb(74 222 128/var(--tw-text-opacity))}.text-green-500{--tw-text-opacity:1;color:rgb(34 197 94/var(--tw-text-opacity))}.text-green-600{--tw-text-opacity:1;color:rgb(22 163 74/var(--tw-text-opacity))}.text-green-700{--tw-text-opacity:1;color:rgb(21 128 61/var(--tw-text-opacity))}.text-green-800{--tw-text-opacity:1;color:rgb(22 101 52/var(--tw-text-opacity))}.text-indigo-400{--tw-text-opacity:1;color:rgb(129 140 248/var(--tw-text-opacity))}.text-indigo-600{--tw-text-opacity:1;color:rgb(79 70 229/var(--tw-text-opacity))}.text-indigo-700{--tw-text-opacity:1;color:rgb(67 56 202/var(--tw-text-opacity))}.text-indigo-800{--tw-text-opacity:1;color:rgb(55 48 163/var(--tw-text-opacity))}.text-red-300{--tw-text-opacity:1;color:rgb(252 165 165/var(--tw-text-opacity))}.text-red-400{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity))}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.text-red-700{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity))}.text-red-800{--tw-text-opacity:1;color:rgb(153 27 27/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-yellow-400{--tw-text-opacity:1;color:rgb(250 204 21/var(--tw-text-opacity))}.text-yellow-600{--tw-text-opacity:1;color:rgb(202 138 4/var(--tw-text-opacity))}.text-yellow-700{--tw-text-opacity:1;color:rgb(161 98 7/var(--tw-text-opacity))}.text-yellow-800{--tw-text-opacity:1;color:rgb(133 77 14/var(--tw-text-opacity))}.placeholder-gray-300::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(209 213 219/var(--tw-placeholder-opacity))}.placeholder-gray-300::placeholder{--tw-placeholder-opacity:1;color:rgb(209 213 219/var(--tw-placeholder-opacity))}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-25{opacity:.25}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-lg{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.shadow-sm,.shadow-xl{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color)}.ring-0{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color)}.ring-0,.ring-1{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-1{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.ring-4{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-inset{--tw-ring-inset:inset}.ring-black{--tw-ring-opacity:1;--tw-ring-color:rgb(0 0 0/var(--tw-ring-opacity))}.ring-gray-300{--tw-ring-opacity:1;--tw-ring-color:rgb(209 213 219/var(--tw-ring-opacity))}.ring-gray-500\/10{--tw-ring-color:hsla(220,9%,46%,.1)}.ring-green-600\/20{--tw-ring-color:rgba(22,163,74,.2)}.ring-white{--tw-ring-opacity:1;--tw-ring-color:rgb(255 255 255/var(--tw-ring-opacity))}.ring-yellow-600\/20{--tw-ring-color:rgba(202,138,4,.2)}.ring-opacity-5{--tw-ring-opacity:0.05}.ring-offset-green-50{--tw-ring-offset-color:#f0fdf4}.ring-offset-indigo-50{--tw-ring-offset-color:#eef2ff}.ring-offset-red-50{--tw-ring-offset-color:#fef2f2}.ring-offset-yellow-50{--tw-ring-offset-color:#fefce8}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-100{transition-duration:.1s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-75{transition-duration:75ms}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}#storybook-root,body{font-family:Inter,sans-serif;height:100%;margin:0;padding:0!important}html{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity));height:100%}.chart{display:flex;flex-direction:column;padding:1rem;position:relative}.chart-content{display:flex;flex:1;flex-direction:column;height:100%;width:100%}.chart-content .title{color:#6c5ef6}.chart-selector li{color:#6c5ef6;cursor:pointer;font-size:.8rem;margin:0 1rem}.chart-selector .selected{background-color:#6c5ef6;border-radius:3px;color:#fff;padding:.2rem}.svg-funnel-js{display:inline-block;position:relative}.svg-funnel-js svg{display:block}.svg-funnel-js .svg-funnel-js__labels{display:flex;height:100%;left:0;position:absolute;top:0}.svg-funnel-js.svg-funnel-js--vertical .svg-funnel-js__labels{flex-direction:column}.svg-funnel-js .svg-funnel-js__container{height:100%;width:100%}.svg-funnel-js .svg-funnel-js__labels{box-sizing:border-box;width:100%}.svg-funnel-js .svg-funnel-js__labels .svg-funnel-js__label{flex:1 1 0;position:relative}.svg-funnel-js .svg-funnel-js__labels .svg-funnel-js__label .label__value{color:#4f46e5;font-family:Inter,sans-serif;font-size:24px;line-height:18px;margin-bottom:6px}.svg-funnel-js .svg-funnel-js__labels .svg-funnel-js__label .label__title{color:#4f46e5;font-size:12px;font-weight:700}.svg-funnel-js .svg-funnel-js__labels .svg-funnel-js__label .label__percentage{color:#9896dc;font-size:16px;font-weight:700}.svg-funnel-js .svg-funnel-js__labels .svg-funnel-js__label .label__segment-percentages{background-color:#715aff;box-sizing:border-box;cursor:default;left:0;margin-top:24px;opacity:0;padding:8px 24px;position:absolute;top:50%;transform:translateY(-50%);transition:opacity .1s ease;width:100%}.svg-funnel-js .svg-funnel-js__labels .svg-funnel-js__label .label__segment-percentages ul{list-style-type:none;margin:0;padding:0}.svg-funnel-js .svg-funnel-js__labels .svg-funnel-js__label .label__segment-percentages ul li{color:#fff;font-size:13px;line-height:16px}.svg-funnel-js .svg-funnel-js__labels .svg-funnel-js__label .label__segment-percentages ul li .percentage__list-label{color:#fff;font-weight:700}.svg-funnel-js .svg-funnel-js__labels .svg-funnel-js__label:hover .label__segment-percentages{opacity:1}.svg-funnel-js:not(.svg-funnel-js--vertical){padding-bottom:16px;padding-top:64px}.svg-funnel-js:not(.svg-funnel-js--vertical) .svg-funnel-js__label{padding-left:24px}.svg-funnel-js:not(.svg-funnel-js--vertical) .svg-funnel-js__label:not(:first-child){border-left:1px solid #9896dc}.svg-funnel-js.svg-funnel-js--vertical{padding-left:120px;padding-right:16px}.svg-funnel-js.svg-funnel-js--vertical .svg-funnel-js__label{padding-top:24px}.svg-funnel-js.svg-funnel-js--vertical .svg-funnel-js__label:not(:first-child){border-top:1px solid #e3e3e3}.svg-funnel-js.svg-funnel-js--vertical .svg-funnel-js__label .label__segment-percentages .segment-percentage__list{display:flex;justify-content:space-around}.svg-funnel-js .svg-funnel-js__subLabels{display:flex;justify-content:center;left:0;margin-top:24px;width:100%}.svg-funnel-js .svg-funnel-js__subLabels .svg-funnel-js__subLabel{display:flex;font-size:12px;line-height:16px}.svg-funnel-js .svg-funnel-js__subLabels .svg-funnel-js__subLabel:not(:first-child){margin-left:16px}.svg-funnel-js .svg-funnel-js__subLabels .svg-funnel-js__subLabel .svg-funnel-js__subLabel--color{border-radius:50%;height:12px;margin:2px 8px 2px 0;width:12px}.even\:bg-gray-100:nth-child(2n){--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.focus-within\:outline-none:focus-within{outline:2px solid transparent;outline-offset:2px}.focus-within\:ring-2:focus-within{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-within\:ring-indigo-500:focus-within{--tw-ring-opacity:1;--tw-ring-color:rgb(99 102 241/var(--tw-ring-opacity))}.focus-within\:ring-offset-2:focus-within{--tw-ring-offset-width:2px}.hover\:border-gray-200:hover{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.hover\:border-gray-300:hover{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.hover\:border-gray-400:hover{--tw-border-opacity:1;border-color:rgb(156 163 175/var(--tw-border-opacity))}.hover\:border-red-400:hover{--tw-border-opacity:1;border-color:rgb(248 113 113/var(--tw-border-opacity))}.hover\:bg-cyan-500:hover{--tw-bg-opacity:1;background-color:rgb(6 182 212/var(--tw-bg-opacity))}.hover\:bg-gray-100:hover{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.hover\:bg-gray-50:hover{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}.hover\:bg-green-100:hover{--tw-bg-opacity:1;background-color:rgb(220 252 231/var(--tw-bg-opacity))}.hover\:bg-green-600:hover{--tw-bg-opacity:1;background-color:rgb(22 163 74/var(--tw-bg-opacity))}.hover\:bg-indigo-100:hover{--tw-bg-opacity:1;background-color:rgb(224 231 255/var(--tw-bg-opacity))}.hover\:bg-indigo-700:hover{--tw-bg-opacity:1;background-color:rgb(67 56 202/var(--tw-bg-opacity))}.hover\:bg-indigo-800:hover{--tw-bg-opacity:1;background-color:rgb(55 48 163/var(--tw-bg-opacity))}.hover\:bg-red-100:hover{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity))}.hover\:bg-red-600:hover{--tw-bg-opacity:1;background-color:rgb(220 38 38/var(--tw-bg-opacity))}.hover\:bg-yellow-100:hover{--tw-bg-opacity:1;background-color:rgb(254 249 195/var(--tw-bg-opacity))}.hover\:bg-yellow-600:hover{--tw-bg-opacity:1;background-color:rgb(202 138 4/var(--tw-bg-opacity))}.hover\:text-gray-500:hover{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.hover\:text-gray-700:hover{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}.hover\:text-gray-800:hover{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity))}.hover\:text-gray-900:hover{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}.hover\:text-indigo-400:hover{--tw-text-opacity:1;color:rgb(129 140 248/var(--tw-text-opacity))}.hover\:text-indigo-500:hover{--tw-text-opacity:1;color:rgb(99 102 241/var(--tw-text-opacity))}.hover\:text-indigo-800:hover{--tw-text-opacity:1;color:rgb(55 48 163/var(--tw-text-opacity))}.focus\:border-indigo-500:focus{--tw-border-opacity:1;border-color:rgb(99 102 241/var(--tw-border-opacity))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-1:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\:ring-1:focus,.focus\:ring-2:focus{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\:ring-inset:focus{--tw-ring-inset:inset}.focus\:ring-green-600:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(22 163 74/var(--tw-ring-opacity))}.focus\:ring-indigo-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(99 102 241/var(--tw-ring-opacity))}.focus\:ring-indigo-600:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(79 70 229/var(--tw-ring-opacity))}.focus\:ring-red-600:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(220 38 38/var(--tw-ring-opacity))}.focus\:ring-yellow-600:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(202 138 4/var(--tw-ring-opacity))}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px}.focus\:ring-offset-gray-100:focus{--tw-ring-offset-color:#f3f4f6}.focus\:ring-offset-green-50:focus{--tw-ring-offset-color:#f0fdf4}.focus\:ring-offset-indigo-50:focus{--tw-ring-offset-color:#eef2ff}.focus\:ring-offset-red-50:focus{--tw-ring-offset-color:#fef2f2}.focus\:ring-offset-yellow-50:focus{--tw-ring-offset-color:#fefce8}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-25:disabled{opacity:.25}.disabled\:opacity-30:disabled{opacity:.3}.group:hover .group-hover\:visible{visibility:visible}.group:hover .group-hover\:bg-gray-300{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity))}.group:hover .group-hover\:bg-indigo-200{--tw-bg-opacity:1;background-color:rgb(199 210 254/var(--tw-bg-opacity))}.group:hover .group-hover\:text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.group:hover .group-hover\:text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.group:hover .group-hover\:text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.group:focus .group-focus\:visible{visibility:visible}@media (min-width:640px){.sm\:left-16{left:4rem}.sm\:left-48{left:12rem}.sm\:col-span-2{grid-column:span 2/span 2}.sm\:-mx-6{margin-left:-1.5rem;margin-right:-1.5rem}.sm\:mx-0{margin-left:0;margin-right:0}.sm\:my-0{margin-bottom:0;margin-top:0}.sm\:my-8{margin-bottom:2rem;margin-top:2rem}.sm\:mb-0{margin-bottom:0}.sm\:ml-4{margin-left:1rem}.sm\:mr-4{margin-right:1rem}.sm\:mt-0{margin-top:0}.sm\:block{display:block}.sm\:flex{display:flex}.sm\:grid{display:grid}.sm\:hidden{display:none}.sm\:h-10{height:2.5rem}.sm\:w-10{width:2.5rem}.sm\:w-auto{width:auto}.sm\:w-full{width:100%}.sm\:max-w-lg{max-width:32rem}.sm\:flex-1{flex:1 1 0%}.sm\:translate-x-0{--tw-translate-x:0px}.sm\:translate-x-0,.sm\:translate-x-2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\:translate-x-2{--tw-translate-x:0.5rem}.sm\:translate-y-0{--tw-translate-y:0px}.sm\:scale-100,.sm\:translate-y-0{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\:scale-100{--tw-scale-x:1;--tw-scale-y:1}.sm\:scale-95{--tw-scale-x:.95;--tw-scale-y:.95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:items-start{align-items:flex-start}.sm\:items-end{align-items:flex-end}.sm\:items-center{align-items:center}.sm\:justify-start{justify-content:flex-start}.sm\:justify-between{justify-content:space-between}.sm\:gap-4{gap:1rem}.sm\:rounded-lg{border-radius:.5rem}.sm\:p-0{padding:0}.sm\:p-6{padding:1.5rem}.sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\:px-8{padding-left:2rem;padding-right:2rem}.sm\:pl-3{padding-left:.75rem}.sm\:pl-5{padding-left:1.25rem}.sm\:pl-6{padding-left:1.5rem}.sm\:pr-6{padding-right:1.5rem}.sm\:pt-6{padding-top:1.5rem}.sm\:text-left{text-align:left}.sm\:text-sm{font-size:.875rem;line-height:1.25rem}}@media (min-width:768px){.md\:inset-y-0{bottom:0;top:0}.md\:order-1{order:1}.md\:my-0{margin-bottom:0;margin-top:0}.md\:ml-4{margin-left:1rem}.md\:mt-0{margin-top:0}.md\:inline-block{display:inline-block}.md\:flex{display:flex}.md\:w-1\/4{width:25%}.md\:flex-shrink-0{flex-shrink:0}.md\:flex-col{flex-direction:column}.md\:items-center{align-items:center}.md\:justify-between{justify-content:space-between}.md\:rounded-lg{border-radius:.5rem}}@media (min-width:1024px){.lg\:-mx-8{margin-left:-2rem;margin-right:-2rem}.lg\:block{display:block}.lg\:hidden{display:none}.lg\:px-8{padding-left:2rem;padding-right:2rem}}
|
|
3
|
+
/*! tailwindcss v3.3.3 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;font-feature-settings:"cv11","ss01";font-family:Inter var,sans-serif;font-variation-settings:"opsz" 32;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}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;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}[multiple],[type=date],[type=datetime-local],[type=email],[type=month],[type=number],[type=password],[type=search],[type=tel],[type=text],[type=time],[type=url],[type=week],input:where(:not([type])),select,textarea{--tw-shadow:0 0 #0000;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-radius:0;border-width:1px;font-size:1rem;line-height:1.5rem;padding:.5rem .75rem}[multiple]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=email]:focus,[type=month]:focus,[type=number]:focus,[type=password]:focus,[type=search]:focus,[type=tel]:focus,[type=text]:focus,[type=time]:focus,[type=url]:focus,[type=week]:focus,input:where(:not([type])):focus,select:focus,textarea:focus{--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);border-color:#2563eb;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}input::-moz-placeholder,textarea::-moz-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em}::-webkit-datetime-edit,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-meridiem-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-year-field{padding-bottom:0;padding-top:0}select{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple],[size]:where(select:not([size="1"])){background-image:none;background-position:0 0;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{--tw-shadow:0 0 #0000;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;background-origin:border-box;border-color:#6b7280;border-width:1px;color:#2563eb;display:inline-block;flex-shrink:0;height:1rem;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle;width:1rem}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:2px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}[type=checkbox]:checked,[type=radio]:checked{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}[type=checkbox]:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 16 16'%3E%3Cpath d='M12.207 4.793a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L6.5 9.086l4.293-4.293a1 1 0 0 1 1.414 0z'/%3E%3C/svg%3E")}[type=radio]:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='3'/%3E%3C/svg%3E")}[type=checkbox]:checked:focus,[type=checkbox]:checked:hover,[type=radio]:checked:focus,[type=radio]:checked:hover{background-color:currentColor;border-color:transparent}[type=checkbox]:indeterminate{background-color:currentColor;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3E%3C/svg%3E");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}[type=checkbox]:indeterminate:focus,[type=checkbox]:indeterminate:hover{background-color:currentColor;border-color:transparent}[type=file]{background:unset;border-color:inherit;border-radius:0;border-width:0;font-size:unset;line-height:inherit;padding:0}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.sr-only{clip:rect(0,0,0,0);border-width:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.inset-x-0{left:0;right:0}.inset-y-0{bottom:0;top:0}.-left-1{left:-.25rem}.-top-0{top:0}.bottom-0{bottom:0}.bottom-0\.5{bottom:.125rem}.left-0{left:0}.left-12{left:3rem}.left-4{left:1rem}.right-0{right:0}.top-0{top:0}.top-1\/2{top:50%}.top-4{top:1rem}.z-0{z-index:0}.z-10{z-index:10}.z-50{z-index:50}.-mx-2{margin-left:-.5rem;margin-right:-.5rem}.-my-1{margin-bottom:-.25rem;margin-top:-.25rem}.-my-1\.5{margin-bottom:-.375rem;margin-top:-.375rem}.-my-2{margin-bottom:-.5rem;margin-top:-.5rem}.mx-0{margin-left:0;margin-right:0}.mx-0\.5{margin-left:.125rem;margin-right:.125rem}.mx-4{margin-left:1rem;margin-right:1rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-bottom:.25rem;margin-top:.25rem}.-mb-8{margin-bottom:-2rem}.-mb-px{margin-bottom:-1px}.-ml-0{margin-left:0}.-ml-0\.5{margin-left:-.125rem}.-ml-2{margin-left:-.5rem}.-ml-3{margin-left:-.75rem}.-ml-px{margin-left:-1px}.-mr-1{margin-right:-.25rem}.-mt-2{margin-top:-.5rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.ml-16{margin-left:4rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-3{margin-right:.75rem}.mr-4{margin-right:1rem}.mt-0{margin-top:0}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-8{margin-top:2rem}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.flow-root{display:flow-root}.hidden{display:none}.h-10{height:2.5rem}.h-12{height:3rem}.h-16{height:4rem}.h-20{height:5rem}.h-3{height:.75rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-80{height:20rem}.h-full{height:100%}.max-h-60{max-height:15rem}.min-h-full{min-height:100%}.w-0{width:0}.w-0\.5{width:.125rem}.w-10{width:2.5rem}.w-11{width:2.75rem}.w-12{width:3rem}.w-16{width:4rem}.w-2{width:.5rem}.w-20{width:5rem}.w-3{width:.75rem}.w-4{width:1rem}.w-48{width:12rem}.w-5{width:1.25rem}.w-56{width:14rem}.w-6{width:1.5rem}.w-8{width:2rem}.w-9\/12{width:75%}.w-full{width:100%}.min-w-0{min-width:0}.min-w-full{min-width:100%}.max-w-2xl{max-width:42rem}.max-w-sm{max-width:24rem}.flex-1{flex:1 1 0%}.flex-none{flex:none}.flex-shrink-0{flex-shrink:0}.flex-grow,.grow{flex-grow:1}.table-fixed{table-layout:fixed}.origin-top-right{transform-origin:top right}.translate-x-0{--tw-translate-x:0px}.translate-x-0,.translate-x-5{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-5{--tw-translate-x:1.25rem}.translate-y-0{--tw-translate-y:0px}.translate-y-0,.translate-y-2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-2{--tw-translate-y:0.5rem}.translate-y-4{--tw-translate-y:1rem}.rotate-90,.translate-y-4{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate:90deg}.scale-100{--tw-scale-x:1;--tw-scale-y:1}.scale-100,.scale-95{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-95{--tw-scale-x:.95;--tw-scale-y:.95}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes ping{75%,to{opacity:0;transform:scale(2)}}.animate-ping{animation:ping 1s cubic-bezier(0,0,.2,1) infinite}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.gap-x-3{-moz-column-gap:.75rem;column-gap:.75rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.gap-x-6{-moz-column-gap:1.5rem;column-gap:1.5rem}.-space-x-px>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(-1px*(1 - var(--tw-space-x-reverse)));margin-right:calc(-1px*var(--tw-space-x-reverse))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.75rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.75rem*var(--tw-space-x-reverse))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(1rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(1rem*var(--tw-space-x-reverse))}.space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(2rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(2rem*var(--tw-space-x-reverse))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.25rem*var(--tw-space-y-reverse));margin-top:calc(.25rem*(1 - var(--tw-space-y-reverse)))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1rem*var(--tw-space-y-reverse));margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0;border-bottom-width:calc(1px*var(--tw-divide-y-reverse));border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)))}.divide-gray-100>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:rgb(243 244 246/var(--tw-divide-opacity))}.divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:rgb(229 231 235/var(--tw-divide-opacity))}.divide-gray-300>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:rgb(209 213 219/var(--tw-divide-opacity))}.self-center{align-self:center}.justify-self-end{justify-self:end}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis}.truncate,.whitespace-nowrap{white-space:nowrap}.break-normal{overflow-wrap:normal;word-break:normal}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-l-md{border-bottom-left-radius:.375rem;border-top-left-radius:.375rem}.rounded-r-md{border-bottom-right-radius:.375rem;border-top-right-radius:.375rem}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-l{border-left-width:1px}.border-l-4{border-left-width:4px}.border-r-0{border-right-width:0}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-black{--tw-border-opacity:1;border-color:rgb(0 0 0/var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.border-gray-400{--tw-border-opacity:1;border-color:rgb(156 163 175/var(--tw-border-opacity))}.border-green-200{--tw-border-opacity:1;border-color:rgb(187 247 208/var(--tw-border-opacity))}.border-green-400{--tw-border-opacity:1;border-color:rgb(74 222 128/var(--tw-border-opacity))}.border-indigo-200{--tw-border-opacity:1;border-color:rgb(199 210 254/var(--tw-border-opacity))}.border-indigo-400{--tw-border-opacity:1;border-color:rgb(129 140 248/var(--tw-border-opacity))}.border-indigo-500{--tw-border-opacity:1;border-color:rgb(99 102 241/var(--tw-border-opacity))}.border-red-200{--tw-border-opacity:1;border-color:rgb(254 202 202/var(--tw-border-opacity))}.border-red-300{--tw-border-opacity:1;border-color:rgb(252 165 165/var(--tw-border-opacity))}.border-red-400{--tw-border-opacity:1;border-color:rgb(248 113 113/var(--tw-border-opacity))}.border-transparent{border-color:transparent}.border-yellow-200{--tw-border-opacity:1;border-color:rgb(254 240 138/var(--tw-border-opacity))}.border-yellow-400{--tw-border-opacity:1;border-color:rgb(250 204 21/var(--tw-border-opacity))}.bg-\[\#0ff\]{--tw-bg-opacity:1;background-color:rgb(0 255 255/var(--tw-bg-opacity))}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.bg-cyan-300{--tw-bg-opacity:1;background-color:rgb(103 232 249/var(--tw-bg-opacity))}.bg-cyan-500{--tw-bg-opacity:1;background-color:rgb(6 182 212/var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity))}.bg-gray-300{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity:1;background-color:rgb(107 114 128/var(--tw-bg-opacity))}.bg-green-100{--tw-bg-opacity:1;background-color:rgb(220 252 231/var(--tw-bg-opacity))}.bg-green-300{--tw-bg-opacity:1;background-color:rgb(134 239 172/var(--tw-bg-opacity))}.bg-green-400{--tw-bg-opacity:1;background-color:rgb(74 222 128/var(--tw-bg-opacity))}.bg-green-50{--tw-bg-opacity:1;background-color:rgb(240 253 244/var(--tw-bg-opacity))}.bg-green-500{--tw-bg-opacity:1;background-color:rgb(34 197 94/var(--tw-bg-opacity))}.bg-green-600{--tw-bg-opacity:1;background-color:rgb(22 163 74/var(--tw-bg-opacity))}.bg-indigo-100{--tw-bg-opacity:1;background-color:rgb(224 231 255/var(--tw-bg-opacity))}.bg-indigo-200{--tw-bg-opacity:1;background-color:rgb(199 210 254/var(--tw-bg-opacity))}.bg-indigo-50{--tw-bg-opacity:1;background-color:rgb(238 242 255/var(--tw-bg-opacity))}.bg-indigo-500{--tw-bg-opacity:1;background-color:rgb(99 102 241/var(--tw-bg-opacity))}.bg-indigo-600{--tw-bg-opacity:1;background-color:rgb(79 70 229/var(--tw-bg-opacity))}.bg-indigo-800{--tw-bg-opacity:1;background-color:rgb(55 48 163/var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity))}.bg-red-400{--tw-bg-opacity:1;background-color:rgb(248 113 113/var(--tw-bg-opacity))}.bg-red-50{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity))}.bg-red-600{--tw-bg-opacity:1;background-color:rgb(220 38 38/var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-yellow-100{--tw-bg-opacity:1;background-color:rgb(254 249 195/var(--tw-bg-opacity))}.bg-yellow-300{--tw-bg-opacity:1;background-color:rgb(253 224 71/var(--tw-bg-opacity))}.bg-yellow-400{--tw-bg-opacity:1;background-color:rgb(250 204 21/var(--tw-bg-opacity))}.bg-yellow-50{--tw-bg-opacity:1;background-color:rgb(254 252 232/var(--tw-bg-opacity))}.bg-yellow-500{--tw-bg-opacity:1;background-color:rgb(234 179 8/var(--tw-bg-opacity))}.bg-yellow-600{--tw-bg-opacity:1;background-color:rgb(202 138 4/var(--tw-bg-opacity))}.bg-opacity-75{--tw-bg-opacity:0.75}.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-0{padding-bottom:0;padding-top:0}.py-0\.5{padding-bottom:.125rem;padding-top:.125rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-1\.5{padding-bottom:.375rem;padding-top:.375rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.py-3\.5{padding-bottom:.875rem;padding-top:.875rem}.py-4{padding-bottom:1rem;padding-top:1rem}.py-40{padding-bottom:10rem;padding-top:10rem}.py-5{padding-bottom:1.25rem;padding-top:1.25rem}.py-6{padding-bottom:1.5rem;padding-top:1.5rem}.pb-12{padding-bottom:3rem}.pb-3{padding-bottom:.75rem}.pb-4{padding-bottom:1rem}.pb-40{padding-bottom:10rem}.pb-5{padding-bottom:1.25rem}.pb-6{padding-bottom:1.5rem}.pb-8{padding-bottom:2rem}.pb-80{padding-bottom:20rem}.pl-1{padding-left:.25rem}.pl-11{padding-left:2.75rem}.pl-2{padding-left:.5rem}.pl-3{padding-left:.75rem}.pl-4{padding-left:1rem}.pl-6{padding-left:1.5rem}.pr-1{padding-right:.25rem}.pr-10{padding-right:2.5rem}.pr-2{padding-right:.5rem}.pr-3{padding-right:.75rem}.pr-4{padding-right:1rem}.pr-9{padding-right:2.25rem}.pt-0{padding-top:0}.pt-0\.5{padding-top:.125rem}.pt-1{padding-top:.25rem}.pt-1\.5{padding-top:.375rem}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.pt-5{padding-top:1.25rem}.pt-6{padding-top:1.5rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-middle{vertical-align:middle}.text-2xl{font-size:1.5rem;line-height:2rem}.text-\[10px\]{font-size:10px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.leading-5{line-height:1.25rem}.leading-6{line-height:1.5rem}.leading-none{line-height:1}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.text-cyan-300{--tw-text-opacity:1;color:rgb(103 232 249/var(--tw-text-opacity))}.text-gray-300{--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}.text-green-400{--tw-text-opacity:1;color:rgb(74 222 128/var(--tw-text-opacity))}.text-green-500{--tw-text-opacity:1;color:rgb(34 197 94/var(--tw-text-opacity))}.text-green-600{--tw-text-opacity:1;color:rgb(22 163 74/var(--tw-text-opacity))}.text-green-700{--tw-text-opacity:1;color:rgb(21 128 61/var(--tw-text-opacity))}.text-green-800{--tw-text-opacity:1;color:rgb(22 101 52/var(--tw-text-opacity))}.text-indigo-400{--tw-text-opacity:1;color:rgb(129 140 248/var(--tw-text-opacity))}.text-indigo-600{--tw-text-opacity:1;color:rgb(79 70 229/var(--tw-text-opacity))}.text-indigo-700{--tw-text-opacity:1;color:rgb(67 56 202/var(--tw-text-opacity))}.text-indigo-800{--tw-text-opacity:1;color:rgb(55 48 163/var(--tw-text-opacity))}.text-red-300{--tw-text-opacity:1;color:rgb(252 165 165/var(--tw-text-opacity))}.text-red-400{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity))}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.text-red-700{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity))}.text-red-800{--tw-text-opacity:1;color:rgb(153 27 27/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-yellow-400{--tw-text-opacity:1;color:rgb(250 204 21/var(--tw-text-opacity))}.text-yellow-600{--tw-text-opacity:1;color:rgb(202 138 4/var(--tw-text-opacity))}.text-yellow-700{--tw-text-opacity:1;color:rgb(161 98 7/var(--tw-text-opacity))}.text-yellow-800{--tw-text-opacity:1;color:rgb(133 77 14/var(--tw-text-opacity))}.placeholder-gray-300::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(209 213 219/var(--tw-placeholder-opacity))}.placeholder-gray-300::placeholder{--tw-placeholder-opacity:1;color:rgb(209 213 219/var(--tw-placeholder-opacity))}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-25{opacity:.25}.opacity-75{opacity:.75}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-lg{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.shadow-sm,.shadow-xl{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color)}.ring-0{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color)}.ring-0,.ring-1{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-1{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.ring-4{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-inset{--tw-ring-inset:inset}.ring-black{--tw-ring-opacity:1;--tw-ring-color:rgb(0 0 0/var(--tw-ring-opacity))}.ring-gray-300{--tw-ring-opacity:1;--tw-ring-color:rgb(209 213 219/var(--tw-ring-opacity))}.ring-gray-500\/10{--tw-ring-color:hsla(220,9%,46%,.1)}.ring-green-600\/20{--tw-ring-color:rgba(22,163,74,.2)}.ring-white{--tw-ring-opacity:1;--tw-ring-color:rgb(255 255 255/var(--tw-ring-opacity))}.ring-yellow-600\/20{--tw-ring-color:rgba(202,138,4,.2)}.ring-opacity-5{--tw-ring-opacity:0.05}.ring-offset-green-50{--tw-ring-offset-color:#f0fdf4}.ring-offset-indigo-50{--tw-ring-offset-color:#eef2ff}.ring-offset-red-50{--tw-ring-offset-color:#fef2f2}.ring-offset-yellow-50{--tw-ring-offset-color:#fefce8}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-100{transition-duration:.1s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-75{transition-duration:75ms}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}#storybook-root,body{font-family:Inter,sans-serif;height:100%;margin:0;padding:0!important}html{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity));height:100%}.chart{display:flex;flex-direction:column;padding:1rem;position:relative}.chart-content{display:flex;flex:1;flex-direction:column;height:100%;width:100%}.chart-content .title{color:#6c5ef6}.chart-selector li{color:#6c5ef6;cursor:pointer;font-size:.8rem;margin:0 1rem}.chart-selector .selected{background-color:#6c5ef6;border-radius:3px;color:#fff;padding:.2rem}.svg-funnel-js{display:inline-block;position:relative}.svg-funnel-js svg{display:block}.svg-funnel-js .svg-funnel-js__labels{display:flex;height:100%;left:0;position:absolute;top:0}.svg-funnel-js.svg-funnel-js--vertical .svg-funnel-js__labels{flex-direction:column}.svg-funnel-js .svg-funnel-js__container{height:100%;width:100%}.svg-funnel-js .svg-funnel-js__labels{box-sizing:border-box;width:100%}.svg-funnel-js .svg-funnel-js__labels .svg-funnel-js__label{flex:1 1 0;position:relative}.svg-funnel-js .svg-funnel-js__labels .svg-funnel-js__label .label__value{color:#4f46e5;font-family:Inter,sans-serif;font-size:24px;line-height:18px;margin-bottom:6px}.svg-funnel-js .svg-funnel-js__labels .svg-funnel-js__label .label__title{color:#4f46e5;font-size:12px;font-weight:700}.svg-funnel-js .svg-funnel-js__labels .svg-funnel-js__label .label__percentage{color:#9896dc;font-size:16px;font-weight:700}.svg-funnel-js .svg-funnel-js__labels .svg-funnel-js__label .label__segment-percentages{background-color:#715aff;box-sizing:border-box;cursor:default;left:0;margin-top:24px;opacity:0;padding:8px 24px;position:absolute;top:50%;transform:translateY(-50%);transition:opacity .1s ease;width:100%}.svg-funnel-js .svg-funnel-js__labels .svg-funnel-js__label .label__segment-percentages ul{list-style-type:none;margin:0;padding:0}.svg-funnel-js .svg-funnel-js__labels .svg-funnel-js__label .label__segment-percentages ul li{color:#fff;font-size:13px;line-height:16px}.svg-funnel-js .svg-funnel-js__labels .svg-funnel-js__label .label__segment-percentages ul li .percentage__list-label{color:#fff;font-weight:700}.svg-funnel-js .svg-funnel-js__labels .svg-funnel-js__label:hover .label__segment-percentages{opacity:1}.svg-funnel-js:not(.svg-funnel-js--vertical){padding-bottom:16px;padding-top:64px}.svg-funnel-js:not(.svg-funnel-js--vertical) .svg-funnel-js__label{padding-left:24px}.svg-funnel-js:not(.svg-funnel-js--vertical) .svg-funnel-js__label:not(:first-child){border-left:1px solid #9896dc}.svg-funnel-js.svg-funnel-js--vertical{padding-left:120px;padding-right:16px}.svg-funnel-js.svg-funnel-js--vertical .svg-funnel-js__label{padding-top:24px}.svg-funnel-js.svg-funnel-js--vertical .svg-funnel-js__label:not(:first-child){border-top:1px solid #e3e3e3}.svg-funnel-js.svg-funnel-js--vertical .svg-funnel-js__label .label__segment-percentages .segment-percentage__list{display:flex;justify-content:space-around}.svg-funnel-js .svg-funnel-js__subLabels{display:flex;justify-content:center;left:0;margin-top:24px;width:100%}.svg-funnel-js .svg-funnel-js__subLabels .svg-funnel-js__subLabel{display:flex;font-size:12px;line-height:16px}.svg-funnel-js .svg-funnel-js__subLabels .svg-funnel-js__subLabel:not(:first-child){margin-left:16px}.svg-funnel-js .svg-funnel-js__subLabels .svg-funnel-js__subLabel .svg-funnel-js__subLabel--color{border-radius:50%;height:12px;margin:2px 8px 2px 0;width:12px}.even\:bg-gray-100:nth-child(2n){--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.focus-within\:outline-none:focus-within{outline:2px solid transparent;outline-offset:2px}.focus-within\:ring-2:focus-within{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-within\:ring-indigo-500:focus-within{--tw-ring-opacity:1;--tw-ring-color:rgb(99 102 241/var(--tw-ring-opacity))}.focus-within\:ring-offset-2:focus-within{--tw-ring-offset-width:2px}.hover\:border-gray-200:hover{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.hover\:border-gray-300:hover{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.hover\:border-gray-400:hover{--tw-border-opacity:1;border-color:rgb(156 163 175/var(--tw-border-opacity))}.hover\:border-red-400:hover{--tw-border-opacity:1;border-color:rgb(248 113 113/var(--tw-border-opacity))}.hover\:bg-cyan-500:hover{--tw-bg-opacity:1;background-color:rgb(6 182 212/var(--tw-bg-opacity))}.hover\:bg-gray-100:hover{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.hover\:bg-gray-50:hover{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}.hover\:bg-green-100:hover{--tw-bg-opacity:1;background-color:rgb(220 252 231/var(--tw-bg-opacity))}.hover\:bg-green-600:hover{--tw-bg-opacity:1;background-color:rgb(22 163 74/var(--tw-bg-opacity))}.hover\:bg-indigo-100:hover{--tw-bg-opacity:1;background-color:rgb(224 231 255/var(--tw-bg-opacity))}.hover\:bg-indigo-700:hover{--tw-bg-opacity:1;background-color:rgb(67 56 202/var(--tw-bg-opacity))}.hover\:bg-indigo-800:hover{--tw-bg-opacity:1;background-color:rgb(55 48 163/var(--tw-bg-opacity))}.hover\:bg-red-100:hover{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity))}.hover\:bg-red-600:hover{--tw-bg-opacity:1;background-color:rgb(220 38 38/var(--tw-bg-opacity))}.hover\:bg-yellow-100:hover{--tw-bg-opacity:1;background-color:rgb(254 249 195/var(--tw-bg-opacity))}.hover\:bg-yellow-600:hover{--tw-bg-opacity:1;background-color:rgb(202 138 4/var(--tw-bg-opacity))}.hover\:text-gray-500:hover{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.hover\:text-gray-700:hover{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}.hover\:text-gray-800:hover{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity))}.hover\:text-gray-900:hover{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}.hover\:text-indigo-400:hover{--tw-text-opacity:1;color:rgb(129 140 248/var(--tw-text-opacity))}.hover\:text-indigo-500:hover{--tw-text-opacity:1;color:rgb(99 102 241/var(--tw-text-opacity))}.hover\:text-indigo-800:hover{--tw-text-opacity:1;color:rgb(55 48 163/var(--tw-text-opacity))}.focus\:border-indigo-500:focus{--tw-border-opacity:1;border-color:rgb(99 102 241/var(--tw-border-opacity))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-1:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\:ring-1:focus,.focus\:ring-2:focus{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\:ring-inset:focus{--tw-ring-inset:inset}.focus\:ring-green-600:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(22 163 74/var(--tw-ring-opacity))}.focus\:ring-indigo-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(99 102 241/var(--tw-ring-opacity))}.focus\:ring-indigo-600:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(79 70 229/var(--tw-ring-opacity))}.focus\:ring-red-600:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(220 38 38/var(--tw-ring-opacity))}.focus\:ring-yellow-600:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(202 138 4/var(--tw-ring-opacity))}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px}.focus\:ring-offset-gray-100:focus{--tw-ring-offset-color:#f3f4f6}.focus\:ring-offset-green-50:focus{--tw-ring-offset-color:#f0fdf4}.focus\:ring-offset-indigo-50:focus{--tw-ring-offset-color:#eef2ff}.focus\:ring-offset-red-50:focus{--tw-ring-offset-color:#fef2f2}.focus\:ring-offset-yellow-50:focus{--tw-ring-offset-color:#fefce8}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-25:disabled{opacity:.25}.disabled\:opacity-30:disabled{opacity:.3}.group:hover .group-hover\:visible{visibility:visible}.group:hover .group-hover\:bg-gray-300{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity))}.group:hover .group-hover\:bg-indigo-200{--tw-bg-opacity:1;background-color:rgb(199 210 254/var(--tw-bg-opacity))}.group:hover .group-hover\:text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.group:hover .group-hover\:text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.group:hover .group-hover\:text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.group:focus .group-focus\:visible{visibility:visible}@media (min-width:640px){.sm\:left-16{left:4rem}.sm\:left-48{left:12rem}.sm\:col-span-2{grid-column:span 2/span 2}.sm\:-mx-6{margin-left:-1.5rem;margin-right:-1.5rem}.sm\:mx-0{margin-left:0;margin-right:0}.sm\:my-0{margin-bottom:0;margin-top:0}.sm\:my-8{margin-bottom:2rem;margin-top:2rem}.sm\:mb-0{margin-bottom:0}.sm\:ml-4{margin-left:1rem}.sm\:mr-4{margin-right:1rem}.sm\:mt-0{margin-top:0}.sm\:block{display:block}.sm\:flex{display:flex}.sm\:grid{display:grid}.sm\:hidden{display:none}.sm\:h-10{height:2.5rem}.sm\:w-10{width:2.5rem}.sm\:w-auto{width:auto}.sm\:w-full{width:100%}.sm\:max-w-lg{max-width:32rem}.sm\:flex-1{flex:1 1 0%}.sm\:translate-x-0{--tw-translate-x:0px}.sm\:translate-x-0,.sm\:translate-x-2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\:translate-x-2{--tw-translate-x:0.5rem}.sm\:translate-y-0{--tw-translate-y:0px}.sm\:scale-100,.sm\:translate-y-0{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\:scale-100{--tw-scale-x:1;--tw-scale-y:1}.sm\:scale-95{--tw-scale-x:.95;--tw-scale-y:.95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:items-start{align-items:flex-start}.sm\:items-end{align-items:flex-end}.sm\:items-center{align-items:center}.sm\:justify-start{justify-content:flex-start}.sm\:justify-between{justify-content:space-between}.sm\:gap-4{gap:1rem}.sm\:rounded-lg{border-radius:.5rem}.sm\:p-0{padding:0}.sm\:p-6{padding:1.5rem}.sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\:px-8{padding-left:2rem;padding-right:2rem}.sm\:pl-3{padding-left:.75rem}.sm\:pl-5{padding-left:1.25rem}.sm\:pl-6{padding-left:1.5rem}.sm\:pr-6{padding-right:1.5rem}.sm\:pt-6{padding-top:1.5rem}.sm\:text-left{text-align:left}.sm\:text-sm{font-size:.875rem;line-height:1.25rem}}@media (min-width:768px){.md\:inset-y-0{bottom:0;top:0}.md\:order-1{order:1}.md\:my-0{margin-bottom:0;margin-top:0}.md\:ml-4{margin-left:1rem}.md\:mt-0{margin-top:0}.md\:inline-block{display:inline-block}.md\:flex{display:flex}.md\:w-1\/4{width:25%}.md\:flex-shrink-0{flex-shrink:0}.md\:flex-col{flex-direction:column}.md\:items-center{align-items:center}.md\:justify-between{justify-content:space-between}.md\:rounded-lg{border-radius:.5rem}}@media (min-width:1024px){.lg\:-mx-8{margin-left:-2rem;margin-right:-2rem}.lg\:block{display:block}.lg\:hidden{display:none}.lg\:px-8{padding-left:2rem;padding-right:2rem}}
|
package/dist/ui.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),T=require("dayjs"),Zt=require("vue3-apexcharts"),en=require("vue3-funnel-graph-js"),tn={name:"uiIcon"},R=Object.assign(tn,{props:{icon:{type:Function,required:!0},size:{type:String,default:"normal"},color:{type:String,default:"primary"}},setup(t){return(n,l)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.icon),{class:e.normalizeClass({"h-4 w-4":t.size==="normal","h-6 w-6":t.size==="big","h-12 w-12":t.size==="huge","h-20 w-20":t.size==="massive","text-indigo-600":t.color==="primary","text-cyan-300":t.color==="secondary","text-red-400":t.color==="red","text-yellow-400":t.color==="yellow","text-green-400":t.color==="green","text-white":t.color==="white","text-gray-300":t.color==="gray","text-black":t.color==="black"})},null,8,["class"]))}}),nn=["disabled"],on={name:"uiButton"},nt=Object.assign(on,{props:{color:{type:String,default:"primary"},size:{type:String,default:"normal"},icon:{type:Function,default:()=>{}},disabled:{type:Boolean,default:!1}},setup(t){return(n,l)=>(e.openBlock(),e.createElementBlock("button",{disabled:t.disabled,class:e.normalizeClass([{"bg-indigo-600 hover:bg-indigo-800":t.color==="primary","bg-cyan-300 hover:bg-cyan-500":t.color==="secondary","bg-red-400 hover:bg-red-600":t.color==="red","bg-yellow-400 hover:bg-yellow-600":t.color==="yellow","bg-green-400 hover:bg-green-600":t.color==="green","px-4 py-2 text-sm rounded-md":t.size==="normal","px-2.5 py-1.5 text-xs rounded leading-none":t.size==="small","px-6 py-3 text-base rounded-md":t.size==="large"},"inline-flex items-center border border-transparent font-medium shadow-sm text-white focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:opacity-25"]),type:"button"},[e.createVNode(R,{icon:t.icon,color:"white",class:"-ml-0.5 mr-2"},null,8,["icon"]),e.renderSlot(n.$slots,"default")],10,nn))}}),ln={class:"relative flex items-start"},rn={class:"flex items-center h-5"},an=["checked","value","disabled"],sn={class:"ml-3 text-sm"},cn={class:"text-gray-500"},un={name:"uiCheckbox"},dn=Object.assign(un,{props:{disabled:{type:Boolean,default:!1},value:{type:String},check:{type:Boolean,default:!1}},emits:["checkboxChanged"],setup(t,{emit:n}){const l=t,r=e.ref(l.check),o=()=>{l.disabled||(r.value=!r.value,n("checkboxChanged",{checked:r.value,value:l.value}))};return(a,i)=>(e.openBlock(),e.createElementBlock("div",ln,[e.createElementVNode("div",rn,[e.createElementVNode("input",{checked:t.check,value:t.value,disabled:t.disabled,class:"focus:ring-indigo-500 h-4 w-4 text-indigo-600 border-gray-300 rounded disabled:opacity-25",type:"checkbox",onChange:i[0]||(i[0]=s=>o())},null,40,an)]),e.createElementVNode("div",sn,[e.createElementVNode("span",cn,[e.renderSlot(a.$slots,"default")])])]))}});function O(t,n,...l){if(t in n){let o=n[t];return typeof o=="function"?o(...l):o}let r=new Error(`Tried to handle "${t}" but there is no handler defined. Only defined handlers are: ${Object.keys(n).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,O),r}var z=(t=>(t[t.None=0]="None",t[t.RenderStrategy=1]="RenderStrategy",t[t.Static=2]="Static",t))(z||{}),K=(t=>(t[t.Unmount=0]="Unmount",t[t.Hidden=1]="Hidden",t))(K||{});function V({visible:t=!0,features:n=0,ourProps:l,theirProps:r,...o}){var a;let i=lt(r,l),s=Object.assign(o,{props:i});if(t||n&2&&i.static)return Be(s);if(n&1){let u=(a=i.unmount)==null||a?0:1;return O(u,{0(){return null},1(){return Be({...o,props:{...i,hidden:!0,style:{display:"none"}}})}})}return Be(s)}function Be({props:t,attrs:n,slots:l,slot:r,name:o}){var a,i;let{as:s,...u}=me(t,["unmount","static"]),c=(a=l.default)==null?void 0:a.call(l,r),d={};if(r){let v=!1,m=[];for(let[p,h]of Object.entries(r))typeof h=="boolean"&&(v=!0),h===!0&&m.push(p);v&&(d["data-headlessui-state"]=m.join(" "))}if(s==="template"){if(c=ot(c??[]),Object.keys(u).length>0||Object.keys(n).length>0){let[v,...m]=c??[];if(!mn(v)||m.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${o} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(u).concat(Object.keys(n)).map(g=>g.trim()).filter((g,f,b)=>b.indexOf(g)===f).sort((g,f)=>g.localeCompare(f)).map(g=>` - ${g}`).join(`
|
|
2
2
|
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".',"Render a single element as the child so that we can forward the props onto that element."].map(g=>` - ${g}`).join(`
|
|
3
3
|
`)].join(`
|
|
4
|
-
`));let p=lt((i=v.props)!=null?i:{},u),h=e.cloneVNode(v,p);for(let g in p)g.startsWith("on")&&(h.props||(h.props={}),h.props[g]=p[g]);return h}return Array.isArray(c)&&c.length===1?c[0]:c}return e.h(s,Object.assign({},u,d),{default:()=>c})}function ot(t){return t.flatMap(n=>n.type===e.Fragment?ot(n.children):[n])}function lt(...t){if(t.length===0)return{};if(t.length===1)return t[0];let n={},l={};for(let r of t)for(let o in r)o.startsWith("on")&&typeof r[o]=="function"?(l[o]!=null||(l[o]=[]),l[o].push(r[o])):n[o]=r[o];if(n.disabled||n["aria-disabled"])return Object.assign(n,Object.fromEntries(Object.keys(l).map(r=>[r,void 0])));for(let r in l)Object.assign(n,{[r](o,...a){let i=l[r];for(let s of i){if(o instanceof Event&&o.defaultPrevented)return;s(o,...a)}}});return n}function rt(t){let n=Object.assign({},t);for(let l in n)n[l]===void 0&&delete n[l];return n}function me(t,n=[]){let l=Object.assign({},t);for(let r of n)r in l&&delete l[r];return l}function mn(t){return t==null?!1:typeof t.type=="string"||typeof t.type=="object"||typeof t.type=="function"}let fn=0;function pn(){return++fn}function P(){return pn()}var S=(t=>(t.Space=" ",t.Enter="Enter",t.Escape="Escape",t.Backspace="Backspace",t.Delete="Delete",t.ArrowLeft="ArrowLeft",t.ArrowUp="ArrowUp",t.ArrowRight="ArrowRight",t.ArrowDown="ArrowDown",t.Home="Home",t.End="End",t.PageUp="PageUp",t.PageDown="PageDown",t.Tab="Tab",t))(S||{});function vn(t){throw new Error("Unexpected object: "+t)}var B=(t=>(t[t.First=0]="First",t[t.Previous=1]="Previous",t[t.Next=2]="Next",t[t.Last=3]="Last",t[t.Specific=4]="Specific",t[t.Nothing=5]="Nothing",t))(B||{});function at(t,n){let l=n.resolveItems();if(l.length<=0)return null;let r=n.resolveActiveIndex(),o=r??-1,a=(()=>{switch(t.focus){case 0:return l.findIndex(i=>!n.resolveDisabled(i));case 1:{let i=l.slice().reverse().findIndex((s,u,c)=>o!==-1&&c.length-u-1>=o?!1:!n.resolveDisabled(s));return i===-1?i:l.length-1-i}case 2:return l.findIndex((i,s)=>s<=o?!1:!n.resolveDisabled(i));case 3:{let i=l.slice().reverse().findIndex(s=>!n.resolveDisabled(s));return i===-1?i:l.length-1-i}case 4:return l.findIndex(i=>n.resolveId(i)===t.id);case 5:return null;default:vn(t)}})();return a===-1?r:a}function y(t){var n;return t==null||t.value==null?null:(n=t.value.$el)!=null?n:t.value}let it=Symbol("Context");var D=(t=>(t[t.Open=1]="Open",t[t.Closed=2]="Closed",t[t.Closing=4]="Closing",t[t.Opening=8]="Opening",t))(D||{});function gn(){return ne()!==null}function ne(){return e.inject(it,null)}function ke(t){e.provide(it,t)}function We(t,n){if(t)return t;let l=n??"button";if(typeof l=="string"&&l.toLowerCase()==="button")return"button"}function Ee(t,n){let l=e.ref(We(t.value.type,t.value.as));return e.onMounted(()=>{l.value=We(t.value.type,t.value.as)}),e.watchEffect(()=>{var r;l.value||y(n)&&y(n)instanceof HTMLButtonElement&&!((r=y(n))!=null&&r.hasAttribute("type"))&&(l.value="button")}),l}var hn=Object.defineProperty,yn=(t,n,l)=>n in t?hn(t,n,{enumerable:!0,configurable:!0,writable:!0,value:l}):t[n]=l,Ke=(t,n,l)=>(yn(t,typeof n!="symbol"?n+"":n,l),l);let bn=class{constructor(){Ke(this,"current",this.detect()),Ke(this,"currentId",0)}set(n){this.current!==n&&(this.currentId=0,this.current=n)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}},fe=new bn;function G(t){if(fe.isServer)return null;if(t instanceof Node)return t.ownerDocument;if(t!=null&&t.hasOwnProperty("value")){let n=y(t);if(n)return n.ownerDocument}return document}function st({container:t,accept:n,walk:l,enabled:r}){e.watchEffect(()=>{let o=t.value;if(!o||r!==void 0&&!r.value)return;let a=G(t);if(!a)return;let i=Object.assign(u=>n(u),{acceptNode:n}),s=a.createTreeWalker(o,NodeFilter.SHOW_ELEMENT,i,!1);for(;s.nextNode();)l(s.currentNode)})}let De=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(t=>`${t}:not([tabindex='-1'])`).join(",");var U=(t=>(t[t.First=1]="First",t[t.Previous=2]="Previous",t[t.Next=4]="Next",t[t.Last=8]="Last",t[t.WrapAround=16]="WrapAround",t[t.NoScroll=32]="NoScroll",t))(U||{}),ct=(t=>(t[t.Error=0]="Error",t[t.Overflow=1]="Overflow",t[t.Success=2]="Success",t[t.Underflow=3]="Underflow",t))(ct||{}),xn=(t=>(t[t.Previous=-1]="Previous",t[t.Next=1]="Next",t))(xn||{});function ut(t=document.body){return t==null?[]:Array.from(t.querySelectorAll(De)).sort((n,l)=>Math.sign((n.tabIndex||Number.MAX_SAFE_INTEGER)-(l.tabIndex||Number.MAX_SAFE_INTEGER)))}var Re=(t=>(t[t.Strict=0]="Strict",t[t.Loose=1]="Loose",t))(Re||{});function Ie(t,n=0){var l;return t===((l=G(t))==null?void 0:l.body)?!1:O(n,{0(){return t.matches(De)},1(){let r=t;for(;r!==null;){if(r.matches(De))return!0;r=r.parentElement}return!1}})}function dt(t){let n=G(t);e.nextTick(()=>{n&&!Ie(n.activeElement,0)&&J(t)})}var wn=(t=>(t[t.Keyboard=0]="Keyboard",t[t.Mouse=1]="Mouse",t))(wn||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",t=>{t.metaKey||t.altKey||t.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",t=>{t.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:t.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function J(t){t==null||t.focus({preventScroll:!0})}let kn=["textarea","input"].join(",");function En(t){var n,l;return(l=(n=t==null?void 0:t.matches)==null?void 0:n.call(t,kn))!=null?l:!1}function Ae(t,n=l=>l){return t.slice().sort((l,r)=>{let o=n(l),a=n(r);if(o===null||a===null)return 0;let i=o.compareDocumentPosition(a);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Sn(t,n){return ce(ut(),n,{relativeTo:t})}function ce(t,n,{sorted:l=!0,relativeTo:r=null,skipElements:o=[]}={}){var a;let i=(a=Array.isArray(t)?t.length>0?t[0].ownerDocument:document:t==null?void 0:t.ownerDocument)!=null?a:document,s=Array.isArray(t)?l?Ae(t):t:ut(t);o.length>0&&s.length>1&&(s=s.filter(h=>!o.includes(h))),r=r??i.activeElement;let u=(()=>{if(n&5)return 1;if(n&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=(()=>{if(n&1)return 0;if(n&2)return Math.max(0,s.indexOf(r))-1;if(n&4)return Math.max(0,s.indexOf(r))+1;if(n&8)return s.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),d=n&32?{preventScroll:!0}:{},v=0,m=s.length,p;do{if(v>=m||v+m<=0)return 0;let h=c+v;if(n&16)h=(h+m)%m;else{if(h<0)return 3;if(h>=m)return 1}p=s[h],p==null||p.focus(d),v+=u}while(p!==i.activeElement);return n&6&&En(p)&&p.select(),2}function Je(t,n,l){fe.isServer||e.watchEffect(r=>{document.addEventListener(t,n,l),r(()=>document.removeEventListener(t,n,l))})}function mt(t,n,l){fe.isServer||e.watchEffect(r=>{window.addEventListener(t,n,l),r(()=>window.removeEventListener(t,n,l))})}function ze(t,n,l=e.computed(()=>!0)){function r(a,i){if(!l.value||a.defaultPrevented)return;let s=i(a);if(s===null||!s.getRootNode().contains(s))return;let u=function c(d){return typeof d=="function"?c(d()):Array.isArray(d)||d instanceof Set?d:[d]}(t);for(let c of u){if(c===null)continue;let d=c instanceof HTMLElement?c:y(c);if(d!=null&&d.contains(s)||a.composed&&a.composedPath().includes(d))return}return!Ie(s,Re.Loose)&&s.tabIndex!==-1&&a.preventDefault(),n(a,s)}let o=e.ref(null);Je("mousedown",a=>{var i,s;l.value&&(o.value=((s=(i=a.composedPath)==null?void 0:i.call(a))==null?void 0:s[0])||a.target)},!0),Je("click",a=>{o.value&&(r(a,()=>o.value),o.value=null)},!0),mt("blur",a=>r(a,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}var te=(t=>(t[t.None=1]="None",t[t.Focusable=2]="Focusable",t[t.Hidden=4]="Hidden",t))(te||{});let ue=e.defineComponent({name:"Hidden",props:{as:{type:[Object,String],default:"div"},features:{type:Number,default:1}},setup(t,{slots:n,attrs:l}){return()=>{let{features:r,...o}=t,a={"aria-hidden":(r&2)===2?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(r&4)===4&&(r&2)!==2&&{display:"none"}}};return V({ourProps:a,theirProps:o,slot:{},attrs:l,slots:n,name:"Hidden"})}}});function ft(t={},n=null,l=[]){for(let[r,o]of Object.entries(t))vt(l,pt(n,r),o);return l}function pt(t,n){return t?t+"["+n+"]":n}function vt(t,n,l){if(Array.isArray(l))for(let[r,o]of l.entries())vt(t,pt(n,r.toString()),o);else l instanceof Date?t.push([n,l.toISOString()]):typeof l=="boolean"?t.push([n,l?"1":"0"]):typeof l=="string"?t.push([n,l]):typeof l=="number"?t.push([n,`${l}`]):l==null?t.push([n,""]):ft(l,n,t)}function Cn(t){var n;let l=(n=t==null?void 0:t.form)!=null?n:t.closest("form");if(l){for(let r of l.elements)if(r.tagName==="INPUT"&&r.type==="submit"||r.tagName==="BUTTON"&&r.type==="submit"||r.nodeName==="INPUT"&&r.type==="image"){r.click();return}}}function gt(t,n,l){let r=e.ref(l==null?void 0:l.value),o=e.computed(()=>t.value!==void 0);return[e.computed(()=>o.value?t.value:r.value),function(a){return o.value||(r.value=a),n==null?void 0:n(a)}]}function Ge(t){return[t.screenX,t.screenY]}function ht(){let t=e.ref([-1,-1]);return{wasMoved(n){let l=Ge(n);return t.value[0]===l[0]&&t.value[1]===l[1]?!1:(t.value=l,!0)},update(n){t.value=Ge(n)}}}function yt(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function $n(){return/Android/gi.test(window.navigator.userAgent)}function Nn(){return yt()||$n()}function pe(){let t=[],n={addEventListener(l,r,o,a){return l.addEventListener(r,o,a),n.add(()=>l.removeEventListener(r,o,a))},requestAnimationFrame(...l){let r=requestAnimationFrame(...l);n.add(()=>cancelAnimationFrame(r))},nextFrame(...l){n.requestAnimationFrame(()=>{n.requestAnimationFrame(...l)})},setTimeout(...l){let r=setTimeout(...l);n.add(()=>clearTimeout(r))},style(l,r,o){let a=l.style.getPropertyValue(r);return Object.assign(l.style,{[r]:o}),this.add(()=>{Object.assign(l.style,{[r]:a})})},group(l){let r=pe();return l(r),this.add(()=>r.dispose())},add(l){return t.push(l),()=>{let r=t.indexOf(l);if(r>=0)for(let o of t.splice(r,1))o()}},dispose(){for(let l of t.splice(0))l()}};return n}function Bn(t,n){return t===n}var Vn=(t=>(t[t.Open=0]="Open",t[t.Closed=1]="Closed",t))(Vn||{}),_n=(t=>(t[t.Single=0]="Single",t[t.Multi=1]="Multi",t))(_n||{}),Dn=(t=>(t[t.Pointer=0]="Pointer",t[t.Other=1]="Other",t))(Dn||{});let bt=Symbol("ComboboxContext");function oe(t){let n=e.inject(bt,null);if(n===null){let l=new Error(`<${t} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(l,oe),l}return n}let Mn=e.defineComponent({name:"Combobox",emits:{"update:modelValue":t=>!0},props:{as:{type:[Object,String],default:"template"},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],default:()=>Bn},modelValue:{type:[Object,String,Number,Boolean],default:void 0},defaultValue:{type:[Object,String,Number,Boolean],default:void 0},form:{type:String,optional:!0},name:{type:String,optional:!0},nullable:{type:Boolean,default:!1},multiple:{type:[Boolean],default:!1}},inheritAttrs:!1,setup(t,{slots:n,attrs:l,emit:r}){let o=e.ref(1),a=e.ref(null),i=e.ref(null),s=e.ref(null),u=e.ref(null),c=e.ref({static:!1,hold:!1}),d=e.ref([]),v=e.ref(null),m=e.ref(1),p=e.ref(!1);function h(x=C=>C){let C=v.value!==null?d.value[v.value]:null,$=Ae(x(d.value.slice()),N=>y(N.dataRef.domRef)),E=C?$.indexOf(C):null;return E===-1&&(E=null),{options:$,activeOptionIndex:E}}let g=e.computed(()=>t.multiple?1:0),f=e.computed(()=>t.nullable),[b,k]=gt(e.computed(()=>t.modelValue===void 0?O(g.value,{1:[],0:void 0}):t.modelValue),x=>r("update:modelValue",x),e.computed(()=>t.defaultValue)),w={comboboxState:o,value:b,mode:g,compare(x,C){if(typeof t.by=="string"){let $=t.by;return(x==null?void 0:x[$])===(C==null?void 0:C[$])}return t.by(x,C)},defaultValue:e.computed(()=>t.defaultValue),nullable:f,inputRef:i,labelRef:a,buttonRef:s,optionsRef:u,disabled:e.computed(()=>t.disabled),options:d,change(x){k(x)},activeOptionIndex:e.computed(()=>{if(p.value&&v.value===null&&d.value.length>0){let x=d.value.findIndex(C=>!C.dataRef.disabled);x!==-1&&(v.value=x)}return v.value}),activationTrigger:m,optionsPropsRef:c,closeCombobox(){p.value=!1,!t.disabled&&o.value!==1&&(o.value=1,v.value=null)},openCombobox(){if(p.value=!0,t.disabled||o.value===0)return;let x=d.value.findIndex(C=>{let $=e.toRaw(C.dataRef.value);return O(g.value,{0:()=>w.compare(e.toRaw(w.value.value),e.toRaw($)),1:()=>e.toRaw(w.value.value).some(E=>w.compare(e.toRaw(E),e.toRaw($)))})});x!==-1&&(v.value=x),o.value=0},goToOption(x,C,$){if(p.value=!1,t.disabled||u.value&&!c.value.static&&o.value===1)return;let E=h();if(E.activeOptionIndex===null){let M=E.options.findIndex(A=>!A.dataRef.disabled);M!==-1&&(E.activeOptionIndex=M)}let N=at(x===B.Specific?{focus:B.Specific,id:C}:{focus:x},{resolveItems:()=>E.options,resolveActiveIndex:()=>E.activeOptionIndex,resolveId:M=>M.id,resolveDisabled:M=>M.dataRef.disabled});v.value=N,m.value=$??1,d.value=E.options},selectOption(x){let C=d.value.find(E=>E.id===x);if(!C)return;let{dataRef:$}=C;k(O(g.value,{0:()=>$.value,1:()=>{let E=e.toRaw(w.value.value).slice(),N=e.toRaw($.value),M=E.findIndex(A=>w.compare(N,e.toRaw(A)));return M===-1?E.push(N):E.splice(M,1),E}}))},selectActiveOption(){if(w.activeOptionIndex.value===null)return;let{dataRef:x,id:C}=d.value[w.activeOptionIndex.value];k(O(g.value,{0:()=>x.value,1:()=>{let $=e.toRaw(w.value.value).slice(),E=e.toRaw(x.value),N=$.findIndex(M=>w.compare(E,e.toRaw(M)));return N===-1?$.push(E):$.splice(N,1),$}})),w.goToOption(B.Specific,C)},registerOption(x,C){let $={id:x,dataRef:C},E=h(N=>[...N,$]);if(v.value===null){let N=C.value.value;O(g.value,{0:()=>w.compare(e.toRaw(w.value.value),e.toRaw(N)),1:()=>e.toRaw(w.value.value).some(M=>w.compare(e.toRaw(M),e.toRaw(N)))})&&(E.activeOptionIndex=E.options.indexOf($))}d.value=E.options,v.value=E.activeOptionIndex,m.value=1,E.options.some(N=>!y(N.dataRef.domRef))&&requestAnimationFrame(()=>{let N=h();d.value=N.options,v.value=N.activeOptionIndex})},unregisterOption(x){var C;w.activeOptionIndex.value!==null&&((C=w.options.value[w.activeOptionIndex.value])==null?void 0:C.id)===x&&(p.value=!0);let $=h(E=>{let N=E.findIndex(M=>M.id===x);return N!==-1&&E.splice(N,1),E});d.value=$.options,v.value=$.activeOptionIndex,m.value=1}};ze([i,s,u],()=>w.closeCombobox(),e.computed(()=>o.value===0)),e.provide(bt,w),ke(e.computed(()=>O(o.value,{0:D.Open,1:D.Closed})));let j=e.computed(()=>w.activeOptionIndex.value===null?null:d.value[w.activeOptionIndex.value].dataRef.value),F=e.computed(()=>{var x;return(x=y(i))==null?void 0:x.closest("form")});return e.onMounted(()=>{e.watch([F],()=>{if(!F.value||t.defaultValue===void 0)return;function x(){w.change(t.defaultValue)}return F.value.addEventListener("reset",x),()=>{var C;(C=F.value)==null||C.removeEventListener("reset",x)}},{immediate:!0})}),()=>{let{name:x,disabled:C,form:$,...E}=t,N={open:o.value===0,disabled:C,activeIndex:w.activeOptionIndex.value,activeOption:j.value,value:b.value};return e.h(e.Fragment,[...x!=null&&b.value!=null?ft({[x]:b.value}).map(([M,A])=>e.h(ue,rt({features:te.Hidden,key:M,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:$,name:M,value:A}))):[],V({theirProps:{...l,...me(E,["modelValue","defaultValue","nullable","multiple","onUpdate:modelValue","by"])},ourProps:{},slot:N,slots:n,attrs:l,name:"Combobox"})])}}}),Tn=e.defineComponent({name:"ComboboxLabel",props:{as:{type:[Object,String],default:"label"},id:{type:String,default:()=>`headlessui-combobox-label-${P()}`}},setup(t,{attrs:n,slots:l}){let r=oe("ComboboxLabel");function o(){var a;(a=y(r.inputRef))==null||a.focus({preventScroll:!0})}return()=>{let a={open:r.comboboxState.value===0,disabled:r.disabled.value},{id:i,...s}=t,u={id:i,ref:r.labelRef,onClick:o};return V({ourProps:u,theirProps:s,slot:a,attrs:n,slots:l,name:"ComboboxLabel"})}}}),On=e.defineComponent({name:"ComboboxButton",props:{as:{type:[Object,String],default:"button"},id:{type:String,default:()=>`headlessui-combobox-button-${P()}`}},setup(t,{attrs:n,slots:l,expose:r}){let o=oe("ComboboxButton");r({el:o.buttonRef,$el:o.buttonRef});function a(u){o.disabled.value||(o.comboboxState.value===0?o.closeCombobox():(u.preventDefault(),o.openCombobox()),e.nextTick(()=>{var c;return(c=y(o.inputRef))==null?void 0:c.focus({preventScroll:!0})}))}function i(u){switch(u.key){case S.ArrowDown:u.preventDefault(),u.stopPropagation(),o.comboboxState.value===1&&o.openCombobox(),e.nextTick(()=>{var c;return(c=o.inputRef.value)==null?void 0:c.focus({preventScroll:!0})});return;case S.ArrowUp:u.preventDefault(),u.stopPropagation(),o.comboboxState.value===1&&(o.openCombobox(),e.nextTick(()=>{o.value.value||o.goToOption(B.Last)})),e.nextTick(()=>{var c;return(c=o.inputRef.value)==null?void 0:c.focus({preventScroll:!0})});return;case S.Escape:if(o.comboboxState.value!==0)return;u.preventDefault(),o.optionsRef.value&&!o.optionsPropsRef.value.static&&u.stopPropagation(),o.closeCombobox(),e.nextTick(()=>{var c;return(c=o.inputRef.value)==null?void 0:c.focus({preventScroll:!0})});return}}let s=Ee(e.computed(()=>({as:t.as,type:n.type})),o.buttonRef);return()=>{var u,c;let d={open:o.comboboxState.value===0,disabled:o.disabled.value,value:o.value.value},{id:v,...m}=t,p={ref:o.buttonRef,id:v,type:s.value,tabindex:"-1","aria-haspopup":"listbox","aria-controls":(u=y(o.optionsRef))==null?void 0:u.id,"aria-expanded":o.disabled.value?void 0:o.comboboxState.value===0,"aria-labelledby":o.labelRef.value?[(c=y(o.labelRef))==null?void 0:c.id,v].join(" "):void 0,disabled:o.disabled.value===!0?!0:void 0,onKeydown:i,onClick:a};return V({ourProps:p,theirProps:m,slot:d,attrs:n,slots:l,name:"ComboboxButton"})}}}),Pn=e.defineComponent({name:"ComboboxInput",props:{as:{type:[Object,String],default:"input"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},displayValue:{type:Function},defaultValue:{type:String,default:void 0},id:{type:String,default:()=>`headlessui-combobox-input-${P()}`}},emits:{change:t=>!0},setup(t,{emit:n,attrs:l,slots:r,expose:o}){let a=oe("ComboboxInput"),i={value:!1};o({el:a.inputRef,$el:a.inputRef});let s=e.computed(()=>{var f;let b=a.value.value;return y(a.inputRef)?typeof t.displayValue<"u"&&b!==void 0?(f=t.displayValue(b))!=null?f:"":typeof b=="string"?b:"":""});e.onMounted(()=>{e.watch([s,a.comboboxState],([f,b],[k,w])=>{if(i.value)return;let j=y(a.inputRef);j&&(w===0&&b===1||f!==k)&&(j.value=f)},{immediate:!0}),e.watch([a.comboboxState],([f],[b])=>{if(f===0&&b===1){let k=y(a.inputRef);if(!k)return;let w=k.value,{selectionStart:j,selectionEnd:F,selectionDirection:x}=k;k.value="",k.value=w,x!==null?k.setSelectionRange(j,F,x):k.setSelectionRange(j,F)}})});let u=e.ref(!1),c=e.ref(null);function d(){u.value=!0}function v(){pe().nextFrame(()=>{u.value=!1,c.value&&(a.openCombobox(),n("change",c.value),c.value=null)})}function m(f){switch(i.value=!0,f.key){case S.Backspace:case S.Delete:if(a.mode.value!==0||!a.nullable.value)return;let b=f.currentTarget;requestAnimationFrame(()=>{if(b.value===""){a.change(null);let k=y(a.optionsRef);k&&(k.scrollTop=0),a.goToOption(B.Nothing)}});break;case S.Enter:if(i.value=!1,a.comboboxState.value!==0||u.value)return;if(f.preventDefault(),f.stopPropagation(),a.activeOptionIndex.value===null){a.closeCombobox();return}a.selectActiveOption(),a.mode.value===0&&a.closeCombobox();break;case S.ArrowDown:return i.value=!1,f.preventDefault(),f.stopPropagation(),O(a.comboboxState.value,{0:()=>a.goToOption(B.Next),1:()=>a.openCombobox()});case S.ArrowUp:return i.value=!1,f.preventDefault(),f.stopPropagation(),O(a.comboboxState.value,{0:()=>a.goToOption(B.Previous),1:()=>{a.openCombobox(),e.nextTick(()=>{a.value.value||a.goToOption(B.Last)})}});case S.Home:if(f.shiftKey)break;return i.value=!1,f.preventDefault(),f.stopPropagation(),a.goToOption(B.First);case S.PageUp:return i.value=!1,f.preventDefault(),f.stopPropagation(),a.goToOption(B.First);case S.End:if(f.shiftKey)break;return i.value=!1,f.preventDefault(),f.stopPropagation(),a.goToOption(B.Last);case S.PageDown:return i.value=!1,f.preventDefault(),f.stopPropagation(),a.goToOption(B.Last);case S.Escape:if(i.value=!1,a.comboboxState.value!==0)return;f.preventDefault(),a.optionsRef.value&&!a.optionsPropsRef.value.static&&f.stopPropagation(),a.closeCombobox();break;case S.Tab:if(i.value=!1,a.comboboxState.value!==0)return;a.mode.value===0&&a.selectActiveOption(),a.closeCombobox();break}}function p(f){if(u.value){c.value=f;return}a.openCombobox(),n("change",f)}function h(){i.value=!1}let g=e.computed(()=>{var f,b,k,w;return(w=(k=(b=t.defaultValue)!=null?b:a.defaultValue.value!==void 0?(f=t.displayValue)==null?void 0:f.call(t,a.defaultValue.value):null)!=null?k:a.defaultValue.value)!=null?w:""});return()=>{var f,b,k,w,j,F;let x={open:a.comboboxState.value===0},{id:C,displayValue:$,onChange:E,...N}=t,M={"aria-controls":(f=a.optionsRef.value)==null?void 0:f.id,"aria-expanded":a.disabled.value?void 0:a.comboboxState.value===0,"aria-activedescendant":a.activeOptionIndex.value===null||(b=a.options.value[a.activeOptionIndex.value])==null?void 0:b.id,"aria-labelledby":(j=(k=y(a.labelRef))==null?void 0:k.id)!=null?j:(w=y(a.buttonRef))==null?void 0:w.id,"aria-autocomplete":"list",id:C,onCompositionstart:d,onCompositionend:v,onKeydown:m,onInput:p,onBlur:h,role:"combobox",type:(F=l.type)!=null?F:"text",tabIndex:0,ref:a.inputRef,defaultValue:g.value,disabled:a.disabled.value===!0?!0:void 0};return V({ourProps:M,theirProps:N,slot:x,attrs:l,slots:r,features:z.RenderStrategy|z.Static,name:"ComboboxInput"})}}}),Ln=e.defineComponent({name:"ComboboxOptions",props:{as:{type:[Object,String],default:"ul"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},hold:{type:[Boolean],default:!1}},setup(t,{attrs:n,slots:l,expose:r}){let o=oe("ComboboxOptions"),a=`headlessui-combobox-options-${P()}`;r({el:o.optionsRef,$el:o.optionsRef}),e.watchEffect(()=>{o.optionsPropsRef.value.static=t.static}),e.watchEffect(()=>{o.optionsPropsRef.value.hold=t.hold});let i=ne(),s=e.computed(()=>i!==null?(i.value&D.Open)===D.Open:o.comboboxState.value===0);return st({container:e.computed(()=>y(o.optionsRef)),enabled:e.computed(()=>o.comboboxState.value===0),accept(u){return u.getAttribute("role")==="option"?NodeFilter.FILTER_REJECT:u.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(u){u.setAttribute("role","none")}}),()=>{var u,c,d;let v={open:o.comboboxState.value===0},m={"aria-labelledby":(d=(u=y(o.labelRef))==null?void 0:u.id)!=null?d:(c=y(o.buttonRef))==null?void 0:c.id,id:a,ref:o.optionsRef,role:"listbox","aria-multiselectable":o.mode.value===1?!0:void 0},p=me(t,["hold"]);return V({ourProps:m,theirProps:p,slot:v,attrs:n,slots:l,features:z.RenderStrategy|z.Static,visible:s.value,name:"ComboboxOptions"})}}}),jn=e.defineComponent({name:"ComboboxOption",props:{as:{type:[Object,String],default:"li"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1}},setup(t,{slots:n,attrs:l,expose:r}){let o=oe("ComboboxOption"),a=`headlessui-combobox-option-${P()}`,i=e.ref(null);r({el:i,$el:i});let s=e.computed(()=>o.activeOptionIndex.value!==null?o.options.value[o.activeOptionIndex.value].id===a:!1),u=e.computed(()=>O(o.mode.value,{0:()=>o.compare(e.toRaw(o.value.value),e.toRaw(t.value)),1:()=>e.toRaw(o.value.value).some(f=>o.compare(e.toRaw(f),e.toRaw(t.value)))})),c=e.computed(()=>({disabled:t.disabled,value:t.value,domRef:i}));e.onMounted(()=>o.registerOption(a,c)),e.onUnmounted(()=>o.unregisterOption(a)),e.watchEffect(()=>{o.comboboxState.value===0&&s.value&&o.activationTrigger.value!==0&&e.nextTick(()=>{var f,b;return(b=(f=y(i))==null?void 0:f.scrollIntoView)==null?void 0:b.call(f,{block:"nearest"})})});function d(f){if(t.disabled)return f.preventDefault();o.selectOption(a),o.mode.value===0&&o.closeCombobox(),Nn()||requestAnimationFrame(()=>{var b;return(b=y(o.inputRef))==null?void 0:b.focus()})}function v(){if(t.disabled)return o.goToOption(B.Nothing);o.goToOption(B.Specific,a)}let m=ht();function p(f){m.update(f)}function h(f){m.wasMoved(f)&&(t.disabled||s.value||o.goToOption(B.Specific,a,0))}function g(f){m.wasMoved(f)&&(t.disabled||s.value&&(o.optionsPropsRef.value.hold||o.goToOption(B.Nothing)))}return()=>{let{disabled:f}=t,b={active:s.value,selected:u.value,disabled:f},k={id:a,ref:i,role:"option",tabIndex:f===!0?void 0:-1,"aria-disabled":f===!0?!0:void 0,"aria-selected":u.value,disabled:void 0,onClick:d,onFocus:v,onPointerenter:p,onMouseenter:p,onPointermove:h,onMousemove:h,onPointerleave:g,onMouseleave:g};return V({ourProps:k,theirProps:t,slot:b,attrs:l,slots:n,name:"ComboboxOption"})}}});var se=(t=>(t[t.Forwards=0]="Forwards",t[t.Backwards=1]="Backwards",t))(se||{});function Fn(){let t=e.ref(0);return mt("keydown",n=>{n.key==="Tab"&&(t.value=n.shiftKey?1:0)}),t}function xt(t,n,l,r){fe.isServer||e.watchEffect(o=>{t=t??window,t.addEventListener(n,l,r),o(()=>t.removeEventListener(n,l,r))})}function wt(t){typeof queueMicrotask=="function"?queueMicrotask(t):Promise.resolve().then(t).catch(n=>setTimeout(()=>{throw n}))}function Rn(t){function n(){document.readyState!=="loading"&&(t(),document.removeEventListener("DOMContentLoaded",n))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",n),n())}function kt(t){if(!t)return new Set;if(typeof t=="function")return new Set(t());let n=new Set;for(let l of t.value){let r=y(l);r instanceof HTMLElement&&n.add(r)}return n}var Et=(t=>(t[t.None=1]="None",t[t.InitialFocus=2]="InitialFocus",t[t.TabLock=4]="TabLock",t[t.FocusLock=8]="FocusLock",t[t.RestoreFocus=16]="RestoreFocus",t[t.All=30]="All",t))(Et||{});let ae=Object.assign(e.defineComponent({name:"FocusTrap",props:{as:{type:[Object,String],default:"div"},initialFocus:{type:Object,default:null},features:{type:Number,default:30},containers:{type:[Object,Function],default:e.ref(new Set)}},inheritAttrs:!1,setup(t,{attrs:n,slots:l,expose:r}){let o=e.ref(null);r({el:o,$el:o});let a=e.computed(()=>G(o)),i=e.ref(!1);e.onMounted(()=>i.value=!0),e.onUnmounted(()=>i.value=!1),An({ownerDocument:a},e.computed(()=>i.value&&!!(t.features&16)));let s=zn({ownerDocument:a,container:o,initialFocus:e.computed(()=>t.initialFocus)},e.computed(()=>i.value&&!!(t.features&2)));Hn({ownerDocument:a,container:o,containers:t.containers,previousActiveElement:s},e.computed(()=>i.value&&!!(t.features&8)));let u=Fn();function c(p){let h=y(o);h&&(g=>g())(()=>{O(u.value,{[se.Forwards]:()=>{ce(h,U.First,{skipElements:[p.relatedTarget]})},[se.Backwards]:()=>{ce(h,U.Last,{skipElements:[p.relatedTarget]})}})})}let d=e.ref(!1);function v(p){p.key==="Tab"&&(d.value=!0,requestAnimationFrame(()=>{d.value=!1}))}function m(p){if(!i.value)return;let h=kt(t.containers);y(o)instanceof HTMLElement&&h.add(y(o));let g=p.relatedTarget;g instanceof HTMLElement&&g.dataset.headlessuiFocusGuard!=="true"&&(St(h,g)||(d.value?ce(y(o),O(u.value,{[se.Forwards]:()=>U.Next,[se.Backwards]:()=>U.Previous})|U.WrapAround,{relativeTo:p.target}):p.target instanceof HTMLElement&&J(p.target)))}return()=>{let p={},h={ref:o,onKeydown:v,onFocusout:m},{features:g,initialFocus:f,containers:b,...k}=t;return e.h(e.Fragment,[!!(g&4)&&e.h(ue,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:c,features:te.Focusable}),V({ourProps:h,theirProps:{...n,...k},slot:p,attrs:n,slots:l,name:"FocusTrap"}),!!(g&4)&&e.h(ue,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:c,features:te.Focusable})])}}}),{features:Et}),Q=[];Rn(()=>{function t(n){n.target instanceof HTMLElement&&n.target!==document.body&&Q[0]!==n.target&&(Q.unshift(n.target),Q=Q.filter(l=>l!=null&&l.isConnected),Q.splice(10))}window.addEventListener("click",t,{capture:!0}),window.addEventListener("mousedown",t,{capture:!0}),window.addEventListener("focus",t,{capture:!0}),document.body.addEventListener("click",t,{capture:!0}),document.body.addEventListener("mousedown",t,{capture:!0}),document.body.addEventListener("focus",t,{capture:!0})});function In(t){let n=e.ref(Q.slice());return e.watch([t],([l],[r])=>{r===!0&&l===!1?wt(()=>{n.value.splice(0)}):r===!1&&l===!0&&(n.value=Q.slice())},{flush:"post"}),()=>{var l;return(l=n.value.find(r=>r!=null&&r.isConnected))!=null?l:null}}function An({ownerDocument:t},n){let l=In(n);e.onMounted(()=>{e.watchEffect(()=>{var r,o;n.value||((r=t.value)==null?void 0:r.activeElement)===((o=t.value)==null?void 0:o.body)&&J(l())},{flush:"post"})}),e.onUnmounted(()=>{n.value&&J(l())})}function zn({ownerDocument:t,container:n,initialFocus:l},r){let o=e.ref(null),a=e.ref(!1);return e.onMounted(()=>a.value=!0),e.onUnmounted(()=>a.value=!1),e.onMounted(()=>{e.watch([n,l,r],(i,s)=>{if(i.every((c,d)=>(s==null?void 0:s[d])===c)||!r.value)return;let u=y(n);u&&wt(()=>{var c,d;if(!a.value)return;let v=y(l),m=(c=t.value)==null?void 0:c.activeElement;if(v){if(v===m){o.value=m;return}}else if(u.contains(m)){o.value=m;return}v?J(v):ce(u,U.First|U.NoScroll)===ct.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),o.value=(d=t.value)==null?void 0:d.activeElement})},{immediate:!0,flush:"post"})}),o}function Hn({ownerDocument:t,container:n,containers:l,previousActiveElement:r},o){var a;xt((a=t.value)==null?void 0:a.defaultView,"focus",i=>{if(!o.value)return;let s=kt(l);y(n)instanceof HTMLElement&&s.add(y(n));let u=r.value;if(!u)return;let c=i.target;c&&c instanceof HTMLElement?St(s,c)?(r.value=c,J(c)):(i.preventDefault(),i.stopPropagation(),J(u)):J(r.value)},!0)}function St(t,n){for(let l of t)if(l.contains(n))return!0;return!1}let Ve=new Map,ie=new Map;function Xe(t,n=e.ref(!0)){e.watchEffect(l=>{var r;if(!n.value)return;let o=y(t);if(!o)return;l(function(){var i;if(!o)return;let s=(i=ie.get(o))!=null?i:1;if(s===1?ie.delete(o):ie.set(o,s-1),s!==1)return;let u=Ve.get(o);u&&(u["aria-hidden"]===null?o.removeAttribute("aria-hidden"):o.setAttribute("aria-hidden",u["aria-hidden"]),o.inert=u.inert,Ve.delete(o))});let a=(r=ie.get(o))!=null?r:0;ie.set(o,a+1),a===0&&(Ve.set(o,{"aria-hidden":o.getAttribute("aria-hidden"),inert:o.inert}),o.setAttribute("aria-hidden","true"),o.inert=!0)})}let Ct=Symbol("ForcePortalRootContext");function Yn(){return e.inject(Ct,!1)}let Me=e.defineComponent({name:"ForcePortalRoot",props:{as:{type:[Object,String],default:"template"},force:{type:Boolean,default:!1}},setup(t,{slots:n,attrs:l}){return e.provide(Ct,t.force),()=>{let{force:r,...o}=t;return V({theirProps:o,ourProps:{},slot:{},slots:n,attrs:l,name:"ForcePortalRoot"})}}});function Un(t){let n=G(t);if(!n){if(t===null)return null;throw new Error(`[Headless UI]: Cannot find ownerDocument for contextElement: ${t}`)}let l=n.getElementById("headlessui-portal-root");if(l)return l;let r=n.createElement("div");return r.setAttribute("id","headlessui-portal-root"),n.body.appendChild(r)}let $t=e.defineComponent({name:"Portal",props:{as:{type:[Object,String],default:"div"}},setup(t,{slots:n,attrs:l}){let r=e.ref(null),o=e.computed(()=>G(r)),a=Yn(),i=e.inject(Nt,null),s=e.ref(a===!0||i==null?Un(r.value):i.resolveTarget());e.watchEffect(()=>{a||i!=null&&(s.value=i.resolveTarget())});let u=e.inject(Te,null);return e.onMounted(()=>{let c=y(r);c&&u&&e.onUnmounted(u.register(c))}),e.onUnmounted(()=>{var c,d;let v=(c=o.value)==null?void 0:c.getElementById("headlessui-portal-root");v&&s.value===v&&s.value.children.length<=0&&((d=s.value.parentElement)==null||d.removeChild(s.value))}),()=>{if(s.value===null)return null;let c={ref:r,"data-headlessui-portal":""};return e.h(e.Teleport,{to:s.value},V({ourProps:c,theirProps:t,slot:{},attrs:l,slots:n,name:"Portal"}))}}}),Te=Symbol("PortalParentContext");function qn(){let t=e.inject(Te,null),n=e.ref([]);function l(a){return n.value.push(a),t&&t.register(a),()=>r(a)}function r(a){let i=n.value.indexOf(a);i!==-1&&n.value.splice(i,1),t&&t.unregister(a)}let o={register:l,unregister:r,portals:n};return[n,e.defineComponent({name:"PortalWrapper",setup(a,{slots:i}){return e.provide(Te,o),()=>{var s;return(s=i.default)==null?void 0:s.call(i)}}})]}let Nt=Symbol("PortalGroupContext"),Wn=e.defineComponent({name:"PortalGroup",props:{as:{type:[Object,String],default:"template"},target:{type:Object,default:null}},setup(t,{attrs:n,slots:l}){let r=e.reactive({resolveTarget(){return t.target}});return e.provide(Nt,r),()=>{let{target:o,...a}=t;return V({theirProps:a,ourProps:{},slot:{},attrs:n,slots:l,name:"PortalGroup"})}}}),Bt=Symbol("StackContext");var Oe=(t=>(t[t.Add=0]="Add",t[t.Remove=1]="Remove",t))(Oe||{});function Kn(){return e.inject(Bt,()=>{})}function Jn({type:t,enabled:n,element:l,onUpdate:r}){let o=Kn();function a(...i){r==null||r(...i),o(...i)}e.onMounted(()=>{e.watch(n,(i,s)=>{i?a(0,t,l):s===!0&&a(1,t,l)},{immediate:!0,flush:"sync"})}),e.onUnmounted(()=>{n.value&&a(1,t,l)}),e.provide(Bt,a)}let Vt=Symbol("DescriptionContext");function Gn(){let t=e.inject(Vt,null);if(t===null)throw new Error("Missing parent");return t}function _t({slot:t=e.ref({}),name:n="Description",props:l={}}={}){let r=e.ref([]);function o(a){return r.value.push(a),()=>{let i=r.value.indexOf(a);i!==-1&&r.value.splice(i,1)}}return e.provide(Vt,{register:o,slot:t,name:n,props:l}),e.computed(()=>r.value.length>0?r.value.join(" "):void 0)}e.defineComponent({name:"Description",props:{as:{type:[Object,String],default:"p"},id:{type:String,default:()=>`headlessui-description-${P()}`}},setup(t,{attrs:n,slots:l}){let r=Gn();return e.onMounted(()=>e.onUnmounted(r.register(t.id))),()=>{let{name:o="Description",slot:a=e.ref({}),props:i={}}=r,{id:s,...u}=t,c={...Object.entries(i).reduce((d,[v,m])=>Object.assign(d,{[v]:e.unref(m)}),{}),id:s};return V({ourProps:c,theirProps:u,slot:a.value,attrs:n,slots:l,name:o})}}});function Xn(t){let n=e.shallowRef(t.getSnapshot());return e.onUnmounted(t.subscribe(()=>{n.value=t.getSnapshot()})),n}function Qn(t,n){let l=t(),r=new Set;return{getSnapshot(){return l},subscribe(o){return r.add(o),()=>r.delete(o)},dispatch(o,...a){let i=n[o].call(l,...a);i&&(l=i,r.forEach(s=>s()))}}}function Zn(){let t;return{before({doc:n}){var l;let r=n.documentElement;t=((l=n.defaultView)!=null?l:window).innerWidth-r.clientWidth},after({doc:n,d:l}){let r=n.documentElement,o=r.clientWidth-r.offsetWidth,a=t-o;l.style(r,"paddingRight",`${a}px`)}}}function eo(){if(!yt())return{};let t;return{before(){t=window.pageYOffset},after({doc:n,d:l,meta:r}){function o(i){return r.containers.flatMap(s=>s()).some(s=>s.contains(i))}l.style(n.body,"marginTop",`-${t}px`),window.scrollTo(0,0);let a=null;l.addEventListener(n,"click",i=>{if(i.target instanceof HTMLElement)try{let s=i.target.closest("a");if(!s)return;let{hash:u}=new URL(s.href),c=n.querySelector(u);c&&!o(c)&&(a=c)}catch{}},!0),l.addEventListener(n,"touchmove",i=>{i.target instanceof HTMLElement&&!o(i.target)&&i.preventDefault()},{passive:!1}),l.add(()=>{window.scrollTo(0,window.pageYOffset+t),a&&a.isConnected&&(a.scrollIntoView({block:"nearest"}),a=null)})}}}function to(){return{before({doc:t,d:n}){n.style(t.documentElement,"overflow","hidden")}}}function no(t){let n={};for(let l of t)Object.assign(n,l(n));return n}let Z=Qn(()=>new Map,{PUSH(t,n){var l;let r=(l=this.get(t))!=null?l:{doc:t,count:0,d:pe(),meta:new Set};return r.count++,r.meta.add(n),this.set(t,r),this},POP(t,n){let l=this.get(t);return l&&(l.count--,l.meta.delete(n)),this},SCROLL_PREVENT({doc:t,d:n,meta:l}){let r={doc:t,d:n,meta:no(l)},o=[eo(),Zn(),to()];o.forEach(({before:a})=>a==null?void 0:a(r)),o.forEach(({after:a})=>a==null?void 0:a(r))},SCROLL_ALLOW({d:t}){t.dispose()},TEARDOWN({doc:t}){this.delete(t)}});Z.subscribe(()=>{let t=Z.getSnapshot(),n=new Map;for(let[l]of t)n.set(l,l.documentElement.style.overflow);for(let l of t.values()){let r=n.get(l.doc)==="hidden",o=l.count!==0;(o&&!r||!o&&r)&&Z.dispatch(l.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",l),l.count===0&&Z.dispatch("TEARDOWN",l)}});function oo(t,n,l){let r=Xn(Z),o=e.computed(()=>{let a=t.value?r.value.get(t.value):void 0;return a?a.count>0:!1});return e.watch([t,n],([a,i],[s],u)=>{if(!a||!i)return;Z.dispatch("PUSH",a,l);let c=!1;u(()=>{c||(Z.dispatch("POP",s??a,l),c=!0)})},{immediate:!0}),o}function lo({defaultContainers:t=[],portals:n}={}){let l=e.ref(null),r=G(l);function o(){var a;let i=[];for(let s of t)s!==null&&(s instanceof HTMLElement?i.push(s):"value"in s&&s.value instanceof HTMLElement&&i.push(s.value));if(n!=null&&n.value)for(let s of n.value)i.push(s);for(let s of(a=r==null?void 0:r.querySelectorAll("html > *, body > *"))!=null?a:[])s!==document.body&&s!==document.head&&s instanceof HTMLElement&&s.id!=="headlessui-portal-root"&&(s.contains(y(l))||i.some(u=>s.contains(u))||i.push(s));return i}return{resolveContainers:o,contains(a){return o().some(i=>i.contains(a))},mainTreeNodeRef:l,MainTreeNode(){return e.h(ue,{features:te.Hidden,ref:l})}}}var ro=(t=>(t[t.Open=0]="Open",t[t.Closed=1]="Closed",t))(ro||{});let Pe=Symbol("DialogContext");function ve(t){let n=e.inject(Pe,null);if(n===null){let l=new Error(`<${t} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(l,ve),l}return n}let be="DC8F892D-2EBD-447C-A4C8-A03058436FF4",ao=e.defineComponent({name:"Dialog",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},open:{type:[Boolean,String],default:be},initialFocus:{type:Object,default:null},id:{type:String,default:()=>`headlessui-dialog-${P()}`}},emits:{close:t=>!0},setup(t,{emit:n,attrs:l,slots:r,expose:o}){var a;let i=e.ref(!1);e.onMounted(()=>{i.value=!0});let s=e.ref(0),u=ne(),c=e.computed(()=>t.open===be&&u!==null?(u.value&D.Open)===D.Open:t.open),d=e.ref(null),v=e.computed(()=>G(d));if(o({el:d,$el:d}),!(t.open!==be||u!==null))throw new Error("You forgot to provide an `open` prop to the `Dialog`.");if(typeof c.value!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${c.value===be?void 0:t.open}`);let m=e.computed(()=>i.value&&c.value?0:1),p=e.computed(()=>m.value===0),h=e.computed(()=>s.value>1),g=e.inject(Pe,null)!==null,[f,b]=qn(),{resolveContainers:k,mainTreeNodeRef:w,MainTreeNode:j}=lo({portals:f,defaultContainers:[e.computed(()=>{var _;return(_=I.panelRef.value)!=null?_:d.value})]}),F=e.computed(()=>h.value?"parent":"leaf"),x=e.computed(()=>u!==null?(u.value&D.Closing)===D.Closing:!1),C=e.computed(()=>g||x.value?!1:p.value),$=e.computed(()=>{var _,L,H;return(H=Array.from((L=(_=v.value)==null?void 0:_.querySelectorAll("body > *"))!=null?L:[]).find(Y=>Y.id==="headlessui-portal-root"?!1:Y.contains(y(w))&&Y instanceof HTMLElement))!=null?H:null});Xe($,C);let E=e.computed(()=>h.value?!0:p.value),N=e.computed(()=>{var _,L,H;return(H=Array.from((L=(_=v.value)==null?void 0:_.querySelectorAll("[data-headlessui-portal]"))!=null?L:[]).find(Y=>Y.contains(y(w))&&Y instanceof HTMLElement))!=null?H:null});Xe(N,E),Jn({type:"Dialog",enabled:e.computed(()=>m.value===0),element:d,onUpdate:(_,L)=>{if(L==="Dialog")return O(_,{[Oe.Add]:()=>s.value+=1,[Oe.Remove]:()=>s.value-=1})}});let M=_t({name:"DialogDescription",slot:e.computed(()=>({open:c.value}))}),A=e.ref(null),I={titleId:A,panelRef:e.ref(null),dialogState:m,setTitleId(_){A.value!==_&&(A.value=_)},close(){n("close",!1)}};e.provide(Pe,I);let re=e.computed(()=>!(!p.value||h.value));ze(k,(_,L)=>{I.close(),e.nextTick(()=>L==null?void 0:L.focus())},re);let q=e.computed(()=>!(h.value||m.value!==0));xt((a=v.value)==null?void 0:a.defaultView,"keydown",_=>{q.value&&(_.defaultPrevented||_.key===S.Escape&&(_.preventDefault(),_.stopPropagation(),I.close()))});let ee=e.computed(()=>!(x.value||m.value!==0||g));return oo(v,ee,_=>{var L;return{containers:[...(L=_.containers)!=null?L:[],k]}}),e.watchEffect(_=>{if(m.value!==0)return;let L=y(d);if(!L)return;let H=new ResizeObserver(Y=>{for(let ye of Y){let W=ye.target.getBoundingClientRect();W.x===0&&W.y===0&&W.width===0&&W.height===0&&I.close()}});H.observe(L),_(()=>H.disconnect())}),()=>{let{id:_,open:L,initialFocus:H,...Y}=t,ye={...l,ref:d,id:_,role:"dialog","aria-modal":m.value===0?!0:void 0,"aria-labelledby":A.value,"aria-describedby":M.value},W={open:m.value===0};return e.h(Me,{force:!0},()=>[e.h($t,()=>e.h(Wn,{target:d.value},()=>e.h(Me,{force:!1},()=>e.h(ae,{initialFocus:H,containers:k,features:p.value?O(F.value,{parent:ae.features.RestoreFocus,leaf:ae.features.All&~ae.features.FocusLock}):ae.features.None},()=>e.h(b,{},()=>V({ourProps:ye,theirProps:{...Y,...l},slot:W,attrs:l,slots:r,visible:m.value===0,features:z.RenderStrategy|z.Static,name:"Dialog"})))))),e.h(j)])}}});e.defineComponent({name:"DialogOverlay",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:()=>`headlessui-dialog-overlay-${P()}`}},setup(t,{attrs:n,slots:l}){let r=ve("DialogOverlay");function o(a){a.target===a.currentTarget&&(a.preventDefault(),a.stopPropagation(),r.close())}return()=>{let{id:a,...i}=t;return V({ourProps:{id:a,"aria-hidden":!0,onClick:o},theirProps:i,slot:{open:r.dialogState.value===0},attrs:n,slots:l,name:"DialogOverlay"})}}});e.defineComponent({name:"DialogBackdrop",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:()=>`headlessui-dialog-backdrop-${P()}`}},inheritAttrs:!1,setup(t,{attrs:n,slots:l,expose:r}){let o=ve("DialogBackdrop"),a=e.ref(null);return r({el:a,$el:a}),e.onMounted(()=>{if(o.panelRef.value===null)throw new Error("A <DialogBackdrop /> component is being used, but a <DialogPanel /> component is missing.")}),()=>{let{id:i,...s}=t,u={id:i,ref:a,"aria-hidden":!0};return e.h(Me,{force:!0},()=>e.h($t,()=>V({ourProps:u,theirProps:{...n,...s},slot:{open:o.dialogState.value===0},attrs:n,slots:l,name:"DialogBackdrop"})))}}});let io=e.defineComponent({name:"DialogPanel",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:()=>`headlessui-dialog-panel-${P()}`}},setup(t,{attrs:n,slots:l,expose:r}){let o=ve("DialogPanel");r({el:o.panelRef,$el:o.panelRef});function a(i){i.stopPropagation()}return()=>{let{id:i,...s}=t,u={id:i,ref:o.panelRef,onClick:a};return V({ourProps:u,theirProps:s,slot:{open:o.dialogState.value===0},attrs:n,slots:l,name:"DialogPanel"})}}}),so=e.defineComponent({name:"DialogTitle",props:{as:{type:[Object,String],default:"h2"},id:{type:String,default:()=>`headlessui-dialog-title-${P()}`}},setup(t,{attrs:n,slots:l}){let r=ve("DialogTitle");return e.onMounted(()=>{r.setTitleId(t.id),e.onUnmounted(()=>r.setTitleId(null))}),()=>{let{id:o,...a}=t;return V({ourProps:{id:o},theirProps:a,slot:{open:r.dialogState.value===0},attrs:n,slots:l,name:"DialogTitle"})}}});var co=(t=>(t[t.Open=0]="Open",t[t.Closed=1]="Closed",t))(co||{});let Dt=Symbol("DisclosureContext");function He(t){let n=e.inject(Dt,null);if(n===null){let l=new Error(`<${t} /> is missing a parent <Disclosure /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(l,He),l}return n}let Mt=Symbol("DisclosurePanelContext");function uo(){return e.inject(Mt,null)}let Tt=e.defineComponent({name:"Disclosure",props:{as:{type:[Object,String],default:"template"},defaultOpen:{type:[Boolean],default:!1}},setup(t,{slots:n,attrs:l}){let r=e.ref(t.defaultOpen?0:1),o=e.ref(null),a=e.ref(null),i={buttonId:e.ref(null),panelId:e.ref(null),disclosureState:r,panel:o,button:a,toggleDisclosure(){r.value=O(r.value,{0:1,1:0})},closeDisclosure(){r.value!==1&&(r.value=1)},close(s){i.closeDisclosure();let u=(()=>s?s instanceof HTMLElement?s:s.value instanceof HTMLElement?y(s):y(i.button):y(i.button))();u==null||u.focus()}};return e.provide(Dt,i),ke(e.computed(()=>O(r.value,{0:D.Open,1:D.Closed}))),()=>{let{defaultOpen:s,...u}=t,c={open:r.value===0,close:i.close};return V({theirProps:u,ourProps:{},slot:c,slots:n,attrs:l,name:"Disclosure"})}}}),Le=e.defineComponent({name:"DisclosureButton",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1},id:{type:String,default:()=>`headlessui-disclosure-button-${P()}`}},setup(t,{attrs:n,slots:l,expose:r}){let o=He("DisclosureButton");e.onMounted(()=>{o.buttonId.value=t.id}),e.onUnmounted(()=>{o.buttonId.value=null});let a=uo(),i=e.computed(()=>a===null?!1:a.value===o.panelId.value),s=e.ref(null);r({el:s,$el:s}),i.value||e.watchEffect(()=>{o.button.value=s.value});let u=Ee(e.computed(()=>({as:t.as,type:n.type})),s);function c(){var m;t.disabled||(i.value?(o.toggleDisclosure(),(m=y(o.button))==null||m.focus()):o.toggleDisclosure())}function d(m){var p;if(!t.disabled)if(i.value)switch(m.key){case S.Space:case S.Enter:m.preventDefault(),m.stopPropagation(),o.toggleDisclosure(),(p=y(o.button))==null||p.focus();break}else switch(m.key){case S.Space:case S.Enter:m.preventDefault(),m.stopPropagation(),o.toggleDisclosure();break}}function v(m){switch(m.key){case S.Space:m.preventDefault();break}}return()=>{let m={open:o.disclosureState.value===0},{id:p,...h}=t,g=i.value?{ref:s,type:u.value,onClick:c,onKeydown:d}:{id:p,ref:s,type:u.value,"aria-expanded":t.disabled?void 0:o.disclosureState.value===0,"aria-controls":y(o.panel)?o.panelId.value:void 0,disabled:t.disabled?!0:void 0,onClick:c,onKeydown:d,onKeyup:v};return V({ourProps:g,theirProps:h,slot:m,attrs:n,slots:l,name:"DisclosureButton"})}}}),Ot=e.defineComponent({name:"DisclosurePanel",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:()=>`headlessui-disclosure-panel-${P()}`}},setup(t,{attrs:n,slots:l,expose:r}){let o=He("DisclosurePanel");e.onMounted(()=>{o.panelId.value=t.id}),e.onUnmounted(()=>{o.panelId.value=null}),r({el:o.panel,$el:o.panel}),e.provide(Mt,o.panelId);let a=ne(),i=e.computed(()=>a!==null?(a.value&D.Open)===D.Open:o.disclosureState.value===0);return()=>{let s={open:o.disclosureState.value===0,close:o.close},{id:u,...c}=t,d={id:u,ref:o.panel};return V({ourProps:d,theirProps:c,slot:s,attrs:n,slots:l,features:z.RenderStrategy|z.Static,visible:i.value,name:"DisclosurePanel"})}}}),Qe=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function Ze(t){var n,l;let r=(n=t.innerText)!=null?n:"",o=t.cloneNode(!0);if(!(o instanceof HTMLElement))return r;let a=!1;for(let s of o.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))s.remove(),a=!0;let i=a?(l=o.innerText)!=null?l:"":r;return Qe.test(i)&&(i=i.replace(Qe,"")),i}function mo(t){let n=t.getAttribute("aria-label");if(typeof n=="string")return n.trim();let l=t.getAttribute("aria-labelledby");if(l){let r=l.split(" ").map(o=>{let a=document.getElementById(o);if(a){let i=a.getAttribute("aria-label");return typeof i=="string"?i.trim():Ze(a).trim()}return null}).filter(Boolean);if(r.length>0)return r.join(", ")}return Ze(t).trim()}function fo(t){let n=e.ref(""),l=e.ref("");return()=>{let r=y(t);if(!r)return"";let o=r.innerText;if(n.value===o)return l.value;let a=mo(r).trim().toLowerCase();return n.value=o,l.value=a,a}}var po=(t=>(t[t.Open=0]="Open",t[t.Closed=1]="Closed",t))(po||{}),vo=(t=>(t[t.Pointer=0]="Pointer",t[t.Other=1]="Other",t))(vo||{});function go(t){requestAnimationFrame(()=>requestAnimationFrame(t))}let Pt=Symbol("MenuContext");function Se(t){let n=e.inject(Pt,null);if(n===null){let l=new Error(`<${t} /> is missing a parent <Menu /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(l,Se),l}return n}let Lt=e.defineComponent({name:"Menu",props:{as:{type:[Object,String],default:"template"}},setup(t,{slots:n,attrs:l}){let r=e.ref(1),o=e.ref(null),a=e.ref(null),i=e.ref([]),s=e.ref(""),u=e.ref(null),c=e.ref(1);function d(m=p=>p){let p=u.value!==null?i.value[u.value]:null,h=Ae(m(i.value.slice()),f=>y(f.dataRef.domRef)),g=p?h.indexOf(p):null;return g===-1&&(g=null),{items:h,activeItemIndex:g}}let v={menuState:r,buttonRef:o,itemsRef:a,items:i,searchQuery:s,activeItemIndex:u,activationTrigger:c,closeMenu:()=>{r.value=1,u.value=null},openMenu:()=>r.value=0,goToItem(m,p,h){let g=d(),f=at(m===B.Specific?{focus:B.Specific,id:p}:{focus:m},{resolveItems:()=>g.items,resolveActiveIndex:()=>g.activeItemIndex,resolveId:b=>b.id,resolveDisabled:b=>b.dataRef.disabled});s.value="",u.value=f,c.value=h??1,i.value=g.items},search(m){let p=s.value!==""?0:1;s.value+=m.toLowerCase();let h=(u.value!==null?i.value.slice(u.value+p).concat(i.value.slice(0,u.value+p)):i.value).find(f=>f.dataRef.textValue.startsWith(s.value)&&!f.dataRef.disabled),g=h?i.value.indexOf(h):-1;g===-1||g===u.value||(u.value=g,c.value=1)},clearSearch(){s.value=""},registerItem(m,p){let h=d(g=>[...g,{id:m,dataRef:p}]);i.value=h.items,u.value=h.activeItemIndex,c.value=1},unregisterItem(m){let p=d(h=>{let g=h.findIndex(f=>f.id===m);return g!==-1&&h.splice(g,1),h});i.value=p.items,u.value=p.activeItemIndex,c.value=1}};return ze([o,a],(m,p)=>{var h;v.closeMenu(),Ie(p,Re.Loose)||(m.preventDefault(),(h=y(o))==null||h.focus())},e.computed(()=>r.value===0)),e.provide(Pt,v),ke(e.computed(()=>O(r.value,{0:D.Open,1:D.Closed}))),()=>{let m={open:r.value===0,close:v.closeMenu};return V({ourProps:{},theirProps:t,slot:m,slots:n,attrs:l,name:"Menu"})}}}),jt=e.defineComponent({name:"MenuButton",props:{disabled:{type:Boolean,default:!1},as:{type:[Object,String],default:"button"},id:{type:String,default:()=>`headlessui-menu-button-${P()}`}},setup(t,{attrs:n,slots:l,expose:r}){let o=Se("MenuButton");r({el:o.buttonRef,$el:o.buttonRef});function a(c){switch(c.key){case S.Space:case S.Enter:case S.ArrowDown:c.preventDefault(),c.stopPropagation(),o.openMenu(),e.nextTick(()=>{var d;(d=y(o.itemsRef))==null||d.focus({preventScroll:!0}),o.goToItem(B.First)});break;case S.ArrowUp:c.preventDefault(),c.stopPropagation(),o.openMenu(),e.nextTick(()=>{var d;(d=y(o.itemsRef))==null||d.focus({preventScroll:!0}),o.goToItem(B.Last)});break}}function i(c){switch(c.key){case S.Space:c.preventDefault();break}}function s(c){t.disabled||(o.menuState.value===0?(o.closeMenu(),e.nextTick(()=>{var d;return(d=y(o.buttonRef))==null?void 0:d.focus({preventScroll:!0})})):(c.preventDefault(),o.openMenu(),go(()=>{var d;return(d=y(o.itemsRef))==null?void 0:d.focus({preventScroll:!0})})))}let u=Ee(e.computed(()=>({as:t.as,type:n.type})),o.buttonRef);return()=>{var c;let d={open:o.menuState.value===0},{id:v,...m}=t,p={ref:o.buttonRef,id:v,type:u.value,"aria-haspopup":"menu","aria-controls":(c=y(o.itemsRef))==null?void 0:c.id,"aria-expanded":t.disabled?void 0:o.menuState.value===0,onKeydown:a,onKeyup:i,onClick:s};return V({ourProps:p,theirProps:m,slot:d,attrs:n,slots:l,name:"MenuButton"})}}}),Ft=e.defineComponent({name:"MenuItems",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:()=>`headlessui-menu-items-${P()}`}},setup(t,{attrs:n,slots:l,expose:r}){let o=Se("MenuItems"),a=e.ref(null);r({el:o.itemsRef,$el:o.itemsRef}),st({container:e.computed(()=>y(o.itemsRef)),enabled:e.computed(()=>o.menuState.value===0),accept(d){return d.getAttribute("role")==="menuitem"?NodeFilter.FILTER_REJECT:d.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(d){d.setAttribute("role","none")}});function i(d){var v;switch(a.value&&clearTimeout(a.value),d.key){case S.Space:if(o.searchQuery.value!=="")return d.preventDefault(),d.stopPropagation(),o.search(d.key);case S.Enter:if(d.preventDefault(),d.stopPropagation(),o.activeItemIndex.value!==null){let m=o.items.value[o.activeItemIndex.value];(v=y(m.dataRef.domRef))==null||v.click()}o.closeMenu(),dt(y(o.buttonRef));break;case S.ArrowDown:return d.preventDefault(),d.stopPropagation(),o.goToItem(B.Next);case S.ArrowUp:return d.preventDefault(),d.stopPropagation(),o.goToItem(B.Previous);case S.Home:case S.PageUp:return d.preventDefault(),d.stopPropagation(),o.goToItem(B.First);case S.End:case S.PageDown:return d.preventDefault(),d.stopPropagation(),o.goToItem(B.Last);case S.Escape:d.preventDefault(),d.stopPropagation(),o.closeMenu(),e.nextTick(()=>{var m;return(m=y(o.buttonRef))==null?void 0:m.focus({preventScroll:!0})});break;case S.Tab:d.preventDefault(),d.stopPropagation(),o.closeMenu(),e.nextTick(()=>Sn(y(o.buttonRef),d.shiftKey?U.Previous:U.Next));break;default:d.key.length===1&&(o.search(d.key),a.value=setTimeout(()=>o.clearSearch(),350));break}}function s(d){switch(d.key){case S.Space:d.preventDefault();break}}let u=ne(),c=e.computed(()=>u!==null?(u.value&D.Open)===D.Open:o.menuState.value===0);return()=>{var d,v;let m={open:o.menuState.value===0},{id:p,...h}=t,g={"aria-activedescendant":o.activeItemIndex.value===null||(d=o.items.value[o.activeItemIndex.value])==null?void 0:d.id,"aria-labelledby":(v=y(o.buttonRef))==null?void 0:v.id,id:p,onKeydown:i,onKeyup:s,role:"menu",tabIndex:0,ref:o.itemsRef};return V({ourProps:g,theirProps:h,slot:m,attrs:n,slots:l,features:z.RenderStrategy|z.Static,visible:c.value,name:"MenuItems"})}}}),Rt=e.defineComponent({name:"MenuItem",inheritAttrs:!1,props:{as:{type:[Object,String],default:"template"},disabled:{type:Boolean,default:!1},id:{type:String,default:()=>`headlessui-menu-item-${P()}`}},setup(t,{slots:n,attrs:l,expose:r}){let o=Se("MenuItem"),a=e.ref(null);r({el:a,$el:a});let i=e.computed(()=>o.activeItemIndex.value!==null?o.items.value[o.activeItemIndex.value].id===t.id:!1),s=fo(a),u=e.computed(()=>({disabled:t.disabled,get textValue(){return s()},domRef:a}));e.onMounted(()=>o.registerItem(t.id,u)),e.onUnmounted(()=>o.unregisterItem(t.id)),e.watchEffect(()=>{o.menuState.value===0&&i.value&&o.activationTrigger.value!==0&&e.nextTick(()=>{var g,f;return(f=(g=y(a))==null?void 0:g.scrollIntoView)==null?void 0:f.call(g,{block:"nearest"})})});function c(g){if(t.disabled)return g.preventDefault();o.closeMenu(),dt(y(o.buttonRef))}function d(){if(t.disabled)return o.goToItem(B.Nothing);o.goToItem(B.Specific,t.id)}let v=ht();function m(g){v.update(g)}function p(g){v.wasMoved(g)&&(t.disabled||i.value||o.goToItem(B.Specific,t.id,0))}function h(g){v.wasMoved(g)&&(t.disabled||i.value&&o.goToItem(B.Nothing))}return()=>{let{disabled:g}=t,f={active:i.value,disabled:g,close:o.closeMenu},{id:b,...k}=t;return V({ourProps:{id:b,ref:a,role:"menuitem",tabIndex:g===!0?void 0:-1,"aria-disabled":g===!0?!0:void 0,disabled:void 0,onClick:c,onFocus:d,onPointerenter:m,onMouseenter:m,onPointermove:p,onMousemove:p,onPointerleave:h,onMouseleave:h},theirProps:{...l,...k},slot:f,attrs:l,slots:n,name:"MenuItem"})}}}),It=Symbol("LabelContext");function At(){let t=e.inject(It,null);if(t===null){let n=new Error("You used a <Label /> component, but it is not inside a parent.");throw Error.captureStackTrace&&Error.captureStackTrace(n,At),n}return t}function ho({slot:t={},name:n="Label",props:l={}}={}){let r=e.ref([]);function o(a){return r.value.push(a),()=>{let i=r.value.indexOf(a);i!==-1&&r.value.splice(i,1)}}return e.provide(It,{register:o,slot:t,name:n,props:l}),e.computed(()=>r.value.length>0?r.value.join(" "):void 0)}let yo=e.defineComponent({name:"Label",props:{as:{type:[Object,String],default:"label"},passive:{type:[Boolean],default:!1},id:{type:String,default:()=>`headlessui-label-${P()}`}},setup(t,{slots:n,attrs:l}){let r=At();return e.onMounted(()=>e.onUnmounted(r.register(t.id))),()=>{let{name:o="Label",slot:a={},props:i={}}=r,{id:s,passive:u,...c}=t,d={...Object.entries(i).reduce((v,[m,p])=>Object.assign(v,{[m]:e.unref(p)}),{}),id:s};return u&&(delete d.onClick,delete d.htmlFor,delete c.onClick),V({ourProps:d,theirProps:c,slot:a,attrs:l,slots:n,name:o})}}}),zt=Symbol("GroupContext"),bo=e.defineComponent({name:"SwitchGroup",props:{as:{type:[Object,String],default:"template"}},setup(t,{slots:n,attrs:l}){let r=e.ref(null),o=ho({name:"SwitchLabel",props:{htmlFor:e.computed(()=>{var i;return(i=r.value)==null?void 0:i.id}),onClick(i){r.value&&(i.currentTarget.tagName==="LABEL"&&i.preventDefault(),r.value.click(),r.value.focus({preventScroll:!0}))}}}),a=_t({name:"SwitchDescription"});return e.provide(zt,{switchRef:r,labelledby:o,describedby:a}),()=>V({theirProps:t,ourProps:{},slot:{},slots:n,attrs:l,name:"SwitchGroup"})}}),xo=e.defineComponent({name:"Switch",emits:{"update:modelValue":t=>!0},props:{as:{type:[Object,String],default:"button"},modelValue:{type:Boolean,default:void 0},defaultChecked:{type:Boolean,optional:!0},form:{type:String,optional:!0},name:{type:String,optional:!0},value:{type:String,optional:!0},id:{type:String,default:()=>`headlessui-switch-${P()}`}},inheritAttrs:!1,setup(t,{emit:n,attrs:l,slots:r,expose:o}){let a=e.inject(zt,null),[i,s]=gt(e.computed(()=>t.modelValue),f=>n("update:modelValue",f),e.computed(()=>t.defaultChecked));function u(){s(!i.value)}let c=e.ref(null),d=a===null?c:a.switchRef,v=Ee(e.computed(()=>({as:t.as,type:l.type})),d);o({el:d,$el:d});function m(f){f.preventDefault(),u()}function p(f){f.key===S.Space?(f.preventDefault(),u()):f.key===S.Enter&&Cn(f.currentTarget)}function h(f){f.preventDefault()}let g=e.computed(()=>{var f,b;return(b=(f=y(d))==null?void 0:f.closest)==null?void 0:b.call(f,"form")});return e.onMounted(()=>{e.watch([g],()=>{if(!g.value||t.defaultChecked===void 0)return;function f(){s(t.defaultChecked)}return g.value.addEventListener("reset",f),()=>{var b;(b=g.value)==null||b.removeEventListener("reset",f)}},{immediate:!0})}),()=>{let{id:f,name:b,value:k,form:w,...j}=t,F={checked:i.value},x={id:f,ref:d,role:"switch",type:v.value,tabIndex:0,"aria-checked":i.value,"aria-labelledby":a==null?void 0:a.labelledby.value,"aria-describedby":a==null?void 0:a.describedby.value,onClick:m,onKeyup:p,onKeypress:h};return e.h(e.Fragment,[b!=null&&i.value!=null?e.h(ue,rt({features:te.Hidden,as:"input",type:"checkbox",hidden:!0,readOnly:!0,checked:i.value,form:w,name:b,value:k})):null,V({ourProps:x,theirProps:{...l,...me(j,["modelValue","defaultChecked"])},slot:F,attrs:l,slots:r,name:"Switch"})])}}}),wo=yo;function ko(t){let n={called:!1};return(...l)=>{if(!n.called)return n.called=!0,t(...l)}}function _e(t,...n){t&&n.length>0&&t.classList.add(...n)}function xe(t,...n){t&&n.length>0&&t.classList.remove(...n)}var je=(t=>(t.Finished="finished",t.Cancelled="cancelled",t))(je||{});function Eo(t,n){let l=pe();if(!t)return l.dispose;let{transitionDuration:r,transitionDelay:o}=getComputedStyle(t),[a,i]=[r,o].map(s=>{let[u=0]=s.split(",").filter(Boolean).map(c=>c.includes("ms")?parseFloat(c):parseFloat(c)*1e3).sort((c,d)=>d-c);return u});return a!==0?l.setTimeout(()=>n("finished"),a+i):n("finished"),l.add(()=>n("cancelled")),l.dispose}function et(t,n,l,r,o,a){let i=pe(),s=a!==void 0?ko(a):()=>{};return xe(t,...o),_e(t,...n,...l),i.nextFrame(()=>{xe(t,...l),_e(t,...r),i.add(Eo(t,u=>(xe(t,...r,...n),_e(t,...o),s(u))))}),i.add(()=>xe(t,...n,...l,...r,...o)),i.add(()=>s("cancelled")),i.dispose}function X(t=""){return t.split(" ").filter(n=>n.trim().length>1)}let Ye=Symbol("TransitionContext");var So=(t=>(t.Visible="visible",t.Hidden="hidden",t))(So||{});function Co(){return e.inject(Ye,null)!==null}function $o(){let t=e.inject(Ye,null);if(t===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return t}function No(){let t=e.inject(Ue,null);if(t===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return t}let Ue=Symbol("NestingContext");function Ce(t){return"children"in t?Ce(t.children):t.value.filter(({state:n})=>n==="visible").length>0}function Ht(t){let n=e.ref([]),l=e.ref(!1);e.onMounted(()=>l.value=!0),e.onUnmounted(()=>l.value=!1);function r(a,i=K.Hidden){let s=n.value.findIndex(({id:u})=>u===a);s!==-1&&(O(i,{[K.Unmount](){n.value.splice(s,1)},[K.Hidden](){n.value[s].state="hidden"}}),!Ce(n)&&l.value&&(t==null||t()))}function o(a){let i=n.value.find(({id:s})=>s===a);return i?i.state!=="visible"&&(i.state="visible"):n.value.push({id:a,state:"visible"}),()=>r(a,K.Unmount)}return{children:n,register:o,unregister:r}}let Yt=z.RenderStrategy,Fe=e.defineComponent({props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(t,{emit:n,attrs:l,slots:r,expose:o}){let a=e.ref(0);function i(){a.value|=D.Opening,n("beforeEnter")}function s(){a.value&=~D.Opening,n("afterEnter")}function u(){a.value|=D.Closing,n("beforeLeave")}function c(){a.value&=~D.Closing,n("afterLeave")}if(!Co()&&gn())return()=>e.h(Ut,{...t,onBeforeEnter:i,onAfterEnter:s,onBeforeLeave:u,onAfterLeave:c},r);let d=e.ref(null),v=e.computed(()=>t.unmount?K.Unmount:K.Hidden);o({el:d,$el:d});let{show:m,appear:p}=$o(),{register:h,unregister:g}=No(),f=e.ref(m.value?"visible":"hidden"),b={value:!0},k=P(),w={value:!1},j=Ht(()=>{!w.value&&f.value!=="hidden"&&(f.value="hidden",g(k),c())});e.onMounted(()=>{let I=h(k);e.onUnmounted(I)}),e.watchEffect(()=>{if(v.value===K.Hidden&&k){if(m.value&&f.value!=="visible"){f.value="visible";return}O(f.value,{hidden:()=>g(k),visible:()=>h(k)})}});let F=X(t.enter),x=X(t.enterFrom),C=X(t.enterTo),$=X(t.entered),E=X(t.leave),N=X(t.leaveFrom),M=X(t.leaveTo);e.onMounted(()=>{e.watchEffect(()=>{if(f.value==="visible"){let I=y(d);if(I instanceof Comment&&I.data==="")throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}})});function A(I){let re=b.value&&!p.value,q=y(d);!q||!(q instanceof HTMLElement)||re||(w.value=!0,m.value&&i(),m.value||u(),I(m.value?et(q,F,x,C,$,ee=>{w.value=!1,ee===je.Finished&&s()}):et(q,E,N,M,$,ee=>{w.value=!1,ee===je.Finished&&(Ce(j)||(f.value="hidden",g(k),c()))})))}return e.onMounted(()=>{e.watch([m],(I,re,q)=>{A(q),b.value=!1},{immediate:!0})}),e.provide(Ue,j),ke(e.computed(()=>O(f.value,{visible:D.Open,hidden:D.Closed})|a.value)),()=>{let{appear:I,show:re,enter:q,enterFrom:ee,enterTo:_,entered:L,leave:H,leaveFrom:Y,leaveTo:ye,...W}=t,Xt={ref:d},Qt={...W,...p.value&&m.value&&fe.isServer?{class:e.normalizeClass([l.class,W.class,...F,...x])}:{}};return V({theirProps:Qt,ourProps:Xt,slot:{},slots:r,attrs:l,features:Yt,visible:f.value==="visible",name:"TransitionChild"})}}}),Bo=Fe,Ut=e.defineComponent({inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(t,{emit:n,attrs:l,slots:r}){let o=ne(),a=e.computed(()=>t.show===null&&o!==null?(o.value&D.Open)===D.Open:t.show);e.watchEffect(()=>{if(![!0,!1].includes(a.value))throw new Error('A <Transition /> is used but it is missing a `:show="true | false"` prop.')});let i=e.ref(a.value?"visible":"hidden"),s=Ht(()=>{i.value="hidden"}),u=e.ref(!0),c={show:a,appear:e.computed(()=>t.appear||!u.value)};return e.onMounted(()=>{e.watchEffect(()=>{u.value=!1,a.value?i.value="visible":Ce(s)||(i.value="hidden")})}),e.provide(Ue,s),e.provide(Ye,c),()=>{let d=me(t,["show","appear","unmount","onBeforeEnter","onBeforeLeave","onAfterEnter","onAfterLeave"]),v={unmount:t.unmount};return V({ourProps:{...v,as:"template"},theirProps:{},slot:{},slots:{...r,default:()=>[e.h(Bo,{onBeforeEnter:()=>n("beforeEnter"),onAfterEnter:()=>n("afterEnter"),onBeforeLeave:()=>n("beforeLeave"),onAfterLeave:()=>n("afterLeave"),...l,...v,...d},r.default)]},attrs:{},features:Yt,visible:i.value==="visible",name:"Transition"})}}});function Vo(t,n){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 13.5L12 21m0 0l-7.5-7.5M12 21V3"})])}function _o(t,n){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M7.5 7.5h-.75A2.25 2.25 0 004.5 9.75v7.5a2.25 2.25 0 002.25 2.25h7.5a2.25 2.25 0 002.25-2.25v-7.5a2.25 2.25 0 00-2.25-2.25h-.75m0-3l-3-3m0 0l-3 3m3-3v11.25m6-2.25h.75a2.25 2.25 0 012.25 2.25v7.5a2.25 2.25 0 01-2.25 2.25h-7.5a2.25 2.25 0 01-2.25-2.25v-.75"})])}function Do(t,n){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4.5 10.5L12 3m0 0l7.5 7.5M12 3v18"})])}function Mo(t,n){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"})])}function qt(t,n){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})])}function qe(t,n){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4.5 12.75l6 6 9-13.5"})])}function To(t,n){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 8.25l-7.5 7.5-7.5-7.5"})])}function Wt(t,n){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 19.5L8.25 12l7.5-7.5"})])}function $e(t,n){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"})])}function Oo(t,n){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 15L12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9"})])}function Po(t,n){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9v3.75m9-.75a9 9 0 11-18 0 9 9 0 0118 0zm-9 3.75h.008v.008H12v-.008z"})])}function Ne(t,n){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z"})])}function Lo(t,n){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M10.05 4.575a1.575 1.575 0 10-3.15 0v3m3.15-3v-1.5a1.575 1.575 0 013.15 0v1.5m-3.15 0l.075 5.925m3.075.75V4.575m0 0a1.575 1.575 0 013.15 0V15M6.9 7.575a1.575 1.575 0 10-3.15 0v8.175a6.75 6.75 0 006.75 6.75h2.018a5.25 5.25 0 003.712-1.538l1.732-1.732a5.25 5.25 0 001.538-3.712l.003-2.024a.668.668 0 01.198-.471 1.575 1.575 0 10-2.228-2.228 3.818 3.818 0 00-1.12 2.687M6.9 7.575V12m6.27 4.318A4.49 4.49 0 0116.35 15m.002 0h-.002"})])}function jo(t,n){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M2.25 12l8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25"})])}function Kt(t,n){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z"})])}function ge(t,n){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9.75 9.75l4.5 4.5m0-4.5l-4.5 4.5M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})])}function we(t,n){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})])}const Fo={class:"py-1"},Ro=["onClick"],Io={name:"uiDropdown"},Jt=Object.assign(Io,{props:{items:{type:Array,required:!0},position:{type:String,default:"left"},disabled:Boolean,label:String},emits:["optionSelected"],setup(t,{emit:n}){const l=t,r=e.computed(()=>{let a=l.items.find(i=>i.active===!0);return a?a.name:l.label}),o=a=>{l.disabled||n("optionSelected",a.value)};return(a,i)=>(e.openBlock(),e.createBlock(e.unref(Lt),{as:"div",class:e.normalizeClass(["relative inline-block text-left",{"opacity-25":t.disabled}])},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(e.unref(jt),{class:"inline-flex justify-center w-full rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-sm font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-100 focus:ring-indigo-500"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.value)+" ",1),e.createVNode(e.unref(To),{"aria-hidden":"true",class:"-mr-1 ml-2 h-5 w-5"})]),_:1})]),e.createVNode(e.Transition,{"enter-active-class":"transition ease-out duration-100","enter-from-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"},{default:e.withCtx(()=>[t.disabled?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(Ft),{key:0,class:e.normalizeClass([{"right-0":t.position==="right","left-0":t.position==="left"},"origin-top-right absolute mt-2 w-56 rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5 focus:outline-none z-10"])},{default:e.withCtx(()=>[e.createElementVNode("div",Fo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(s,u)=>(e.openBlock(),e.createBlock(e.unref(Rt),{key:u},{default:e.withCtx(()=>[e.createElementVNode("a",{onClick:c=>o(s),class:e.normalizeClass([s.active?"bg-gray-100 text-gray-900":"text-gray-700","block px-4 py-2 text-sm cursor-pointer"])},e.toDisplayString(s.name),11,Ro)]),_:2},1024))),128))])]),_:1},8,["class"]))]),_:1})]),_:1},8,["class"]))}}),Ao={class:"flex justify-between"},zo={key:0,class:"block text-sm font-medium text-gray-700"},Ho={key:1,class:"text-[10px] text-gray-500 uppercase justify-self-end"},Yo={key:0,class:"inline-flex items-center px-3 rounded-l-md border border-r-0 border-gray-300 bg-gray-50 text-gray-500 sm:text-sm"},Uo=["disabled","name","placeholder","type"],qo={key:1,class:"absolute inset-y-0 right-0 pr-3 flex items-center pointer-events-none"},Wo={name:"uiInput"},Ko=Object.assign(Wo,{props:{label:String,type:{type:String,default:"text"},name:String,placeholder:{type:String,default:"..."},icon:{type:Function,default:()=>{}},disabled:Boolean,color:{type:String,default:"gray"},value:{type:String,default:""},error:String,optional:String,addOn:String},emits:["inputChanged"],setup(t,{emit:n}){const l=t,r=a=>{n("inputChanged",{value:a.target.value,name:a.target.name})},o=e.ref(l.value);return(a,i)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",Ao,[t.label?(e.openBlock(),e.createElementBlock("label",zo,e.toDisplayString(t.label),1)):e.createCommentVNode("",!0),t.optional?(e.openBlock(),e.createElementBlock("span",Ho,e.toDisplayString(t.optional),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:e.normalizeClass([{"mt-1":t.label},"relative flex"])},[t.addOn?(e.openBlock(),e.createElementBlock("span",Yo,e.toDisplayString(t.addOn),1)):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":i[0]||(i[0]=s=>o.value=s),class:e.normalizeClass([{"border-gray-300":t.color!=="danger"||t.color!=="warning"||t.color!=="success","border-red-300":t.color==="danger","border-yellow-400":t.color==="warning","border-green-400":t.color==="success","bg-gray-100":t.disabled,"text-black":t.color!=="danger"||t.color!=="warning"||t.color!=="success","text-red-300":t.color==="danger","text-yellow-400":t.color==="warning","text-green-400":t.color==="success","rounded-md":!t.addOn,"rounded-r-md":t.addOn},"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 placeholder-gray-300"]),disabled:t.disabled,name:t.name,placeholder:t.placeholder,type:t.type,onInput:r},null,42,Uo),[[e.vModelDynamic,o.value]]),t.icon?(e.openBlock(),e.createElementBlock("div",qo,[e.createVNode(R,{icon:t.icon,color:t.color},null,8,["icon","color"]),e.withDirectives(e.createVNode(R,{icon:e.unref(qe),color:"green"},null,8,["icon"]),[[e.vShow,t.color==="success"]]),e.withDirectives(e.createVNode(R,{icon:e.unref(Ne),color:"yellow"},null,8,["icon"]),[[e.vShow,t.color==="warning"]]),e.withDirectives(e.createVNode(R,{icon:e.unref(Po),color:"red"},null,8,["icon"]),[[e.vShow,t.color==="danger"]])])):e.createCommentVNode("",!0)],2),e.withDirectives(e.createElementVNode("p",{class:e.normalizeClass([{"text-gray-300":t.color!=="danger"||t.color!=="warning"||t.color!=="success","text-red-300":t.color==="danger","text-yellow-400":t.color==="warning","text-green-400":t.color==="success"},"mt-2 text-xs flex flex-row items-center"])},[e.createVNode(R,{icon:e.unref(ge),color:"red",class:"mr-2"},null,8,["icon"]),e.createTextVNode(e.toDisplayString(t.error),1)],2),[[e.vShow,t.error]])]))}}),Jo={class:"flex justify-between"},Go={key:0,class:"block text-sm font-medium text-gray-700"},Xo={key:1,class:"text-[10px] text-gray-500 uppercase"},Qo=["onDrop"],Zo={class:"space-y-1 flex flex-col items-center justify-center"},el={class:"flex text-sm text-gray-600 flex flex-col sm:flex-row text-center"},tl={for:"file-upload",class:"relative cursor-pointer rounded-md font-medium text-indigo-600 focus-within:outline-none focus-within:ring-2 focus-within:ring-indigo-500 focus-within:ring-offset-2 hover:text-indigo-500"},nl=["accept"],ol={class:"pl-1"},ll={class:"text-xs text-gray-500 pb-4"},rl={class:"mt-2 text-xs flex flex-row items-center text-red-300"},al={name:"uiInputFile"},il=Object.assign(al,{props:{name:String,label:String,optional:String,placeholder:String,dragAndDrop:String,fileTypesAndSizes:String,error:String,accept:String,icon:{type:Function,default:_o}},emits:["filesUploaded"],setup(t,{emit:n}){const l=t,r=e.ref(""),o=i=>{let u=i.dataTransfer.files;n("filesUploaded",u),l.filename=u[0].name},a=i=>{n("filesUploaded",i.target.files),l.filename=i.target.files[0].name};return(i,s)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",Jo,[t.label?(e.openBlock(),e.createElementBlock("label",Go,e.toDisplayString(t.label),1)):e.createCommentVNode("",!0),t.optional?(e.openBlock(),e.createElementBlock("span",Xo,e.toDisplayString(t.optional),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:e.normalizeClass([[{"mt-1":t.label},{"border-gray-300 hover:border-gray-400":!t.error},{"border-red-300 hover:border-red-400":t.error}],"dropArea flex justify-center rounded-md border-2 border-dashed px-6 pt-5 pb-6"]),onDragover:s[0]||(s[0]=e.withModifiers(()=>{},["prevent"])),onDrop:e.withModifiers(o,["prevent"])},[e.createElementVNode("div",Zo,[e.createVNode(R,{icon:t.icon,size:"massive",color:"gray","aria-hidden":"true",class:"mb-4"},null,8,["icon"]),e.createElementVNode("div",el,[e.createElementVNode("label",tl,[e.createElementVNode("span",null,e.toDisplayString(t.placeholder),1),e.createElementVNode("input",{id:"file-upload",name:"file-upload",type:"file",class:"sr-only",accept:t.accept,onChange:a},null,40,nl)]),e.createElementVNode("p",ol,e.toDisplayString(t.dragAndDrop),1)]),e.createElementVNode("p",ll,e.toDisplayString(t.fileTypesAndSizes),1),e.withDirectives(e.createElementVNode("p",{class:"font-bold text-xs uppercase block p-2 bg-gray-200 rounded"},e.toDisplayString(r.value),513),[[e.vShow,r.value!==""]])])],42,Qo),e.withDirectives(e.createElementVNode("p",rl,[e.createVNode(R,{icon:e.unref(ge),color:"red",class:"mr-2"},null,8,["icon"]),e.createTextVNode(e.toDisplayString(t.error),1)],512),[[e.vShow,t.error]])]))}}),sl={class:"relative mt-1"},cl={name:"uiSelect"},ul=Object.assign(cl,{props:{items:{type:Array,required:!0},label:String,select:Object},emits:["selectChanged"],setup(t,{emit:n}){const l=t,r=e.ref(""),o=e.ref(l.select),a=e.computed(()=>r.value===""?l.items:l.items.filter(s=>s.name.toLowerCase().includes(r.value.toLowerCase()))),i=()=>{n("selectChanged",o.value)};return(s,u)=>(e.openBlock(),e.createBlock(e.unref(Mn),{modelValue:o.value,"onUpdate:modelValue":[u[1]||(u[1]=c=>o.value=c),u[3]||(u[3]=c=>i())],as:"div",onClick:u[2]||(u[2]=c=>i())},{default:e.withCtx(()=>[e.createVNode(e.unref(Tn),{class:"block text-sm font-medium text-gray-700"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.label),1)]),_:1}),e.createElementVNode("div",sl,[e.createVNode(e.unref(Pn),{"display-value":c=>c==null?void 0:c.name,class:"w-full rounded-md border border-gray-300 bg-white py-2 pl-3 pr-10 shadow-sm focus:border-indigo-500 focus:outline-none focus:ring-1 focus:ring-indigo-500 sm:text-sm",onChange:u[0]||(u[0]=c=>r.value=c.target.value)},null,8,["display-value"]),e.createVNode(e.unref(On),{class:"absolute inset-y-0 right-0 flex items-center rounded-r-md px-2 focus:outline-none"},{default:e.withCtx(()=>[e.createVNode(e.unref(Oo),{"aria-hidden":"true",class:"h-5 w-5 text-gray-400"})]),_:1}),a.value.length>0?(e.openBlock(),e.createBlock(e.unref(Ln),{key:0,class:"absolute z-10 mt-1 max-h-60 w-full overflow-auto rounded-md bg-white py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,c=>(e.openBlock(),e.createBlock(e.unref(jn),{key:c.id,value:c,as:"template"},{default:e.withCtx(({active:d,selected:v})=>[e.createElementVNode("li",{class:e.normalizeClass(["relative cursor-default select-none py-2 pl-3 pr-9",d?"bg-indigo-600 text-white":"text-gray-900"])},[e.createElementVNode("span",{class:e.normalizeClass(["block truncate",v&&"font-semibold"])},e.toDisplayString(c.name),3),v?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["absolute inset-y-0 right-0 flex items-center pr-4",d?"text-white":"text-indigo-600"])},[e.createVNode(e.unref(qe),{"aria-hidden":"true",class:"h-5 w-5"})],2)):e.createCommentVNode("",!0)],2)]),_:2},1032,["value"]))),128))]),_:1})):e.createCommentVNode("",!0)])]),_:1},8,["modelValue"]))}}),dl={name:"uiTag"},de=Object.assign(dl,{props:{color:{type:String,default:"primary"}},setup(t){return(n,l)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass([{"bg-indigo-100 text-indigo-800 border border-indigo-200":t.color==="primary","bg-red-100 text-red-800 border border-red-200":t.color==="danger","bg-yellow-100 text-yellow-800 border border-yellow-200":t.color==="warning","bg-green-100 text-green-800 border border-green-200":t.color==="success","bg-black text-white border border-black":t.color==="black","text-black border border-gray-200":t.color==="white"},"inline-flex items-center px-3 py-2 rounded text-xs font-medium leading-none"])},[e.renderSlot(n.$slots,"default")],2))}}),ml={key:0,class:"block text-sm font-medium text-gray-700"},fl=["disabled","placeholder"],pl={name:"uiTextArea"},vl=Object.assign(pl,{props:{label:String,placeholder:{type:String,default:"..."},value:String,color:String,disabled:{type:Boolean,default:!1},error:String},emits:["inputChanged"],setup(t,{emit:n}){const l=t,r=a=>{n("inputChanged",{value:a.target.value,name:a.target.value})},o=e.ref(l.value);return(a,i)=>(e.openBlock(),e.createElementBlock("div",null,[t.label?(e.openBlock(),e.createElementBlock("label",ml,e.toDisplayString(t.label),1)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass({"mt-1":t.label})},[e.withDirectives(e.createElementVNode("textarea",{disabled:t.disabled,rows:"4","onUpdate:modelValue":i[0]||(i[0]=s=>o.value=s),placeholder:t.placeholder,class:e.normalizeClass(["shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm rounded-md",{"border-gray-300":t.color!=="danger"||t.color!=="warning"||t.color!=="success","border-red-300":t.color==="danger","border-yellow-400":t.color==="warning","border-green-400":t.color==="success","bg-gray-100":t.disabled,"text-black":t.color!=="danger"||t.color!=="warning"||t.color!=="success","text-red-300":t.color==="danger","text-yellow-400":t.color==="warning","text-green-400":t.color==="success"}]),onChange:r},null,42,fl),[[e.vModelText,o.value]])],2),e.withDirectives(e.createElementVNode("p",{class:e.normalizeClass([{"text-gray-300":t.color!=="danger"||t.color!=="warning"||t.color!=="success","text-red-300":t.color==="danger","text-yellow-400":t.color==="warning","text-green-400":t.color==="success"},"mt-2 text-xs flex flex-row items-center"])},[e.createVNode(R,{icon:e.unref(ge),color:"red",class:"mr-2"},null,8,["icon"]),e.createTextVNode(e.toDisplayString(t.error),1)],2),[[e.vShow,t.error]])]))}}),gl={class:"text-sm font-medium text-gray-900"},hl={key:0,class:"text-sm text-gray-500 ml-2"},yl={name:"uiToggle"},bl=Object.assign(yl,{props:{item:{type:Object,required:!0},checked:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},setup(t){const n=t,l=e.ref(n.checked);return(r,o)=>(e.openBlock(),e.createBlock(e.unref(bo),{as:"div",class:"flex items-center relative"},{default:e.withCtx(()=>[e.createVNode(e.unref(xo),{disabled:t.disabled,onClick:o[0]||(o[0]=a=>r.$emit("toggleChanged",{item:t.item,active:!l.value})),modelValue:l.value,"onUpdate:modelValue":o[1]||(o[1]=a=>l.value=a),class:e.normalizeClass([l.value?"bg-indigo-600":"bg-gray-200","relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"])},{default:e.withCtx(()=>[e.createElementVNode("span",{"aria-hidden":"true",class:e.normalizeClass([l.value?"translate-x-5":"translate-x-0",t.disabled?"bg-gray-300":"","pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out"])},null,2)]),_:1},8,["disabled","modelValue","class"]),e.createVNode(e.unref(wo),{as:"span",class:"ml-3"},{default:e.withCtx(()=>[e.createElementVNode("span",gl,e.toDisplayString(t.item.title),1),t.item.subtitle?(e.openBlock(),e.createElementBlock("span",hl,e.toDisplayString(t.item.subtitle),1)):e.createCommentVNode("",!0)]),_:1}),t.item.action?(e.openBlock(),e.createElementBlock("span",{key:0,class:"cursor-pointer text-indigo-600 hover:text-indigo-400 uppercase text-xs absolute right-0 bottom-0.5",onClick:o[2]||(o[2]=a=>r.$emit("actionClicked",t.item))},e.toDisplayString(t.item.action),1)):e.createCommentVNode("",!0)]),_:1}))}}),xl={class:"flex flex-col"},wl={class:"flex"},kl={class:"flex-shrink-0"},El={class:"ml-3"},Sl={class:"mt-4"},Cl={class:"-mx-2 -my-1.5 flex"},$l=["onClick"],Nl={name:"uiAlert"},Bl=Object.assign(Nl,{props:{actions:{type:Array},title:{type:String},type:{type:String,default:"info"}},setup(t){return(n,l)=>(e.openBlock(),e.createElementBlock("div",xl,[e.createElementVNode("div",{class:e.normalizeClass([{"bg-indigo-50 border-indigo-400":t.type==="info","bg-red-50 border-red-400":t.type==="danger","bg-yellow-50 border-yellow-400":t.type==="warning","bg-green-50 border-green-400":t.type==="success"},"p-4 border-l-4"])},[e.createElementVNode("div",wl,[e.createElementVNode("div",kl,[t.type==="info"?(e.openBlock(),e.createBlock(e.unref(Kt),{key:0,class:"h-8 w-8 text-indigo-400","aria-hidden":"true"})):e.createCommentVNode("",!0),t.type==="danger"?(e.openBlock(),e.createBlock(e.unref(ge),{key:1,class:"h-8 w-8 text-red-400","aria-hidden":"true"})):e.createCommentVNode("",!0),t.type==="warning"?(e.openBlock(),e.createBlock(e.unref(Ne),{key:2,class:"h-8 w-8 text-yellow-400","aria-hidden":"true"})):e.createCommentVNode("",!0),t.type==="success"?(e.openBlock(),e.createBlock(e.unref(qt),{key:3,class:"h-8 w-8 text-green-400","aria-hidden":"true"})):e.createCommentVNode("",!0)]),e.createElementVNode("div",El,[e.createElementVNode("h3",{class:e.normalizeClass([{"text-red-800":t.type==="danger","text-yellow-800":t.type==="warning","text-green-800":t.type==="success"},"text-sm font-medium"])},e.toDisplayString(t.title),3),e.createElementVNode("div",{class:e.normalizeClass([{"text-red-700":t.type==="danger","text-yellow-700":t.type==="warning","text-green-700":t.type==="success"},"mt-2 text-sm"])},[e.renderSlot(n.$slots,"default")],2),e.createElementVNode("div",Sl,[e.createElementVNode("div",Cl,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.actions,(r,o)=>(e.openBlock(),e.createElementBlock("button",{onClick:a=>n.$emit("alertEvent",r.event),type:"button",key:o,class:e.normalizeClass([{"bg-green-50 text-green-800 hover:bg-green-100 focus:ring-green-600 focus:ring-offset-green-50":t.type==="success","bg-indigo-50 text-indigo-800 hover:bg-indigo-100 focus:ring-indigo-600 focus:ring-offset-indigo-50":t.type==="info","bg-red-50 text-red-800 hover:bg-red-100 focus:ring-red-600 focus:ring-offset-red-50":t.type==="danger","bg-yellow-50 text-yellow-800 hover:bg-yellow-100 focus:ring-yellow-600 focus:ring-offset-yellow-50":t.type==="warning"},"px-2 py-1.5 text-sm font-medium rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2"])},e.toDisplayString(r.name),11,$l))),128))])])])])],2)]))}}),Vl={class:"flex","aria-label":"Breadcrumb"},_l={role:"list",class:"flex items-center space-x-4 text-xs"},Dl={key:0},Ml=["onClick"],Tl={key:1,class:"flex items-center"},Ol=["onClick","aria-current"],Pl={name:"uiBreadcrumbs"},Ll=Object.assign(Pl,{props:{pages:Array,required:!0},setup(t){return(n,l)=>(e.openBlock(),e.createElementBlock("nav",Vl,[e.createElementVNode("ol",_l,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.pages,(r,o)=>(e.openBlock(),e.createElementBlock("li",{key:o},[o===0?(e.openBlock(),e.createElementBlock("div",Dl,[e.createElementVNode("p",{onClick:a=>n.$emit("breadCrumbClicked",r.routeName),class:"flex flex-row items-center justify-center text-indigo-600 hover:text-indigo-800 cursor-pointer"},[e.createVNode(e.unref(jo),{class:"flex-shrink-0 h-3 w-3 text-gray-400 mr-4","aria-hidden":"true"}),e.createElementVNode("span",null,e.toDisplayString(r.name),1)],8,Ml)])):(e.openBlock(),e.createElementBlock("div",Tl,[e.createVNode(e.unref($e),{class:"flex-shrink-0 h-3 w-3 text-gray-400","aria-hidden":"true"}),e.createElementVNode("span",{onClick:a=>n.$emit("breadCrumbClicked",r.routeName),class:e.normalizeClass(["cursor-pointer ml-4 text-xs text-gray-400 hover:text-gray-500",{"text-indigo-600 hover:text-indigo-800":!r.current}]),"aria-current":r.current?"page":""},e.toDisplayString(r.name),11,Ol)]))]))),128))])]))}}),jl={class:"flex items-center flex-col sm:flex-row justify-center sm:justify-start"},Fl=["src"],Rl={class:"font-bold text-center sm:text-left"},Il={class:"mt-1 text-xs text-center sm:text-left"},Al={key:0,class:"flex flex-wrap mt-4 justify-center sm:justify-start"},zl={name:"uiCard"},Hl=Object.assign(zl,{props:{id:{type:String,required:!0},name:{type:String,required:!0},type:String,tags:Array,logo:String},setup(t){return(n,l)=>{var r;return e.openBlock(),e.createElementBlock("div",{class:"rounded-lg bg-white shadow p-6 cursor-pointer",onClick:l[0]||(l[0]=o=>n.$emit("cardSelected",{id:t.id,name:t.name,type:t.type,tags:t.tags}))},[e.createElementVNode("div",jl,[e.createElementVNode("img",{class:"w-16 h-16 rounded-full mb-4 sm:mb-0 sm:mr-4",src:t.logo},null,8,Fl),e.createElementVNode("div",null,[e.createElementVNode("h4",Rl,e.toDisplayString(t.name),1),e.createElementVNode("p",Il,e.toDisplayString(t.type),1)])]),((r=t.tags)==null?void 0:r.length)>0?(e.openBlock(),e.createElementBlock("div",Al,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.tags,o=>(e.openBlock(),e.createBlock(de,{class:"my-1 mr-1",key:o.name,color:o.color},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.name),1)]),_:2},1032,["color"]))),128))])):e.createCommentVNode("",!0)])}}}),Yl={name:"uiFilter"},Ul=Object.assign(Yl,{props:{position:{type:String,default:"left"},items:{type:Array,required:!0},label:{type:String,required:!0}},emits:["filterSelected"],setup(t,{emit:n}){const l=t,r=a=>{o.value.forEach(i=>{i.value!==a?i.active=!1:i.active=!0}),n("filterSelected",a)},o=e.ref(l.items);return(a,i)=>(e.openBlock(),e.createBlock(Jt,{onOptionSelected:i[0]||(i[0]=s=>r(s)),position:t.position,items:o.value,label:t.label},null,8,["position","items","label"]))}}),ql=e.createElementVNode("div",{class:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"},null,-1),Wl={class:"fixed inset-0 z-10 overflow-y-auto"},Kl={class:"flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0"},Jl={class:"absolute top-0 right-0 hidden pt-4 pr-4 sm:block"},Gl=e.createElementVNode("span",{class:"sr-only"},"X",-1),Xl={class:"sm:flex sm:items-start"},Ql={class:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left sm:mr-4"},Zl={class:"mt-4 text-gray-500 text-sm"},er={key:0,class:"mt-8"},tr=["onClick"],nr={name:"uiModal"},or=Object.assign(nr,{props:{title:String,actions:Object,modalName:String,open:{type:Boolean,default:!1},type:{type:String,default:"default"}},emits:["modalAction"],setup(t,{emit:n}){const l=t,r=o=>{n("modalAction",{modal:l.modalName,action:o})};return(o,a)=>(e.openBlock(),e.createBlock(e.unref(Ut),{as:"template",show:t.open},{default:e.withCtx(()=>[e.createVNode(e.unref(ao),{as:"div",class:"relative z-10",onClose:a[1]||(a[1]=i=>r("close"))},{default:e.withCtx(()=>[e.createVNode(e.unref(Fe),{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0","enter-to":"opacity-100",leave:"ease-in duration-200","leave-from":"opacity-100","leave-to":"opacity-0"},{default:e.withCtx(()=>[ql]),_:1}),e.createElementVNode("div",Wl,[e.createElementVNode("div",Kl,[e.createVNode(e.unref(Fe),{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95","enter-to":"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200","leave-from":"opacity-100 translate-y-0 sm:scale-100","leave-to":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"},{default:e.withCtx(()=>[e.createVNode(e.unref(io),{class:"relative transform overflow-hidden rounded-lg bg-white px-4 pb-4 pt-5 text-left shadow-xl transition-all sm:my-8 w-9/12 sm:w-full sm:max-w-lg sm:p-6"},{default:e.withCtx(()=>[e.createElementVNode("div",Jl,[e.createElementVNode("button",{type:"button",class:"rounded-md bg-white text-gray-400 hover:text-gray-500 focus:outline-none",onClick:a[0]||(a[0]=i=>r("close"))},[Gl,e.createVNode(R,{icon:e.unref(we),"aria-hidden":"true"},null,8,["icon"])])]),e.createElementVNode("div",Xl,[e.createElementVNode("div",{class:e.normalizeClass(["mx-auto flex h-12 w-12 flex-shrink-0 items-center justify-center rounded-full sm:mx-0 sm:h-10 sm:w-10",{"bg-red-100":t.type==="danger","bg-green-100":t.type==="success","bg-indigo-100":t.type==="default","bg-yellow-100":t.type==="warning"}])},[e.withDirectives(e.createVNode(e.unref(we),{class:"h-6 w-6 text-red-600","aria-hidden":"true"},null,512),[[e.vShow,t.type==="danger"]]),e.withDirectives(e.createVNode(e.unref(qe),{class:"h-6 w-6 text-green-600","aria-hidden":"true"},null,512),[[e.vShow,t.type==="success"]]),e.withDirectives(e.createVNode(e.unref(Ne),{class:"h-6 w-6 text-yellow-600","aria-hidden":"true"},null,512),[[e.vShow,t.type==="warning"]]),e.withDirectives(e.createVNode(e.unref(Lo),{class:"h-6 w-6 text-indigo-600","aria-hidden":"true"},null,512),[[e.vShow,t.type==="default"]])],2),e.createElementVNode("div",Ql,[e.createVNode(e.unref(so),{as:"h3",class:"text-lg font-medium leading-6 text-gray-900"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.title),1)]),_:1}),e.createElementVNode("div",Zl,[e.renderSlot(o.$slots,"default")]),t.actions?(e.openBlock(),e.createElementBlock("div",er,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.actions,(i,s)=>(e.openBlock(),e.createElementBlock("button",{key:s,type:"button",class:"inline-flex w-full justify-center rounded-md border border-transparent bg-indigo-600 px-4 py-2 text-base font-medium text-white shadow-sm hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 mb-2 sm:mb-0 mr-2 sm:w-auto sm:text-sm",onClick:u=>r(i.value)},e.toDisplayString(i.name),9,tr))),128))])):e.createCommentVNode("",!0)])])]),_:3})]),_:3})])])]),_:3})]),_:3},8,["show"]))}}),lr={class:"w-full flex flex-col items-center space-y-4 sm:items-end"},rr={key:0,class:"max-w-sm w-full bg-white shadow-lg rounded-lg pointer-events-auto ring-1 ring-black ring-opacity-5 overflow-hidden"},ar={class:"p-4"},ir={class:"flex items-start"},sr={class:"flex-shrink-0 mt-0.5"},cr={class:"ml-3 w-0 flex-1 pt-0.5"},ur={class:"font-medium text-gray-900"},dr={class:"mt-1 text-sm text-gray-500"},mr={class:"ml-4 flex-shrink-0 flex"},fr=e.createElementVNode("span",{class:"sr-only"},"Close",-1),pr={name:"uiNotification"},vr=Object.assign(pr,{props:{show:Boolean,type:{type:String,default:"info"},title:String,message:String,fixed:{type:Boolean,default:!0}},setup(t){const n=t,l=e.computed(()=>n.show);return(r,o)=>(e.openBlock(),e.createElementBlock("div",{"aria-live":"assertive",class:e.normalizeClass([{fixed:t.fixed},"inset-0 flex items-end px-4 py-6 pointer-events-none sm:p-6 sm:items-start"])},[e.createElementVNode("div",lr,[e.createVNode(e.Transition,{"enter-active-class":"transform ease-out duration-300 transition","enter-from-class":"translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2","enter-to-class":"translate-y-0 opacity-100 sm:translate-x-0","leave-active-class":"transition ease-in duration-100","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:e.withCtx(()=>[l.value?(e.openBlock(),e.createElementBlock("div",rr,[e.createElementVNode("div",ar,[e.createElementVNode("div",ir,[e.createElementVNode("div",sr,[e.withDirectives(e.createVNode(e.unref(qt),{"aria-hidden":"true",class:"h-6 w-6 text-green-400"},null,512),[[e.vShow,t.type==="success"]]),e.withDirectives(e.createVNode(e.unref(ge),{"aria-hidden":"true",class:"h-6 w-6 text-red-400"},null,512),[[e.vShow,t.type==="danger"]]),e.withDirectives(e.createVNode(e.unref(Ne),{"aria-hidden":"true",class:"h-6 w-6 text-yellow-400"},null,512),[[e.vShow,t.type==="warning"]]),e.withDirectives(e.createVNode(e.unref(Kt),{"aria-hidden":"true",class:"h-6 w-6 text-indigo-600"},null,512),[[e.vShow,t.type==="info"]])]),e.createElementVNode("div",cr,[e.createElementVNode("p",ur,e.toDisplayString(t.title),1),e.createElementVNode("p",dr,e.toDisplayString(t.message),1)]),e.createElementVNode("div",mr,[e.createElementVNode("button",{class:"bg-white rounded-md inline-flex text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",type:"button",onClick:o[0]||(o[0]=a=>r.$emit("closeNotification"))},[fr,e.createVNode(e.unref(we),{"aria-hidden":"true",class:"h-5 w-5"})])])])])])):e.createCommentVNode("",!0)]),_:1})])],2))}}),gr={role:"list",class:"divide-y divide-gray-100"},hr={class:"min-w-0"},yr={class:"flex items-start gap-x-3"},br={class:"text-sm font-semibold leading-6 text-gray-900"},xr={class:"mt-1 flex items-center gap-x-2 text-xs leading-5 text-gray-500"},wr={class:"truncate"},kr={class:"flex flex-none items-center gap-x-4"},Er=["href"],Sr={class:"sr-only"},Cr={name:"uiTaskList"},$r=Object.assign(Cr,{props:{tasks:{type:Array,required:!0}},setup(t){return(n,l)=>(e.openBlock(),e.createElementBlock("ul",gr,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.tasks,r=>(e.openBlock(),e.createElementBlock("li",{key:r.id,class:"flex items-center justify-between gap-x-6 py-5"},[e.createElementVNode("div",hr,[e.createElementVNode("div",yr,[e.createElementVNode("p",br,e.toDisplayString(r.name),1),e.createElementVNode("p",{class:e.normalizeClass([{"text-green-700 bg-green-50 ring-green-600/20":r.status==="Complete","text-gray-600 bg-gray-50 ring-gray-500/10":r.status==="In progress","text-yellow-800 bg-yellow-50 ring-yellow-600/20":r.status==="Incomplete"},"rounded-md whitespace-nowrap mt-0.5 px-1.5 py-0.5 text-xs font-medium ring-1 ring-inset"])},e.toDisplayString(r.statusLiteral),3)]),e.createElementVNode("div",xr,[e.createElementVNode("p",wr,e.toDisplayString(r.description),1)])]),e.createElementVNode("div",kr,[e.createElementVNode("a",{href:r.href,class:"hidden rounded-md bg-white px-2.5 py-1.5 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50 sm:block"},[e.createTextVNode(e.toDisplayString(r.action),1),e.createElementVNode("span",Sr,", "+e.toDisplayString(r.name),1)],8,Er)])]))),128))]))}});var he=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Nr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Br={exports:{}};(function(t,n){(function(l,r){t.exports=r(T)})(he,function(l){function r(i){return i&&typeof i=="object"&&"default"in i?i:{default:i}}var o=r(l),a={name:"es",monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinal:function(i){return i+"º"}};return o.default.locale(a,null,!0),a})})(Br);var Vr={exports:{}};(function(t,n){(function(l,r){t.exports=r(T)})(he,function(l){function r(u){return u&&typeof u=="object"&&"default"in u?u:{default:u}}var o=r(l),a={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]};function i(u,c,d){var v=a[d];return Array.isArray(v)&&(v=v[c?0:1]),v.replace("%d",u)}var s={name:"de",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.".split("_"),ordinal:function(u){return u+"."},weekStart:1,yearStart:4,formats:{LTS:"HH:mm:ss",LT:"HH:mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i}};return o.default.locale(s,null,!0),s})})(Vr);var _r={exports:{}};(function(t,n){(function(l,r){t.exports=r()})(he,function(){return{name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(l){var r=["th","st","nd","rd"],o=l%100;return"["+l+(r[(o-20)%10]||r[o]||r[0])+"]"}}})})(_r);var Dr={exports:{}};(function(t,n){(function(l,r){t.exports=r(T)})(he,function(l){function r(i){return i&&typeof i=="object"&&"default"in i?i:{default:i}}var o=r(l),a={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(i){return""+i+(i===1?"er":"")}};return o.default.locale(a,null,!0),a})})(Dr);const le=(t,n)=>{const l=t.__vccOpts||t;for(const[r,o]of n)l[r]=o;return l},Mr={name:"dateSelector",components:{ChevronLeftIcon:Wt,ChevronRightIcon:$e},computed:{currentDate(){return T(this.selectedDate).locale("es").format("DD MMM. YYYY")}},props:{selectedDate:{type:Object,required:!0}},methods:{selectDate(t,n){let l;n==="previous"&&(t==="day"&&(l=T(this.selectedDate).subtract(1,"day")),t==="month"&&(l=T(this.selectedDate).subtract(1,"month")),t==="year"&&(l=T(this.selectedDate).subtract(1,"year"))),n==="next"&&(t==="day"&&(l=T(this.selectedDate).add(1,"day")),t==="month"&&(l=T(this.selectedDate).add(1,"month")),t==="year"&&(l=T(this.selectedDate).add(1,"year"))),this.$emit("dateSelected",l)}}},Tr={class:"dateSelector flex items-center text-white flex-row"},Or={class:"pagination flex items-center my-1 md:my-0"},Pr={class:"date mx-4 font-bold text-center text-indigo-600 select-none uppercase"},Lr={class:"pagination flex items-center my-1 sm:my-0"};function jr(t,n,l,r,o,a){const i=e.resolveComponent("ChevronLeftIcon"),s=e.resolveComponent("ChevronRightIcon");return e.openBlock(),e.createElementBlock("div",Tr,[e.createElementVNode("div",Or,[e.createElementVNode("div",{class:"previousYear flex items-center cursor-pointer bg-indigo-600 p-1 rounded mx-0.5 hover:bg-indigo-800 shadow-sm",onClick:n[0]||(n[0]=u=>a.selectDate("year","previous"))},[e.createVNode(i,{class:"h-4"}),e.createVNode(i,{class:"h-4 -ml-3"}),e.createVNode(i,{class:"h-4 -ml-3"})]),e.createElementVNode("div",{class:"previousMonth flex items-center cursor-pointer bg-indigo-600 p-1 rounded mx-0.5 hover:bg-indigo-800 shadow-sm",onClick:n[1]||(n[1]=u=>a.selectDate("month","previous"))},[e.createVNode(i,{class:"h-4"}),e.createVNode(i,{class:"h-4 -ml-3"})]),e.createElementVNode("div",{class:"previousDay flex items-center cursor-pointer bg-indigo-600 p-1 rounded mx-0.5 hover:bg-indigo-800 shadow-sm",onClick:n[2]||(n[2]=u=>a.selectDate("day","previous"))},[e.createVNode(i,{class:"h-4"})])]),e.createElementVNode("div",Pr,e.toDisplayString(a.currentDate),1),e.createElementVNode("div",Lr,[e.createElementVNode("div",{class:"previousDay flex items-center cursor-pointer bg-indigo-600 p-1 rounded mx-0.5 hover:bg-indigo-800 shadow-sm",onClick:n[3]||(n[3]=u=>a.selectDate("day","next"))},[e.createVNode(s,{class:"h-4"})]),e.createElementVNode("div",{class:"previousMonth flex items-center cursor-pointer bg-indigo-600 p-1 rounded mx-0.5 hover:bg-indigo-800 shadow-sm",onClick:n[4]||(n[4]=u=>a.selectDate("month","next"))},[e.createVNode(s,{class:"h-4"}),e.createVNode(s,{class:"h-4 -ml-3"})]),e.createElementVNode("div",{class:"previousYear flex items-center cursor-pointer bg-indigo-600 p-1 rounded mx-0.5 hover:bg-indigo-800 shadow-sm",onClick:n[5]||(n[5]=u=>a.selectDate("year","next"))},[e.createVNode(s,{class:"h-4"}),e.createVNode(s,{class:"h-4 -ml-3"}),e.createVNode(s,{class:"h-4 -ml-3"})])])])}const Fr=le(Mr,[["render",jr]]);var Gt={exports:{}};(function(t,n){(function(l,r){t.exports=r()})(he,function(){return function(l,r,o){r.prototype.isToday=function(){var a="YYYY-MM-DD",i=o();return this.format(a)===i.format(a)}}})})(Gt);var Rr=Gt.exports;const Ir=Nr(Rr),Ar={name:"calendarDay",props:{day:Object},computed:{currentDay(){return T.extend(Ir),{dayName:T(this.day).locale("es").format("ddd"),day:T(this.day).locale("es").format("DD"),month:T(this.day).locale("es").format("MMM."),isWeekend:T(this.day).format("d")==6||T(this.day).format("d")==0,isToday:T(this.day).isToday()}}}},zr={class:"text-xs"},Hr={class:"font-bold text-lg"},Yr={class:"text-xs font-medium"};function Ur(t,n,l,r,o,a){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["day select-none text-center",{"bg-indigo-200 text-white":a.currentDay.isWeekend,"bg-[#0ff] text-white":a.currentDay.isToday}])},[e.createElementVNode("p",zr,e.toDisplayString(a.currentDay.dayName),1),e.createElementVNode("p",Hr,e.toDisplayString(a.currentDay.day),1),e.createElementVNode("p",Yr,e.toDisplayString(a.currentDay.month),1)],2)}const qr=le(Ar,[["render",Ur]]),Wr={name:"dayPrice",props:{currency:String,price:Object,basePrice:Number,isBasePrice:{type:Boolean,default:!1}},computed:{currentDay(){return{isWeekend:T(this.price.date).format("d")==6||T(this.price.date).format("d")==0,price:this.price.price}}}},Kr={class:"priceDay"};function Jr(t,n,l,r,o,a){return e.openBlock(),e.createElementBlock("div",Kr,[e.createElementVNode("div",{class:e.normalizeClass([{"bg-indigo-200 text-white":a.currentDay.isWeekend,"bg-green-300 text-white":l.price.price>l.basePrice,"bg-yellow-300 text-white":l.price.price<l.basePrice},"select-none text-center rounded-lg p-1"])},e.toDisplayString(a.currentDay.price)+e.toDisplayString(l.currency),3)])}const Gr=le(Wr,[["render",Jr]]),Xr={name:"uiPriceCalendar",data:()=>({today:new Date,date:new Date,selectedRooms:[],showBasePricesModal:!1,showDays:14}),props:{category:{type:Object,required:!0},rooms:{type:Array,required:!0},currency:Object,actions:Array},components:{DateSelector:Fr,Day:qr,Price:Gr,uiButton:nt},computed:{days(){let t=[];for(let n=0;n<this.showDays;n++)t.push(T(this.date).add(n,"day"));return t},indeterminate(){return this.selectedRooms.length>0&&this.selectedRooms.length<this.rooms.length}},methods:{changeDate(t){T(t).isBefore(this.today)||(this.date=t,this.$emit("dateChanged",this.date))},getSelectionBasePrice(t){let n=this.category.selectionPrices.find(l=>T(l.date).isSame(t.date));return n?n.price:t.price},changeCategoryBulkPrices(){this.$emit("changeCategoryBulkPrices")},changeCategorySelectionPrice(t){this.$emit("changeCategorySelectionPrice",t)},changeCategoryUpgradePrice(t){this.$emit("changeCategoryUpgradePrice",t)},tableAction(t){this.$emit("tableAction",t)},changeRoomPrice(t){this.$emit("changeRoomPrice",t)}}},Qr={class:"px-4 sm:px-6 lg:px-8"},Zr={class:"flow-root"},ea={class:"overflow-x-auto sm:-mx-6 lg:-mx-8 shadow ring-1 ring-black ring-opacity-5 sm:rounded-lg"},ta={class:"inline-block min-w-full align-middle"},na={class:"min-w-full"},oa={class:"bg-white"},la={colspan:"6",scope:"colgroup",class:"bg-gray-50 py-2 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-3"},ra={colspan:"20",scope:"colgroup",class:"bg-gray-200 py-2 pl-4 pr-3 text-left font-semibold text-gray-900"},aa=e.createElementVNode("span",null,"Categoría: Simple",-1),ia=e.createElementVNode("td",{colspan:"6",class:"pl-4"}," Precios de selección ",-1),sa=e.createElementVNode("td",{colspan:"6",class:"pl-4"}," Precios de mejora ",-1),ca={colspan:"20",scope:"colgroup",class:"bg-gray-200 py-2 pl-4 pr-3 text-left font-semibold text-gray-900 relative"},ua={key:0,class:"absolute top-0 left-12 flex h-12 items-center space-x-3 sm:left-48 bg-white shadow rounded px-4 py-1 z-10"},da=["onClick"],ma=e.createElementVNode("span",null,"Precios de selección",-1),fa={colspan:"2",scope:"colgroup",class:"relative bg-gray-100 py-3.5 pl-4 pr-3 text-left font-semibold text-gray-900"},pa=["checked","indeterminate"],va=e.createElementVNode("span",{class:"pl-6"},"Habitación",-1),ga=e.createElementVNode("th",{colspan:"2",scope:"colgroup",class:"bg-gray-100 py-2 pl-4 pr-3 text-left font-semibold text-gray-900"}," Edificio ",-1),ha=e.createElementVNode("th",{colspan:"2",scope:"colgroup",class:"bg-gray-100 py-2 pl-4 pr-3 text-left font-semibold text-gray-900"}," Planta ",-1),ya=e.createElementVNode("th",{colspan:"14",scope:"colgroup",class:"bg-gray-100 py-2 pl-4 pr-3 text-left font-semibold text-gray-900"},null,-1),ba={colspan:"2",class:"relative py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-6"},xa={key:0,class:"absolute inset-y-0 left-0 w-0.5 bg-indigo-600"},wa=["value"],ka={class:"pl-6"},Ea={colspan:"2",class:"pl-4"},Sa={colspan:"2",class:"pl-4"};function Ca(t,n,l,r,o,a){var d,v;const i=e.resolveComponent("DateSelector"),s=e.resolveComponent("Day"),u=e.resolveComponent("uiButton"),c=e.resolveComponent("Price");return e.openBlock(),e.createElementBlock("div",Qr,[e.createElementVNode("div",Zr,[e.createElementVNode("div",ea,[e.createElementVNode("div",ta,[e.createElementVNode("table",na,[e.createElementVNode("tbody",oa,[e.createElementVNode("tr",null,[e.createElementVNode("th",la,[e.createVNode(i,{selectedDate:t.date,onDateSelected:n[0]||(n[0]=m=>a.changeDate(m))},null,8,["selectedDate"])]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.days,(m,p)=>(e.openBlock(),e.createElementBlock("th",{scope:"col",key:p,class:"text-sm font-semibold text-gray-900 p-0"},[e.createVNode(s,{class:"border-l border-gray-200 px-6 py-3",day:m},null,8,["day"])]))),128))]),e.createElementVNode("tr",null,[e.createElementVNode("th",ra,[aa,e.createVNode(u,{class:"ml-4",size:"small",onClick:a.changeCategoryBulkPrices},{default:e.withCtx(()=>[e.createTextVNode("Cambiar precios en bloque ")]),_:1},8,["onClick"])])]),e.createElementVNode("tr",null,[ia,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.category.selectionPrices,(m,p)=>(e.openBlock(),e.createElementBlock("td",{key:p,class:"p-0"},[e.createVNode(c,{onClick:h=>a.changeCategorySelectionPrice(m),class:"border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 font-bold cursor-pointer",price:m,currency:l.currency.symbol,isBasePrice:!0},null,8,["onClick","price","currency"])]))),128))]),e.createElementVNode("tr",null,[sa,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.category.upgradePrices,(m,p)=>(e.openBlock(),e.createElementBlock("td",{key:p,class:"p-0"},[e.createVNode(c,{onClick:h=>a.changeCategoryUpgradePrice(m),class:"border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 font-bold cursor-pointer bg-gray-100",price:m,currency:l.currency.symbol,isBasePrice:!0},null,8,["onClick","price","currency"])]))),128))]),e.createElementVNode("tr",null,[e.createElementVNode("th",ca,[((d=t.selectedRooms)==null?void 0:d.length)>0&&((v=l.actions)==null?void 0:v.length)>0?(e.openBlock(),e.createElementBlock("div",ua,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.actions,(m,p)=>(e.openBlock(),e.createElementBlock("button",{onClick:h=>a.tableAction({action:m.id,items:t.selectedRooms}),key:p,type:"button",class:"inline-flex items-center rounded bg-indigo-600 hover:bg-indigo-800 px-2.5 py-1.5 text-xs font-medium text-white shadow-sm disabled:cursor-not-allowed disabled:opacity-30"},e.toDisplayString(m.name),9,da))),128))])):e.createCommentVNode("",!0),ma])]),e.createElementVNode("tr",null,[e.createElementVNode("th",fa,[e.createElementVNode("input",{type:"checkbox",class:"absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-600",checked:a.indeterminate||t.selectedRooms.length===l.rooms.length,indeterminate:a.indeterminate,onChange:n[1]||(n[1]=m=>t.selectedRooms=m.target.checked?l.rooms.map(p=>p.name):[])},null,40,pa),va]),ga,ha,ya]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.rooms,m=>(e.openBlock(),e.createElementBlock("tr",{key:m.name,class:"even:bg-gray-100"},[e.createElementVNode("td",ba,[t.selectedRooms.includes(m.name)?(e.openBlock(),e.createElementBlock("div",xa)):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",{type:"checkbox",class:"absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-600",value:m.name,"onUpdate:modelValue":n[2]||(n[2]=p=>t.selectedRooms=p)},null,8,wa),[[e.vModelCheckbox,t.selectedRooms]]),e.createElementVNode("span",ka,e.toDisplayString(m.name),1)]),e.createElementVNode("td",Ea,e.toDisplayString(m.building),1),e.createElementVNode("td",Sa,e.toDisplayString(m.floor),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.selectionPrices,(p,h)=>(e.openBlock(),e.createElementBlock("td",{class:"p-0",key:h},[e.createVNode(c,{onClick:g=>a.changeRoomPrice(p),class:"border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 cursor-pointer",price:p,currency:l.currency.symbol,basePrice:a.getSelectionBasePrice(p)},null,8,["onClick","price","currency","basePrice"])]))),128))]))),128))])])])])])])}const $a=le(Xr,[["render",Ca]]),Na={class:"chart-selector flex flex-row items-center justify-center"},Ba={name:"rangeSelector"},Va=Object.assign(Ba,{emits:["rangeSelected"],setup(t,{emit:n}){let l=e.ref("24h");const r=o=>{l.value=o,n("rangeSelected",o)};return(o,a)=>(e.openBlock(),e.createElementBlock("ul",Na,[e.createElementVNode("li",{class:e.normalizeClass({selected:e.unref(l)==="24h"}),onClick:a[0]||(a[0]=i=>r("24h"))}," 24H ",2),e.createElementVNode("li",{class:e.normalizeClass({selected:e.unref(l)==="7d"}),onClick:a[1]||(a[1]=i=>r("7d"))},"7D",2),e.createElementVNode("li",{class:e.normalizeClass({selected:e.unref(l)==="1m"}),onClick:a[2]||(a[2]=i=>r("1m"))},"1M",2),e.createElementVNode("li",{class:e.normalizeClass({selected:e.unref(l)==="3m"}),onClick:a[3]||(a[3]=i=>r("3m"))},"3M",2)]))}}),_a={toolbar:{show:!1},zoom:{enabled:!1}},Da=["#715aff","#00ffff","#aba9ba"],Ma={show:!0,curve:"stepline",lineCap:"butt",width:1,dashArray:0},Ta={enabled:!1},Oa={strokeWidth:0,size:4,hover:{size:8}},Pa={chart:_a,colors:Da,stroke:Ma,dataLabels:Ta,markers:Oa},La={class:"card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow h-80"},ja={class:"chart-header flex flex-row justify-between"},Fa={class:"text-sm font-medium text-gray-500 truncate"},Ra={class:"chart-content"},Ia={name:"uiChart"},Aa=Object.assign(Ia,{props:{title:String,type:{type:String,default:"area"},series:{type:Array,required:!0},options:{type:Object,required:!0}},emits:["selectedRange","chartUpdated"],setup(t,{emit:n}){const l=t,r=e.computed(()=>({...l.options,...Pa})),o=e.computed(()=>l.series),a=()=>n("chartUpdated");return(i,s)=>(e.openBlock(),e.createElementBlock("div",La,[e.createElementVNode("div",ja,[e.createElementVNode("div",Fa,e.toDisplayString(t.title),1),e.createVNode(Va,{onRangeSelected:s[0]||(s[0]=u=>n("selectedRange",u))})]),e.createElementVNode("div",Ra,[e.createVNode(e.unref(Zt),{type:t.type,series:o.value,width:"100%",height:"100%",options:r.value,onUpdated:a,onMounted:i.emitEvent},null,8,["type","series","options","onMounted"])])]))}}),za={name:"uiFooter"},Ha={class:"bg-white"},Ya=e.createElementVNode("div",{class:"mx-auto py-6 px-4 sm:px-6 md:flex md:items-center md:justify-between lg:px-8"},[e.createElementVNode("div",{class:"mt-8 md:mt-0 md:order-1"},[e.createElementVNode("p",{class:"text-center text-base text-gray-400"},"© Made by Hotelinking.")])],-1),Ua=[Ya];function qa(t,n,l,r,o,a){return e.openBlock(),e.createElementBlock("footer",Ha,Ua)}const Wa=le(za,[["render",qa]]),Ka=e.createElementVNode("div",{class:"spinner h-12 w-12 mb-6"},[e.createElementVNode("img",{src:"https://images.hotelinking.com/ui/loader.gif",alt:"loading animation"})],-1),Ja={name:"uiLoadScreen"},Ga=Object.assign(Ja,{props:{title:String,message:String,fixed:{type:Boolean,default:!0}},setup(t){return(n,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([{fixed:t.fixed},"load-screen h-full w-full top-0 left-0 z-50 flex flex-col items-center justify-center bg-gray-50"])},[Ka,e.withDirectives(e.createElementVNode("h2",{class:"text-xs font-bold text-center uppercase mb-2"},e.toDisplayString(t.title),513),[[e.vShow,t.title]]),e.withDirectives(e.createElementVNode("p",{class:"text-xs text-center uppercase md:w-1/4"},e.toDisplayString(t.message),513),[[e.vShow,t.message]])],2))}}),Xa={class:"py-6 flex items-center justify-between"},Qa={class:"flex-1 flex justify-between sm:hidden"},Za={href:"#",class:"relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50"},ei={href:"#",class:"ml-3 relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50"},ti={class:"hidden sm:flex-1 sm:flex sm:items-center sm:justify-between"},ni={class:"text-sm text-gray-700"},oi={class:"font-bold"},li={class:"font-bold"},ri={class:"relative z-0 inline-flex rounded-md shadow-sm -space-x-px","aria-label":"Pagination"},ai={class:"sr-only"},ii=["onClick"],si={class:"sr-only"},ci={name:"uiPagination"},ui=Object.assign(ci,{props:{current:{type:Number,requires:!0},total:{type:Number,requires:!0}},emits:["changePage"],setup(t,{emit:n}){const l=t,r=e.ref(3),o=e.computed(()=>Math.max(1,Number(l.current)-Number(r.value))),a=e.computed(()=>Math.min(Number(l.current)+Number(r.value),Number(l.total))),i=e.computed(()=>{let s=[];for(let u=Number(o.value);u<=Number(a.value);u++)s.push(u);return s});return(s,u)=>(e.openBlock(),e.createElementBlock("div",Xa,[e.createElementVNode("div",Qa,[e.createElementVNode("a",Za,[e.renderSlot(s.$slots,"previous")]),e.createElementVNode("a",ei,[e.renderSlot(s.$slots,"next")])]),e.createElementVNode("div",ti,[e.createElementVNode("div",null,[e.createElementVNode("p",ni,[e.renderSlot(s.$slots,"showing"),e.createTextVNode(),e.createElementVNode("span",oi,e.toDisplayString(t.current+" "),1),e.renderSlot(s.$slots,"of"),e.createTextVNode(),e.createElementVNode("span",li,e.toDisplayString(t.total),1)])]),e.createElementVNode("div",null,[e.createElementVNode("nav",ri,[e.withDirectives(e.createElementVNode("button",{onClick:u[0]||(u[0]=c=>n("changePage",t.current-1)),class:"relative inline-flex items-center px-2 py-2 rounded-l-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50"},[e.createElementVNode("span",ai,[e.renderSlot(s.$slots,"previous")]),e.createVNode(e.unref(Wt),{class:"h-5 w-5","aria-hidden":"true"})],512),[[e.vShow,t.current!==1]]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,c=>(e.openBlock(),e.createElementBlock("button",{onClick:d=>n("changePage",c),key:c,"aria-current":"page",class:e.normalizeClass([[c===t.current?"z-10 bg-indigo-50 border-indigo-500 text-indigo-600":"bg-white border-gray-300 text-gray-500 hover:bg-gray-50"],"relative inline-flex items-center px-4 py-2 border text-sm font-medium"])},e.toDisplayString(c),11,ii))),128)),e.withDirectives(e.createElementVNode("button",{onClick:u[1]||(u[1]=c=>n("changePage",t.current+1)),class:"relative inline-flex items-center px-2 py-2 rounded-r-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50"},[e.createElementVNode("span",si,[e.renderSlot(s.$slots,"next")]),e.createVNode(e.unref($e),{class:"h-5 w-5","aria-hidden":"true"})],512),[[e.vShow,t.current!==t.total]])])])])]))}}),di={class:"hidden md:flex md:flex-col sticky md:inset-y-0"},mi={class:"flex flex-col flex-grow overflow-y-auto"},fi={class:"grow flex flex-col"},pi={class:"flex-1 space-y-1","aria-label":"Sidebar"},vi={key:0},gi=["onClick"],hi={class:"flex-1"},yi={name:"uiSidebar"},bi=Object.assign(yi,{props:{navigation:{type:Array,required:!0}},emits:["sideBarClick"],setup(t,{emit:n}){return(l,r)=>(e.openBlock(),e.createElementBlock("div",di,[e.createElementVNode("div",mi,[e.createElementVNode("div",fi,[e.createElementVNode("nav",pi,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.navigation,o=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:o.name},[o.children?(e.openBlock(),e.createBlock(e.unref(Tt),{key:1,as:"div",class:"space-y-1"},{default:e.withCtx(({open:a})=>[e.createVNode(e.unref(Le),{class:e.normalizeClass([o.current?"bg-indigo-600 text-white":"text-gray-600 hover:bg-gray-50 hover:text-gray-900","group w-full flex items-center pl-2 pr-1 py-2 text-left text-sm font-medium rounded-md focus:outline-none"])},{default:e.withCtx(()=>[e.createVNode(R,{icon:o.icon,class:"mr-3 flex-shrink-0 h-6 w-6 text-gray-400 group-hover:text-gray-500","aria-hidden":"true"},null,8,["icon"]),e.createElementVNode("span",hi,e.toDisplayString(o.name),1),e.createVNode(e.unref($e),{class:e.normalizeClass([a?"text-gray-400 rotate-90":"text-gray-400","ml-3 flex-shrink-0 h-3 w-3 transform group-hover:text-gray-400 transition-colors ease-in-out duration-150"])},null,8,["class"])]),_:2},1032,["class"]),e.createVNode(e.unref(Ot),{class:"space-y-1"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.children,i=>(e.openBlock(),e.createBlock(e.unref(Le),{onClick:s=>n("sideBarClick",i.id),key:i.name,class:"group w-full flex items-center pl-11 pr-2 py-2 text-sm font-medium text-gray-600 rounded-md hover:text-gray-900 hover:bg-gray-50"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.name),1)]),_:2},1032,["onClick"]))),128))]),_:2},1024)]),_:2},1024)):(e.openBlock(),e.createElementBlock("div",vi,[e.createElementVNode("button",{onClick:a=>n("sideBarClick",o.id),class:e.normalizeClass([o.current?"bg-indigo-600 text-white":"text-gray-600 hover:bg-gray-50 hover:text-gray-900","group w-full flex items-center pl-2 py-2 text-sm font-medium rounded-md"])},[e.createVNode(R,{icon:o.icon,class:e.normalizeClass([o.current?"text-white":"text-gray-400 group-hover:text-gray-500","mr-3 flex-shrink-0 h-6 w-6"]),"aria-hidden":"true"},null,8,["icon","class"]),e.createTextVNode(" "+e.toDisplayString(o.name),1)],10,gi)]))],64))),128))])])])]))}}),xi={class:"ml-16 text-sm font-medium text-gray-500 truncate"},wi={class:"ml-16 flex items-baseline pb-5"},ki={class:"text-2xl font-semibold text-gray-900"},Ei={class:"sr-only"},Si={class:"absolute bottom-0 inset-x-0 bg-gray-50 px-4 py-4 sm:px-6"},Ci={class:"text-sm"},$i={name:"uiStats"},Ni=Object.assign($i,{props:{item:Object,required:!0},emits:["statClick"],setup(t,{emit:n}){return(l,r)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",{class:e.normalizeClass(["relative bg-white pt-5 px-4 sm:pt-6 sm:px-6 shadow rounded-lg overflow-hidden h-full",{"pb-12":t.item.showFooter}])},[e.createElementVNode("dt",null,[e.createElementVNode("div",{class:e.normalizeClass(["absolute rounded-md p-3",{"bg-indigo-500":!t.item.color,"bg-green-500":t.item.color==="success","bg-red-500":t.item.color==="danger","bg-yellow-500":t.item.color==="warning"}])},[e.createVNode(R,{icon:t.item.icon,class:"h-6 w-6 text-white","aria-hidden":"true"},null,8,["icon"])],2),e.createElementVNode("p",xi,e.toDisplayString(t.item.name),1)]),e.createElementVNode("dd",wi,[e.createElementVNode("p",ki,e.toDisplayString(t.item.stat),1),t.item.changeType?(e.openBlock(),e.createElementBlock("p",{key:0,class:e.normalizeClass([t.item.changeType==="increase"?"text-green-600":"text-red-600","ml-2 flex items-baseline text-sm font-semibold"])},[t.item.changeType==="increase"?(e.openBlock(),e.createBlock(e.unref(Do),{key:0,class:"self-center flex-shrink-0 h-3 w-3 text-green-500","aria-hidden":"true"})):(e.openBlock(),e.createBlock(e.unref(Vo),{key:1,class:"self-center flex-shrink-0 h-3 w-3 text-red-500","aria-hidden":"true"})),e.createElementVNode("span",Ei,e.toDisplayString(t.item.changeType==="increase"?"Increased":"Decreased"),1),e.createTextVNode(" "+e.toDisplayString(t.item.change),1)],2)):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("div",Si,[e.createElementVNode("div",Ci,[e.createElementVNode("span",{onClick:r[0]||(r[0]=o=>n("statClick",t.item.id)),class:"font-medium text-indigo-600 hover:text-indigo-500 cursor-pointer"},e.toDisplayString(t.item.actionText),1)])],512),[[e.vShow,t.item.showFooter]])])],2)]))}}),Bi={class:"overflow-hidden bg-white shadow sm:rounded-lg"},Vi={class:"px-4 py-5 sm:px-6"},_i={class:"text-lg font-medium leading-6 text-gray-900"},Di={class:"mt-1 max-w-2xl text-sm text-gray-500"},Mi={class:"border-t border-gray-200"},Ti={class:"text-sm font-medium text-gray-500"},Oi={key:0,class:"mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-normal"},Pi={key:1,class:"mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-normal"},Li=["onClick"],ji={key:3,class:"mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-words"},Fi={name:"uiStripedCard"},Ri=Object.assign(Fi,{props:{title:String,subtitle:String,items:Object},setup(t){return(n,l)=>(e.openBlock(),e.createElementBlock("div",Bi,[e.createElementVNode("div",Vi,[e.createElementVNode("h3",_i,e.toDisplayString(t.title),1),e.createElementVNode("p",Di,e.toDisplayString(t.subtitle),1)]),e.createElementVNode("div",Mi,[e.createElementVNode("dl",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(r,o)=>(e.openBlock(),e.createElementBlock("div",{key:o,class:e.normalizeClass(["px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6",[o%2===0?"bg-gray-50":"bg-white"]])},[e.createElementVNode("dt",Ti,e.toDisplayString(r.title),1),r.type==="tag"?(e.openBlock(),e.createElementBlock("dd",Oi,[e.createVNode(de,{color:r.color},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.text),1)]),_:2},1032,["color"])])):r.type==="tags"?(e.openBlock(),e.createElementBlock("dd",Pi,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.tags,(a,i)=>(e.openBlock(),e.createBlock(de,{key:i,color:a.color,class:"mr-2 mb-2"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.text),1)]),_:2},1032,["color"]))),128))])):r.type==="link"?(e.openBlock(),e.createElementBlock("dd",{key:2,class:"mt-1 text-sm text-indigo-600 hover:text-indigo-400 sm:col-span-2 sm:mt-0 cursor-pointer",onClick:a=>n.$emits(r.emits)},e.toDisplayString(r.text),9,Li)):(e.openBlock(),e.createElementBlock("dd",ji,e.toDisplayString(r.text),1))],2))),128))])])]))}}),Ii={class:"flex flex-col"},Ai={class:"-my-2 overflow-x-auto"},zi={class:"inline-block min-w-full py-2 align-middle px-1"},Hi={class:"relative overflow-hidden shadow ring-1 ring-black ring-opacity-5 md:rounded-lg"},Yi={key:0,class:"absolute top-0 left-12 flex h-12 items-center space-x-3 sm:left-16 bg-white shadow rounded px-4 py-1"},Ui=["onClick"],qi={class:"min-w-full table-fixed divide-y divide-gray-300"},Wi={class:"bg-gray-50"},Ki=["checked","indeterminate"],Ji=["onClick"],Gi=e.createElementVNode("svg",{class:"h-4 w-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1),Xi=[Gi],Qi={key:1,class:"group flex items-center uppercase text-xs"},Zi={class:"divide-y divide-gray-200 bg-white"},es={key:0,class:"absolute inset-y-0 left-0 w-0.5 bg-indigo-600"},ts=["value"],ns=["onClick"],os={key:2},ls={name:"uiTable"},rs=Object.assign(ls,{props:{header:{type:Array,required:!0},items:{type:Array,required:!0},orderedBy:String,actions:Array},emits:["tableAction","orderBy"],setup(t,{emit:n}){const l=t;let r=e.ref([]);e.ref(!1);const o=e.computed(()=>r.value.length>0&&r.value.length<l.items.length);return(a,i)=>{var s,u;return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",Ii,[e.createElementVNode("div",Ai,[e.createElementVNode("div",zi,[e.createElementVNode("div",Hi,[((s=e.unref(r))==null?void 0:s.length)>0&&((u=t.actions)==null?void 0:u.length)>0?(e.openBlock(),e.createElementBlock("div",Yi,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.actions,(c,d)=>(e.openBlock(),e.createElementBlock("button",{onClick:v=>n("tableAction",{action:c.id,items:e.unref(r)}),key:d,type:"button",class:"inline-flex items-center rounded bg-indigo-600 hover:bg-indigo-800 px-2.5 py-1.5 text-xs font-medium text-white shadow-sm disabled:cursor-not-allowed disabled:opacity-30"},e.toDisplayString(c.name),9,Ui))),128))])):e.createCommentVNode("",!0),e.createElementVNode("table",qi,[e.createElementVNode("thead",Wi,[e.createElementVNode("tr",null,[e.createElementVNode("th",{scope:"col",class:e.normalizeClass([t.actions?"px-6 sm:px-8":"px-3","relative"])},[t.actions?(e.openBlock(),e.createElementBlock("input",{key:0,checked:o.value||e.unref(r).length===t.items.length,indeterminate:o.value,class:"absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-500",type:"checkbox",onChange:i[0]||(i[0]=c=>e.isRef(r)?r.value=c.target.checked?t.items.map(d=>d.id):[]:r=c.target.checked?t.items.map(d=>d.id):[])},null,40,Ki)):e.createCommentVNode("",!0)],2),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.header,(c,d)=>(e.openBlock(),e.createElementBlock("th",{key:d,class:"py-3.5 pr-3 text-left font-semibold text-gray-900 flex-wrap",scope:"col"},[c.value?(e.openBlock(),e.createElementBlock("button",{key:0,class:"group flex items-center uppercase text-xs",onClick:v=>n("orderBy",c.value)},[e.createElementVNode("span",null,e.toDisplayString(c.name),1),e.createElementVNode("span",{class:e.normalizeClass([[c.value===t.orderedBy?"bg-indigo-600 text-white group-hover:bg-gray-300":"text-gray-400 group-hover:visible group-focus:visible"],"ml-2 flex-none rounded group-hover:bg-indigo-200 group-hover:text-white"])},Xi,2)],8,Ji)):(e.openBlock(),e.createElementBlock("p",Qi,[e.createElementVNode("span",null,e.toDisplayString(c.name),1)]))]))),128))])]),e.createElementVNode("tbody",Zi,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(c,d)=>{var v,m;return e.openBlock(),e.createElementBlock("tr",{key:c.id,class:e.normalizeClass([e.unref(r).includes(c.id)&&"bg-gray-50",d%2===0?void 0:"bg-gray-50"])},[e.createElementVNode("td",{class:e.normalizeClass([((v=t.actions)==null?void 0:v.length)>0?"w-2":"w-0","relative"])},[e.unref(r).includes(c.id)?(e.openBlock(),e.createElementBlock("div",es)):e.createCommentVNode("",!0),((m=t.actions)==null?void 0:m.length)>0?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:1,"onUpdate:modelValue":i[1]||(i[1]=p=>e.isRef(r)?r.value=p:r=p),value:c.id,class:"absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-500 flex-wrap",type:"checkbox"},null,8,ts)),[[e.vModelCheckbox,e.unref(r)]]):e.createCommentVNode("",!0)],2),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.row,(p,h)=>(e.openBlock(),e.createElementBlock("td",{key:h,class:e.normalizeClass(["whitespace-nowrap py-4 pr-3 text-sm uppercase text-xs",e.unref(r).includes(c.id)?"text-indigo-600":"text-gray-900"])},[typeof p=="object"&&p.type==="tag"?(e.openBlock(),e.createBlock(de,{key:0,color:p.color},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(p.content),1)]),_:2},1032,["color"])):typeof p=="object"&&p.type==="link"?(e.openBlock(),e.createElementBlock("span",{key:1,class:"text-indigo-600 hover:text-indigo-400 cursor-pointer",onClick:g=>n(p.emits,{id:c.id,data:(c==null?void 0:c.emitWith)||null})},e.toDisplayString(p.content),9,ns)):(e.openBlock(),e.createElementBlock("span",os,e.toDisplayString(p),1))],2))),128))],2)}),128))])])])])])])])}}}),as={class:"lg:hidden"},is=["value"],ss={class:"hidden lg:block"},cs={class:"border-b border-gray-200"},us={class:"-mb-px flex space-x-8","aria-label":"Tabs"},ds=["onClick","aria-current"],ms={name:"uiTabs"},fs=Object.assign(ms,{props:{tabs:Array},emits:["tabClicked"],setup(t,{emit:n}){const l=r=>{n("tabClicked",r.target.value)};return(r,o)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",as,[e.createElementVNode("select",{onChange:o[0]||(o[0]=a=>l(a)),id:"tabs",name:"tabs",class:"block w-full rounded-md border-gray-300 py-2 pl-3 pr-10 text-base focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 sm:text-sm"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.tabs,a=>(e.openBlock(),e.createElementBlock("option",{value:a.id,key:a.name},e.toDisplayString(a.name),9,is))),128))],32)]),e.createElementVNode("div",ss,[e.createElementVNode("div",cs,[e.createElementVNode("nav",us,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.tabs,a=>(e.openBlock(),e.createElementBlock("a",{key:a.name,onClick:i=>n("tabClicked",a.id),class:e.normalizeClass([a.current?"border-indigo-500 text-indigo-600":"border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-200","whitespace-nowrap flex py-4 px-1 border-b-2 font-medium text-sm cursor-pointer"]),"aria-current":a.current?"page":void 0},[e.createTextVNode(e.toDisplayString(a.name)+" ",1),a.count?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass([a.current?"bg-indigo-100 text-indigo-600":"bg-gray-100 text-gray-900","hidden ml-3 py-0.5 px-2.5 rounded-full text-xs font-medium md:inline-block"])},e.toDisplayString(a.count),3)):e.createCommentVNode("",!0)],10,ds))),128))])])])]))}}),ps={class:"bg-white overflow-hidden shadow rounded-lg"},vs={class:"px-4 py-5 sm:px-6"},gs={class:"text-xl font-bold"},hs={class:"px-4 py-5 sm:p-6"},ys={class:"flow-root"},bs={class:"-mb-8",role:"list"},xs={class:"relative pb-8"},ws={key:0,class:"absolute left-4 top-4 -ml-px h-full w-0.5 bg-gray-200","aria-hidden":"true"},ks={class:"relative flex space-x-3"},Es={class:"min-w-0 flex-1 pt-1.5 flex justify-between space-x-4 items-center"},Ss={class:"text-sm text-gray-500"},Cs=["onClick"],$s={class:"text-right text-sm whitespace-nowrap text-gray-500"},Ns=["datetime"],Bs={class:"bg-gray-50 px-4 py-4 sm:px-6 z-10"},Vs={class:"text-sm"},_s={name:"uiTimeline"},Ds=Object.assign(_s,{props:{name:{type:String,required:!0},timeline:{type:Object}},setup(t){return(n,l)=>(e.openBlock(),e.createElementBlock("div",ps,[e.createElementVNode("div",vs,[e.createElementVNode("h1",gs,e.toDisplayString(t.name),1)]),e.createElementVNode("div",hs,[e.createElementVNode("div",ys,[e.createElementVNode("ul",bs,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.timeline.items,(r,o)=>(e.openBlock(),e.createElementBlock("li",{key:o},[e.createElementVNode("div",xs,[o!==t.timeline.length-1?(e.openBlock(),e.createElementBlock("span",ws)):e.createCommentVNode("",!0),e.createElementVNode("div",ks,[e.createElementVNode("div",null,[e.createElementVNode("span",{class:e.normalizeClass([r.iconBackground,"h-8 w-8 rounded-full flex items-center justify-center ring-4 ring-white"])},[e.createVNode(R,{icon:r.icon,"aria-hidden":"true",class:"h-5 w-5 text-white",color:"white"},null,8,["icon"])],2)]),e.createElementVNode("div",Es,[e.createElementVNode("div",null,[e.createElementVNode("p",Ss,[e.createElementVNode("a",{onClick:a=>n.$emit("timelineEventClicked",r.linkId),class:"font-medium text-indigo-600 hover:text-indigo-800 cursor-pointer"},e.toDisplayString(r.target),9,Cs),e.createTextVNode(" "+e.toDisplayString(r.content),1)])]),e.createElementVNode("div",$s,[e.createElementVNode("time",{datetime:r.datetime},e.toDisplayString(r.date),9,Ns)])])])])]))),128))])])]),e.createElementVNode("div",Bs,[e.createElementVNode("div",Vs,[e.createElementVNode("a",{class:"cursor-pointer font-medium text-indigo-600 hover:text-indigo-500",onClick:l[0]||(l[0]=r=>n.$emit("timelineFooterClicked",t.timeline.id))},e.toDisplayString(t.timeline.footerText),1)])])]))}}),Ms={name:"uiTopbar",props:["navigation","logo","profileMenu","brand","accountLogo","alerted"],components:{Disclosure:Tt,DisclosureButton:Le,DisclosurePanel:Ot,Menu:Lt,MenuButton:jt,MenuItem:Rt,MenuItems:Ft,Bars3Icon:Mo,XMarkIcon:we}},Ts={class:"mx-auto px-4 sm:px-6 lg:px-8"},Os={class:"flex justify-between h-20"},Ps={class:"flex"},Ls={class:"-ml-2 mr-2 flex items-center lg:hidden"},js=e.createElementVNode("span",{class:"sr-only"},"Open main menu",-1),Fs=["src"],Rs={class:"flex items-center"},Is={class:"md:ml-4 md:flex-shrink-0 md:flex md:items-center"},As={class:"redCircle flex items-center justify-center h-4 w-4 bg-red-500 rounded-full absolute -top-0 -left-1"},zs=["src"],Hs=["onClick"],Ys={class:"pt-2 pb-3 space-y-1"},Us=["onClick"],qs={class:"pt-4 pb-3 border-t border-gray-200"},Ws={class:"flex items-center px-4 sm:px-6"},Ks={class:"flex-shrink-0"},Js=["src"],Gs={key:0,class:"ml-3"},Xs={class:"text-base font-medium text-gray-800"},Qs={class:"text-sm font-medium text-gray-500"},Zs={class:"mt-3 space-y-1"},ec=["onClick"];function tc(t,n,l,r,o,a){const i=e.resolveComponent("Bars3Icon"),s=e.resolveComponent("XMarkIcon"),u=e.resolveComponent("DisclosureButton"),c=e.resolveComponent("MenuButton"),d=e.resolveComponent("MenuItem"),v=e.resolveComponent("MenuItems"),m=e.resolveComponent("Menu"),p=e.resolveComponent("DisclosurePanel"),h=e.resolveComponent("Disclosure");return e.openBlock(),e.createBlock(h,{as:"nav",class:"bg-white shadow"},{default:e.withCtx(({open:g})=>[e.createElementVNode("div",Ts,[e.createElementVNode("div",Os,[e.createElementVNode("div",Ps,[e.createElementVNode("div",Ls,[e.createVNode(u,{class:"inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-indigo-500"},{default:e.withCtx(()=>[js,g?(e.openBlock(),e.createBlock(s,{key:1,class:"block h-6 w-6","aria-hidden":"true"})):(e.openBlock(),e.createBlock(i,{key:0,class:"block h-6 w-6","aria-hidden":"true"}))]),_:2},1024)]),e.createElementVNode("div",{class:"flex-shrink-0 flex items-center cursor-pointer",onClick:n[0]||(n[0]=f=>t.$emit("topBarClick","logo"))},[e.createElementVNode("img",{class:"h-10",src:l.logo,alt:"Hotelinking suite product logo"},null,8,Fs)])]),e.createElementVNode("div",Rs,[e.createElementVNode("div",Is,[e.createVNode(m,{as:"div",class:"ml-3 relative"},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.withDirectives(e.createVNode(c,{class:"bg-white rounded-full flex text-sm focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 relative"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",As,null,512),[[e.vShow,l.alerted]]),e.createElementVNode("img",{class:"h-10 w-10 rounded-full",src:l.accountLogo},null,8,zs)]),_:1},512),[[e.vShow,l.accountLogo]])]),e.createVNode(e.Transition,{"enter-active-class":"transition ease-out duration-200","enter-from-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"},{default:e.withCtx(()=>[e.createVNode(v,{class:"origin-top-right absolute right-0 mt-2 w-48 rounded-md shadow-lg py-1 bg-white ring-1 ring-black ring-opacity-5 focus:outline-none"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.profileMenu,f=>(e.openBlock(),e.createBlock(d,{key:f.name},{default:e.withCtx(({active:b})=>[e.createElementVNode("p",{onClick:k=>t.$emit("topBarClick",f.id),class:e.normalizeClass(["cursor-pointer",[b?"bg-gray-100":"","block px-4 py-2 text-sm text-gray-700"]])},e.toDisplayString(f.name),11,Hs)]),_:2},1024))),128))]),_:1})]),_:1})]),_:1})])])])]),e.createVNode(p,{class:"lg:hidden"},{default:e.withCtx(()=>[e.createElementVNode("div",Ys,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.navigation,f=>(e.openBlock(),e.createBlock(u,{as:"template",key:f.name,class:e.normalizeClass(["block pl-3 pr-4 py-2 border-l-4 text-base font-medium sm:pl-5 sm:pr-6",{"bg-indigo-50 border-indigo-500 text-indigo-700":f.current&&f.current===!0,"border-transparent text-gray-500 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-700":!f.current}])},{default:e.withCtx(()=>[e.createElementVNode("p",{onClick:b=>t.$emit("topBarClick",f.id)},e.toDisplayString(f.name),9,Us)]),_:2},1032,["class"]))),128))]),e.createElementVNode("div",qs,[e.createElementVNode("div",Ws,[e.createElementVNode("div",Ks,[e.createElementVNode("img",{class:"h-10 w-10 rounded-full",src:l.accountLogo},null,8,Js)]),l.brand?(e.openBlock(),e.createElementBlock("div",Gs,[e.createElementVNode("div",Xs,e.toDisplayString(l.brand.title),1),e.createElementVNode("div",Qs,e.toDisplayString(l.brand.subtitle),1)])):e.createCommentVNode("",!0)]),e.createElementVNode("div",Zs,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.profileMenu,f=>(e.openBlock(),e.createBlock(u,{as:"template",key:f.name,class:"block px-4 py-2 text-base font-medium text-gray-500 hover:text-gray-800 hover:bg-gray-100 sm:px-6"},{default:e.withCtx(()=>[e.createElementVNode("p",{onClick:b=>t.$emit("topBarClick",f.id)},e.toDisplayString(f.name),9,ec)]),_:2},1024))),128))])])]),_:1})]),_:1})}const nc=le(Ms,[["render",tc]]),oc={class:"chart-header flex flex-row justify-between"},lc={class:"text-sm font-medium text-gray-500 truncate"},rc={class:"chart-selector flex flex-row items-center justify-center"},ac={class:"chart-content pt-6"},ic={name:"uiFunnelChart"},sc=Object.assign(ic,{props:{title:String,labels:{type:Array,required:!0},subLabels:{type:Array,required:!0},values:{type:Array,required:!0}},emits:["selectedRange","chartUpdated"],setup(t,{emit:n}){const l=e.ref("24h"),r=e.ref(null),o=[["#725CFF","#C9C4EB"],["#00FFFF","#D6FFFF"],["#aba9ba","#f5f4ff"]],a="vertical",i="vertical",s=e.ref(0),u=e.ref(0),c=v=>{l.value=v,n("selectedRange",v)},d=()=>{s.value=r.value.clientHeight-r.value.clientHeight/4,u.value=r.value.clientWidth-r.value.clientHeight/4};return e.onMounted(()=>{r.value.focus(),d()}),(v,m)=>(e.openBlock(),e.createElementBlock("div",{class:"card chart funnel-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow h-full",ref_key:"funnelChart",ref:r},[e.createElementVNode("div",oc,[e.createElementVNode("div",lc,e.toDisplayString(t.title),1),e.createElementVNode("ul",rc,[e.createElementVNode("li",{class:e.normalizeClass({selected:l.value==="24h"}),onClick:m[0]||(m[0]=p=>c("24h"))}," 24H ",2),e.createElementVNode("li",{class:e.normalizeClass({selected:l.value==="7d"}),onClick:m[1]||(m[1]=p=>c("7d"))}," 7D ",2),e.createElementVNode("li",{class:e.normalizeClass({selected:l.value==="1m"}),onClick:m[2]||(m[2]=p=>c("1m"))}," 1M ",2),e.createElementVNode("li",{class:e.normalizeClass({selected:l.value==="3m"}),onClick:m[3]||(m[3]=p=>c("3m"))}," 3M ",2)])]),e.createElementVNode("div",ac,[u.value>0&&s.value>0?(e.openBlock(),e.createBlock(e.unref(en.VueFunnelGraph),{key:0,width:u.value,height:s.value,labels:t.labels,values:t.values,colors:o,"sub-labels":t.subLabels,direction:a,"gradient-direction":i,animated:!0,"display-percentage":!0},null,8,["width","height","labels","values","sub-labels"])):e.createCommentVNode("",!0)])],512))}}),cc={uiButton:nt,uiIcon:R,uiCheckbox:dn,uiDropdown:Jt,uiInput:Ko,uiInputFile:il,uiSelect:ul,uiTag:de,uiTextArea:vl,uiToggle:bl,uiAlert:Bl,uiBreadcrumbs:Ll,uiCard:Hl,uiFilter:Ul,uiModal:or,uiNotification:vr,uiTaskList:$r,uiPriceCalendar:$a,uiChart:Aa,uiFooter:Wa,uiLoadingScreen:Ga,uiPagination:ui,uiSidebar:bi,uiStats:Ni,uiStripedCard:Ri,uiTable:rs,uiTabs:fs,uiTimeline:Ds,uiTopbar:nc,uiFunnelChart:sc},tt=cc,uc={install(t){Object.keys(tt).forEach(n=>{t.component(n,tt[n])})}};exports.default=uc;
|
|
4
|
+
`));let p=lt((i=v.props)!=null?i:{},u),h=e.cloneVNode(v,p);for(let g in p)g.startsWith("on")&&(h.props||(h.props={}),h.props[g]=p[g]);return h}return Array.isArray(c)&&c.length===1?c[0]:c}return e.h(s,Object.assign({},u,d),{default:()=>c})}function ot(t){return t.flatMap(n=>n.type===e.Fragment?ot(n.children):[n])}function lt(...t){if(t.length===0)return{};if(t.length===1)return t[0];let n={},l={};for(let r of t)for(let o in r)o.startsWith("on")&&typeof r[o]=="function"?(l[o]!=null||(l[o]=[]),l[o].push(r[o])):n[o]=r[o];if(n.disabled||n["aria-disabled"])return Object.assign(n,Object.fromEntries(Object.keys(l).map(r=>[r,void 0])));for(let r in l)Object.assign(n,{[r](o,...a){let i=l[r];for(let s of i){if(o instanceof Event&&o.defaultPrevented)return;s(o,...a)}}});return n}function rt(t){let n=Object.assign({},t);for(let l in n)n[l]===void 0&&delete n[l];return n}function me(t,n=[]){let l=Object.assign({},t);for(let r of n)r in l&&delete l[r];return l}function mn(t){return t==null?!1:typeof t.type=="string"||typeof t.type=="object"||typeof t.type=="function"}let fn=0;function pn(){return++fn}function P(){return pn()}var S=(t=>(t.Space=" ",t.Enter="Enter",t.Escape="Escape",t.Backspace="Backspace",t.Delete="Delete",t.ArrowLeft="ArrowLeft",t.ArrowUp="ArrowUp",t.ArrowRight="ArrowRight",t.ArrowDown="ArrowDown",t.Home="Home",t.End="End",t.PageUp="PageUp",t.PageDown="PageDown",t.Tab="Tab",t))(S||{});function vn(t){throw new Error("Unexpected object: "+t)}var B=(t=>(t[t.First=0]="First",t[t.Previous=1]="Previous",t[t.Next=2]="Next",t[t.Last=3]="Last",t[t.Specific=4]="Specific",t[t.Nothing=5]="Nothing",t))(B||{});function at(t,n){let l=n.resolveItems();if(l.length<=0)return null;let r=n.resolveActiveIndex(),o=r??-1,a=(()=>{switch(t.focus){case 0:return l.findIndex(i=>!n.resolveDisabled(i));case 1:{let i=l.slice().reverse().findIndex((s,u,c)=>o!==-1&&c.length-u-1>=o?!1:!n.resolveDisabled(s));return i===-1?i:l.length-1-i}case 2:return l.findIndex((i,s)=>s<=o?!1:!n.resolveDisabled(i));case 3:{let i=l.slice().reverse().findIndex(s=>!n.resolveDisabled(s));return i===-1?i:l.length-1-i}case 4:return l.findIndex(i=>n.resolveId(i)===t.id);case 5:return null;default:vn(t)}})();return a===-1?r:a}function y(t){var n;return t==null||t.value==null?null:(n=t.value.$el)!=null?n:t.value}let it=Symbol("Context");var D=(t=>(t[t.Open=1]="Open",t[t.Closed=2]="Closed",t[t.Closing=4]="Closing",t[t.Opening=8]="Opening",t))(D||{});function gn(){return ne()!==null}function ne(){return e.inject(it,null)}function ke(t){e.provide(it,t)}function We(t,n){if(t)return t;let l=n??"button";if(typeof l=="string"&&l.toLowerCase()==="button")return"button"}function Ee(t,n){let l=e.ref(We(t.value.type,t.value.as));return e.onMounted(()=>{l.value=We(t.value.type,t.value.as)}),e.watchEffect(()=>{var r;l.value||y(n)&&y(n)instanceof HTMLButtonElement&&!((r=y(n))!=null&&r.hasAttribute("type"))&&(l.value="button")}),l}var hn=Object.defineProperty,yn=(t,n,l)=>n in t?hn(t,n,{enumerable:!0,configurable:!0,writable:!0,value:l}):t[n]=l,Ke=(t,n,l)=>(yn(t,typeof n!="symbol"?n+"":n,l),l);let bn=class{constructor(){Ke(this,"current",this.detect()),Ke(this,"currentId",0)}set(n){this.current!==n&&(this.currentId=0,this.current=n)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}},fe=new bn;function G(t){if(fe.isServer)return null;if(t instanceof Node)return t.ownerDocument;if(t!=null&&t.hasOwnProperty("value")){let n=y(t);if(n)return n.ownerDocument}return document}function st({container:t,accept:n,walk:l,enabled:r}){e.watchEffect(()=>{let o=t.value;if(!o||r!==void 0&&!r.value)return;let a=G(t);if(!a)return;let i=Object.assign(u=>n(u),{acceptNode:n}),s=a.createTreeWalker(o,NodeFilter.SHOW_ELEMENT,i,!1);for(;s.nextNode();)l(s.currentNode)})}let De=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(t=>`${t}:not([tabindex='-1'])`).join(",");var U=(t=>(t[t.First=1]="First",t[t.Previous=2]="Previous",t[t.Next=4]="Next",t[t.Last=8]="Last",t[t.WrapAround=16]="WrapAround",t[t.NoScroll=32]="NoScroll",t))(U||{}),ct=(t=>(t[t.Error=0]="Error",t[t.Overflow=1]="Overflow",t[t.Success=2]="Success",t[t.Underflow=3]="Underflow",t))(ct||{}),xn=(t=>(t[t.Previous=-1]="Previous",t[t.Next=1]="Next",t))(xn||{});function ut(t=document.body){return t==null?[]:Array.from(t.querySelectorAll(De)).sort((n,l)=>Math.sign((n.tabIndex||Number.MAX_SAFE_INTEGER)-(l.tabIndex||Number.MAX_SAFE_INTEGER)))}var Re=(t=>(t[t.Strict=0]="Strict",t[t.Loose=1]="Loose",t))(Re||{});function Ie(t,n=0){var l;return t===((l=G(t))==null?void 0:l.body)?!1:O(n,{0(){return t.matches(De)},1(){let r=t;for(;r!==null;){if(r.matches(De))return!0;r=r.parentElement}return!1}})}function dt(t){let n=G(t);e.nextTick(()=>{n&&!Ie(n.activeElement,0)&&J(t)})}var wn=(t=>(t[t.Keyboard=0]="Keyboard",t[t.Mouse=1]="Mouse",t))(wn||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",t=>{t.metaKey||t.altKey||t.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",t=>{t.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:t.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function J(t){t==null||t.focus({preventScroll:!0})}let kn=["textarea","input"].join(",");function En(t){var n,l;return(l=(n=t==null?void 0:t.matches)==null?void 0:n.call(t,kn))!=null?l:!1}function Ae(t,n=l=>l){return t.slice().sort((l,r)=>{let o=n(l),a=n(r);if(o===null||a===null)return 0;let i=o.compareDocumentPosition(a);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Sn(t,n){return ce(ut(),n,{relativeTo:t})}function ce(t,n,{sorted:l=!0,relativeTo:r=null,skipElements:o=[]}={}){var a;let i=(a=Array.isArray(t)?t.length>0?t[0].ownerDocument:document:t==null?void 0:t.ownerDocument)!=null?a:document,s=Array.isArray(t)?l?Ae(t):t:ut(t);o.length>0&&s.length>1&&(s=s.filter(h=>!o.includes(h))),r=r??i.activeElement;let u=(()=>{if(n&5)return 1;if(n&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=(()=>{if(n&1)return 0;if(n&2)return Math.max(0,s.indexOf(r))-1;if(n&4)return Math.max(0,s.indexOf(r))+1;if(n&8)return s.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),d=n&32?{preventScroll:!0}:{},v=0,m=s.length,p;do{if(v>=m||v+m<=0)return 0;let h=c+v;if(n&16)h=(h+m)%m;else{if(h<0)return 3;if(h>=m)return 1}p=s[h],p==null||p.focus(d),v+=u}while(p!==i.activeElement);return n&6&&En(p)&&p.select(),2}function Je(t,n,l){fe.isServer||e.watchEffect(r=>{document.addEventListener(t,n,l),r(()=>document.removeEventListener(t,n,l))})}function mt(t,n,l){fe.isServer||e.watchEffect(r=>{window.addEventListener(t,n,l),r(()=>window.removeEventListener(t,n,l))})}function ze(t,n,l=e.computed(()=>!0)){function r(a,i){if(!l.value||a.defaultPrevented)return;let s=i(a);if(s===null||!s.getRootNode().contains(s))return;let u=function c(d){return typeof d=="function"?c(d()):Array.isArray(d)||d instanceof Set?d:[d]}(t);for(let c of u){if(c===null)continue;let d=c instanceof HTMLElement?c:y(c);if(d!=null&&d.contains(s)||a.composed&&a.composedPath().includes(d))return}return!Ie(s,Re.Loose)&&s.tabIndex!==-1&&a.preventDefault(),n(a,s)}let o=e.ref(null);Je("mousedown",a=>{var i,s;l.value&&(o.value=((s=(i=a.composedPath)==null?void 0:i.call(a))==null?void 0:s[0])||a.target)},!0),Je("click",a=>{o.value&&(r(a,()=>o.value),o.value=null)},!0),mt("blur",a=>r(a,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}var te=(t=>(t[t.None=1]="None",t[t.Focusable=2]="Focusable",t[t.Hidden=4]="Hidden",t))(te||{});let ue=e.defineComponent({name:"Hidden",props:{as:{type:[Object,String],default:"div"},features:{type:Number,default:1}},setup(t,{slots:n,attrs:l}){return()=>{let{features:r,...o}=t,a={"aria-hidden":(r&2)===2?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(r&4)===4&&(r&2)!==2&&{display:"none"}}};return V({ourProps:a,theirProps:o,slot:{},attrs:l,slots:n,name:"Hidden"})}}});function ft(t={},n=null,l=[]){for(let[r,o]of Object.entries(t))vt(l,pt(n,r),o);return l}function pt(t,n){return t?t+"["+n+"]":n}function vt(t,n,l){if(Array.isArray(l))for(let[r,o]of l.entries())vt(t,pt(n,r.toString()),o);else l instanceof Date?t.push([n,l.toISOString()]):typeof l=="boolean"?t.push([n,l?"1":"0"]):typeof l=="string"?t.push([n,l]):typeof l=="number"?t.push([n,`${l}`]):l==null?t.push([n,""]):ft(l,n,t)}function Cn(t){var n;let l=(n=t==null?void 0:t.form)!=null?n:t.closest("form");if(l){for(let r of l.elements)if(r.tagName==="INPUT"&&r.type==="submit"||r.tagName==="BUTTON"&&r.type==="submit"||r.nodeName==="INPUT"&&r.type==="image"){r.click();return}}}function gt(t,n,l){let r=e.ref(l==null?void 0:l.value),o=e.computed(()=>t.value!==void 0);return[e.computed(()=>o.value?t.value:r.value),function(a){return o.value||(r.value=a),n==null?void 0:n(a)}]}function Ge(t){return[t.screenX,t.screenY]}function ht(){let t=e.ref([-1,-1]);return{wasMoved(n){let l=Ge(n);return t.value[0]===l[0]&&t.value[1]===l[1]?!1:(t.value=l,!0)},update(n){t.value=Ge(n)}}}function yt(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function $n(){return/Android/gi.test(window.navigator.userAgent)}function Nn(){return yt()||$n()}function pe(){let t=[],n={addEventListener(l,r,o,a){return l.addEventListener(r,o,a),n.add(()=>l.removeEventListener(r,o,a))},requestAnimationFrame(...l){let r=requestAnimationFrame(...l);n.add(()=>cancelAnimationFrame(r))},nextFrame(...l){n.requestAnimationFrame(()=>{n.requestAnimationFrame(...l)})},setTimeout(...l){let r=setTimeout(...l);n.add(()=>clearTimeout(r))},style(l,r,o){let a=l.style.getPropertyValue(r);return Object.assign(l.style,{[r]:o}),this.add(()=>{Object.assign(l.style,{[r]:a})})},group(l){let r=pe();return l(r),this.add(()=>r.dispose())},add(l){return t.push(l),()=>{let r=t.indexOf(l);if(r>=0)for(let o of t.splice(r,1))o()}},dispose(){for(let l of t.splice(0))l()}};return n}function Bn(t,n){return t===n}var Vn=(t=>(t[t.Open=0]="Open",t[t.Closed=1]="Closed",t))(Vn||{}),_n=(t=>(t[t.Single=0]="Single",t[t.Multi=1]="Multi",t))(_n||{}),Dn=(t=>(t[t.Pointer=0]="Pointer",t[t.Other=1]="Other",t))(Dn||{});let bt=Symbol("ComboboxContext");function oe(t){let n=e.inject(bt,null);if(n===null){let l=new Error(`<${t} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(l,oe),l}return n}let Mn=e.defineComponent({name:"Combobox",emits:{"update:modelValue":t=>!0},props:{as:{type:[Object,String],default:"template"},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],default:()=>Bn},modelValue:{type:[Object,String,Number,Boolean],default:void 0},defaultValue:{type:[Object,String,Number,Boolean],default:void 0},form:{type:String,optional:!0},name:{type:String,optional:!0},nullable:{type:Boolean,default:!1},multiple:{type:[Boolean],default:!1}},inheritAttrs:!1,setup(t,{slots:n,attrs:l,emit:r}){let o=e.ref(1),a=e.ref(null),i=e.ref(null),s=e.ref(null),u=e.ref(null),c=e.ref({static:!1,hold:!1}),d=e.ref([]),v=e.ref(null),m=e.ref(1),p=e.ref(!1);function h(x=C=>C){let C=v.value!==null?d.value[v.value]:null,$=Ae(x(d.value.slice()),N=>y(N.dataRef.domRef)),E=C?$.indexOf(C):null;return E===-1&&(E=null),{options:$,activeOptionIndex:E}}let g=e.computed(()=>t.multiple?1:0),f=e.computed(()=>t.nullable),[b,k]=gt(e.computed(()=>t.modelValue===void 0?O(g.value,{1:[],0:void 0}):t.modelValue),x=>r("update:modelValue",x),e.computed(()=>t.defaultValue)),w={comboboxState:o,value:b,mode:g,compare(x,C){if(typeof t.by=="string"){let $=t.by;return(x==null?void 0:x[$])===(C==null?void 0:C[$])}return t.by(x,C)},defaultValue:e.computed(()=>t.defaultValue),nullable:f,inputRef:i,labelRef:a,buttonRef:s,optionsRef:u,disabled:e.computed(()=>t.disabled),options:d,change(x){k(x)},activeOptionIndex:e.computed(()=>{if(p.value&&v.value===null&&d.value.length>0){let x=d.value.findIndex(C=>!C.dataRef.disabled);x!==-1&&(v.value=x)}return v.value}),activationTrigger:m,optionsPropsRef:c,closeCombobox(){p.value=!1,!t.disabled&&o.value!==1&&(o.value=1,v.value=null)},openCombobox(){if(p.value=!0,t.disabled||o.value===0)return;let x=d.value.findIndex(C=>{let $=e.toRaw(C.dataRef.value);return O(g.value,{0:()=>w.compare(e.toRaw(w.value.value),e.toRaw($)),1:()=>e.toRaw(w.value.value).some(E=>w.compare(e.toRaw(E),e.toRaw($)))})});x!==-1&&(v.value=x),o.value=0},goToOption(x,C,$){if(p.value=!1,t.disabled||u.value&&!c.value.static&&o.value===1)return;let E=h();if(E.activeOptionIndex===null){let M=E.options.findIndex(A=>!A.dataRef.disabled);M!==-1&&(E.activeOptionIndex=M)}let N=at(x===B.Specific?{focus:B.Specific,id:C}:{focus:x},{resolveItems:()=>E.options,resolveActiveIndex:()=>E.activeOptionIndex,resolveId:M=>M.id,resolveDisabled:M=>M.dataRef.disabled});v.value=N,m.value=$??1,d.value=E.options},selectOption(x){let C=d.value.find(E=>E.id===x);if(!C)return;let{dataRef:$}=C;k(O(g.value,{0:()=>$.value,1:()=>{let E=e.toRaw(w.value.value).slice(),N=e.toRaw($.value),M=E.findIndex(A=>w.compare(N,e.toRaw(A)));return M===-1?E.push(N):E.splice(M,1),E}}))},selectActiveOption(){if(w.activeOptionIndex.value===null)return;let{dataRef:x,id:C}=d.value[w.activeOptionIndex.value];k(O(g.value,{0:()=>x.value,1:()=>{let $=e.toRaw(w.value.value).slice(),E=e.toRaw(x.value),N=$.findIndex(M=>w.compare(E,e.toRaw(M)));return N===-1?$.push(E):$.splice(N,1),$}})),w.goToOption(B.Specific,C)},registerOption(x,C){let $={id:x,dataRef:C},E=h(N=>[...N,$]);if(v.value===null){let N=C.value.value;O(g.value,{0:()=>w.compare(e.toRaw(w.value.value),e.toRaw(N)),1:()=>e.toRaw(w.value.value).some(M=>w.compare(e.toRaw(M),e.toRaw(N)))})&&(E.activeOptionIndex=E.options.indexOf($))}d.value=E.options,v.value=E.activeOptionIndex,m.value=1,E.options.some(N=>!y(N.dataRef.domRef))&&requestAnimationFrame(()=>{let N=h();d.value=N.options,v.value=N.activeOptionIndex})},unregisterOption(x){var C;w.activeOptionIndex.value!==null&&((C=w.options.value[w.activeOptionIndex.value])==null?void 0:C.id)===x&&(p.value=!0);let $=h(E=>{let N=E.findIndex(M=>M.id===x);return N!==-1&&E.splice(N,1),E});d.value=$.options,v.value=$.activeOptionIndex,m.value=1}};ze([i,s,u],()=>w.closeCombobox(),e.computed(()=>o.value===0)),e.provide(bt,w),ke(e.computed(()=>O(o.value,{0:D.Open,1:D.Closed})));let j=e.computed(()=>w.activeOptionIndex.value===null?null:d.value[w.activeOptionIndex.value].dataRef.value),F=e.computed(()=>{var x;return(x=y(i))==null?void 0:x.closest("form")});return e.onMounted(()=>{e.watch([F],()=>{if(!F.value||t.defaultValue===void 0)return;function x(){w.change(t.defaultValue)}return F.value.addEventListener("reset",x),()=>{var C;(C=F.value)==null||C.removeEventListener("reset",x)}},{immediate:!0})}),()=>{let{name:x,disabled:C,form:$,...E}=t,N={open:o.value===0,disabled:C,activeIndex:w.activeOptionIndex.value,activeOption:j.value,value:b.value};return e.h(e.Fragment,[...x!=null&&b.value!=null?ft({[x]:b.value}).map(([M,A])=>e.h(ue,rt({features:te.Hidden,key:M,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:$,name:M,value:A}))):[],V({theirProps:{...l,...me(E,["modelValue","defaultValue","nullable","multiple","onUpdate:modelValue","by"])},ourProps:{},slot:N,slots:n,attrs:l,name:"Combobox"})])}}}),Tn=e.defineComponent({name:"ComboboxLabel",props:{as:{type:[Object,String],default:"label"},id:{type:String,default:()=>`headlessui-combobox-label-${P()}`}},setup(t,{attrs:n,slots:l}){let r=oe("ComboboxLabel");function o(){var a;(a=y(r.inputRef))==null||a.focus({preventScroll:!0})}return()=>{let a={open:r.comboboxState.value===0,disabled:r.disabled.value},{id:i,...s}=t,u={id:i,ref:r.labelRef,onClick:o};return V({ourProps:u,theirProps:s,slot:a,attrs:n,slots:l,name:"ComboboxLabel"})}}}),On=e.defineComponent({name:"ComboboxButton",props:{as:{type:[Object,String],default:"button"},id:{type:String,default:()=>`headlessui-combobox-button-${P()}`}},setup(t,{attrs:n,slots:l,expose:r}){let o=oe("ComboboxButton");r({el:o.buttonRef,$el:o.buttonRef});function a(u){o.disabled.value||(o.comboboxState.value===0?o.closeCombobox():(u.preventDefault(),o.openCombobox()),e.nextTick(()=>{var c;return(c=y(o.inputRef))==null?void 0:c.focus({preventScroll:!0})}))}function i(u){switch(u.key){case S.ArrowDown:u.preventDefault(),u.stopPropagation(),o.comboboxState.value===1&&o.openCombobox(),e.nextTick(()=>{var c;return(c=o.inputRef.value)==null?void 0:c.focus({preventScroll:!0})});return;case S.ArrowUp:u.preventDefault(),u.stopPropagation(),o.comboboxState.value===1&&(o.openCombobox(),e.nextTick(()=>{o.value.value||o.goToOption(B.Last)})),e.nextTick(()=>{var c;return(c=o.inputRef.value)==null?void 0:c.focus({preventScroll:!0})});return;case S.Escape:if(o.comboboxState.value!==0)return;u.preventDefault(),o.optionsRef.value&&!o.optionsPropsRef.value.static&&u.stopPropagation(),o.closeCombobox(),e.nextTick(()=>{var c;return(c=o.inputRef.value)==null?void 0:c.focus({preventScroll:!0})});return}}let s=Ee(e.computed(()=>({as:t.as,type:n.type})),o.buttonRef);return()=>{var u,c;let d={open:o.comboboxState.value===0,disabled:o.disabled.value,value:o.value.value},{id:v,...m}=t,p={ref:o.buttonRef,id:v,type:s.value,tabindex:"-1","aria-haspopup":"listbox","aria-controls":(u=y(o.optionsRef))==null?void 0:u.id,"aria-expanded":o.disabled.value?void 0:o.comboboxState.value===0,"aria-labelledby":o.labelRef.value?[(c=y(o.labelRef))==null?void 0:c.id,v].join(" "):void 0,disabled:o.disabled.value===!0?!0:void 0,onKeydown:i,onClick:a};return V({ourProps:p,theirProps:m,slot:d,attrs:n,slots:l,name:"ComboboxButton"})}}}),Pn=e.defineComponent({name:"ComboboxInput",props:{as:{type:[Object,String],default:"input"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},displayValue:{type:Function},defaultValue:{type:String,default:void 0},id:{type:String,default:()=>`headlessui-combobox-input-${P()}`}},emits:{change:t=>!0},setup(t,{emit:n,attrs:l,slots:r,expose:o}){let a=oe("ComboboxInput"),i={value:!1};o({el:a.inputRef,$el:a.inputRef});let s=e.computed(()=>{var f;let b=a.value.value;return y(a.inputRef)?typeof t.displayValue<"u"&&b!==void 0?(f=t.displayValue(b))!=null?f:"":typeof b=="string"?b:"":""});e.onMounted(()=>{e.watch([s,a.comboboxState],([f,b],[k,w])=>{if(i.value)return;let j=y(a.inputRef);j&&(w===0&&b===1||f!==k)&&(j.value=f)},{immediate:!0}),e.watch([a.comboboxState],([f],[b])=>{if(f===0&&b===1){let k=y(a.inputRef);if(!k)return;let w=k.value,{selectionStart:j,selectionEnd:F,selectionDirection:x}=k;k.value="",k.value=w,x!==null?k.setSelectionRange(j,F,x):k.setSelectionRange(j,F)}})});let u=e.ref(!1),c=e.ref(null);function d(){u.value=!0}function v(){pe().nextFrame(()=>{u.value=!1,c.value&&(a.openCombobox(),n("change",c.value),c.value=null)})}function m(f){switch(i.value=!0,f.key){case S.Backspace:case S.Delete:if(a.mode.value!==0||!a.nullable.value)return;let b=f.currentTarget;requestAnimationFrame(()=>{if(b.value===""){a.change(null);let k=y(a.optionsRef);k&&(k.scrollTop=0),a.goToOption(B.Nothing)}});break;case S.Enter:if(i.value=!1,a.comboboxState.value!==0||u.value)return;if(f.preventDefault(),f.stopPropagation(),a.activeOptionIndex.value===null){a.closeCombobox();return}a.selectActiveOption(),a.mode.value===0&&a.closeCombobox();break;case S.ArrowDown:return i.value=!1,f.preventDefault(),f.stopPropagation(),O(a.comboboxState.value,{0:()=>a.goToOption(B.Next),1:()=>a.openCombobox()});case S.ArrowUp:return i.value=!1,f.preventDefault(),f.stopPropagation(),O(a.comboboxState.value,{0:()=>a.goToOption(B.Previous),1:()=>{a.openCombobox(),e.nextTick(()=>{a.value.value||a.goToOption(B.Last)})}});case S.Home:if(f.shiftKey)break;return i.value=!1,f.preventDefault(),f.stopPropagation(),a.goToOption(B.First);case S.PageUp:return i.value=!1,f.preventDefault(),f.stopPropagation(),a.goToOption(B.First);case S.End:if(f.shiftKey)break;return i.value=!1,f.preventDefault(),f.stopPropagation(),a.goToOption(B.Last);case S.PageDown:return i.value=!1,f.preventDefault(),f.stopPropagation(),a.goToOption(B.Last);case S.Escape:if(i.value=!1,a.comboboxState.value!==0)return;f.preventDefault(),a.optionsRef.value&&!a.optionsPropsRef.value.static&&f.stopPropagation(),a.closeCombobox();break;case S.Tab:if(i.value=!1,a.comboboxState.value!==0)return;a.mode.value===0&&a.selectActiveOption(),a.closeCombobox();break}}function p(f){if(u.value){c.value=f;return}a.openCombobox(),n("change",f)}function h(){i.value=!1}let g=e.computed(()=>{var f,b,k,w;return(w=(k=(b=t.defaultValue)!=null?b:a.defaultValue.value!==void 0?(f=t.displayValue)==null?void 0:f.call(t,a.defaultValue.value):null)!=null?k:a.defaultValue.value)!=null?w:""});return()=>{var f,b,k,w,j,F;let x={open:a.comboboxState.value===0},{id:C,displayValue:$,onChange:E,...N}=t,M={"aria-controls":(f=a.optionsRef.value)==null?void 0:f.id,"aria-expanded":a.disabled.value?void 0:a.comboboxState.value===0,"aria-activedescendant":a.activeOptionIndex.value===null||(b=a.options.value[a.activeOptionIndex.value])==null?void 0:b.id,"aria-labelledby":(j=(k=y(a.labelRef))==null?void 0:k.id)!=null?j:(w=y(a.buttonRef))==null?void 0:w.id,"aria-autocomplete":"list",id:C,onCompositionstart:d,onCompositionend:v,onKeydown:m,onInput:p,onBlur:h,role:"combobox",type:(F=l.type)!=null?F:"text",tabIndex:0,ref:a.inputRef,defaultValue:g.value,disabled:a.disabled.value===!0?!0:void 0};return V({ourProps:M,theirProps:N,slot:x,attrs:l,slots:r,features:z.RenderStrategy|z.Static,name:"ComboboxInput"})}}}),Ln=e.defineComponent({name:"ComboboxOptions",props:{as:{type:[Object,String],default:"ul"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},hold:{type:[Boolean],default:!1}},setup(t,{attrs:n,slots:l,expose:r}){let o=oe("ComboboxOptions"),a=`headlessui-combobox-options-${P()}`;r({el:o.optionsRef,$el:o.optionsRef}),e.watchEffect(()=>{o.optionsPropsRef.value.static=t.static}),e.watchEffect(()=>{o.optionsPropsRef.value.hold=t.hold});let i=ne(),s=e.computed(()=>i!==null?(i.value&D.Open)===D.Open:o.comboboxState.value===0);return st({container:e.computed(()=>y(o.optionsRef)),enabled:e.computed(()=>o.comboboxState.value===0),accept(u){return u.getAttribute("role")==="option"?NodeFilter.FILTER_REJECT:u.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(u){u.setAttribute("role","none")}}),()=>{var u,c,d;let v={open:o.comboboxState.value===0},m={"aria-labelledby":(d=(u=y(o.labelRef))==null?void 0:u.id)!=null?d:(c=y(o.buttonRef))==null?void 0:c.id,id:a,ref:o.optionsRef,role:"listbox","aria-multiselectable":o.mode.value===1?!0:void 0},p=me(t,["hold"]);return V({ourProps:m,theirProps:p,slot:v,attrs:n,slots:l,features:z.RenderStrategy|z.Static,visible:s.value,name:"ComboboxOptions"})}}}),jn=e.defineComponent({name:"ComboboxOption",props:{as:{type:[Object,String],default:"li"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1}},setup(t,{slots:n,attrs:l,expose:r}){let o=oe("ComboboxOption"),a=`headlessui-combobox-option-${P()}`,i=e.ref(null);r({el:i,$el:i});let s=e.computed(()=>o.activeOptionIndex.value!==null?o.options.value[o.activeOptionIndex.value].id===a:!1),u=e.computed(()=>O(o.mode.value,{0:()=>o.compare(e.toRaw(o.value.value),e.toRaw(t.value)),1:()=>e.toRaw(o.value.value).some(f=>o.compare(e.toRaw(f),e.toRaw(t.value)))})),c=e.computed(()=>({disabled:t.disabled,value:t.value,domRef:i}));e.onMounted(()=>o.registerOption(a,c)),e.onUnmounted(()=>o.unregisterOption(a)),e.watchEffect(()=>{o.comboboxState.value===0&&s.value&&o.activationTrigger.value!==0&&e.nextTick(()=>{var f,b;return(b=(f=y(i))==null?void 0:f.scrollIntoView)==null?void 0:b.call(f,{block:"nearest"})})});function d(f){if(t.disabled)return f.preventDefault();o.selectOption(a),o.mode.value===0&&o.closeCombobox(),Nn()||requestAnimationFrame(()=>{var b;return(b=y(o.inputRef))==null?void 0:b.focus()})}function v(){if(t.disabled)return o.goToOption(B.Nothing);o.goToOption(B.Specific,a)}let m=ht();function p(f){m.update(f)}function h(f){m.wasMoved(f)&&(t.disabled||s.value||o.goToOption(B.Specific,a,0))}function g(f){m.wasMoved(f)&&(t.disabled||s.value&&(o.optionsPropsRef.value.hold||o.goToOption(B.Nothing)))}return()=>{let{disabled:f}=t,b={active:s.value,selected:u.value,disabled:f},k={id:a,ref:i,role:"option",tabIndex:f===!0?void 0:-1,"aria-disabled":f===!0?!0:void 0,"aria-selected":u.value,disabled:void 0,onClick:d,onFocus:v,onPointerenter:p,onMouseenter:p,onPointermove:h,onMousemove:h,onPointerleave:g,onMouseleave:g};return V({ourProps:k,theirProps:t,slot:b,attrs:l,slots:n,name:"ComboboxOption"})}}});var se=(t=>(t[t.Forwards=0]="Forwards",t[t.Backwards=1]="Backwards",t))(se||{});function Fn(){let t=e.ref(0);return mt("keydown",n=>{n.key==="Tab"&&(t.value=n.shiftKey?1:0)}),t}function xt(t,n,l,r){fe.isServer||e.watchEffect(o=>{t=t??window,t.addEventListener(n,l,r),o(()=>t.removeEventListener(n,l,r))})}function wt(t){typeof queueMicrotask=="function"?queueMicrotask(t):Promise.resolve().then(t).catch(n=>setTimeout(()=>{throw n}))}function Rn(t){function n(){document.readyState!=="loading"&&(t(),document.removeEventListener("DOMContentLoaded",n))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",n),n())}function kt(t){if(!t)return new Set;if(typeof t=="function")return new Set(t());let n=new Set;for(let l of t.value){let r=y(l);r instanceof HTMLElement&&n.add(r)}return n}var Et=(t=>(t[t.None=1]="None",t[t.InitialFocus=2]="InitialFocus",t[t.TabLock=4]="TabLock",t[t.FocusLock=8]="FocusLock",t[t.RestoreFocus=16]="RestoreFocus",t[t.All=30]="All",t))(Et||{});let ae=Object.assign(e.defineComponent({name:"FocusTrap",props:{as:{type:[Object,String],default:"div"},initialFocus:{type:Object,default:null},features:{type:Number,default:30},containers:{type:[Object,Function],default:e.ref(new Set)}},inheritAttrs:!1,setup(t,{attrs:n,slots:l,expose:r}){let o=e.ref(null);r({el:o,$el:o});let a=e.computed(()=>G(o)),i=e.ref(!1);e.onMounted(()=>i.value=!0),e.onUnmounted(()=>i.value=!1),An({ownerDocument:a},e.computed(()=>i.value&&!!(t.features&16)));let s=zn({ownerDocument:a,container:o,initialFocus:e.computed(()=>t.initialFocus)},e.computed(()=>i.value&&!!(t.features&2)));Hn({ownerDocument:a,container:o,containers:t.containers,previousActiveElement:s},e.computed(()=>i.value&&!!(t.features&8)));let u=Fn();function c(p){let h=y(o);h&&(g=>g())(()=>{O(u.value,{[se.Forwards]:()=>{ce(h,U.First,{skipElements:[p.relatedTarget]})},[se.Backwards]:()=>{ce(h,U.Last,{skipElements:[p.relatedTarget]})}})})}let d=e.ref(!1);function v(p){p.key==="Tab"&&(d.value=!0,requestAnimationFrame(()=>{d.value=!1}))}function m(p){if(!i.value)return;let h=kt(t.containers);y(o)instanceof HTMLElement&&h.add(y(o));let g=p.relatedTarget;g instanceof HTMLElement&&g.dataset.headlessuiFocusGuard!=="true"&&(St(h,g)||(d.value?ce(y(o),O(u.value,{[se.Forwards]:()=>U.Next,[se.Backwards]:()=>U.Previous})|U.WrapAround,{relativeTo:p.target}):p.target instanceof HTMLElement&&J(p.target)))}return()=>{let p={},h={ref:o,onKeydown:v,onFocusout:m},{features:g,initialFocus:f,containers:b,...k}=t;return e.h(e.Fragment,[!!(g&4)&&e.h(ue,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:c,features:te.Focusable}),V({ourProps:h,theirProps:{...n,...k},slot:p,attrs:n,slots:l,name:"FocusTrap"}),!!(g&4)&&e.h(ue,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:c,features:te.Focusable})])}}}),{features:Et}),Q=[];Rn(()=>{function t(n){n.target instanceof HTMLElement&&n.target!==document.body&&Q[0]!==n.target&&(Q.unshift(n.target),Q=Q.filter(l=>l!=null&&l.isConnected),Q.splice(10))}window.addEventListener("click",t,{capture:!0}),window.addEventListener("mousedown",t,{capture:!0}),window.addEventListener("focus",t,{capture:!0}),document.body.addEventListener("click",t,{capture:!0}),document.body.addEventListener("mousedown",t,{capture:!0}),document.body.addEventListener("focus",t,{capture:!0})});function In(t){let n=e.ref(Q.slice());return e.watch([t],([l],[r])=>{r===!0&&l===!1?wt(()=>{n.value.splice(0)}):r===!1&&l===!0&&(n.value=Q.slice())},{flush:"post"}),()=>{var l;return(l=n.value.find(r=>r!=null&&r.isConnected))!=null?l:null}}function An({ownerDocument:t},n){let l=In(n);e.onMounted(()=>{e.watchEffect(()=>{var r,o;n.value||((r=t.value)==null?void 0:r.activeElement)===((o=t.value)==null?void 0:o.body)&&J(l())},{flush:"post"})}),e.onUnmounted(()=>{n.value&&J(l())})}function zn({ownerDocument:t,container:n,initialFocus:l},r){let o=e.ref(null),a=e.ref(!1);return e.onMounted(()=>a.value=!0),e.onUnmounted(()=>a.value=!1),e.onMounted(()=>{e.watch([n,l,r],(i,s)=>{if(i.every((c,d)=>(s==null?void 0:s[d])===c)||!r.value)return;let u=y(n);u&&wt(()=>{var c,d;if(!a.value)return;let v=y(l),m=(c=t.value)==null?void 0:c.activeElement;if(v){if(v===m){o.value=m;return}}else if(u.contains(m)){o.value=m;return}v?J(v):ce(u,U.First|U.NoScroll)===ct.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),o.value=(d=t.value)==null?void 0:d.activeElement})},{immediate:!0,flush:"post"})}),o}function Hn({ownerDocument:t,container:n,containers:l,previousActiveElement:r},o){var a;xt((a=t.value)==null?void 0:a.defaultView,"focus",i=>{if(!o.value)return;let s=kt(l);y(n)instanceof HTMLElement&&s.add(y(n));let u=r.value;if(!u)return;let c=i.target;c&&c instanceof HTMLElement?St(s,c)?(r.value=c,J(c)):(i.preventDefault(),i.stopPropagation(),J(u)):J(r.value)},!0)}function St(t,n){for(let l of t)if(l.contains(n))return!0;return!1}let Ve=new Map,ie=new Map;function Xe(t,n=e.ref(!0)){e.watchEffect(l=>{var r;if(!n.value)return;let o=y(t);if(!o)return;l(function(){var i;if(!o)return;let s=(i=ie.get(o))!=null?i:1;if(s===1?ie.delete(o):ie.set(o,s-1),s!==1)return;let u=Ve.get(o);u&&(u["aria-hidden"]===null?o.removeAttribute("aria-hidden"):o.setAttribute("aria-hidden",u["aria-hidden"]),o.inert=u.inert,Ve.delete(o))});let a=(r=ie.get(o))!=null?r:0;ie.set(o,a+1),a===0&&(Ve.set(o,{"aria-hidden":o.getAttribute("aria-hidden"),inert:o.inert}),o.setAttribute("aria-hidden","true"),o.inert=!0)})}let Ct=Symbol("ForcePortalRootContext");function Yn(){return e.inject(Ct,!1)}let Me=e.defineComponent({name:"ForcePortalRoot",props:{as:{type:[Object,String],default:"template"},force:{type:Boolean,default:!1}},setup(t,{slots:n,attrs:l}){return e.provide(Ct,t.force),()=>{let{force:r,...o}=t;return V({theirProps:o,ourProps:{},slot:{},slots:n,attrs:l,name:"ForcePortalRoot"})}}});function Un(t){let n=G(t);if(!n){if(t===null)return null;throw new Error(`[Headless UI]: Cannot find ownerDocument for contextElement: ${t}`)}let l=n.getElementById("headlessui-portal-root");if(l)return l;let r=n.createElement("div");return r.setAttribute("id","headlessui-portal-root"),n.body.appendChild(r)}let $t=e.defineComponent({name:"Portal",props:{as:{type:[Object,String],default:"div"}},setup(t,{slots:n,attrs:l}){let r=e.ref(null),o=e.computed(()=>G(r)),a=Yn(),i=e.inject(Nt,null),s=e.ref(a===!0||i==null?Un(r.value):i.resolveTarget());e.watchEffect(()=>{a||i!=null&&(s.value=i.resolveTarget())});let u=e.inject(Te,null);return e.onMounted(()=>{let c=y(r);c&&u&&e.onUnmounted(u.register(c))}),e.onUnmounted(()=>{var c,d;let v=(c=o.value)==null?void 0:c.getElementById("headlessui-portal-root");v&&s.value===v&&s.value.children.length<=0&&((d=s.value.parentElement)==null||d.removeChild(s.value))}),()=>{if(s.value===null)return null;let c={ref:r,"data-headlessui-portal":""};return e.h(e.Teleport,{to:s.value},V({ourProps:c,theirProps:t,slot:{},attrs:l,slots:n,name:"Portal"}))}}}),Te=Symbol("PortalParentContext");function qn(){let t=e.inject(Te,null),n=e.ref([]);function l(a){return n.value.push(a),t&&t.register(a),()=>r(a)}function r(a){let i=n.value.indexOf(a);i!==-1&&n.value.splice(i,1),t&&t.unregister(a)}let o={register:l,unregister:r,portals:n};return[n,e.defineComponent({name:"PortalWrapper",setup(a,{slots:i}){return e.provide(Te,o),()=>{var s;return(s=i.default)==null?void 0:s.call(i)}}})]}let Nt=Symbol("PortalGroupContext"),Wn=e.defineComponent({name:"PortalGroup",props:{as:{type:[Object,String],default:"template"},target:{type:Object,default:null}},setup(t,{attrs:n,slots:l}){let r=e.reactive({resolveTarget(){return t.target}});return e.provide(Nt,r),()=>{let{target:o,...a}=t;return V({theirProps:a,ourProps:{},slot:{},attrs:n,slots:l,name:"PortalGroup"})}}}),Bt=Symbol("StackContext");var Oe=(t=>(t[t.Add=0]="Add",t[t.Remove=1]="Remove",t))(Oe||{});function Kn(){return e.inject(Bt,()=>{})}function Jn({type:t,enabled:n,element:l,onUpdate:r}){let o=Kn();function a(...i){r==null||r(...i),o(...i)}e.onMounted(()=>{e.watch(n,(i,s)=>{i?a(0,t,l):s===!0&&a(1,t,l)},{immediate:!0,flush:"sync"})}),e.onUnmounted(()=>{n.value&&a(1,t,l)}),e.provide(Bt,a)}let Vt=Symbol("DescriptionContext");function Gn(){let t=e.inject(Vt,null);if(t===null)throw new Error("Missing parent");return t}function _t({slot:t=e.ref({}),name:n="Description",props:l={}}={}){let r=e.ref([]);function o(a){return r.value.push(a),()=>{let i=r.value.indexOf(a);i!==-1&&r.value.splice(i,1)}}return e.provide(Vt,{register:o,slot:t,name:n,props:l}),e.computed(()=>r.value.length>0?r.value.join(" "):void 0)}e.defineComponent({name:"Description",props:{as:{type:[Object,String],default:"p"},id:{type:String,default:()=>`headlessui-description-${P()}`}},setup(t,{attrs:n,slots:l}){let r=Gn();return e.onMounted(()=>e.onUnmounted(r.register(t.id))),()=>{let{name:o="Description",slot:a=e.ref({}),props:i={}}=r,{id:s,...u}=t,c={...Object.entries(i).reduce((d,[v,m])=>Object.assign(d,{[v]:e.unref(m)}),{}),id:s};return V({ourProps:c,theirProps:u,slot:a.value,attrs:n,slots:l,name:o})}}});function Xn(t){let n=e.shallowRef(t.getSnapshot());return e.onUnmounted(t.subscribe(()=>{n.value=t.getSnapshot()})),n}function Qn(t,n){let l=t(),r=new Set;return{getSnapshot(){return l},subscribe(o){return r.add(o),()=>r.delete(o)},dispatch(o,...a){let i=n[o].call(l,...a);i&&(l=i,r.forEach(s=>s()))}}}function Zn(){let t;return{before({doc:n}){var l;let r=n.documentElement;t=((l=n.defaultView)!=null?l:window).innerWidth-r.clientWidth},after({doc:n,d:l}){let r=n.documentElement,o=r.clientWidth-r.offsetWidth,a=t-o;l.style(r,"paddingRight",`${a}px`)}}}function eo(){if(!yt())return{};let t;return{before(){t=window.pageYOffset},after({doc:n,d:l,meta:r}){function o(i){return r.containers.flatMap(s=>s()).some(s=>s.contains(i))}l.style(n.body,"marginTop",`-${t}px`),window.scrollTo(0,0);let a=null;l.addEventListener(n,"click",i=>{if(i.target instanceof HTMLElement)try{let s=i.target.closest("a");if(!s)return;let{hash:u}=new URL(s.href),c=n.querySelector(u);c&&!o(c)&&(a=c)}catch{}},!0),l.addEventListener(n,"touchmove",i=>{i.target instanceof HTMLElement&&!o(i.target)&&i.preventDefault()},{passive:!1}),l.add(()=>{window.scrollTo(0,window.pageYOffset+t),a&&a.isConnected&&(a.scrollIntoView({block:"nearest"}),a=null)})}}}function to(){return{before({doc:t,d:n}){n.style(t.documentElement,"overflow","hidden")}}}function no(t){let n={};for(let l of t)Object.assign(n,l(n));return n}let Z=Qn(()=>new Map,{PUSH(t,n){var l;let r=(l=this.get(t))!=null?l:{doc:t,count:0,d:pe(),meta:new Set};return r.count++,r.meta.add(n),this.set(t,r),this},POP(t,n){let l=this.get(t);return l&&(l.count--,l.meta.delete(n)),this},SCROLL_PREVENT({doc:t,d:n,meta:l}){let r={doc:t,d:n,meta:no(l)},o=[eo(),Zn(),to()];o.forEach(({before:a})=>a==null?void 0:a(r)),o.forEach(({after:a})=>a==null?void 0:a(r))},SCROLL_ALLOW({d:t}){t.dispose()},TEARDOWN({doc:t}){this.delete(t)}});Z.subscribe(()=>{let t=Z.getSnapshot(),n=new Map;for(let[l]of t)n.set(l,l.documentElement.style.overflow);for(let l of t.values()){let r=n.get(l.doc)==="hidden",o=l.count!==0;(o&&!r||!o&&r)&&Z.dispatch(l.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",l),l.count===0&&Z.dispatch("TEARDOWN",l)}});function oo(t,n,l){let r=Xn(Z),o=e.computed(()=>{let a=t.value?r.value.get(t.value):void 0;return a?a.count>0:!1});return e.watch([t,n],([a,i],[s],u)=>{if(!a||!i)return;Z.dispatch("PUSH",a,l);let c=!1;u(()=>{c||(Z.dispatch("POP",s??a,l),c=!0)})},{immediate:!0}),o}function lo({defaultContainers:t=[],portals:n}={}){let l=e.ref(null),r=G(l);function o(){var a;let i=[];for(let s of t)s!==null&&(s instanceof HTMLElement?i.push(s):"value"in s&&s.value instanceof HTMLElement&&i.push(s.value));if(n!=null&&n.value)for(let s of n.value)i.push(s);for(let s of(a=r==null?void 0:r.querySelectorAll("html > *, body > *"))!=null?a:[])s!==document.body&&s!==document.head&&s instanceof HTMLElement&&s.id!=="headlessui-portal-root"&&(s.contains(y(l))||i.some(u=>s.contains(u))||i.push(s));return i}return{resolveContainers:o,contains(a){return o().some(i=>i.contains(a))},mainTreeNodeRef:l,MainTreeNode(){return e.h(ue,{features:te.Hidden,ref:l})}}}var ro=(t=>(t[t.Open=0]="Open",t[t.Closed=1]="Closed",t))(ro||{});let Pe=Symbol("DialogContext");function ve(t){let n=e.inject(Pe,null);if(n===null){let l=new Error(`<${t} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(l,ve),l}return n}let be="DC8F892D-2EBD-447C-A4C8-A03058436FF4",ao=e.defineComponent({name:"Dialog",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},open:{type:[Boolean,String],default:be},initialFocus:{type:Object,default:null},id:{type:String,default:()=>`headlessui-dialog-${P()}`}},emits:{close:t=>!0},setup(t,{emit:n,attrs:l,slots:r,expose:o}){var a;let i=e.ref(!1);e.onMounted(()=>{i.value=!0});let s=e.ref(0),u=ne(),c=e.computed(()=>t.open===be&&u!==null?(u.value&D.Open)===D.Open:t.open),d=e.ref(null),v=e.computed(()=>G(d));if(o({el:d,$el:d}),!(t.open!==be||u!==null))throw new Error("You forgot to provide an `open` prop to the `Dialog`.");if(typeof c.value!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${c.value===be?void 0:t.open}`);let m=e.computed(()=>i.value&&c.value?0:1),p=e.computed(()=>m.value===0),h=e.computed(()=>s.value>1),g=e.inject(Pe,null)!==null,[f,b]=qn(),{resolveContainers:k,mainTreeNodeRef:w,MainTreeNode:j}=lo({portals:f,defaultContainers:[e.computed(()=>{var _;return(_=I.panelRef.value)!=null?_:d.value})]}),F=e.computed(()=>h.value?"parent":"leaf"),x=e.computed(()=>u!==null?(u.value&D.Closing)===D.Closing:!1),C=e.computed(()=>g||x.value?!1:p.value),$=e.computed(()=>{var _,L,H;return(H=Array.from((L=(_=v.value)==null?void 0:_.querySelectorAll("body > *"))!=null?L:[]).find(Y=>Y.id==="headlessui-portal-root"?!1:Y.contains(y(w))&&Y instanceof HTMLElement))!=null?H:null});Xe($,C);let E=e.computed(()=>h.value?!0:p.value),N=e.computed(()=>{var _,L,H;return(H=Array.from((L=(_=v.value)==null?void 0:_.querySelectorAll("[data-headlessui-portal]"))!=null?L:[]).find(Y=>Y.contains(y(w))&&Y instanceof HTMLElement))!=null?H:null});Xe(N,E),Jn({type:"Dialog",enabled:e.computed(()=>m.value===0),element:d,onUpdate:(_,L)=>{if(L==="Dialog")return O(_,{[Oe.Add]:()=>s.value+=1,[Oe.Remove]:()=>s.value-=1})}});let M=_t({name:"DialogDescription",slot:e.computed(()=>({open:c.value}))}),A=e.ref(null),I={titleId:A,panelRef:e.ref(null),dialogState:m,setTitleId(_){A.value!==_&&(A.value=_)},close(){n("close",!1)}};e.provide(Pe,I);let re=e.computed(()=>!(!p.value||h.value));ze(k,(_,L)=>{I.close(),e.nextTick(()=>L==null?void 0:L.focus())},re);let q=e.computed(()=>!(h.value||m.value!==0));xt((a=v.value)==null?void 0:a.defaultView,"keydown",_=>{q.value&&(_.defaultPrevented||_.key===S.Escape&&(_.preventDefault(),_.stopPropagation(),I.close()))});let ee=e.computed(()=>!(x.value||m.value!==0||g));return oo(v,ee,_=>{var L;return{containers:[...(L=_.containers)!=null?L:[],k]}}),e.watchEffect(_=>{if(m.value!==0)return;let L=y(d);if(!L)return;let H=new ResizeObserver(Y=>{for(let ye of Y){let W=ye.target.getBoundingClientRect();W.x===0&&W.y===0&&W.width===0&&W.height===0&&I.close()}});H.observe(L),_(()=>H.disconnect())}),()=>{let{id:_,open:L,initialFocus:H,...Y}=t,ye={...l,ref:d,id:_,role:"dialog","aria-modal":m.value===0?!0:void 0,"aria-labelledby":A.value,"aria-describedby":M.value},W={open:m.value===0};return e.h(Me,{force:!0},()=>[e.h($t,()=>e.h(Wn,{target:d.value},()=>e.h(Me,{force:!1},()=>e.h(ae,{initialFocus:H,containers:k,features:p.value?O(F.value,{parent:ae.features.RestoreFocus,leaf:ae.features.All&~ae.features.FocusLock}):ae.features.None},()=>e.h(b,{},()=>V({ourProps:ye,theirProps:{...Y,...l},slot:W,attrs:l,slots:r,visible:m.value===0,features:z.RenderStrategy|z.Static,name:"Dialog"})))))),e.h(j)])}}});e.defineComponent({name:"DialogOverlay",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:()=>`headlessui-dialog-overlay-${P()}`}},setup(t,{attrs:n,slots:l}){let r=ve("DialogOverlay");function o(a){a.target===a.currentTarget&&(a.preventDefault(),a.stopPropagation(),r.close())}return()=>{let{id:a,...i}=t;return V({ourProps:{id:a,"aria-hidden":!0,onClick:o},theirProps:i,slot:{open:r.dialogState.value===0},attrs:n,slots:l,name:"DialogOverlay"})}}});e.defineComponent({name:"DialogBackdrop",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:()=>`headlessui-dialog-backdrop-${P()}`}},inheritAttrs:!1,setup(t,{attrs:n,slots:l,expose:r}){let o=ve("DialogBackdrop"),a=e.ref(null);return r({el:a,$el:a}),e.onMounted(()=>{if(o.panelRef.value===null)throw new Error("A <DialogBackdrop /> component is being used, but a <DialogPanel /> component is missing.")}),()=>{let{id:i,...s}=t,u={id:i,ref:a,"aria-hidden":!0};return e.h(Me,{force:!0},()=>e.h($t,()=>V({ourProps:u,theirProps:{...n,...s},slot:{open:o.dialogState.value===0},attrs:n,slots:l,name:"DialogBackdrop"})))}}});let io=e.defineComponent({name:"DialogPanel",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:()=>`headlessui-dialog-panel-${P()}`}},setup(t,{attrs:n,slots:l,expose:r}){let o=ve("DialogPanel");r({el:o.panelRef,$el:o.panelRef});function a(i){i.stopPropagation()}return()=>{let{id:i,...s}=t,u={id:i,ref:o.panelRef,onClick:a};return V({ourProps:u,theirProps:s,slot:{open:o.dialogState.value===0},attrs:n,slots:l,name:"DialogPanel"})}}}),so=e.defineComponent({name:"DialogTitle",props:{as:{type:[Object,String],default:"h2"},id:{type:String,default:()=>`headlessui-dialog-title-${P()}`}},setup(t,{attrs:n,slots:l}){let r=ve("DialogTitle");return e.onMounted(()=>{r.setTitleId(t.id),e.onUnmounted(()=>r.setTitleId(null))}),()=>{let{id:o,...a}=t;return V({ourProps:{id:o},theirProps:a,slot:{open:r.dialogState.value===0},attrs:n,slots:l,name:"DialogTitle"})}}});var co=(t=>(t[t.Open=0]="Open",t[t.Closed=1]="Closed",t))(co||{});let Dt=Symbol("DisclosureContext");function He(t){let n=e.inject(Dt,null);if(n===null){let l=new Error(`<${t} /> is missing a parent <Disclosure /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(l,He),l}return n}let Mt=Symbol("DisclosurePanelContext");function uo(){return e.inject(Mt,null)}let Tt=e.defineComponent({name:"Disclosure",props:{as:{type:[Object,String],default:"template"},defaultOpen:{type:[Boolean],default:!1}},setup(t,{slots:n,attrs:l}){let r=e.ref(t.defaultOpen?0:1),o=e.ref(null),a=e.ref(null),i={buttonId:e.ref(null),panelId:e.ref(null),disclosureState:r,panel:o,button:a,toggleDisclosure(){r.value=O(r.value,{0:1,1:0})},closeDisclosure(){r.value!==1&&(r.value=1)},close(s){i.closeDisclosure();let u=(()=>s?s instanceof HTMLElement?s:s.value instanceof HTMLElement?y(s):y(i.button):y(i.button))();u==null||u.focus()}};return e.provide(Dt,i),ke(e.computed(()=>O(r.value,{0:D.Open,1:D.Closed}))),()=>{let{defaultOpen:s,...u}=t,c={open:r.value===0,close:i.close};return V({theirProps:u,ourProps:{},slot:c,slots:n,attrs:l,name:"Disclosure"})}}}),Le=e.defineComponent({name:"DisclosureButton",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1},id:{type:String,default:()=>`headlessui-disclosure-button-${P()}`}},setup(t,{attrs:n,slots:l,expose:r}){let o=He("DisclosureButton");e.onMounted(()=>{o.buttonId.value=t.id}),e.onUnmounted(()=>{o.buttonId.value=null});let a=uo(),i=e.computed(()=>a===null?!1:a.value===o.panelId.value),s=e.ref(null);r({el:s,$el:s}),i.value||e.watchEffect(()=>{o.button.value=s.value});let u=Ee(e.computed(()=>({as:t.as,type:n.type})),s);function c(){var m;t.disabled||(i.value?(o.toggleDisclosure(),(m=y(o.button))==null||m.focus()):o.toggleDisclosure())}function d(m){var p;if(!t.disabled)if(i.value)switch(m.key){case S.Space:case S.Enter:m.preventDefault(),m.stopPropagation(),o.toggleDisclosure(),(p=y(o.button))==null||p.focus();break}else switch(m.key){case S.Space:case S.Enter:m.preventDefault(),m.stopPropagation(),o.toggleDisclosure();break}}function v(m){switch(m.key){case S.Space:m.preventDefault();break}}return()=>{let m={open:o.disclosureState.value===0},{id:p,...h}=t,g=i.value?{ref:s,type:u.value,onClick:c,onKeydown:d}:{id:p,ref:s,type:u.value,"aria-expanded":t.disabled?void 0:o.disclosureState.value===0,"aria-controls":y(o.panel)?o.panelId.value:void 0,disabled:t.disabled?!0:void 0,onClick:c,onKeydown:d,onKeyup:v};return V({ourProps:g,theirProps:h,slot:m,attrs:n,slots:l,name:"DisclosureButton"})}}}),Ot=e.defineComponent({name:"DisclosurePanel",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:()=>`headlessui-disclosure-panel-${P()}`}},setup(t,{attrs:n,slots:l,expose:r}){let o=He("DisclosurePanel");e.onMounted(()=>{o.panelId.value=t.id}),e.onUnmounted(()=>{o.panelId.value=null}),r({el:o.panel,$el:o.panel}),e.provide(Mt,o.panelId);let a=ne(),i=e.computed(()=>a!==null?(a.value&D.Open)===D.Open:o.disclosureState.value===0);return()=>{let s={open:o.disclosureState.value===0,close:o.close},{id:u,...c}=t,d={id:u,ref:o.panel};return V({ourProps:d,theirProps:c,slot:s,attrs:n,slots:l,features:z.RenderStrategy|z.Static,visible:i.value,name:"DisclosurePanel"})}}}),Qe=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function Ze(t){var n,l;let r=(n=t.innerText)!=null?n:"",o=t.cloneNode(!0);if(!(o instanceof HTMLElement))return r;let a=!1;for(let s of o.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))s.remove(),a=!0;let i=a?(l=o.innerText)!=null?l:"":r;return Qe.test(i)&&(i=i.replace(Qe,"")),i}function mo(t){let n=t.getAttribute("aria-label");if(typeof n=="string")return n.trim();let l=t.getAttribute("aria-labelledby");if(l){let r=l.split(" ").map(o=>{let a=document.getElementById(o);if(a){let i=a.getAttribute("aria-label");return typeof i=="string"?i.trim():Ze(a).trim()}return null}).filter(Boolean);if(r.length>0)return r.join(", ")}return Ze(t).trim()}function fo(t){let n=e.ref(""),l=e.ref("");return()=>{let r=y(t);if(!r)return"";let o=r.innerText;if(n.value===o)return l.value;let a=mo(r).trim().toLowerCase();return n.value=o,l.value=a,a}}var po=(t=>(t[t.Open=0]="Open",t[t.Closed=1]="Closed",t))(po||{}),vo=(t=>(t[t.Pointer=0]="Pointer",t[t.Other=1]="Other",t))(vo||{});function go(t){requestAnimationFrame(()=>requestAnimationFrame(t))}let Pt=Symbol("MenuContext");function Se(t){let n=e.inject(Pt,null);if(n===null){let l=new Error(`<${t} /> is missing a parent <Menu /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(l,Se),l}return n}let Lt=e.defineComponent({name:"Menu",props:{as:{type:[Object,String],default:"template"}},setup(t,{slots:n,attrs:l}){let r=e.ref(1),o=e.ref(null),a=e.ref(null),i=e.ref([]),s=e.ref(""),u=e.ref(null),c=e.ref(1);function d(m=p=>p){let p=u.value!==null?i.value[u.value]:null,h=Ae(m(i.value.slice()),f=>y(f.dataRef.domRef)),g=p?h.indexOf(p):null;return g===-1&&(g=null),{items:h,activeItemIndex:g}}let v={menuState:r,buttonRef:o,itemsRef:a,items:i,searchQuery:s,activeItemIndex:u,activationTrigger:c,closeMenu:()=>{r.value=1,u.value=null},openMenu:()=>r.value=0,goToItem(m,p,h){let g=d(),f=at(m===B.Specific?{focus:B.Specific,id:p}:{focus:m},{resolveItems:()=>g.items,resolveActiveIndex:()=>g.activeItemIndex,resolveId:b=>b.id,resolveDisabled:b=>b.dataRef.disabled});s.value="",u.value=f,c.value=h??1,i.value=g.items},search(m){let p=s.value!==""?0:1;s.value+=m.toLowerCase();let h=(u.value!==null?i.value.slice(u.value+p).concat(i.value.slice(0,u.value+p)):i.value).find(f=>f.dataRef.textValue.startsWith(s.value)&&!f.dataRef.disabled),g=h?i.value.indexOf(h):-1;g===-1||g===u.value||(u.value=g,c.value=1)},clearSearch(){s.value=""},registerItem(m,p){let h=d(g=>[...g,{id:m,dataRef:p}]);i.value=h.items,u.value=h.activeItemIndex,c.value=1},unregisterItem(m){let p=d(h=>{let g=h.findIndex(f=>f.id===m);return g!==-1&&h.splice(g,1),h});i.value=p.items,u.value=p.activeItemIndex,c.value=1}};return ze([o,a],(m,p)=>{var h;v.closeMenu(),Ie(p,Re.Loose)||(m.preventDefault(),(h=y(o))==null||h.focus())},e.computed(()=>r.value===0)),e.provide(Pt,v),ke(e.computed(()=>O(r.value,{0:D.Open,1:D.Closed}))),()=>{let m={open:r.value===0,close:v.closeMenu};return V({ourProps:{},theirProps:t,slot:m,slots:n,attrs:l,name:"Menu"})}}}),jt=e.defineComponent({name:"MenuButton",props:{disabled:{type:Boolean,default:!1},as:{type:[Object,String],default:"button"},id:{type:String,default:()=>`headlessui-menu-button-${P()}`}},setup(t,{attrs:n,slots:l,expose:r}){let o=Se("MenuButton");r({el:o.buttonRef,$el:o.buttonRef});function a(c){switch(c.key){case S.Space:case S.Enter:case S.ArrowDown:c.preventDefault(),c.stopPropagation(),o.openMenu(),e.nextTick(()=>{var d;(d=y(o.itemsRef))==null||d.focus({preventScroll:!0}),o.goToItem(B.First)});break;case S.ArrowUp:c.preventDefault(),c.stopPropagation(),o.openMenu(),e.nextTick(()=>{var d;(d=y(o.itemsRef))==null||d.focus({preventScroll:!0}),o.goToItem(B.Last)});break}}function i(c){switch(c.key){case S.Space:c.preventDefault();break}}function s(c){t.disabled||(o.menuState.value===0?(o.closeMenu(),e.nextTick(()=>{var d;return(d=y(o.buttonRef))==null?void 0:d.focus({preventScroll:!0})})):(c.preventDefault(),o.openMenu(),go(()=>{var d;return(d=y(o.itemsRef))==null?void 0:d.focus({preventScroll:!0})})))}let u=Ee(e.computed(()=>({as:t.as,type:n.type})),o.buttonRef);return()=>{var c;let d={open:o.menuState.value===0},{id:v,...m}=t,p={ref:o.buttonRef,id:v,type:u.value,"aria-haspopup":"menu","aria-controls":(c=y(o.itemsRef))==null?void 0:c.id,"aria-expanded":t.disabled?void 0:o.menuState.value===0,onKeydown:a,onKeyup:i,onClick:s};return V({ourProps:p,theirProps:m,slot:d,attrs:n,slots:l,name:"MenuButton"})}}}),Ft=e.defineComponent({name:"MenuItems",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:()=>`headlessui-menu-items-${P()}`}},setup(t,{attrs:n,slots:l,expose:r}){let o=Se("MenuItems"),a=e.ref(null);r({el:o.itemsRef,$el:o.itemsRef}),st({container:e.computed(()=>y(o.itemsRef)),enabled:e.computed(()=>o.menuState.value===0),accept(d){return d.getAttribute("role")==="menuitem"?NodeFilter.FILTER_REJECT:d.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(d){d.setAttribute("role","none")}});function i(d){var v;switch(a.value&&clearTimeout(a.value),d.key){case S.Space:if(o.searchQuery.value!=="")return d.preventDefault(),d.stopPropagation(),o.search(d.key);case S.Enter:if(d.preventDefault(),d.stopPropagation(),o.activeItemIndex.value!==null){let m=o.items.value[o.activeItemIndex.value];(v=y(m.dataRef.domRef))==null||v.click()}o.closeMenu(),dt(y(o.buttonRef));break;case S.ArrowDown:return d.preventDefault(),d.stopPropagation(),o.goToItem(B.Next);case S.ArrowUp:return d.preventDefault(),d.stopPropagation(),o.goToItem(B.Previous);case S.Home:case S.PageUp:return d.preventDefault(),d.stopPropagation(),o.goToItem(B.First);case S.End:case S.PageDown:return d.preventDefault(),d.stopPropagation(),o.goToItem(B.Last);case S.Escape:d.preventDefault(),d.stopPropagation(),o.closeMenu(),e.nextTick(()=>{var m;return(m=y(o.buttonRef))==null?void 0:m.focus({preventScroll:!0})});break;case S.Tab:d.preventDefault(),d.stopPropagation(),o.closeMenu(),e.nextTick(()=>Sn(y(o.buttonRef),d.shiftKey?U.Previous:U.Next));break;default:d.key.length===1&&(o.search(d.key),a.value=setTimeout(()=>o.clearSearch(),350));break}}function s(d){switch(d.key){case S.Space:d.preventDefault();break}}let u=ne(),c=e.computed(()=>u!==null?(u.value&D.Open)===D.Open:o.menuState.value===0);return()=>{var d,v;let m={open:o.menuState.value===0},{id:p,...h}=t,g={"aria-activedescendant":o.activeItemIndex.value===null||(d=o.items.value[o.activeItemIndex.value])==null?void 0:d.id,"aria-labelledby":(v=y(o.buttonRef))==null?void 0:v.id,id:p,onKeydown:i,onKeyup:s,role:"menu",tabIndex:0,ref:o.itemsRef};return V({ourProps:g,theirProps:h,slot:m,attrs:n,slots:l,features:z.RenderStrategy|z.Static,visible:c.value,name:"MenuItems"})}}}),Rt=e.defineComponent({name:"MenuItem",inheritAttrs:!1,props:{as:{type:[Object,String],default:"template"},disabled:{type:Boolean,default:!1},id:{type:String,default:()=>`headlessui-menu-item-${P()}`}},setup(t,{slots:n,attrs:l,expose:r}){let o=Se("MenuItem"),a=e.ref(null);r({el:a,$el:a});let i=e.computed(()=>o.activeItemIndex.value!==null?o.items.value[o.activeItemIndex.value].id===t.id:!1),s=fo(a),u=e.computed(()=>({disabled:t.disabled,get textValue(){return s()},domRef:a}));e.onMounted(()=>o.registerItem(t.id,u)),e.onUnmounted(()=>o.unregisterItem(t.id)),e.watchEffect(()=>{o.menuState.value===0&&i.value&&o.activationTrigger.value!==0&&e.nextTick(()=>{var g,f;return(f=(g=y(a))==null?void 0:g.scrollIntoView)==null?void 0:f.call(g,{block:"nearest"})})});function c(g){if(t.disabled)return g.preventDefault();o.closeMenu(),dt(y(o.buttonRef))}function d(){if(t.disabled)return o.goToItem(B.Nothing);o.goToItem(B.Specific,t.id)}let v=ht();function m(g){v.update(g)}function p(g){v.wasMoved(g)&&(t.disabled||i.value||o.goToItem(B.Specific,t.id,0))}function h(g){v.wasMoved(g)&&(t.disabled||i.value&&o.goToItem(B.Nothing))}return()=>{let{disabled:g}=t,f={active:i.value,disabled:g,close:o.closeMenu},{id:b,...k}=t;return V({ourProps:{id:b,ref:a,role:"menuitem",tabIndex:g===!0?void 0:-1,"aria-disabled":g===!0?!0:void 0,disabled:void 0,onClick:c,onFocus:d,onPointerenter:m,onMouseenter:m,onPointermove:p,onMousemove:p,onPointerleave:h,onMouseleave:h},theirProps:{...l,...k},slot:f,attrs:l,slots:n,name:"MenuItem"})}}}),It=Symbol("LabelContext");function At(){let t=e.inject(It,null);if(t===null){let n=new Error("You used a <Label /> component, but it is not inside a parent.");throw Error.captureStackTrace&&Error.captureStackTrace(n,At),n}return t}function ho({slot:t={},name:n="Label",props:l={}}={}){let r=e.ref([]);function o(a){return r.value.push(a),()=>{let i=r.value.indexOf(a);i!==-1&&r.value.splice(i,1)}}return e.provide(It,{register:o,slot:t,name:n,props:l}),e.computed(()=>r.value.length>0?r.value.join(" "):void 0)}let yo=e.defineComponent({name:"Label",props:{as:{type:[Object,String],default:"label"},passive:{type:[Boolean],default:!1},id:{type:String,default:()=>`headlessui-label-${P()}`}},setup(t,{slots:n,attrs:l}){let r=At();return e.onMounted(()=>e.onUnmounted(r.register(t.id))),()=>{let{name:o="Label",slot:a={},props:i={}}=r,{id:s,passive:u,...c}=t,d={...Object.entries(i).reduce((v,[m,p])=>Object.assign(v,{[m]:e.unref(p)}),{}),id:s};return u&&(delete d.onClick,delete d.htmlFor,delete c.onClick),V({ourProps:d,theirProps:c,slot:a,attrs:l,slots:n,name:o})}}}),zt=Symbol("GroupContext"),bo=e.defineComponent({name:"SwitchGroup",props:{as:{type:[Object,String],default:"template"}},setup(t,{slots:n,attrs:l}){let r=e.ref(null),o=ho({name:"SwitchLabel",props:{htmlFor:e.computed(()=>{var i;return(i=r.value)==null?void 0:i.id}),onClick(i){r.value&&(i.currentTarget.tagName==="LABEL"&&i.preventDefault(),r.value.click(),r.value.focus({preventScroll:!0}))}}}),a=_t({name:"SwitchDescription"});return e.provide(zt,{switchRef:r,labelledby:o,describedby:a}),()=>V({theirProps:t,ourProps:{},slot:{},slots:n,attrs:l,name:"SwitchGroup"})}}),xo=e.defineComponent({name:"Switch",emits:{"update:modelValue":t=>!0},props:{as:{type:[Object,String],default:"button"},modelValue:{type:Boolean,default:void 0},defaultChecked:{type:Boolean,optional:!0},form:{type:String,optional:!0},name:{type:String,optional:!0},value:{type:String,optional:!0},id:{type:String,default:()=>`headlessui-switch-${P()}`}},inheritAttrs:!1,setup(t,{emit:n,attrs:l,slots:r,expose:o}){let a=e.inject(zt,null),[i,s]=gt(e.computed(()=>t.modelValue),f=>n("update:modelValue",f),e.computed(()=>t.defaultChecked));function u(){s(!i.value)}let c=e.ref(null),d=a===null?c:a.switchRef,v=Ee(e.computed(()=>({as:t.as,type:l.type})),d);o({el:d,$el:d});function m(f){f.preventDefault(),u()}function p(f){f.key===S.Space?(f.preventDefault(),u()):f.key===S.Enter&&Cn(f.currentTarget)}function h(f){f.preventDefault()}let g=e.computed(()=>{var f,b;return(b=(f=y(d))==null?void 0:f.closest)==null?void 0:b.call(f,"form")});return e.onMounted(()=>{e.watch([g],()=>{if(!g.value||t.defaultChecked===void 0)return;function f(){s(t.defaultChecked)}return g.value.addEventListener("reset",f),()=>{var b;(b=g.value)==null||b.removeEventListener("reset",f)}},{immediate:!0})}),()=>{let{id:f,name:b,value:k,form:w,...j}=t,F={checked:i.value},x={id:f,ref:d,role:"switch",type:v.value,tabIndex:0,"aria-checked":i.value,"aria-labelledby":a==null?void 0:a.labelledby.value,"aria-describedby":a==null?void 0:a.describedby.value,onClick:m,onKeyup:p,onKeypress:h};return e.h(e.Fragment,[b!=null&&i.value!=null?e.h(ue,rt({features:te.Hidden,as:"input",type:"checkbox",hidden:!0,readOnly:!0,checked:i.value,form:w,name:b,value:k})):null,V({ourProps:x,theirProps:{...l,...me(j,["modelValue","defaultChecked"])},slot:F,attrs:l,slots:r,name:"Switch"})])}}}),wo=yo;function ko(t){let n={called:!1};return(...l)=>{if(!n.called)return n.called=!0,t(...l)}}function _e(t,...n){t&&n.length>0&&t.classList.add(...n)}function xe(t,...n){t&&n.length>0&&t.classList.remove(...n)}var je=(t=>(t.Finished="finished",t.Cancelled="cancelled",t))(je||{});function Eo(t,n){let l=pe();if(!t)return l.dispose;let{transitionDuration:r,transitionDelay:o}=getComputedStyle(t),[a,i]=[r,o].map(s=>{let[u=0]=s.split(",").filter(Boolean).map(c=>c.includes("ms")?parseFloat(c):parseFloat(c)*1e3).sort((c,d)=>d-c);return u});return a!==0?l.setTimeout(()=>n("finished"),a+i):n("finished"),l.add(()=>n("cancelled")),l.dispose}function et(t,n,l,r,o,a){let i=pe(),s=a!==void 0?ko(a):()=>{};return xe(t,...o),_e(t,...n,...l),i.nextFrame(()=>{xe(t,...l),_e(t,...r),i.add(Eo(t,u=>(xe(t,...r,...n),_e(t,...o),s(u))))}),i.add(()=>xe(t,...n,...l,...r,...o)),i.add(()=>s("cancelled")),i.dispose}function X(t=""){return t.split(" ").filter(n=>n.trim().length>1)}let Ye=Symbol("TransitionContext");var So=(t=>(t.Visible="visible",t.Hidden="hidden",t))(So||{});function Co(){return e.inject(Ye,null)!==null}function $o(){let t=e.inject(Ye,null);if(t===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return t}function No(){let t=e.inject(Ue,null);if(t===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return t}let Ue=Symbol("NestingContext");function Ce(t){return"children"in t?Ce(t.children):t.value.filter(({state:n})=>n==="visible").length>0}function Ht(t){let n=e.ref([]),l=e.ref(!1);e.onMounted(()=>l.value=!0),e.onUnmounted(()=>l.value=!1);function r(a,i=K.Hidden){let s=n.value.findIndex(({id:u})=>u===a);s!==-1&&(O(i,{[K.Unmount](){n.value.splice(s,1)},[K.Hidden](){n.value[s].state="hidden"}}),!Ce(n)&&l.value&&(t==null||t()))}function o(a){let i=n.value.find(({id:s})=>s===a);return i?i.state!=="visible"&&(i.state="visible"):n.value.push({id:a,state:"visible"}),()=>r(a,K.Unmount)}return{children:n,register:o,unregister:r}}let Yt=z.RenderStrategy,Fe=e.defineComponent({props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(t,{emit:n,attrs:l,slots:r,expose:o}){let a=e.ref(0);function i(){a.value|=D.Opening,n("beforeEnter")}function s(){a.value&=~D.Opening,n("afterEnter")}function u(){a.value|=D.Closing,n("beforeLeave")}function c(){a.value&=~D.Closing,n("afterLeave")}if(!Co()&&gn())return()=>e.h(Ut,{...t,onBeforeEnter:i,onAfterEnter:s,onBeforeLeave:u,onAfterLeave:c},r);let d=e.ref(null),v=e.computed(()=>t.unmount?K.Unmount:K.Hidden);o({el:d,$el:d});let{show:m,appear:p}=$o(),{register:h,unregister:g}=No(),f=e.ref(m.value?"visible":"hidden"),b={value:!0},k=P(),w={value:!1},j=Ht(()=>{!w.value&&f.value!=="hidden"&&(f.value="hidden",g(k),c())});e.onMounted(()=>{let I=h(k);e.onUnmounted(I)}),e.watchEffect(()=>{if(v.value===K.Hidden&&k){if(m.value&&f.value!=="visible"){f.value="visible";return}O(f.value,{hidden:()=>g(k),visible:()=>h(k)})}});let F=X(t.enter),x=X(t.enterFrom),C=X(t.enterTo),$=X(t.entered),E=X(t.leave),N=X(t.leaveFrom),M=X(t.leaveTo);e.onMounted(()=>{e.watchEffect(()=>{if(f.value==="visible"){let I=y(d);if(I instanceof Comment&&I.data==="")throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}})});function A(I){let re=b.value&&!p.value,q=y(d);!q||!(q instanceof HTMLElement)||re||(w.value=!0,m.value&&i(),m.value||u(),I(m.value?et(q,F,x,C,$,ee=>{w.value=!1,ee===je.Finished&&s()}):et(q,E,N,M,$,ee=>{w.value=!1,ee===je.Finished&&(Ce(j)||(f.value="hidden",g(k),c()))})))}return e.onMounted(()=>{e.watch([m],(I,re,q)=>{A(q),b.value=!1},{immediate:!0})}),e.provide(Ue,j),ke(e.computed(()=>O(f.value,{visible:D.Open,hidden:D.Closed})|a.value)),()=>{let{appear:I,show:re,enter:q,enterFrom:ee,enterTo:_,entered:L,leave:H,leaveFrom:Y,leaveTo:ye,...W}=t,Xt={ref:d},Qt={...W,...p.value&&m.value&&fe.isServer?{class:e.normalizeClass([l.class,W.class,...F,...x])}:{}};return V({theirProps:Qt,ourProps:Xt,slot:{},slots:r,attrs:l,features:Yt,visible:f.value==="visible",name:"TransitionChild"})}}}),Bo=Fe,Ut=e.defineComponent({inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(t,{emit:n,attrs:l,slots:r}){let o=ne(),a=e.computed(()=>t.show===null&&o!==null?(o.value&D.Open)===D.Open:t.show);e.watchEffect(()=>{if(![!0,!1].includes(a.value))throw new Error('A <Transition /> is used but it is missing a `:show="true | false"` prop.')});let i=e.ref(a.value?"visible":"hidden"),s=Ht(()=>{i.value="hidden"}),u=e.ref(!0),c={show:a,appear:e.computed(()=>t.appear||!u.value)};return e.onMounted(()=>{e.watchEffect(()=>{u.value=!1,a.value?i.value="visible":Ce(s)||(i.value="hidden")})}),e.provide(Ue,s),e.provide(Ye,c),()=>{let d=me(t,["show","appear","unmount","onBeforeEnter","onBeforeLeave","onAfterEnter","onAfterLeave"]),v={unmount:t.unmount};return V({ourProps:{...v,as:"template"},theirProps:{},slot:{},slots:{...r,default:()=>[e.h(Bo,{onBeforeEnter:()=>n("beforeEnter"),onAfterEnter:()=>n("afterEnter"),onBeforeLeave:()=>n("beforeLeave"),onAfterLeave:()=>n("afterLeave"),...l,...v,...d},r.default)]},attrs:{},features:Yt,visible:i.value==="visible",name:"Transition"})}}});function Vo(t,n){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 13.5L12 21m0 0l-7.5-7.5M12 21V3"})])}function _o(t,n){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M7.5 7.5h-.75A2.25 2.25 0 004.5 9.75v7.5a2.25 2.25 0 002.25 2.25h7.5a2.25 2.25 0 002.25-2.25v-7.5a2.25 2.25 0 00-2.25-2.25h-.75m0-3l-3-3m0 0l-3 3m3-3v11.25m6-2.25h.75a2.25 2.25 0 012.25 2.25v7.5a2.25 2.25 0 01-2.25 2.25h-7.5a2.25 2.25 0 01-2.25-2.25v-.75"})])}function Do(t,n){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4.5 10.5L12 3m0 0l7.5 7.5M12 3v18"})])}function Mo(t,n){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"})])}function qt(t,n){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})])}function qe(t,n){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4.5 12.75l6 6 9-13.5"})])}function To(t,n){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 8.25l-7.5 7.5-7.5-7.5"})])}function Wt(t,n){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 19.5L8.25 12l7.5-7.5"})])}function $e(t,n){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"})])}function Oo(t,n){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 15L12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9"})])}function Po(t,n){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9v3.75m9-.75a9 9 0 11-18 0 9 9 0 0118 0zm-9 3.75h.008v.008H12v-.008z"})])}function Ne(t,n){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z"})])}function Lo(t,n){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M10.05 4.575a1.575 1.575 0 10-3.15 0v3m3.15-3v-1.5a1.575 1.575 0 013.15 0v1.5m-3.15 0l.075 5.925m3.075.75V4.575m0 0a1.575 1.575 0 013.15 0V15M6.9 7.575a1.575 1.575 0 10-3.15 0v8.175a6.75 6.75 0 006.75 6.75h2.018a5.25 5.25 0 003.712-1.538l1.732-1.732a5.25 5.25 0 001.538-3.712l.003-2.024a.668.668 0 01.198-.471 1.575 1.575 0 10-2.228-2.228 3.818 3.818 0 00-1.12 2.687M6.9 7.575V12m6.27 4.318A4.49 4.49 0 0116.35 15m.002 0h-.002"})])}function jo(t,n){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M2.25 12l8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25"})])}function Kt(t,n){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z"})])}function ge(t,n){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9.75 9.75l4.5 4.5m0-4.5l-4.5 4.5M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})])}function we(t,n){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})])}const Fo={class:"py-1"},Ro=["onClick"],Io={name:"uiDropdown"},Jt=Object.assign(Io,{props:{items:{type:Array,required:!0},position:{type:String,default:"left"},disabled:Boolean,label:String},emits:["optionSelected"],setup(t,{emit:n}){const l=t,r=e.computed(()=>{let a=l.items.find(i=>i.active===!0);return a?a.name:l.label}),o=a=>{l.disabled||n("optionSelected",a.value)};return(a,i)=>(e.openBlock(),e.createBlock(e.unref(Lt),{as:"div",class:e.normalizeClass(["relative inline-block text-left",{"opacity-25":t.disabled}])},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(e.unref(jt),{class:"inline-flex justify-center w-full rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-sm font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-100 focus:ring-indigo-500"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.value)+" ",1),e.createVNode(e.unref(To),{"aria-hidden":"true",class:"-mr-1 ml-2 h-5 w-5"})]),_:1})]),e.createVNode(e.Transition,{"enter-active-class":"transition ease-out duration-100","enter-from-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"},{default:e.withCtx(()=>[t.disabled?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(Ft),{key:0,class:e.normalizeClass([{"right-0":t.position==="right","left-0":t.position==="left"},"origin-top-right absolute mt-2 w-56 rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5 focus:outline-none z-10"])},{default:e.withCtx(()=>[e.createElementVNode("div",Fo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(s,u)=>(e.openBlock(),e.createBlock(e.unref(Rt),{key:u},{default:e.withCtx(()=>[e.createElementVNode("a",{onClick:c=>o(s),class:e.normalizeClass([s.active?"bg-gray-100 text-gray-900":"text-gray-700","block px-4 py-2 text-sm cursor-pointer"])},e.toDisplayString(s.name),11,Ro)]),_:2},1024))),128))])]),_:1},8,["class"]))]),_:1})]),_:1},8,["class"]))}}),Ao={class:"flex justify-between"},zo={key:0,class:"block text-sm font-medium text-gray-700"},Ho={key:1,class:"text-[10px] text-gray-500 uppercase justify-self-end"},Yo={key:0,class:"inline-flex items-center px-3 rounded-l-md border border-r-0 border-gray-300 bg-gray-50 text-gray-500 sm:text-sm"},Uo=["disabled","name","placeholder","type"],qo={key:1,class:"absolute inset-y-0 right-0 pr-3 flex items-center pointer-events-none"},Wo={name:"uiInput"},Ko=Object.assign(Wo,{props:{label:String,type:{type:String,default:"text"},name:String,placeholder:{type:String,default:"..."},icon:{type:Function,default:()=>{}},disabled:Boolean,color:{type:String,default:"gray"},value:{type:String,default:""},error:String,optional:String,addOn:String},emits:["inputChanged"],setup(t,{emit:n}){const l=t,r=a=>{n("inputChanged",{value:a.target.value,name:a.target.name})},o=e.ref(l.value);return(a,i)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",Ao,[t.label?(e.openBlock(),e.createElementBlock("label",zo,e.toDisplayString(t.label),1)):e.createCommentVNode("",!0),t.optional?(e.openBlock(),e.createElementBlock("span",Ho,e.toDisplayString(t.optional),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:e.normalizeClass([{"mt-1":t.label},"relative flex"])},[t.addOn?(e.openBlock(),e.createElementBlock("span",Yo,e.toDisplayString(t.addOn),1)):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":i[0]||(i[0]=s=>o.value=s),class:e.normalizeClass([{"border-gray-300":t.color!=="danger"||t.color!=="warning"||t.color!=="success","border-red-300":t.color==="danger","border-yellow-400":t.color==="warning","border-green-400":t.color==="success","bg-gray-100":t.disabled,"text-black":t.color!=="danger"||t.color!=="warning"||t.color!=="success","text-red-300":t.color==="danger","text-yellow-400":t.color==="warning","text-green-400":t.color==="success","rounded-md":!t.addOn,"rounded-r-md":t.addOn},"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 placeholder-gray-300"]),disabled:t.disabled,name:t.name,placeholder:t.placeholder,type:t.type,onInput:r},null,42,Uo),[[e.vModelDynamic,o.value]]),t.icon?(e.openBlock(),e.createElementBlock("div",qo,[e.createVNode(R,{icon:t.icon,color:t.color},null,8,["icon","color"]),e.withDirectives(e.createVNode(R,{icon:e.unref(qe),color:"green"},null,8,["icon"]),[[e.vShow,t.color==="success"]]),e.withDirectives(e.createVNode(R,{icon:e.unref(Ne),color:"yellow"},null,8,["icon"]),[[e.vShow,t.color==="warning"]]),e.withDirectives(e.createVNode(R,{icon:e.unref(Po),color:"red"},null,8,["icon"]),[[e.vShow,t.color==="danger"]])])):e.createCommentVNode("",!0)],2),e.withDirectives(e.createElementVNode("p",{class:e.normalizeClass([{"text-gray-300":t.color!=="danger"||t.color!=="warning"||t.color!=="success","text-red-300":t.color==="danger","text-yellow-400":t.color==="warning","text-green-400":t.color==="success"},"mt-2 text-xs flex flex-row items-center"])},[e.createVNode(R,{icon:e.unref(ge),color:"red",class:"mr-2"},null,8,["icon"]),e.createTextVNode(e.toDisplayString(t.error),1)],2),[[e.vShow,t.error]])]))}}),Jo={class:"flex justify-between"},Go={key:0,class:"block text-sm font-medium text-gray-700"},Xo={key:1,class:"text-[10px] text-gray-500 uppercase"},Qo=["onDrop"],Zo={class:"space-y-1 flex flex-col items-center justify-center"},el={class:"flex text-sm text-gray-600 flex flex-col sm:flex-row text-center"},tl={for:"file-upload",class:"relative cursor-pointer rounded-md font-medium text-indigo-600 focus-within:outline-none focus-within:ring-2 focus-within:ring-indigo-500 focus-within:ring-offset-2 hover:text-indigo-500"},nl=["accept"],ol={class:"pl-1"},ll={class:"text-xs text-gray-500 pb-4"},rl={class:"mt-2 text-xs flex flex-row items-center text-red-300"},al={name:"uiInputFile"},il=Object.assign(al,{props:{name:String,label:String,optional:String,placeholder:String,dragAndDrop:String,fileTypesAndSizes:String,error:String,accept:String,icon:{type:Function,default:_o}},emits:["filesUploaded"],setup(t,{emit:n}){const l=t,r=e.ref(""),o=i=>{let u=i.dataTransfer.files;n("filesUploaded",u),l.filename=u[0].name},a=i=>{n("filesUploaded",i.target.files),l.filename=i.target.files[0].name};return(i,s)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",Jo,[t.label?(e.openBlock(),e.createElementBlock("label",Go,e.toDisplayString(t.label),1)):e.createCommentVNode("",!0),t.optional?(e.openBlock(),e.createElementBlock("span",Xo,e.toDisplayString(t.optional),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:e.normalizeClass([[{"mt-1":t.label},{"border-gray-300 hover:border-gray-400":!t.error},{"border-red-300 hover:border-red-400":t.error}],"dropArea flex justify-center rounded-md border-2 border-dashed px-6 pt-5 pb-6"]),onDragover:s[0]||(s[0]=e.withModifiers(()=>{},["prevent"])),onDrop:e.withModifiers(o,["prevent"])},[e.createElementVNode("div",Zo,[e.createVNode(R,{icon:t.icon,size:"massive",color:"gray","aria-hidden":"true",class:"mb-4"},null,8,["icon"]),e.createElementVNode("div",el,[e.createElementVNode("label",tl,[e.createElementVNode("span",null,e.toDisplayString(t.placeholder),1),e.createElementVNode("input",{id:"file-upload",name:"file-upload",type:"file",class:"sr-only",accept:t.accept,onChange:a},null,40,nl)]),e.createElementVNode("p",ol,e.toDisplayString(t.dragAndDrop),1)]),e.createElementVNode("p",ll,e.toDisplayString(t.fileTypesAndSizes),1),e.withDirectives(e.createElementVNode("p",{class:"font-bold text-xs uppercase block p-2 bg-gray-200 rounded"},e.toDisplayString(r.value),513),[[e.vShow,r.value!==""]])])],42,Qo),e.withDirectives(e.createElementVNode("p",rl,[e.createVNode(R,{icon:e.unref(ge),color:"red",class:"mr-2"},null,8,["icon"]),e.createTextVNode(e.toDisplayString(t.error),1)],512),[[e.vShow,t.error]])]))}}),sl={class:"relative mt-1"},cl={name:"uiSelect"},ul=Object.assign(cl,{props:{items:{type:Array,required:!0},label:String,select:Object},emits:["selectChanged"],setup(t,{emit:n}){const l=t,r=e.ref(""),o=e.ref(l.select),a=e.computed(()=>r.value===""?l.items:l.items.filter(s=>s.name.toLowerCase().includes(r.value.toLowerCase()))),i=()=>{n("selectChanged",o.value)};return(s,u)=>(e.openBlock(),e.createBlock(e.unref(Mn),{modelValue:o.value,"onUpdate:modelValue":[u[1]||(u[1]=c=>o.value=c),u[3]||(u[3]=c=>i())],as:"div",onClick:u[2]||(u[2]=c=>i())},{default:e.withCtx(()=>[e.createVNode(e.unref(Tn),{class:"block text-sm font-medium text-gray-700"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.label),1)]),_:1}),e.createElementVNode("div",sl,[e.createVNode(e.unref(Pn),{"display-value":c=>c==null?void 0:c.name,class:"w-full rounded-md border border-gray-300 bg-white py-2 pl-3 pr-10 shadow-sm focus:border-indigo-500 focus:outline-none focus:ring-1 focus:ring-indigo-500 sm:text-sm",onChange:u[0]||(u[0]=c=>r.value=c.target.value)},null,8,["display-value"]),e.createVNode(e.unref(On),{class:"absolute inset-y-0 right-0 flex items-center rounded-r-md px-2 focus:outline-none"},{default:e.withCtx(()=>[e.createVNode(e.unref(Oo),{"aria-hidden":"true",class:"h-5 w-5 text-gray-400"})]),_:1}),a.value.length>0?(e.openBlock(),e.createBlock(e.unref(Ln),{key:0,class:"absolute z-10 mt-1 max-h-60 w-full overflow-auto rounded-md bg-white py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,c=>(e.openBlock(),e.createBlock(e.unref(jn),{key:c.id,value:c,as:"template"},{default:e.withCtx(({active:d,selected:v})=>[e.createElementVNode("li",{class:e.normalizeClass(["relative cursor-default select-none py-2 pl-3 pr-9",d?"bg-indigo-600 text-white":"text-gray-900"])},[e.createElementVNode("span",{class:e.normalizeClass(["block truncate",v&&"font-semibold"])},e.toDisplayString(c.name),3),v?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["absolute inset-y-0 right-0 flex items-center pr-4",d?"text-white":"text-indigo-600"])},[e.createVNode(e.unref(qe),{"aria-hidden":"true",class:"h-5 w-5"})],2)):e.createCommentVNode("",!0)],2)]),_:2},1032,["value"]))),128))]),_:1})):e.createCommentVNode("",!0)])]),_:1},8,["modelValue"]))}}),dl={name:"uiTag"},de=Object.assign(dl,{props:{color:{type:String,default:"primary"}},setup(t){return(n,l)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass([{"bg-indigo-100 text-indigo-800 border border-indigo-200":t.color==="primary","bg-red-100 text-red-800 border border-red-200":t.color==="danger","bg-yellow-100 text-yellow-800 border border-yellow-200":t.color==="warning","bg-green-100 text-green-800 border border-green-200":t.color==="success","bg-black text-white border border-black":t.color==="black","text-black border border-gray-200":t.color==="white"},"inline-flex items-center px-3 py-2 rounded text-xs font-medium leading-none"])},[e.renderSlot(n.$slots,"default")],2))}}),ml={key:0,class:"block text-sm font-medium text-gray-700"},fl=["disabled","placeholder"],pl={name:"uiTextArea"},vl=Object.assign(pl,{props:{label:String,placeholder:{type:String,default:"..."},value:String,color:String,disabled:{type:Boolean,default:!1},error:String},emits:["inputChanged"],setup(t,{emit:n}){const l=t,r=a=>{n("inputChanged",{value:a.target.value,name:a.target.value})},o=e.ref(l.value);return(a,i)=>(e.openBlock(),e.createElementBlock("div",null,[t.label?(e.openBlock(),e.createElementBlock("label",ml,e.toDisplayString(t.label),1)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass({"mt-1":t.label})},[e.withDirectives(e.createElementVNode("textarea",{disabled:t.disabled,rows:"4","onUpdate:modelValue":i[0]||(i[0]=s=>o.value=s),placeholder:t.placeholder,class:e.normalizeClass(["shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm rounded-md",{"border-gray-300":t.color!=="danger"||t.color!=="warning"||t.color!=="success","border-red-300":t.color==="danger","border-yellow-400":t.color==="warning","border-green-400":t.color==="success","bg-gray-100":t.disabled,"text-black":t.color!=="danger"||t.color!=="warning"||t.color!=="success","text-red-300":t.color==="danger","text-yellow-400":t.color==="warning","text-green-400":t.color==="success"}]),onChange:r},null,42,fl),[[e.vModelText,o.value]])],2),e.withDirectives(e.createElementVNode("p",{class:e.normalizeClass([{"text-gray-300":t.color!=="danger"||t.color!=="warning"||t.color!=="success","text-red-300":t.color==="danger","text-yellow-400":t.color==="warning","text-green-400":t.color==="success"},"mt-2 text-xs flex flex-row items-center"])},[e.createVNode(R,{icon:e.unref(ge),color:"red",class:"mr-2"},null,8,["icon"]),e.createTextVNode(e.toDisplayString(t.error),1)],2),[[e.vShow,t.error]])]))}}),gl={class:"text-sm font-medium text-gray-900"},hl={key:0,class:"text-sm text-gray-500 ml-2"},yl={name:"uiToggle"},bl=Object.assign(yl,{props:{item:{type:Object,required:!0},checked:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},setup(t){const n=t,l=e.ref(n.checked);return(r,o)=>(e.openBlock(),e.createBlock(e.unref(bo),{as:"div",class:"flex items-center relative"},{default:e.withCtx(()=>[e.createVNode(e.unref(xo),{disabled:t.disabled,onClick:o[0]||(o[0]=a=>r.$emit("toggleChanged",{item:t.item,active:!l.value})),modelValue:l.value,"onUpdate:modelValue":o[1]||(o[1]=a=>l.value=a),class:e.normalizeClass([l.value?"bg-indigo-600":"bg-gray-200","relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"])},{default:e.withCtx(()=>[e.createElementVNode("span",{"aria-hidden":"true",class:e.normalizeClass([l.value?"translate-x-5":"translate-x-0",t.disabled?"bg-gray-300":"","pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out"])},null,2)]),_:1},8,["disabled","modelValue","class"]),e.createVNode(e.unref(wo),{as:"span",class:"ml-3"},{default:e.withCtx(()=>[e.createElementVNode("span",gl,e.toDisplayString(t.item.title),1),t.item.subtitle?(e.openBlock(),e.createElementBlock("span",hl,e.toDisplayString(t.item.subtitle),1)):e.createCommentVNode("",!0)]),_:1}),t.item.action?(e.openBlock(),e.createElementBlock("span",{key:0,class:"cursor-pointer text-indigo-600 hover:text-indigo-400 uppercase text-xs absolute right-0 bottom-0.5",onClick:o[2]||(o[2]=a=>r.$emit("actionClicked",t.item))},e.toDisplayString(t.item.action),1)):e.createCommentVNode("",!0)]),_:1}))}}),xl={class:"flex flex-col"},wl={class:"flex"},kl={class:"flex-shrink-0"},El={class:"ml-3"},Sl={class:"mt-4"},Cl={class:"-mx-2 -my-1.5 flex"},$l=["onClick"],Nl={name:"uiAlert"},Bl=Object.assign(Nl,{props:{actions:{type:Array},title:{type:String},type:{type:String,default:"info"}},setup(t){return(n,l)=>(e.openBlock(),e.createElementBlock("div",xl,[e.createElementVNode("div",{class:e.normalizeClass([{"bg-indigo-50 border-indigo-400":t.type==="info","bg-red-50 border-red-400":t.type==="danger","bg-yellow-50 border-yellow-400":t.type==="warning","bg-green-50 border-green-400":t.type==="success"},"p-4 border-l-4"])},[e.createElementVNode("div",wl,[e.createElementVNode("div",kl,[t.type==="info"?(e.openBlock(),e.createBlock(e.unref(Kt),{key:0,class:"h-8 w-8 text-indigo-400","aria-hidden":"true"})):e.createCommentVNode("",!0),t.type==="danger"?(e.openBlock(),e.createBlock(e.unref(ge),{key:1,class:"h-8 w-8 text-red-400","aria-hidden":"true"})):e.createCommentVNode("",!0),t.type==="warning"?(e.openBlock(),e.createBlock(e.unref(Ne),{key:2,class:"h-8 w-8 text-yellow-400","aria-hidden":"true"})):e.createCommentVNode("",!0),t.type==="success"?(e.openBlock(),e.createBlock(e.unref(qt),{key:3,class:"h-8 w-8 text-green-400","aria-hidden":"true"})):e.createCommentVNode("",!0)]),e.createElementVNode("div",El,[e.createElementVNode("h3",{class:e.normalizeClass([{"text-red-800":t.type==="danger","text-yellow-800":t.type==="warning","text-green-800":t.type==="success"},"text-sm font-medium"])},e.toDisplayString(t.title),3),e.createElementVNode("div",{class:e.normalizeClass([{"text-red-700":t.type==="danger","text-yellow-700":t.type==="warning","text-green-700":t.type==="success"},"mt-2 text-sm"])},[e.renderSlot(n.$slots,"default")],2),e.createElementVNode("div",Sl,[e.createElementVNode("div",Cl,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.actions,(r,o)=>(e.openBlock(),e.createElementBlock("button",{onClick:a=>n.$emit("alertEvent",r.event),type:"button",key:o,class:e.normalizeClass([{"bg-green-50 text-green-800 hover:bg-green-100 focus:ring-green-600 focus:ring-offset-green-50":t.type==="success","bg-indigo-50 text-indigo-800 hover:bg-indigo-100 focus:ring-indigo-600 focus:ring-offset-indigo-50":t.type==="info","bg-red-50 text-red-800 hover:bg-red-100 focus:ring-red-600 focus:ring-offset-red-50":t.type==="danger","bg-yellow-50 text-yellow-800 hover:bg-yellow-100 focus:ring-yellow-600 focus:ring-offset-yellow-50":t.type==="warning"},"px-2 py-1.5 text-sm font-medium rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2"])},e.toDisplayString(r.name),11,$l))),128))])])])])],2)]))}}),Vl={class:"flex","aria-label":"Breadcrumb"},_l={role:"list",class:"flex items-center space-x-4 text-xs"},Dl={key:0},Ml=["onClick"],Tl={key:1,class:"flex items-center"},Ol=["onClick","aria-current"],Pl={name:"uiBreadcrumbs"},Ll=Object.assign(Pl,{props:{pages:Array,required:!0},setup(t){return(n,l)=>(e.openBlock(),e.createElementBlock("nav",Vl,[e.createElementVNode("ol",_l,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.pages,(r,o)=>(e.openBlock(),e.createElementBlock("li",{key:o},[o===0?(e.openBlock(),e.createElementBlock("div",Dl,[e.createElementVNode("p",{onClick:a=>n.$emit("breadCrumbClicked",r.routeName),class:"flex flex-row items-center justify-center text-indigo-600 hover:text-indigo-800 cursor-pointer"},[e.createVNode(e.unref(jo),{class:"flex-shrink-0 h-3 w-3 text-gray-400 mr-4","aria-hidden":"true"}),e.createElementVNode("span",null,e.toDisplayString(r.name),1)],8,Ml)])):(e.openBlock(),e.createElementBlock("div",Tl,[e.createVNode(e.unref($e),{class:"flex-shrink-0 h-3 w-3 text-gray-400","aria-hidden":"true"}),e.createElementVNode("span",{onClick:a=>n.$emit("breadCrumbClicked",r.routeName),class:e.normalizeClass(["cursor-pointer ml-4 text-xs text-gray-400 hover:text-gray-500",{"text-indigo-600 hover:text-indigo-800":!r.current}]),"aria-current":r.current?"page":""},e.toDisplayString(r.name),11,Ol)]))]))),128))])]))}}),jl={class:"flex items-center flex-col sm:flex-row justify-center sm:justify-start"},Fl=["src"],Rl={class:"font-bold text-center sm:text-left"},Il={class:"mt-1 text-xs text-center sm:text-left"},Al={key:0,class:"flex flex-wrap mt-4 justify-center sm:justify-start"},zl={name:"uiCard"},Hl=Object.assign(zl,{props:{id:{type:String,required:!0},name:{type:String,required:!0},type:String,tags:Array,logo:String},setup(t){return(n,l)=>{var r;return e.openBlock(),e.createElementBlock("div",{class:"rounded-lg bg-white shadow p-6 cursor-pointer",onClick:l[0]||(l[0]=o=>n.$emit("cardSelected",{id:t.id,name:t.name,type:t.type,tags:t.tags}))},[e.createElementVNode("div",jl,[e.createElementVNode("img",{class:"w-16 h-16 rounded-full mb-4 sm:mb-0 sm:mr-4",src:t.logo},null,8,Fl),e.createElementVNode("div",null,[e.createElementVNode("h4",Rl,e.toDisplayString(t.name),1),e.createElementVNode("p",Il,e.toDisplayString(t.type),1)])]),((r=t.tags)==null?void 0:r.length)>0?(e.openBlock(),e.createElementBlock("div",Al,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.tags,o=>(e.openBlock(),e.createBlock(de,{class:"my-1 mr-1",key:o.name,color:o.color},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.name),1)]),_:2},1032,["color"]))),128))])):e.createCommentVNode("",!0)])}}}),Yl={name:"uiFilter"},Ul=Object.assign(Yl,{props:{position:{type:String,default:"left"},items:{type:Array,required:!0},label:{type:String,required:!0}},emits:["filterSelected"],setup(t,{emit:n}){const l=t,r=a=>{o.value.forEach(i=>{i.value!==a?i.active=!1:i.active=!0}),n("filterSelected",a)},o=e.ref(l.items);return(a,i)=>(e.openBlock(),e.createBlock(Jt,{onOptionSelected:i[0]||(i[0]=s=>r(s)),position:t.position,items:o.value,label:t.label},null,8,["position","items","label"]))}}),ql=e.createElementVNode("div",{class:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"},null,-1),Wl={class:"fixed inset-0 z-10 overflow-y-auto"},Kl={class:"flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0"},Jl={class:"absolute top-0 right-0 hidden pt-4 pr-4 sm:block"},Gl=e.createElementVNode("span",{class:"sr-only"},"X",-1),Xl={class:"sm:flex sm:items-start"},Ql={class:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left sm:mr-4"},Zl={class:"mt-4 text-gray-500 text-sm"},er={key:0,class:"mt-8"},tr=["onClick"],nr={name:"uiModal"},or=Object.assign(nr,{props:{title:String,actions:Object,modalName:String,open:{type:Boolean,default:!1},type:{type:String,default:"default"}},emits:["modalAction"],setup(t,{emit:n}){const l=t,r=o=>{n("modalAction",{modal:l.modalName,action:o})};return(o,a)=>(e.openBlock(),e.createBlock(e.unref(Ut),{as:"template",show:t.open},{default:e.withCtx(()=>[e.createVNode(e.unref(ao),{as:"div",class:"relative z-10",onClose:a[1]||(a[1]=i=>r("close"))},{default:e.withCtx(()=>[e.createVNode(e.unref(Fe),{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0","enter-to":"opacity-100",leave:"ease-in duration-200","leave-from":"opacity-100","leave-to":"opacity-0"},{default:e.withCtx(()=>[ql]),_:1}),e.createElementVNode("div",Wl,[e.createElementVNode("div",Kl,[e.createVNode(e.unref(Fe),{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95","enter-to":"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200","leave-from":"opacity-100 translate-y-0 sm:scale-100","leave-to":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"},{default:e.withCtx(()=>[e.createVNode(e.unref(io),{class:"relative transform overflow-hidden rounded-lg bg-white px-4 pb-4 pt-5 text-left shadow-xl transition-all sm:my-8 w-9/12 sm:w-full sm:max-w-lg sm:p-6"},{default:e.withCtx(()=>[e.createElementVNode("div",Jl,[e.createElementVNode("button",{type:"button",class:"rounded-md bg-white text-gray-400 hover:text-gray-500 focus:outline-none",onClick:a[0]||(a[0]=i=>r("close"))},[Gl,e.createVNode(R,{icon:e.unref(we),"aria-hidden":"true"},null,8,["icon"])])]),e.createElementVNode("div",Xl,[e.createElementVNode("div",{class:e.normalizeClass(["mx-auto flex h-12 w-12 flex-shrink-0 items-center justify-center rounded-full sm:mx-0 sm:h-10 sm:w-10",{"bg-red-100":t.type==="danger","bg-green-100":t.type==="success","bg-indigo-100":t.type==="default","bg-yellow-100":t.type==="warning"}])},[e.withDirectives(e.createVNode(e.unref(we),{class:"h-6 w-6 text-red-600","aria-hidden":"true"},null,512),[[e.vShow,t.type==="danger"]]),e.withDirectives(e.createVNode(e.unref(qe),{class:"h-6 w-6 text-green-600","aria-hidden":"true"},null,512),[[e.vShow,t.type==="success"]]),e.withDirectives(e.createVNode(e.unref(Ne),{class:"h-6 w-6 text-yellow-600","aria-hidden":"true"},null,512),[[e.vShow,t.type==="warning"]]),e.withDirectives(e.createVNode(e.unref(Lo),{class:"h-6 w-6 text-indigo-600","aria-hidden":"true"},null,512),[[e.vShow,t.type==="default"]])],2),e.createElementVNode("div",Ql,[e.createVNode(e.unref(so),{as:"h3",class:"text-lg font-medium leading-6 text-gray-900"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.title),1)]),_:1}),e.createElementVNode("div",Zl,[e.renderSlot(o.$slots,"default")]),t.actions?(e.openBlock(),e.createElementBlock("div",er,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.actions,(i,s)=>(e.openBlock(),e.createElementBlock("button",{key:s,type:"button",class:"inline-flex w-full justify-center rounded-md border border-transparent bg-indigo-600 px-4 py-2 text-base font-medium text-white shadow-sm hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 mb-2 sm:mb-0 mr-2 sm:w-auto sm:text-sm",onClick:u=>r(i.value)},e.toDisplayString(i.name),9,tr))),128))])):e.createCommentVNode("",!0)])])]),_:3})]),_:3})])])]),_:3})]),_:3},8,["show"]))}}),lr={class:"w-full flex flex-col items-center space-y-4 sm:items-end"},rr={key:0,class:"max-w-sm w-full bg-white shadow-lg rounded-lg pointer-events-auto ring-1 ring-black ring-opacity-5 overflow-hidden"},ar={class:"p-4"},ir={class:"flex items-start"},sr={class:"flex-shrink-0 mt-0.5"},cr={class:"ml-3 w-0 flex-1 pt-0.5"},ur={class:"font-medium text-gray-900"},dr={class:"mt-1 text-sm text-gray-500"},mr={class:"ml-4 flex-shrink-0 flex"},fr=e.createElementVNode("span",{class:"sr-only"},"Close",-1),pr={name:"uiNotification"},vr=Object.assign(pr,{props:{show:Boolean,type:{type:String,default:"info"},title:String,message:String,fixed:{type:Boolean,default:!0}},setup(t){const n=t,l=e.computed(()=>n.show);return(r,o)=>(e.openBlock(),e.createElementBlock("div",{"aria-live":"assertive",class:e.normalizeClass([{fixed:t.fixed},"inset-0 flex items-end px-4 py-6 pointer-events-none sm:p-6 sm:items-start"])},[e.createElementVNode("div",lr,[e.createVNode(e.Transition,{"enter-active-class":"transform ease-out duration-300 transition","enter-from-class":"translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2","enter-to-class":"translate-y-0 opacity-100 sm:translate-x-0","leave-active-class":"transition ease-in duration-100","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:e.withCtx(()=>[l.value?(e.openBlock(),e.createElementBlock("div",rr,[e.createElementVNode("div",ar,[e.createElementVNode("div",ir,[e.createElementVNode("div",sr,[e.withDirectives(e.createVNode(e.unref(qt),{"aria-hidden":"true",class:"h-6 w-6 text-green-400"},null,512),[[e.vShow,t.type==="success"]]),e.withDirectives(e.createVNode(e.unref(ge),{"aria-hidden":"true",class:"h-6 w-6 text-red-400"},null,512),[[e.vShow,t.type==="danger"]]),e.withDirectives(e.createVNode(e.unref(Ne),{"aria-hidden":"true",class:"h-6 w-6 text-yellow-400"},null,512),[[e.vShow,t.type==="warning"]]),e.withDirectives(e.createVNode(e.unref(Kt),{"aria-hidden":"true",class:"h-6 w-6 text-indigo-600"},null,512),[[e.vShow,t.type==="info"]])]),e.createElementVNode("div",cr,[e.createElementVNode("p",ur,e.toDisplayString(t.title),1),e.createElementVNode("p",dr,e.toDisplayString(t.message),1)]),e.createElementVNode("div",mr,[e.createElementVNode("button",{class:"bg-white rounded-md inline-flex text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",type:"button",onClick:o[0]||(o[0]=a=>r.$emit("closeNotification"))},[fr,e.createVNode(e.unref(we),{"aria-hidden":"true",class:"h-5 w-5"})])])])])])):e.createCommentVNode("",!0)]),_:1})])],2))}}),gr={role:"list",class:"divide-y divide-gray-100"},hr={class:"min-w-0"},yr={class:"flex items-start gap-x-3"},br={class:"text-sm font-semibold leading-6 text-gray-900"},xr={class:"mt-1 flex items-center gap-x-2 text-xs leading-5 text-gray-500"},wr={class:"truncate"},kr={class:"flex flex-none items-center gap-x-4"},Er=["href"],Sr={class:"sr-only"},Cr={name:"uiTaskList"},$r=Object.assign(Cr,{props:{tasks:{type:Array,required:!0}},setup(t){return(n,l)=>(e.openBlock(),e.createElementBlock("ul",gr,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.tasks,r=>(e.openBlock(),e.createElementBlock("li",{key:r.id,class:"flex items-center justify-between gap-x-6 py-5"},[e.createElementVNode("div",hr,[e.createElementVNode("div",yr,[e.createElementVNode("p",br,e.toDisplayString(r.name),1),e.createElementVNode("p",{class:e.normalizeClass([{"text-green-700 bg-green-50 ring-green-600/20":r.status==="Complete","text-gray-600 bg-gray-50 ring-gray-500/10":r.status==="In progress","text-yellow-800 bg-yellow-50 ring-yellow-600/20":r.status==="Incomplete"},"rounded-md whitespace-nowrap mt-0.5 px-1.5 py-0.5 text-xs font-medium ring-1 ring-inset"])},e.toDisplayString(r.statusLiteral),3)]),e.createElementVNode("div",xr,[e.createElementVNode("p",wr,e.toDisplayString(r.description),1)])]),e.createElementVNode("div",kr,[e.createElementVNode("a",{href:r.href,class:"hidden rounded-md bg-white px-2.5 py-1.5 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50 sm:block"},[e.createTextVNode(e.toDisplayString(r.action),1),e.createElementVNode("span",Sr,", "+e.toDisplayString(r.name),1)],8,Er)])]))),128))]))}});var he=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Nr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Br={exports:{}};(function(t,n){(function(l,r){t.exports=r(T)})(he,function(l){function r(i){return i&&typeof i=="object"&&"default"in i?i:{default:i}}var o=r(l),a={name:"es",monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinal:function(i){return i+"º"}};return o.default.locale(a,null,!0),a})})(Br);var Vr={exports:{}};(function(t,n){(function(l,r){t.exports=r(T)})(he,function(l){function r(u){return u&&typeof u=="object"&&"default"in u?u:{default:u}}var o=r(l),a={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]};function i(u,c,d){var v=a[d];return Array.isArray(v)&&(v=v[c?0:1]),v.replace("%d",u)}var s={name:"de",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.".split("_"),ordinal:function(u){return u+"."},weekStart:1,yearStart:4,formats:{LTS:"HH:mm:ss",LT:"HH:mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i}};return o.default.locale(s,null,!0),s})})(Vr);var _r={exports:{}};(function(t,n){(function(l,r){t.exports=r()})(he,function(){return{name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(l){var r=["th","st","nd","rd"],o=l%100;return"["+l+(r[(o-20)%10]||r[o]||r[0])+"]"}}})})(_r);var Dr={exports:{}};(function(t,n){(function(l,r){t.exports=r(T)})(he,function(l){function r(i){return i&&typeof i=="object"&&"default"in i?i:{default:i}}var o=r(l),a={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(i){return""+i+(i===1?"er":"")}};return o.default.locale(a,null,!0),a})})(Dr);const le=(t,n)=>{const l=t.__vccOpts||t;for(const[r,o]of n)l[r]=o;return l},Mr={name:"dateSelector",components:{ChevronLeftIcon:Wt,ChevronRightIcon:$e},computed:{currentDate(){return T(this.selectedDate).locale("es").format("DD MMM. YYYY")}},props:{selectedDate:{type:Object,required:!0}},methods:{selectDate(t,n){let l;n==="previous"&&(t==="day"&&(l=T(this.selectedDate).subtract(1,"day")),t==="month"&&(l=T(this.selectedDate).subtract(1,"month")),t==="year"&&(l=T(this.selectedDate).subtract(1,"year"))),n==="next"&&(t==="day"&&(l=T(this.selectedDate).add(1,"day")),t==="month"&&(l=T(this.selectedDate).add(1,"month")),t==="year"&&(l=T(this.selectedDate).add(1,"year"))),this.$emit("dateSelected",l)}}},Tr={class:"dateSelector flex items-center text-white flex-row"},Or={class:"pagination flex items-center my-1 md:my-0"},Pr={class:"date mx-4 font-bold text-center text-indigo-600 select-none uppercase"},Lr={class:"pagination flex items-center my-1 sm:my-0"};function jr(t,n,l,r,o,a){const i=e.resolveComponent("ChevronLeftIcon"),s=e.resolveComponent("ChevronRightIcon");return e.openBlock(),e.createElementBlock("div",Tr,[e.createElementVNode("div",Or,[e.createElementVNode("div",{class:"previousYear flex items-center cursor-pointer bg-indigo-600 p-1 rounded mx-0.5 hover:bg-indigo-800 shadow-sm",onClick:n[0]||(n[0]=u=>a.selectDate("year","previous"))},[e.createVNode(i,{class:"h-4"}),e.createVNode(i,{class:"h-4 -ml-3"}),e.createVNode(i,{class:"h-4 -ml-3"})]),e.createElementVNode("div",{class:"previousMonth flex items-center cursor-pointer bg-indigo-600 p-1 rounded mx-0.5 hover:bg-indigo-800 shadow-sm",onClick:n[1]||(n[1]=u=>a.selectDate("month","previous"))},[e.createVNode(i,{class:"h-4"}),e.createVNode(i,{class:"h-4 -ml-3"})]),e.createElementVNode("div",{class:"previousDay flex items-center cursor-pointer bg-indigo-600 p-1 rounded mx-0.5 hover:bg-indigo-800 shadow-sm",onClick:n[2]||(n[2]=u=>a.selectDate("day","previous"))},[e.createVNode(i,{class:"h-4"})])]),e.createElementVNode("div",Pr,e.toDisplayString(a.currentDate),1),e.createElementVNode("div",Lr,[e.createElementVNode("div",{class:"previousDay flex items-center cursor-pointer bg-indigo-600 p-1 rounded mx-0.5 hover:bg-indigo-800 shadow-sm",onClick:n[3]||(n[3]=u=>a.selectDate("day","next"))},[e.createVNode(s,{class:"h-4"})]),e.createElementVNode("div",{class:"previousMonth flex items-center cursor-pointer bg-indigo-600 p-1 rounded mx-0.5 hover:bg-indigo-800 shadow-sm",onClick:n[4]||(n[4]=u=>a.selectDate("month","next"))},[e.createVNode(s,{class:"h-4"}),e.createVNode(s,{class:"h-4 -ml-3"})]),e.createElementVNode("div",{class:"previousYear flex items-center cursor-pointer bg-indigo-600 p-1 rounded mx-0.5 hover:bg-indigo-800 shadow-sm",onClick:n[5]||(n[5]=u=>a.selectDate("year","next"))},[e.createVNode(s,{class:"h-4"}),e.createVNode(s,{class:"h-4 -ml-3"}),e.createVNode(s,{class:"h-4 -ml-3"})])])])}const Fr=le(Mr,[["render",jr]]);var Gt={exports:{}};(function(t,n){(function(l,r){t.exports=r()})(he,function(){return function(l,r,o){r.prototype.isToday=function(){var a="YYYY-MM-DD",i=o();return this.format(a)===i.format(a)}}})})(Gt);var Rr=Gt.exports;const Ir=Nr(Rr),Ar={name:"calendarDay",props:{day:Object},computed:{currentDay(){return T.extend(Ir),{dayName:T(this.day).locale("es").format("ddd"),day:T(this.day).locale("es").format("DD"),month:T(this.day).locale("es").format("MMM."),isWeekend:T(this.day).format("d")==6||T(this.day).format("d")==0,isToday:T(this.day).isToday()}}}},zr={class:"text-xs"},Hr={class:"font-bold text-lg"},Yr={class:"text-xs font-medium"};function Ur(t,n,l,r,o,a){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["day select-none text-center",{"bg-indigo-200 text-white":a.currentDay.isWeekend,"bg-[#0ff] text-white":a.currentDay.isToday}])},[e.createElementVNode("p",zr,e.toDisplayString(a.currentDay.dayName),1),e.createElementVNode("p",Hr,e.toDisplayString(a.currentDay.day),1),e.createElementVNode("p",Yr,e.toDisplayString(a.currentDay.month),1)],2)}const qr=le(Ar,[["render",Ur]]),Wr={name:"dayPrice",props:{currency:String,price:Object,basePrice:Number,isBasePrice:{type:Boolean,default:!1}},computed:{currentDay(){return{isWeekend:T(this.price.date).format("d")==6||T(this.price.date).format("d")==0,price:this.price.price}}}},Kr={class:"priceDay"};function Jr(t,n,l,r,o,a){return e.openBlock(),e.createElementBlock("div",Kr,[e.createElementVNode("div",{class:e.normalizeClass([{"bg-indigo-200 text-white":a.currentDay.isWeekend,"bg-green-300 text-white":l.price.price>l.basePrice,"bg-yellow-300 text-white":l.price.price<l.basePrice},"select-none text-center rounded-lg p-1"])},e.toDisplayString(a.currentDay.price)+e.toDisplayString(l.currency),3)])}const Gr=le(Wr,[["render",Jr]]),Xr={name:"uiPriceCalendar",data:()=>({today:new Date,date:new Date,selectedRooms:[],showBasePricesModal:!1,showDays:14}),props:{category:{type:Object,required:!0},rooms:{type:Array,required:!0},currency:Object,actions:Array},components:{DateSelector:Fr,Day:qr,Price:Gr,uiButton:nt},computed:{days(){let t=[];for(let n=0;n<this.showDays;n++)t.push(T(this.date).add(n,"day"));return t},indeterminate(){return this.selectedRooms.length>0&&this.selectedRooms.length<this.rooms.length}},methods:{changeDate(t){T(t).isBefore(this.today)||(this.date=t,this.$emit("dateChanged",this.date))},getSelectionBasePrice(t){let n=this.category.selectionPrices.find(l=>T(l.date).isSame(t.date));return n?n.price:t.price},changeCategoryBulkPrices(){this.$emit("changeCategoryBulkPrices")},changeCategorySelectionPrice(t){this.$emit("changeCategorySelectionPrice",t)},changeCategoryUpgradePrice(t){this.$emit("changeCategoryUpgradePrice",t)},tableAction(t){this.$emit("tableAction",t)},changeRoomPrice(t){this.$emit("changeRoomPrice",t)}}},Qr={class:"px-4 sm:px-6 lg:px-8"},Zr={class:"flow-root"},ea={class:"overflow-x-auto sm:-mx-6 lg:-mx-8 shadow ring-1 ring-black ring-opacity-5 sm:rounded-lg"},ta={class:"inline-block min-w-full align-middle"},na={class:"min-w-full"},oa={class:"bg-white"},la={colspan:"6",scope:"colgroup",class:"bg-gray-50 py-2 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-3"},ra={colspan:"20",scope:"colgroup",class:"bg-gray-200 py-2 pl-4 pr-3 text-left font-semibold text-gray-900"},aa=e.createElementVNode("span",null,"Categoría: Simple",-1),ia=e.createElementVNode("td",{colspan:"6",class:"pl-4"}," Precios de selección ",-1),sa=e.createElementVNode("td",{colspan:"6",class:"pl-4"}," Precios de mejora ",-1),ca={colspan:"20",scope:"colgroup",class:"bg-gray-200 py-2 pl-4 pr-3 text-left font-semibold text-gray-900 relative"},ua={key:0,class:"absolute top-0 left-12 flex h-12 items-center space-x-3 sm:left-48 bg-white shadow rounded px-4 py-1 z-10"},da=["onClick"],ma=e.createElementVNode("span",null,"Precios de selección",-1),fa={colspan:"2",scope:"colgroup",class:"relative bg-gray-100 py-3.5 pl-4 pr-3 text-left font-semibold text-gray-900"},pa=["checked","indeterminate"],va=e.createElementVNode("span",{class:"pl-6"},"Habitación",-1),ga=e.createElementVNode("th",{colspan:"2",scope:"colgroup",class:"bg-gray-100 py-2 pl-4 pr-3 text-left font-semibold text-gray-900"}," Edificio ",-1),ha=e.createElementVNode("th",{colspan:"2",scope:"colgroup",class:"bg-gray-100 py-2 pl-4 pr-3 text-left font-semibold text-gray-900"}," Planta ",-1),ya=e.createElementVNode("th",{colspan:"14",scope:"colgroup",class:"bg-gray-100 py-2 pl-4 pr-3 text-left font-semibold text-gray-900"},null,-1),ba={colspan:"2",class:"relative py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-6"},xa={key:0,class:"absolute inset-y-0 left-0 w-0.5 bg-indigo-600"},wa=["value"],ka={class:"pl-6"},Ea={colspan:"2",class:"pl-4"},Sa={colspan:"2",class:"pl-4"};function Ca(t,n,l,r,o,a){var d,v;const i=e.resolveComponent("DateSelector"),s=e.resolveComponent("Day"),u=e.resolveComponent("uiButton"),c=e.resolveComponent("Price");return e.openBlock(),e.createElementBlock("div",Qr,[e.createElementVNode("div",Zr,[e.createElementVNode("div",ea,[e.createElementVNode("div",ta,[e.createElementVNode("table",na,[e.createElementVNode("tbody",oa,[e.createElementVNode("tr",null,[e.createElementVNode("th",la,[e.createVNode(i,{selectedDate:t.date,onDateSelected:n[0]||(n[0]=m=>a.changeDate(m))},null,8,["selectedDate"])]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.days,(m,p)=>(e.openBlock(),e.createElementBlock("th",{scope:"col",key:p,class:"text-sm font-semibold text-gray-900 p-0"},[e.createVNode(s,{class:"border-l border-gray-200 px-6 py-3",day:m},null,8,["day"])]))),128))]),e.createElementVNode("tr",null,[e.createElementVNode("th",ra,[aa,e.createVNode(u,{class:"ml-4",size:"small",onClick:a.changeCategoryBulkPrices},{default:e.withCtx(()=>[e.createTextVNode("Cambiar precios en bloque ")]),_:1},8,["onClick"])])]),e.createElementVNode("tr",null,[ia,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.category.selectionPrices,(m,p)=>(e.openBlock(),e.createElementBlock("td",{key:p,class:"p-0"},[e.createVNode(c,{onClick:h=>a.changeCategorySelectionPrice(m),class:"border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 font-bold cursor-pointer",price:m,currency:l.currency.symbol,isBasePrice:!0},null,8,["onClick","price","currency"])]))),128))]),e.createElementVNode("tr",null,[sa,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.category.upgradePrices,(m,p)=>(e.openBlock(),e.createElementBlock("td",{key:p,class:"p-0"},[e.createVNode(c,{onClick:h=>a.changeCategoryUpgradePrice(m),class:"border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 font-bold cursor-pointer bg-gray-100",price:m,currency:l.currency.symbol,isBasePrice:!0},null,8,["onClick","price","currency"])]))),128))]),e.createElementVNode("tr",null,[e.createElementVNode("th",ca,[((d=t.selectedRooms)==null?void 0:d.length)>0&&((v=l.actions)==null?void 0:v.length)>0?(e.openBlock(),e.createElementBlock("div",ua,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.actions,(m,p)=>(e.openBlock(),e.createElementBlock("button",{onClick:h=>a.tableAction({action:m.id,items:t.selectedRooms}),key:p,type:"button",class:"inline-flex items-center rounded bg-indigo-600 hover:bg-indigo-800 px-2.5 py-1.5 text-xs font-medium text-white shadow-sm disabled:cursor-not-allowed disabled:opacity-30"},e.toDisplayString(m.name),9,da))),128))])):e.createCommentVNode("",!0),ma])]),e.createElementVNode("tr",null,[e.createElementVNode("th",fa,[e.createElementVNode("input",{type:"checkbox",class:"absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-600",checked:a.indeterminate||t.selectedRooms.length===l.rooms.length,indeterminate:a.indeterminate,onChange:n[1]||(n[1]=m=>t.selectedRooms=m.target.checked?l.rooms.map(p=>p.name):[])},null,40,pa),va]),ga,ha,ya]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.rooms,m=>(e.openBlock(),e.createElementBlock("tr",{key:m.name,class:"even:bg-gray-100"},[e.createElementVNode("td",ba,[t.selectedRooms.includes(m.name)?(e.openBlock(),e.createElementBlock("div",xa)):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",{type:"checkbox",class:"absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-600",value:m.name,"onUpdate:modelValue":n[2]||(n[2]=p=>t.selectedRooms=p)},null,8,wa),[[e.vModelCheckbox,t.selectedRooms]]),e.createElementVNode("span",ka,e.toDisplayString(m.name),1)]),e.createElementVNode("td",Ea,e.toDisplayString(m.building),1),e.createElementVNode("td",Sa,e.toDisplayString(m.floor),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.selectionPrices,(p,h)=>(e.openBlock(),e.createElementBlock("td",{class:"p-0",key:h},[e.createVNode(c,{onClick:g=>a.changeRoomPrice(p),class:"border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 cursor-pointer",price:p,currency:l.currency.symbol,basePrice:a.getSelectionBasePrice(p)},null,8,["onClick","price","currency","basePrice"])]))),128))]))),128))])])])])])])}const $a=le(Xr,[["render",Ca]]),Na={class:"chart-selector flex flex-row items-center justify-center"},Ba={name:"rangeSelector"},Va=Object.assign(Ba,{emits:["rangeSelected"],setup(t,{emit:n}){let l=e.ref("24h");const r=o=>{l.value=o,n("rangeSelected",o)};return(o,a)=>(e.openBlock(),e.createElementBlock("ul",Na,[e.createElementVNode("li",{class:e.normalizeClass({selected:e.unref(l)==="24h"}),onClick:a[0]||(a[0]=i=>r("24h"))}," 24H ",2),e.createElementVNode("li",{class:e.normalizeClass({selected:e.unref(l)==="7d"}),onClick:a[1]||(a[1]=i=>r("7d"))},"7D",2),e.createElementVNode("li",{class:e.normalizeClass({selected:e.unref(l)==="1m"}),onClick:a[2]||(a[2]=i=>r("1m"))},"1M",2),e.createElementVNode("li",{class:e.normalizeClass({selected:e.unref(l)==="3m"}),onClick:a[3]||(a[3]=i=>r("3m"))},"3M",2)]))}}),_a={toolbar:{show:!1},zoom:{enabled:!1}},Da=["#715aff","#00ffff","#aba9ba"],Ma={show:!0,curve:"stepline",lineCap:"butt",width:1,dashArray:0},Ta={enabled:!1},Oa={strokeWidth:0,size:4,hover:{size:8}},Pa={chart:_a,colors:Da,stroke:Ma,dataLabels:Ta,markers:Oa},La={class:"card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow h-80"},ja={class:"chart-header flex flex-row justify-between"},Fa={class:"text-sm font-medium text-gray-500 truncate"},Ra={class:"chart-content"},Ia={name:"uiChart"},Aa=Object.assign(Ia,{props:{title:String,type:{type:String,default:"area"},series:{type:Array,required:!0},options:{type:Object,required:!0}},emits:["selectedRange","chartUpdated"],setup(t,{emit:n}){const l=t,r=e.computed(()=>({...l.options,...Pa})),o=e.computed(()=>l.series),a=()=>n("chartUpdated");return(i,s)=>(e.openBlock(),e.createElementBlock("div",La,[e.createElementVNode("div",ja,[e.createElementVNode("div",Fa,e.toDisplayString(t.title),1),e.createVNode(Va,{onRangeSelected:s[0]||(s[0]=u=>n("selectedRange",u))})]),e.createElementVNode("div",Ra,[e.createVNode(e.unref(Zt),{type:t.type,series:o.value,width:"100%",height:"100%",options:r.value,onUpdated:a,onMounted:i.emitEvent},null,8,["type","series","options","onMounted"])])]))}}),za={name:"uiFooter"},Ha={class:"bg-white"},Ya=e.createElementVNode("div",{class:"mx-auto py-6 px-4 sm:px-6 md:flex md:items-center md:justify-between lg:px-8"},[e.createElementVNode("div",{class:"mt-8 md:mt-0 md:order-1"},[e.createElementVNode("p",{class:"text-center text-base text-gray-400"},"© Made by Hotelinking.")])],-1),Ua=[Ya];function qa(t,n,l,r,o,a){return e.openBlock(),e.createElementBlock("footer",Ha,Ua)}const Wa=le(za,[["render",qa]]),Ka=e.createElementVNode("div",{class:"spinner h-12 w-12 mb-6"},[e.createElementVNode("img",{src:"https://images.hotelinking.com/ui/loader.gif",alt:"loading animation"})],-1),Ja={name:"uiLoadScreen"},Ga=Object.assign(Ja,{props:{title:String,message:String,fixed:{type:Boolean,default:!0}},setup(t){return(n,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([{fixed:t.fixed},"load-screen h-full w-full top-0 left-0 z-50 flex flex-col items-center justify-center bg-gray-50"])},[Ka,e.withDirectives(e.createElementVNode("h2",{class:"text-xs font-bold text-center uppercase mb-2"},e.toDisplayString(t.title),513),[[e.vShow,t.title]]),e.withDirectives(e.createElementVNode("p",{class:"text-xs text-center uppercase md:w-1/4"},e.toDisplayString(t.message),513),[[e.vShow,t.message]])],2))}}),Xa={class:"py-6 flex items-center justify-between"},Qa={class:"flex-1 flex justify-between sm:hidden"},Za={href:"#",class:"relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50"},ei={href:"#",class:"ml-3 relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50"},ti={class:"hidden sm:flex-1 sm:flex sm:items-center sm:justify-between"},ni={class:"text-sm text-gray-700"},oi={class:"font-bold"},li={class:"font-bold"},ri={class:"relative z-0 inline-flex rounded-md shadow-sm -space-x-px","aria-label":"Pagination"},ai={class:"sr-only"},ii=["onClick"],si={class:"sr-only"},ci={name:"uiPagination"},ui=Object.assign(ci,{props:{current:{type:Number,requires:!0},total:{type:Number,requires:!0}},emits:["changePage"],setup(t,{emit:n}){const l=t,r=e.ref(3),o=e.computed(()=>Math.max(1,Number(l.current)-Number(r.value))),a=e.computed(()=>Math.min(Number(l.current)+Number(r.value),Number(l.total))),i=e.computed(()=>{let s=[];for(let u=Number(o.value);u<=Number(a.value);u++)s.push(u);return s});return(s,u)=>(e.openBlock(),e.createElementBlock("div",Xa,[e.createElementVNode("div",Qa,[e.createElementVNode("a",Za,[e.renderSlot(s.$slots,"previous")]),e.createElementVNode("a",ei,[e.renderSlot(s.$slots,"next")])]),e.createElementVNode("div",ti,[e.createElementVNode("div",null,[e.createElementVNode("p",ni,[e.renderSlot(s.$slots,"showing"),e.createTextVNode(),e.createElementVNode("span",oi,e.toDisplayString(t.current+" "),1),e.renderSlot(s.$slots,"of"),e.createTextVNode(),e.createElementVNode("span",li,e.toDisplayString(t.total),1)])]),e.createElementVNode("div",null,[e.createElementVNode("nav",ri,[e.withDirectives(e.createElementVNode("button",{onClick:u[0]||(u[0]=c=>n("changePage",t.current-1)),class:"relative inline-flex items-center px-2 py-2 rounded-l-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50"},[e.createElementVNode("span",ai,[e.renderSlot(s.$slots,"previous")]),e.createVNode(e.unref(Wt),{class:"h-5 w-5","aria-hidden":"true"})],512),[[e.vShow,t.current!==1]]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,c=>(e.openBlock(),e.createElementBlock("button",{onClick:d=>n("changePage",c),key:c,"aria-current":"page",class:e.normalizeClass([[c===t.current?"z-10 bg-indigo-50 border-indigo-500 text-indigo-600":"bg-white border-gray-300 text-gray-500 hover:bg-gray-50"],"relative inline-flex items-center px-4 py-2 border text-sm font-medium"])},e.toDisplayString(c),11,ii))),128)),e.withDirectives(e.createElementVNode("button",{onClick:u[1]||(u[1]=c=>n("changePage",t.current+1)),class:"relative inline-flex items-center px-2 py-2 rounded-r-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50"},[e.createElementVNode("span",si,[e.renderSlot(s.$slots,"next")]),e.createVNode(e.unref($e),{class:"h-5 w-5","aria-hidden":"true"})],512),[[e.vShow,t.current!==t.total]])])])])]))}}),di={class:"hidden md:flex md:flex-col sticky md:inset-y-0"},mi={class:"flex flex-col flex-grow overflow-y-auto"},fi={class:"grow flex flex-col"},pi={class:"flex-1 space-y-1","aria-label":"Sidebar"},vi={key:0},gi=["onClick"],hi={class:"flex-1"},yi={name:"uiSidebar"},bi=Object.assign(yi,{props:{navigation:{type:Array,required:!0}},emits:["sideBarClick"],setup(t,{emit:n}){return(l,r)=>(e.openBlock(),e.createElementBlock("div",di,[e.createElementVNode("div",mi,[e.createElementVNode("div",fi,[e.createElementVNode("nav",pi,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.navigation,o=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:o.name},[o.children?(e.openBlock(),e.createBlock(e.unref(Tt),{key:1,as:"div",class:"space-y-1"},{default:e.withCtx(({open:a})=>[e.createVNode(e.unref(Le),{class:e.normalizeClass([o.current?"bg-indigo-600 text-white":"text-gray-600 hover:bg-gray-50 hover:text-gray-900","group w-full flex items-center pl-2 pr-1 py-2 text-left text-sm font-medium rounded-md focus:outline-none"])},{default:e.withCtx(()=>[e.createVNode(R,{icon:o.icon,class:"mr-3 flex-shrink-0 h-6 w-6 text-gray-400 group-hover:text-gray-500","aria-hidden":"true"},null,8,["icon"]),e.createElementVNode("span",hi,e.toDisplayString(o.name),1),e.createVNode(e.unref($e),{class:e.normalizeClass([a?"text-gray-400 rotate-90":"text-gray-400","ml-3 flex-shrink-0 h-3 w-3 transform group-hover:text-gray-400 transition-colors ease-in-out duration-150"])},null,8,["class"])]),_:2},1032,["class"]),e.createVNode(e.unref(Ot),{class:"space-y-1"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.children,i=>(e.openBlock(),e.createBlock(e.unref(Le),{onClick:s=>n("sideBarClick",i.id),key:i.name,class:"group w-full flex items-center pl-11 pr-2 py-2 text-sm font-medium text-gray-600 rounded-md hover:text-gray-900 hover:bg-gray-50"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.name),1)]),_:2},1032,["onClick"]))),128))]),_:2},1024)]),_:2},1024)):(e.openBlock(),e.createElementBlock("div",vi,[e.createElementVNode("button",{onClick:a=>n("sideBarClick",o.id),class:e.normalizeClass([o.current?"bg-indigo-600 text-white":"text-gray-600 hover:bg-gray-50 hover:text-gray-900","group w-full flex items-center pl-2 py-2 text-sm font-medium rounded-md"])},[e.createVNode(R,{icon:o.icon,class:e.normalizeClass([o.current?"text-white":"text-gray-400 group-hover:text-gray-500","mr-3 flex-shrink-0 h-6 w-6"]),"aria-hidden":"true"},null,8,["icon","class"]),e.createTextVNode(" "+e.toDisplayString(o.name),1)],10,gi)]))],64))),128))])])])]))}}),xi={class:"ml-16 text-sm font-medium text-gray-500 truncate"},wi={class:"ml-16 flex items-baseline pb-5"},ki={class:"text-2xl font-semibold text-gray-900"},Ei={class:"sr-only"},Si={class:"absolute bottom-0 inset-x-0 bg-gray-50 px-4 py-4 sm:px-6"},Ci={class:"text-sm"},$i={name:"uiStats"},Ni=Object.assign($i,{props:{item:Object,required:!0},emits:["statClick"],setup(t,{emit:n}){return(l,r)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",{class:e.normalizeClass(["relative bg-white pt-5 px-4 sm:pt-6 sm:px-6 shadow rounded-lg overflow-hidden h-full",{"pb-12":t.item.showFooter}])},[e.createElementVNode("dt",null,[e.createElementVNode("div",{class:e.normalizeClass(["absolute rounded-md p-3",{"bg-indigo-500":!t.item.color,"bg-green-500":t.item.color==="success","bg-red-500":t.item.color==="danger","bg-yellow-500":t.item.color==="warning"}])},[e.createVNode(R,{icon:t.item.icon,class:"h-6 w-6 text-white","aria-hidden":"true"},null,8,["icon"])],2),e.createElementVNode("p",xi,e.toDisplayString(t.item.name),1)]),e.createElementVNode("dd",wi,[e.createElementVNode("p",ki,e.toDisplayString(t.item.stat),1),t.item.changeType?(e.openBlock(),e.createElementBlock("p",{key:0,class:e.normalizeClass([t.item.changeType==="increase"?"text-green-600":"text-red-600","ml-2 flex items-baseline text-sm font-semibold"])},[t.item.changeType==="increase"?(e.openBlock(),e.createBlock(e.unref(Do),{key:0,class:"self-center flex-shrink-0 h-3 w-3 text-green-500","aria-hidden":"true"})):(e.openBlock(),e.createBlock(e.unref(Vo),{key:1,class:"self-center flex-shrink-0 h-3 w-3 text-red-500","aria-hidden":"true"})),e.createElementVNode("span",Ei,e.toDisplayString(t.item.changeType==="increase"?"Increased":"Decreased"),1),e.createTextVNode(" "+e.toDisplayString(t.item.change),1)],2)):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("div",Si,[e.createElementVNode("div",Ci,[e.createElementVNode("span",{onClick:r[0]||(r[0]=o=>n("statClick",t.item.id)),class:"font-medium text-indigo-600 hover:text-indigo-500 cursor-pointer"},e.toDisplayString(t.item.actionText),1)])],512),[[e.vShow,t.item.showFooter]])])],2)]))}}),Bi={class:"overflow-hidden bg-white shadow sm:rounded-lg"},Vi={class:"px-4 py-5 sm:px-6"},_i={class:"text-lg font-medium leading-6 text-gray-900"},Di={class:"mt-1 max-w-2xl text-sm text-gray-500"},Mi={class:"border-t border-gray-200"},Ti={class:"text-sm font-medium text-gray-500"},Oi={key:0,class:"mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-normal"},Pi={key:1,class:"mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-normal"},Li=["onClick"],ji={key:3,class:"mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-words"},Fi={name:"uiStripedCard"},Ri=Object.assign(Fi,{props:{title:String,subtitle:String,items:Object},setup(t){return(n,l)=>(e.openBlock(),e.createElementBlock("div",Bi,[e.createElementVNode("div",Vi,[e.createElementVNode("h3",_i,e.toDisplayString(t.title),1),e.createElementVNode("p",Di,e.toDisplayString(t.subtitle),1)]),e.createElementVNode("div",Mi,[e.createElementVNode("dl",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(r,o)=>(e.openBlock(),e.createElementBlock("div",{key:o,class:e.normalizeClass(["px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6",[o%2===0?"bg-gray-50":"bg-white"]])},[e.createElementVNode("dt",Ti,e.toDisplayString(r.title),1),r.type==="tag"?(e.openBlock(),e.createElementBlock("dd",Oi,[e.createVNode(de,{color:r.color},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.text),1)]),_:2},1032,["color"])])):r.type==="tags"?(e.openBlock(),e.createElementBlock("dd",Pi,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.tags,(a,i)=>(e.openBlock(),e.createBlock(de,{key:i,color:a.color,class:"mr-2 mb-2"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.text),1)]),_:2},1032,["color"]))),128))])):r.type==="link"?(e.openBlock(),e.createElementBlock("dd",{key:2,class:"mt-1 text-sm text-indigo-600 hover:text-indigo-400 sm:col-span-2 sm:mt-0 cursor-pointer",onClick:a=>n.$emits(r.emits)},e.toDisplayString(r.text),9,Li)):(e.openBlock(),e.createElementBlock("dd",ji,e.toDisplayString(r.text),1))],2))),128))])])]))}}),Ii={class:"flex flex-col"},Ai={class:"-my-2 overflow-x-auto"},zi={class:"inline-block min-w-full py-2 align-middle px-1"},Hi={class:"relative overflow-hidden shadow ring-1 ring-black ring-opacity-5 md:rounded-lg"},Yi={key:0,class:"absolute top-0 left-12 flex h-12 items-center space-x-3 sm:left-16 bg-white shadow rounded px-4 py-1"},Ui=["onClick"],qi={class:"min-w-full table-fixed divide-y divide-gray-300"},Wi={class:"bg-gray-50"},Ki=["checked","indeterminate"],Ji=["onClick"],Gi=e.createElementVNode("svg",{class:"h-4 w-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1),Xi=[Gi],Qi={key:1,class:"group flex items-center uppercase text-xs"},Zi={class:"divide-y divide-gray-200 bg-white"},es={key:0,class:"absolute inset-y-0 left-0 w-0.5 bg-indigo-600"},ts=["value"],ns=["onClick"],os={key:2},ls={name:"uiTable"},rs=Object.assign(ls,{props:{header:{type:Array,required:!0},items:{type:Array,required:!0},orderedBy:String,actions:Array},emits:["tableAction","orderBy"],setup(t,{emit:n}){const l=t;let r=e.ref([]);e.ref(!1);const o=e.computed(()=>r.value.length>0&&r.value.length<l.items.length);return(a,i)=>{var s,u;return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",Ii,[e.createElementVNode("div",Ai,[e.createElementVNode("div",zi,[e.createElementVNode("div",Hi,[((s=e.unref(r))==null?void 0:s.length)>0&&((u=t.actions)==null?void 0:u.length)>0?(e.openBlock(),e.createElementBlock("div",Yi,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.actions,(c,d)=>(e.openBlock(),e.createElementBlock("button",{onClick:v=>n("tableAction",{action:c.id,items:e.unref(r)}),key:d,type:"button",class:"inline-flex items-center rounded bg-indigo-600 hover:bg-indigo-800 px-2.5 py-1.5 text-xs font-medium text-white shadow-sm disabled:cursor-not-allowed disabled:opacity-30"},e.toDisplayString(c.name),9,Ui))),128))])):e.createCommentVNode("",!0),e.createElementVNode("table",qi,[e.createElementVNode("thead",Wi,[e.createElementVNode("tr",null,[e.createElementVNode("th",{scope:"col",class:e.normalizeClass([t.actions?"px-6 sm:px-8":"px-3","relative"])},[t.actions?(e.openBlock(),e.createElementBlock("input",{key:0,checked:o.value||e.unref(r).length===t.items.length,indeterminate:o.value,class:"absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-500",type:"checkbox",onChange:i[0]||(i[0]=c=>e.isRef(r)?r.value=c.target.checked?t.items.map(d=>d.id):[]:r=c.target.checked?t.items.map(d=>d.id):[])},null,40,Ki)):e.createCommentVNode("",!0)],2),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.header,(c,d)=>(e.openBlock(),e.createElementBlock("th",{key:d,class:"py-3.5 pr-3 text-left font-semibold text-gray-900 flex-wrap",scope:"col"},[c.value?(e.openBlock(),e.createElementBlock("button",{key:0,class:"group flex items-center uppercase text-xs",onClick:v=>n("orderBy",c.value)},[e.createElementVNode("span",null,e.toDisplayString(c.name),1),e.createElementVNode("span",{class:e.normalizeClass([[c.value===t.orderedBy?"bg-indigo-600 text-white group-hover:bg-gray-300":"text-gray-400 group-hover:visible group-focus:visible"],"ml-2 flex-none rounded group-hover:bg-indigo-200 group-hover:text-white"])},Xi,2)],8,Ji)):(e.openBlock(),e.createElementBlock("p",Qi,[e.createElementVNode("span",null,e.toDisplayString(c.name),1)]))]))),128))])]),e.createElementVNode("tbody",Zi,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(c,d)=>{var v,m;return e.openBlock(),e.createElementBlock("tr",{key:c.id,class:e.normalizeClass([e.unref(r).includes(c.id)&&"bg-gray-50",d%2===0?void 0:"bg-gray-50"])},[e.createElementVNode("td",{class:e.normalizeClass([((v=t.actions)==null?void 0:v.length)>0?"w-2":"w-0","relative"])},[e.unref(r).includes(c.id)?(e.openBlock(),e.createElementBlock("div",es)):e.createCommentVNode("",!0),((m=t.actions)==null?void 0:m.length)>0?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:1,"onUpdate:modelValue":i[1]||(i[1]=p=>e.isRef(r)?r.value=p:r=p),value:c.id,class:"absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-500 flex-wrap",type:"checkbox"},null,8,ts)),[[e.vModelCheckbox,e.unref(r)]]):e.createCommentVNode("",!0)],2),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.row,(p,h)=>(e.openBlock(),e.createElementBlock("td",{key:h,class:e.normalizeClass(["whitespace-nowrap py-4 pr-3 text-sm uppercase text-xs",e.unref(r).includes(c.id)?"text-indigo-600":"text-gray-900"])},[typeof p=="object"&&p.type==="tag"?(e.openBlock(),e.createBlock(de,{key:0,color:p.color},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(p.content),1)]),_:2},1032,["color"])):typeof p=="object"&&p.type==="link"?(e.openBlock(),e.createElementBlock("span",{key:1,class:"text-indigo-600 hover:text-indigo-400 cursor-pointer",onClick:g=>n(p.emits,{id:c.id,data:(c==null?void 0:c.emitWith)||null})},e.toDisplayString(p.content),9,ns)):(e.openBlock(),e.createElementBlock("span",os,e.toDisplayString(p),1))],2))),128))],2)}),128))])])])])])])])}}}),as={class:"lg:hidden"},is=["value"],ss={class:"hidden lg:block"},cs={class:"border-b border-gray-200"},us={class:"-mb-px flex space-x-8","aria-label":"Tabs"},ds=["onClick","aria-current"],ms={name:"uiTabs"},fs=Object.assign(ms,{props:{tabs:Array},emits:["tabClicked"],setup(t,{emit:n}){const l=r=>{n("tabClicked",r.target.value)};return(r,o)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",as,[e.createElementVNode("select",{onChange:o[0]||(o[0]=a=>l(a)),id:"tabs",name:"tabs",class:"block w-full rounded-md border-gray-300 py-2 pl-3 pr-10 text-base focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 sm:text-sm"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.tabs,a=>(e.openBlock(),e.createElementBlock("option",{value:a.id,key:a.name},e.toDisplayString(a.name),9,is))),128))],32)]),e.createElementVNode("div",ss,[e.createElementVNode("div",cs,[e.createElementVNode("nav",us,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.tabs,a=>(e.openBlock(),e.createElementBlock("a",{key:a.name,onClick:i=>n("tabClicked",a.id),class:e.normalizeClass([a.current?"border-indigo-500 text-indigo-600":"border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-200","whitespace-nowrap flex py-4 px-1 border-b-2 font-medium text-sm cursor-pointer"]),"aria-current":a.current?"page":void 0},[e.createTextVNode(e.toDisplayString(a.name)+" ",1),a.count?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass([a.current?"bg-indigo-100 text-indigo-600":"bg-gray-100 text-gray-900","hidden ml-3 py-0.5 px-2.5 rounded-full text-xs font-medium md:inline-block"])},e.toDisplayString(a.count),3)):e.createCommentVNode("",!0)],10,ds))),128))])])])]))}}),ps={class:"bg-white overflow-hidden shadow rounded-lg"},vs={class:"px-4 py-5 sm:px-6"},gs={class:"text-xl font-bold"},hs={class:"px-4 py-5 sm:p-6"},ys={class:"flow-root"},bs={class:"-mb-8",role:"list"},xs={class:"relative pb-8"},ws={key:0,class:"absolute left-4 top-4 -ml-px h-full w-0.5 bg-gray-200","aria-hidden":"true"},ks={class:"relative flex space-x-3"},Es={class:"min-w-0 flex-1 pt-1.5 flex justify-between space-x-4 items-center"},Ss={class:"text-sm text-gray-500"},Cs=["onClick"],$s={class:"text-right text-sm whitespace-nowrap text-gray-500"},Ns=["datetime"],Bs={class:"bg-gray-50 px-4 py-4 sm:px-6 z-10"},Vs={class:"text-sm"},_s={name:"uiTimeline"},Ds=Object.assign(_s,{props:{name:{type:String,required:!0},timeline:{type:Object}},setup(t){return(n,l)=>(e.openBlock(),e.createElementBlock("div",ps,[e.createElementVNode("div",vs,[e.createElementVNode("h1",gs,e.toDisplayString(t.name),1)]),e.createElementVNode("div",hs,[e.createElementVNode("div",ys,[e.createElementVNode("ul",bs,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.timeline.items,(r,o)=>(e.openBlock(),e.createElementBlock("li",{key:o},[e.createElementVNode("div",xs,[o!==t.timeline.length-1?(e.openBlock(),e.createElementBlock("span",ws)):e.createCommentVNode("",!0),e.createElementVNode("div",ks,[e.createElementVNode("div",null,[e.createElementVNode("span",{class:e.normalizeClass([r.iconBackground,"h-8 w-8 rounded-full flex items-center justify-center ring-4 ring-white"])},[e.createVNode(R,{icon:r.icon,"aria-hidden":"true",class:"h-5 w-5 text-white",color:"white"},null,8,["icon"])],2)]),e.createElementVNode("div",Es,[e.createElementVNode("div",null,[e.createElementVNode("p",Ss,[e.createElementVNode("a",{onClick:a=>n.$emit("timelineEventClicked",r.linkId),class:"font-medium text-indigo-600 hover:text-indigo-800 cursor-pointer"},e.toDisplayString(r.target),9,Cs),e.createTextVNode(" "+e.toDisplayString(r.content),1)])]),e.createElementVNode("div",$s,[e.createElementVNode("time",{datetime:r.datetime},e.toDisplayString(r.date),9,Ns)])])])])]))),128))])])]),e.createElementVNode("div",Bs,[e.createElementVNode("div",Vs,[e.createElementVNode("a",{class:"cursor-pointer font-medium text-indigo-600 hover:text-indigo-500",onClick:l[0]||(l[0]=r=>n.$emit("timelineFooterClicked",t.timeline.id))},e.toDisplayString(t.timeline.footerText),1)])])]))}}),Ms={name:"uiTopbar",props:["navigation","logo","profileMenu","brand","accountLogo","alerted"],components:{Disclosure:Tt,DisclosureButton:Le,DisclosurePanel:Ot,Menu:Lt,MenuButton:jt,MenuItem:Rt,MenuItems:Ft,Bars3Icon:Mo,XMarkIcon:we}},Ts={class:"mx-auto px-4 sm:px-6 lg:px-8"},Os={class:"flex justify-between h-20"},Ps={class:"flex"},Ls={class:"-ml-2 mr-2 flex items-center lg:hidden"},js=e.createElementVNode("span",{class:"sr-only"},"Open main menu",-1),Fs=["src"],Rs={class:"flex items-center"},Is={class:"md:ml-4 md:flex-shrink-0 md:flex md:items-center"},As={class:"redCircle flex items-center justify-center h-4 w-4 bg-red-500 rounded-full absolute -top-0 -left-1"},zs=e.createElementVNode("span",{class:"animate-ping absolute inline-flex h-4 w-4 bg-red-500 rounded-full opacity-75"},null,-1),Hs=[zs],Ys=["src"],Us=["onClick"],qs={class:"pt-2 pb-3 space-y-1"},Ws=["onClick"],Ks={class:"pt-4 pb-3 border-t border-gray-200"},Js={class:"flex items-center px-4 sm:px-6"},Gs={class:"flex-shrink-0"},Xs=["src"],Qs={key:0,class:"ml-3"},Zs={class:"text-base font-medium text-gray-800"},ec={class:"text-sm font-medium text-gray-500"},tc={class:"mt-3 space-y-1"},nc=["onClick"];function oc(t,n,l,r,o,a){const i=e.resolveComponent("Bars3Icon"),s=e.resolveComponent("XMarkIcon"),u=e.resolveComponent("DisclosureButton"),c=e.resolveComponent("MenuButton"),d=e.resolveComponent("MenuItem"),v=e.resolveComponent("MenuItems"),m=e.resolveComponent("Menu"),p=e.resolveComponent("DisclosurePanel"),h=e.resolveComponent("Disclosure");return e.openBlock(),e.createBlock(h,{as:"nav",class:"bg-white shadow"},{default:e.withCtx(({open:g})=>[e.createElementVNode("div",Ts,[e.createElementVNode("div",Os,[e.createElementVNode("div",Ps,[e.createElementVNode("div",Ls,[e.createVNode(u,{class:"inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-indigo-500"},{default:e.withCtx(()=>[js,g?(e.openBlock(),e.createBlock(s,{key:1,class:"block h-6 w-6","aria-hidden":"true"})):(e.openBlock(),e.createBlock(i,{key:0,class:"block h-6 w-6","aria-hidden":"true"}))]),_:2},1024)]),e.createElementVNode("div",{class:"flex-shrink-0 flex items-center cursor-pointer",onClick:n[0]||(n[0]=f=>t.$emit("topBarClick","logo"))},[e.createElementVNode("img",{class:"h-10",src:l.logo,alt:"Hotelinking suite product logo"},null,8,Fs)])]),e.createElementVNode("div",Rs,[e.createElementVNode("div",Is,[e.createVNode(m,{as:"div",class:"ml-3 relative"},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.withDirectives(e.createVNode(c,{class:"bg-white rounded-full flex text-sm focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 relative"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",As,Hs,512),[[e.vShow,l.alerted]]),e.createElementVNode("img",{class:"h-10 w-10 rounded-full",src:l.accountLogo},null,8,Ys)]),_:1},512),[[e.vShow,l.accountLogo]])]),e.createVNode(e.Transition,{"enter-active-class":"transition ease-out duration-200","enter-from-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"},{default:e.withCtx(()=>[e.createVNode(v,{class:"origin-top-right absolute right-0 mt-2 w-48 rounded-md shadow-lg py-1 bg-white ring-1 ring-black ring-opacity-5 focus:outline-none"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.profileMenu,f=>(e.openBlock(),e.createBlock(d,{key:f.name},{default:e.withCtx(({active:b})=>[e.createElementVNode("p",{onClick:k=>t.$emit("topBarClick",f.id),class:e.normalizeClass(["cursor-pointer",[b?"bg-gray-100":"","block px-4 py-2 text-sm text-gray-700"]])},e.toDisplayString(f.name),11,Us)]),_:2},1024))),128))]),_:1})]),_:1})]),_:1})])])])]),e.createVNode(p,{class:"lg:hidden"},{default:e.withCtx(()=>[e.createElementVNode("div",qs,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.navigation,f=>(e.openBlock(),e.createBlock(u,{as:"template",key:f.name,class:e.normalizeClass(["block pl-3 pr-4 py-2 border-l-4 text-base font-medium sm:pl-5 sm:pr-6",{"bg-indigo-50 border-indigo-500 text-indigo-700":f.current&&f.current===!0,"border-transparent text-gray-500 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-700":!f.current}])},{default:e.withCtx(()=>[e.createElementVNode("p",{onClick:b=>t.$emit("topBarClick",f.id)},e.toDisplayString(f.name),9,Ws)]),_:2},1032,["class"]))),128))]),e.createElementVNode("div",Ks,[e.createElementVNode("div",Js,[e.createElementVNode("div",Gs,[e.createElementVNode("img",{class:"h-10 w-10 rounded-full",src:l.accountLogo},null,8,Xs)]),l.brand?(e.openBlock(),e.createElementBlock("div",Qs,[e.createElementVNode("div",Zs,e.toDisplayString(l.brand.title),1),e.createElementVNode("div",ec,e.toDisplayString(l.brand.subtitle),1)])):e.createCommentVNode("",!0)]),e.createElementVNode("div",tc,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.profileMenu,f=>(e.openBlock(),e.createBlock(u,{as:"template",key:f.name,class:"block px-4 py-2 text-base font-medium text-gray-500 hover:text-gray-800 hover:bg-gray-100 sm:px-6"},{default:e.withCtx(()=>[e.createElementVNode("p",{onClick:b=>t.$emit("topBarClick",f.id)},e.toDisplayString(f.name),9,nc)]),_:2},1024))),128))])])]),_:1})]),_:1})}const lc=le(Ms,[["render",oc]]),rc={class:"chart-header flex flex-row justify-between"},ac={class:"text-sm font-medium text-gray-500 truncate"},ic={class:"chart-selector flex flex-row items-center justify-center"},sc={class:"chart-content pt-6"},cc={name:"uiFunnelChart"},uc=Object.assign(cc,{props:{title:String,labels:{type:Array,required:!0},subLabels:{type:Array,required:!0},values:{type:Array,required:!0}},emits:["selectedRange","chartUpdated"],setup(t,{emit:n}){const l=e.ref("24h"),r=e.ref(null),o=[["#725CFF","#C9C4EB"],["#00FFFF","#D6FFFF"],["#aba9ba","#f5f4ff"]],a="vertical",i="vertical",s=e.ref(0),u=e.ref(0),c=v=>{l.value=v,n("selectedRange",v)},d=()=>{s.value=r.value.clientHeight-r.value.clientHeight/4,u.value=r.value.clientWidth-r.value.clientHeight/4};return e.onMounted(()=>{r.value.focus(),d()}),(v,m)=>(e.openBlock(),e.createElementBlock("div",{class:"card chart funnel-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow h-full",ref_key:"funnelChart",ref:r},[e.createElementVNode("div",rc,[e.createElementVNode("div",ac,e.toDisplayString(t.title),1),e.createElementVNode("ul",ic,[e.createElementVNode("li",{class:e.normalizeClass({selected:l.value==="24h"}),onClick:m[0]||(m[0]=p=>c("24h"))}," 24H ",2),e.createElementVNode("li",{class:e.normalizeClass({selected:l.value==="7d"}),onClick:m[1]||(m[1]=p=>c("7d"))}," 7D ",2),e.createElementVNode("li",{class:e.normalizeClass({selected:l.value==="1m"}),onClick:m[2]||(m[2]=p=>c("1m"))}," 1M ",2),e.createElementVNode("li",{class:e.normalizeClass({selected:l.value==="3m"}),onClick:m[3]||(m[3]=p=>c("3m"))}," 3M ",2)])]),e.createElementVNode("div",sc,[u.value>0&&s.value>0?(e.openBlock(),e.createBlock(e.unref(en.VueFunnelGraph),{key:0,width:u.value,height:s.value,labels:t.labels,values:t.values,colors:o,"sub-labels":t.subLabels,direction:a,"gradient-direction":i,animated:!0,"display-percentage":!0},null,8,["width","height","labels","values","sub-labels"])):e.createCommentVNode("",!0)])],512))}}),dc={uiButton:nt,uiIcon:R,uiCheckbox:dn,uiDropdown:Jt,uiInput:Ko,uiInputFile:il,uiSelect:ul,uiTag:de,uiTextArea:vl,uiToggle:bl,uiAlert:Bl,uiBreadcrumbs:Ll,uiCard:Hl,uiFilter:Ul,uiModal:or,uiNotification:vr,uiTaskList:$r,uiPriceCalendar:$a,uiChart:Aa,uiFooter:Wa,uiLoadingScreen:Ga,uiPagination:ui,uiSidebar:bi,uiStats:Ni,uiStripedCard:Ri,uiTable:rs,uiTabs:fs,uiTimeline:Ds,uiTopbar:lc,uiFunnelChart:uc},tt=dc,mc={install(t){Object.keys(tt).forEach(n=>{t.component(n,tt[n])})}};exports.default=mc;
|
package/dist/ui.es.js
CHANGED
|
@@ -4590,11 +4590,13 @@ const Ei = /* @__PURE__ */ Ee(Di, [["render", Ti]]), ji = /* @__PURE__ */ i("div
|
|
|
4590
4590
|
Bars3Icon: ho,
|
|
4591
4591
|
XMarkIcon: Je
|
|
4592
4592
|
}
|
|
4593
|
-
}, bu = { class: "mx-auto px-4 sm:px-6 lg:px-8" }, yu = { class: "flex justify-between h-20" }, xu = { class: "flex" }, wu = { class: "-ml-2 mr-2 flex items-center lg:hidden" }, $u = /* @__PURE__ */ i("span", { class: "sr-only" }, "Open main menu", -1), ku = ["src"], _u = { class: "flex items-center" }, Su = { class: "md:ml-4 md:flex-shrink-0 md:flex md:items-center" }, Cu = { class: "redCircle flex items-center justify-center h-4 w-4 bg-red-500 rounded-full absolute -top-0 -left-1" }, Du =
|
|
4593
|
+
}, bu = { class: "mx-auto px-4 sm:px-6 lg:px-8" }, yu = { class: "flex justify-between h-20" }, xu = { class: "flex" }, wu = { class: "-ml-2 mr-2 flex items-center lg:hidden" }, $u = /* @__PURE__ */ i("span", { class: "sr-only" }, "Open main menu", -1), ku = ["src"], _u = { class: "flex items-center" }, Su = { class: "md:ml-4 md:flex-shrink-0 md:flex md:items-center" }, Cu = { class: "redCircle flex items-center justify-center h-4 w-4 bg-red-500 rounded-full absolute -top-0 -left-1" }, Du = /* @__PURE__ */ i("span", { class: "animate-ping absolute inline-flex h-4 w-4 bg-red-500 rounded-full opacity-75" }, null, -1), Ou = [
|
|
4594
|
+
Du
|
|
4595
|
+
], Mu = ["src"], Pu = ["onClick"], Tu = { class: "pt-2 pb-3 space-y-1" }, Eu = ["onClick"], ju = { class: "pt-4 pb-3 border-t border-gray-200" }, Lu = { class: "flex items-center px-4 sm:px-6" }, Iu = { class: "flex-shrink-0" }, Ru = ["src"], Fu = {
|
|
4594
4596
|
key: 0,
|
|
4595
4597
|
class: "ml-3"
|
|
4596
|
-
},
|
|
4597
|
-
function
|
|
4598
|
+
}, Au = { class: "text-base font-medium text-gray-800" }, Bu = { class: "text-sm font-medium text-gray-500" }, Nu = { class: "mt-3 space-y-1" }, Hu = ["onClick"];
|
|
4599
|
+
function Vu(e, t, l, o, n, r) {
|
|
4598
4600
|
const a = ue("Bars3Icon"), s = ue("XMarkIcon"), d = ue("DisclosureButton"), u = ue("MenuButton"), c = ue("MenuItem"), h = ue("MenuItems"), m = ue("Menu"), g = ue("DisclosurePanel"), w = ue("Disclosure");
|
|
4599
4601
|
return f(), V(w, {
|
|
4600
4602
|
as: "nav",
|
|
@@ -4642,13 +4644,13 @@ function Nu(e, t, l, o, n, r) {
|
|
|
4642
4644
|
i("div", null, [
|
|
4643
4645
|
U(k(u, { class: "bg-white rounded-full flex text-sm focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 relative" }, {
|
|
4644
4646
|
default: j(() => [
|
|
4645
|
-
U(i("div", Cu,
|
|
4647
|
+
U(i("div", Cu, Ou, 512), [
|
|
4646
4648
|
[Q, l.alerted]
|
|
4647
4649
|
]),
|
|
4648
4650
|
i("img", {
|
|
4649
4651
|
class: "h-10 w-10 rounded-full",
|
|
4650
4652
|
src: l.accountLogo
|
|
4651
|
-
}, null, 8,
|
|
4653
|
+
}, null, 8, Mu)
|
|
4652
4654
|
]),
|
|
4653
4655
|
_: 1
|
|
4654
4656
|
}, 512), [
|
|
@@ -4676,7 +4678,7 @@ function Nu(e, t, l, o, n, r) {
|
|
|
4676
4678
|
D ? "bg-gray-100" : "",
|
|
4677
4679
|
"block px-4 py-2 text-sm text-gray-700"
|
|
4678
4680
|
]])
|
|
4679
|
-
}, y(p.name), 11,
|
|
4681
|
+
}, y(p.name), 11, Pu)
|
|
4680
4682
|
]),
|
|
4681
4683
|
_: 2
|
|
4682
4684
|
}, 1024))), 128))
|
|
@@ -4695,7 +4697,7 @@ function Nu(e, t, l, o, n, r) {
|
|
|
4695
4697
|
]),
|
|
4696
4698
|
k(g, { class: "lg:hidden" }, {
|
|
4697
4699
|
default: j(() => [
|
|
4698
|
-
i("div",
|
|
4700
|
+
i("div", Tu, [
|
|
4699
4701
|
(f(!0), v(R, null, Y(l.navigation, (p) => (f(), V(d, {
|
|
4700
4702
|
as: "template",
|
|
4701
4703
|
key: p.name,
|
|
@@ -4707,25 +4709,25 @@ function Nu(e, t, l, o, n, r) {
|
|
|
4707
4709
|
default: j(() => [
|
|
4708
4710
|
i("p", {
|
|
4709
4711
|
onClick: (D) => e.$emit("topBarClick", p.id)
|
|
4710
|
-
}, y(p.name), 9,
|
|
4712
|
+
}, y(p.name), 9, Eu)
|
|
4711
4713
|
]),
|
|
4712
4714
|
_: 2
|
|
4713
4715
|
}, 1032, ["class"]))), 128))
|
|
4714
4716
|
]),
|
|
4715
|
-
i("div",
|
|
4716
|
-
i("div",
|
|
4717
|
-
i("div",
|
|
4717
|
+
i("div", ju, [
|
|
4718
|
+
i("div", Lu, [
|
|
4719
|
+
i("div", Iu, [
|
|
4718
4720
|
i("img", {
|
|
4719
4721
|
class: "h-10 w-10 rounded-full",
|
|
4720
4722
|
src: l.accountLogo
|
|
4721
|
-
}, null, 8,
|
|
4723
|
+
}, null, 8, Ru)
|
|
4722
4724
|
]),
|
|
4723
|
-
l.brand ? (f(), v("div",
|
|
4724
|
-
i("div",
|
|
4725
|
-
i("div",
|
|
4725
|
+
l.brand ? (f(), v("div", Fu, [
|
|
4726
|
+
i("div", Au, y(l.brand.title), 1),
|
|
4727
|
+
i("div", Bu, y(l.brand.subtitle), 1)
|
|
4726
4728
|
])) : A("", !0)
|
|
4727
4729
|
]),
|
|
4728
|
-
i("div",
|
|
4730
|
+
i("div", Nu, [
|
|
4729
4731
|
(f(!0), v(R, null, Y(l.profileMenu, (p) => (f(), V(d, {
|
|
4730
4732
|
as: "template",
|
|
4731
4733
|
key: p.name,
|
|
@@ -4734,7 +4736,7 @@ function Nu(e, t, l, o, n, r) {
|
|
|
4734
4736
|
default: j(() => [
|
|
4735
4737
|
i("p", {
|
|
4736
4738
|
onClick: (D) => e.$emit("topBarClick", p.id)
|
|
4737
|
-
}, y(p.name), 9,
|
|
4739
|
+
}, y(p.name), 9, Hu)
|
|
4738
4740
|
]),
|
|
4739
4741
|
_: 2
|
|
4740
4742
|
}, 1024))), 128))
|
|
@@ -4747,9 +4749,9 @@ function Nu(e, t, l, o, n, r) {
|
|
|
4747
4749
|
_: 1
|
|
4748
4750
|
});
|
|
4749
4751
|
}
|
|
4750
|
-
const
|
|
4752
|
+
const Yu = /* @__PURE__ */ Ee(hu, [["render", Vu]]), qu = { class: "chart-header flex flex-row justify-between" }, Uu = { class: "text-sm font-medium text-gray-500 truncate" }, zu = { class: "chart-selector flex flex-row items-center justify-center" }, Wu = { class: "chart-content pt-6" }, Ku = {
|
|
4751
4753
|
name: "uiFunnelChart"
|
|
4752
|
-
},
|
|
4754
|
+
}, Ju = /* @__PURE__ */ Object.assign(Ku, {
|
|
4753
4755
|
props: {
|
|
4754
4756
|
title: String,
|
|
4755
4757
|
labels: {
|
|
@@ -4783,9 +4785,9 @@ const Hu = /* @__PURE__ */ Ee(hu, [["render", Nu]]), Vu = { class: "chart-header
|
|
|
4783
4785
|
ref_key: "funnelChart",
|
|
4784
4786
|
ref: o
|
|
4785
4787
|
}, [
|
|
4786
|
-
i("div",
|
|
4787
|
-
i("div",
|
|
4788
|
-
i("ul",
|
|
4788
|
+
i("div", qu, [
|
|
4789
|
+
i("div", Uu, y(e.title), 1),
|
|
4790
|
+
i("ul", zu, [
|
|
4789
4791
|
i("li", {
|
|
4790
4792
|
class: C({ selected: l.value === "24h" }),
|
|
4791
4793
|
onClick: m[0] || (m[0] = (g) => u("24h"))
|
|
@@ -4804,7 +4806,7 @@ const Hu = /* @__PURE__ */ Ee(hu, [["render", Nu]]), Vu = { class: "chart-header
|
|
|
4804
4806
|
}, " 3M ", 2)
|
|
4805
4807
|
])
|
|
4806
4808
|
]),
|
|
4807
|
-
i("div",
|
|
4809
|
+
i("div", Wu, [
|
|
4808
4810
|
d.value > 0 && s.value > 0 ? (f(), V(_(Nn), {
|
|
4809
4811
|
key: 0,
|
|
4810
4812
|
width: d.value,
|
|
@@ -4821,7 +4823,7 @@ const Hu = /* @__PURE__ */ Ee(hu, [["render", Nu]]), Vu = { class: "chart-header
|
|
|
4821
4823
|
])
|
|
4822
4824
|
], 512));
|
|
4823
4825
|
}
|
|
4824
|
-
}),
|
|
4826
|
+
}), Gu = {
|
|
4825
4827
|
uiButton: Lt,
|
|
4826
4828
|
uiIcon: ce,
|
|
4827
4829
|
uiCheckbox: Gn,
|
|
@@ -4850,9 +4852,9 @@ const Hu = /* @__PURE__ */ Ee(hu, [["render", Nu]]), Vu = { class: "chart-header
|
|
|
4850
4852
|
uiTable: qs,
|
|
4851
4853
|
uiTabs: Qs,
|
|
4852
4854
|
uiTimeline: gu,
|
|
4853
|
-
uiTopbar:
|
|
4854
|
-
uiFunnelChart:
|
|
4855
|
-
}, Et =
|
|
4855
|
+
uiTopbar: Yu,
|
|
4856
|
+
uiFunnelChart: Ju
|
|
4857
|
+
}, Et = Gu, nd = {
|
|
4856
4858
|
install(e) {
|
|
4857
4859
|
Object.keys(Et).forEach((t) => {
|
|
4858
4860
|
e.component(t, Et[t]);
|
|
@@ -4860,5 +4862,5 @@ const Hu = /* @__PURE__ */ Ee(hu, [["render", Nu]]), Vu = { class: "chart-header
|
|
|
4860
4862
|
}
|
|
4861
4863
|
};
|
|
4862
4864
|
export {
|
|
4863
|
-
|
|
4865
|
+
nd as default
|
|
4864
4866
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hotelinking/ui",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.30.
|
|
4
|
+
"version": "1.30.4",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/ui.cjs.js",
|
|
7
7
|
"module": "dist/ui.es.js",
|
|
@@ -64,4 +64,4 @@
|
|
|
64
64
|
"vue3-apexcharts": "^1.4.1",
|
|
65
65
|
"vue3-funnel-graph-js": "^0.0.3"
|
|
66
66
|
}
|
|
67
|
-
}
|
|
67
|
+
}
|