caplink-saas-ui-shared-component-library 0.4.2 → 0.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +780 -777
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +7 -7
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode('*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:var(--font-sans),ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){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,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;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{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-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,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}:root{--background: 0 0% 100%;--foreground: 240 10% 3.9%;--card: 0 0% 100%;--card-foreground: 240 10% 3.9%;--popover: 0 0% 100%;--popover-foreground: 240 10% 3.9%;--primary: 240 5.9% 10%;--primary-foreground: 0 0% 98%;--secondary: 240 4.8% 95.9%;--secondary-foreground: 240 5.9% 10%;--muted: 240 4.8% 95.9%;--muted-foreground: 240 3.8% 46.1%;--accent: 240 4.8% 95.9%;--accent-foreground: 240 5.9% 10%;--destructive: 0 84.2% 60.2%;--destructive-foreground: 0 0% 98%;--border: 240 5.9% 90%;--input: 240 5.9% 90%;--ring: 240 5.9% 10%;--radius: .5rem}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground));font-feature-settings:"rlig" 1,"calt" 1}*,:before,:after{--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: rgb(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: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::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: rgb(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: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.sl-pointer-events-none{pointer-events:none}.sl-pointer-events-auto{pointer-events:auto}.sl-fixed{position:fixed}.sl-absolute{position:absolute}.sl-relative{position:relative}.sl-sticky{position:sticky}.-sl-left-0{left:-0px}.-sl-left-0\\.5{left:-.125rem}.-sl-right-\\[3px\\]{right:-3px}.-sl-top-0{top:-0px}.-sl-top-0\\.5{top:-.125rem}.-sl-top-1{top:-.25rem}.-sl-top-4{top:-1rem}.sl-bottom-0{bottom:0}.sl-left-0{left:0}.sl-left-2{left:.5rem}.sl-left-2\\.5{left:.625rem}.sl-right-2{right:.5rem}.sl-right-2\\.5{right:.625rem}.sl-right-4{right:1rem}.sl-top-0{top:0}.sl-top-1\\/2{top:50%}.sl-top-4{top:1rem}.sl-top-\\[58px\\]{top:58px}.sl-z-0{z-index:0}.sl-z-40{z-index:40}.sl-z-50{z-index:50}.sl-z-\\[100\\]{z-index:100}.-sl-mx-1{margin-left:-.25rem;margin-right:-.25rem}.sl-my-1{margin-top:.25rem;margin-bottom:.25rem}.sl-mb-2{margin-bottom:.5rem}.sl-ml-2{margin-left:.5rem}.sl-ml-auto{margin-left:auto}.sl-mr-1{margin-right:.25rem}.sl-mr-2{margin-right:.5rem}.sl-mt-0{margin-top:0}.sl-mt-0\\.5{margin-top:.125rem}.sl-mt-1{margin-top:.25rem}.sl-mt-\\[calc\\(28px\\+36px\\)\\]{margin-top:64px}.sl-line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.sl-line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.sl-flex{display:flex}.sl-inline-flex{display:inline-flex}.sl-hidden{display:none}.sl-h-10{height:2.5rem}.sl-h-3{height:.75rem}.sl-h-3\\.5{height:.875rem}.sl-h-4{height:1rem}.sl-h-5{height:1.25rem}.sl-h-7{height:1.75rem}.sl-h-8{height:2rem}.sl-h-9{height:2.25rem}.sl-h-\\[34px\\]{height:34px}.sl-h-\\[calc\\(100\\%-28px-28px\\)\\]{height:calc(100% - 56px)}.sl-h-\\[var\\(--radix-select-trigger-height\\)\\]{height:var(--radix-select-trigger-height)}.sl-h-fit{height:fit-content}.sl-h-full{height:100%}.sl-h-px{height:1px}.sl-h-screen{height:100vh}.sl-max-h-96{max-height:24rem}.sl-max-h-\\[80\\%\\]{max-height:80%}.sl-min-h-\\[24px\\]{min-height:24px}.sl-w-1{width:.25rem}.sl-w-1\\.5{width:.375rem}.sl-w-1\\/2{width:50%}.sl-w-12{width:3rem}.sl-w-3{width:.75rem}.sl-w-3\\.5{width:.875rem}.sl-w-32{width:8rem}.sl-w-4{width:1rem}.sl-w-5{width:1.25rem}.sl-w-56{width:14rem}.sl-w-9{width:2.25rem}.sl-w-fit{width:fit-content}.sl-w-full{width:100%}.sl-w-screen{width:100vw}.sl-min-w-\\[8rem\\]{min-width:8rem}.sl-min-w-\\[var\\(--radix-select-trigger-width\\)\\]{min-width:var(--radix-select-trigger-width)}.sl-max-w-\\[220px\\]{max-width:220px}.sl-max-w-\\[240px\\]{max-width:240px}.sl-max-w-\\[80\\%\\]{max-width:80%}.sl-shrink-0{flex-shrink:0}.-sl-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes sl-spin{to{transform:rotate(360deg)}}.sl-animate-spin{animation:sl-spin 1s linear infinite}.sl-cursor-col-resize{cursor:col-resize}.sl-cursor-default{cursor:default}.sl-cursor-not-allowed{cursor:not-allowed}.sl-cursor-pointer{cursor:pointer}.sl-select-none{user-select:none}.sl-resize-none{resize:none}.sl-flex-col{flex-direction:column}.sl-flex-wrap{flex-wrap:wrap}.sl-items-center{align-items:center}.sl-justify-start{justify-content:flex-start}.sl-justify-end{justify-content:flex-end}.sl-justify-center{justify-content:center}.sl-justify-between{justify-content:space-between}.sl-gap-1{gap:.25rem}.sl-gap-2{gap:.5rem}.sl-gap-4{gap:1rem}.sl-gap-x-2{column-gap:.5rem}.sl-gap-y-1{row-gap:.25rem}.sl-overflow-hidden{overflow:hidden}.sl-overflow-y-clip{overflow-y:clip}.sl-overflow-x-scroll{overflow-x:scroll}.sl-overflow-ellipsis{text-overflow:ellipsis}.sl-whitespace-nowrap{white-space:nowrap}.sl-text-wrap{text-wrap:wrap}.sl-break-words{overflow-wrap:break-word}.sl-break-all{word-break:break-all}.sl-rounded-full{border-radius:9999px}.sl-rounded-md{border-radius:4px}.sl-rounded-none{border-radius:0}.sl-rounded-sm{border-radius:2px}.sl-rounded-t-lg{border-top-left-radius:8px;border-top-right-radius:8px}.sl-border{border-width:1px}.sl-border-b{border-bottom-width:1px}.sl-border-b-0{border-bottom-width:0px}.sl-border-l{border-left-width:1px}.sl-border-l-0{border-left-width:0px}.sl-border-r{border-right-width:1px}.sl-border-r-0{border-right-width:0px}.sl-border-t{border-top-width:1px}.sl-border-t-0{border-top-width:0px}.sl-border-none{border-style:none}.sl-border-danger-300{--tw-border-opacity: 1;border-color:rgb(211 48 48 / var(--tw-border-opacity))}.sl-border-info-200{--tw-border-opacity: 1;border-color:rgb(99 115 255 / var(--tw-border-opacity))}.sl-border-info-400{--tw-border-opacity: 1;border-color:rgb(0 19 183 / var(--tw-border-opacity))}.sl-border-input{border-color:hsl(var(--input))}.sl-border-primary-100{--tw-border-opacity: 1;border-color:rgb(242 242 252 / var(--tw-border-opacity))}.sl-border-primary-200{--tw-border-opacity: 1;border-color:rgb(220 220 237 / var(--tw-border-opacity))}.sl-border-primary-300{--tw-border-opacity: 1;border-color:rgb(193 193 217 / var(--tw-border-opacity))}.sl-border-primary-700{--tw-border-opacity: 1;border-color:rgb(71 71 114 / var(--tw-border-opacity))}.sl-border-success-300{--tw-border-opacity: 1;border-color:rgb(28 191 102 / var(--tw-border-opacity))}.sl-border-transparent{border-color:transparent}.sl-border-l-transparent{border-left-color:transparent}.sl-border-t-transparent{border-top-color:transparent}.sl-bg-background{background-color:hsl(var(--background))}.sl-bg-blue-400{--tw-bg-opacity: 1;background-color:rgb(96 165 250 / var(--tw-bg-opacity))}.sl-bg-destructive{background-color:hsl(var(--destructive))}.sl-bg-info-100{--tw-bg-opacity: 1;background-color:rgb(225 229 255 / var(--tw-bg-opacity))}.sl-bg-info-300{--tw-bg-opacity: 1;background-color:rgb(70 87 225 / var(--tw-bg-opacity))}.sl-bg-info-50{--tw-bg-opacity: 1;background-color:rgb(244 246 255 / var(--tw-bg-opacity))}.sl-bg-muted{background-color:hsl(var(--muted))}.sl-bg-neutral-300{--tw-bg-opacity: 1;background-color:rgb(212 212 212 / var(--tw-bg-opacity))}.sl-bg-neutral-400{--tw-bg-opacity: 1;background-color:rgb(163 163 163 / var(--tw-bg-opacity))}.sl-bg-popover{background-color:hsl(var(--popover))}.sl-bg-primary-100{--tw-bg-opacity: 1;background-color:rgb(242 242 252 / var(--tw-bg-opacity))}.sl-bg-primary-50{--tw-bg-opacity: 1;background-color:rgb(251 251 255 / var(--tw-bg-opacity))}.sl-bg-primary-900{--tw-bg-opacity: 1;background-color:rgb(31 31 62 / var(--tw-bg-opacity))}.sl-bg-secondary{background-color:hsl(var(--secondary))}.sl-bg-transparent{background-color:transparent}.sl-bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.sl-bg-white\\/25{background-color:#ffffff40}.sl-fill-current{fill:currentColor}.sl-object-contain{object-fit:contain}.sl-p-1{padding:.25rem}.sl-p-2{padding:.5rem}.sl-p-4{padding:1rem}.sl-px-2{padding-left:.5rem;padding-right:.5rem}.sl-px-3{padding-left:.75rem;padding-right:.75rem}.sl-px-4{padding-left:1rem;padding-right:1rem}.sl-px-8{padding-left:2rem;padding-right:2rem}.sl-py-1{padding-top:.25rem;padding-bottom:.25rem}.sl-py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.sl-py-2{padding-top:.5rem;padding-bottom:.5rem}.sl-pb-\\[100\\%\\]{padding-bottom:100%}.sl-pl-1{padding-left:.25rem}.sl-pl-2{padding-left:.5rem}.sl-pl-3{padding-left:.75rem}.sl-pl-8{padding-left:2rem}.sl-pr-2{padding-right:.5rem}.sl-pr-3{padding-right:.75rem}.sl-pr-8{padding-right:2rem}.sl-pr-px{padding-right:1px}.sl-text-left{text-align:left}.sl-text-md{font-size:14px;line-height:18px}.sl-text-sm{font-size:12px;line-height:16px}.sl-text-xs{font-size:10px;line-height:14px}.sl-font-bold{font-weight:700}.sl-font-medium{font-weight:500}.sl-font-semibold{font-weight:600}.sl-tracking-widest{letter-spacing:.1em}.sl-text-current{color:currentColor}.sl-text-danger-300{--tw-text-opacity: 1;color:rgb(211 48 48 / var(--tw-text-opacity))}.sl-text-destructive-foreground{color:hsl(var(--destructive-foreground))}.sl-text-info-300{--tw-text-opacity: 1;color:rgb(70 87 225 / var(--tw-text-opacity))}.sl-text-info-400{--tw-text-opacity: 1;color:rgb(0 19 183 / var(--tw-text-opacity))}.sl-text-neutral-500{--tw-text-opacity: 1;color:rgb(115 115 115 / var(--tw-text-opacity))}.sl-text-popover-foreground{color:hsl(var(--popover-foreground))}.sl-text-primary-400{--tw-text-opacity: 1;color:rgb(174 174 206 / var(--tw-text-opacity))}.sl-text-primary-500{--tw-text-opacity: 1;color:rgb(146 146 186 / var(--tw-text-opacity))}.sl-text-primary-600{--tw-text-opacity: 1;color:rgb(99 99 143 / var(--tw-text-opacity))}.sl-text-primary-700{--tw-text-opacity: 1;color:rgb(71 71 114 / var(--tw-text-opacity))}.sl-text-secondary-foreground{color:hsl(var(--secondary-foreground))}.sl-text-success-300{--tw-text-opacity: 1;color:rgb(28 191 102 / var(--tw-text-opacity))}.sl-text-success-400{--tw-text-opacity: 1;color:rgb(25 150 82 / var(--tw-text-opacity))}.sl-text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.sl-underline{text-decoration-line:underline}.sl-underline-offset-4{text-underline-offset:4px}.sl-opacity-0{opacity:0}.sl-opacity-100{opacity:1}.sl-opacity-50{opacity:.5}.sl-opacity-60{opacity:.6}.sl-shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.sl-shadow-lg{--tw-shadow: 0px 8px 8px -4px rgba(16, 24, 40, .03), 0px 20px 24px -6px rgba(16, 24, 40, .08);--tw-shadow-colored: 0px 8px 8px -4px var(--tw-shadow-color), 0px 20px 24px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.sl-shadow-md{--tw-shadow: 0px 4px 6px -2px rgba(16, 24, 40, .03), 0px 12px 16px -4px rgba(16, 24, 40, .08);--tw-shadow-colored: 0px 4px 6px -2px var(--tw-shadow-color), 0px 12px 16px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.sl-shadow-sm{--tw-shadow: 0px 2px 4px -2px rgba(16, 24, 40, .06), 0px 4px 8px -2px rgba(16, 24, 40, .1);--tw-shadow-colored: 0px 2px 4px -2px var(--tw-shadow-color), 0px 4px 8px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.sl-outline-none{outline:2px solid transparent;outline-offset:2px}.sl-outline{outline-style:solid}.sl-outline-sky-100{outline-color:#e0f2fe}.sl-ring-offset-background{--tw-ring-offset-color: hsl(var(--background))}.sl-drop-shadow-md{--tw-drop-shadow: drop-shadow(0 4px 3px rgb(0 0 0 / .07)) drop-shadow(0 2px 2px rgb(0 0 0 / .06));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)}.sl-backdrop-blur-sm{--tw-backdrop-blur: blur(4px);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.sl-transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.sl-transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.sl-ease-linear{transition-timing-function:linear}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.sl-animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.sl-fade-in-0{--tw-enter-opacity: 0}.sl-zoom-in-95{--tw-enter-scale: .95}.sl-ease-linear{animation-timing-function:linear}*{position:relative;font-family:Inter,sans-serif;font-weight:400}h1,h2,h3,h4,h5{font-family:SF Pro Display,sans-serif}.file\\:sl-border-0::file-selector-button{border-width:0px}.file\\:sl-bg-transparent::file-selector-button{background-color:transparent}.file\\:sl-text-sm::file-selector-button{font-size:12px;line-height:16px}.file\\:sl-font-medium::file-selector-button{font-weight:500}.placeholder\\:sl-text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.hover\\:sl-border-primary-500:hover{--tw-border-opacity: 1;border-color:rgb(146 146 186 / var(--tw-border-opacity))}.hover\\:sl-bg-accent:hover{background-color:hsl(var(--accent))}.hover\\:sl-bg-danger-50:hover{--tw-bg-opacity: 1;background-color:rgb(255 246 246 / var(--tw-bg-opacity))}.hover\\:sl-bg-destructive\\/90:hover{background-color:hsl(var(--destructive) / .9)}.hover\\:sl-bg-info-50:hover{--tw-bg-opacity: 1;background-color:rgb(244 246 255 / var(--tw-bg-opacity))}.hover\\:sl-bg-secondary\\/80:hover{background-color:hsl(var(--secondary) / .8)}.hover\\:sl-text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\\:sl-text-danger-400:hover{--tw-text-opacity: 1;color:rgb(156 19 19 / var(--tw-text-opacity))}.hover\\:sl-text-info-400:hover{--tw-text-opacity: 1;color:rgb(0 19 183 / var(--tw-text-opacity))}.hover\\:sl-underline:hover{text-decoration-line:underline}.hover\\:sl-opacity-100:hover{opacity:1}.hover\\:sl-shadow-md:hover{--tw-shadow: 0px 4px 6px -2px rgba(16, 24, 40, .03), 0px 12px 16px -4px rgba(16, 24, 40, .08);--tw-shadow-colored: 0px 4px 6px -2px var(--tw-shadow-color), 0px 12px 16px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.focus\\:sl-bg-accent:focus{background-color:hsl(var(--accent))}.focus\\:sl-text-accent-foreground:focus{color:hsl(var(--accent-foreground))}.focus\\:sl-text-primary-900:focus{--tw-text-opacity: 1;color:rgb(31 31 62 / var(--tw-text-opacity))}.focus\\:sl-outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:sl-ring-0: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(0px + 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\\:sl-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);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:sl-ring-ring:focus{--tw-ring-color: hsl(var(--ring))}.focus-visible\\:sl-outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\\:sl-ring-1:focus-visible{--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);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\\:sl-ring-ring:focus-visible{--tw-ring-color: hsl(var(--ring))}.active\\:sl-border-danger-400:active{--tw-border-opacity: 1;border-color:rgb(156 19 19 / var(--tw-border-opacity))}.active\\:sl-border-info-400:active{--tw-border-opacity: 1;border-color:rgb(0 19 183 / var(--tw-border-opacity))}.active\\:sl-bg-danger-50:active{--tw-bg-opacity: 1;background-color:rgb(255 246 246 / var(--tw-bg-opacity))}.active\\:sl-bg-info-50:active{--tw-bg-opacity: 1;background-color:rgb(244 246 255 / var(--tw-bg-opacity))}.active\\:sl-text-danger-400:active{--tw-text-opacity: 1;color:rgb(156 19 19 / var(--tw-text-opacity))}.active\\:sl-text-info-400:active{--tw-text-opacity: 1;color:rgb(0 19 183 / var(--tw-text-opacity))}.disabled\\:sl-pointer-events-none:disabled{pointer-events:none}.disabled\\:sl-cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:sl-border-primary-100:disabled{--tw-border-opacity: 1;border-color:rgb(242 242 252 / var(--tw-border-opacity))}.disabled\\:sl-bg-primary-100:disabled{--tw-bg-opacity: 1;background-color:rgb(242 242 252 / var(--tw-bg-opacity))}.disabled\\:sl-text-primary-500:disabled{--tw-text-opacity: 1;color:rgb(146 146 186 / var(--tw-text-opacity))}.disabled\\:sl-opacity-50:disabled{opacity:.5}.disabled\\:sl-shadow-none:disabled{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.data-\\[disabled\\]\\:sl-pointer-events-none[data-disabled]{pointer-events:none}.data-\\[side\\=bottom\\]\\:sl-translate-y-1[data-side=bottom]{--tw-translate-y: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[side\\=left\\]\\:-sl-translate-x-1[data-side=left]{--tw-translate-x: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[side\\=right\\]\\:sl-translate-x-1[data-side=right]{--tw-translate-x: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[side\\=top\\]\\:-sl-translate-y-1[data-side=top]{--tw-translate-y: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[state\\=closed\\]\\:sl-transform-none[data-state=closed]{transform:none}.data-\\[side\\=bottom\\]\\:sl-animate-none[data-side=bottom],.data-\\[state\\=closed\\]\\:sl-animate-none[data-state=closed]{animation:none}.data-\\[state\\=open\\]\\:sl-bg-accent[data-state=open]{background-color:hsl(var(--accent))}.data-\\[disabled\\]\\:sl-text-primary-500[data-disabled]{--tw-text-opacity: 1;color:rgb(146 146 186 / var(--tw-text-opacity))}.data-\\[disabled\\]\\:sl-opacity-50[data-disabled]{opacity:.5}.data-\\[state\\=closed\\]\\:sl-transition-none[data-state=closed]{transition-property:none}.data-\\[state\\=open\\]\\:sl-animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\\[state\\=closed\\]\\:sl-animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\\[state\\=closed\\]\\:sl-fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\\[state\\=open\\]\\:sl-fade-in-0[data-state=open]{--tw-enter-opacity: 0}.data-\\[state\\=closed\\]\\:sl-zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\\[state\\=open\\]\\:sl-zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\\[side\\=bottom\\]\\:sl-slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\\[side\\=left\\]\\:sl-slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\\[side\\=right\\]\\:sl-slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\\[side\\=top\\]\\:sl-slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.\\[\\&\\>span\\]\\:sl-line-clamp-1>span{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}')),document.head.appendChild(t)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
|
|
2
2
|
import * as B from "react";
|
|
3
|
-
import Ne, { createContext as Bt, useState as
|
|
3
|
+
import Ne, { createContext as Bt, useState as J, useMemo as ve, useCallback as F, useEffect as q, useContext as wn, useRef as K, useReducer as Ds, forwardRef as W, createElement as C, Children as jt, isValidElement as jn, cloneElement as Gr, Fragment as Xt, useLayoutEffect as Yr, useId as tc } from "react";
|
|
4
4
|
import * as nc from "react-dom";
|
|
5
5
|
import rc, { flushSync as As, createPortal as Xr } from "react-dom";
|
|
6
6
|
var Rr = { exports: {} }, on = {};
|
|
@@ -69,16 +69,16 @@ function sc() {
|
|
|
69
69
|
ye.unshift("Warning: " + R), Function.prototype.apply.call(console[x], console, ye);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
var
|
|
73
|
-
|
|
74
|
-
function
|
|
75
|
-
return !!(typeof x == "string" || typeof x == "function" || x === r || x === s || E || x === o || x === l || x === d || T || x === h ||
|
|
72
|
+
var $ = !1, _ = !1, D = !1, T = !1, E = !1, M;
|
|
73
|
+
M = Symbol.for("react.module.reference");
|
|
74
|
+
function k(x) {
|
|
75
|
+
return !!(typeof x == "string" || typeof x == "function" || x === r || x === s || E || x === o || x === l || x === d || T || x === h || $ || _ || D || typeof x == "object" && x !== null && (x.$$typeof === p || x.$$typeof === u || x.$$typeof === a || x.$$typeof === i || x.$$typeof === c || // This needs to include all possible module reference object
|
|
76
76
|
// types supported by any Flight configuration anywhere since
|
|
77
77
|
// we don't know which Flight build this will end up being used
|
|
78
78
|
// with.
|
|
79
|
-
x.$$typeof ===
|
|
79
|
+
x.$$typeof === M || x.getModuleId !== void 0));
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function H(x, R, V) {
|
|
82
82
|
var te = x.displayName;
|
|
83
83
|
if (te)
|
|
84
84
|
return te;
|
|
@@ -118,7 +118,7 @@ function sc() {
|
|
|
118
118
|
var V = x;
|
|
119
119
|
return N(V._context) + ".Provider";
|
|
120
120
|
case c:
|
|
121
|
-
return
|
|
121
|
+
return H(x, x.render, "ForwardRef");
|
|
122
122
|
case u:
|
|
123
123
|
var te = x.displayName || null;
|
|
124
124
|
return te !== null ? te : Q(x.type) || "Memo";
|
|
@@ -133,14 +133,14 @@ function sc() {
|
|
|
133
133
|
}
|
|
134
134
|
return null;
|
|
135
135
|
}
|
|
136
|
-
var G = Object.assign, A = 0,
|
|
136
|
+
var G = Object.assign, A = 0, I, P, ee, S, O, j, Y;
|
|
137
137
|
function le() {
|
|
138
138
|
}
|
|
139
139
|
le.__reactDisabledLog = !0;
|
|
140
140
|
function ae() {
|
|
141
141
|
{
|
|
142
142
|
if (A === 0) {
|
|
143
|
-
|
|
143
|
+
I = console.log, P = console.info, ee = console.warn, S = console.error, O = console.group, j = console.groupCollapsed, Y = console.groupEnd;
|
|
144
144
|
var x = {
|
|
145
145
|
configurable: !0,
|
|
146
146
|
enumerable: !0,
|
|
@@ -170,7 +170,7 @@ function sc() {
|
|
|
170
170
|
};
|
|
171
171
|
Object.defineProperties(console, {
|
|
172
172
|
log: G({}, x, {
|
|
173
|
-
value:
|
|
173
|
+
value: I
|
|
174
174
|
}),
|
|
175
175
|
info: G({}, x, {
|
|
176
176
|
value: P
|
|
@@ -182,7 +182,7 @@ function sc() {
|
|
|
182
182
|
value: S
|
|
183
183
|
}),
|
|
184
184
|
group: G({}, x, {
|
|
185
|
-
value:
|
|
185
|
+
value: O
|
|
186
186
|
}),
|
|
187
187
|
groupCollapsed: G({}, x, {
|
|
188
188
|
value: j
|
|
@@ -583,7 +583,7 @@ Check the top-level render call using <` + V + ">.");
|
|
|
583
583
|
var Lo = {};
|
|
584
584
|
function Fo(x, R, V, te, xe, ye) {
|
|
585
585
|
{
|
|
586
|
-
var pe =
|
|
586
|
+
var pe = k(x);
|
|
587
587
|
if (!pe) {
|
|
588
588
|
var ue = "";
|
|
589
589
|
(x === void 0 || typeof x == "object" && x !== null && Object.keys(x).length === 0) && (ue += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
@@ -960,7 +960,7 @@ function Ac(e) {
|
|
|
960
960
|
return Ec.test(e);
|
|
961
961
|
}
|
|
962
962
|
function Uo() {
|
|
963
|
-
const e = Ce("colors"), t = Ce("spacing"), n = Ce("blur"), r = Ce("brightness"), o = Ce("borderColor"), s = Ce("borderRadius"), a = Ce("borderSpacing"), i = Ce("borderWidth"), c = Ce("contrast"), l = Ce("grayscale"), d = Ce("hueRotate"), u = Ce("invert"), p = Ce("gap"), h = Ce("gradientColorStops"), f = Ce("gradientColorStopPositions"), m = Ce("inset"), w = Ce("margin"), b = Ce("opacity"), g = Ce("padding"), y = Ce("saturate"),
|
|
963
|
+
const e = Ce("colors"), t = Ce("spacing"), n = Ce("blur"), r = Ce("brightness"), o = Ce("borderColor"), s = Ce("borderRadius"), a = Ce("borderSpacing"), i = Ce("borderWidth"), c = Ce("contrast"), l = Ce("grayscale"), d = Ce("hueRotate"), u = Ce("invert"), p = Ce("gap"), h = Ce("gradientColorStops"), f = Ce("gradientColorStopPositions"), m = Ce("inset"), w = Ce("margin"), b = Ce("opacity"), g = Ce("padding"), y = Ce("saturate"), $ = Ce("scale"), _ = Ce("sepia"), D = Ce("skew"), T = Ce("space"), E = Ce("translate"), M = () => ["auto", "contain", "none"], k = () => ["auto", "hidden", "clip", "visible", "scroll"], H = () => ["auto", ie, t], N = () => [ie, t], Q = () => ["", Qe, it], G = () => ["auto", Et, ie], A = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], I = () => ["solid", "dashed", "dotted", "double", "none"], P = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], ee = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], S = () => ["", "0", ie], O = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], j = () => [Et, Cn], Y = () => [Et, ie];
|
|
964
964
|
return {
|
|
965
965
|
cacheSize: 500,
|
|
966
966
|
separator: ":",
|
|
@@ -980,8 +980,8 @@ function Uo() {
|
|
|
980
980
|
gap: N(),
|
|
981
981
|
gradientColorStops: [e],
|
|
982
982
|
gradientColorStopPositions: [_c, it],
|
|
983
|
-
inset:
|
|
984
|
-
margin:
|
|
983
|
+
inset: H(),
|
|
984
|
+
margin: H(),
|
|
985
985
|
opacity: j(),
|
|
986
986
|
padding: N(),
|
|
987
987
|
saturate: j(),
|
|
@@ -1017,14 +1017,14 @@ function Uo() {
|
|
|
1017
1017
|
* @see https://tailwindcss.com/docs/break-after
|
|
1018
1018
|
*/
|
|
1019
1019
|
"break-after": [{
|
|
1020
|
-
"break-after":
|
|
1020
|
+
"break-after": O()
|
|
1021
1021
|
}],
|
|
1022
1022
|
/**
|
|
1023
1023
|
* Break Before
|
|
1024
1024
|
* @see https://tailwindcss.com/docs/break-before
|
|
1025
1025
|
*/
|
|
1026
1026
|
"break-before": [{
|
|
1027
|
-
"break-before":
|
|
1027
|
+
"break-before": O()
|
|
1028
1028
|
}],
|
|
1029
1029
|
/**
|
|
1030
1030
|
* Break Inside
|
|
@@ -1090,42 +1090,42 @@ function Uo() {
|
|
|
1090
1090
|
* @see https://tailwindcss.com/docs/overflow
|
|
1091
1091
|
*/
|
|
1092
1092
|
overflow: [{
|
|
1093
|
-
overflow:
|
|
1093
|
+
overflow: k()
|
|
1094
1094
|
}],
|
|
1095
1095
|
/**
|
|
1096
1096
|
* Overflow X
|
|
1097
1097
|
* @see https://tailwindcss.com/docs/overflow
|
|
1098
1098
|
*/
|
|
1099
1099
|
"overflow-x": [{
|
|
1100
|
-
"overflow-x":
|
|
1100
|
+
"overflow-x": k()
|
|
1101
1101
|
}],
|
|
1102
1102
|
/**
|
|
1103
1103
|
* Overflow Y
|
|
1104
1104
|
* @see https://tailwindcss.com/docs/overflow
|
|
1105
1105
|
*/
|
|
1106
1106
|
"overflow-y": [{
|
|
1107
|
-
"overflow-y":
|
|
1107
|
+
"overflow-y": k()
|
|
1108
1108
|
}],
|
|
1109
1109
|
/**
|
|
1110
1110
|
* Overscroll Behavior
|
|
1111
1111
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
1112
1112
|
*/
|
|
1113
1113
|
overscroll: [{
|
|
1114
|
-
overscroll:
|
|
1114
|
+
overscroll: M()
|
|
1115
1115
|
}],
|
|
1116
1116
|
/**
|
|
1117
1117
|
* Overscroll Behavior X
|
|
1118
1118
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
1119
1119
|
*/
|
|
1120
1120
|
"overscroll-x": [{
|
|
1121
|
-
"overscroll-x":
|
|
1121
|
+
"overscroll-x": M()
|
|
1122
1122
|
}],
|
|
1123
1123
|
/**
|
|
1124
1124
|
* Overscroll Behavior Y
|
|
1125
1125
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
1126
1126
|
*/
|
|
1127
1127
|
"overscroll-y": [{
|
|
1128
|
-
"overscroll-y":
|
|
1128
|
+
"overscroll-y": M()
|
|
1129
1129
|
}],
|
|
1130
1130
|
/**
|
|
1131
1131
|
* Position
|
|
@@ -1213,7 +1213,7 @@ function Uo() {
|
|
|
1213
1213
|
* @see https://tailwindcss.com/docs/flex-basis
|
|
1214
1214
|
*/
|
|
1215
1215
|
basis: [{
|
|
1216
|
-
basis:
|
|
1216
|
+
basis: H()
|
|
1217
1217
|
}],
|
|
1218
1218
|
/**
|
|
1219
1219
|
* Flex Direction
|
|
@@ -1775,7 +1775,7 @@ function Uo() {
|
|
|
1775
1775
|
* @see https://tailwindcss.com/docs/text-decoration-style
|
|
1776
1776
|
*/
|
|
1777
1777
|
"text-decoration-style": [{
|
|
1778
|
-
decoration: [...
|
|
1778
|
+
decoration: [...I(), "wavy"]
|
|
1779
1779
|
}],
|
|
1780
1780
|
/**
|
|
1781
1781
|
* Text Decoration Thickness
|
|
@@ -2149,7 +2149,7 @@ function Uo() {
|
|
|
2149
2149
|
* @see https://tailwindcss.com/docs/border-style
|
|
2150
2150
|
*/
|
|
2151
2151
|
"border-style": [{
|
|
2152
|
-
border: [...
|
|
2152
|
+
border: [...I(), "hidden"]
|
|
2153
2153
|
}],
|
|
2154
2154
|
/**
|
|
2155
2155
|
* Divide Width X
|
|
@@ -2187,7 +2187,7 @@ function Uo() {
|
|
|
2187
2187
|
* @see https://tailwindcss.com/docs/divide-style
|
|
2188
2188
|
*/
|
|
2189
2189
|
"divide-style": [{
|
|
2190
|
-
divide:
|
|
2190
|
+
divide: I()
|
|
2191
2191
|
}],
|
|
2192
2192
|
/**
|
|
2193
2193
|
* Border Color
|
|
@@ -2250,7 +2250,7 @@ function Uo() {
|
|
|
2250
2250
|
* @see https://tailwindcss.com/docs/outline-style
|
|
2251
2251
|
*/
|
|
2252
2252
|
"outline-style": [{
|
|
2253
|
-
outline: ["", ...
|
|
2253
|
+
outline: ["", ...I()]
|
|
2254
2254
|
}],
|
|
2255
2255
|
/**
|
|
2256
2256
|
* Outline Offset
|
|
@@ -2584,21 +2584,21 @@ function Uo() {
|
|
|
2584
2584
|
* @see https://tailwindcss.com/docs/scale
|
|
2585
2585
|
*/
|
|
2586
2586
|
scale: [{
|
|
2587
|
-
scale: [
|
|
2587
|
+
scale: [$]
|
|
2588
2588
|
}],
|
|
2589
2589
|
/**
|
|
2590
2590
|
* Scale X
|
|
2591
2591
|
* @see https://tailwindcss.com/docs/scale
|
|
2592
2592
|
*/
|
|
2593
2593
|
"scale-x": [{
|
|
2594
|
-
"scale-x": [
|
|
2594
|
+
"scale-x": [$]
|
|
2595
2595
|
}],
|
|
2596
2596
|
/**
|
|
2597
2597
|
* Scale Y
|
|
2598
2598
|
* @see https://tailwindcss.com/docs/scale
|
|
2599
2599
|
*/
|
|
2600
2600
|
"scale-y": [{
|
|
2601
|
-
"scale-y": [
|
|
2601
|
+
"scale-y": [$]
|
|
2602
2602
|
}],
|
|
2603
2603
|
/**
|
|
2604
2604
|
* Rotate
|
|
@@ -2626,14 +2626,14 @@ function Uo() {
|
|
|
2626
2626
|
* @see https://tailwindcss.com/docs/skew
|
|
2627
2627
|
*/
|
|
2628
2628
|
"skew-x": [{
|
|
2629
|
-
"skew-x": [
|
|
2629
|
+
"skew-x": [D]
|
|
2630
2630
|
}],
|
|
2631
2631
|
/**
|
|
2632
2632
|
* Skew Y
|
|
2633
2633
|
* @see https://tailwindcss.com/docs/skew
|
|
2634
2634
|
*/
|
|
2635
2635
|
"skew-y": [{
|
|
2636
|
-
"skew-y": [
|
|
2636
|
+
"skew-y": [D]
|
|
2637
2637
|
}],
|
|
2638
2638
|
/**
|
|
2639
2639
|
* Transform Origin
|
|
@@ -3169,17 +3169,17 @@ function Jc(e) {
|
|
|
3169
3169
|
matrix: r = [],
|
|
3170
3170
|
staticRows: o,
|
|
3171
3171
|
onMatrixChange: s
|
|
3172
|
-
} = e, [a, i] =
|
|
3172
|
+
} = e, [a, i] = J(r), c = ve(() => Wc(n), [n]), l = ve(() => Zr(a) || c.length, [a, c.length]), d = ve(() => Nr(a), [a]), u = ve(() => d.rows === 0, [d.rows]), [p, h] = J(c), [f, m] = J([]), [w, b] = J({
|
|
3173
3173
|
height: 0,
|
|
3174
3174
|
width: 0
|
|
3175
|
-
}), [g, y] =
|
|
3175
|
+
}), [g, y] = J(!1), $ = F((S = 2e3) => {
|
|
3176
3176
|
y(!0), gr && clearTimeout(gr), gr = setTimeout(() => y(!1), S);
|
|
3177
3177
|
}, []), _ = ve(
|
|
3178
3178
|
() => !!(f.length && Jr({ matrix: a, pointsRange: f })),
|
|
3179
3179
|
[f, a]
|
|
3180
|
-
),
|
|
3181
|
-
async (S,
|
|
3182
|
-
const j =
|
|
3180
|
+
), D = F(
|
|
3181
|
+
async (S, O) => {
|
|
3182
|
+
const j = O.clipboardData?.getData("text/plain") || "", Y = qc(j);
|
|
3183
3183
|
if (Y.length === 1) {
|
|
3184
3184
|
if (p[S.column].state.readonly)
|
|
3185
3185
|
return;
|
|
@@ -3205,31 +3205,31 @@ function Jc(e) {
|
|
|
3205
3205
|
[p, a, n.length, o, s]
|
|
3206
3206
|
), T = F(
|
|
3207
3207
|
(S) => {
|
|
3208
|
-
const
|
|
3209
|
-
|
|
3208
|
+
const O = a[S.row][S.column];
|
|
3209
|
+
O && navigator.clipboard.writeText(String(O));
|
|
3210
3210
|
},
|
|
3211
3211
|
[a]
|
|
3212
3212
|
), E = F(
|
|
3213
3213
|
(S) => {
|
|
3214
|
-
const { data:
|
|
3215
|
-
ae[le][Y] =
|
|
3214
|
+
const { data: O, point: j } = S, { column: Y, row: le } = j, ae = structuredClone(a);
|
|
3215
|
+
ae[le][Y] = O, i(ae), s?.(ae);
|
|
3216
3216
|
},
|
|
3217
3217
|
[a, s]
|
|
3218
|
-
),
|
|
3218
|
+
), M = F(() => {
|
|
3219
3219
|
if (f && !o) {
|
|
3220
3220
|
const S = f.map((ae) => ({
|
|
3221
3221
|
rowStart: ae.start.row,
|
|
3222
3222
|
rowEnd: ae.end.row,
|
|
3223
3223
|
delta: ae.end.row - ae.start.row + 1
|
|
3224
|
-
})),
|
|
3224
|
+
})), O = S.reduce((ae, { delta: be }) => ae + be, 0);
|
|
3225
3225
|
if (!_)
|
|
3226
3226
|
return;
|
|
3227
3227
|
let j = "";
|
|
3228
|
-
if (
|
|
3228
|
+
if (O === 1) {
|
|
3229
3229
|
const { rowStart: ae } = S[0];
|
|
3230
3230
|
j = `Você irá excluir a linha N° ${ae + 1}, deseja continuar?`;
|
|
3231
3231
|
} else
|
|
3232
|
-
j = `Você irá excluir ${
|
|
3232
|
+
j = `Você irá excluir ${O} linhas, deseja continuar?`;
|
|
3233
3233
|
if (!confirm(j))
|
|
3234
3234
|
return;
|
|
3235
3235
|
const le = a.filter(
|
|
@@ -3237,36 +3237,36 @@ function Jc(e) {
|
|
|
3237
3237
|
);
|
|
3238
3238
|
m([]), i(le), s?.(le);
|
|
3239
3239
|
}
|
|
3240
|
-
}, [a, f, o, _, s]),
|
|
3241
|
-
(S,
|
|
3242
|
-
if (f.length &&
|
|
3240
|
+
}, [a, f, o, _, s]), k = F(
|
|
3241
|
+
(S, O) => {
|
|
3242
|
+
if (f.length && O && O.shiftKey) {
|
|
3243
3243
|
const Y = f[f.length - 1], le = S < Y.start.row ? S : Y.start.row, ae = S < Y.start.row ? Y.start.row : S, be = {
|
|
3244
3244
|
start: { row: le, column: 0 },
|
|
3245
3245
|
end: { row: ae, column: l }
|
|
3246
3246
|
};
|
|
3247
|
-
return
|
|
3247
|
+
return O.ctrlKey || O.metaKey ? m([...f, be]) : m([be]);
|
|
3248
3248
|
}
|
|
3249
3249
|
const j = { start: { row: S, column: 0 }, end: { row: S, column: l } };
|
|
3250
|
-
if (
|
|
3250
|
+
if (O?.ctrlKey || O?.metaKey)
|
|
3251
3251
|
return m([...f, j]);
|
|
3252
3252
|
m([j]);
|
|
3253
3253
|
},
|
|
3254
3254
|
[l, f]
|
|
3255
|
-
),
|
|
3255
|
+
), H = F(
|
|
3256
3256
|
(S) => {
|
|
3257
|
-
f.some((
|
|
3257
|
+
f.some((O) => O.start.row === S.row && O.start.column === 0) || m([{ start: S, end: S }]);
|
|
3258
3258
|
},
|
|
3259
3259
|
[f.some]
|
|
3260
3260
|
), N = F(
|
|
3261
3261
|
(S) => !!(f && Yc(f, S)),
|
|
3262
3262
|
[f]
|
|
3263
3263
|
), Q = F((S) => {
|
|
3264
|
-
const { position:
|
|
3264
|
+
const { position: O, width: j } = S;
|
|
3265
3265
|
let Y = j;
|
|
3266
3266
|
j > zt && (Y = zt), j < Wt && (Y = Wt), h(
|
|
3267
3267
|
(le) => le.map((ae, be) => ({
|
|
3268
3268
|
...ae,
|
|
3269
|
-
state: { ...ae.state, width: be ===
|
|
3269
|
+
state: { ...ae.state, width: be === O ? Y : ae.state.width }
|
|
3270
3270
|
}))
|
|
3271
3271
|
);
|
|
3272
3272
|
}, []), G = F(() => {
|
|
@@ -3274,57 +3274,57 @@ function Jc(e) {
|
|
|
3274
3274
|
return;
|
|
3275
3275
|
const S = [
|
|
3276
3276
|
...structuredClone(a),
|
|
3277
|
-
new Array(l).fill(null).map((
|
|
3277
|
+
new Array(l).fill(null).map((O, j) => {
|
|
3278
3278
|
const { dataEditorType: Y } = p[j];
|
|
3279
3279
|
return Hs.includes(Y) ? 0 : Y === "Boolean" ? !1 : "";
|
|
3280
3280
|
})
|
|
3281
3281
|
];
|
|
3282
|
-
i(S), s?.(S),
|
|
3283
|
-
}, [o, a, p, l,
|
|
3284
|
-
const S = { column: 0, row: 0 },
|
|
3285
|
-
m([{ start: S, end:
|
|
3286
|
-
}, [d]),
|
|
3282
|
+
i(S), s?.(S), $();
|
|
3283
|
+
}, [o, a, p, l, $, s]), A = F(() => {
|
|
3284
|
+
const S = { column: 0, row: 0 }, O = { column: d.columns, row: d.rows - 1 };
|
|
3285
|
+
m([{ start: S, end: O }]);
|
|
3286
|
+
}, [d]), I = F(
|
|
3287
3287
|
(S) => {
|
|
3288
|
-
const { columnId:
|
|
3288
|
+
const { columnId: O, visible: j } = S, Y = (le) => le.id !== O ? le : { ...le, state: { ...le.state, visible: j } };
|
|
3289
3289
|
h((le) => le.map((ae) => Y(ae)));
|
|
3290
3290
|
},
|
|
3291
3291
|
[]
|
|
3292
3292
|
), P = F(() => {
|
|
3293
3293
|
h(
|
|
3294
|
-
(S) => S.map((
|
|
3295
|
-
...
|
|
3296
|
-
state: { ...
|
|
3294
|
+
(S) => S.map((O) => ({
|
|
3295
|
+
...O,
|
|
3296
|
+
state: { ...O.state, visible: !0 }
|
|
3297
3297
|
}))
|
|
3298
3298
|
);
|
|
3299
3299
|
}, []);
|
|
3300
|
-
|
|
3300
|
+
q(() => {
|
|
3301
3301
|
i(r);
|
|
3302
|
-
}, [r]),
|
|
3302
|
+
}, [r]), q(() => {
|
|
3303
3303
|
h(
|
|
3304
|
-
(S) => c.map((
|
|
3305
|
-
...
|
|
3304
|
+
(S) => c.map((O, j) => ({
|
|
3305
|
+
...O,
|
|
3306
3306
|
state: {
|
|
3307
3307
|
visible: S[j].state.visible,
|
|
3308
3308
|
width: S[j].state.width,
|
|
3309
|
-
readonly:
|
|
3309
|
+
readonly: O.state.readonly
|
|
3310
3310
|
}
|
|
3311
3311
|
}))
|
|
3312
3312
|
);
|
|
3313
|
-
}, [c]),
|
|
3313
|
+
}, [c]), q(() => {
|
|
3314
3314
|
if (!f.length || f.length > 1)
|
|
3315
3315
|
return;
|
|
3316
3316
|
const S = f[0];
|
|
3317
3317
|
if (!Gc(S.start, S.end))
|
|
3318
3318
|
return;
|
|
3319
|
-
const
|
|
3320
|
-
|
|
3319
|
+
const O = (Y) => {
|
|
3320
|
+
D(S.start, Y);
|
|
3321
3321
|
}, j = () => {
|
|
3322
3322
|
T(S.start);
|
|
3323
3323
|
};
|
|
3324
|
-
return window.addEventListener("paste",
|
|
3325
|
-
window.removeEventListener("paste",
|
|
3324
|
+
return window.addEventListener("paste", O), window.addEventListener("copy", j), () => {
|
|
3325
|
+
window.removeEventListener("paste", O), window.removeEventListener("copy", j);
|
|
3326
3326
|
};
|
|
3327
|
-
}, [
|
|
3327
|
+
}, [D, T, f]);
|
|
3328
3328
|
const ee = ve(
|
|
3329
3329
|
() => ({
|
|
3330
3330
|
size: d,
|
|
@@ -3338,16 +3338,16 @@ function Jc(e) {
|
|
|
3338
3338
|
setPointsRange: m,
|
|
3339
3339
|
containerDimensions: w,
|
|
3340
3340
|
setContainerDimensions: b,
|
|
3341
|
-
onPaste:
|
|
3341
|
+
onPaste: D,
|
|
3342
3342
|
onChange: E,
|
|
3343
|
-
onRemoveRow:
|
|
3344
|
-
onSelectRow:
|
|
3345
|
-
onSelectCell:
|
|
3343
|
+
onRemoveRow: M,
|
|
3344
|
+
onSelectRow: k,
|
|
3345
|
+
onSelectCell: H,
|
|
3346
3346
|
isCellSelected: N,
|
|
3347
3347
|
onInsertNewRow: G,
|
|
3348
3348
|
onColumnResize: Q,
|
|
3349
3349
|
onSelectSpreadsheet: A,
|
|
3350
|
-
onColumnVisibilityChange:
|
|
3350
|
+
onColumnVisibilityChange: I,
|
|
3351
3351
|
onRestoreColumnsVisibility: P
|
|
3352
3352
|
}),
|
|
3353
3353
|
[
|
|
@@ -3360,16 +3360,16 @@ function Jc(e) {
|
|
|
3360
3360
|
g,
|
|
3361
3361
|
f,
|
|
3362
3362
|
w,
|
|
3363
|
-
|
|
3363
|
+
D,
|
|
3364
3364
|
E,
|
|
3365
|
+
M,
|
|
3365
3366
|
k,
|
|
3366
|
-
|
|
3367
|
-
z,
|
|
3367
|
+
H,
|
|
3368
3368
|
N,
|
|
3369
3369
|
G,
|
|
3370
3370
|
Q,
|
|
3371
3371
|
A,
|
|
3372
|
-
|
|
3372
|
+
I,
|
|
3373
3373
|
P
|
|
3374
3374
|
]
|
|
3375
3375
|
);
|
|
@@ -3670,7 +3670,7 @@ var vl = function() {
|
|
|
3670
3670
|
}();
|
|
3671
3671
|
function gl(e) {
|
|
3672
3672
|
const { children: t, className: n } = e, { size: r, setContainerDimensions: o } = Je(), s = K(null);
|
|
3673
|
-
return
|
|
3673
|
+
return q(() => {
|
|
3674
3674
|
const a = s.current;
|
|
3675
3675
|
if (!a)
|
|
3676
3676
|
return;
|
|
@@ -3714,9 +3714,9 @@ var wl = function(e, t) {
|
|
|
3714
3714
|
}, yl = ["mousedown", "touchstart"], Js = function(e, t, n) {
|
|
3715
3715
|
n === void 0 && (n = yl);
|
|
3716
3716
|
var r = K(t);
|
|
3717
|
-
|
|
3717
|
+
q(function() {
|
|
3718
3718
|
r.current = t;
|
|
3719
|
-
}, [t]),
|
|
3719
|
+
}, [t]), q(function() {
|
|
3720
3720
|
for (var o = function(c) {
|
|
3721
3721
|
var l = e.current;
|
|
3722
3722
|
l && !l.contains(c.target) && r.current(c);
|
|
@@ -3762,30 +3762,30 @@ function Sl(e) {
|
|
|
3762
3762
|
const { className: t, column: n, visible: r, children: o, width: s } = e, { position: a, alphabetLetter: i } = n, { matrix: c, pointsRange: l, containerDimensions: d, onColumnResize: u } = Je(), p = K(null), h = ve(
|
|
3763
3763
|
() => (d?.height || 0) + 32,
|
|
3764
3764
|
[d?.height]
|
|
3765
|
-
), [f, m] =
|
|
3765
|
+
), [f, m] = J(!1), [w, b] = J(0), g = F((T) => {
|
|
3766
3766
|
b(T.clientX), m(!0);
|
|
3767
3767
|
}, []), y = F(
|
|
3768
3768
|
(T) => {
|
|
3769
3769
|
const E = p.current;
|
|
3770
3770
|
if (!E || T.screenX === 0)
|
|
3771
3771
|
return;
|
|
3772
|
-
const
|
|
3773
|
-
let
|
|
3774
|
-
|
|
3772
|
+
const M = T.clientX - w;
|
|
3773
|
+
let k = s + M;
|
|
3774
|
+
k > zt && (k = zt), k < Wt && (k = Wt), E.style.left = `${k}px`;
|
|
3775
3775
|
},
|
|
3776
3776
|
[w, s]
|
|
3777
|
-
),
|
|
3777
|
+
), $ = F(
|
|
3778
3778
|
(T) => {
|
|
3779
|
-
const E = T.clientX - w,
|
|
3780
|
-
u({ width:
|
|
3779
|
+
const E = T.clientX - w, M = s + E;
|
|
3780
|
+
u({ width: M, position: a }), m(!1);
|
|
3781
3781
|
},
|
|
3782
3782
|
[w, s, a, u]
|
|
3783
3783
|
), _ = F(() => {
|
|
3784
3784
|
if (f)
|
|
3785
3785
|
return `bg-neutral-100 font-bold text-neutral-700 ${t}`;
|
|
3786
3786
|
if (l.length && !f) {
|
|
3787
|
-
const T = Jr({ matrix: c, pointsRange: l }), E = l.some(({ start:
|
|
3788
|
-
a >=
|
|
3787
|
+
const T = Jr({ matrix: c, pointsRange: l }), E = l.some(({ start: M, end: k }) => {
|
|
3788
|
+
a >= M.column && a <= k.column;
|
|
3789
3789
|
});
|
|
3790
3790
|
if (T)
|
|
3791
3791
|
return `bg-[#0085FF] font-bold text-white ${t}`;
|
|
@@ -3793,11 +3793,11 @@ function Sl(e) {
|
|
|
3793
3793
|
return `bg-blue-100 font-bold text-blue-700 ${t}`;
|
|
3794
3794
|
}
|
|
3795
3795
|
return t;
|
|
3796
|
-
}, [f, t, c, l, a]),
|
|
3797
|
-
() => ({ onDragStart: g, onDrag: y, onDragEnd:
|
|
3798
|
-
[g, y,
|
|
3796
|
+
}, [f, t, c, l, a]), D = ve(
|
|
3797
|
+
() => ({ onDragStart: g, onDrag: y, onDragEnd: $ }),
|
|
3798
|
+
[g, y, $]
|
|
3799
3799
|
);
|
|
3800
|
-
return
|
|
3800
|
+
return q(() => {
|
|
3801
3801
|
const T = p.current;
|
|
3802
3802
|
T && (T.style.left = `${s}px`);
|
|
3803
3803
|
}, [s]), r ? /* @__PURE__ */ v.jsxs(
|
|
@@ -3812,7 +3812,7 @@ function Sl(e) {
|
|
|
3812
3812
|
/* @__PURE__ */ v.jsx(
|
|
3813
3813
|
Cl,
|
|
3814
3814
|
{
|
|
3815
|
-
...
|
|
3815
|
+
...D,
|
|
3816
3816
|
className: ne(
|
|
3817
3817
|
"-sl-right-[3px] -sl-top-1 sl-absolute sl-z-50 sl-opacity-0 hover:sl-opacity-100",
|
|
3818
3818
|
f && "sl-opacity-0"
|
|
@@ -3843,9 +3843,9 @@ function yt(e, t) {
|
|
|
3843
3843
|
o = r[s], !(t.indexOf(o) >= 0) && (n[o] = e[o]);
|
|
3844
3844
|
return n;
|
|
3845
3845
|
}
|
|
3846
|
-
var El = ["color"], Qr = /* @__PURE__ */
|
|
3846
|
+
var El = ["color"], Qr = /* @__PURE__ */ W(function(e, t) {
|
|
3847
3847
|
var n = e.color, r = n === void 0 ? "currentColor" : n, o = yt(e, El);
|
|
3848
|
-
return
|
|
3848
|
+
return C("svg", Object.assign({
|
|
3849
3849
|
width: "15",
|
|
3850
3850
|
height: "15",
|
|
3851
3851
|
viewBox: "0 0 15 15",
|
|
@@ -3853,15 +3853,15 @@ var El = ["color"], Qr = /* @__PURE__ */ H(function(e, t) {
|
|
|
3853
3853
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3854
3854
|
}, o, {
|
|
3855
3855
|
ref: t
|
|
3856
|
-
}),
|
|
3856
|
+
}), C("path", {
|
|
3857
3857
|
d: "M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",
|
|
3858
3858
|
fill: r,
|
|
3859
3859
|
fillRule: "evenodd",
|
|
3860
3860
|
clipRule: "evenodd"
|
|
3861
3861
|
}));
|
|
3862
|
-
}), _l = ["color"], Qs = /* @__PURE__ */
|
|
3862
|
+
}), _l = ["color"], Qs = /* @__PURE__ */ W(function(e, t) {
|
|
3863
3863
|
var n = e.color, r = n === void 0 ? "currentColor" : n, o = yt(e, _l);
|
|
3864
|
-
return
|
|
3864
|
+
return C("svg", Object.assign({
|
|
3865
3865
|
width: "15",
|
|
3866
3866
|
height: "15",
|
|
3867
3867
|
viewBox: "0 0 15 15",
|
|
@@ -3869,15 +3869,15 @@ var El = ["color"], Qr = /* @__PURE__ */ H(function(e, t) {
|
|
|
3869
3869
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3870
3870
|
}, o, {
|
|
3871
3871
|
ref: t
|
|
3872
|
-
}),
|
|
3872
|
+
}), C("path", {
|
|
3873
3873
|
d: "M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",
|
|
3874
3874
|
fill: r,
|
|
3875
3875
|
fillRule: "evenodd",
|
|
3876
3876
|
clipRule: "evenodd"
|
|
3877
3877
|
}));
|
|
3878
|
-
}), Tl = ["color"], Rl = /* @__PURE__ */
|
|
3878
|
+
}), Tl = ["color"], Rl = /* @__PURE__ */ W(function(e, t) {
|
|
3879
3879
|
var n = e.color, r = n === void 0 ? "currentColor" : n, o = yt(e, Tl);
|
|
3880
|
-
return
|
|
3880
|
+
return C("svg", Object.assign({
|
|
3881
3881
|
width: "15",
|
|
3882
3882
|
height: "15",
|
|
3883
3883
|
viewBox: "0 0 15 15",
|
|
@@ -3885,15 +3885,15 @@ var El = ["color"], Qr = /* @__PURE__ */ H(function(e, t) {
|
|
|
3885
3885
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3886
3886
|
}, o, {
|
|
3887
3887
|
ref: t
|
|
3888
|
-
}),
|
|
3888
|
+
}), C("path", {
|
|
3889
3889
|
d: "M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",
|
|
3890
3890
|
fill: r,
|
|
3891
3891
|
fillRule: "evenodd",
|
|
3892
3892
|
clipRule: "evenodd"
|
|
3893
3893
|
}));
|
|
3894
|
-
}), Pl = ["color"], Ol = /* @__PURE__ */
|
|
3894
|
+
}), Pl = ["color"], Ol = /* @__PURE__ */ W(function(e, t) {
|
|
3895
3895
|
var n = e.color, r = n === void 0 ? "currentColor" : n, o = yt(e, Pl);
|
|
3896
|
-
return
|
|
3896
|
+
return C("svg", Object.assign({
|
|
3897
3897
|
width: "15",
|
|
3898
3898
|
height: "15",
|
|
3899
3899
|
viewBox: "0 0 15 15",
|
|
@@ -3901,15 +3901,15 @@ var El = ["color"], Qr = /* @__PURE__ */ H(function(e, t) {
|
|
|
3901
3901
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3902
3902
|
}, o, {
|
|
3903
3903
|
ref: t
|
|
3904
|
-
}),
|
|
3904
|
+
}), C("path", {
|
|
3905
3905
|
d: "M6.1584 3.13508C6.35985 2.94621 6.67627 2.95642 6.86514 3.15788L10.6151 7.15788C10.7954 7.3502 10.7954 7.64949 10.6151 7.84182L6.86514 11.8418C6.67627 12.0433 6.35985 12.0535 6.1584 11.8646C5.95694 11.6757 5.94673 11.3593 6.1356 11.1579L9.565 7.49985L6.1356 3.84182C5.94673 3.64036 5.95694 3.32394 6.1584 3.13508Z",
|
|
3906
3906
|
fill: r,
|
|
3907
3907
|
fillRule: "evenodd",
|
|
3908
3908
|
clipRule: "evenodd"
|
|
3909
3909
|
}));
|
|
3910
|
-
}), Nl = ["color"], Il = /* @__PURE__ */
|
|
3910
|
+
}), Nl = ["color"], Il = /* @__PURE__ */ W(function(e, t) {
|
|
3911
3911
|
var n = e.color, r = n === void 0 ? "currentColor" : n, o = yt(e, Nl);
|
|
3912
|
-
return
|
|
3912
|
+
return C("svg", Object.assign({
|
|
3913
3913
|
width: "15",
|
|
3914
3914
|
height: "15",
|
|
3915
3915
|
viewBox: "0 0 15 15",
|
|
@@ -3917,15 +3917,15 @@ var El = ["color"], Qr = /* @__PURE__ */ H(function(e, t) {
|
|
|
3917
3917
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3918
3918
|
}, o, {
|
|
3919
3919
|
ref: t
|
|
3920
|
-
}),
|
|
3920
|
+
}), C("path", {
|
|
3921
3921
|
d: "M3.13523 8.84197C3.3241 9.04343 3.64052 9.05363 3.84197 8.86477L7.5 5.43536L11.158 8.86477C11.3595 9.05363 11.6759 9.04343 11.8648 8.84197C12.0536 8.64051 12.0434 8.32409 11.842 8.13523L7.84197 4.38523C7.64964 4.20492 7.35036 4.20492 7.15803 4.38523L3.15803 8.13523C2.95657 8.32409 2.94637 8.64051 3.13523 8.84197Z",
|
|
3922
3922
|
fill: r,
|
|
3923
3923
|
fillRule: "evenodd",
|
|
3924
3924
|
clipRule: "evenodd"
|
|
3925
3925
|
}));
|
|
3926
|
-
}), Ml = ["color"], Dl = /* @__PURE__ */
|
|
3926
|
+
}), Ml = ["color"], Dl = /* @__PURE__ */ W(function(e, t) {
|
|
3927
3927
|
var n = e.color, r = n === void 0 ? "currentColor" : n, o = yt(e, Ml);
|
|
3928
|
-
return
|
|
3928
|
+
return C("svg", Object.assign({
|
|
3929
3929
|
width: "15",
|
|
3930
3930
|
height: "15",
|
|
3931
3931
|
viewBox: "0 0 15 15",
|
|
@@ -3933,13 +3933,13 @@ var El = ["color"], Qr = /* @__PURE__ */ H(function(e, t) {
|
|
|
3933
3933
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3934
3934
|
}, o, {
|
|
3935
3935
|
ref: t
|
|
3936
|
-
}),
|
|
3936
|
+
}), C("path", {
|
|
3937
3937
|
d: "M9.875 7.5C9.875 8.81168 8.81168 9.875 7.5 9.875C6.18832 9.875 5.125 8.81168 5.125 7.5C5.125 6.18832 6.18832 5.125 7.5 5.125C8.81168 5.125 9.875 6.18832 9.875 7.5Z",
|
|
3938
3938
|
fill: r
|
|
3939
3939
|
}));
|
|
3940
|
-
}), Al = ["color"], kl = /* @__PURE__ */
|
|
3940
|
+
}), Al = ["color"], kl = /* @__PURE__ */ W(function(e, t) {
|
|
3941
3941
|
var n = e.color, r = n === void 0 ? "currentColor" : n, o = yt(e, Al);
|
|
3942
|
-
return
|
|
3942
|
+
return C("svg", Object.assign({
|
|
3943
3943
|
width: "15",
|
|
3944
3944
|
height: "15",
|
|
3945
3945
|
viewBox: "0 0 15 15",
|
|
@@ -3947,15 +3947,15 @@ var El = ["color"], Qr = /* @__PURE__ */ H(function(e, t) {
|
|
|
3947
3947
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3948
3948
|
}, o, {
|
|
3949
3949
|
ref: t
|
|
3950
|
-
}),
|
|
3950
|
+
}), C("path", {
|
|
3951
3951
|
d: "M0.877075 7.49972C0.877075 3.84204 3.84222 0.876892 7.49991 0.876892C11.1576 0.876892 14.1227 3.84204 14.1227 7.49972C14.1227 11.1574 11.1576 14.1226 7.49991 14.1226C3.84222 14.1226 0.877075 11.1574 0.877075 7.49972ZM7.49991 1.82689C4.36689 1.82689 1.82708 4.36671 1.82708 7.49972C1.82708 10.6327 4.36689 13.1726 7.49991 13.1726C10.6329 13.1726 13.1727 10.6327 13.1727 7.49972C13.1727 4.36671 10.6329 1.82689 7.49991 1.82689ZM8.24993 10.5C8.24993 10.9142 7.91414 11.25 7.49993 11.25C7.08571 11.25 6.74993 10.9142 6.74993 10.5C6.74993 10.0858 7.08571 9.75 7.49993 9.75C7.91414 9.75 8.24993 10.0858 8.24993 10.5ZM6.05003 6.25C6.05003 5.57211 6.63511 4.925 7.50003 4.925C8.36496 4.925 8.95003 5.57211 8.95003 6.25C8.95003 6.74118 8.68002 6.99212 8.21447 7.27494C8.16251 7.30651 8.10258 7.34131 8.03847 7.37854L8.03841 7.37858C7.85521 7.48497 7.63788 7.61119 7.47449 7.73849C7.23214 7.92732 6.95003 8.23198 6.95003 8.7C6.95004 9.00376 7.19628 9.25 7.50004 9.25C7.8024 9.25 8.04778 9.00601 8.05002 8.70417L8.05056 8.7033C8.05924 8.6896 8.08493 8.65735 8.15058 8.6062C8.25207 8.52712 8.36508 8.46163 8.51567 8.37436L8.51571 8.37433C8.59422 8.32883 8.68296 8.27741 8.78559 8.21506C9.32004 7.89038 10.05 7.35382 10.05 6.25C10.05 4.92789 8.93511 3.825 7.50003 3.825C6.06496 3.825 4.95003 4.92789 4.95003 6.25C4.95003 6.55376 5.19628 6.8 5.50003 6.8C5.80379 6.8 6.05003 6.55376 6.05003 6.25Z",
|
|
3952
3952
|
fill: r,
|
|
3953
3953
|
fillRule: "evenodd",
|
|
3954
3954
|
clipRule: "evenodd"
|
|
3955
3955
|
}));
|
|
3956
|
-
}), jl = ["color"], Ll = /* @__PURE__ */
|
|
3956
|
+
}), jl = ["color"], Ll = /* @__PURE__ */ W(function(e, t) {
|
|
3957
3957
|
var n = e.color, r = n === void 0 ? "currentColor" : n, o = yt(e, jl);
|
|
3958
|
-
return
|
|
3958
|
+
return C("svg", Object.assign({
|
|
3959
3959
|
width: "15",
|
|
3960
3960
|
height: "15",
|
|
3961
3961
|
viewBox: "0 0 15 15",
|
|
@@ -3963,7 +3963,7 @@ var El = ["color"], Qr = /* @__PURE__ */ H(function(e, t) {
|
|
|
3963
3963
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3964
3964
|
}, o, {
|
|
3965
3965
|
ref: t
|
|
3966
|
-
}),
|
|
3966
|
+
}), C("path", {
|
|
3967
3967
|
d: "M3.94993 2.95002L3.94993 4.49998C3.94993 4.74851 3.74845 4.94998 3.49993 4.94998C3.2514 4.94998 3.04993 4.74851 3.04993 4.49998V2.50004C3.04993 2.45246 3.05731 2.40661 3.07099 2.36357C3.12878 2.18175 3.29897 2.05002 3.49993 2.05002H11.4999C11.6553 2.05002 11.7922 2.12872 11.8731 2.24842C11.9216 2.32024 11.9499 2.40682 11.9499 2.50002L11.9499 2.50004V4.49998C11.9499 4.74851 11.7485 4.94998 11.4999 4.94998C11.2514 4.94998 11.0499 4.74851 11.0499 4.49998V2.95002H8.04993V12.05H9.25428C9.50281 12.05 9.70428 12.2515 9.70428 12.5C9.70428 12.7486 9.50281 12.95 9.25428 12.95H5.75428C5.50575 12.95 5.30428 12.7486 5.30428 12.5C5.30428 12.2515 5.50575 12.05 5.75428 12.05H6.94993V2.95002H3.94993Z",
|
|
3968
3968
|
fill: r,
|
|
3969
3969
|
fillRule: "evenodd",
|
|
@@ -4000,7 +4000,7 @@ var Vl = {
|
|
|
4000
4000
|
* This source code is licensed under the ISC license.
|
|
4001
4001
|
* See the LICENSE file in the root directory of this source tree.
|
|
4002
4002
|
*/
|
|
4003
|
-
const Bl =
|
|
4003
|
+
const Bl = W(
|
|
4004
4004
|
({
|
|
4005
4005
|
color: e = "currentColor",
|
|
4006
4006
|
size: t = 24,
|
|
@@ -4010,7 +4010,7 @@ const Bl = H(
|
|
|
4010
4010
|
children: s,
|
|
4011
4011
|
iconNode: a,
|
|
4012
4012
|
...i
|
|
4013
|
-
}, c) =>
|
|
4013
|
+
}, c) => C(
|
|
4014
4014
|
"svg",
|
|
4015
4015
|
{
|
|
4016
4016
|
ref: c,
|
|
@@ -4023,7 +4023,7 @@ const Bl = H(
|
|
|
4023
4023
|
...i
|
|
4024
4024
|
},
|
|
4025
4025
|
[
|
|
4026
|
-
...a.map(([l, d]) =>
|
|
4026
|
+
...a.map(([l, d]) => C(l, d)),
|
|
4027
4027
|
...Array.isArray(s) ? s : [s]
|
|
4028
4028
|
]
|
|
4029
4029
|
)
|
|
@@ -4035,8 +4035,8 @@ const Bl = H(
|
|
|
4035
4035
|
* See the LICENSE file in the root directory of this source tree.
|
|
4036
4036
|
*/
|
|
4037
4037
|
const Ie = (e, t) => {
|
|
4038
|
-
const n =
|
|
4039
|
-
({ className: r, ...o }, s) =>
|
|
4038
|
+
const n = W(
|
|
4039
|
+
({ className: r, ...o }, s) => C(Bl, {
|
|
4040
4040
|
ref: s,
|
|
4041
4041
|
iconNode: t,
|
|
4042
4042
|
className: ea(`lucide-${Fl(e)}`, r),
|
|
@@ -4254,17 +4254,17 @@ const tu = Ie("X", [
|
|
|
4254
4254
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
4255
4255
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
4256
4256
|
]);
|
|
4257
|
-
function
|
|
4258
|
-
return
|
|
4257
|
+
function z() {
|
|
4258
|
+
return z = Object.assign ? Object.assign.bind() : function(e) {
|
|
4259
4259
|
for (var t = 1; t < arguments.length; t++) {
|
|
4260
4260
|
var n = arguments[t];
|
|
4261
4261
|
for (var r in n)
|
|
4262
4262
|
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
4263
4263
|
}
|
|
4264
4264
|
return e;
|
|
4265
|
-
},
|
|
4265
|
+
}, z.apply(this, arguments);
|
|
4266
4266
|
}
|
|
4267
|
-
function
|
|
4267
|
+
function Z(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
4268
4268
|
return function(o) {
|
|
4269
4269
|
if (e?.(o), n === !1 || !o.defaultPrevented)
|
|
4270
4270
|
return t?.(o);
|
|
@@ -4294,7 +4294,7 @@ function Tt(e, t = []) {
|
|
|
4294
4294
|
() => f,
|
|
4295
4295
|
Object.values(f)
|
|
4296
4296
|
);
|
|
4297
|
-
return /* @__PURE__ */
|
|
4297
|
+
return /* @__PURE__ */ C(m.Provider, {
|
|
4298
4298
|
value: w
|
|
4299
4299
|
}, h);
|
|
4300
4300
|
}
|
|
@@ -4365,20 +4365,20 @@ function ru(...e) {
|
|
|
4365
4365
|
};
|
|
4366
4366
|
return n.scopeName = t.scopeName, n;
|
|
4367
4367
|
}
|
|
4368
|
-
const Ut = /* @__PURE__ */
|
|
4368
|
+
const Ut = /* @__PURE__ */ W((e, t) => {
|
|
4369
4369
|
const { children: n, ...r } = e, o = jt.toArray(n), s = o.find(ou);
|
|
4370
4370
|
if (s) {
|
|
4371
4371
|
const a = s.props.children, i = o.map((c) => c === s ? jt.count(a) > 1 ? jt.only(null) : /* @__PURE__ */ jn(a) ? a.props.children : null : c);
|
|
4372
|
-
return /* @__PURE__ */
|
|
4372
|
+
return /* @__PURE__ */ C(Dr, z({}, r, {
|
|
4373
4373
|
ref: t
|
|
4374
4374
|
}), /* @__PURE__ */ jn(a) ? /* @__PURE__ */ Gr(a, void 0, i) : null);
|
|
4375
4375
|
}
|
|
4376
|
-
return /* @__PURE__ */
|
|
4376
|
+
return /* @__PURE__ */ C(Dr, z({}, r, {
|
|
4377
4377
|
ref: t
|
|
4378
4378
|
}), n);
|
|
4379
4379
|
});
|
|
4380
4380
|
Ut.displayName = "Slot";
|
|
4381
|
-
const Dr = /* @__PURE__ */
|
|
4381
|
+
const Dr = /* @__PURE__ */ W((e, t) => {
|
|
4382
4382
|
const { children: n, ...r } = e;
|
|
4383
4383
|
return /* @__PURE__ */ jn(n) ? /* @__PURE__ */ Gr(n, {
|
|
4384
4384
|
...su(r, n.props),
|
|
@@ -4386,7 +4386,7 @@ const Dr = /* @__PURE__ */ H((e, t) => {
|
|
|
4386
4386
|
}) : jt.count(n) > 1 ? jt.only(null) : null;
|
|
4387
4387
|
});
|
|
4388
4388
|
Dr.displayName = "SlotClone";
|
|
4389
|
-
const ra = ({ children: e }) => /* @__PURE__ */
|
|
4389
|
+
const ra = ({ children: e }) => /* @__PURE__ */ C(Xt, null, e);
|
|
4390
4390
|
function ou(e) {
|
|
4391
4391
|
return /* @__PURE__ */ jn(e) && e.type === ra;
|
|
4392
4392
|
}
|
|
@@ -4429,11 +4429,11 @@ const au = [
|
|
|
4429
4429
|
"svg",
|
|
4430
4430
|
"ul"
|
|
4431
4431
|
], Ee = au.reduce((e, t) => {
|
|
4432
|
-
const n = /* @__PURE__ */
|
|
4432
|
+
const n = /* @__PURE__ */ W((r, o) => {
|
|
4433
4433
|
const { asChild: s, ...a } = r, i = s ? Ut : t;
|
|
4434
|
-
return
|
|
4434
|
+
return q(() => {
|
|
4435
4435
|
window[Symbol.for("radix-ui")] = !0;
|
|
4436
|
-
}, []), /* @__PURE__ */
|
|
4436
|
+
}, []), /* @__PURE__ */ C(i, z({}, a, {
|
|
4437
4437
|
ref: o
|
|
4438
4438
|
}));
|
|
4439
4439
|
});
|
|
@@ -4449,7 +4449,7 @@ function oa(e, t) {
|
|
|
4449
4449
|
}
|
|
4450
4450
|
function He(e) {
|
|
4451
4451
|
const t = K(e);
|
|
4452
|
-
return
|
|
4452
|
+
return q(() => {
|
|
4453
4453
|
t.current = e;
|
|
4454
4454
|
}), ve(
|
|
4455
4455
|
() => (...n) => {
|
|
@@ -4461,7 +4461,7 @@ function He(e) {
|
|
|
4461
4461
|
}
|
|
4462
4462
|
function iu(e, t = globalThis?.document) {
|
|
4463
4463
|
const n = He(e);
|
|
4464
|
-
|
|
4464
|
+
q(() => {
|
|
4465
4465
|
const r = (o) => {
|
|
4466
4466
|
o.key === "Escape" && n(o);
|
|
4467
4467
|
};
|
|
@@ -4477,31 +4477,31 @@ const uu = /* @__PURE__ */ Bt({
|
|
|
4477
4477
|
layers: /* @__PURE__ */ new Set(),
|
|
4478
4478
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
4479
4479
|
branches: /* @__PURE__ */ new Set()
|
|
4480
|
-
}), eo = /* @__PURE__ */
|
|
4480
|
+
}), eo = /* @__PURE__ */ W((e, t) => {
|
|
4481
4481
|
var n;
|
|
4482
|
-
const { disableOutsidePointerEvents: r = !1, onEscapeKeyDown: o, onPointerDownOutside: s, onFocusOutside: a, onInteractOutside: i, onDismiss: c, ...l } = e, d = wn(uu), [u, p] =
|
|
4482
|
+
const { disableOutsidePointerEvents: r = !1, onEscapeKeyDown: o, onPointerDownOutside: s, onFocusOutside: a, onInteractOutside: i, onDismiss: c, ...l } = e, d = wn(uu), [u, p] = J(null), h = (n = u?.ownerDocument) !== null && n !== void 0 ? n : globalThis?.document, [, f] = J({}), m = Se(
|
|
4483
4483
|
t,
|
|
4484
4484
|
(E) => p(E)
|
|
4485
4485
|
), w = Array.from(d.layers), [b] = [
|
|
4486
4486
|
...d.layersWithOutsidePointerEventsDisabled
|
|
4487
|
-
].slice(-1), g = w.indexOf(b), y = u ? w.indexOf(u) : -1,
|
|
4488
|
-
const
|
|
4487
|
+
].slice(-1), g = w.indexOf(b), y = u ? w.indexOf(u) : -1, $ = d.layersWithOutsidePointerEventsDisabled.size > 0, _ = y >= g, D = du((E) => {
|
|
4488
|
+
const M = E.target, k = [
|
|
4489
4489
|
...d.branches
|
|
4490
4490
|
].some(
|
|
4491
|
-
(
|
|
4491
|
+
(H) => H.contains(M)
|
|
4492
4492
|
);
|
|
4493
|
-
!_ ||
|
|
4493
|
+
!_ || k || (s?.(E), i?.(E), E.defaultPrevented || c?.());
|
|
4494
4494
|
}, h), T = fu((E) => {
|
|
4495
|
-
const
|
|
4495
|
+
const M = E.target;
|
|
4496
4496
|
[
|
|
4497
4497
|
...d.branches
|
|
4498
4498
|
].some(
|
|
4499
|
-
(
|
|
4499
|
+
(H) => H.contains(M)
|
|
4500
4500
|
) || (a?.(E), i?.(E), E.defaultPrevented || c?.());
|
|
4501
4501
|
}, h);
|
|
4502
4502
|
return iu((E) => {
|
|
4503
4503
|
y === d.layers.size - 1 && (o?.(E), !E.defaultPrevented && c && (E.preventDefault(), c()));
|
|
4504
|
-
}, h),
|
|
4504
|
+
}, h), q(() => {
|
|
4505
4505
|
if (u)
|
|
4506
4506
|
return r && (d.layersWithOutsidePointerEventsDisabled.size === 0 && (Qo = h.body.style.pointerEvents, h.body.style.pointerEvents = "none"), d.layersWithOutsidePointerEventsDisabled.add(u)), d.layers.add(u), es(), () => {
|
|
4507
4507
|
r && d.layersWithOutsidePointerEventsDisabled.size === 1 && (h.body.style.pointerEvents = Qo);
|
|
@@ -4511,29 +4511,29 @@ const uu = /* @__PURE__ */ Bt({
|
|
|
4511
4511
|
h,
|
|
4512
4512
|
r,
|
|
4513
4513
|
d
|
|
4514
|
-
]),
|
|
4514
|
+
]), q(() => () => {
|
|
4515
4515
|
u && (d.layers.delete(u), d.layersWithOutsidePointerEventsDisabled.delete(u), es());
|
|
4516
4516
|
}, [
|
|
4517
4517
|
u,
|
|
4518
4518
|
d
|
|
4519
|
-
]),
|
|
4519
|
+
]), q(() => {
|
|
4520
4520
|
const E = () => f({});
|
|
4521
4521
|
return document.addEventListener(Ar, E), () => document.removeEventListener(Ar, E);
|
|
4522
|
-
}, []), /* @__PURE__ */
|
|
4522
|
+
}, []), /* @__PURE__ */ C(Ee.div, z({}, l, {
|
|
4523
4523
|
ref: m,
|
|
4524
4524
|
style: {
|
|
4525
|
-
pointerEvents:
|
|
4525
|
+
pointerEvents: $ ? _ ? "auto" : "none" : void 0,
|
|
4526
4526
|
...e.style
|
|
4527
4527
|
},
|
|
4528
|
-
onFocusCapture:
|
|
4529
|
-
onBlurCapture:
|
|
4530
|
-
onPointerDownCapture:
|
|
4528
|
+
onFocusCapture: Z(e.onFocusCapture, T.onFocusCapture),
|
|
4529
|
+
onBlurCapture: Z(e.onBlurCapture, T.onBlurCapture),
|
|
4530
|
+
onPointerDownCapture: Z(e.onPointerDownCapture, D.onPointerDownCapture)
|
|
4531
4531
|
}));
|
|
4532
4532
|
});
|
|
4533
4533
|
function du(e, t = globalThis?.document) {
|
|
4534
4534
|
const n = He(e), r = K(!1), o = K(() => {
|
|
4535
4535
|
});
|
|
4536
|
-
return
|
|
4536
|
+
return q(() => {
|
|
4537
4537
|
const s = (i) => {
|
|
4538
4538
|
if (i.target && !r.current) {
|
|
4539
4539
|
let l = function() {
|
|
@@ -4566,7 +4566,7 @@ function du(e, t = globalThis?.document) {
|
|
|
4566
4566
|
}
|
|
4567
4567
|
function fu(e, t = globalThis?.document) {
|
|
4568
4568
|
const n = He(e), r = K(!1);
|
|
4569
|
-
return
|
|
4569
|
+
return q(() => {
|
|
4570
4570
|
const o = (s) => {
|
|
4571
4571
|
s.target && !r.current && sa(lu, n, {
|
|
4572
4572
|
originalEvent: s
|
|
@@ -4786,7 +4786,7 @@ const Cu = async (e, t, n) => {
|
|
|
4786
4786
|
} = i[m], {
|
|
4787
4787
|
x: g,
|
|
4788
4788
|
y,
|
|
4789
|
-
data:
|
|
4789
|
+
data: $,
|
|
4790
4790
|
reset: _
|
|
4791
4791
|
} = await b({
|
|
4792
4792
|
x: d,
|
|
@@ -4806,7 +4806,7 @@ const Cu = async (e, t, n) => {
|
|
|
4806
4806
|
...h,
|
|
4807
4807
|
[w]: {
|
|
4808
4808
|
...h[w],
|
|
4809
|
-
|
|
4809
|
+
...$
|
|
4810
4810
|
}
|
|
4811
4811
|
}, _ && f <= 50 && (f++, typeof _ == "object" && (_.placement && (p = _.placement), _.rects && (l = _.rects === !0 ? await a.getElementRects({
|
|
4812
4812
|
reference: e,
|
|
@@ -4851,7 +4851,7 @@ async function un(e, t) {
|
|
|
4851
4851
|
y: o,
|
|
4852
4852
|
width: a.floating.width,
|
|
4853
4853
|
height: a.floating.height
|
|
4854
|
-
} : a.reference, y = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(i.floating)),
|
|
4854
|
+
} : a.reference, y = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(i.floating)), $ = await (s.isElement == null ? void 0 : s.isElement(y)) ? await (s.getScale == null ? void 0 : s.getScale(y)) || {
|
|
4855
4855
|
x: 1,
|
|
4856
4856
|
y: 1
|
|
4857
4857
|
} : {
|
|
@@ -4864,10 +4864,10 @@ async function un(e, t) {
|
|
|
4864
4864
|
strategy: c
|
|
4865
4865
|
}) : g);
|
|
4866
4866
|
return {
|
|
4867
|
-
top: (b.top - _.top + f.top) /
|
|
4868
|
-
bottom: (_.bottom - b.bottom + f.bottom) /
|
|
4869
|
-
left: (b.left - _.left + f.left) /
|
|
4870
|
-
right: (_.right - b.right + f.right) /
|
|
4867
|
+
top: (b.top - _.top + f.top) / $.y,
|
|
4868
|
+
bottom: (_.bottom - b.bottom + f.bottom) / $.y,
|
|
4869
|
+
left: (b.left - _.left + f.left) / $.x,
|
|
4870
|
+
right: (_.right - b.right + f.right) / $.x
|
|
4871
4871
|
};
|
|
4872
4872
|
}
|
|
4873
4873
|
const Su = (e) => ({
|
|
@@ -4891,20 +4891,20 @@ const Su = (e) => ({
|
|
|
4891
4891
|
const u = aa(d), p = {
|
|
4892
4892
|
x: n,
|
|
4893
4893
|
y: r
|
|
4894
|
-
}, h = ro(o), f = no(h), m = await a.getDimensions(l), w = h === "y", b = w ? "top" : "left", g = w ? "bottom" : "right", y = w ? "clientHeight" : "clientWidth",
|
|
4895
|
-
let T =
|
|
4896
|
-
(!T || !await (a.isElement == null ? void 0 : a.isElement(
|
|
4897
|
-
const E =
|
|
4894
|
+
}, h = ro(o), f = no(h), m = await a.getDimensions(l), w = h === "y", b = w ? "top" : "left", g = w ? "bottom" : "right", y = w ? "clientHeight" : "clientWidth", $ = s.reference[f] + s.reference[h] - p[h] - s.floating[f], _ = p[h] - s.reference[h], D = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(l));
|
|
4895
|
+
let T = D ? D[y] : 0;
|
|
4896
|
+
(!T || !await (a.isElement == null ? void 0 : a.isElement(D))) && (T = i.floating[y] || s.floating[f]);
|
|
4897
|
+
const E = $ / 2 - _ / 2, M = T / 2 - m[f] / 2 - 1, k = Xe(u[b], M), H = Xe(u[g], M), N = k, Q = T - m[f] - H, G = T / 2 - m[f] / 2 + E, A = kr(N, G, Q), I = !c.arrow && Zt(o) != null && G !== A && s.reference[f] / 2 - (G < N ? k : H) - m[f] / 2 < 0, P = I ? G < N ? G - N : G - Q : 0;
|
|
4898
4898
|
return {
|
|
4899
4899
|
[h]: p[h] + P,
|
|
4900
4900
|
data: {
|
|
4901
4901
|
[h]: A,
|
|
4902
4902
|
centerOffset: G - A - P,
|
|
4903
|
-
...
|
|
4903
|
+
...I && {
|
|
4904
4904
|
alignmentOffset: P
|
|
4905
4905
|
}
|
|
4906
4906
|
},
|
|
4907
|
-
reset:
|
|
4907
|
+
reset: I
|
|
4908
4908
|
};
|
|
4909
4909
|
}
|
|
4910
4910
|
}), Eu = function(e) {
|
|
@@ -4931,20 +4931,20 @@ const Su = (e) => ({
|
|
|
4931
4931
|
} = rt(e, t);
|
|
4932
4932
|
if ((n = s.arrow) != null && n.alignmentOffset)
|
|
4933
4933
|
return {};
|
|
4934
|
-
const b = ot(o), g = ot(i) === i, y = await (c.isRTL == null ? void 0 : c.isRTL(l.floating)),
|
|
4935
|
-
!p && f !== "none" &&
|
|
4936
|
-
const _ = [i,
|
|
4934
|
+
const b = ot(o), g = ot(i) === i, y = await (c.isRTL == null ? void 0 : c.isRTL(l.floating)), $ = p || (g || !m ? [zn(i)] : xu(i));
|
|
4935
|
+
!p && f !== "none" && $.push(...yu(i, m, f, y));
|
|
4936
|
+
const _ = [i, ...$], D = await un(t, w), T = [];
|
|
4937
4937
|
let E = ((r = s.flip) == null ? void 0 : r.overflows) || [];
|
|
4938
|
-
if (d && T.push(
|
|
4938
|
+
if (d && T.push(D[b]), u) {
|
|
4939
4939
|
const N = bu(o, a, y);
|
|
4940
|
-
T.push(
|
|
4940
|
+
T.push(D[N[0]], D[N[1]]);
|
|
4941
4941
|
}
|
|
4942
4942
|
if (E = [...E, {
|
|
4943
4943
|
placement: o,
|
|
4944
4944
|
overflows: T
|
|
4945
4945
|
}], !T.every((N) => N <= 0)) {
|
|
4946
|
-
var
|
|
4947
|
-
const N = (((
|
|
4946
|
+
var M, k;
|
|
4947
|
+
const N = (((M = s.flip) == null ? void 0 : M.index) || 0) + 1, Q = _[N];
|
|
4948
4948
|
if (Q)
|
|
4949
4949
|
return {
|
|
4950
4950
|
data: {
|
|
@@ -4955,12 +4955,12 @@ const Su = (e) => ({
|
|
|
4955
4955
|
placement: Q
|
|
4956
4956
|
}
|
|
4957
4957
|
};
|
|
4958
|
-
let G = (
|
|
4958
|
+
let G = (k = E.filter((A) => A.overflows[0] <= 0).sort((A, I) => A.overflows[1] - I.overflows[1])[0]) == null ? void 0 : k.placement;
|
|
4959
4959
|
if (!G)
|
|
4960
4960
|
switch (h) {
|
|
4961
4961
|
case "bestFit": {
|
|
4962
|
-
var
|
|
4963
|
-
const A = (
|
|
4962
|
+
var H;
|
|
4963
|
+
const A = (H = E.map((I) => [I.placement, I.overflows.filter((P) => P > 0).reduce((P, ee) => P + ee, 0)]).sort((I, P) => I[1] - P[1])[0]) == null ? void 0 : H[0];
|
|
4964
4964
|
A && (G = A);
|
|
4965
4965
|
break;
|
|
4966
4966
|
}
|
|
@@ -5162,13 +5162,13 @@ const Ru = function(e) {
|
|
|
5162
5162
|
...m
|
|
5163
5163
|
};
|
|
5164
5164
|
if (c) {
|
|
5165
|
-
const y = p === "y" ? "height" : "width",
|
|
5166
|
-
h <
|
|
5165
|
+
const y = p === "y" ? "height" : "width", $ = s.reference[p] - s.floating[y] + w.mainAxis, _ = s.reference[p] + s.reference[y] - w.mainAxis;
|
|
5166
|
+
h < $ ? h = $ : h > _ && (h = _);
|
|
5167
5167
|
}
|
|
5168
5168
|
if (l) {
|
|
5169
5169
|
var b, g;
|
|
5170
|
-
const y = p === "y" ? "width" : "height",
|
|
5171
|
-
f < _ ? f = _ : f >
|
|
5170
|
+
const y = p === "y" ? "width" : "height", $ = ["top", "left"].includes(ot(o)), _ = s.reference[u] - s.floating[y] + ($ && ((b = a.offset) == null ? void 0 : b[u]) || 0) + ($ ? 0 : w.crossAxis), D = s.reference[u] + s.reference[y] + ($ ? 0 : ((g = a.offset) == null ? void 0 : g[u]) || 0) - ($ ? w.crossAxis : 0);
|
|
5171
|
+
f < _ ? f = _ : f > D && (f = D);
|
|
5172
5172
|
}
|
|
5173
5173
|
return {
|
|
5174
5174
|
[p]: h,
|
|
@@ -5196,15 +5196,15 @@ const Ru = function(e) {
|
|
|
5196
5196
|
} = r.floating;
|
|
5197
5197
|
let f, m;
|
|
5198
5198
|
l === "top" || l === "bottom" ? (f = l, m = d === (await (o.isRTL == null ? void 0 : o.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (m = l, f = d === "end" ? "top" : "bottom");
|
|
5199
|
-
const w = h - c.top - c.bottom, b = p - c.left - c.right, g = Xe(h - c[f], w), y = Xe(p - c[m], b),
|
|
5200
|
-
let _ = g,
|
|
5201
|
-
if (u ?
|
|
5202
|
-
const E = Le(c.left, 0),
|
|
5203
|
-
u ?
|
|
5199
|
+
const w = h - c.top - c.bottom, b = p - c.left - c.right, g = Xe(h - c[f], w), y = Xe(p - c[m], b), $ = !t.middlewareData.shift;
|
|
5200
|
+
let _ = g, D = y;
|
|
5201
|
+
if (u ? D = d || $ ? Xe(y, b) : b : _ = d || $ ? Xe(g, w) : w, $ && !d) {
|
|
5202
|
+
const E = Le(c.left, 0), M = Le(c.right, 0), k = Le(c.top, 0), H = Le(c.bottom, 0);
|
|
5203
|
+
u ? D = p - 2 * (E !== 0 || M !== 0 ? E + M : Le(c.left, c.right)) : _ = h - 2 * (k !== 0 || H !== 0 ? k + H : Le(c.top, c.bottom));
|
|
5204
5204
|
}
|
|
5205
5205
|
await a({
|
|
5206
5206
|
...t,
|
|
5207
|
-
availableWidth:
|
|
5207
|
+
availableWidth: D,
|
|
5208
5208
|
availableHeight: _
|
|
5209
5209
|
});
|
|
5210
5210
|
const T = await o.getDimensions(s.floating);
|
|
@@ -5354,8 +5354,8 @@ function _t(e, t, n, r) {
|
|
|
5354
5354
|
const p = Fe(s), h = r && qe(r) ? Fe(r) : r;
|
|
5355
5355
|
let f = p, m = f.frameElement;
|
|
5356
5356
|
for (; m && r && h !== f; ) {
|
|
5357
|
-
const w = Lt(m), b = m.getBoundingClientRect(), g = Ue(m), y = b.left + (m.clientLeft + parseFloat(g.paddingLeft)) * w.x,
|
|
5358
|
-
c *= w.x, l *= w.y, d *= w.x, u *= w.y, c += y, l +=
|
|
5357
|
+
const w = Lt(m), b = m.getBoundingClientRect(), g = Ue(m), y = b.left + (m.clientLeft + parseFloat(g.paddingLeft)) * w.x, $ = b.top + (m.clientTop + parseFloat(g.paddingTop)) * w.y;
|
|
5358
|
+
c *= w.x, l *= w.y, d *= w.x, u *= w.y, c += y, l += $, f = Fe(m), m = f.frameElement;
|
|
5359
5359
|
}
|
|
5360
5360
|
}
|
|
5361
5361
|
return Wn({
|
|
@@ -5599,25 +5599,25 @@ function Xu(e, t) {
|
|
|
5599
5599
|
threshold: Le(0, Xe(1, c)) || 1
|
|
5600
5600
|
};
|
|
5601
5601
|
let y = !0;
|
|
5602
|
-
function
|
|
5603
|
-
const
|
|
5604
|
-
if (
|
|
5602
|
+
function $(_) {
|
|
5603
|
+
const D = _[0].intersectionRatio;
|
|
5604
|
+
if (D !== c) {
|
|
5605
5605
|
if (!y)
|
|
5606
5606
|
return a();
|
|
5607
|
-
|
|
5607
|
+
D ? a(!1, D) : r = setTimeout(() => {
|
|
5608
5608
|
a(!1, 1e-7);
|
|
5609
5609
|
}, 1e3);
|
|
5610
5610
|
}
|
|
5611
5611
|
y = !1;
|
|
5612
5612
|
}
|
|
5613
5613
|
try {
|
|
5614
|
-
n = new IntersectionObserver(
|
|
5614
|
+
n = new IntersectionObserver($, {
|
|
5615
5615
|
...g,
|
|
5616
5616
|
// Handle <iframe>s
|
|
5617
5617
|
root: o.ownerDocument
|
|
5618
5618
|
});
|
|
5619
5619
|
} catch {
|
|
5620
|
-
n = new IntersectionObserver(
|
|
5620
|
+
n = new IntersectionObserver($, g);
|
|
5621
5621
|
}
|
|
5622
5622
|
n.observe(e);
|
|
5623
5623
|
}
|
|
@@ -5672,7 +5672,7 @@ const Zu = Ru, Ju = Pu, Qu = Eu, ed = Nu, td = _u, is = Su, nd = Ou, rd = (e, t,
|
|
|
5672
5672
|
platform: s
|
|
5673
5673
|
});
|
|
5674
5674
|
};
|
|
5675
|
-
var Mn = typeof document < "u" ? Yr :
|
|
5675
|
+
var Mn = typeof document < "u" ? Yr : q;
|
|
5676
5676
|
function Hn(e, t) {
|
|
5677
5677
|
if (e === t)
|
|
5678
5678
|
return !0;
|
|
@@ -5741,18 +5741,18 @@ function od(e) {
|
|
|
5741
5741
|
}), [p, h] = B.useState(r);
|
|
5742
5742
|
Hn(p, r) || h(r);
|
|
5743
5743
|
const [f, m] = B.useState(null), [w, b] = B.useState(null), g = B.useCallback((P) => {
|
|
5744
|
-
P !==
|
|
5744
|
+
P !== D.current && (D.current = P, m(P));
|
|
5745
5745
|
}, []), y = B.useCallback((P) => {
|
|
5746
5746
|
P !== T.current && (T.current = P, b(P));
|
|
5747
|
-
}, []),
|
|
5748
|
-
if (!
|
|
5747
|
+
}, []), $ = s || f, _ = a || w, D = B.useRef(null), T = B.useRef(null), E = B.useRef(d), M = c != null, k = ls(c), H = ls(o), N = B.useCallback(() => {
|
|
5748
|
+
if (!D.current || !T.current)
|
|
5749
5749
|
return;
|
|
5750
5750
|
const P = {
|
|
5751
5751
|
placement: t,
|
|
5752
5752
|
strategy: n,
|
|
5753
5753
|
middleware: p
|
|
5754
5754
|
};
|
|
5755
|
-
|
|
5755
|
+
H.current && (P.platform = H.current), rd(D.current, T.current, P).then((ee) => {
|
|
5756
5756
|
const S = {
|
|
5757
5757
|
...ee,
|
|
5758
5758
|
isPositioned: !0
|
|
@@ -5761,7 +5761,7 @@ function od(e) {
|
|
|
5761
5761
|
u(S);
|
|
5762
5762
|
}));
|
|
5763
5763
|
});
|
|
5764
|
-
}, [p, t, n,
|
|
5764
|
+
}, [p, t, n, H]);
|
|
5765
5765
|
Mn(() => {
|
|
5766
5766
|
l === !1 && E.current.isPositioned && (E.current.isPositioned = !1, u((P) => ({
|
|
5767
5767
|
...P,
|
|
@@ -5772,21 +5772,21 @@ function od(e) {
|
|
|
5772
5772
|
Mn(() => (Q.current = !0, () => {
|
|
5773
5773
|
Q.current = !1;
|
|
5774
5774
|
}), []), Mn(() => {
|
|
5775
|
-
if (
|
|
5776
|
-
if (
|
|
5777
|
-
return
|
|
5775
|
+
if ($ && (D.current = $), _ && (T.current = _), $ && _) {
|
|
5776
|
+
if (k.current)
|
|
5777
|
+
return k.current($, _, N);
|
|
5778
5778
|
N();
|
|
5779
5779
|
}
|
|
5780
|
-
}, [
|
|
5780
|
+
}, [$, _, N, k, M]);
|
|
5781
5781
|
const G = B.useMemo(() => ({
|
|
5782
|
-
reference:
|
|
5782
|
+
reference: D,
|
|
5783
5783
|
floating: T,
|
|
5784
5784
|
setReference: g,
|
|
5785
5785
|
setFloating: y
|
|
5786
5786
|
}), [g, y]), A = B.useMemo(() => ({
|
|
5787
|
-
reference:
|
|
5787
|
+
reference: $,
|
|
5788
5788
|
floating: _
|
|
5789
|
-
}), [
|
|
5789
|
+
}), [$, _]), I = B.useMemo(() => {
|
|
5790
5790
|
const P = {
|
|
5791
5791
|
position: n,
|
|
5792
5792
|
left: 0,
|
|
@@ -5812,8 +5812,8 @@ function od(e) {
|
|
|
5812
5812
|
update: N,
|
|
5813
5813
|
refs: G,
|
|
5814
5814
|
elements: A,
|
|
5815
|
-
floatingStyles:
|
|
5816
|
-
}), [d, N, G, A,
|
|
5815
|
+
floatingStyles: I
|
|
5816
|
+
}), [d, N, G, A, I]);
|
|
5817
5817
|
}
|
|
5818
5818
|
const sd = (e) => {
|
|
5819
5819
|
function t(n) {
|
|
@@ -5859,7 +5859,7 @@ const sd = (e) => {
|
|
|
5859
5859
|
options: [e, t]
|
|
5860
5860
|
});
|
|
5861
5861
|
function pd(e) {
|
|
5862
|
-
const [t, n] =
|
|
5862
|
+
const [t, n] = J(void 0);
|
|
5863
5863
|
return je(() => {
|
|
5864
5864
|
if (e) {
|
|
5865
5865
|
n({
|
|
@@ -5891,25 +5891,25 @@ function pd(e) {
|
|
|
5891
5891
|
]), t;
|
|
5892
5892
|
}
|
|
5893
5893
|
const ha = "Popper", [va, en] = Tt(ha), [md, ga] = va(ha), hd = (e) => {
|
|
5894
|
-
const { __scopePopper: t, children: n } = e, [r, o] =
|
|
5895
|
-
return /* @__PURE__ */
|
|
5894
|
+
const { __scopePopper: t, children: n } = e, [r, o] = J(null);
|
|
5895
|
+
return /* @__PURE__ */ C(md, {
|
|
5896
5896
|
scope: t,
|
|
5897
5897
|
anchor: r,
|
|
5898
5898
|
onAnchorChange: o
|
|
5899
5899
|
}, n);
|
|
5900
|
-
}, vd = "PopperAnchor", gd = /* @__PURE__ */
|
|
5900
|
+
}, vd = "PopperAnchor", gd = /* @__PURE__ */ W((e, t) => {
|
|
5901
5901
|
const { __scopePopper: n, virtualRef: r, ...o } = e, s = ga(vd, n), a = K(null), i = Se(t, a);
|
|
5902
|
-
return
|
|
5902
|
+
return q(() => {
|
|
5903
5903
|
s.onAnchorChange(r?.current || a.current);
|
|
5904
|
-
}), r ? null : /* @__PURE__ */
|
|
5904
|
+
}), r ? null : /* @__PURE__ */ C(Ee.div, z({}, o, {
|
|
5905
5905
|
ref: i
|
|
5906
5906
|
}));
|
|
5907
|
-
}), ba = "PopperContent", [bd, fv] = va(ba), xd = /* @__PURE__ */
|
|
5907
|
+
}), ba = "PopperContent", [bd, fv] = va(ba), xd = /* @__PURE__ */ W((e, t) => {
|
|
5908
5908
|
var n, r, o, s, a, i, c, l;
|
|
5909
|
-
const { __scopePopper: d, side: u = "bottom", sideOffset: p = 0, align: h = "center", alignOffset: f = 0, arrowPadding: m = 0, avoidCollisions: w = !0, collisionBoundary: b = [], collisionPadding: g = 0, sticky: y = "partial", hideWhenDetached:
|
|
5909
|
+
const { __scopePopper: d, side: u = "bottom", sideOffset: p = 0, align: h = "center", alignOffset: f = 0, arrowPadding: m = 0, avoidCollisions: w = !0, collisionBoundary: b = [], collisionPadding: g = 0, sticky: y = "partial", hideWhenDetached: $ = !1, updatePositionStrategy: _ = "optimized", onPlaced: D, ...T } = e, E = ga(ba, d), [M, k] = J(null), H = Se(
|
|
5910
5910
|
t,
|
|
5911
|
-
(L) =>
|
|
5912
|
-
), [N, Q] =
|
|
5911
|
+
(L) => k(L)
|
|
5912
|
+
), [N, Q] = J(null), G = pd(N), A = (n = G?.width) !== null && n !== void 0 ? n : 0, I = (r = G?.height) !== null && r !== void 0 ? r : 0, P = u + (h !== "center" ? "-" + h : ""), ee = typeof g == "number" ? g : {
|
|
5913
5913
|
top: 0,
|
|
5914
5914
|
right: 0,
|
|
5915
5915
|
bottom: 0,
|
|
@@ -5917,11 +5917,11 @@ const ha = "Popper", [va, en] = Tt(ha), [md, ga] = va(ha), hd = (e) => {
|
|
|
5917
5917
|
...g
|
|
5918
5918
|
}, S = Array.isArray(b) ? b : [
|
|
5919
5919
|
b
|
|
5920
|
-
],
|
|
5920
|
+
], O = S.length > 0, j = {
|
|
5921
5921
|
padding: ee,
|
|
5922
5922
|
boundary: S.filter(wd),
|
|
5923
5923
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
5924
|
-
altBoundary:
|
|
5924
|
+
altBoundary: O
|
|
5925
5925
|
}, { refs: Y, floatingStyles: le, placement: ae, isPositioned: be, middlewareData: we } = od({
|
|
5926
5926
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
5927
5927
|
strategy: "fixed",
|
|
@@ -5934,7 +5934,7 @@ const ha = "Popper", [va, en] = Tt(ha), [md, ga] = va(ha), hd = (e) => {
|
|
|
5934
5934
|
},
|
|
5935
5935
|
middleware: [
|
|
5936
5936
|
ad({
|
|
5937
|
-
mainAxis: p +
|
|
5937
|
+
mainAxis: p + I,
|
|
5938
5938
|
alignmentAxis: f
|
|
5939
5939
|
}),
|
|
5940
5940
|
w && id({
|
|
@@ -5959,26 +5959,26 @@ const ha = "Popper", [va, en] = Tt(ha), [md, ga] = va(ha), hd = (e) => {
|
|
|
5959
5959
|
}),
|
|
5960
5960
|
yd({
|
|
5961
5961
|
arrowWidth: A,
|
|
5962
|
-
arrowHeight:
|
|
5962
|
+
arrowHeight: I
|
|
5963
5963
|
}),
|
|
5964
|
-
|
|
5964
|
+
$ && dd({
|
|
5965
5965
|
strategy: "referenceHidden",
|
|
5966
5966
|
...j
|
|
5967
5967
|
})
|
|
5968
5968
|
]
|
|
5969
|
-
}), [X, se] = xa(ae), oe = He(
|
|
5969
|
+
}), [X, se] = xa(ae), oe = He(D);
|
|
5970
5970
|
je(() => {
|
|
5971
5971
|
be && oe?.();
|
|
5972
5972
|
}, [
|
|
5973
5973
|
be,
|
|
5974
5974
|
oe
|
|
5975
5975
|
]);
|
|
5976
|
-
const ce = (o = we.arrow) === null || o === void 0 ? void 0 : o.x, de = (s = we.arrow) === null || s === void 0 ? void 0 : s.y, fe = ((a = we.arrow) === null || a === void 0 ? void 0 : a.centerOffset) !== 0, [Re, Me] =
|
|
5976
|
+
const ce = (o = we.arrow) === null || o === void 0 ? void 0 : o.x, de = (s = we.arrow) === null || s === void 0 ? void 0 : s.y, fe = ((a = we.arrow) === null || a === void 0 ? void 0 : a.centerOffset) !== 0, [Re, Me] = J();
|
|
5977
5977
|
return je(() => {
|
|
5978
|
-
|
|
5978
|
+
M && Me(window.getComputedStyle(M).zIndex);
|
|
5979
5979
|
}, [
|
|
5980
|
-
|
|
5981
|
-
]), /* @__PURE__ */
|
|
5980
|
+
M
|
|
5981
|
+
]), /* @__PURE__ */ C("div", {
|
|
5982
5982
|
ref: Y.setFloating,
|
|
5983
5983
|
"data-radix-popper-content-wrapper": "",
|
|
5984
5984
|
style: {
|
|
@@ -5993,18 +5993,18 @@ const ha = "Popper", [va, en] = Tt(ha), [md, ga] = va(ha), hd = (e) => {
|
|
|
5993
5993
|
].join(" ")
|
|
5994
5994
|
},
|
|
5995
5995
|
dir: e.dir
|
|
5996
|
-
}, /* @__PURE__ */
|
|
5996
|
+
}, /* @__PURE__ */ C(bd, {
|
|
5997
5997
|
scope: d,
|
|
5998
5998
|
placedSide: X,
|
|
5999
5999
|
onArrowChange: Q,
|
|
6000
6000
|
arrowX: ce,
|
|
6001
6001
|
arrowY: de,
|
|
6002
6002
|
shouldHideArrow: fe
|
|
6003
|
-
}, /* @__PURE__ */
|
|
6003
|
+
}, /* @__PURE__ */ C(Ee.div, z({
|
|
6004
6004
|
"data-side": X,
|
|
6005
6005
|
"data-align": se
|
|
6006
6006
|
}, T, {
|
|
6007
|
-
ref:
|
|
6007
|
+
ref: H,
|
|
6008
6008
|
style: {
|
|
6009
6009
|
...T.style,
|
|
6010
6010
|
// if the PopperContent hasn't been placed yet (not all measurements done)
|
|
@@ -6028,11 +6028,11 @@ const yd = (e) => ({
|
|
|
6028
6028
|
center: "50%",
|
|
6029
6029
|
end: "100%"
|
|
6030
6030
|
}[m], b = ((r = (o = l.arrow) === null || o === void 0 ? void 0 : o.x) !== null && r !== void 0 ? r : 0) + p / 2, g = ((s = (a = l.arrow) === null || a === void 0 ? void 0 : a.y) !== null && s !== void 0 ? s : 0) + h / 2;
|
|
6031
|
-
let y = "",
|
|
6032
|
-
return f === "bottom" ? (y = u ? w : `${b}px`,
|
|
6031
|
+
let y = "", $ = "";
|
|
6032
|
+
return f === "bottom" ? (y = u ? w : `${b}px`, $ = `${-h}px`) : f === "top" ? (y = u ? w : `${b}px`, $ = `${c.floating.height + h}px`) : f === "right" ? (y = `${-h}px`, $ = u ? w : `${g}px`) : f === "left" && (y = `${c.floating.width + h}px`, $ = u ? w : `${g}px`), {
|
|
6033
6033
|
data: {
|
|
6034
6034
|
x: y,
|
|
6035
|
-
y:
|
|
6035
|
+
y: $
|
|
6036
6036
|
}
|
|
6037
6037
|
};
|
|
6038
6038
|
}
|
|
@@ -6044,10 +6044,10 @@ function xa(e) {
|
|
|
6044
6044
|
n
|
|
6045
6045
|
];
|
|
6046
6046
|
}
|
|
6047
|
-
const co = hd, lo = gd, uo = xd, wa = /* @__PURE__ */
|
|
6047
|
+
const co = hd, lo = gd, uo = xd, wa = /* @__PURE__ */ W((e, t) => {
|
|
6048
6048
|
var n;
|
|
6049
6049
|
const { container: r = globalThis == null || (n = globalThis.document) === null || n === void 0 ? void 0 : n.body, ...o } = e;
|
|
6050
|
-
return r ? /* @__PURE__ */ rc.createPortal(/* @__PURE__ */
|
|
6050
|
+
return r ? /* @__PURE__ */ rc.createPortal(/* @__PURE__ */ C(Ee.div, z({}, o, {
|
|
6051
6051
|
ref: t
|
|
6052
6052
|
})), r) : null;
|
|
6053
6053
|
});
|
|
@@ -6067,7 +6067,7 @@ const tn = (e) => {
|
|
|
6067
6067
|
};
|
|
6068
6068
|
tn.displayName = "Presence";
|
|
6069
6069
|
function Cd(e) {
|
|
6070
|
-
const [t, n] =
|
|
6070
|
+
const [t, n] = J(), r = K({}), o = K(e), s = K("none"), a = e ? "mounted" : "unmounted", [i, c] = $d(a, {
|
|
6071
6071
|
mounted: {
|
|
6072
6072
|
UNMOUNT: "unmounted",
|
|
6073
6073
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -6080,7 +6080,7 @@ function Cd(e) {
|
|
|
6080
6080
|
MOUNT: "mounted"
|
|
6081
6081
|
}
|
|
6082
6082
|
});
|
|
6083
|
-
return
|
|
6083
|
+
return q(() => {
|
|
6084
6084
|
const l = En(r.current);
|
|
6085
6085
|
s.current = i === "mounted" ? l : "none";
|
|
6086
6086
|
}, [
|
|
@@ -6148,8 +6148,8 @@ function fn({ prop: e, defaultProp: t, onChange: n = () => {
|
|
|
6148
6148
|
];
|
|
6149
6149
|
}
|
|
6150
6150
|
function Sd({ defaultProp: e, onChange: t }) {
|
|
6151
|
-
const n =
|
|
6152
|
-
return
|
|
6151
|
+
const n = J(e), [r] = n, o = K(r), s = He(t);
|
|
6152
|
+
return q(() => {
|
|
6153
6153
|
o.current !== r && (s(r), o.current = r);
|
|
6154
6154
|
}, [
|
|
6155
6155
|
r,
|
|
@@ -6157,7 +6157,7 @@ function Sd({ defaultProp: e, onChange: t }) {
|
|
|
6157
6157
|
s
|
|
6158
6158
|
]), n;
|
|
6159
6159
|
}
|
|
6160
|
-
const ya = /* @__PURE__ */
|
|
6160
|
+
const ya = /* @__PURE__ */ W((e, t) => /* @__PURE__ */ C(Ee.span, z({}, e, {
|
|
6161
6161
|
ref: t,
|
|
6162
6162
|
style: {
|
|
6163
6163
|
// See: https://github.com/twbs/bootstrap/blob/master/scss/mixins/_screen-reader.scss
|
|
@@ -6176,11 +6176,11 @@ const ya = /* @__PURE__ */ H((e, t) => /* @__PURE__ */ $(Ee.span, W({}, e, {
|
|
|
6176
6176
|
}))), Ed = ya, [rr, pv] = Tt("Tooltip", [
|
|
6177
6177
|
en
|
|
6178
6178
|
]), fo = en(), _d = "TooltipProvider", Td = 700, Lr = "tooltip.open", [Rd, po] = rr(_d), Pd = (e) => {
|
|
6179
|
-
const { __scopeTooltip: t, delayDuration: n = Td, skipDelayDuration: r = 300, disableHoverableContent: o = !1, children: s } = e, [a, i] =
|
|
6180
|
-
return
|
|
6179
|
+
const { __scopeTooltip: t, delayDuration: n = Td, skipDelayDuration: r = 300, disableHoverableContent: o = !1, children: s } = e, [a, i] = J(!0), c = K(!1), l = K(0);
|
|
6180
|
+
return q(() => {
|
|
6181
6181
|
const d = l.current;
|
|
6182
6182
|
return () => window.clearTimeout(d);
|
|
6183
|
-
}, []), /* @__PURE__ */
|
|
6183
|
+
}, []), /* @__PURE__ */ C(Rd, {
|
|
6184
6184
|
scope: t,
|
|
6185
6185
|
isOpenDelayed: a,
|
|
6186
6186
|
delayDuration: n,
|
|
@@ -6202,7 +6202,7 @@ const ya = /* @__PURE__ */ H((e, t) => /* @__PURE__ */ $(Ee.span, W({}, e, {
|
|
|
6202
6202
|
disableHoverableContent: o
|
|
6203
6203
|
}, s);
|
|
6204
6204
|
}, mo = "Tooltip", [Od, or] = rr(mo), Nd = (e) => {
|
|
6205
|
-
const { __scopeTooltip: t, children: n, open: r, defaultOpen: o = !1, onOpenChange: s, disableHoverableContent: a, delayDuration: i } = e, c = po(mo, e.__scopeTooltip), l = fo(t), [d, u] =
|
|
6205
|
+
const { __scopeTooltip: t, children: n, open: r, defaultOpen: o = !1, onOpenChange: s, disableHoverableContent: a, delayDuration: i } = e, c = po(mo, e.__scopeTooltip), l = fo(t), [d, u] = J(null), p = Kt(), h = K(0), f = a ?? c.disableHoverableContent, m = i ?? c.delayDuration, w = K(!1), [b = !1, g] = fn({
|
|
6206
6206
|
prop: r,
|
|
6207
6207
|
defaultProp: o,
|
|
6208
6208
|
onChange: (T) => {
|
|
@@ -6210,7 +6210,7 @@ const ya = /* @__PURE__ */ H((e, t) => /* @__PURE__ */ $(Ee.span, W({}, e, {
|
|
|
6210
6210
|
}
|
|
6211
6211
|
}), y = ve(() => b ? w.current ? "delayed-open" : "instant-open" : "closed", [
|
|
6212
6212
|
b
|
|
6213
|
-
]),
|
|
6213
|
+
]), $ = F(() => {
|
|
6214
6214
|
window.clearTimeout(h.current), w.current = !1, g(!0);
|
|
6215
6215
|
}, [
|
|
6216
6216
|
g
|
|
@@ -6218,7 +6218,7 @@ const ya = /* @__PURE__ */ H((e, t) => /* @__PURE__ */ $(Ee.span, W({}, e, {
|
|
|
6218
6218
|
window.clearTimeout(h.current), g(!1);
|
|
6219
6219
|
}, [
|
|
6220
6220
|
g
|
|
6221
|
-
]),
|
|
6221
|
+
]), D = F(() => {
|
|
6222
6222
|
window.clearTimeout(h.current), h.current = window.setTimeout(() => {
|
|
6223
6223
|
w.current = !0, g(!0);
|
|
6224
6224
|
}, m);
|
|
@@ -6226,7 +6226,7 @@ const ya = /* @__PURE__ */ H((e, t) => /* @__PURE__ */ $(Ee.span, W({}, e, {
|
|
|
6226
6226
|
m,
|
|
6227
6227
|
g
|
|
6228
6228
|
]);
|
|
6229
|
-
return
|
|
6229
|
+
return q(() => () => window.clearTimeout(h.current), []), /* @__PURE__ */ C(co, l, /* @__PURE__ */ C(Od, {
|
|
6230
6230
|
scope: t,
|
|
6231
6231
|
contentId: p,
|
|
6232
6232
|
open: b,
|
|
@@ -6234,11 +6234,11 @@ const ya = /* @__PURE__ */ H((e, t) => /* @__PURE__ */ $(Ee.span, W({}, e, {
|
|
|
6234
6234
|
trigger: d,
|
|
6235
6235
|
onTriggerChange: u,
|
|
6236
6236
|
onTriggerEnter: F(() => {
|
|
6237
|
-
c.isOpenDelayed ?
|
|
6237
|
+
c.isOpenDelayed ? D() : $();
|
|
6238
6238
|
}, [
|
|
6239
6239
|
c.isOpenDelayed,
|
|
6240
|
-
|
|
6241
|
-
|
|
6240
|
+
D,
|
|
6241
|
+
$
|
|
6242
6242
|
]),
|
|
6243
6243
|
onTriggerLeave: F(() => {
|
|
6244
6244
|
f ? _() : window.clearTimeout(h.current);
|
|
@@ -6246,60 +6246,60 @@ const ya = /* @__PURE__ */ H((e, t) => /* @__PURE__ */ $(Ee.span, W({}, e, {
|
|
|
6246
6246
|
_,
|
|
6247
6247
|
f
|
|
6248
6248
|
]),
|
|
6249
|
-
onOpen:
|
|
6249
|
+
onOpen: $,
|
|
6250
6250
|
onClose: _,
|
|
6251
6251
|
disableHoverableContent: f
|
|
6252
6252
|
}, n));
|
|
6253
|
-
}, us = "TooltipTrigger", Id = /* @__PURE__ */
|
|
6253
|
+
}, us = "TooltipTrigger", Id = /* @__PURE__ */ W((e, t) => {
|
|
6254
6254
|
const { __scopeTooltip: n, ...r } = e, o = or(us, n), s = po(us, n), a = fo(n), i = K(null), c = Se(t, i, o.onTriggerChange), l = K(!1), d = K(!1), u = F(
|
|
6255
6255
|
() => l.current = !1,
|
|
6256
6256
|
[]
|
|
6257
6257
|
);
|
|
6258
|
-
return
|
|
6258
|
+
return q(() => () => document.removeEventListener("pointerup", u), [
|
|
6259
6259
|
u
|
|
6260
|
-
]), /* @__PURE__ */
|
|
6260
|
+
]), /* @__PURE__ */ C(lo, z({
|
|
6261
6261
|
asChild: !0
|
|
6262
|
-
}, a), /* @__PURE__ */
|
|
6262
|
+
}, a), /* @__PURE__ */ C(Ee.button, z({
|
|
6263
6263
|
// We purposefully avoid adding `type=button` here because tooltip triggers are also
|
|
6264
6264
|
// commonly anchors and the anchor `type` attribute signifies MIME type.
|
|
6265
6265
|
"aria-describedby": o.open ? o.contentId : void 0,
|
|
6266
6266
|
"data-state": o.stateAttribute
|
|
6267
6267
|
}, r, {
|
|
6268
6268
|
ref: c,
|
|
6269
|
-
onPointerMove:
|
|
6269
|
+
onPointerMove: Z(e.onPointerMove, (p) => {
|
|
6270
6270
|
p.pointerType !== "touch" && !d.current && !s.isPointerInTransitRef.current && (o.onTriggerEnter(), d.current = !0);
|
|
6271
6271
|
}),
|
|
6272
|
-
onPointerLeave:
|
|
6272
|
+
onPointerLeave: Z(e.onPointerLeave, () => {
|
|
6273
6273
|
o.onTriggerLeave(), d.current = !1;
|
|
6274
6274
|
}),
|
|
6275
|
-
onPointerDown:
|
|
6275
|
+
onPointerDown: Z(e.onPointerDown, () => {
|
|
6276
6276
|
l.current = !0, document.addEventListener("pointerup", u, {
|
|
6277
6277
|
once: !0
|
|
6278
6278
|
});
|
|
6279
6279
|
}),
|
|
6280
|
-
onFocus:
|
|
6280
|
+
onFocus: Z(e.onFocus, () => {
|
|
6281
6281
|
l.current || o.onOpen();
|
|
6282
6282
|
}),
|
|
6283
|
-
onBlur:
|
|
6284
|
-
onClick:
|
|
6283
|
+
onBlur: Z(e.onBlur, o.onClose),
|
|
6284
|
+
onClick: Z(e.onClick, o.onClose)
|
|
6285
6285
|
})));
|
|
6286
6286
|
}), Md = "TooltipPortal", [mv, Dd] = rr(Md, {
|
|
6287
6287
|
forceMount: void 0
|
|
6288
|
-
}), pn = "TooltipContent", Ad = /* @__PURE__ */
|
|
6288
|
+
}), pn = "TooltipContent", Ad = /* @__PURE__ */ W((e, t) => {
|
|
6289
6289
|
const n = Dd(pn, e.__scopeTooltip), { forceMount: r = n.forceMount, side: o = "top", ...s } = e, a = or(pn, e.__scopeTooltip);
|
|
6290
|
-
return /* @__PURE__ */
|
|
6290
|
+
return /* @__PURE__ */ C(tn, {
|
|
6291
6291
|
present: r || a.open
|
|
6292
|
-
}, a.disableHoverableContent ? /* @__PURE__ */
|
|
6292
|
+
}, a.disableHoverableContent ? /* @__PURE__ */ C($a, z({
|
|
6293
6293
|
side: o
|
|
6294
6294
|
}, s, {
|
|
6295
6295
|
ref: t
|
|
6296
|
-
})) : /* @__PURE__ */
|
|
6296
|
+
})) : /* @__PURE__ */ C(kd, z({
|
|
6297
6297
|
side: o
|
|
6298
6298
|
}, s, {
|
|
6299
6299
|
ref: t
|
|
6300
6300
|
})));
|
|
6301
|
-
}), kd = /* @__PURE__ */
|
|
6302
|
-
const n = or(pn, e.__scopeTooltip), r = po(pn, e.__scopeTooltip), o = K(null), s = Se(t, o), [a, i] =
|
|
6301
|
+
}), kd = /* @__PURE__ */ W((e, t) => {
|
|
6302
|
+
const n = or(pn, e.__scopeTooltip), r = po(pn, e.__scopeTooltip), o = K(null), s = Se(t, o), [a, i] = J(null), { trigger: c, onClose: l } = n, d = o.current, { onPointerInTransitChange: u } = r, p = F(() => {
|
|
6303
6303
|
i(null), u(!1);
|
|
6304
6304
|
}, [
|
|
6305
6305
|
u
|
|
@@ -6307,17 +6307,17 @@ const ya = /* @__PURE__ */ H((e, t) => /* @__PURE__ */ $(Ee.span, W({}, e, {
|
|
|
6307
6307
|
const w = f.currentTarget, b = {
|
|
6308
6308
|
x: f.clientX,
|
|
6309
6309
|
y: f.clientY
|
|
6310
|
-
}, g = Ld(b, w.getBoundingClientRect()), y = Fd(b, g),
|
|
6310
|
+
}, g = Ld(b, w.getBoundingClientRect()), y = Fd(b, g), $ = Vd(m.getBoundingClientRect()), _ = zd([
|
|
6311
6311
|
...y,
|
|
6312
|
-
|
|
6312
|
+
...$
|
|
6313
6313
|
]);
|
|
6314
6314
|
i(_), u(!0);
|
|
6315
6315
|
}, [
|
|
6316
6316
|
u
|
|
6317
6317
|
]);
|
|
6318
|
-
return
|
|
6318
|
+
return q(() => () => p(), [
|
|
6319
6319
|
p
|
|
6320
|
-
]),
|
|
6320
|
+
]), q(() => {
|
|
6321
6321
|
if (c && d) {
|
|
6322
6322
|
const f = (w) => h(w, d), m = (w) => h(w, c);
|
|
6323
6323
|
return c.addEventListener("pointerleave", f), d.addEventListener("pointerleave", m), () => {
|
|
@@ -6329,7 +6329,7 @@ const ya = /* @__PURE__ */ H((e, t) => /* @__PURE__ */ $(Ee.span, W({}, e, {
|
|
|
6329
6329
|
d,
|
|
6330
6330
|
h,
|
|
6331
6331
|
p
|
|
6332
|
-
]),
|
|
6332
|
+
]), q(() => {
|
|
6333
6333
|
if (a) {
|
|
6334
6334
|
const f = (m) => {
|
|
6335
6335
|
const w = m.target, b = {
|
|
@@ -6346,16 +6346,16 @@ const ya = /* @__PURE__ */ H((e, t) => /* @__PURE__ */ $(Ee.span, W({}, e, {
|
|
|
6346
6346
|
a,
|
|
6347
6347
|
l,
|
|
6348
6348
|
p
|
|
6349
|
-
]), /* @__PURE__ */
|
|
6349
|
+
]), /* @__PURE__ */ C($a, z({}, e, {
|
|
6350
6350
|
ref: s
|
|
6351
6351
|
}));
|
|
6352
6352
|
}), [jd, hv] = rr(mo, {
|
|
6353
6353
|
isInside: !1
|
|
6354
|
-
}), $a = /* @__PURE__ */
|
|
6354
|
+
}), $a = /* @__PURE__ */ W((e, t) => {
|
|
6355
6355
|
const { __scopeTooltip: n, children: r, "aria-label": o, onEscapeKeyDown: s, onPointerDownOutside: a, ...i } = e, c = or(pn, n), l = fo(n), { onClose: d } = c;
|
|
6356
|
-
return
|
|
6356
|
+
return q(() => (document.addEventListener(Lr, d), () => document.removeEventListener(Lr, d)), [
|
|
6357
6357
|
d
|
|
6358
|
-
]),
|
|
6358
|
+
]), q(() => {
|
|
6359
6359
|
if (c.trigger) {
|
|
6360
6360
|
const u = (p) => {
|
|
6361
6361
|
const h = p.target;
|
|
@@ -6370,14 +6370,14 @@ const ya = /* @__PURE__ */ H((e, t) => /* @__PURE__ */ $(Ee.span, W({}, e, {
|
|
|
6370
6370
|
}, [
|
|
6371
6371
|
c.trigger,
|
|
6372
6372
|
d
|
|
6373
|
-
]), /* @__PURE__ */
|
|
6373
|
+
]), /* @__PURE__ */ C(eo, {
|
|
6374
6374
|
asChild: !0,
|
|
6375
6375
|
disableOutsidePointerEvents: !1,
|
|
6376
6376
|
onEscapeKeyDown: s,
|
|
6377
6377
|
onPointerDownOutside: a,
|
|
6378
6378
|
onFocusOutside: (u) => u.preventDefault(),
|
|
6379
6379
|
onDismiss: d
|
|
6380
|
-
}, /* @__PURE__ */
|
|
6380
|
+
}, /* @__PURE__ */ C(uo, z({
|
|
6381
6381
|
"data-state": c.stateAttribute
|
|
6382
6382
|
}, l, i, {
|
|
6383
6383
|
ref: t,
|
|
@@ -6389,10 +6389,10 @@ const ya = /* @__PURE__ */ H((e, t) => /* @__PURE__ */ $(Ee.span, W({}, e, {
|
|
|
6389
6389
|
"--radix-tooltip-trigger-width": "var(--radix-popper-anchor-width)",
|
|
6390
6390
|
"--radix-tooltip-trigger-height": "var(--radix-popper-anchor-height)"
|
|
6391
6391
|
}
|
|
6392
|
-
}), /* @__PURE__ */
|
|
6392
|
+
}), /* @__PURE__ */ C(ra, null, r), /* @__PURE__ */ C(jd, {
|
|
6393
6393
|
scope: n,
|
|
6394
6394
|
isInside: !0
|
|
6395
|
-
}, /* @__PURE__ */
|
|
6395
|
+
}, /* @__PURE__ */ C(Ed, {
|
|
6396
6396
|
id: c.contentId,
|
|
6397
6397
|
role: "tooltip"
|
|
6398
6398
|
}, o || r))));
|
|
@@ -6655,11 +6655,11 @@ function ho(e) {
|
|
|
6655
6655
|
ref: g
|
|
6656
6656
|
}, w);
|
|
6657
6657
|
}), l = e + "CollectionItemSlot", d = "data-radix-collection-item", u = /* @__PURE__ */ Ne.forwardRef((h, f) => {
|
|
6658
|
-
const { scope: m, children: w, ...b } = h, g = Ne.useRef(null), y = Se(f, g),
|
|
6659
|
-
return Ne.useEffect(() => (
|
|
6658
|
+
const { scope: m, children: w, ...b } = h, g = Ne.useRef(null), y = Se(f, g), $ = s(l, m);
|
|
6659
|
+
return Ne.useEffect(() => ($.itemMap.set(g, {
|
|
6660
6660
|
ref: g,
|
|
6661
6661
|
...b
|
|
6662
|
-
}), () => void
|
|
6662
|
+
}), () => void $.itemMap.delete(g))), /* @__PURE__ */ Ne.createElement(Ut, {
|
|
6663
6663
|
[d]: "",
|
|
6664
6664
|
ref: y
|
|
6665
6665
|
}, w);
|
|
@@ -6672,7 +6672,7 @@ function ho(e) {
|
|
|
6672
6672
|
return [];
|
|
6673
6673
|
const b = Array.from(w.querySelectorAll(`[${d}]`));
|
|
6674
6674
|
return Array.from(f.itemMap.values()).sort(
|
|
6675
|
-
(
|
|
6675
|
+
($, _) => b.indexOf($.ref.current) - b.indexOf(_.ref.current)
|
|
6676
6676
|
);
|
|
6677
6677
|
}, [
|
|
6678
6678
|
f.collectionRef,
|
|
@@ -6696,7 +6696,7 @@ function vo(e) {
|
|
|
6696
6696
|
}
|
|
6697
6697
|
let xr = 0;
|
|
6698
6698
|
function Sa() {
|
|
6699
|
-
|
|
6699
|
+
q(() => {
|
|
6700
6700
|
var e, t;
|
|
6701
6701
|
const n = document.querySelectorAll("[data-radix-focus-guard]");
|
|
6702
6702
|
return document.body.insertAdjacentElement("afterbegin", (e = n[0]) !== null && e !== void 0 ? e : fs()), document.body.insertAdjacentElement("beforeend", (t = n[1]) !== null && t !== void 0 ? t : fs()), xr++, () => {
|
|
@@ -6713,8 +6713,8 @@ function fs() {
|
|
|
6713
6713
|
const wr = "focusScope.autoFocusOnMount", yr = "focusScope.autoFocusOnUnmount", ps = {
|
|
6714
6714
|
bubbles: !1,
|
|
6715
6715
|
cancelable: !0
|
|
6716
|
-
}, Ea = /* @__PURE__ */
|
|
6717
|
-
const { loop: n = !1, trapped: r = !1, onMountAutoFocus: o, onUnmountAutoFocus: s, ...a } = e, [i, c] =
|
|
6716
|
+
}, Ea = /* @__PURE__ */ W((e, t) => {
|
|
6717
|
+
const { loop: n = !1, trapped: r = !1, onMountAutoFocus: o, onUnmountAutoFocus: s, ...a } = e, [i, c] = J(null), l = He(o), d = He(s), u = K(null), p = Se(
|
|
6718
6718
|
t,
|
|
6719
6719
|
(m) => c(m)
|
|
6720
6720
|
), h = K({
|
|
@@ -6726,20 +6726,20 @@ const wr = "focusScope.autoFocusOnMount", yr = "focusScope.autoFocusOnUnmount",
|
|
|
6726
6726
|
this.paused = !1;
|
|
6727
6727
|
}
|
|
6728
6728
|
}).current;
|
|
6729
|
-
|
|
6729
|
+
q(() => {
|
|
6730
6730
|
if (r) {
|
|
6731
6731
|
let m = function(y) {
|
|
6732
6732
|
if (h.paused || !i)
|
|
6733
6733
|
return;
|
|
6734
|
-
const
|
|
6735
|
-
i.contains(
|
|
6734
|
+
const $ = y.target;
|
|
6735
|
+
i.contains($) ? u.current = $ : dt(u.current, {
|
|
6736
6736
|
select: !0
|
|
6737
6737
|
});
|
|
6738
6738
|
}, w = function(y) {
|
|
6739
6739
|
if (h.paused || !i)
|
|
6740
6740
|
return;
|
|
6741
|
-
const
|
|
6742
|
-
|
|
6741
|
+
const $ = y.relatedTarget;
|
|
6742
|
+
$ !== null && (i.contains($) || dt(u.current, {
|
|
6743
6743
|
select: !0
|
|
6744
6744
|
}));
|
|
6745
6745
|
}, b = function(y) {
|
|
@@ -6760,7 +6760,7 @@ const wr = "focusScope.autoFocusOnMount", yr = "focusScope.autoFocusOnUnmount",
|
|
|
6760
6760
|
r,
|
|
6761
6761
|
i,
|
|
6762
6762
|
h.paused
|
|
6763
|
-
]),
|
|
6763
|
+
]), q(() => {
|
|
6764
6764
|
if (i) {
|
|
6765
6765
|
hs.add(h);
|
|
6766
6766
|
const m = document.activeElement;
|
|
@@ -6790,10 +6790,10 @@ const wr = "focusScope.autoFocusOnMount", yr = "focusScope.autoFocusOnUnmount",
|
|
|
6790
6790
|
return;
|
|
6791
6791
|
const w = m.key === "Tab" && !m.altKey && !m.ctrlKey && !m.metaKey, b = document.activeElement;
|
|
6792
6792
|
if (w && b) {
|
|
6793
|
-
const g = m.currentTarget, [y,
|
|
6794
|
-
y &&
|
|
6793
|
+
const g = m.currentTarget, [y, $] = Qd(g);
|
|
6794
|
+
y && $ ? !m.shiftKey && b === $ ? (m.preventDefault(), n && dt(y, {
|
|
6795
6795
|
select: !0
|
|
6796
|
-
})) : m.shiftKey && b === y && (m.preventDefault(), n && dt(
|
|
6796
|
+
})) : m.shiftKey && b === y && (m.preventDefault(), n && dt($, {
|
|
6797
6797
|
select: !0
|
|
6798
6798
|
})) : b === g && m.preventDefault();
|
|
6799
6799
|
}
|
|
@@ -6802,7 +6802,7 @@ const wr = "focusScope.autoFocusOnMount", yr = "focusScope.autoFocusOnUnmount",
|
|
|
6802
6802
|
r,
|
|
6803
6803
|
h.paused
|
|
6804
6804
|
]);
|
|
6805
|
-
return /* @__PURE__ */
|
|
6805
|
+
return /* @__PURE__ */ C(Ee.div, z({
|
|
6806
6806
|
tabIndex: -1
|
|
6807
6807
|
}, a, {
|
|
6808
6808
|
ref: p,
|
|
@@ -6977,7 +6977,7 @@ function Cr(e, t) {
|
|
|
6977
6977
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
6978
6978
|
}
|
|
6979
6979
|
function pf(e, t) {
|
|
6980
|
-
var n =
|
|
6980
|
+
var n = J(function() {
|
|
6981
6981
|
return {
|
|
6982
6982
|
// value
|
|
6983
6983
|
value: e,
|
|
@@ -7118,12 +7118,12 @@ var Oa = xf(), Sr = function() {
|
|
|
7118
7118
|
onScrollCapture: Sr,
|
|
7119
7119
|
onWheelCapture: Sr,
|
|
7120
7120
|
onTouchMoveCapture: Sr
|
|
7121
|
-
}), o = r[0], s = r[1], a = e.forwardProps, i = e.children, c = e.className, l = e.removeScrollBar, d = e.enabled, u = e.shards, p = e.sideCar, h = e.noIsolation, f = e.inert, m = e.allowPinchZoom, w = e.as, b = w === void 0 ? "div" : w, g = lf(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as"]), y = p,
|
|
7121
|
+
}), o = r[0], s = r[1], a = e.forwardProps, i = e.children, c = e.className, l = e.removeScrollBar, d = e.enabled, u = e.shards, p = e.sideCar, h = e.noIsolation, f = e.inert, m = e.allowPinchZoom, w = e.as, b = w === void 0 ? "div" : w, g = lf(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as"]), y = p, $ = hf([n, t]), _ = vt(vt({}, g), o);
|
|
7122
7122
|
return B.createElement(
|
|
7123
7123
|
B.Fragment,
|
|
7124
7124
|
null,
|
|
7125
7125
|
d && B.createElement(y, { sideCar: Oa, removeScrollBar: l, shards: u, noIsolation: h, inert: f, setCallbacks: s, allowPinchZoom: !!m, lockRef: n }),
|
|
7126
|
-
a ? B.cloneElement(B.Children.only(i), vt(vt({}, _), { ref:
|
|
7126
|
+
a ? B.cloneElement(B.Children.only(i), vt(vt({}, _), { ref: $ })) : B.createElement(b, vt({}, _, { className: c, ref: $ }), i)
|
|
7127
7127
|
);
|
|
7128
7128
|
});
|
|
7129
7129
|
sr.defaultProps = {
|
|
@@ -7365,18 +7365,18 @@ function Hf(e) {
|
|
|
7365
7365
|
var i = B.useCallback(function(m, w) {
|
|
7366
7366
|
if ("touches" in m && m.touches.length === 2)
|
|
7367
7367
|
return !a.current.allowPinchZoom;
|
|
7368
|
-
var b = Pn(m), g = n.current, y = "deltaX" in m ? m.deltaX : g[0] - b[0],
|
|
7369
|
-
if ("touches" in m && T === "h" &&
|
|
7368
|
+
var b = Pn(m), g = n.current, y = "deltaX" in m ? m.deltaX : g[0] - b[0], $ = "deltaY" in m ? m.deltaY : g[1] - b[1], _, D = m.target, T = Math.abs(y) > Math.abs($) ? "h" : "v";
|
|
7369
|
+
if ("touches" in m && T === "h" && D.type === "range")
|
|
7370
7370
|
return !1;
|
|
7371
|
-
var E = xs(T,
|
|
7371
|
+
var E = xs(T, D);
|
|
7372
7372
|
if (!E)
|
|
7373
7373
|
return !0;
|
|
7374
|
-
if (E ? _ = T : (_ = T === "v" ? "h" : "v", E = xs(T,
|
|
7374
|
+
if (E ? _ = T : (_ = T === "v" ? "h" : "v", E = xs(T, D)), !E)
|
|
7375
7375
|
return !1;
|
|
7376
|
-
if (!r.current && "changedTouches" in m && (y ||
|
|
7376
|
+
if (!r.current && "changedTouches" in m && (y || $) && (r.current = _), !_)
|
|
7377
7377
|
return !0;
|
|
7378
|
-
var
|
|
7379
|
-
return Vf(
|
|
7378
|
+
var M = r.current || _;
|
|
7379
|
+
return Vf(M, w, m, M === "h" ? y : $, !0);
|
|
7380
7380
|
}, []), c = B.useCallback(function(m) {
|
|
7381
7381
|
var w = m;
|
|
7382
7382
|
if (!(!kt.length || kt[kt.length - 1] !== s)) {
|
|
@@ -7390,15 +7390,15 @@ function Hf(e) {
|
|
|
7390
7390
|
if (!g) {
|
|
7391
7391
|
var y = (a.current.shards || []).map(ys).filter(Boolean).filter(function(_) {
|
|
7392
7392
|
return _.contains(w.target);
|
|
7393
|
-
}),
|
|
7394
|
-
|
|
7393
|
+
}), $ = y.length > 0 ? i(w, y[0]) : !a.current.noIsolation;
|
|
7394
|
+
$ && w.cancelable && w.preventDefault();
|
|
7395
7395
|
}
|
|
7396
7396
|
}
|
|
7397
7397
|
}, []), l = B.useCallback(function(m, w, b, g) {
|
|
7398
7398
|
var y = { name: m, delta: w, target: b, should: g };
|
|
7399
7399
|
t.current.push(y), setTimeout(function() {
|
|
7400
|
-
t.current = t.current.filter(function(
|
|
7401
|
-
return
|
|
7400
|
+
t.current = t.current.filter(function($) {
|
|
7401
|
+
return $ !== y;
|
|
7402
7402
|
});
|
|
7403
7403
|
}, 1);
|
|
7404
7404
|
}, []), d = B.useCallback(function(m) {
|
|
@@ -7444,18 +7444,18 @@ const Kf = [
|
|
|
7444
7444
|
Yf,
|
|
7445
7445
|
en
|
|
7446
7446
|
]), bo = en(), [Xf, Rt] = nn(ar), [qf, Zf] = nn(ar), Jf = (e) => {
|
|
7447
|
-
const { __scopeSelect: t, children: n, open: r, defaultOpen: o, onOpenChange: s, value: a, defaultValue: i, onValueChange: c, dir: l, name: d, autoComplete: u, disabled: p, required: h } = e, f = bo(t), [m, w] =
|
|
7447
|
+
const { __scopeSelect: t, children: n, open: r, defaultOpen: o, onOpenChange: s, value: a, defaultValue: i, onValueChange: c, dir: l, name: d, autoComplete: u, disabled: p, required: h } = e, f = bo(t), [m, w] = J(null), [b, g] = J(null), [y, $] = J(!1), _ = vo(l), [D = !1, T] = fn({
|
|
7448
7448
|
prop: r,
|
|
7449
7449
|
defaultProp: o,
|
|
7450
7450
|
onChange: s
|
|
7451
|
-
}), [E,
|
|
7451
|
+
}), [E, M] = fn({
|
|
7452
7452
|
prop: a,
|
|
7453
7453
|
defaultProp: i,
|
|
7454
7454
|
onChange: c
|
|
7455
|
-
}),
|
|
7455
|
+
}), k = K(null), H = m ? !!m.closest("form") : !0, [N, Q] = J(/* @__PURE__ */ new Set()), G = Array.from(N).map(
|
|
7456
7456
|
(A) => A.props.value
|
|
7457
7457
|
).join(";");
|
|
7458
|
-
return /* @__PURE__ */
|
|
7458
|
+
return /* @__PURE__ */ C(co, f, /* @__PURE__ */ C(Xf, {
|
|
7459
7459
|
required: h,
|
|
7460
7460
|
scope: t,
|
|
7461
7461
|
trigger: m,
|
|
@@ -7463,31 +7463,31 @@ const Kf = [
|
|
|
7463
7463
|
valueNode: b,
|
|
7464
7464
|
onValueNodeChange: g,
|
|
7465
7465
|
valueNodeHasChildren: y,
|
|
7466
|
-
onValueNodeHasChildrenChange:
|
|
7466
|
+
onValueNodeHasChildrenChange: $,
|
|
7467
7467
|
contentId: Kt(),
|
|
7468
7468
|
value: E,
|
|
7469
|
-
onValueChange:
|
|
7470
|
-
open:
|
|
7469
|
+
onValueChange: M,
|
|
7470
|
+
open: D,
|
|
7471
7471
|
onOpenChange: T,
|
|
7472
7472
|
dir: _,
|
|
7473
|
-
triggerPointerDownPosRef:
|
|
7473
|
+
triggerPointerDownPosRef: k,
|
|
7474
7474
|
disabled: p
|
|
7475
|
-
}, /* @__PURE__ */
|
|
7475
|
+
}, /* @__PURE__ */ C(ir.Provider, {
|
|
7476
7476
|
scope: t
|
|
7477
|
-
}, /* @__PURE__ */
|
|
7477
|
+
}, /* @__PURE__ */ C(qf, {
|
|
7478
7478
|
scope: e.__scopeSelect,
|
|
7479
7479
|
onNativeOptionAdd: F((A) => {
|
|
7480
7480
|
Q(
|
|
7481
|
-
(
|
|
7481
|
+
(I) => new Set(I).add(A)
|
|
7482
7482
|
);
|
|
7483
7483
|
}, []),
|
|
7484
7484
|
onNativeOptionRemove: F((A) => {
|
|
7485
|
-
Q((
|
|
7486
|
-
const P = new Set(
|
|
7485
|
+
Q((I) => {
|
|
7486
|
+
const P = new Set(I);
|
|
7487
7487
|
return P.delete(A), P;
|
|
7488
7488
|
});
|
|
7489
7489
|
}, [])
|
|
7490
|
-
}, n)),
|
|
7490
|
+
}, n)), H ? /* @__PURE__ */ C(Fa, {
|
|
7491
7491
|
key: G,
|
|
7492
7492
|
"aria-hidden": !0,
|
|
7493
7493
|
required: h,
|
|
@@ -7495,12 +7495,12 @@ const Kf = [
|
|
|
7495
7495
|
name: d,
|
|
7496
7496
|
autoComplete: u,
|
|
7497
7497
|
value: E,
|
|
7498
|
-
onChange: (A) =>
|
|
7498
|
+
onChange: (A) => M(A.target.value),
|
|
7499
7499
|
disabled: p
|
|
7500
|
-
}, E === void 0 ? /* @__PURE__ */
|
|
7500
|
+
}, E === void 0 ? /* @__PURE__ */ C("option", {
|
|
7501
7501
|
value: ""
|
|
7502
7502
|
}) : null, Array.from(N)) : null));
|
|
7503
|
-
}, Qf = "SelectTrigger", ep = /* @__PURE__ */
|
|
7503
|
+
}, Qf = "SelectTrigger", ep = /* @__PURE__ */ W((e, t) => {
|
|
7504
7504
|
const { __scopeSelect: n, disabled: r = !1, ...o } = e, s = bo(n), a = Rt(Qf, n), i = a.disabled || r, c = Se(t, a.onTriggerChange), l = cr(n), [d, u, p] = Va((f) => {
|
|
7505
7505
|
const m = l().filter(
|
|
7506
7506
|
(g) => !g.disabled
|
|
@@ -7511,9 +7511,9 @@ const Kf = [
|
|
|
7511
7511
|
}), h = () => {
|
|
7512
7512
|
i || (a.onOpenChange(!0), p());
|
|
7513
7513
|
};
|
|
7514
|
-
return /* @__PURE__ */
|
|
7514
|
+
return /* @__PURE__ */ C(lo, z({
|
|
7515
7515
|
asChild: !0
|
|
7516
|
-
}, s), /* @__PURE__ */
|
|
7516
|
+
}, s), /* @__PURE__ */ C(Ee.button, z({
|
|
7517
7517
|
type: "button",
|
|
7518
7518
|
role: "combobox",
|
|
7519
7519
|
"aria-controls": a.contentId,
|
|
@@ -7527,59 +7527,59 @@ const Kf = [
|
|
|
7527
7527
|
"data-placeholder": La(a.value) ? "" : void 0
|
|
7528
7528
|
}, o, {
|
|
7529
7529
|
ref: c,
|
|
7530
|
-
onClick:
|
|
7530
|
+
onClick: Z(o.onClick, (f) => {
|
|
7531
7531
|
f.currentTarget.focus();
|
|
7532
7532
|
}),
|
|
7533
|
-
onPointerDown:
|
|
7533
|
+
onPointerDown: Z(o.onPointerDown, (f) => {
|
|
7534
7534
|
const m = f.target;
|
|
7535
7535
|
m.hasPointerCapture(f.pointerId) && m.releasePointerCapture(f.pointerId), f.button === 0 && f.ctrlKey === !1 && (h(), a.triggerPointerDownPosRef.current = {
|
|
7536
7536
|
x: Math.round(f.pageX),
|
|
7537
7537
|
y: Math.round(f.pageY)
|
|
7538
7538
|
}, f.preventDefault());
|
|
7539
7539
|
}),
|
|
7540
|
-
onKeyDown:
|
|
7540
|
+
onKeyDown: Z(o.onKeyDown, (f) => {
|
|
7541
7541
|
const m = d.current !== "";
|
|
7542
7542
|
!(f.ctrlKey || f.altKey || f.metaKey) && f.key.length === 1 && u(f.key), !(m && f.key === " ") && Kf.includes(f.key) && (h(), f.preventDefault());
|
|
7543
7543
|
})
|
|
7544
7544
|
})));
|
|
7545
|
-
}), tp = "SelectValue", np = /* @__PURE__ */
|
|
7545
|
+
}), tp = "SelectValue", np = /* @__PURE__ */ W((e, t) => {
|
|
7546
7546
|
const { __scopeSelect: n, className: r, style: o, children: s, placeholder: a = "", ...i } = e, c = Rt(tp, n), { onValueNodeHasChildrenChange: l } = c, d = s !== void 0, u = Se(t, c.onValueNodeChange);
|
|
7547
7547
|
return je(() => {
|
|
7548
7548
|
l(d);
|
|
7549
7549
|
}, [
|
|
7550
7550
|
l,
|
|
7551
7551
|
d
|
|
7552
|
-
]), /* @__PURE__ */
|
|
7552
|
+
]), /* @__PURE__ */ C(Ee.span, z({}, i, {
|
|
7553
7553
|
ref: u,
|
|
7554
7554
|
style: {
|
|
7555
7555
|
pointerEvents: "none"
|
|
7556
7556
|
}
|
|
7557
|
-
}), La(c.value) ? /* @__PURE__ */
|
|
7558
|
-
}), rp = /* @__PURE__ */
|
|
7557
|
+
}), La(c.value) ? /* @__PURE__ */ C(Xt, null, a) : s);
|
|
7558
|
+
}), rp = /* @__PURE__ */ W((e, t) => {
|
|
7559
7559
|
const { __scopeSelect: n, children: r, ...o } = e;
|
|
7560
|
-
return /* @__PURE__ */
|
|
7560
|
+
return /* @__PURE__ */ C(Ee.span, z({
|
|
7561
7561
|
"aria-hidden": !0
|
|
7562
7562
|
}, o, {
|
|
7563
7563
|
ref: t
|
|
7564
7564
|
}), r || "▼");
|
|
7565
|
-
}), op = (e) => /* @__PURE__ */
|
|
7565
|
+
}), op = (e) => /* @__PURE__ */ C(wa, z({
|
|
7566
7566
|
asChild: !0
|
|
7567
|
-
}, e)), Yt = "SelectContent", sp = /* @__PURE__ */
|
|
7568
|
-
const n = Rt(Yt, e.__scopeSelect), [r, o] =
|
|
7567
|
+
}, e)), Yt = "SelectContent", sp = /* @__PURE__ */ W((e, t) => {
|
|
7568
|
+
const n = Rt(Yt, e.__scopeSelect), [r, o] = J();
|
|
7569
7569
|
if (je(() => {
|
|
7570
7570
|
o(new DocumentFragment());
|
|
7571
7571
|
}, []), !n.open) {
|
|
7572
7572
|
const s = r;
|
|
7573
|
-
return s ? /* @__PURE__ */ Xr(/* @__PURE__ */
|
|
7573
|
+
return s ? /* @__PURE__ */ Xr(/* @__PURE__ */ C(Aa, {
|
|
7574
7574
|
scope: e.__scopeSelect
|
|
7575
|
-
}, /* @__PURE__ */
|
|
7575
|
+
}, /* @__PURE__ */ C(ir.Slot, {
|
|
7576
7576
|
scope: e.__scopeSelect
|
|
7577
|
-
}, /* @__PURE__ */
|
|
7577
|
+
}, /* @__PURE__ */ C("div", null, e.children))), s) : null;
|
|
7578
7578
|
}
|
|
7579
|
-
return /* @__PURE__ */
|
|
7579
|
+
return /* @__PURE__ */ C(ap, z({}, e, {
|
|
7580
7580
|
ref: t
|
|
7581
7581
|
}));
|
|
7582
|
-
}), nt = 10, [Aa, Pt] = nn(Yt), ap = /* @__PURE__ */
|
|
7582
|
+
}), nt = 10, [Aa, Pt] = nn(Yt), ap = /* @__PURE__ */ W((e, t) => {
|
|
7583
7583
|
const {
|
|
7584
7584
|
__scopeSelect: n,
|
|
7585
7585
|
position: r = "item-aligned",
|
|
@@ -7598,17 +7598,17 @@ const Kf = [
|
|
|
7598
7598
|
avoidCollisions: w,
|
|
7599
7599
|
//
|
|
7600
7600
|
...b
|
|
7601
|
-
} = e, g = Rt(Yt, n), [y,
|
|
7601
|
+
} = e, g = Rt(Yt, n), [y, $] = J(null), [_, D] = J(null), T = Se(
|
|
7602
7602
|
t,
|
|
7603
|
-
(X) =>
|
|
7604
|
-
), [E,
|
|
7605
|
-
|
|
7603
|
+
(X) => $(X)
|
|
7604
|
+
), [E, M] = J(null), [k, H] = J(null), N = cr(n), [Q, G] = J(!1), A = K(!1);
|
|
7605
|
+
q(() => {
|
|
7606
7606
|
if (y)
|
|
7607
7607
|
return Ra(y);
|
|
7608
7608
|
}, [
|
|
7609
7609
|
y
|
|
7610
7610
|
]), Sa();
|
|
7611
|
-
const
|
|
7611
|
+
const I = F((X) => {
|
|
7612
7612
|
const [se, ...oe] = N().map(
|
|
7613
7613
|
(fe) => fe.ref.current
|
|
7614
7614
|
), [ce] = oe.slice(-1), de = document.activeElement;
|
|
@@ -7621,24 +7621,24 @@ const Kf = [
|
|
|
7621
7621
|
N,
|
|
7622
7622
|
_
|
|
7623
7623
|
]), P = F(
|
|
7624
|
-
() =>
|
|
7624
|
+
() => I([
|
|
7625
7625
|
E,
|
|
7626
7626
|
y
|
|
7627
7627
|
]),
|
|
7628
7628
|
[
|
|
7629
|
-
|
|
7629
|
+
I,
|
|
7630
7630
|
E,
|
|
7631
7631
|
y
|
|
7632
7632
|
]
|
|
7633
7633
|
);
|
|
7634
|
-
|
|
7634
|
+
q(() => {
|
|
7635
7635
|
Q && P();
|
|
7636
7636
|
}, [
|
|
7637
7637
|
Q,
|
|
7638
7638
|
P
|
|
7639
7639
|
]);
|
|
7640
7640
|
const { onOpenChange: ee, triggerPointerDownPosRef: S } = g;
|
|
7641
|
-
|
|
7641
|
+
q(() => {
|
|
7642
7642
|
if (y) {
|
|
7643
7643
|
let X = {
|
|
7644
7644
|
x: 0,
|
|
@@ -7666,7 +7666,7 @@ const Kf = [
|
|
|
7666
7666
|
y,
|
|
7667
7667
|
ee,
|
|
7668
7668
|
S
|
|
7669
|
-
]),
|
|
7669
|
+
]), q(() => {
|
|
7670
7670
|
const X = () => ee(!1);
|
|
7671
7671
|
return window.addEventListener("blur", X), window.addEventListener("resize", X), () => {
|
|
7672
7672
|
window.removeEventListener("blur", X), window.removeEventListener("resize", X);
|
|
@@ -7674,7 +7674,7 @@ const Kf = [
|
|
|
7674
7674
|
}, [
|
|
7675
7675
|
ee
|
|
7676
7676
|
]);
|
|
7677
|
-
const [
|
|
7677
|
+
const [O, j] = Va((X) => {
|
|
7678
7678
|
const se = N().filter(
|
|
7679
7679
|
(de) => !de.disabled
|
|
7680
7680
|
), oe = se.find(
|
|
@@ -7685,7 +7685,7 @@ const Kf = [
|
|
|
7685
7685
|
);
|
|
7686
7686
|
}), Y = F((X, se, oe) => {
|
|
7687
7687
|
const ce = !A.current && !oe;
|
|
7688
|
-
(g.value !== void 0 && g.value === se || ce) && (
|
|
7688
|
+
(g.value !== void 0 && g.value === se || ce) && (M(X), ce && (A.current = !0));
|
|
7689
7689
|
}, [
|
|
7690
7690
|
g.value
|
|
7691
7691
|
]), le = F(
|
|
@@ -7695,7 +7695,7 @@ const Kf = [
|
|
|
7695
7695
|
]
|
|
7696
7696
|
), ae = F((X, se, oe) => {
|
|
7697
7697
|
const ce = !A.current && !oe;
|
|
7698
|
-
(g.value !== void 0 && g.value === se || ce) &&
|
|
7698
|
+
(g.value !== void 0 && g.value === se || ce) && H(X);
|
|
7699
7699
|
}, [
|
|
7700
7700
|
g.value
|
|
7701
7701
|
]), be = r === "popper" ? $s : ip, we = be === $s ? {
|
|
@@ -7710,43 +7710,43 @@ const Kf = [
|
|
|
7710
7710
|
hideWhenDetached: m,
|
|
7711
7711
|
avoidCollisions: w
|
|
7712
7712
|
} : {};
|
|
7713
|
-
return /* @__PURE__ */
|
|
7713
|
+
return /* @__PURE__ */ C(Aa, {
|
|
7714
7714
|
scope: n,
|
|
7715
7715
|
content: y,
|
|
7716
7716
|
viewport: _,
|
|
7717
|
-
onViewportChange:
|
|
7717
|
+
onViewportChange: D,
|
|
7718
7718
|
itemRefCallback: Y,
|
|
7719
7719
|
selectedItem: E,
|
|
7720
7720
|
onItemLeave: le,
|
|
7721
7721
|
itemTextRefCallback: ae,
|
|
7722
7722
|
focusSelectedItem: P,
|
|
7723
|
-
selectedItemText:
|
|
7723
|
+
selectedItemText: k,
|
|
7724
7724
|
position: r,
|
|
7725
7725
|
isPositioned: Q,
|
|
7726
|
-
searchRef:
|
|
7727
|
-
}, /* @__PURE__ */
|
|
7726
|
+
searchRef: O
|
|
7727
|
+
}, /* @__PURE__ */ C(go, {
|
|
7728
7728
|
as: Ut,
|
|
7729
7729
|
allowPinchZoom: !0
|
|
7730
|
-
}, /* @__PURE__ */
|
|
7730
|
+
}, /* @__PURE__ */ C(Ea, {
|
|
7731
7731
|
asChild: !0,
|
|
7732
7732
|
trapped: g.open,
|
|
7733
7733
|
onMountAutoFocus: (X) => {
|
|
7734
7734
|
X.preventDefault();
|
|
7735
7735
|
},
|
|
7736
|
-
onUnmountAutoFocus:
|
|
7736
|
+
onUnmountAutoFocus: Z(o, (X) => {
|
|
7737
7737
|
var se;
|
|
7738
7738
|
(se = g.trigger) === null || se === void 0 || se.focus({
|
|
7739
7739
|
preventScroll: !0
|
|
7740
7740
|
}), X.preventDefault();
|
|
7741
7741
|
})
|
|
7742
|
-
}, /* @__PURE__ */
|
|
7742
|
+
}, /* @__PURE__ */ C(eo, {
|
|
7743
7743
|
asChild: !0,
|
|
7744
7744
|
disableOutsidePointerEvents: !0,
|
|
7745
7745
|
onEscapeKeyDown: s,
|
|
7746
7746
|
onPointerDownOutside: a,
|
|
7747
7747
|
onFocusOutside: (X) => X.preventDefault(),
|
|
7748
7748
|
onDismiss: () => g.onOpenChange(!1)
|
|
7749
|
-
}, /* @__PURE__ */
|
|
7749
|
+
}, /* @__PURE__ */ C(be, z({
|
|
7750
7750
|
role: "listbox",
|
|
7751
7751
|
id: g.contentId,
|
|
7752
7752
|
"data-state": g.open ? "open" : "closed",
|
|
@@ -7763,7 +7763,7 @@ const Kf = [
|
|
|
7763
7763
|
outline: "none",
|
|
7764
7764
|
...b.style
|
|
7765
7765
|
},
|
|
7766
|
-
onKeyDown:
|
|
7766
|
+
onKeyDown: Z(b.onKeyDown, (X) => {
|
|
7767
7767
|
const se = X.ctrlKey || X.altKey || X.metaKey;
|
|
7768
7768
|
if (X.key === "Tab" && X.preventDefault(), !se && X.key.length === 1 && j(X.key), [
|
|
7769
7769
|
"ArrowUp",
|
|
@@ -7787,44 +7787,44 @@ const Kf = [
|
|
|
7787
7787
|
ce = ce.slice(fe + 1);
|
|
7788
7788
|
}
|
|
7789
7789
|
setTimeout(
|
|
7790
|
-
() =>
|
|
7790
|
+
() => I(ce)
|
|
7791
7791
|
), X.preventDefault();
|
|
7792
7792
|
}
|
|
7793
7793
|
})
|
|
7794
7794
|
}))))));
|
|
7795
|
-
}), ip = /* @__PURE__ */
|
|
7796
|
-
const { __scopeSelect: n, onPlaced: r, ...o } = e, s = Rt(Yt, n), a = Pt(Yt, n), [i, c] =
|
|
7795
|
+
}), ip = /* @__PURE__ */ W((e, t) => {
|
|
7796
|
+
const { __scopeSelect: n, onPlaced: r, ...o } = e, s = Rt(Yt, n), a = Pt(Yt, n), [i, c] = J(null), [l, d] = J(null), u = Se(
|
|
7797
7797
|
t,
|
|
7798
7798
|
(T) => d(T)
|
|
7799
7799
|
), p = cr(n), h = K(!1), f = K(!0), { viewport: m, selectedItem: w, selectedItemText: b, focusSelectedItem: g } = a, y = F(() => {
|
|
7800
7800
|
if (s.trigger && s.valueNode && i && l && m && w && b) {
|
|
7801
|
-
const T = s.trigger.getBoundingClientRect(), E = l.getBoundingClientRect(),
|
|
7801
|
+
const T = s.trigger.getBoundingClientRect(), E = l.getBoundingClientRect(), M = s.valueNode.getBoundingClientRect(), k = b.getBoundingClientRect();
|
|
7802
7802
|
if (s.dir !== "rtl") {
|
|
7803
|
-
const de =
|
|
7803
|
+
const de = k.left - E.left, fe = M.left - de, Re = T.left - fe, Me = T.width + Re, L = Math.max(Me, E.width), U = window.innerWidth - nt, re = ds(fe, [
|
|
7804
7804
|
nt,
|
|
7805
7805
|
U - L
|
|
7806
7806
|
]);
|
|
7807
7807
|
i.style.minWidth = Me + "px", i.style.left = re + "px";
|
|
7808
7808
|
} else {
|
|
7809
|
-
const de = E.right -
|
|
7809
|
+
const de = E.right - k.right, fe = window.innerWidth - M.right - de, Re = window.innerWidth - T.right - fe, Me = T.width + Re, L = Math.max(Me, E.width), U = window.innerWidth - nt, re = ds(fe, [
|
|
7810
7810
|
nt,
|
|
7811
7811
|
U - L
|
|
7812
7812
|
]);
|
|
7813
7813
|
i.style.minWidth = Me + "px", i.style.right = re + "px";
|
|
7814
7814
|
}
|
|
7815
|
-
const
|
|
7815
|
+
const H = p(), N = window.innerHeight - nt * 2, Q = m.scrollHeight, G = window.getComputedStyle(l), A = parseInt(G.borderTopWidth, 10), I = parseInt(G.paddingTop, 10), P = parseInt(G.borderBottomWidth, 10), ee = parseInt(G.paddingBottom, 10), S = A + I + Q + ee + P, O = Math.min(w.offsetHeight * 5, S), j = window.getComputedStyle(m), Y = parseInt(j.paddingTop, 10), le = parseInt(j.paddingBottom, 10), ae = T.top + T.height / 2 - nt, be = N - ae, we = w.offsetHeight / 2, X = w.offsetTop + we, se = A + I + X, oe = S - se;
|
|
7816
7816
|
if (se <= ae) {
|
|
7817
|
-
const de = w ===
|
|
7817
|
+
const de = w === H[H.length - 1].ref.current;
|
|
7818
7818
|
i.style.bottom = "0px";
|
|
7819
7819
|
const fe = l.clientHeight - m.offsetTop - m.offsetHeight, Re = Math.max(be, we + (de ? le : 0) + fe + P), Me = se + Re;
|
|
7820
7820
|
i.style.height = Me + "px";
|
|
7821
7821
|
} else {
|
|
7822
|
-
const de = w ===
|
|
7822
|
+
const de = w === H[0].ref.current;
|
|
7823
7823
|
i.style.top = "0px";
|
|
7824
7824
|
const Re = Math.max(ae, A + m.offsetTop + (de ? Y : 0) + we) + oe;
|
|
7825
7825
|
i.style.height = Re + "px", m.scrollTop = se - ae + m.offsetTop;
|
|
7826
7826
|
}
|
|
7827
|
-
i.style.margin = `${nt}px 0`, i.style.minHeight =
|
|
7827
|
+
i.style.margin = `${nt}px 0`, i.style.minHeight = O + "px", i.style.maxHeight = N + "px", r?.(), requestAnimationFrame(
|
|
7828
7828
|
() => h.current = !0
|
|
7829
7829
|
);
|
|
7830
7830
|
}
|
|
@@ -7846,32 +7846,32 @@ const Kf = [
|
|
|
7846
7846
|
y
|
|
7847
7847
|
]
|
|
7848
7848
|
);
|
|
7849
|
-
const [
|
|
7849
|
+
const [$, _] = J();
|
|
7850
7850
|
je(() => {
|
|
7851
7851
|
l && _(window.getComputedStyle(l).zIndex);
|
|
7852
7852
|
}, [
|
|
7853
7853
|
l
|
|
7854
7854
|
]);
|
|
7855
|
-
const
|
|
7855
|
+
const D = F((T) => {
|
|
7856
7856
|
T && f.current === !0 && (y(), g?.(), f.current = !1);
|
|
7857
7857
|
}, [
|
|
7858
7858
|
y,
|
|
7859
7859
|
g
|
|
7860
7860
|
]);
|
|
7861
|
-
return /* @__PURE__ */
|
|
7861
|
+
return /* @__PURE__ */ C(cp, {
|
|
7862
7862
|
scope: n,
|
|
7863
7863
|
contentWrapper: i,
|
|
7864
7864
|
shouldExpandOnScrollRef: h,
|
|
7865
|
-
onScrollButtonChange:
|
|
7866
|
-
}, /* @__PURE__ */
|
|
7865
|
+
onScrollButtonChange: D
|
|
7866
|
+
}, /* @__PURE__ */ C("div", {
|
|
7867
7867
|
ref: c,
|
|
7868
7868
|
style: {
|
|
7869
7869
|
display: "flex",
|
|
7870
7870
|
flexDirection: "column",
|
|
7871
7871
|
position: "fixed",
|
|
7872
|
-
zIndex:
|
|
7872
|
+
zIndex: $
|
|
7873
7873
|
}
|
|
7874
|
-
}, /* @__PURE__ */
|
|
7874
|
+
}, /* @__PURE__ */ C(Ee.div, z({}, o, {
|
|
7875
7875
|
ref: u,
|
|
7876
7876
|
style: {
|
|
7877
7877
|
// When we get the height of the content, it includes borders. If we were to set
|
|
@@ -7882,9 +7882,9 @@ const Kf = [
|
|
|
7882
7882
|
...o.style
|
|
7883
7883
|
}
|
|
7884
7884
|
}))));
|
|
7885
|
-
}), $s = /* @__PURE__ */
|
|
7885
|
+
}), $s = /* @__PURE__ */ W((e, t) => {
|
|
7886
7886
|
const { __scopeSelect: n, align: r = "start", collisionPadding: o = nt, ...s } = e, a = bo(n);
|
|
7887
|
-
return /* @__PURE__ */
|
|
7887
|
+
return /* @__PURE__ */ C(uo, z({}, a, s, {
|
|
7888
7888
|
ref: t,
|
|
7889
7889
|
align: r,
|
|
7890
7890
|
collisionPadding: o,
|
|
@@ -7899,15 +7899,15 @@ const Kf = [
|
|
|
7899
7899
|
"--radix-select-trigger-height": "var(--radix-popper-anchor-height)"
|
|
7900
7900
|
}
|
|
7901
7901
|
}));
|
|
7902
|
-
}), [cp, xo] = nn(Yt, {}), Cs = "SelectViewport", lp = /* @__PURE__ */
|
|
7902
|
+
}), [cp, xo] = nn(Yt, {}), Cs = "SelectViewport", lp = /* @__PURE__ */ W((e, t) => {
|
|
7903
7903
|
const { __scopeSelect: n, ...r } = e, o = Pt(Cs, n), s = xo(Cs, n), a = Se(t, o.onViewportChange), i = K(0);
|
|
7904
|
-
return /* @__PURE__ */
|
|
7904
|
+
return /* @__PURE__ */ C(Xt, null, /* @__PURE__ */ C("style", {
|
|
7905
7905
|
dangerouslySetInnerHTML: {
|
|
7906
7906
|
__html: "[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"
|
|
7907
7907
|
}
|
|
7908
|
-
}), /* @__PURE__ */
|
|
7908
|
+
}), /* @__PURE__ */ C(ir.Slot, {
|
|
7909
7909
|
scope: n
|
|
7910
|
-
}, /* @__PURE__ */
|
|
7910
|
+
}, /* @__PURE__ */ C(Ee.div, z({
|
|
7911
7911
|
"data-radix-select-viewport": "",
|
|
7912
7912
|
role: "presentation"
|
|
7913
7913
|
}, r, {
|
|
@@ -7921,7 +7921,7 @@ const Kf = [
|
|
|
7921
7921
|
overflow: "auto",
|
|
7922
7922
|
...r.style
|
|
7923
7923
|
},
|
|
7924
|
-
onScroll:
|
|
7924
|
+
onScroll: Z(r.onScroll, (c) => {
|
|
7925
7925
|
const l = c.currentTarget, { contentWrapper: d, shouldExpandOnScrollRef: u } = s;
|
|
7926
7926
|
if (u != null && u.current && d) {
|
|
7927
7927
|
const p = Math.abs(i.current - l.scrollTop);
|
|
@@ -7936,15 +7936,15 @@ const Kf = [
|
|
|
7936
7936
|
i.current = l.scrollTop;
|
|
7937
7937
|
})
|
|
7938
7938
|
}))));
|
|
7939
|
-
}), up = "SelectGroup", [gv, dp] = nn(up), fp = "SelectLabel", pp = /* @__PURE__ */
|
|
7939
|
+
}), up = "SelectGroup", [gv, dp] = nn(up), fp = "SelectLabel", pp = /* @__PURE__ */ W((e, t) => {
|
|
7940
7940
|
const { __scopeSelect: n, ...r } = e, o = dp(fp, n);
|
|
7941
|
-
return /* @__PURE__ */
|
|
7941
|
+
return /* @__PURE__ */ C(Ee.div, z({
|
|
7942
7942
|
id: o.id
|
|
7943
7943
|
}, r, {
|
|
7944
7944
|
ref: t
|
|
7945
7945
|
}));
|
|
7946
|
-
}), Vr = "SelectItem", [mp, ka] = nn(Vr), hp = /* @__PURE__ */
|
|
7947
|
-
const { __scopeSelect: n, value: r, disabled: o = !1, textValue: s, ...a } = e, i = Rt(Vr, n), c = Pt(Vr, n), l = i.value === r, [d, u] =
|
|
7946
|
+
}), Vr = "SelectItem", [mp, ka] = nn(Vr), hp = /* @__PURE__ */ W((e, t) => {
|
|
7947
|
+
const { __scopeSelect: n, value: r, disabled: o = !1, textValue: s, ...a } = e, i = Rt(Vr, n), c = Pt(Vr, n), l = i.value === r, [d, u] = J(s ?? ""), [p, h] = J(!1), f = Se(t, (b) => {
|
|
7948
7948
|
var g;
|
|
7949
7949
|
return (g = c.itemRefCallback) === null || g === void 0 ? void 0 : g.call(c, b, r, o);
|
|
7950
7950
|
}), m = Kt(), w = () => {
|
|
@@ -7952,7 +7952,7 @@ const Kf = [
|
|
|
7952
7952
|
};
|
|
7953
7953
|
if (r === "")
|
|
7954
7954
|
throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");
|
|
7955
|
-
return /* @__PURE__ */
|
|
7955
|
+
return /* @__PURE__ */ C(mp, {
|
|
7956
7956
|
scope: n,
|
|
7957
7957
|
value: r,
|
|
7958
7958
|
disabled: o,
|
|
@@ -7964,12 +7964,12 @@ const Kf = [
|
|
|
7964
7964
|
return g || ((y = b?.textContent) !== null && y !== void 0 ? y : "").trim();
|
|
7965
7965
|
});
|
|
7966
7966
|
}, [])
|
|
7967
|
-
}, /* @__PURE__ */
|
|
7967
|
+
}, /* @__PURE__ */ C(ir.ItemSlot, {
|
|
7968
7968
|
scope: n,
|
|
7969
7969
|
value: r,
|
|
7970
7970
|
disabled: o,
|
|
7971
7971
|
textValue: d
|
|
7972
|
-
}, /* @__PURE__ */
|
|
7972
|
+
}, /* @__PURE__ */ C(Ee.div, z({
|
|
7973
7973
|
role: "option",
|
|
7974
7974
|
"aria-labelledby": m,
|
|
7975
7975
|
"data-highlighted": p ? "" : void 0,
|
|
@@ -7980,16 +7980,16 @@ const Kf = [
|
|
|
7980
7980
|
tabIndex: o ? void 0 : -1
|
|
7981
7981
|
}, a, {
|
|
7982
7982
|
ref: f,
|
|
7983
|
-
onFocus:
|
|
7983
|
+
onFocus: Z(
|
|
7984
7984
|
a.onFocus,
|
|
7985
7985
|
() => h(!0)
|
|
7986
7986
|
),
|
|
7987
|
-
onBlur:
|
|
7987
|
+
onBlur: Z(
|
|
7988
7988
|
a.onBlur,
|
|
7989
7989
|
() => h(!1)
|
|
7990
7990
|
),
|
|
7991
|
-
onPointerUp:
|
|
7992
|
-
onPointerMove:
|
|
7991
|
+
onPointerUp: Z(a.onPointerUp, w),
|
|
7992
|
+
onPointerMove: Z(a.onPointerMove, (b) => {
|
|
7993
7993
|
if (o) {
|
|
7994
7994
|
var g;
|
|
7995
7995
|
(g = c.onItemLeave) === null || g === void 0 || g.call(c);
|
|
@@ -7998,19 +7998,19 @@ const Kf = [
|
|
|
7998
7998
|
preventScroll: !0
|
|
7999
7999
|
});
|
|
8000
8000
|
}),
|
|
8001
|
-
onPointerLeave:
|
|
8001
|
+
onPointerLeave: Z(a.onPointerLeave, (b) => {
|
|
8002
8002
|
if (b.currentTarget === document.activeElement) {
|
|
8003
8003
|
var g;
|
|
8004
8004
|
(g = c.onItemLeave) === null || g === void 0 || g.call(c);
|
|
8005
8005
|
}
|
|
8006
8006
|
}),
|
|
8007
|
-
onKeyDown:
|
|
8007
|
+
onKeyDown: Z(a.onKeyDown, (b) => {
|
|
8008
8008
|
var g;
|
|
8009
8009
|
((g = c.searchRef) === null || g === void 0 ? void 0 : g.current) !== "" && b.key === " " || (Gf.includes(b.key) && w(), b.key === " " && b.preventDefault());
|
|
8010
8010
|
})
|
|
8011
8011
|
}))));
|
|
8012
|
-
}), On = "SelectItemText", vp = /* @__PURE__ */
|
|
8013
|
-
const { __scopeSelect: n, className: r, style: o, ...s } = e, a = Rt(On, n), i = Pt(On, n), c = ka(On, n), l = Zf(On, n), [d, u] =
|
|
8012
|
+
}), On = "SelectItemText", vp = /* @__PURE__ */ W((e, t) => {
|
|
8013
|
+
const { __scopeSelect: n, className: r, style: o, ...s } = e, a = Rt(On, n), i = Pt(On, n), c = ka(On, n), l = Zf(On, n), [d, u] = J(null), p = Se(
|
|
8014
8014
|
t,
|
|
8015
8015
|
(b) => u(b),
|
|
8016
8016
|
c.onItemTextChange,
|
|
@@ -8019,7 +8019,7 @@ const Kf = [
|
|
|
8019
8019
|
return (g = i.itemTextRefCallback) === null || g === void 0 ? void 0 : g.call(i, b, c.value, c.disabled);
|
|
8020
8020
|
}
|
|
8021
8021
|
), h = d?.textContent, f = ve(
|
|
8022
|
-
() => /* @__PURE__ */
|
|
8022
|
+
() => /* @__PURE__ */ C("option", {
|
|
8023
8023
|
key: c.value,
|
|
8024
8024
|
value: c.value,
|
|
8025
8025
|
disabled: c.disabled
|
|
@@ -8034,20 +8034,20 @@ const Kf = [
|
|
|
8034
8034
|
m,
|
|
8035
8035
|
w,
|
|
8036
8036
|
f
|
|
8037
|
-
]), /* @__PURE__ */
|
|
8037
|
+
]), /* @__PURE__ */ C(Xt, null, /* @__PURE__ */ C(Ee.span, z({
|
|
8038
8038
|
id: c.textId
|
|
8039
8039
|
}, s, {
|
|
8040
8040
|
ref: p
|
|
8041
8041
|
})), c.isSelected && a.valueNode && !a.valueNodeHasChildren ? /* @__PURE__ */ Xr(s.children, a.valueNode) : null);
|
|
8042
|
-
}), gp = "SelectItemIndicator", bp = /* @__PURE__ */
|
|
8042
|
+
}), gp = "SelectItemIndicator", bp = /* @__PURE__ */ W((e, t) => {
|
|
8043
8043
|
const { __scopeSelect: n, ...r } = e;
|
|
8044
|
-
return ka(gp, n).isSelected ? /* @__PURE__ */
|
|
8044
|
+
return ka(gp, n).isSelected ? /* @__PURE__ */ C(Ee.span, z({
|
|
8045
8045
|
"aria-hidden": !0
|
|
8046
8046
|
}, r, {
|
|
8047
8047
|
ref: t
|
|
8048
8048
|
})) : null;
|
|
8049
|
-
}), Ss = "SelectScrollUpButton", xp = /* @__PURE__ */
|
|
8050
|
-
const n = Pt(Ss, e.__scopeSelect), r = xo(Ss, e.__scopeSelect), [o, s] =
|
|
8049
|
+
}), Ss = "SelectScrollUpButton", xp = /* @__PURE__ */ W((e, t) => {
|
|
8050
|
+
const n = Pt(Ss, e.__scopeSelect), r = xo(Ss, e.__scopeSelect), [o, s] = J(!1), a = Se(t, r.onScrollButtonChange);
|
|
8051
8051
|
return je(() => {
|
|
8052
8052
|
if (n.viewport && n.isPositioned) {
|
|
8053
8053
|
let c = function() {
|
|
@@ -8060,15 +8060,15 @@ const Kf = [
|
|
|
8060
8060
|
}, [
|
|
8061
8061
|
n.viewport,
|
|
8062
8062
|
n.isPositioned
|
|
8063
|
-
]), o ? /* @__PURE__ */
|
|
8063
|
+
]), o ? /* @__PURE__ */ C(ja, z({}, e, {
|
|
8064
8064
|
ref: a,
|
|
8065
8065
|
onAutoScroll: () => {
|
|
8066
8066
|
const { viewport: i, selectedItem: c } = n;
|
|
8067
8067
|
i && c && (i.scrollTop = i.scrollTop - c.offsetHeight);
|
|
8068
8068
|
}
|
|
8069
8069
|
})) : null;
|
|
8070
|
-
}), Es = "SelectScrollDownButton", wp = /* @__PURE__ */
|
|
8071
|
-
const n = Pt(Es, e.__scopeSelect), r = xo(Es, e.__scopeSelect), [o, s] =
|
|
8070
|
+
}), Es = "SelectScrollDownButton", wp = /* @__PURE__ */ W((e, t) => {
|
|
8071
|
+
const n = Pt(Es, e.__scopeSelect), r = xo(Es, e.__scopeSelect), [o, s] = J(!1), a = Se(t, r.onScrollButtonChange);
|
|
8072
8072
|
return je(() => {
|
|
8073
8073
|
if (n.viewport && n.isPositioned) {
|
|
8074
8074
|
let c = function() {
|
|
@@ -8081,18 +8081,18 @@ const Kf = [
|
|
|
8081
8081
|
}, [
|
|
8082
8082
|
n.viewport,
|
|
8083
8083
|
n.isPositioned
|
|
8084
|
-
]), o ? /* @__PURE__ */
|
|
8084
|
+
]), o ? /* @__PURE__ */ C(ja, z({}, e, {
|
|
8085
8085
|
ref: a,
|
|
8086
8086
|
onAutoScroll: () => {
|
|
8087
8087
|
const { viewport: i, selectedItem: c } = n;
|
|
8088
8088
|
i && c && (i.scrollTop = i.scrollTop + c.offsetHeight);
|
|
8089
8089
|
}
|
|
8090
8090
|
})) : null;
|
|
8091
|
-
}), ja = /* @__PURE__ */
|
|
8091
|
+
}), ja = /* @__PURE__ */ W((e, t) => {
|
|
8092
8092
|
const { __scopeSelect: n, onAutoScroll: r, ...o } = e, s = Pt("SelectScrollButton", n), a = K(null), i = cr(n), c = F(() => {
|
|
8093
8093
|
a.current !== null && (window.clearInterval(a.current), a.current = null);
|
|
8094
8094
|
}, []);
|
|
8095
|
-
return
|
|
8095
|
+
return q(() => () => c(), [
|
|
8096
8096
|
c
|
|
8097
8097
|
]), je(() => {
|
|
8098
8098
|
var l;
|
|
@@ -8104,7 +8104,7 @@ const Kf = [
|
|
|
8104
8104
|
});
|
|
8105
8105
|
}, [
|
|
8106
8106
|
i
|
|
8107
|
-
]), /* @__PURE__ */
|
|
8107
|
+
]), /* @__PURE__ */ C(Ee.div, z({
|
|
8108
8108
|
"aria-hidden": !0
|
|
8109
8109
|
}, o, {
|
|
8110
8110
|
ref: t,
|
|
@@ -8112,20 +8112,20 @@ const Kf = [
|
|
|
8112
8112
|
flexShrink: 0,
|
|
8113
8113
|
...o.style
|
|
8114
8114
|
},
|
|
8115
|
-
onPointerDown:
|
|
8115
|
+
onPointerDown: Z(o.onPointerDown, () => {
|
|
8116
8116
|
a.current === null && (a.current = window.setInterval(r, 50));
|
|
8117
8117
|
}),
|
|
8118
|
-
onPointerMove:
|
|
8118
|
+
onPointerMove: Z(o.onPointerMove, () => {
|
|
8119
8119
|
var l;
|
|
8120
8120
|
(l = s.onItemLeave) === null || l === void 0 || l.call(s), a.current === null && (a.current = window.setInterval(r, 50));
|
|
8121
8121
|
}),
|
|
8122
|
-
onPointerLeave:
|
|
8122
|
+
onPointerLeave: Z(o.onPointerLeave, () => {
|
|
8123
8123
|
c();
|
|
8124
8124
|
})
|
|
8125
8125
|
}));
|
|
8126
|
-
}), yp = /* @__PURE__ */
|
|
8126
|
+
}), yp = /* @__PURE__ */ W((e, t) => {
|
|
8127
8127
|
const { __scopeSelect: n, ...r } = e;
|
|
8128
|
-
return /* @__PURE__ */
|
|
8128
|
+
return /* @__PURE__ */ C(Ee.div, z({
|
|
8129
8129
|
"aria-hidden": !0
|
|
8130
8130
|
}, r, {
|
|
8131
8131
|
ref: t
|
|
@@ -8134,9 +8134,9 @@ const Kf = [
|
|
|
8134
8134
|
function La(e) {
|
|
8135
8135
|
return e === "" || e === void 0;
|
|
8136
8136
|
}
|
|
8137
|
-
const Fa = /* @__PURE__ */
|
|
8137
|
+
const Fa = /* @__PURE__ */ W((e, t) => {
|
|
8138
8138
|
const { value: n, ...r } = e, o = K(null), s = Se(t, o), a = of(n);
|
|
8139
|
-
return
|
|
8139
|
+
return q(() => {
|
|
8140
8140
|
const i = o.current, c = window.HTMLSelectElement.prototype, d = Object.getOwnPropertyDescriptor(c, "value").set;
|
|
8141
8141
|
if (a !== n && d) {
|
|
8142
8142
|
const u = new Event("change", {
|
|
@@ -8147,9 +8147,9 @@ const Fa = /* @__PURE__ */ H((e, t) => {
|
|
|
8147
8147
|
}, [
|
|
8148
8148
|
a,
|
|
8149
8149
|
n
|
|
8150
|
-
]), /* @__PURE__ */
|
|
8150
|
+
]), /* @__PURE__ */ C(ya, {
|
|
8151
8151
|
asChild: !0
|
|
8152
|
-
}, /* @__PURE__ */
|
|
8152
|
+
}, /* @__PURE__ */ C("select", z({}, r, {
|
|
8153
8153
|
ref: s,
|
|
8154
8154
|
defaultValue: n
|
|
8155
8155
|
})));
|
|
@@ -8169,7 +8169,7 @@ function Va(e) {
|
|
|
8169
8169
|
]), s = F(() => {
|
|
8170
8170
|
n.current = "", window.clearTimeout(r.current);
|
|
8171
8171
|
}, []);
|
|
8172
|
-
return
|
|
8172
|
+
return q(() => () => window.clearTimeout(r.current), []), [
|
|
8173
8173
|
n,
|
|
8174
8174
|
o,
|
|
8175
8175
|
s
|
|
@@ -8402,8 +8402,8 @@ function Ap(e) {
|
|
|
8402
8402
|
);
|
|
8403
8403
|
}
|
|
8404
8404
|
function kp(e) {
|
|
8405
|
-
const [t, n] =
|
|
8406
|
-
return
|
|
8405
|
+
const [t, n] = J(!1);
|
|
8406
|
+
return q(() => {
|
|
8407
8407
|
const r = e.current;
|
|
8408
8408
|
let o = !1;
|
|
8409
8409
|
r && (r.contains(document.activeElement) && document.activeElement instanceof HTMLInputElement ? o = !0 : o = !1), n(o);
|
|
@@ -8411,7 +8411,7 @@ function kp(e) {
|
|
|
8411
8411
|
}
|
|
8412
8412
|
function Br(e, t = !1) {
|
|
8413
8413
|
const n = kp(e);
|
|
8414
|
-
|
|
8414
|
+
q(() => {
|
|
8415
8415
|
t || n && e.current?.select();
|
|
8416
8416
|
}, [n, t, e.current]);
|
|
8417
8417
|
}
|
|
@@ -8575,8 +8575,8 @@ function Kp(e) {
|
|
|
8575
8575
|
}
|
|
8576
8576
|
function Gp(e, t, n, r, o, s, a) {
|
|
8577
8577
|
a === void 0 && (a = Kp);
|
|
8578
|
-
var i = o.findIndex(function(
|
|
8579
|
-
return
|
|
8578
|
+
var i = o.findIndex(function($) {
|
|
8579
|
+
return $;
|
|
8580
8580
|
}), c = e.slice(0, i);
|
|
8581
8581
|
!t && !n.startsWith(c) && (t = c, n = c + n, r = r + c.length);
|
|
8582
8582
|
for (var l = n.length, d = e.length, u = {}, p = new Array(l), h = 0; h < l; h++) {
|
|
@@ -8628,7 +8628,7 @@ function si(e, t, n, r, o, s) {
|
|
|
8628
8628
|
var a = Bp(function(f, m) {
|
|
8629
8629
|
var w, b;
|
|
8630
8630
|
return ei(f) ? (b = "", w = "") : typeof f == "number" || m ? (b = typeof f == "number" ? ri(f) : f, w = r(b)) : (b = o(f, void 0), w = r(b)), { formattedValue: w, numAsString: b };
|
|
8631
|
-
}), i =
|
|
8631
|
+
}), i = J(function() {
|
|
8632
8632
|
return a(Vt(e) ? t : e, n);
|
|
8633
8633
|
}), c = i[0], l = i[1], d = function(f, m) {
|
|
8634
8634
|
f.formattedValue !== c.formattedValue && l({
|
|
@@ -8671,13 +8671,13 @@ function Zp(e) {
|
|
|
8671
8671
|
g === void 0 && (g = Yp);
|
|
8672
8672
|
var y = e.isValidInputCharacter;
|
|
8673
8673
|
y === void 0 && (y = vn);
|
|
8674
|
-
var
|
|
8675
|
-
|
|
8676
|
-
}, Q =
|
|
8674
|
+
var $ = e.isCharacterSame, _ = Qa(e, ["type", "displayType", "customInput", "renderText", "getInputRef", "format", "removeFormatting", "defaultValue", "valueIsNumericString", "onValueChange", "isAllowed", "onChange", "onKeyDown", "onMouseUp", "onFocus", "onBlur", "value", "getCaretBoundary", "isValidInputCharacter", "isCharacterSame"]), D = si(b, c, !!l, a, i, d), T = D[0], E = T.formattedValue, M = T.numAsString, k = D[1], H = K({ formattedValue: E, numAsString: M }), N = function(L, U) {
|
|
8675
|
+
H.current = { formattedValue: L.formattedValue, numAsString: L.value }, k(L, U);
|
|
8676
|
+
}, Q = J(!1), G = Q[0], A = Q[1], I = K(null), P = K({
|
|
8677
8677
|
setCaretTimeout: null,
|
|
8678
8678
|
focusTimeout: null
|
|
8679
8679
|
});
|
|
8680
|
-
|
|
8680
|
+
q(function() {
|
|
8681
8681
|
return A(!0), function() {
|
|
8682
8682
|
clearTimeout(P.current.setCaretTimeout), clearTimeout(P.current.focusTimeout);
|
|
8683
8683
|
};
|
|
@@ -8689,14 +8689,14 @@ function Zp(e) {
|
|
|
8689
8689
|
value: U,
|
|
8690
8690
|
floatValue: isNaN(re) ? void 0 : re
|
|
8691
8691
|
};
|
|
8692
|
-
},
|
|
8692
|
+
}, O = function(L, U, re) {
|
|
8693
8693
|
L.selectionStart === 0 && L.selectionEnd === L.value.length || (St(L, U), P.current.setCaretTimeout = setTimeout(function() {
|
|
8694
8694
|
L.value === re && L.selectionStart !== U && St(L, U);
|
|
8695
8695
|
}, 0));
|
|
8696
8696
|
}, j = function(L, U, re) {
|
|
8697
8697
|
return Rs(L, U, g(L), re);
|
|
8698
8698
|
}, Y = function(L, U, re) {
|
|
8699
|
-
var $e = g(U), Pe = Gp(U, E, L, re, $e, y,
|
|
8699
|
+
var $e = g(U), Pe = Gp(U, E, L, re, $e, y, $);
|
|
8700
8700
|
return Pe = Rs(U, Pe, $e), Pe;
|
|
8701
8701
|
}, le = function(L) {
|
|
8702
8702
|
var U = L.formattedValue;
|
|
@@ -8704,30 +8704,30 @@ function Zp(e) {
|
|
|
8704
8704
|
var re = L.input, $e = L.source, Pe = L.event, he = L.numAsString, me;
|
|
8705
8705
|
if (re) {
|
|
8706
8706
|
var De = L.inputValue || re.value, $t = _r(re);
|
|
8707
|
-
re.value = U, me = Y(De, U, $t), me !== void 0 &&
|
|
8707
|
+
re.value = U, me = Y(De, U, $t), me !== void 0 && O(re, me, U);
|
|
8708
8708
|
}
|
|
8709
8709
|
U !== E && N(S(U, he), { event: Pe, source: $e });
|
|
8710
8710
|
};
|
|
8711
|
-
|
|
8712
|
-
var L =
|
|
8713
|
-
E !== U && (E !==
|
|
8711
|
+
q(function() {
|
|
8712
|
+
var L = H.current, U = L.formattedValue, re = L.numAsString;
|
|
8713
|
+
E !== U && (E !== M || U !== re) && N(S(E, M), {
|
|
8714
8714
|
event: void 0,
|
|
8715
8715
|
source: hn.props
|
|
8716
8716
|
});
|
|
8717
|
-
}, [E,
|
|
8718
|
-
var ae =
|
|
8717
|
+
}, [E, M]);
|
|
8718
|
+
var ae = I.current ? _r(I.current) : void 0, be = typeof window < "u" ? Yr : q;
|
|
8719
8719
|
be(function() {
|
|
8720
|
-
var L =
|
|
8721
|
-
if (E !==
|
|
8722
|
-
var U = Y(
|
|
8723
|
-
L.value = E,
|
|
8720
|
+
var L = I.current;
|
|
8721
|
+
if (E !== H.current.formattedValue && L) {
|
|
8722
|
+
var U = Y(H.current.formattedValue, E, ae);
|
|
8723
|
+
L.value = E, O(L, U, E);
|
|
8724
8724
|
}
|
|
8725
8725
|
}, [E]);
|
|
8726
8726
|
var we = function(L, U, re) {
|
|
8727
8727
|
var $e = oi(E, L), Pe = Object.assign(Object.assign({}, $e), { lastValue: E }), he = i(L, Pe), me = ee(he);
|
|
8728
8728
|
if (he = i(me, void 0), u && !u(S(me, he))) {
|
|
8729
8729
|
var De = U.target, $t = _r(De), dr = Y(L, E, $t);
|
|
8730
|
-
return De.value = E,
|
|
8730
|
+
return De.value = E, O(De, dr, E), !1;
|
|
8731
8731
|
}
|
|
8732
8732
|
return le({
|
|
8733
8733
|
formattedValue: me,
|
|
@@ -8754,13 +8754,13 @@ function Zp(e) {
|
|
|
8754
8754
|
De = j(he, me, $t), De !== me && L.preventDefault();
|
|
8755
8755
|
} else
|
|
8756
8756
|
re === "Delete" && !y(he[me]) ? De = j(he, me, "right") : re === "Backspace" && !y(he[me]) && (De = j(he, me, "left"));
|
|
8757
|
-
De !== me &&
|
|
8757
|
+
De !== me && O(U, De, he), L.isUnitTestRun && O(U, De, he), h(L);
|
|
8758
8758
|
}, oe = function(L) {
|
|
8759
8759
|
var U = L.target, re = function() {
|
|
8760
8760
|
var $e = U.selectionStart, Pe = U.selectionEnd, he = U.value;
|
|
8761
8761
|
if (he === void 0 && (he = ""), $e === Pe) {
|
|
8762
8762
|
var me = j(he, $e);
|
|
8763
|
-
me !== $e &&
|
|
8763
|
+
me !== $e && O(U, me, he);
|
|
8764
8764
|
}
|
|
8765
8765
|
};
|
|
8766
8766
|
re(), requestAnimationFrame(function() {
|
|
@@ -8769,14 +8769,14 @@ function Zp(e) {
|
|
|
8769
8769
|
}, ce = function(L) {
|
|
8770
8770
|
L.persist && L.persist();
|
|
8771
8771
|
var U = L.target, re = L.currentTarget;
|
|
8772
|
-
|
|
8772
|
+
I.current = U, P.current.focusTimeout = setTimeout(function() {
|
|
8773
8773
|
var $e = U.selectionStart, Pe = U.selectionEnd, he = U.value;
|
|
8774
8774
|
he === void 0 && (he = "");
|
|
8775
8775
|
var me = j(he, $e);
|
|
8776
|
-
me !== $e && !($e === 0 && Pe === he.length) &&
|
|
8776
|
+
me !== $e && !($e === 0 && Pe === he.length) && O(U, me, he), m(Object.assign(Object.assign({}, L), { currentTarget: re }));
|
|
8777
8777
|
}, 0);
|
|
8778
8778
|
}, de = function(L) {
|
|
8779
|
-
|
|
8779
|
+
I.current = null, clearTimeout(P.current.focusTimeout), clearTimeout(P.current.setCaretTimeout), w(L);
|
|
8780
8780
|
}, fe = G && Hp() ? "numeric" : void 0, Re = Object.assign({ inputMode: fe }, _, {
|
|
8781
8781
|
type: t,
|
|
8782
8782
|
value: E,
|
|
@@ -8841,24 +8841,24 @@ function tm(e, t, n) {
|
|
|
8841
8841
|
e = e.substring(0, d) + w + e.substring(d + 1, e.length);
|
|
8842
8842
|
}
|
|
8843
8843
|
var b = function(P, ee, S) {
|
|
8844
|
-
var
|
|
8845
|
-
s.startsWith("-") ?
|
|
8846
|
-
var Y =
|
|
8847
|
-
return j && (Y = 2), Y && (P = P.substring(Y), ee -= Y, S -= Y), { value: P, start: ee, end: S, hasNegation:
|
|
8844
|
+
var O = !1, j = !1;
|
|
8845
|
+
s.startsWith("-") ? O = !1 : P.startsWith("--") ? (O = !1, j = !0) : a.startsWith("-") && P.length === a.length ? O = !1 : P[0] === "-" && (O = !0);
|
|
8846
|
+
var Y = O ? 1 : 0;
|
|
8847
|
+
return j && (Y = 2), Y && (P = P.substring(Y), ee -= Y, S -= Y), { value: P, start: ee, end: S, hasNegation: O };
|
|
8848
8848
|
}, g = b(e, d, u), y = g.hasNegation;
|
|
8849
8849
|
r = g, e = r.value, d = r.start, u = r.end;
|
|
8850
|
-
var
|
|
8851
|
-
e.length && T.length && (_ > T.length - a.length ||
|
|
8852
|
-
var
|
|
8853
|
-
e.startsWith(s) ?
|
|
8854
|
-
var
|
|
8855
|
-
e.endsWith(a) ?
|
|
8850
|
+
var $ = b(t.lastValue, c.start, c.end), _ = $.start, D = $.end, T = $.value, E = e.substring(d, u);
|
|
8851
|
+
e.length && T.length && (_ > T.length - a.length || D < s.length) && !(E && a.startsWith(E)) && (e = T);
|
|
8852
|
+
var M = 0;
|
|
8853
|
+
e.startsWith(s) ? M += s.length : d < s.length && (M = d), e = e.substring(M), u -= M;
|
|
8854
|
+
var k = e.length, H = e.length - a.length;
|
|
8855
|
+
e.endsWith(a) ? k = H : (u > H || u > e.length - a.length) && (k = u), e = e.substring(0, k), e = Jp(y ? "-" + e : e, o), e = (e.match(Qp(f)) || []).join("");
|
|
8856
8856
|
var N = e.indexOf(f);
|
|
8857
8857
|
e = e.replace(new RegExp(ti(f), "g"), function(P, ee) {
|
|
8858
8858
|
return ee === N ? "." : "";
|
|
8859
8859
|
});
|
|
8860
|
-
var Q = $o(e, o), G = Q.beforeDecimal, A = Q.afterDecimal,
|
|
8861
|
-
return l.end - l.start < c.end - c.start && G === "" && m && !parseFloat(A) && (e =
|
|
8860
|
+
var Q = $o(e, o), G = Q.beforeDecimal, A = Q.afterDecimal, I = Q.addNegation;
|
|
8861
|
+
return l.end - l.start < c.end - c.start && G === "" && m && !parseFloat(A) && (e = I ? "-" : ""), e;
|
|
8862
8862
|
}
|
|
8863
8863
|
function nm(e, t) {
|
|
8864
8864
|
var n = t.prefix;
|
|
@@ -8896,53 +8896,53 @@ function om(e) {
|
|
|
8896
8896
|
s === void 0 && (s = gt);
|
|
8897
8897
|
var a = e.thousandSeparator, i = e.decimalScale, c = e.fixedDecimalScale, l = e.prefix;
|
|
8898
8898
|
l === void 0 && (l = "");
|
|
8899
|
-
var d = e.defaultValue, u = e.value, p = e.valueIsNumericString, h = e.onValueChange, f = Qa(e, ["decimalSeparator", "allowedDecimalSeparators", "thousandsGroupStyle", "suffix", "allowNegative", "allowLeadingZeros", "onKeyDown", "onBlur", "thousandSeparator", "decimalScale", "fixedDecimalScale", "prefix", "defaultValue", "value", "valueIsNumericString", "onValueChange"]), m = lr(e), w = m.decimalSeparator, b = m.allowedDecimalSeparators, g = function(
|
|
8900
|
-
return Ps(
|
|
8901
|
-
}, y = function(
|
|
8902
|
-
return tm(
|
|
8903
|
-
},
|
|
8899
|
+
var d = e.defaultValue, u = e.value, p = e.valueIsNumericString, h = e.onValueChange, f = Qa(e, ["decimalSeparator", "allowedDecimalSeparators", "thousandsGroupStyle", "suffix", "allowNegative", "allowLeadingZeros", "onKeyDown", "onBlur", "thousandSeparator", "decimalScale", "fixedDecimalScale", "prefix", "defaultValue", "value", "valueIsNumericString", "onValueChange"]), m = lr(e), w = m.decimalSeparator, b = m.allowedDecimalSeparators, g = function(I) {
|
|
8900
|
+
return Ps(I, e);
|
|
8901
|
+
}, y = function(I, P) {
|
|
8902
|
+
return tm(I, P, e);
|
|
8903
|
+
}, $ = Vt(u) ? d : u, _ = p ?? em($, l, t);
|
|
8904
8904
|
Vt(u) ? Vt(d) || (_ = _ || typeof d == "number") : _ = _ || typeof u == "number";
|
|
8905
|
-
var
|
|
8906
|
-
return ei(
|
|
8907
|
-
}, T = si(
|
|
8908
|
-
var P =
|
|
8909
|
-
if (j === void 0 && (j = ""), S !==
|
|
8910
|
-
o(
|
|
8905
|
+
var D = function(I) {
|
|
8906
|
+
return ei(I) ? I : (typeof I == "number" && (I = ri(I)), _ && typeof i == "number" ? Ts(I, i, !!c) : I);
|
|
8907
|
+
}, T = si(D(u), D(d), !!_, g, y, h), E = T[0], M = E.numAsString, k = E.formattedValue, H = T[1], N = function(I) {
|
|
8908
|
+
var P = I.target, ee = I.key, S = P.selectionStart, O = P.selectionEnd, j = P.value;
|
|
8909
|
+
if (j === void 0 && (j = ""), S !== O) {
|
|
8910
|
+
o(I);
|
|
8911
8911
|
return;
|
|
8912
8912
|
}
|
|
8913
|
-
ee === "Backspace" && j[0] === "-" && S === l.length + 1 && n && St(P, 1), i && c && (ee === "Backspace" && j[S - 1] === w ? (St(P, S - 1),
|
|
8913
|
+
ee === "Backspace" && j[0] === "-" && S === l.length + 1 && n && St(P, 1), i && c && (ee === "Backspace" && j[S - 1] === w ? (St(P, S - 1), I.preventDefault()) : ee === "Delete" && j[S] === w && I.preventDefault()), b?.includes(ee) && j[S] === w && St(P, S + 1);
|
|
8914
8914
|
var Y = a === !0 ? "," : a;
|
|
8915
|
-
ee === "Backspace" && j[S - 1] === Y && St(P, S - 1), ee === "Delete" && j[S] === Y && St(P, S + 1), o(
|
|
8916
|
-
}, Q = function(
|
|
8917
|
-
var P =
|
|
8918
|
-
if (P.match(/\d/g) || (P = ""), r || (P = zp(P)), c && i && (P = Ts(P, i, c)), P !==
|
|
8915
|
+
ee === "Backspace" && j[S - 1] === Y && St(P, S - 1), ee === "Delete" && j[S] === Y && St(P, S + 1), o(I);
|
|
8916
|
+
}, Q = function(I) {
|
|
8917
|
+
var P = M;
|
|
8918
|
+
if (P.match(/\d/g) || (P = ""), r || (P = zp(P)), c && i && (P = Ts(P, i, c)), P !== M) {
|
|
8919
8919
|
var ee = Ps(P, e);
|
|
8920
|
-
|
|
8920
|
+
H({
|
|
8921
8921
|
formattedValue: ee,
|
|
8922
8922
|
value: P,
|
|
8923
8923
|
floatValue: parseFloat(P)
|
|
8924
8924
|
}, {
|
|
8925
|
-
event:
|
|
8925
|
+
event: I,
|
|
8926
8926
|
source: hn.event
|
|
8927
8927
|
});
|
|
8928
8928
|
}
|
|
8929
|
-
s(
|
|
8930
|
-
}, G = function(
|
|
8931
|
-
return
|
|
8932
|
-
}, A = function(
|
|
8933
|
-
var P =
|
|
8934
|
-
return
|
|
8929
|
+
s(I);
|
|
8930
|
+
}, G = function(I) {
|
|
8931
|
+
return I === w ? !0 : vn(I);
|
|
8932
|
+
}, A = function(I) {
|
|
8933
|
+
var P = I.currentValue, ee = I.lastValue, S = I.formattedValue, O = I.currentValueIndex, j = I.formattedValueIndex, Y = P[O], le = S[j], ae = oi(ee, P), be = ae.to;
|
|
8934
|
+
return O >= be.start && O < be.end && b && b.includes(Y) && le === w ? !0 : Y === le;
|
|
8935
8935
|
};
|
|
8936
8936
|
return Object.assign(Object.assign({}, f), {
|
|
8937
|
-
value:
|
|
8937
|
+
value: k,
|
|
8938
8938
|
valueIsNumericString: !1,
|
|
8939
8939
|
isValidInputCharacter: G,
|
|
8940
8940
|
isCharacterSame: A,
|
|
8941
|
-
onValueChange:
|
|
8941
|
+
onValueChange: H,
|
|
8942
8942
|
format: g,
|
|
8943
8943
|
removeFormatting: y,
|
|
8944
|
-
getCaretBoundary: function(
|
|
8945
|
-
return nm(
|
|
8944
|
+
getCaretBoundary: function(I) {
|
|
8945
|
+
return nm(I, e);
|
|
8946
8946
|
},
|
|
8947
8947
|
onKeyDown: N,
|
|
8948
8948
|
onBlur: Q
|
|
@@ -8971,17 +8971,17 @@ function am(e, t) {
|
|
|
8971
8971
|
} = e, w = ".", b = ",", g = cm({
|
|
8972
8972
|
dataEditorType: r,
|
|
8973
8973
|
decimalScale: l?.numeric?.decimalScale
|
|
8974
|
-
}), y = l?.numeric?.allowNegative,
|
|
8975
|
-
({ value:
|
|
8976
|
-
const N = Or({ value:
|
|
8977
|
-
a?.(N),
|
|
8974
|
+
}), y = l?.numeric?.allowNegative, $ = l?.numeric?.min, _ = l?.numeric?.max, D = r === "Currency" ? "R$ " : "", T = r === "Percentage" ? "%" : "", [E, M] = J(u), k = F(
|
|
8975
|
+
({ value: H }) => {
|
|
8976
|
+
const N = Or({ value: H, min: $, max: _ });
|
|
8977
|
+
a?.(N), M(N);
|
|
8978
8978
|
},
|
|
8979
|
-
[a,
|
|
8979
|
+
[a, $, _]
|
|
8980
8980
|
);
|
|
8981
|
-
return
|
|
8982
|
-
const
|
|
8983
|
-
|
|
8984
|
-
}, [u,
|
|
8981
|
+
return q(() => {
|
|
8982
|
+
const H = Or({ value: u, min: $, max: _ });
|
|
8983
|
+
M(H);
|
|
8984
|
+
}, [u, $, _]), /* @__PURE__ */ v.jsx(
|
|
8985
8985
|
sm,
|
|
8986
8986
|
{
|
|
8987
8987
|
...m,
|
|
@@ -8989,7 +8989,7 @@ function am(e, t) {
|
|
|
8989
8989
|
tabIndex: f,
|
|
8990
8990
|
value: E,
|
|
8991
8991
|
onPaste: c,
|
|
8992
|
-
prefix:
|
|
8992
|
+
prefix: D,
|
|
8993
8993
|
suffix: T,
|
|
8994
8994
|
fixedDecimalScale: !0,
|
|
8995
8995
|
onBlur: s,
|
|
@@ -8998,7 +8998,7 @@ function am(e, t) {
|
|
|
8998
8998
|
onFocus: o,
|
|
8999
8999
|
onClick: i,
|
|
9000
9000
|
decimalScale: g,
|
|
9001
|
-
onValueChange:
|
|
9001
|
+
onValueChange: k,
|
|
9002
9002
|
allowNegative: y,
|
|
9003
9003
|
decimalSeparator: b,
|
|
9004
9004
|
thousandSeparator: w,
|
|
@@ -9018,7 +9018,7 @@ function cm(e) {
|
|
|
9018
9018
|
let r = n;
|
|
9019
9019
|
return t === "Percentage" && (n ? r = n > 2 ? n - im : 0 : r = 0), n || (t === "Decimal" && (r = 2), t === "Float" && (r = 2), t === "Integer" && (r = 0), t === "Currency" && (r = 2)), r;
|
|
9020
9020
|
}
|
|
9021
|
-
const ai =
|
|
9021
|
+
const ai = W(am);
|
|
9022
9022
|
function lm(e) {
|
|
9023
9023
|
const {
|
|
9024
9024
|
mode: t,
|
|
@@ -9030,28 +9030,28 @@ function lm(e) {
|
|
|
9030
9030
|
column: i,
|
|
9031
9031
|
coordinates: c,
|
|
9032
9032
|
testid: l = "numeric-data-editor"
|
|
9033
|
-
} = e, d = K(null),
|
|
9034
|
-
(
|
|
9035
|
-
|
|
9033
|
+
} = e, d = K(null), u = F(
|
|
9034
|
+
(f) => {
|
|
9035
|
+
f.preventDefault(), s?.(f);
|
|
9036
9036
|
},
|
|
9037
9037
|
[s]
|
|
9038
|
-
),
|
|
9038
|
+
), p = F(() => {
|
|
9039
9039
|
r?.(), a?.("view");
|
|
9040
|
-
}, [r, a]),
|
|
9041
|
-
(
|
|
9042
|
-
o?.({ data:
|
|
9040
|
+
}, [r, a]), h = F(
|
|
9041
|
+
(f) => {
|
|
9042
|
+
o?.({ data: f });
|
|
9043
9043
|
},
|
|
9044
9044
|
[o]
|
|
9045
9045
|
);
|
|
9046
|
-
return Br(d
|
|
9046
|
+
return Br(d), /* @__PURE__ */ v.jsx(
|
|
9047
9047
|
ai,
|
|
9048
9048
|
{
|
|
9049
9049
|
ref: d,
|
|
9050
9050
|
dataEditorType: i.dataEditorType,
|
|
9051
9051
|
value: n,
|
|
9052
|
-
onPaste:
|
|
9053
|
-
onBlur:
|
|
9054
|
-
onChange:
|
|
9052
|
+
onPaste: u,
|
|
9053
|
+
onBlur: p,
|
|
9054
|
+
onChange: h,
|
|
9055
9055
|
settings: i.settings,
|
|
9056
9056
|
dataCypress: `table-cell-numeric-${i.id}-${c.row}`,
|
|
9057
9057
|
"aria-readonly": t === "readonly",
|
|
@@ -9153,40 +9153,40 @@ const ci = Bt({}), mm = ({ children: e }) => {
|
|
|
9153
9153
|
return /* @__PURE__ */ v.jsx(ci.Provider, { value: { portalRef: t }, children: Ne.cloneElement(e, { ref: t }) });
|
|
9154
9154
|
}, hm = () => wn(ci);
|
|
9155
9155
|
function vm(e) {
|
|
9156
|
-
const { mode: t, width: n, value: r, onBlur: o, onChange: s, setMode: a, column: i, selected: c, coordinates: l } = e, { portalRef: d } = hm(), u = r, p = K(null), h = K(null), [f, m] =
|
|
9157
|
-
|
|
9156
|
+
const { mode: t, width: n, value: r, onBlur: o, onChange: s, setMode: a, column: i, selected: c, coordinates: l } = e, { portalRef: d } = hm(), u = r, p = K(null), h = K(null), [f, m] = J(0), w = ve(() => ii(u, n), [u, n]), b = K(null), [g, y] = J(null);
|
|
9157
|
+
q(() => {
|
|
9158
9158
|
if (b.current && w) {
|
|
9159
|
-
const { top:
|
|
9159
|
+
const { top: E, left: M } = b.current.getBoundingClientRect();
|
|
9160
9160
|
d?.current ? y({
|
|
9161
|
-
top:
|
|
9162
|
-
left:
|
|
9163
|
-
}) : y({ top:
|
|
9161
|
+
top: E - d.current.getBoundingClientRect().top + window.scrollY,
|
|
9162
|
+
left: M - d.current.getBoundingClientRect().left + window.scrollX
|
|
9163
|
+
}) : y({ top: E + window.scrollY, left: M + window.scrollX });
|
|
9164
9164
|
}
|
|
9165
|
-
}, [w, d?.current]),
|
|
9166
|
-
g &&
|
|
9165
|
+
}, [w, d?.current]), q(() => {
|
|
9166
|
+
g && $();
|
|
9167
9167
|
}, [g]);
|
|
9168
|
-
const
|
|
9169
|
-
const
|
|
9170
|
-
if (!
|
|
9168
|
+
const $ = F(() => {
|
|
9169
|
+
const E = h.current;
|
|
9170
|
+
if (!E)
|
|
9171
9171
|
return;
|
|
9172
|
-
const
|
|
9173
|
-
|
|
9174
|
-
}, []),
|
|
9175
|
-
(
|
|
9176
|
-
|
|
9172
|
+
const M = E.scrollHeight;
|
|
9173
|
+
E.style.height = `${M}px`, m(M);
|
|
9174
|
+
}, []), _ = F(
|
|
9175
|
+
(E) => {
|
|
9176
|
+
E.stopPropagation(), $();
|
|
9177
9177
|
},
|
|
9178
|
-
[
|
|
9179
|
-
),
|
|
9178
|
+
[$]
|
|
9179
|
+
), D = F(() => {
|
|
9180
9180
|
o?.(), a?.("view");
|
|
9181
|
-
}, [o, a]),
|
|
9182
|
-
(
|
|
9183
|
-
s?.({ data:
|
|
9181
|
+
}, [o, a]), T = F(
|
|
9182
|
+
(E) => {
|
|
9183
|
+
s?.({ data: E.target.value }), $();
|
|
9184
9184
|
},
|
|
9185
|
-
[
|
|
9185
|
+
[$, s]
|
|
9186
9186
|
);
|
|
9187
|
-
return
|
|
9188
|
-
|
|
9189
|
-
}, [
|
|
9187
|
+
return q(() => {
|
|
9188
|
+
$();
|
|
9189
|
+
}, [$]), Br(p), Br(h), w ? /* @__PURE__ */ v.jsx("div", { className: "-sl-left-0.5 -sl-top-0.5 sl-z-0", ref: b, children: g && Xr(
|
|
9190
9190
|
/* @__PURE__ */ v.jsx(
|
|
9191
9191
|
"div",
|
|
9192
9192
|
{
|
|
@@ -9209,14 +9209,14 @@ function vm(e) {
|
|
|
9209
9209
|
"textarea",
|
|
9210
9210
|
{
|
|
9211
9211
|
ref: h,
|
|
9212
|
-
onBlur:
|
|
9213
|
-
onPaste:
|
|
9212
|
+
onBlur: D,
|
|
9213
|
+
onPaste: _,
|
|
9214
9214
|
value: u,
|
|
9215
|
-
onChange:
|
|
9215
|
+
onChange: T,
|
|
9216
9216
|
className: ne(
|
|
9217
9217
|
"sl-h-fit sl-resize-none sl-break-all sl-rounded-none sl-bg-transparent sl-py-1.5 sl-pr-3 sl-pl-1 sl-text-sm sl-outline-none sl-text-primary-700"
|
|
9218
9218
|
),
|
|
9219
|
-
onFocus: (
|
|
9219
|
+
onFocus: (E) => pm(E.target),
|
|
9220
9220
|
maxLength: Ln,
|
|
9221
9221
|
style: { width: n },
|
|
9222
9222
|
"data-cypress": `table-cell-string-${i.id}-${l.row}`,
|
|
@@ -9233,11 +9233,11 @@ function vm(e) {
|
|
|
9233
9233
|
"input",
|
|
9234
9234
|
{
|
|
9235
9235
|
ref: p,
|
|
9236
|
-
onBlur:
|
|
9237
|
-
onPaste:
|
|
9236
|
+
onBlur: D,
|
|
9237
|
+
onPaste: _,
|
|
9238
9238
|
value: u,
|
|
9239
9239
|
maxLength: Ln,
|
|
9240
|
-
onChange:
|
|
9240
|
+
onChange: T,
|
|
9241
9241
|
className: ne("sl-h-full sl-w-full sl-bg-transparent sl-pl-1 sl-text-sm sl-outline-none"),
|
|
9242
9242
|
"data-cypress": `table-cell-string-${i.id}-${l.row}`,
|
|
9243
9243
|
"aria-readonly": t === "readonly",
|
|
@@ -9297,7 +9297,7 @@ const et = {
|
|
|
9297
9297
|
Select: fm
|
|
9298
9298
|
}, bm = ["Boolean", "Select", "String"];
|
|
9299
9299
|
function xm(e) {
|
|
9300
|
-
const { value: t, width: n, coordinates: r } = e, { columns: o, isCellSelected: s, onChange: a, onPaste: i, onSelectCell: c } = Je(), { dataEditorType: l, state: d, settings: u } = o[r.column], { readonly: p, visible: h } = d, [f, m] =
|
|
9300
|
+
const { value: t, width: n, coordinates: r } = e, { columns: o, isCellSelected: s, onChange: a, onPaste: i, onSelectCell: c } = Je(), { dataEditorType: l, state: d, settings: u } = o[r.column], { readonly: p, visible: h } = d, [f, m] = J(p ? "readonly" : "view"), w = K(null), b = ve(() => o[r.column], [o, r.column]), g = ve(() => s(r), [r, s]), y = ve(() => u?.select?.items || [], [u?.select?.items]), $ = ve(
|
|
9301
9301
|
() => ({
|
|
9302
9302
|
dataEditor: {
|
|
9303
9303
|
coordinates: r,
|
|
@@ -9307,8 +9307,8 @@ function xm(e) {
|
|
|
9307
9307
|
selected: g,
|
|
9308
9308
|
mode: f,
|
|
9309
9309
|
width: n,
|
|
9310
|
-
onPaste: (
|
|
9311
|
-
onChange: ({ data:
|
|
9310
|
+
onPaste: (k) => i(r, k),
|
|
9311
|
+
onChange: ({ data: k }) => a({ data: k, point: r })
|
|
9312
9312
|
},
|
|
9313
9313
|
dataViewer: {
|
|
9314
9314
|
coordinates: r,
|
|
@@ -9323,46 +9323,49 @@ function xm(e) {
|
|
|
9323
9323
|
[r, n, f, t, b, g, i, a, r]
|
|
9324
9324
|
), _ = ve(
|
|
9325
9325
|
() => ({
|
|
9326
|
-
Date: /* @__PURE__ */ v.jsx(et.Date, {
|
|
9327
|
-
String: /* @__PURE__ */ v.jsx(et.Text, {
|
|
9328
|
-
Currency: /* @__PURE__ */ v.jsx(et.Numeric, {
|
|
9329
|
-
Decimal: /* @__PURE__ */ v.jsx(et.Numeric, {
|
|
9330
|
-
Float: /* @__PURE__ */ v.jsx(et.Numeric, {
|
|
9331
|
-
Integer: /* @__PURE__ */ v.jsx(et.Numeric, {
|
|
9332
|
-
Percentage: /* @__PURE__ */ v.jsx(et.Numeric, {
|
|
9333
|
-
Boolean: /* @__PURE__ */ v.jsx(et.Boolean, {
|
|
9334
|
-
Select: /* @__PURE__ */ v.jsx(et.Select, {
|
|
9326
|
+
Date: /* @__PURE__ */ v.jsx(et.Date, { ...$.dataEditor }),
|
|
9327
|
+
String: /* @__PURE__ */ v.jsx(et.Text, { ...$.dataEditor }),
|
|
9328
|
+
Currency: /* @__PURE__ */ v.jsx(et.Numeric, { ...$.dataEditor }),
|
|
9329
|
+
Decimal: /* @__PURE__ */ v.jsx(et.Numeric, { ...$.dataEditor }),
|
|
9330
|
+
Float: /* @__PURE__ */ v.jsx(et.Numeric, { ...$.dataEditor }),
|
|
9331
|
+
Integer: /* @__PURE__ */ v.jsx(et.Numeric, { ...$.dataEditor }),
|
|
9332
|
+
Percentage: /* @__PURE__ */ v.jsx(et.Numeric, { ...$.dataEditor }),
|
|
9333
|
+
Boolean: /* @__PURE__ */ v.jsx(et.Boolean, { ...$.dataEditor }),
|
|
9334
|
+
Select: /* @__PURE__ */ v.jsx(et.Select, { ...$.dataEditor, items: y })
|
|
9335
9335
|
}),
|
|
9336
|
-
[
|
|
9337
|
-
),
|
|
9336
|
+
[$.dataEditor, y]
|
|
9337
|
+
), D = ve(
|
|
9338
9338
|
() => ({
|
|
9339
|
-
Date: /* @__PURE__ */ v.jsx(tt.Date, {
|
|
9340
|
-
String: /* @__PURE__ */ v.jsx(tt.Text, {
|
|
9341
|
-
Currency: /* @__PURE__ */ v.jsx(tt.Numeric, {
|
|
9342
|
-
Decimal: /* @__PURE__ */ v.jsx(tt.Numeric, {
|
|
9343
|
-
Float: /* @__PURE__ */ v.jsx(tt.Numeric, {
|
|
9344
|
-
Integer: /* @__PURE__ */ v.jsx(tt.Numeric, {
|
|
9345
|
-
Percentage: /* @__PURE__ */ v.jsx(tt.Numeric, {
|
|
9346
|
-
Boolean: /* @__PURE__ */ v.jsx(tt.Boolean, {
|
|
9347
|
-
Select: /* @__PURE__ */ v.jsx(tt.Select, {
|
|
9339
|
+
Date: /* @__PURE__ */ v.jsx(tt.Date, { ...$.dataViewer }),
|
|
9340
|
+
String: /* @__PURE__ */ v.jsx(tt.Text, { ...$.dataViewer }),
|
|
9341
|
+
Currency: /* @__PURE__ */ v.jsx(tt.Numeric, { ...$.dataViewer }),
|
|
9342
|
+
Decimal: /* @__PURE__ */ v.jsx(tt.Numeric, { ...$.dataViewer }),
|
|
9343
|
+
Float: /* @__PURE__ */ v.jsx(tt.Numeric, { ...$.dataViewer }),
|
|
9344
|
+
Integer: /* @__PURE__ */ v.jsx(tt.Numeric, { ...$.dataViewer }),
|
|
9345
|
+
Percentage: /* @__PURE__ */ v.jsx(tt.Numeric, { ...$.dataViewer }),
|
|
9346
|
+
Boolean: /* @__PURE__ */ v.jsx(tt.Boolean, { ...$.dataViewer }),
|
|
9347
|
+
Select: /* @__PURE__ */ v.jsx(tt.Select, { ...$.dataViewer, items: y })
|
|
9348
9348
|
}),
|
|
9349
|
-
[
|
|
9349
|
+
[$.dataViewer, y]
|
|
9350
9350
|
), T = ve(
|
|
9351
9351
|
() => l ? _[l] : null,
|
|
9352
9352
|
[l, _]
|
|
9353
9353
|
), E = ve(
|
|
9354
|
-
() => l ?
|
|
9355
|
-
[l,
|
|
9356
|
-
),
|
|
9354
|
+
() => l ? D[l] : null,
|
|
9355
|
+
[l, D]
|
|
9356
|
+
), M = F(() => {
|
|
9357
9357
|
bm.includes(l) || m("view");
|
|
9358
9358
|
}, [l]);
|
|
9359
|
-
return
|
|
9360
|
-
const
|
|
9361
|
-
const N =
|
|
9362
|
-
N && g && f === "view" && m("edit"), Q && g && f === "view" &&
|
|
9359
|
+
return q(() => {
|
|
9360
|
+
const k = (H) => {
|
|
9361
|
+
const N = H.code === "Enter", Q = /[a-zA-Z0-9\u00C0-\u017F]/.test(H.key) && H.key.length === 1;
|
|
9362
|
+
N && g && f === "view" && m("edit"), Q && g && f === "view" && (a({
|
|
9363
|
+
data: "",
|
|
9364
|
+
point: r
|
|
9365
|
+
}), m("edit")), N && g && f === "edit" && m("view");
|
|
9363
9366
|
};
|
|
9364
|
-
return window.addEventListener("keydown",
|
|
9365
|
-
}, [g, f]), Js(w,
|
|
9367
|
+
return window.addEventListener("keydown", k), () => window.removeEventListener("keydown", k);
|
|
9368
|
+
}, [g, f, a, r]), Js(w, M), q(() => {
|
|
9366
9369
|
m(p ? "readonly" : "view");
|
|
9367
9370
|
}, [p]), h ? f === "readonly" ? /* @__PURE__ */ v.jsx(
|
|
9368
9371
|
"div",
|
|
@@ -9474,25 +9477,25 @@ const Tr = "rovingFocusGroup.onEntryFocus", Cm = {
|
|
|
9474
9477
|
cancelable: !0
|
|
9475
9478
|
}, Co = "RovingFocusGroup", [zr, li, Sm] = ho(Co), [Em, ui] = Tt(Co, [
|
|
9476
9479
|
Sm
|
|
9477
|
-
]), [_m, Tm] = Em(Co), Rm = /* @__PURE__ */
|
|
9480
|
+
]), [_m, Tm] = Em(Co), Rm = /* @__PURE__ */ W((e, t) => /* @__PURE__ */ C(zr.Provider, {
|
|
9478
9481
|
scope: e.__scopeRovingFocusGroup
|
|
9479
|
-
}, /* @__PURE__ */
|
|
9482
|
+
}, /* @__PURE__ */ C(zr.Slot, {
|
|
9480
9483
|
scope: e.__scopeRovingFocusGroup
|
|
9481
|
-
}, /* @__PURE__ */
|
|
9484
|
+
}, /* @__PURE__ */ C(Pm, z({}, e, {
|
|
9482
9485
|
ref: t
|
|
9483
|
-
}))))), Pm = /* @__PURE__ */
|
|
9486
|
+
}))))), Pm = /* @__PURE__ */ W((e, t) => {
|
|
9484
9487
|
const { __scopeRovingFocusGroup: n, orientation: r, loop: o = !1, dir: s, currentTabStopId: a, defaultCurrentTabStopId: i, onCurrentTabStopIdChange: c, onEntryFocus: l, ...d } = e, u = K(null), p = Se(t, u), h = vo(s), [f = null, m] = fn({
|
|
9485
9488
|
prop: a,
|
|
9486
9489
|
defaultProp: i,
|
|
9487
9490
|
onChange: c
|
|
9488
|
-
}), [w, b] =
|
|
9489
|
-
return
|
|
9491
|
+
}), [w, b] = J(!1), g = He(l), y = li(n), $ = K(!1), [_, D] = J(0);
|
|
9492
|
+
return q(() => {
|
|
9490
9493
|
const T = u.current;
|
|
9491
9494
|
if (T)
|
|
9492
9495
|
return T.addEventListener(Tr, g), () => T.removeEventListener(Tr, g);
|
|
9493
9496
|
}, [
|
|
9494
9497
|
g
|
|
9495
|
-
]), /* @__PURE__ */
|
|
9498
|
+
]), /* @__PURE__ */ C(_m, {
|
|
9496
9499
|
scope: n,
|
|
9497
9500
|
orientation: r,
|
|
9498
9501
|
dir: h,
|
|
@@ -9509,18 +9512,18 @@ const Tr = "rovingFocusGroup.onEntryFocus", Cm = {
|
|
|
9509
9512
|
[]
|
|
9510
9513
|
),
|
|
9511
9514
|
onFocusableItemAdd: F(
|
|
9512
|
-
() =>
|
|
9515
|
+
() => D(
|
|
9513
9516
|
(T) => T + 1
|
|
9514
9517
|
),
|
|
9515
9518
|
[]
|
|
9516
9519
|
),
|
|
9517
9520
|
onFocusableItemRemove: F(
|
|
9518
|
-
() =>
|
|
9521
|
+
() => D(
|
|
9519
9522
|
(T) => T - 1
|
|
9520
9523
|
),
|
|
9521
9524
|
[]
|
|
9522
9525
|
)
|
|
9523
|
-
}, /* @__PURE__ */
|
|
9526
|
+
}, /* @__PURE__ */ C(Ee.div, z({
|
|
9524
9527
|
tabIndex: w || _ === 0 ? -1 : 0,
|
|
9525
9528
|
"data-orientation": r
|
|
9526
9529
|
}, d, {
|
|
@@ -9529,64 +9532,64 @@ const Tr = "rovingFocusGroup.onEntryFocus", Cm = {
|
|
|
9529
9532
|
outline: "none",
|
|
9530
9533
|
...e.style
|
|
9531
9534
|
},
|
|
9532
|
-
onMouseDown:
|
|
9533
|
-
|
|
9535
|
+
onMouseDown: Z(e.onMouseDown, () => {
|
|
9536
|
+
$.current = !0;
|
|
9534
9537
|
}),
|
|
9535
|
-
onFocus:
|
|
9536
|
-
const E =
|
|
9538
|
+
onFocus: Z(e.onFocus, (T) => {
|
|
9539
|
+
const E = !$.current;
|
|
9537
9540
|
if (T.target === T.currentTarget && E && !w) {
|
|
9538
|
-
const
|
|
9539
|
-
if (T.currentTarget.dispatchEvent(
|
|
9540
|
-
const
|
|
9541
|
+
const M = new CustomEvent(Tr, Cm);
|
|
9542
|
+
if (T.currentTarget.dispatchEvent(M), !M.defaultPrevented) {
|
|
9543
|
+
const k = y().filter(
|
|
9541
9544
|
(A) => A.focusable
|
|
9542
|
-
),
|
|
9545
|
+
), H = k.find(
|
|
9543
9546
|
(A) => A.active
|
|
9544
|
-
), N =
|
|
9547
|
+
), N = k.find(
|
|
9545
9548
|
(A) => A.id === f
|
|
9546
9549
|
), G = [
|
|
9547
|
-
|
|
9550
|
+
H,
|
|
9548
9551
|
N,
|
|
9549
|
-
...
|
|
9552
|
+
...k
|
|
9550
9553
|
].filter(Boolean).map(
|
|
9551
9554
|
(A) => A.ref.current
|
|
9552
9555
|
);
|
|
9553
9556
|
di(G);
|
|
9554
9557
|
}
|
|
9555
9558
|
}
|
|
9556
|
-
|
|
9559
|
+
$.current = !1;
|
|
9557
9560
|
}),
|
|
9558
|
-
onBlur:
|
|
9561
|
+
onBlur: Z(
|
|
9559
9562
|
e.onBlur,
|
|
9560
9563
|
() => b(!1)
|
|
9561
9564
|
)
|
|
9562
9565
|
})));
|
|
9563
|
-
}), Om = "RovingFocusGroupItem", Nm = /* @__PURE__ */
|
|
9566
|
+
}), Om = "RovingFocusGroupItem", Nm = /* @__PURE__ */ W((e, t) => {
|
|
9564
9567
|
const { __scopeRovingFocusGroup: n, focusable: r = !0, active: o = !1, tabStopId: s, ...a } = e, i = Kt(), c = s || i, l = Tm(Om, n), d = l.currentTabStopId === c, u = li(n), { onFocusableItemAdd: p, onFocusableItemRemove: h } = l;
|
|
9565
|
-
return
|
|
9568
|
+
return q(() => {
|
|
9566
9569
|
if (r)
|
|
9567
9570
|
return p(), () => h();
|
|
9568
9571
|
}, [
|
|
9569
9572
|
r,
|
|
9570
9573
|
p,
|
|
9571
9574
|
h
|
|
9572
|
-
]), /* @__PURE__ */
|
|
9575
|
+
]), /* @__PURE__ */ C(zr.ItemSlot, {
|
|
9573
9576
|
scope: n,
|
|
9574
9577
|
id: c,
|
|
9575
9578
|
focusable: r,
|
|
9576
9579
|
active: o
|
|
9577
|
-
}, /* @__PURE__ */
|
|
9580
|
+
}, /* @__PURE__ */ C(Ee.span, z({
|
|
9578
9581
|
tabIndex: d ? 0 : -1,
|
|
9579
9582
|
"data-orientation": l.orientation
|
|
9580
9583
|
}, a, {
|
|
9581
9584
|
ref: t,
|
|
9582
|
-
onMouseDown:
|
|
9585
|
+
onMouseDown: Z(e.onMouseDown, (f) => {
|
|
9583
9586
|
r ? l.onItemFocus(c) : f.preventDefault();
|
|
9584
9587
|
}),
|
|
9585
|
-
onFocus:
|
|
9588
|
+
onFocus: Z(
|
|
9586
9589
|
e.onFocus,
|
|
9587
9590
|
() => l.onItemFocus(c)
|
|
9588
9591
|
),
|
|
9589
|
-
onKeyDown:
|
|
9592
|
+
onKeyDown: Z(e.onKeyDown, (f) => {
|
|
9590
9593
|
if (f.key === "Tab" && f.shiftKey) {
|
|
9591
9594
|
l.onItemShiftTab();
|
|
9592
9595
|
return;
|
|
@@ -9684,8 +9687,8 @@ const km = Rm, jm = Nm, Wr = [
|
|
|
9684
9687
|
en,
|
|
9685
9688
|
ui
|
|
9686
9689
|
]), So = en(), mi = ui(), [Hm, Nt] = Ot(ur), [Um, $n] = Ot(ur), Km = (e) => {
|
|
9687
|
-
const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: s, modal: a = !0 } = e, i = So(t), [c, l] =
|
|
9688
|
-
return
|
|
9690
|
+
const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: s, modal: a = !0 } = e, i = So(t), [c, l] = J(null), d = K(!1), u = He(s), p = vo(o);
|
|
9691
|
+
return q(() => {
|
|
9689
9692
|
const h = () => {
|
|
9690
9693
|
d.current = !0, document.addEventListener("pointerdown", f, {
|
|
9691
9694
|
capture: !0,
|
|
@@ -9706,13 +9709,13 @@ const km = Rm, jm = Nm, Wr = [
|
|
|
9706
9709
|
capture: !0
|
|
9707
9710
|
});
|
|
9708
9711
|
};
|
|
9709
|
-
}, []), /* @__PURE__ */
|
|
9712
|
+
}, []), /* @__PURE__ */ C(co, i, /* @__PURE__ */ C(Hm, {
|
|
9710
9713
|
scope: t,
|
|
9711
9714
|
open: n,
|
|
9712
9715
|
onOpenChange: u,
|
|
9713
9716
|
content: c,
|
|
9714
9717
|
onContentChange: l
|
|
9715
|
-
}, /* @__PURE__ */
|
|
9718
|
+
}, /* @__PURE__ */ C(Um, {
|
|
9716
9719
|
scope: t,
|
|
9717
9720
|
onClose: F(
|
|
9718
9721
|
() => u(!1),
|
|
@@ -9724,49 +9727,49 @@ const km = Rm, jm = Nm, Wr = [
|
|
|
9724
9727
|
dir: p,
|
|
9725
9728
|
modal: a
|
|
9726
9729
|
}, r)));
|
|
9727
|
-
}, hi = /* @__PURE__ */
|
|
9730
|
+
}, hi = /* @__PURE__ */ W((e, t) => {
|
|
9728
9731
|
const { __scopeMenu: n, ...r } = e, o = So(n);
|
|
9729
|
-
return /* @__PURE__ */
|
|
9732
|
+
return /* @__PURE__ */ C(lo, z({}, o, r, {
|
|
9730
9733
|
ref: t
|
|
9731
9734
|
}));
|
|
9732
9735
|
}), vi = "MenuPortal", [Gm, gi] = Ot(vi, {
|
|
9733
9736
|
forceMount: void 0
|
|
9734
9737
|
}), Ym = (e) => {
|
|
9735
9738
|
const { __scopeMenu: t, forceMount: n, children: r, container: o } = e, s = Nt(vi, t);
|
|
9736
|
-
return /* @__PURE__ */
|
|
9739
|
+
return /* @__PURE__ */ C(Gm, {
|
|
9737
9740
|
scope: t,
|
|
9738
9741
|
forceMount: n
|
|
9739
|
-
}, /* @__PURE__ */
|
|
9742
|
+
}, /* @__PURE__ */ C(tn, {
|
|
9740
9743
|
present: n || s.open
|
|
9741
|
-
}, /* @__PURE__ */
|
|
9744
|
+
}, /* @__PURE__ */ C(wa, {
|
|
9742
9745
|
asChild: !0,
|
|
9743
9746
|
container: o
|
|
9744
9747
|
}, r)));
|
|
9745
|
-
}, We = "MenuContent", [Xm, Eo] = Ot(We), qm = /* @__PURE__ */
|
|
9748
|
+
}, We = "MenuContent", [Xm, Eo] = Ot(We), qm = /* @__PURE__ */ W((e, t) => {
|
|
9746
9749
|
const n = gi(We, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = Nt(We, e.__scopeMenu), a = $n(We, e.__scopeMenu);
|
|
9747
|
-
return /* @__PURE__ */
|
|
9750
|
+
return /* @__PURE__ */ C(gn.Provider, {
|
|
9748
9751
|
scope: e.__scopeMenu
|
|
9749
|
-
}, /* @__PURE__ */
|
|
9752
|
+
}, /* @__PURE__ */ C(tn, {
|
|
9750
9753
|
present: r || s.open
|
|
9751
|
-
}, /* @__PURE__ */
|
|
9754
|
+
}, /* @__PURE__ */ C(gn.Slot, {
|
|
9752
9755
|
scope: e.__scopeMenu
|
|
9753
|
-
}, a.modal ? /* @__PURE__ */
|
|
9756
|
+
}, a.modal ? /* @__PURE__ */ C(Zm, z({}, o, {
|
|
9754
9757
|
ref: t
|
|
9755
|
-
})) : /* @__PURE__ */
|
|
9758
|
+
})) : /* @__PURE__ */ C(Jm, z({}, o, {
|
|
9756
9759
|
ref: t
|
|
9757
9760
|
})))));
|
|
9758
|
-
}), Zm = /* @__PURE__ */
|
|
9761
|
+
}), Zm = /* @__PURE__ */ W((e, t) => {
|
|
9759
9762
|
const n = Nt(We, e.__scopeMenu), r = K(null), o = Se(t, r);
|
|
9760
|
-
return
|
|
9763
|
+
return q(() => {
|
|
9761
9764
|
const s = r.current;
|
|
9762
9765
|
if (s)
|
|
9763
9766
|
return Ra(s);
|
|
9764
|
-
}, []), /* @__PURE__ */
|
|
9767
|
+
}, []), /* @__PURE__ */ C(_o, z({}, e, {
|
|
9765
9768
|
ref: o,
|
|
9766
9769
|
trapFocus: n.open,
|
|
9767
9770
|
disableOutsidePointerEvents: n.open,
|
|
9768
9771
|
disableOutsideScroll: !0,
|
|
9769
|
-
onFocusOutside:
|
|
9772
|
+
onFocusOutside: Z(
|
|
9770
9773
|
e.onFocusOutside,
|
|
9771
9774
|
(s) => s.preventDefault(),
|
|
9772
9775
|
{
|
|
@@ -9775,32 +9778,32 @@ const km = Rm, jm = Nm, Wr = [
|
|
|
9775
9778
|
),
|
|
9776
9779
|
onDismiss: () => n.onOpenChange(!1)
|
|
9777
9780
|
}));
|
|
9778
|
-
}), Jm = /* @__PURE__ */
|
|
9781
|
+
}), Jm = /* @__PURE__ */ W((e, t) => {
|
|
9779
9782
|
const n = Nt(We, e.__scopeMenu);
|
|
9780
|
-
return /* @__PURE__ */
|
|
9783
|
+
return /* @__PURE__ */ C(_o, z({}, e, {
|
|
9781
9784
|
ref: t,
|
|
9782
9785
|
trapFocus: !1,
|
|
9783
9786
|
disableOutsidePointerEvents: !1,
|
|
9784
9787
|
disableOutsideScroll: !1,
|
|
9785
9788
|
onDismiss: () => n.onOpenChange(!1)
|
|
9786
9789
|
}));
|
|
9787
|
-
}), _o = /* @__PURE__ */
|
|
9788
|
-
const { __scopeMenu: n, loop: r = !1, trapFocus: o, onOpenAutoFocus: s, onCloseAutoFocus: a, disableOutsidePointerEvents: i, onEntryFocus: c, onEscapeKeyDown: l, onPointerDownOutside: d, onFocusOutside: u, onInteractOutside: p, onDismiss: h, disableOutsideScroll: f, ...m } = e, w = Nt(We, n), b = $n(We, n), g = So(n), y = mi(n),
|
|
9790
|
+
}), _o = /* @__PURE__ */ W((e, t) => {
|
|
9791
|
+
const { __scopeMenu: n, loop: r = !1, trapFocus: o, onOpenAutoFocus: s, onCloseAutoFocus: a, disableOutsidePointerEvents: i, onEntryFocus: c, onEscapeKeyDown: l, onPointerDownOutside: d, onFocusOutside: u, onInteractOutside: p, onDismiss: h, disableOutsideScroll: f, ...m } = e, w = Nt(We, n), b = $n(We, n), g = So(n), y = mi(n), $ = zm(n), [_, D] = J(null), T = K(null), E = Se(t, T, w.onContentChange), M = K(0), k = K(""), H = K(0), N = K(null), Q = K("right"), G = K(0), A = f ? go : Xt, I = f ? {
|
|
9789
9792
|
as: Ut,
|
|
9790
9793
|
allowPinchZoom: !0
|
|
9791
9794
|
} : void 0, P = (S) => {
|
|
9792
|
-
var
|
|
9793
|
-
const Y =
|
|
9795
|
+
var O, j;
|
|
9796
|
+
const Y = k.current + S, le = $().filter(
|
|
9794
9797
|
(oe) => !oe.disabled
|
|
9795
|
-
), ae = document.activeElement, be = (
|
|
9798
|
+
), ae = document.activeElement, be = (O = le.find(
|
|
9796
9799
|
(oe) => oe.ref.current === ae
|
|
9797
|
-
)) === null ||
|
|
9800
|
+
)) === null || O === void 0 ? void 0 : O.textValue, we = le.map(
|
|
9798
9801
|
(oe) => oe.textValue
|
|
9799
9802
|
), X = mh(we, Y, be), se = (j = le.find(
|
|
9800
9803
|
(oe) => oe.textValue === X
|
|
9801
9804
|
)) === null || j === void 0 ? void 0 : j.ref.current;
|
|
9802
9805
|
(function oe(ce) {
|
|
9803
|
-
|
|
9806
|
+
k.current = ce, window.clearTimeout(M.current), ce !== "" && (M.current = window.setTimeout(
|
|
9804
9807
|
() => oe(""),
|
|
9805
9808
|
1e3
|
|
9806
9809
|
));
|
|
@@ -9808,22 +9811,22 @@ const km = Rm, jm = Nm, Wr = [
|
|
|
9808
9811
|
() => se.focus()
|
|
9809
9812
|
);
|
|
9810
9813
|
};
|
|
9811
|
-
|
|
9814
|
+
q(() => () => window.clearTimeout(M.current), []), Sa();
|
|
9812
9815
|
const ee = F((S) => {
|
|
9813
|
-
var
|
|
9814
|
-
return Q.current === ((
|
|
9816
|
+
var O, j;
|
|
9817
|
+
return Q.current === ((O = N.current) === null || O === void 0 ? void 0 : O.side) && vh(S, (j = N.current) === null || j === void 0 ? void 0 : j.area);
|
|
9815
9818
|
}, []);
|
|
9816
|
-
return /* @__PURE__ */
|
|
9819
|
+
return /* @__PURE__ */ C(Xm, {
|
|
9817
9820
|
scope: n,
|
|
9818
|
-
searchRef:
|
|
9821
|
+
searchRef: k,
|
|
9819
9822
|
onItemEnter: F((S) => {
|
|
9820
9823
|
ee(S) && S.preventDefault();
|
|
9821
9824
|
}, [
|
|
9822
9825
|
ee
|
|
9823
9826
|
]),
|
|
9824
9827
|
onItemLeave: F((S) => {
|
|
9825
|
-
var
|
|
9826
|
-
ee(S) || ((
|
|
9828
|
+
var O;
|
|
9829
|
+
ee(S) || ((O = T.current) === null || O === void 0 || O.focus(), D(null));
|
|
9827
9830
|
}, [
|
|
9828
9831
|
ee
|
|
9829
9832
|
]),
|
|
@@ -9832,19 +9835,19 @@ const km = Rm, jm = Nm, Wr = [
|
|
|
9832
9835
|
}, [
|
|
9833
9836
|
ee
|
|
9834
9837
|
]),
|
|
9835
|
-
pointerGraceTimerRef:
|
|
9838
|
+
pointerGraceTimerRef: H,
|
|
9836
9839
|
onPointerGraceIntentChange: F((S) => {
|
|
9837
9840
|
N.current = S;
|
|
9838
9841
|
}, [])
|
|
9839
|
-
}, /* @__PURE__ */
|
|
9842
|
+
}, /* @__PURE__ */ C(A, I, /* @__PURE__ */ C(Ea, {
|
|
9840
9843
|
asChild: !0,
|
|
9841
9844
|
trapped: o,
|
|
9842
|
-
onMountAutoFocus:
|
|
9843
|
-
var
|
|
9844
|
-
S.preventDefault(), (
|
|
9845
|
+
onMountAutoFocus: Z(s, (S) => {
|
|
9846
|
+
var O;
|
|
9847
|
+
S.preventDefault(), (O = T.current) === null || O === void 0 || O.focus();
|
|
9845
9848
|
}),
|
|
9846
9849
|
onUnmountAutoFocus: a
|
|
9847
|
-
}, /* @__PURE__ */
|
|
9850
|
+
}, /* @__PURE__ */ C(eo, {
|
|
9848
9851
|
asChild: !0,
|
|
9849
9852
|
disableOutsidePointerEvents: i,
|
|
9850
9853
|
onEscapeKeyDown: l,
|
|
@@ -9852,18 +9855,18 @@ const km = Rm, jm = Nm, Wr = [
|
|
|
9852
9855
|
onFocusOutside: u,
|
|
9853
9856
|
onInteractOutside: p,
|
|
9854
9857
|
onDismiss: h
|
|
9855
|
-
}, /* @__PURE__ */
|
|
9858
|
+
}, /* @__PURE__ */ C(km, z({
|
|
9856
9859
|
asChild: !0
|
|
9857
9860
|
}, y, {
|
|
9858
9861
|
dir: b.dir,
|
|
9859
9862
|
orientation: "vertical",
|
|
9860
9863
|
loop: r,
|
|
9861
9864
|
currentTabStopId: _,
|
|
9862
|
-
onCurrentTabStopIdChange:
|
|
9863
|
-
onEntryFocus:
|
|
9865
|
+
onCurrentTabStopIdChange: D,
|
|
9866
|
+
onEntryFocus: Z(c, (S) => {
|
|
9864
9867
|
b.isUsingKeyboardRef.current || S.preventDefault();
|
|
9865
9868
|
})
|
|
9866
|
-
}), /* @__PURE__ */
|
|
9869
|
+
}), /* @__PURE__ */ C(uo, z({
|
|
9867
9870
|
role: "menu",
|
|
9868
9871
|
"aria-orientation": "vertical",
|
|
9869
9872
|
"data-state": $i(w.open),
|
|
@@ -9875,37 +9878,37 @@ const km = Rm, jm = Nm, Wr = [
|
|
|
9875
9878
|
outline: "none",
|
|
9876
9879
|
...m.style
|
|
9877
9880
|
},
|
|
9878
|
-
onKeyDown:
|
|
9881
|
+
onKeyDown: Z(m.onKeyDown, (S) => {
|
|
9879
9882
|
const j = S.target.closest("[data-radix-menu-content]") === S.currentTarget, Y = S.ctrlKey || S.altKey || S.metaKey, le = S.key.length === 1;
|
|
9880
9883
|
j && (S.key === "Tab" && S.preventDefault(), !Y && le && P(S.key));
|
|
9881
9884
|
const ae = T.current;
|
|
9882
9885
|
if (S.target !== ae || !Fm.includes(S.key))
|
|
9883
9886
|
return;
|
|
9884
9887
|
S.preventDefault();
|
|
9885
|
-
const we =
|
|
9888
|
+
const we = $().filter(
|
|
9886
9889
|
(X) => !X.disabled
|
|
9887
9890
|
).map(
|
|
9888
9891
|
(X) => X.ref.current
|
|
9889
9892
|
);
|
|
9890
9893
|
fi.includes(S.key) && we.reverse(), fh(we);
|
|
9891
9894
|
}),
|
|
9892
|
-
onBlur:
|
|
9893
|
-
S.currentTarget.contains(S.target) || (window.clearTimeout(
|
|
9895
|
+
onBlur: Z(e.onBlur, (S) => {
|
|
9896
|
+
S.currentTarget.contains(S.target) || (window.clearTimeout(M.current), k.current = "");
|
|
9894
9897
|
}),
|
|
9895
|
-
onPointerMove:
|
|
9896
|
-
const
|
|
9897
|
-
if (S.currentTarget.contains(
|
|
9898
|
+
onPointerMove: Z(e.onPointerMove, bn((S) => {
|
|
9899
|
+
const O = S.target, j = G.current !== S.clientX;
|
|
9900
|
+
if (S.currentTarget.contains(O) && j) {
|
|
9898
9901
|
const Y = S.clientX > G.current ? "right" : "left";
|
|
9899
9902
|
Q.current = Y, G.current = S.clientX;
|
|
9900
9903
|
}
|
|
9901
9904
|
}))
|
|
9902
9905
|
})))))));
|
|
9903
|
-
}), Qm = /* @__PURE__ */
|
|
9906
|
+
}), Qm = /* @__PURE__ */ W((e, t) => {
|
|
9904
9907
|
const { __scopeMenu: n, ...r } = e;
|
|
9905
|
-
return /* @__PURE__ */
|
|
9908
|
+
return /* @__PURE__ */ C(Ee.div, z({}, r, {
|
|
9906
9909
|
ref: t
|
|
9907
9910
|
}));
|
|
9908
|
-
}), Hr = "MenuItem", Os = "menu.itemSelect", To = /* @__PURE__ */
|
|
9911
|
+
}), Hr = "MenuItem", Os = "menu.itemSelect", To = /* @__PURE__ */ W((e, t) => {
|
|
9909
9912
|
const { disabled: n = !1, onSelect: r, ...o } = e, s = K(null), a = $n(Hr, e.__scopeMenu), i = Eo(Hr, e.__scopeMenu), c = Se(t, s), l = K(!1), d = () => {
|
|
9910
9913
|
const u = s.current;
|
|
9911
9914
|
if (!n && u) {
|
|
@@ -9922,26 +9925,26 @@ const km = Rm, jm = Nm, Wr = [
|
|
|
9922
9925
|
), oa(u, p), p.defaultPrevented ? l.current = !1 : a.onClose();
|
|
9923
9926
|
}
|
|
9924
9927
|
};
|
|
9925
|
-
return /* @__PURE__ */
|
|
9928
|
+
return /* @__PURE__ */ C(bi, z({}, o, {
|
|
9926
9929
|
ref: c,
|
|
9927
9930
|
disabled: n,
|
|
9928
|
-
onClick:
|
|
9931
|
+
onClick: Z(e.onClick, d),
|
|
9929
9932
|
onPointerDown: (u) => {
|
|
9930
9933
|
var p;
|
|
9931
9934
|
(p = e.onPointerDown) === null || p === void 0 || p.call(e, u), l.current = !0;
|
|
9932
9935
|
},
|
|
9933
|
-
onPointerUp:
|
|
9936
|
+
onPointerUp: Z(e.onPointerUp, (u) => {
|
|
9934
9937
|
var p;
|
|
9935
9938
|
l.current || (p = u.currentTarget) === null || p === void 0 || p.click();
|
|
9936
9939
|
}),
|
|
9937
|
-
onKeyDown:
|
|
9940
|
+
onKeyDown: Z(e.onKeyDown, (u) => {
|
|
9938
9941
|
const p = i.searchRef.current !== "";
|
|
9939
9942
|
n || p && u.key === " " || Wr.includes(u.key) && (u.currentTarget.click(), u.preventDefault());
|
|
9940
9943
|
})
|
|
9941
9944
|
}));
|
|
9942
|
-
}), bi = /* @__PURE__ */
|
|
9943
|
-
const { __scopeMenu: n, disabled: r = !1, textValue: o, ...s } = e, a = Eo(Hr, n), i = mi(n), c = K(null), l = Se(t, c), [d, u] =
|
|
9944
|
-
return
|
|
9945
|
+
}), bi = /* @__PURE__ */ W((e, t) => {
|
|
9946
|
+
const { __scopeMenu: n, disabled: r = !1, textValue: o, ...s } = e, a = Eo(Hr, n), i = mi(n), c = K(null), l = Se(t, c), [d, u] = J(!1), [p, h] = J("");
|
|
9947
|
+
return q(() => {
|
|
9945
9948
|
const f = c.current;
|
|
9946
9949
|
if (f) {
|
|
9947
9950
|
var m;
|
|
@@ -9949,48 +9952,48 @@ const km = Rm, jm = Nm, Wr = [
|
|
|
9949
9952
|
}
|
|
9950
9953
|
}, [
|
|
9951
9954
|
s.children
|
|
9952
|
-
]), /* @__PURE__ */
|
|
9955
|
+
]), /* @__PURE__ */ C(gn.ItemSlot, {
|
|
9953
9956
|
scope: n,
|
|
9954
9957
|
disabled: r,
|
|
9955
9958
|
textValue: o ?? p
|
|
9956
|
-
}, /* @__PURE__ */
|
|
9959
|
+
}, /* @__PURE__ */ C(jm, z({
|
|
9957
9960
|
asChild: !0
|
|
9958
9961
|
}, i, {
|
|
9959
9962
|
focusable: !r
|
|
9960
|
-
}), /* @__PURE__ */
|
|
9963
|
+
}), /* @__PURE__ */ C(Ee.div, z({
|
|
9961
9964
|
role: "menuitem",
|
|
9962
9965
|
"data-highlighted": d ? "" : void 0,
|
|
9963
9966
|
"aria-disabled": r || void 0,
|
|
9964
9967
|
"data-disabled": r ? "" : void 0
|
|
9965
9968
|
}, s, {
|
|
9966
9969
|
ref: l,
|
|
9967
|
-
onPointerMove:
|
|
9970
|
+
onPointerMove: Z(e.onPointerMove, bn((f) => {
|
|
9968
9971
|
r ? a.onItemLeave(f) : (a.onItemEnter(f), f.defaultPrevented || f.currentTarget.focus());
|
|
9969
9972
|
})),
|
|
9970
|
-
onPointerLeave:
|
|
9973
|
+
onPointerLeave: Z(e.onPointerLeave, bn(
|
|
9971
9974
|
(f) => a.onItemLeave(f)
|
|
9972
9975
|
)),
|
|
9973
|
-
onFocus:
|
|
9976
|
+
onFocus: Z(
|
|
9974
9977
|
e.onFocus,
|
|
9975
9978
|
() => u(!0)
|
|
9976
9979
|
),
|
|
9977
|
-
onBlur:
|
|
9980
|
+
onBlur: Z(
|
|
9978
9981
|
e.onBlur,
|
|
9979
9982
|
() => u(!1)
|
|
9980
9983
|
)
|
|
9981
9984
|
}))));
|
|
9982
|
-
}), eh = /* @__PURE__ */
|
|
9985
|
+
}), eh = /* @__PURE__ */ W((e, t) => {
|
|
9983
9986
|
const { checked: n = !1, onCheckedChange: r, ...o } = e;
|
|
9984
|
-
return /* @__PURE__ */
|
|
9987
|
+
return /* @__PURE__ */ C(wi, {
|
|
9985
9988
|
scope: e.__scopeMenu,
|
|
9986
9989
|
checked: n
|
|
9987
|
-
}, /* @__PURE__ */
|
|
9990
|
+
}, /* @__PURE__ */ C(To, z({
|
|
9988
9991
|
role: "menuitemcheckbox",
|
|
9989
9992
|
"aria-checked": qn(n) ? "mixed" : n
|
|
9990
9993
|
}, o, {
|
|
9991
9994
|
ref: t,
|
|
9992
9995
|
"data-state": Ro(n),
|
|
9993
|
-
onSelect:
|
|
9996
|
+
onSelect: Z(
|
|
9994
9997
|
o.onSelect,
|
|
9995
9998
|
() => r?.(qn(n) ? !0 : !n),
|
|
9996
9999
|
{
|
|
@@ -10002,18 +10005,18 @@ const km = Rm, jm = Nm, Wr = [
|
|
|
10002
10005
|
value: void 0,
|
|
10003
10006
|
onValueChange: () => {
|
|
10004
10007
|
}
|
|
10005
|
-
}), rh = "MenuRadioItem", oh = /* @__PURE__ */
|
|
10008
|
+
}), rh = "MenuRadioItem", oh = /* @__PURE__ */ W((e, t) => {
|
|
10006
10009
|
const { value: n, ...r } = e, o = nh(rh, e.__scopeMenu), s = n === o.value;
|
|
10007
|
-
return /* @__PURE__ */
|
|
10010
|
+
return /* @__PURE__ */ C(wi, {
|
|
10008
10011
|
scope: e.__scopeMenu,
|
|
10009
10012
|
checked: s
|
|
10010
|
-
}, /* @__PURE__ */
|
|
10013
|
+
}, /* @__PURE__ */ C(To, z({
|
|
10011
10014
|
role: "menuitemradio",
|
|
10012
10015
|
"aria-checked": s
|
|
10013
10016
|
}, r, {
|
|
10014
10017
|
ref: t,
|
|
10015
10018
|
"data-state": Ro(s),
|
|
10016
|
-
onSelect:
|
|
10019
|
+
onSelect: Z(r.onSelect, () => {
|
|
10017
10020
|
var a;
|
|
10018
10021
|
return (a = o.onValueChange) === null || a === void 0 ? void 0 : a.call(o, n);
|
|
10019
10022
|
}, {
|
|
@@ -10022,34 +10025,34 @@ const km = Rm, jm = Nm, Wr = [
|
|
|
10022
10025
|
})));
|
|
10023
10026
|
}), xi = "MenuItemIndicator", [wi, sh] = Ot(xi, {
|
|
10024
10027
|
checked: !1
|
|
10025
|
-
}), ah = /* @__PURE__ */
|
|
10028
|
+
}), ah = /* @__PURE__ */ W((e, t) => {
|
|
10026
10029
|
const { __scopeMenu: n, forceMount: r, ...o } = e, s = sh(xi, n);
|
|
10027
|
-
return /* @__PURE__ */
|
|
10030
|
+
return /* @__PURE__ */ C(tn, {
|
|
10028
10031
|
present: r || qn(s.checked) || s.checked === !0
|
|
10029
|
-
}, /* @__PURE__ */
|
|
10032
|
+
}, /* @__PURE__ */ C(Ee.span, z({}, o, {
|
|
10030
10033
|
ref: t,
|
|
10031
10034
|
"data-state": Ro(s.checked)
|
|
10032
10035
|
})));
|
|
10033
|
-
}), ih = /* @__PURE__ */
|
|
10036
|
+
}), ih = /* @__PURE__ */ W((e, t) => {
|
|
10034
10037
|
const { __scopeMenu: n, ...r } = e;
|
|
10035
|
-
return /* @__PURE__ */
|
|
10038
|
+
return /* @__PURE__ */ C(Ee.div, z({
|
|
10036
10039
|
role: "separator",
|
|
10037
10040
|
"aria-orientation": "horizontal"
|
|
10038
10041
|
}, r, {
|
|
10039
10042
|
ref: t
|
|
10040
10043
|
}));
|
|
10041
|
-
}), ch = "MenuSub", [xv, yi] = Ot(ch), Nn = "MenuSubTrigger", lh = /* @__PURE__ */
|
|
10044
|
+
}), ch = "MenuSub", [xv, yi] = Ot(ch), Nn = "MenuSubTrigger", lh = /* @__PURE__ */ W((e, t) => {
|
|
10042
10045
|
const n = Nt(Nn, e.__scopeMenu), r = $n(Nn, e.__scopeMenu), o = yi(Nn, e.__scopeMenu), s = Eo(Nn, e.__scopeMenu), a = K(null), { pointerGraceTimerRef: i, onPointerGraceIntentChange: c } = s, l = {
|
|
10043
10046
|
__scopeMenu: e.__scopeMenu
|
|
10044
10047
|
}, d = F(() => {
|
|
10045
10048
|
a.current && window.clearTimeout(a.current), a.current = null;
|
|
10046
10049
|
}, []);
|
|
10047
|
-
return
|
|
10050
|
+
return q(
|
|
10048
10051
|
() => d,
|
|
10049
10052
|
[
|
|
10050
10053
|
d
|
|
10051
10054
|
]
|
|
10052
|
-
),
|
|
10055
|
+
), q(() => {
|
|
10053
10056
|
const u = i.current;
|
|
10054
10057
|
return () => {
|
|
10055
10058
|
window.clearTimeout(u), c(null);
|
|
@@ -10057,9 +10060,9 @@ const km = Rm, jm = Nm, Wr = [
|
|
|
10057
10060
|
}, [
|
|
10058
10061
|
i,
|
|
10059
10062
|
c
|
|
10060
|
-
]), /* @__PURE__ */
|
|
10063
|
+
]), /* @__PURE__ */ C(hi, z({
|
|
10061
10064
|
asChild: !0
|
|
10062
|
-
}, l), /* @__PURE__ */
|
|
10065
|
+
}, l), /* @__PURE__ */ C(bi, z({
|
|
10063
10066
|
id: o.triggerId,
|
|
10064
10067
|
"aria-haspopup": "menu",
|
|
10065
10068
|
"aria-expanded": n.open,
|
|
@@ -10071,12 +10074,12 @@ const km = Rm, jm = Nm, Wr = [
|
|
|
10071
10074
|
var p;
|
|
10072
10075
|
(p = e.onClick) === null || p === void 0 || p.call(e, u), !(e.disabled || u.defaultPrevented) && (u.currentTarget.focus(), n.open || n.onOpenChange(!0));
|
|
10073
10076
|
},
|
|
10074
|
-
onPointerMove:
|
|
10077
|
+
onPointerMove: Z(e.onPointerMove, bn((u) => {
|
|
10075
10078
|
s.onItemEnter(u), !u.defaultPrevented && !e.disabled && !n.open && !a.current && (s.onPointerGraceIntentChange(null), a.current = window.setTimeout(() => {
|
|
10076
10079
|
n.onOpenChange(!0), d();
|
|
10077
10080
|
}, 100));
|
|
10078
10081
|
})),
|
|
10079
|
-
onPointerLeave:
|
|
10082
|
+
onPointerLeave: Z(e.onPointerLeave, bn((u) => {
|
|
10080
10083
|
var p;
|
|
10081
10084
|
d();
|
|
10082
10085
|
const h = (p = n.content) === null || p === void 0 ? void 0 : p.getBoundingClientRect();
|
|
@@ -10118,7 +10121,7 @@ const km = Rm, jm = Nm, Wr = [
|
|
|
10118
10121
|
s.onPointerGraceIntentChange(null);
|
|
10119
10122
|
}
|
|
10120
10123
|
})),
|
|
10121
|
-
onKeyDown:
|
|
10124
|
+
onKeyDown: Z(e.onKeyDown, (u) => {
|
|
10122
10125
|
const p = s.searchRef.current !== "";
|
|
10123
10126
|
if (!(e.disabled || p && u.key === " ") && Vm[r.dir].includes(u.key)) {
|
|
10124
10127
|
var h;
|
|
@@ -10126,15 +10129,15 @@ const km = Rm, jm = Nm, Wr = [
|
|
|
10126
10129
|
}
|
|
10127
10130
|
})
|
|
10128
10131
|
})));
|
|
10129
|
-
}), uh = "MenuSubContent", dh = /* @__PURE__ */
|
|
10132
|
+
}), uh = "MenuSubContent", dh = /* @__PURE__ */ W((e, t) => {
|
|
10130
10133
|
const n = gi(We, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = Nt(We, e.__scopeMenu), a = $n(We, e.__scopeMenu), i = yi(uh, e.__scopeMenu), c = K(null), l = Se(t, c);
|
|
10131
|
-
return /* @__PURE__ */
|
|
10134
|
+
return /* @__PURE__ */ C(gn.Provider, {
|
|
10132
10135
|
scope: e.__scopeMenu
|
|
10133
|
-
}, /* @__PURE__ */
|
|
10136
|
+
}, /* @__PURE__ */ C(tn, {
|
|
10134
10137
|
present: r || s.open
|
|
10135
|
-
}, /* @__PURE__ */
|
|
10138
|
+
}, /* @__PURE__ */ C(gn.Slot, {
|
|
10136
10139
|
scope: e.__scopeMenu
|
|
10137
|
-
}, /* @__PURE__ */
|
|
10140
|
+
}, /* @__PURE__ */ C(_o, z({
|
|
10138
10141
|
id: i.contentId,
|
|
10139
10142
|
"aria-labelledby": i.triggerId
|
|
10140
10143
|
}, o, {
|
|
@@ -10149,13 +10152,13 @@ const km = Rm, jm = Nm, Wr = [
|
|
|
10149
10152
|
a.isUsingKeyboardRef.current && ((u = c.current) === null || u === void 0 || u.focus()), d.preventDefault();
|
|
10150
10153
|
},
|
|
10151
10154
|
onCloseAutoFocus: (d) => d.preventDefault(),
|
|
10152
|
-
onFocusOutside:
|
|
10155
|
+
onFocusOutside: Z(e.onFocusOutside, (d) => {
|
|
10153
10156
|
d.target !== i.trigger && s.onOpenChange(!1);
|
|
10154
10157
|
}),
|
|
10155
|
-
onEscapeKeyDown:
|
|
10158
|
+
onEscapeKeyDown: Z(e.onEscapeKeyDown, (d) => {
|
|
10156
10159
|
a.onClose(), d.preventDefault();
|
|
10157
10160
|
}),
|
|
10158
|
-
onKeyDown:
|
|
10161
|
+
onKeyDown: Z(e.onKeyDown, (d) => {
|
|
10159
10162
|
const u = d.currentTarget.contains(d.target), p = Bm[a.dir].includes(d.key);
|
|
10160
10163
|
if (u && p) {
|
|
10161
10164
|
var h;
|
|
@@ -10226,7 +10229,7 @@ const gh = Km, bh = hi, xh = Ym, wh = qm, yh = Qm, $h = To, Ch = eh, Sh = oh, Eh
|
|
|
10226
10229
|
defaultProp: s,
|
|
10227
10230
|
onChange: a
|
|
10228
10231
|
});
|
|
10229
|
-
return /* @__PURE__ */
|
|
10232
|
+
return /* @__PURE__ */ C(Oh, {
|
|
10230
10233
|
scope: t,
|
|
10231
10234
|
triggerId: Kt(),
|
|
10232
10235
|
triggerRef: l,
|
|
@@ -10242,17 +10245,17 @@ const gh = Km, bh = hi, xh = Ym, wh = qm, yh = Qm, $h = To, Ch = eh, Sh = oh, Eh
|
|
|
10242
10245
|
]
|
|
10243
10246
|
),
|
|
10244
10247
|
modal: i
|
|
10245
|
-
}, /* @__PURE__ */
|
|
10248
|
+
}, /* @__PURE__ */ C(gh, z({}, c, {
|
|
10246
10249
|
open: d,
|
|
10247
10250
|
onOpenChange: u,
|
|
10248
10251
|
dir: r,
|
|
10249
10252
|
modal: i
|
|
10250
10253
|
}), n));
|
|
10251
|
-
}, Ih = "DropdownMenuTrigger", Mh = /* @__PURE__ */
|
|
10254
|
+
}, Ih = "DropdownMenuTrigger", Mh = /* @__PURE__ */ W((e, t) => {
|
|
10252
10255
|
const { __scopeDropdownMenu: n, disabled: r = !1, ...o } = e, s = Si(Ih, n), a = Be(n);
|
|
10253
|
-
return /* @__PURE__ */
|
|
10256
|
+
return /* @__PURE__ */ C(bh, z({
|
|
10254
10257
|
asChild: !0
|
|
10255
|
-
}, a), /* @__PURE__ */
|
|
10258
|
+
}, a), /* @__PURE__ */ C(Ee.button, z({
|
|
10256
10259
|
type: "button",
|
|
10257
10260
|
id: s.triggerId,
|
|
10258
10261
|
"aria-haspopup": "menu",
|
|
@@ -10263,10 +10266,10 @@ const gh = Km, bh = hi, xh = Ym, wh = qm, yh = Qm, $h = To, Ch = eh, Sh = oh, Eh
|
|
|
10263
10266
|
disabled: r
|
|
10264
10267
|
}, o, {
|
|
10265
10268
|
ref: tr(t, s.triggerRef),
|
|
10266
|
-
onPointerDown:
|
|
10269
|
+
onPointerDown: Z(e.onPointerDown, (i) => {
|
|
10267
10270
|
!r && i.button === 0 && i.ctrlKey === !1 && (s.onOpenToggle(), s.open || i.preventDefault());
|
|
10268
10271
|
}),
|
|
10269
|
-
onKeyDown:
|
|
10272
|
+
onKeyDown: Z(e.onKeyDown, (i) => {
|
|
10270
10273
|
r || ([
|
|
10271
10274
|
"Enter",
|
|
10272
10275
|
" "
|
|
@@ -10279,19 +10282,19 @@ const gh = Km, bh = hi, xh = Ym, wh = qm, yh = Qm, $h = To, Ch = eh, Sh = oh, Eh
|
|
|
10279
10282
|
})));
|
|
10280
10283
|
}), Dh = (e) => {
|
|
10281
10284
|
const { __scopeDropdownMenu: t, ...n } = e, r = Be(t);
|
|
10282
|
-
return /* @__PURE__ */
|
|
10283
|
-
}, Ah = "DropdownMenuContent", kh = /* @__PURE__ */
|
|
10285
|
+
return /* @__PURE__ */ C(xh, z({}, r, n));
|
|
10286
|
+
}, Ah = "DropdownMenuContent", kh = /* @__PURE__ */ W((e, t) => {
|
|
10284
10287
|
const { __scopeDropdownMenu: n, ...r } = e, o = Si(Ah, n), s = Be(n), a = K(!1);
|
|
10285
|
-
return /* @__PURE__ */
|
|
10288
|
+
return /* @__PURE__ */ C(wh, z({
|
|
10286
10289
|
id: o.contentId,
|
|
10287
10290
|
"aria-labelledby": o.triggerId
|
|
10288
10291
|
}, s, r, {
|
|
10289
10292
|
ref: t,
|
|
10290
|
-
onCloseAutoFocus:
|
|
10293
|
+
onCloseAutoFocus: Z(e.onCloseAutoFocus, (i) => {
|
|
10291
10294
|
var c;
|
|
10292
10295
|
a.current || (c = o.triggerRef.current) === null || c === void 0 || c.focus(), a.current = !1, i.preventDefault();
|
|
10293
10296
|
}),
|
|
10294
|
-
onInteractOutside:
|
|
10297
|
+
onInteractOutside: Z(e.onInteractOutside, (i) => {
|
|
10295
10298
|
const c = i.detail.originalEvent, l = c.button === 0 && c.ctrlKey === !0, d = c.button === 2 || l;
|
|
10296
10299
|
(!o.modal || d) && (a.current = !0);
|
|
10297
10300
|
}),
|
|
@@ -10304,44 +10307,44 @@ const gh = Km, bh = hi, xh = Ym, wh = qm, yh = Qm, $h = To, Ch = eh, Sh = oh, Eh
|
|
|
10304
10307
|
"--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
|
|
10305
10308
|
}
|
|
10306
10309
|
}));
|
|
10307
|
-
}), jh = /* @__PURE__ */
|
|
10310
|
+
}), jh = /* @__PURE__ */ W((e, t) => {
|
|
10308
10311
|
const { __scopeDropdownMenu: n, ...r } = e, o = Be(n);
|
|
10309
|
-
return /* @__PURE__ */
|
|
10312
|
+
return /* @__PURE__ */ C(yh, z({}, o, r, {
|
|
10310
10313
|
ref: t
|
|
10311
10314
|
}));
|
|
10312
|
-
}), Lh = /* @__PURE__ */
|
|
10315
|
+
}), Lh = /* @__PURE__ */ W((e, t) => {
|
|
10313
10316
|
const { __scopeDropdownMenu: n, ...r } = e, o = Be(n);
|
|
10314
|
-
return /* @__PURE__ */
|
|
10317
|
+
return /* @__PURE__ */ C($h, z({}, o, r, {
|
|
10315
10318
|
ref: t
|
|
10316
10319
|
}));
|
|
10317
|
-
}), Fh = /* @__PURE__ */
|
|
10320
|
+
}), Fh = /* @__PURE__ */ W((e, t) => {
|
|
10318
10321
|
const { __scopeDropdownMenu: n, ...r } = e, o = Be(n);
|
|
10319
|
-
return /* @__PURE__ */
|
|
10322
|
+
return /* @__PURE__ */ C(Ch, z({}, o, r, {
|
|
10320
10323
|
ref: t
|
|
10321
10324
|
}));
|
|
10322
|
-
}), Vh = /* @__PURE__ */
|
|
10325
|
+
}), Vh = /* @__PURE__ */ W((e, t) => {
|
|
10323
10326
|
const { __scopeDropdownMenu: n, ...r } = e, o = Be(n);
|
|
10324
|
-
return /* @__PURE__ */
|
|
10327
|
+
return /* @__PURE__ */ C(Sh, z({}, o, r, {
|
|
10325
10328
|
ref: t
|
|
10326
10329
|
}));
|
|
10327
|
-
}), Bh = /* @__PURE__ */
|
|
10330
|
+
}), Bh = /* @__PURE__ */ W((e, t) => {
|
|
10328
10331
|
const { __scopeDropdownMenu: n, ...r } = e, o = Be(n);
|
|
10329
|
-
return /* @__PURE__ */
|
|
10332
|
+
return /* @__PURE__ */ C(Eh, z({}, o, r, {
|
|
10330
10333
|
ref: t
|
|
10331
10334
|
}));
|
|
10332
|
-
}), zh = /* @__PURE__ */
|
|
10335
|
+
}), zh = /* @__PURE__ */ W((e, t) => {
|
|
10333
10336
|
const { __scopeDropdownMenu: n, ...r } = e, o = Be(n);
|
|
10334
|
-
return /* @__PURE__ */
|
|
10337
|
+
return /* @__PURE__ */ C(_h, z({}, o, r, {
|
|
10335
10338
|
ref: t
|
|
10336
10339
|
}));
|
|
10337
|
-
}), Wh = /* @__PURE__ */
|
|
10340
|
+
}), Wh = /* @__PURE__ */ W((e, t) => {
|
|
10338
10341
|
const { __scopeDropdownMenu: n, ...r } = e, o = Be(n);
|
|
10339
|
-
return /* @__PURE__ */
|
|
10342
|
+
return /* @__PURE__ */ C(Th, z({}, o, r, {
|
|
10340
10343
|
ref: t
|
|
10341
10344
|
}));
|
|
10342
|
-
}), Hh = /* @__PURE__ */
|
|
10345
|
+
}), Hh = /* @__PURE__ */ W((e, t) => {
|
|
10343
10346
|
const { __scopeDropdownMenu: n, ...r } = e, o = Be(n);
|
|
10344
|
-
return /* @__PURE__ */
|
|
10347
|
+
return /* @__PURE__ */ C(Rh, z({}, o, r, {
|
|
10345
10348
|
ref: t,
|
|
10346
10349
|
style: {
|
|
10347
10350
|
...e.style,
|
|
@@ -10823,15 +10826,15 @@ function lv(e) {
|
|
|
10823
10826
|
errorMessages: u,
|
|
10824
10827
|
maxImageSizeInKb: p,
|
|
10825
10828
|
...h
|
|
10826
|
-
} = e, f = K(null), [m, w] =
|
|
10827
|
-
E || (
|
|
10829
|
+
} = e, f = K(null), [m, w] = J(!1), [b, g] = J(""), [y, $] = J(!1), _ = !!u?.priorityError, D = u?.priorityError || b, T = !!D, E = i === "Disabled", M = i === "Uploading" || i === "Removing", k = i === "Finished", H = i === "Idle", N = (A) => A > 1024 ? `${(A / 1024).toFixed(1)}MB` : `${A}KB`, Q = (A) => {
|
|
10830
|
+
E || (H && f.current?.click(), o?.(A));
|
|
10828
10831
|
}, G = (A) => {
|
|
10829
10832
|
if (E)
|
|
10830
10833
|
return;
|
|
10831
10834
|
g("");
|
|
10832
|
-
const
|
|
10833
|
-
if (
|
|
10834
|
-
const P =
|
|
10835
|
+
const I = A.target.files?.[0];
|
|
10836
|
+
if (I) {
|
|
10837
|
+
const P = I.type, ee = I.size / 1024;
|
|
10835
10838
|
if (P !== "image/jpeg" && P !== "image/png") {
|
|
10836
10839
|
const S = u?.imageTypeError || "O tipo do arquivo enviado não é permitido, envie uma imagem";
|
|
10837
10840
|
g(S), a?.(S);
|
|
@@ -10847,7 +10850,7 @@ function lv(e) {
|
|
|
10847
10850
|
s?.(A);
|
|
10848
10851
|
}
|
|
10849
10852
|
};
|
|
10850
|
-
return
|
|
10853
|
+
return q(() => {
|
|
10851
10854
|
t && r && g("");
|
|
10852
10855
|
}, [t, r]), /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
|
|
10853
10856
|
/* @__PURE__ */ v.jsxs(
|
|
@@ -10857,23 +10860,23 @@ function lv(e) {
|
|
|
10857
10860
|
"sl-w-full sl-justify-between sl-cursor-pointer",
|
|
10858
10861
|
"sl-flex sl-items-center sl-gap-1 sl-rounded-md sl-border sl-border-primary-300 sl-px-4 sl-py-2 sl-text-primary-700 sl-transition-all sl-ease-linear",
|
|
10859
10862
|
"disabled:sl-border-primary-100 disabled:sl-bg-primary-100 disabled:sl-text-primary-500 disabled:sl-shadow-none",
|
|
10860
|
-
!
|
|
10861
|
-
!
|
|
10862
|
-
!
|
|
10863
|
+
!k && !T && !E && !M && "hover:sl-border-primary-500",
|
|
10864
|
+
!k && !T && M && "sl-border-primary-700",
|
|
10865
|
+
!k && !T && E && "sl-bg-primary-100 sl-border-transparent",
|
|
10863
10866
|
E && "sl-cursor-not-allowed",
|
|
10864
|
-
!
|
|
10865
|
-
!T &&
|
|
10867
|
+
!k && !T && m && "sl-bg-info-100 sl-border-info-400",
|
|
10868
|
+
!T && k && "sl-border-success-300",
|
|
10866
10869
|
T && "sl-border-danger-300"
|
|
10867
10870
|
),
|
|
10868
10871
|
onClick: Q,
|
|
10869
10872
|
onDragOver: (A) => {
|
|
10870
|
-
A.preventDefault(),
|
|
10873
|
+
A.preventDefault(), H && w(!0);
|
|
10871
10874
|
},
|
|
10872
10875
|
onDragLeave: (A) => {
|
|
10873
|
-
A.preventDefault(),
|
|
10876
|
+
A.preventDefault(), H && w(!1);
|
|
10874
10877
|
},
|
|
10875
10878
|
onDrop: (A) => {
|
|
10876
|
-
A.preventDefault(),
|
|
10879
|
+
A.preventDefault(), H && (f.current && (f.current.files = A.dataTransfer.files, f.current.dispatchEvent(new Event("change", { bubbles: !0 }))), w(!1));
|
|
10877
10880
|
},
|
|
10878
10881
|
"aria-disabled": E,
|
|
10879
10882
|
...h,
|
|
@@ -10886,7 +10889,7 @@ function lv(e) {
|
|
|
10886
10889
|
onChange: G,
|
|
10887
10890
|
className: "sl-hidden",
|
|
10888
10891
|
accept: "image/png, image/jpeg",
|
|
10889
|
-
disabled: !
|
|
10892
|
+
disabled: !H || E
|
|
10890
10893
|
}
|
|
10891
10894
|
),
|
|
10892
10895
|
/* @__PURE__ */ v.jsxs("div", { className: "sl-flex sl-items-center sl-gap-x-2 sl-gap-y-1 sl-flex-wrap", children: [
|
|
@@ -10993,21 +10996,21 @@ function lv(e) {
|
|
|
10993
10996
|
]
|
|
10994
10997
|
}
|
|
10995
10998
|
),
|
|
10996
|
-
!
|
|
10999
|
+
!k && !M && /* @__PURE__ */ v.jsx("div", { className: "sl-mt-0.5 sl-flex sl-w-full sl-flex-col sl-text-xs", children: /* @__PURE__ */ v.jsxs("p", { className: "sl-text-primary-600", children: [
|
|
10997
11000
|
"Arquivos aceitos: PNG e JPEG. Tamanho máximo de cada arquivo:",
|
|
10998
11001
|
" ",
|
|
10999
11002
|
N(p || 0),
|
|
11000
11003
|
"."
|
|
11001
11004
|
] }) }),
|
|
11002
|
-
T && /* @__PURE__ */ v.jsx("p", { className: "sl-mt-1 sl-text-xs sl-text-danger-300", children:
|
|
11003
|
-
!
|
|
11005
|
+
T && /* @__PURE__ */ v.jsx("p", { className: "sl-mt-1 sl-text-xs sl-text-danger-300", children: D }),
|
|
11006
|
+
!D && (E || k) && (!!l || r) && /* @__PURE__ */ v.jsxs("div", { className: "sl-w-1/2 sl-border sl-border-primary-300 sl-p-4 sl-rounded-md sl-mt-1", children: [
|
|
11004
11007
|
/* @__PURE__ */ v.jsxs("div", { className: "sl-mb-2 sl-flex sl-justify-between", children: [
|
|
11005
11008
|
/* @__PURE__ */ v.jsx("p", { className: "sl-text-primary-700 sl-text-sm", children: "Visualização da imagem" }),
|
|
11006
11009
|
/* @__PURE__ */ v.jsx(
|
|
11007
11010
|
Ql,
|
|
11008
11011
|
{
|
|
11009
11012
|
className: "sl-h-4 sl-w-4 sl-text-primary-500 sl-cursor-pointer",
|
|
11010
|
-
onClick: () =>
|
|
11013
|
+
onClick: () => $(!0)
|
|
11011
11014
|
}
|
|
11012
11015
|
)
|
|
11013
11016
|
] }),
|
|
@@ -11026,7 +11029,7 @@ function lv(e) {
|
|
|
11026
11029
|
imageUrl: r,
|
|
11027
11030
|
customImage: d,
|
|
11028
11031
|
onClose: () => {
|
|
11029
|
-
|
|
11032
|
+
$(!1);
|
|
11030
11033
|
}
|
|
11031
11034
|
}
|
|
11032
11035
|
)
|