caplink-saas-ui-shared-component-library 0.4.3 → 0.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/spreadsheet/model/matrix.d.ts +1 -1
- package/dist/index.es.js +954 -948
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +12 -12
- 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
|
-
import * as
|
|
3
|
-
import Ne, { createContext as Bt, useState as
|
|
2
|
+
import * as z from "react";
|
|
3
|
+
import Ne, { createContext as Bt, useState as q, useMemo as ve, useCallback as F, useEffect as Z, useContext as wn, useRef as K, useReducer as Ds, forwardRef as H, createElement as $, 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 = {};
|
|
@@ -54,38 +54,38 @@ function sc() {
|
|
|
54
54
|
var b = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
55
55
|
function g(x) {
|
|
56
56
|
{
|
|
57
|
-
for (var R = arguments.length,
|
|
58
|
-
|
|
59
|
-
y("error", x,
|
|
57
|
+
for (var R = arguments.length, B = new Array(R > 1 ? R - 1 : 0), te = 1; te < R; te++)
|
|
58
|
+
B[te - 1] = arguments[te];
|
|
59
|
+
y("error", x, B);
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
-
function y(x, R,
|
|
62
|
+
function y(x, R, B) {
|
|
63
63
|
{
|
|
64
64
|
var te = b.ReactDebugCurrentFrame, xe = te.getStackAddendum();
|
|
65
|
-
xe !== "" && (R += "%s",
|
|
66
|
-
var ye =
|
|
65
|
+
xe !== "" && (R += "%s", B = B.concat([xe]));
|
|
66
|
+
var ye = B.map(function(pe) {
|
|
67
67
|
return String(pe);
|
|
68
68
|
});
|
|
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 C = !1, _ = !1, M = !1, T = !1, E = !1, k;
|
|
73
|
+
k = Symbol.for("react.module.reference");
|
|
74
|
+
function O(x) {
|
|
75
|
+
return !!(typeof x == "string" || typeof x == "function" || x === r || x === s || E || x === o || x === l || x === d || T || x === h || C || _ || M || 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 === k || x.getModuleId !== void 0));
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function V(x, R, B) {
|
|
82
82
|
var te = x.displayName;
|
|
83
83
|
if (te)
|
|
84
84
|
return te;
|
|
85
85
|
var xe = R.displayName || R.name || "";
|
|
86
|
-
return xe !== "" ?
|
|
86
|
+
return xe !== "" ? B + "(" + xe + ")" : B;
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function I(x) {
|
|
89
89
|
return x.displayName || "Context";
|
|
90
90
|
}
|
|
91
91
|
function Q(x) {
|
|
@@ -113,12 +113,12 @@ function sc() {
|
|
|
113
113
|
switch (x.$$typeof) {
|
|
114
114
|
case i:
|
|
115
115
|
var R = x;
|
|
116
|
-
return
|
|
116
|
+
return I(R) + ".Consumer";
|
|
117
117
|
case a:
|
|
118
|
-
var
|
|
119
|
-
return
|
|
118
|
+
var B = x;
|
|
119
|
+
return I(B._context) + ".Provider";
|
|
120
120
|
case c:
|
|
121
|
-
return
|
|
121
|
+
return V(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, D, P, ee, S, N, 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
|
+
D = console.log, P = console.info, ee = console.warn, S = console.error, N = 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: D
|
|
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: N
|
|
186
186
|
}),
|
|
187
187
|
groupCollapsed: G({}, x, {
|
|
188
188
|
value: j
|
|
@@ -196,7 +196,7 @@ function sc() {
|
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
198
|
var we = b.ReactCurrentDispatcher, X;
|
|
199
|
-
function se(x, R,
|
|
199
|
+
function se(x, R, B) {
|
|
200
200
|
{
|
|
201
201
|
if (X === void 0)
|
|
202
202
|
try {
|
|
@@ -218,9 +218,9 @@ function sc() {
|
|
|
218
218
|
if (!x || oe)
|
|
219
219
|
return "";
|
|
220
220
|
{
|
|
221
|
-
var
|
|
222
|
-
if (
|
|
223
|
-
return
|
|
221
|
+
var B = ce.get(x);
|
|
222
|
+
if (B !== void 0)
|
|
223
|
+
return B;
|
|
224
224
|
}
|
|
225
225
|
var te;
|
|
226
226
|
oe = !0;
|
|
@@ -285,14 +285,14 @@ function sc() {
|
|
|
285
285
|
var Mt = x ? x.displayName || x.name : "", Ct = Mt ? se(Mt) : "";
|
|
286
286
|
return typeof x == "function" && ce.set(x, Ct), Ct;
|
|
287
287
|
}
|
|
288
|
-
function Re(x, R,
|
|
288
|
+
function Re(x, R, B) {
|
|
289
289
|
return fe(x, !1);
|
|
290
290
|
}
|
|
291
291
|
function Me(x) {
|
|
292
292
|
var R = x.prototype;
|
|
293
293
|
return !!(R && R.isReactComponent);
|
|
294
294
|
}
|
|
295
|
-
function L(x, R,
|
|
295
|
+
function L(x, R, B) {
|
|
296
296
|
if (x == null)
|
|
297
297
|
return "";
|
|
298
298
|
if (typeof x == "function")
|
|
@@ -310,11 +310,11 @@ function sc() {
|
|
|
310
310
|
case c:
|
|
311
311
|
return Re(x.render);
|
|
312
312
|
case u:
|
|
313
|
-
return L(x.type, R,
|
|
313
|
+
return L(x.type, R, B);
|
|
314
314
|
case p: {
|
|
315
315
|
var te = x, xe = te._payload, ye = te._init;
|
|
316
316
|
try {
|
|
317
|
-
return L(ye(xe), R,
|
|
317
|
+
return L(ye(xe), R, B);
|
|
318
318
|
} catch {
|
|
319
319
|
}
|
|
320
320
|
}
|
|
@@ -324,12 +324,12 @@ function sc() {
|
|
|
324
324
|
var U = Object.prototype.hasOwnProperty, re = {}, $e = b.ReactDebugCurrentFrame;
|
|
325
325
|
function Pe(x) {
|
|
326
326
|
if (x) {
|
|
327
|
-
var R = x._owner,
|
|
328
|
-
$e.setExtraStackFrame(
|
|
327
|
+
var R = x._owner, B = L(x.type, x._source, R ? R.type : null);
|
|
328
|
+
$e.setExtraStackFrame(B);
|
|
329
329
|
} else
|
|
330
330
|
$e.setExtraStackFrame(null);
|
|
331
331
|
}
|
|
332
|
-
function he(x, R,
|
|
332
|
+
function he(x, R, B, te, xe) {
|
|
333
333
|
{
|
|
334
334
|
var ye = Function.call.bind(U);
|
|
335
335
|
for (var pe in x)
|
|
@@ -337,14 +337,14 @@ function sc() {
|
|
|
337
337
|
var ue = void 0;
|
|
338
338
|
try {
|
|
339
339
|
if (typeof x[pe] != "function") {
|
|
340
|
-
var Ae = Error((te || "React class") + ": " +
|
|
340
|
+
var Ae = Error((te || "React class") + ": " + B + " type `" + pe + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof x[pe] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
341
341
|
throw Ae.name = "Invariant Violation", Ae;
|
|
342
342
|
}
|
|
343
|
-
ue = x[pe](R, pe, te,
|
|
343
|
+
ue = x[pe](R, pe, te, B, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
344
344
|
} catch (Te) {
|
|
345
345
|
ue = Te;
|
|
346
346
|
}
|
|
347
|
-
ue && !(ue instanceof Error) && (Pe(xe), g("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", te || "React class",
|
|
347
|
+
ue && !(ue instanceof Error) && (Pe(xe), g("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", te || "React class", B, pe, typeof ue), Pe(null)), ue instanceof Error && !(ue.message in re) && (re[ue.message] = !0, Pe(xe), g("Failed %s type: %s", B, ue.message), Pe(null));
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
350
|
}
|
|
@@ -354,8 +354,8 @@ function sc() {
|
|
|
354
354
|
}
|
|
355
355
|
function $t(x) {
|
|
356
356
|
{
|
|
357
|
-
var R = typeof Symbol == "function" && Symbol.toStringTag,
|
|
358
|
-
return
|
|
357
|
+
var R = typeof Symbol == "function" && Symbol.toStringTag, B = R && x[Symbol.toStringTag] || x.constructor.name || "Object";
|
|
358
|
+
return B;
|
|
359
359
|
}
|
|
360
360
|
}
|
|
361
361
|
function dr(x) {
|
|
@@ -397,40 +397,40 @@ function sc() {
|
|
|
397
397
|
}
|
|
398
398
|
function Vi(x, R) {
|
|
399
399
|
if (typeof x.ref == "string" && rn.current && R && rn.current.stateNode !== R) {
|
|
400
|
-
var
|
|
401
|
-
fr[
|
|
400
|
+
var B = Q(rn.current.type);
|
|
401
|
+
fr[B] || (g('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', Q(rn.current.type), x.ref), fr[B] = !0);
|
|
402
402
|
}
|
|
403
403
|
}
|
|
404
404
|
function Bi(x, R) {
|
|
405
405
|
{
|
|
406
|
-
var
|
|
406
|
+
var B = function() {
|
|
407
407
|
No || (No = !0, g("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", R));
|
|
408
408
|
};
|
|
409
|
-
|
|
410
|
-
get:
|
|
409
|
+
B.isReactWarning = !0, Object.defineProperty(x, "key", {
|
|
410
|
+
get: B,
|
|
411
411
|
configurable: !0
|
|
412
412
|
});
|
|
413
413
|
}
|
|
414
414
|
}
|
|
415
415
|
function zi(x, R) {
|
|
416
416
|
{
|
|
417
|
-
var
|
|
417
|
+
var B = function() {
|
|
418
418
|
Io || (Io = !0, g("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", R));
|
|
419
419
|
};
|
|
420
|
-
|
|
421
|
-
get:
|
|
420
|
+
B.isReactWarning = !0, Object.defineProperty(x, "ref", {
|
|
421
|
+
get: B,
|
|
422
422
|
configurable: !0
|
|
423
423
|
});
|
|
424
424
|
}
|
|
425
425
|
}
|
|
426
|
-
var Wi = function(x, R,
|
|
426
|
+
var Wi = function(x, R, B, te, xe, ye, pe) {
|
|
427
427
|
var ue = {
|
|
428
428
|
// This tag allows us to uniquely identify this as a React Element
|
|
429
429
|
$$typeof: t,
|
|
430
430
|
// Built-in properties that belong on the element
|
|
431
431
|
type: x,
|
|
432
432
|
key: R,
|
|
433
|
-
ref:
|
|
433
|
+
ref: B,
|
|
434
434
|
props: pe,
|
|
435
435
|
// Record the component responsible for creating this element.
|
|
436
436
|
_owner: ye
|
|
@@ -452,10 +452,10 @@ function sc() {
|
|
|
452
452
|
value: xe
|
|
453
453
|
}), Object.freeze && (Object.freeze(ue.props), Object.freeze(ue)), ue;
|
|
454
454
|
};
|
|
455
|
-
function Hi(x, R,
|
|
455
|
+
function Hi(x, R, B, te, xe) {
|
|
456
456
|
{
|
|
457
457
|
var ye, pe = {}, ue = null, Ae = null;
|
|
458
|
-
|
|
458
|
+
B !== void 0 && (Oo(B), ue = "" + B), Fi(R) && (Oo(R.key), ue = "" + R.key), Li(R) && (Ae = R.ref, Vi(R, xe));
|
|
459
459
|
for (ye in R)
|
|
460
460
|
U.call(R, ye) && !ji.hasOwnProperty(ye) && (pe[ye] = R[ye]);
|
|
461
461
|
if (x && x.defaultProps) {
|
|
@@ -473,8 +473,8 @@ function sc() {
|
|
|
473
473
|
var pr = b.ReactCurrentOwner, Mo = b.ReactDebugCurrentFrame;
|
|
474
474
|
function It(x) {
|
|
475
475
|
if (x) {
|
|
476
|
-
var R = x._owner,
|
|
477
|
-
Mo.setExtraStackFrame(
|
|
476
|
+
var R = x._owner, B = L(x.type, x._source, R ? R.type : null);
|
|
477
|
+
Mo.setExtraStackFrame(B);
|
|
478
478
|
} else
|
|
479
479
|
Mo.setExtraStackFrame(null);
|
|
480
480
|
}
|
|
@@ -503,10 +503,10 @@ Check the render method of \`` + x + "`.";
|
|
|
503
503
|
{
|
|
504
504
|
var R = Do();
|
|
505
505
|
if (!R) {
|
|
506
|
-
var
|
|
507
|
-
|
|
506
|
+
var B = typeof x == "string" ? x : x.displayName || x.name;
|
|
507
|
+
B && (R = `
|
|
508
508
|
|
|
509
|
-
Check the top-level render call using <` +
|
|
509
|
+
Check the top-level render call using <` + B + ">.");
|
|
510
510
|
}
|
|
511
511
|
return R;
|
|
512
512
|
}
|
|
@@ -516,12 +516,12 @@ Check the top-level render call using <` + V + ">.");
|
|
|
516
516
|
if (!x._store || x._store.validated || x.key != null)
|
|
517
517
|
return;
|
|
518
518
|
x._store.validated = !0;
|
|
519
|
-
var
|
|
520
|
-
if (Ao[
|
|
519
|
+
var B = Ki(R);
|
|
520
|
+
if (Ao[B])
|
|
521
521
|
return;
|
|
522
|
-
Ao[
|
|
522
|
+
Ao[B] = !0;
|
|
523
523
|
var te = "";
|
|
524
|
-
x && x._owner && x._owner !== pr.current && (te = " It was passed a child from " + Q(x._owner.type) + "."), It(x), g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',
|
|
524
|
+
x && x._owner && x._owner !== pr.current && (te = " It was passed a child from " + Q(x._owner.type) + "."), It(x), g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', B, te), It(null);
|
|
525
525
|
}
|
|
526
526
|
}
|
|
527
527
|
function jo(x, R) {
|
|
@@ -529,8 +529,8 @@ Check the top-level render call using <` + V + ">.");
|
|
|
529
529
|
if (typeof x != "object")
|
|
530
530
|
return;
|
|
531
531
|
if (De(x))
|
|
532
|
-
for (var
|
|
533
|
-
var te = x[
|
|
532
|
+
for (var B = 0; B < x.length; B++) {
|
|
533
|
+
var te = x[B];
|
|
534
534
|
hr(te) && ko(te, R);
|
|
535
535
|
}
|
|
536
536
|
else if (hr(x))
|
|
@@ -548,18 +548,18 @@ Check the top-level render call using <` + V + ">.");
|
|
|
548
548
|
var R = x.type;
|
|
549
549
|
if (R == null || typeof R == "string")
|
|
550
550
|
return;
|
|
551
|
-
var
|
|
551
|
+
var B;
|
|
552
552
|
if (typeof R == "function")
|
|
553
|
-
|
|
553
|
+
B = R.propTypes;
|
|
554
554
|
else if (typeof R == "object" && (R.$$typeof === c || // Note: Memo only checks outer props here.
|
|
555
555
|
// Inner props are checked in the reconciler.
|
|
556
556
|
R.$$typeof === u))
|
|
557
|
-
|
|
557
|
+
B = R.propTypes;
|
|
558
558
|
else
|
|
559
559
|
return;
|
|
560
|
-
if (
|
|
560
|
+
if (B) {
|
|
561
561
|
var te = Q(R);
|
|
562
|
-
he(
|
|
562
|
+
he(B, x.props, "prop", te, x);
|
|
563
563
|
} else if (R.PropTypes !== void 0 && !mr) {
|
|
564
564
|
mr = !0;
|
|
565
565
|
var xe = Q(R);
|
|
@@ -570,8 +570,8 @@ Check the top-level render call using <` + V + ">.");
|
|
|
570
570
|
}
|
|
571
571
|
function Yi(x) {
|
|
572
572
|
{
|
|
573
|
-
for (var R = Object.keys(x.props),
|
|
574
|
-
var te = R[
|
|
573
|
+
for (var R = Object.keys(x.props), B = 0; B < R.length; B++) {
|
|
574
|
+
var te = R[B];
|
|
575
575
|
if (te !== "children" && te !== "key") {
|
|
576
576
|
It(x), g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", te), It(null);
|
|
577
577
|
break;
|
|
@@ -581,9 +581,9 @@ Check the top-level render call using <` + V + ">.");
|
|
|
581
581
|
}
|
|
582
582
|
}
|
|
583
583
|
var Lo = {};
|
|
584
|
-
function Fo(x, R,
|
|
584
|
+
function Fo(x, R, B, te, xe, ye) {
|
|
585
585
|
{
|
|
586
|
-
var pe =
|
|
586
|
+
var pe = O(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.");
|
|
@@ -592,7 +592,7 @@ Check the top-level render call using <` + V + ">.");
|
|
|
592
592
|
var Te;
|
|
593
593
|
x === null ? Te = "null" : De(x) ? Te = "array" : x !== void 0 && x.$$typeof === t ? (Te = "<" + (Q(x.type) || "Unknown") + " />", ue = " Did you accidentally export a JSX literal instead of a component?") : Te = typeof x, g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Te, ue);
|
|
594
594
|
}
|
|
595
|
-
var Oe = Hi(x, R,
|
|
595
|
+
var Oe = Hi(x, R, B, xe, ye);
|
|
596
596
|
if (Oe == null)
|
|
597
597
|
return Oe;
|
|
598
598
|
if (pe) {
|
|
@@ -625,11 +625,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
625
625
|
return x === r ? Yi(Oe) : Gi(Oe), Oe;
|
|
626
626
|
}
|
|
627
627
|
}
|
|
628
|
-
function Xi(x, R,
|
|
629
|
-
return Fo(x, R,
|
|
628
|
+
function Xi(x, R, B) {
|
|
629
|
+
return Fo(x, R, B, !0);
|
|
630
630
|
}
|
|
631
|
-
function qi(x, R,
|
|
632
|
-
return Fo(x, R,
|
|
631
|
+
function qi(x, R, B) {
|
|
632
|
+
return Fo(x, R, B, !1);
|
|
633
633
|
}
|
|
634
634
|
var Zi = qi, Ji = Xi;
|
|
635
635
|
sn.Fragment = r, sn.jsx = Zi, sn.jsxs = Ji;
|
|
@@ -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"), C = Ce("scale"), _ = Ce("sepia"), M = Ce("skew"), T = Ce("space"), E = Ce("translate"), k = () => ["auto", "contain", "none"], O = () => ["auto", "hidden", "clip", "visible", "scroll"], V = () => ["auto", ie, t], I = () => [ie, t], Q = () => ["", Qe, it], G = () => ["auto", Et, ie], A = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], D = () => ["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], N = () => ["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: ":",
|
|
@@ -971,25 +971,25 @@ function Uo() {
|
|
|
971
971
|
brightness: j(),
|
|
972
972
|
borderColor: [e],
|
|
973
973
|
borderRadius: ["none", "", "full", ct, ie],
|
|
974
|
-
borderSpacing:
|
|
974
|
+
borderSpacing: I(),
|
|
975
975
|
borderWidth: Q(),
|
|
976
976
|
contrast: j(),
|
|
977
977
|
grayscale: S(),
|
|
978
978
|
hueRotate: Y(),
|
|
979
979
|
invert: S(),
|
|
980
|
-
gap:
|
|
980
|
+
gap: I(),
|
|
981
981
|
gradientColorStops: [e],
|
|
982
982
|
gradientColorStopPositions: [_c, it],
|
|
983
|
-
inset:
|
|
984
|
-
margin:
|
|
983
|
+
inset: V(),
|
|
984
|
+
margin: V(),
|
|
985
985
|
opacity: j(),
|
|
986
|
-
padding:
|
|
986
|
+
padding: I(),
|
|
987
987
|
saturate: j(),
|
|
988
988
|
scale: j(),
|
|
989
989
|
sepia: S(),
|
|
990
990
|
skew: Y(),
|
|
991
|
-
space:
|
|
992
|
-
translate:
|
|
991
|
+
space: I(),
|
|
992
|
+
translate: I()
|
|
993
993
|
},
|
|
994
994
|
classGroups: {
|
|
995
995
|
// Layout
|
|
@@ -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": N()
|
|
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": N()
|
|
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: O()
|
|
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": O()
|
|
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": O()
|
|
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: k()
|
|
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": k()
|
|
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": k()
|
|
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: V()
|
|
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: [...D(), "wavy"]
|
|
1779
1779
|
}],
|
|
1780
1780
|
/**
|
|
1781
1781
|
* Text Decoration Thickness
|
|
@@ -1820,7 +1820,7 @@ function Uo() {
|
|
|
1820
1820
|
* @see https://tailwindcss.com/docs/text-indent
|
|
1821
1821
|
*/
|
|
1822
1822
|
indent: [{
|
|
1823
|
-
indent:
|
|
1823
|
+
indent: I()
|
|
1824
1824
|
}],
|
|
1825
1825
|
/**
|
|
1826
1826
|
* Vertical Alignment
|
|
@@ -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: [...D(), "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: D()
|
|
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: ["", ...D()]
|
|
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: [C]
|
|
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": [C]
|
|
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": [C]
|
|
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": [M]
|
|
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": [M]
|
|
2637
2637
|
}],
|
|
2638
2638
|
/**
|
|
2639
2639
|
* Transform Origin
|
|
@@ -2697,126 +2697,126 @@ function Uo() {
|
|
|
2697
2697
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2698
2698
|
*/
|
|
2699
2699
|
"scroll-m": [{
|
|
2700
|
-
"scroll-m":
|
|
2700
|
+
"scroll-m": I()
|
|
2701
2701
|
}],
|
|
2702
2702
|
/**
|
|
2703
2703
|
* Scroll Margin X
|
|
2704
2704
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2705
2705
|
*/
|
|
2706
2706
|
"scroll-mx": [{
|
|
2707
|
-
"scroll-mx":
|
|
2707
|
+
"scroll-mx": I()
|
|
2708
2708
|
}],
|
|
2709
2709
|
/**
|
|
2710
2710
|
* Scroll Margin Y
|
|
2711
2711
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2712
2712
|
*/
|
|
2713
2713
|
"scroll-my": [{
|
|
2714
|
-
"scroll-my":
|
|
2714
|
+
"scroll-my": I()
|
|
2715
2715
|
}],
|
|
2716
2716
|
/**
|
|
2717
2717
|
* Scroll Margin Start
|
|
2718
2718
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2719
2719
|
*/
|
|
2720
2720
|
"scroll-ms": [{
|
|
2721
|
-
"scroll-ms":
|
|
2721
|
+
"scroll-ms": I()
|
|
2722
2722
|
}],
|
|
2723
2723
|
/**
|
|
2724
2724
|
* Scroll Margin End
|
|
2725
2725
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2726
2726
|
*/
|
|
2727
2727
|
"scroll-me": [{
|
|
2728
|
-
"scroll-me":
|
|
2728
|
+
"scroll-me": I()
|
|
2729
2729
|
}],
|
|
2730
2730
|
/**
|
|
2731
2731
|
* Scroll Margin Top
|
|
2732
2732
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2733
2733
|
*/
|
|
2734
2734
|
"scroll-mt": [{
|
|
2735
|
-
"scroll-mt":
|
|
2735
|
+
"scroll-mt": I()
|
|
2736
2736
|
}],
|
|
2737
2737
|
/**
|
|
2738
2738
|
* Scroll Margin Right
|
|
2739
2739
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2740
2740
|
*/
|
|
2741
2741
|
"scroll-mr": [{
|
|
2742
|
-
"scroll-mr":
|
|
2742
|
+
"scroll-mr": I()
|
|
2743
2743
|
}],
|
|
2744
2744
|
/**
|
|
2745
2745
|
* Scroll Margin Bottom
|
|
2746
2746
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2747
2747
|
*/
|
|
2748
2748
|
"scroll-mb": [{
|
|
2749
|
-
"scroll-mb":
|
|
2749
|
+
"scroll-mb": I()
|
|
2750
2750
|
}],
|
|
2751
2751
|
/**
|
|
2752
2752
|
* Scroll Margin Left
|
|
2753
2753
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2754
2754
|
*/
|
|
2755
2755
|
"scroll-ml": [{
|
|
2756
|
-
"scroll-ml":
|
|
2756
|
+
"scroll-ml": I()
|
|
2757
2757
|
}],
|
|
2758
2758
|
/**
|
|
2759
2759
|
* Scroll Padding
|
|
2760
2760
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2761
2761
|
*/
|
|
2762
2762
|
"scroll-p": [{
|
|
2763
|
-
"scroll-p":
|
|
2763
|
+
"scroll-p": I()
|
|
2764
2764
|
}],
|
|
2765
2765
|
/**
|
|
2766
2766
|
* Scroll Padding X
|
|
2767
2767
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2768
2768
|
*/
|
|
2769
2769
|
"scroll-px": [{
|
|
2770
|
-
"scroll-px":
|
|
2770
|
+
"scroll-px": I()
|
|
2771
2771
|
}],
|
|
2772
2772
|
/**
|
|
2773
2773
|
* Scroll Padding Y
|
|
2774
2774
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2775
2775
|
*/
|
|
2776
2776
|
"scroll-py": [{
|
|
2777
|
-
"scroll-py":
|
|
2777
|
+
"scroll-py": I()
|
|
2778
2778
|
}],
|
|
2779
2779
|
/**
|
|
2780
2780
|
* Scroll Padding Start
|
|
2781
2781
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2782
2782
|
*/
|
|
2783
2783
|
"scroll-ps": [{
|
|
2784
|
-
"scroll-ps":
|
|
2784
|
+
"scroll-ps": I()
|
|
2785
2785
|
}],
|
|
2786
2786
|
/**
|
|
2787
2787
|
* Scroll Padding End
|
|
2788
2788
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2789
2789
|
*/
|
|
2790
2790
|
"scroll-pe": [{
|
|
2791
|
-
"scroll-pe":
|
|
2791
|
+
"scroll-pe": I()
|
|
2792
2792
|
}],
|
|
2793
2793
|
/**
|
|
2794
2794
|
* Scroll Padding Top
|
|
2795
2795
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2796
2796
|
*/
|
|
2797
2797
|
"scroll-pt": [{
|
|
2798
|
-
"scroll-pt":
|
|
2798
|
+
"scroll-pt": I()
|
|
2799
2799
|
}],
|
|
2800
2800
|
/**
|
|
2801
2801
|
* Scroll Padding Right
|
|
2802
2802
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2803
2803
|
*/
|
|
2804
2804
|
"scroll-pr": [{
|
|
2805
|
-
"scroll-pr":
|
|
2805
|
+
"scroll-pr": I()
|
|
2806
2806
|
}],
|
|
2807
2807
|
/**
|
|
2808
2808
|
* Scroll Padding Bottom
|
|
2809
2809
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2810
2810
|
*/
|
|
2811
2811
|
"scroll-pb": [{
|
|
2812
|
-
"scroll-pb":
|
|
2812
|
+
"scroll-pb": I()
|
|
2813
2813
|
}],
|
|
2814
2814
|
/**
|
|
2815
2815
|
* Scroll Padding Left
|
|
2816
2816
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2817
2817
|
*/
|
|
2818
2818
|
"scroll-pl": [{
|
|
2819
|
-
"scroll-pl":
|
|
2819
|
+
"scroll-pl": I()
|
|
2820
2820
|
}],
|
|
2821
2821
|
/**
|
|
2822
2822
|
* Scroll Snap Align
|
|
@@ -3141,8 +3141,9 @@ function Xc(e) {
|
|
|
3141
3141
|
if (!Jr({ matrix: t, pointsRange: n }))
|
|
3142
3142
|
return !1;
|
|
3143
3143
|
for (const o of n)
|
|
3144
|
-
if (r
|
|
3145
|
-
return !
|
|
3144
|
+
if (r <= o.start.row && r >= o.end.row)
|
|
3145
|
+
return !0;
|
|
3146
|
+
return !1;
|
|
3146
3147
|
}
|
|
3147
3148
|
function qc(e) {
|
|
3148
3149
|
let t = e;
|
|
@@ -3169,17 +3170,17 @@ function Jc(e) {
|
|
|
3169
3170
|
matrix: r = [],
|
|
3170
3171
|
staticRows: o,
|
|
3171
3172
|
onMatrixChange: s
|
|
3172
|
-
} = e, [a, i] =
|
|
3173
|
+
} = e, [a, i] = q(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] = q(c), [f, m] = q([]), [w, b] = q({
|
|
3173
3174
|
height: 0,
|
|
3174
3175
|
width: 0
|
|
3175
|
-
}), [g, y] =
|
|
3176
|
+
}), [g, y] = q(!1), C = F((S = 2e3) => {
|
|
3176
3177
|
y(!0), gr && clearTimeout(gr), gr = setTimeout(() => y(!1), S);
|
|
3177
3178
|
}, []), _ = ve(
|
|
3178
3179
|
() => !!(f.length && Jr({ matrix: a, pointsRange: f })),
|
|
3179
3180
|
[f, a]
|
|
3180
|
-
),
|
|
3181
|
-
async (S,
|
|
3182
|
-
const j =
|
|
3181
|
+
), M = F(
|
|
3182
|
+
async (S, N) => {
|
|
3183
|
+
const j = N.clipboardData?.getData("text/plain") || "", Y = qc(j);
|
|
3183
3184
|
if (Y.length === 1) {
|
|
3184
3185
|
if (p[S.column].state.readonly)
|
|
3185
3186
|
return;
|
|
@@ -3205,31 +3206,31 @@ function Jc(e) {
|
|
|
3205
3206
|
[p, a, n.length, o, s]
|
|
3206
3207
|
), T = F(
|
|
3207
3208
|
(S) => {
|
|
3208
|
-
const
|
|
3209
|
-
|
|
3209
|
+
const N = a[S.row][S.column];
|
|
3210
|
+
N && navigator.clipboard.writeText(String(N));
|
|
3210
3211
|
},
|
|
3211
3212
|
[a]
|
|
3212
3213
|
), E = F(
|
|
3213
3214
|
(S) => {
|
|
3214
|
-
const { data:
|
|
3215
|
-
ae[le][Y] =
|
|
3215
|
+
const { data: N, point: j } = S, { column: Y, row: le } = j, ae = structuredClone(a);
|
|
3216
|
+
ae[le][Y] = N, i(ae), s?.(ae);
|
|
3216
3217
|
},
|
|
3217
3218
|
[a, s]
|
|
3218
|
-
),
|
|
3219
|
+
), k = F(() => {
|
|
3219
3220
|
if (f && !o) {
|
|
3220
3221
|
const S = f.map((ae) => ({
|
|
3221
3222
|
rowStart: ae.start.row,
|
|
3222
3223
|
rowEnd: ae.end.row,
|
|
3223
3224
|
delta: ae.end.row - ae.start.row + 1
|
|
3224
|
-
})),
|
|
3225
|
+
})), N = S.reduce((ae, { delta: be }) => ae + be, 0);
|
|
3225
3226
|
if (!_)
|
|
3226
3227
|
return;
|
|
3227
3228
|
let j = "";
|
|
3228
|
-
if (
|
|
3229
|
+
if (N === 1) {
|
|
3229
3230
|
const { rowStart: ae } = S[0];
|
|
3230
3231
|
j = `Você irá excluir a linha N° ${ae + 1}, deseja continuar?`;
|
|
3231
3232
|
} else
|
|
3232
|
-
j = `Você irá excluir ${
|
|
3233
|
+
j = `Você irá excluir ${N} linhas, deseja continuar?`;
|
|
3233
3234
|
if (!confirm(j))
|
|
3234
3235
|
return;
|
|
3235
3236
|
const le = a.filter(
|
|
@@ -3237,36 +3238,36 @@ function Jc(e) {
|
|
|
3237
3238
|
);
|
|
3238
3239
|
m([]), i(le), s?.(le);
|
|
3239
3240
|
}
|
|
3240
|
-
}, [a, f, o, _, s]),
|
|
3241
|
-
(S,
|
|
3242
|
-
if (f.length &&
|
|
3241
|
+
}, [a, f, o, _, s]), O = F(
|
|
3242
|
+
(S, N) => {
|
|
3243
|
+
if (f.length && N && N.shiftKey) {
|
|
3243
3244
|
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
3245
|
start: { row: le, column: 0 },
|
|
3245
3246
|
end: { row: ae, column: l }
|
|
3246
3247
|
};
|
|
3247
|
-
return
|
|
3248
|
+
return N.ctrlKey || N.metaKey ? m([...f, be]) : m([be]);
|
|
3248
3249
|
}
|
|
3249
3250
|
const j = { start: { row: S, column: 0 }, end: { row: S, column: l } };
|
|
3250
|
-
if (
|
|
3251
|
+
if (N?.ctrlKey || N?.metaKey)
|
|
3251
3252
|
return m([...f, j]);
|
|
3252
3253
|
m([j]);
|
|
3253
3254
|
},
|
|
3254
3255
|
[l, f]
|
|
3255
|
-
),
|
|
3256
|
+
), V = F(
|
|
3256
3257
|
(S) => {
|
|
3257
|
-
f.some((
|
|
3258
|
+
f.some((N) => N.start.row === S.row && N.start.column === 0) || m([{ start: S, end: S }]);
|
|
3258
3259
|
},
|
|
3259
3260
|
[f.some]
|
|
3260
|
-
),
|
|
3261
|
+
), I = F(
|
|
3261
3262
|
(S) => !!(f && Yc(f, S)),
|
|
3262
3263
|
[f]
|
|
3263
3264
|
), Q = F((S) => {
|
|
3264
|
-
const { position:
|
|
3265
|
+
const { position: N, width: j } = S;
|
|
3265
3266
|
let Y = j;
|
|
3266
3267
|
j > zt && (Y = zt), j < Wt && (Y = Wt), h(
|
|
3267
3268
|
(le) => le.map((ae, be) => ({
|
|
3268
3269
|
...ae,
|
|
3269
|
-
state: { ...ae.state, width: be ===
|
|
3270
|
+
state: { ...ae.state, width: be === N ? Y : ae.state.width }
|
|
3270
3271
|
}))
|
|
3271
3272
|
);
|
|
3272
3273
|
}, []), G = F(() => {
|
|
@@ -3274,57 +3275,57 @@ function Jc(e) {
|
|
|
3274
3275
|
return;
|
|
3275
3276
|
const S = [
|
|
3276
3277
|
...structuredClone(a),
|
|
3277
|
-
new Array(l).fill(null).map((
|
|
3278
|
+
new Array(l).fill(null).map((N, j) => {
|
|
3278
3279
|
const { dataEditorType: Y } = p[j];
|
|
3279
3280
|
return Hs.includes(Y) ? 0 : Y === "Boolean" ? !1 : "";
|
|
3280
3281
|
})
|
|
3281
3282
|
];
|
|
3282
|
-
i(S), s?.(S),
|
|
3283
|
-
}, [o, a, p, l,
|
|
3284
|
-
const S = { column: 0, row: 0 },
|
|
3285
|
-
m([{ start: S, end:
|
|
3286
|
-
}, [d]),
|
|
3283
|
+
i(S), s?.(S), C();
|
|
3284
|
+
}, [o, a, p, l, C, s]), A = F(() => {
|
|
3285
|
+
const S = { column: 0, row: 0 }, N = { column: d.columns, row: d.rows - 1 };
|
|
3286
|
+
m([{ start: S, end: N }]);
|
|
3287
|
+
}, [d]), D = F(
|
|
3287
3288
|
(S) => {
|
|
3288
|
-
const { columnId:
|
|
3289
|
+
const { columnId: N, visible: j } = S, Y = (le) => le.id !== N ? le : { ...le, state: { ...le.state, visible: j } };
|
|
3289
3290
|
h((le) => le.map((ae) => Y(ae)));
|
|
3290
3291
|
},
|
|
3291
3292
|
[]
|
|
3292
3293
|
), P = F(() => {
|
|
3293
3294
|
h(
|
|
3294
|
-
(S) => S.map((
|
|
3295
|
-
...
|
|
3296
|
-
state: { ...
|
|
3295
|
+
(S) => S.map((N) => ({
|
|
3296
|
+
...N,
|
|
3297
|
+
state: { ...N.state, visible: !0 }
|
|
3297
3298
|
}))
|
|
3298
3299
|
);
|
|
3299
3300
|
}, []);
|
|
3300
|
-
|
|
3301
|
+
Z(() => {
|
|
3301
3302
|
i(r);
|
|
3302
|
-
}, [r]),
|
|
3303
|
+
}, [r]), Z(() => {
|
|
3303
3304
|
h(
|
|
3304
|
-
(S) => c.map((
|
|
3305
|
-
...
|
|
3305
|
+
(S) => c.map((N, j) => ({
|
|
3306
|
+
...N,
|
|
3306
3307
|
state: {
|
|
3307
3308
|
visible: S[j].state.visible,
|
|
3308
3309
|
width: S[j].state.width,
|
|
3309
|
-
readonly:
|
|
3310
|
+
readonly: N.state.readonly
|
|
3310
3311
|
}
|
|
3311
3312
|
}))
|
|
3312
3313
|
);
|
|
3313
|
-
}, [c]),
|
|
3314
|
+
}, [c]), Z(() => {
|
|
3314
3315
|
if (!f.length || f.length > 1)
|
|
3315
3316
|
return;
|
|
3316
3317
|
const S = f[0];
|
|
3317
3318
|
if (!Gc(S.start, S.end))
|
|
3318
3319
|
return;
|
|
3319
|
-
const
|
|
3320
|
-
|
|
3320
|
+
const N = (Y) => {
|
|
3321
|
+
M(S.start, Y);
|
|
3321
3322
|
}, j = () => {
|
|
3322
3323
|
T(S.start);
|
|
3323
3324
|
};
|
|
3324
|
-
return window.addEventListener("paste",
|
|
3325
|
-
window.removeEventListener("paste",
|
|
3325
|
+
return window.addEventListener("paste", N), window.addEventListener("copy", j), () => {
|
|
3326
|
+
window.removeEventListener("paste", N), window.removeEventListener("copy", j);
|
|
3326
3327
|
};
|
|
3327
|
-
}, [
|
|
3328
|
+
}, [M, T, f]);
|
|
3328
3329
|
const ee = ve(
|
|
3329
3330
|
() => ({
|
|
3330
3331
|
size: d,
|
|
@@ -3338,16 +3339,16 @@ function Jc(e) {
|
|
|
3338
3339
|
setPointsRange: m,
|
|
3339
3340
|
containerDimensions: w,
|
|
3340
3341
|
setContainerDimensions: b,
|
|
3341
|
-
onPaste:
|
|
3342
|
+
onPaste: M,
|
|
3342
3343
|
onChange: E,
|
|
3343
|
-
onRemoveRow:
|
|
3344
|
-
onSelectRow:
|
|
3345
|
-
onSelectCell:
|
|
3346
|
-
isCellSelected:
|
|
3344
|
+
onRemoveRow: k,
|
|
3345
|
+
onSelectRow: O,
|
|
3346
|
+
onSelectCell: V,
|
|
3347
|
+
isCellSelected: I,
|
|
3347
3348
|
onInsertNewRow: G,
|
|
3348
3349
|
onColumnResize: Q,
|
|
3349
3350
|
onSelectSpreadsheet: A,
|
|
3350
|
-
onColumnVisibilityChange:
|
|
3351
|
+
onColumnVisibilityChange: D,
|
|
3351
3352
|
onRestoreColumnsVisibility: P
|
|
3352
3353
|
}),
|
|
3353
3354
|
[
|
|
@@ -3360,16 +3361,16 @@ function Jc(e) {
|
|
|
3360
3361
|
g,
|
|
3361
3362
|
f,
|
|
3362
3363
|
w,
|
|
3363
|
-
D,
|
|
3364
|
-
E,
|
|
3365
3364
|
M,
|
|
3365
|
+
E,
|
|
3366
3366
|
k,
|
|
3367
|
-
|
|
3368
|
-
|
|
3367
|
+
O,
|
|
3368
|
+
V,
|
|
3369
|
+
I,
|
|
3369
3370
|
G,
|
|
3370
3371
|
Q,
|
|
3371
3372
|
A,
|
|
3372
|
-
|
|
3373
|
+
D,
|
|
3373
3374
|
P
|
|
3374
3375
|
]
|
|
3375
3376
|
);
|
|
@@ -3670,7 +3671,7 @@ var vl = function() {
|
|
|
3670
3671
|
}();
|
|
3671
3672
|
function gl(e) {
|
|
3672
3673
|
const { children: t, className: n } = e, { size: r, setContainerDimensions: o } = Je(), s = K(null);
|
|
3673
|
-
return
|
|
3674
|
+
return Z(() => {
|
|
3674
3675
|
const a = s.current;
|
|
3675
3676
|
if (!a)
|
|
3676
3677
|
return;
|
|
@@ -3714,9 +3715,9 @@ var wl = function(e, t) {
|
|
|
3714
3715
|
}, yl = ["mousedown", "touchstart"], Js = function(e, t, n) {
|
|
3715
3716
|
n === void 0 && (n = yl);
|
|
3716
3717
|
var r = K(t);
|
|
3717
|
-
|
|
3718
|
+
Z(function() {
|
|
3718
3719
|
r.current = t;
|
|
3719
|
-
}, [t]),
|
|
3720
|
+
}, [t]), Z(function() {
|
|
3720
3721
|
for (var o = function(c) {
|
|
3721
3722
|
var l = e.current;
|
|
3722
3723
|
l && !l.contains(c.target) && r.current(c);
|
|
@@ -3762,30 +3763,30 @@ function Sl(e) {
|
|
|
3762
3763
|
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
3764
|
() => (d?.height || 0) + 32,
|
|
3764
3765
|
[d?.height]
|
|
3765
|
-
), [f, m] =
|
|
3766
|
+
), [f, m] = q(!1), [w, b] = q(0), g = F((T) => {
|
|
3766
3767
|
b(T.clientX), m(!0);
|
|
3767
3768
|
}, []), y = F(
|
|
3768
3769
|
(T) => {
|
|
3769
3770
|
const E = p.current;
|
|
3770
3771
|
if (!E || T.screenX === 0)
|
|
3771
3772
|
return;
|
|
3772
|
-
const
|
|
3773
|
-
let
|
|
3774
|
-
|
|
3773
|
+
const k = T.clientX - w;
|
|
3774
|
+
let O = s + k;
|
|
3775
|
+
O > zt && (O = zt), O < Wt && (O = Wt), E.style.left = `${O}px`;
|
|
3775
3776
|
},
|
|
3776
3777
|
[w, s]
|
|
3777
|
-
),
|
|
3778
|
+
), C = F(
|
|
3778
3779
|
(T) => {
|
|
3779
|
-
const E = T.clientX - w,
|
|
3780
|
-
u({ width:
|
|
3780
|
+
const E = T.clientX - w, k = s + E;
|
|
3781
|
+
u({ width: k, position: a }), m(!1);
|
|
3781
3782
|
},
|
|
3782
3783
|
[w, s, a, u]
|
|
3783
3784
|
), _ = F(() => {
|
|
3784
3785
|
if (f)
|
|
3785
3786
|
return `bg-neutral-100 font-bold text-neutral-700 ${t}`;
|
|
3786
3787
|
if (l.length && !f) {
|
|
3787
|
-
const T = Jr({ matrix: c, pointsRange: l }), E = l.some(({ start:
|
|
3788
|
-
a >=
|
|
3788
|
+
const T = Jr({ matrix: c, pointsRange: l }), E = l.some(({ start: k, end: O }) => {
|
|
3789
|
+
a >= k.column && a <= O.column;
|
|
3789
3790
|
});
|
|
3790
3791
|
if (T)
|
|
3791
3792
|
return `bg-[#0085FF] font-bold text-white ${t}`;
|
|
@@ -3793,11 +3794,11 @@ function Sl(e) {
|
|
|
3793
3794
|
return `bg-blue-100 font-bold text-blue-700 ${t}`;
|
|
3794
3795
|
}
|
|
3795
3796
|
return t;
|
|
3796
|
-
}, [f, t, c, l, a]),
|
|
3797
|
-
() => ({ onDragStart: g, onDrag: y, onDragEnd:
|
|
3798
|
-
[g, y,
|
|
3797
|
+
}, [f, t, c, l, a]), M = ve(
|
|
3798
|
+
() => ({ onDragStart: g, onDrag: y, onDragEnd: C }),
|
|
3799
|
+
[g, y, C]
|
|
3799
3800
|
);
|
|
3800
|
-
return
|
|
3801
|
+
return Z(() => {
|
|
3801
3802
|
const T = p.current;
|
|
3802
3803
|
T && (T.style.left = `${s}px`);
|
|
3803
3804
|
}, [s]), r ? /* @__PURE__ */ v.jsxs(
|
|
@@ -3812,7 +3813,7 @@ function Sl(e) {
|
|
|
3812
3813
|
/* @__PURE__ */ v.jsx(
|
|
3813
3814
|
Cl,
|
|
3814
3815
|
{
|
|
3815
|
-
...
|
|
3816
|
+
...M,
|
|
3816
3817
|
className: ne(
|
|
3817
3818
|
"-sl-right-[3px] -sl-top-1 sl-absolute sl-z-50 sl-opacity-0 hover:sl-opacity-100",
|
|
3818
3819
|
f && "sl-opacity-0"
|
|
@@ -3843,9 +3844,9 @@ function yt(e, t) {
|
|
|
3843
3844
|
o = r[s], !(t.indexOf(o) >= 0) && (n[o] = e[o]);
|
|
3844
3845
|
return n;
|
|
3845
3846
|
}
|
|
3846
|
-
var El = ["color"], Qr = /* @__PURE__ */
|
|
3847
|
+
var El = ["color"], Qr = /* @__PURE__ */ H(function(e, t) {
|
|
3847
3848
|
var n = e.color, r = n === void 0 ? "currentColor" : n, o = yt(e, El);
|
|
3848
|
-
return
|
|
3849
|
+
return $("svg", Object.assign({
|
|
3849
3850
|
width: "15",
|
|
3850
3851
|
height: "15",
|
|
3851
3852
|
viewBox: "0 0 15 15",
|
|
@@ -3853,15 +3854,15 @@ var El = ["color"], Qr = /* @__PURE__ */ W(function(e, t) {
|
|
|
3853
3854
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3854
3855
|
}, o, {
|
|
3855
3856
|
ref: t
|
|
3856
|
-
}),
|
|
3857
|
+
}), $("path", {
|
|
3857
3858
|
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
3859
|
fill: r,
|
|
3859
3860
|
fillRule: "evenodd",
|
|
3860
3861
|
clipRule: "evenodd"
|
|
3861
3862
|
}));
|
|
3862
|
-
}), _l = ["color"], Qs = /* @__PURE__ */
|
|
3863
|
+
}), _l = ["color"], Qs = /* @__PURE__ */ H(function(e, t) {
|
|
3863
3864
|
var n = e.color, r = n === void 0 ? "currentColor" : n, o = yt(e, _l);
|
|
3864
|
-
return
|
|
3865
|
+
return $("svg", Object.assign({
|
|
3865
3866
|
width: "15",
|
|
3866
3867
|
height: "15",
|
|
3867
3868
|
viewBox: "0 0 15 15",
|
|
@@ -3869,15 +3870,15 @@ var El = ["color"], Qr = /* @__PURE__ */ W(function(e, t) {
|
|
|
3869
3870
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3870
3871
|
}, o, {
|
|
3871
3872
|
ref: t
|
|
3872
|
-
}),
|
|
3873
|
+
}), $("path", {
|
|
3873
3874
|
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
3875
|
fill: r,
|
|
3875
3876
|
fillRule: "evenodd",
|
|
3876
3877
|
clipRule: "evenodd"
|
|
3877
3878
|
}));
|
|
3878
|
-
}), Tl = ["color"], Rl = /* @__PURE__ */
|
|
3879
|
+
}), Tl = ["color"], Rl = /* @__PURE__ */ H(function(e, t) {
|
|
3879
3880
|
var n = e.color, r = n === void 0 ? "currentColor" : n, o = yt(e, Tl);
|
|
3880
|
-
return
|
|
3881
|
+
return $("svg", Object.assign({
|
|
3881
3882
|
width: "15",
|
|
3882
3883
|
height: "15",
|
|
3883
3884
|
viewBox: "0 0 15 15",
|
|
@@ -3885,15 +3886,15 @@ var El = ["color"], Qr = /* @__PURE__ */ W(function(e, t) {
|
|
|
3885
3886
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3886
3887
|
}, o, {
|
|
3887
3888
|
ref: t
|
|
3888
|
-
}),
|
|
3889
|
+
}), $("path", {
|
|
3889
3890
|
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
3891
|
fill: r,
|
|
3891
3892
|
fillRule: "evenodd",
|
|
3892
3893
|
clipRule: "evenodd"
|
|
3893
3894
|
}));
|
|
3894
|
-
}), Pl = ["color"], Ol = /* @__PURE__ */
|
|
3895
|
+
}), Pl = ["color"], Ol = /* @__PURE__ */ H(function(e, t) {
|
|
3895
3896
|
var n = e.color, r = n === void 0 ? "currentColor" : n, o = yt(e, Pl);
|
|
3896
|
-
return
|
|
3897
|
+
return $("svg", Object.assign({
|
|
3897
3898
|
width: "15",
|
|
3898
3899
|
height: "15",
|
|
3899
3900
|
viewBox: "0 0 15 15",
|
|
@@ -3901,15 +3902,15 @@ var El = ["color"], Qr = /* @__PURE__ */ W(function(e, t) {
|
|
|
3901
3902
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3902
3903
|
}, o, {
|
|
3903
3904
|
ref: t
|
|
3904
|
-
}),
|
|
3905
|
+
}), $("path", {
|
|
3905
3906
|
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
3907
|
fill: r,
|
|
3907
3908
|
fillRule: "evenodd",
|
|
3908
3909
|
clipRule: "evenodd"
|
|
3909
3910
|
}));
|
|
3910
|
-
}), Nl = ["color"], Il = /* @__PURE__ */
|
|
3911
|
+
}), Nl = ["color"], Il = /* @__PURE__ */ H(function(e, t) {
|
|
3911
3912
|
var n = e.color, r = n === void 0 ? "currentColor" : n, o = yt(e, Nl);
|
|
3912
|
-
return
|
|
3913
|
+
return $("svg", Object.assign({
|
|
3913
3914
|
width: "15",
|
|
3914
3915
|
height: "15",
|
|
3915
3916
|
viewBox: "0 0 15 15",
|
|
@@ -3917,15 +3918,15 @@ var El = ["color"], Qr = /* @__PURE__ */ W(function(e, t) {
|
|
|
3917
3918
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3918
3919
|
}, o, {
|
|
3919
3920
|
ref: t
|
|
3920
|
-
}),
|
|
3921
|
+
}), $("path", {
|
|
3921
3922
|
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
3923
|
fill: r,
|
|
3923
3924
|
fillRule: "evenodd",
|
|
3924
3925
|
clipRule: "evenodd"
|
|
3925
3926
|
}));
|
|
3926
|
-
}), Ml = ["color"], Dl = /* @__PURE__ */
|
|
3927
|
+
}), Ml = ["color"], Dl = /* @__PURE__ */ H(function(e, t) {
|
|
3927
3928
|
var n = e.color, r = n === void 0 ? "currentColor" : n, o = yt(e, Ml);
|
|
3928
|
-
return
|
|
3929
|
+
return $("svg", Object.assign({
|
|
3929
3930
|
width: "15",
|
|
3930
3931
|
height: "15",
|
|
3931
3932
|
viewBox: "0 0 15 15",
|
|
@@ -3933,13 +3934,13 @@ var El = ["color"], Qr = /* @__PURE__ */ W(function(e, t) {
|
|
|
3933
3934
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3934
3935
|
}, o, {
|
|
3935
3936
|
ref: t
|
|
3936
|
-
}),
|
|
3937
|
+
}), $("path", {
|
|
3937
3938
|
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
3939
|
fill: r
|
|
3939
3940
|
}));
|
|
3940
|
-
}), Al = ["color"], kl = /* @__PURE__ */
|
|
3941
|
+
}), Al = ["color"], kl = /* @__PURE__ */ H(function(e, t) {
|
|
3941
3942
|
var n = e.color, r = n === void 0 ? "currentColor" : n, o = yt(e, Al);
|
|
3942
|
-
return
|
|
3943
|
+
return $("svg", Object.assign({
|
|
3943
3944
|
width: "15",
|
|
3944
3945
|
height: "15",
|
|
3945
3946
|
viewBox: "0 0 15 15",
|
|
@@ -3947,15 +3948,15 @@ var El = ["color"], Qr = /* @__PURE__ */ W(function(e, t) {
|
|
|
3947
3948
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3948
3949
|
}, o, {
|
|
3949
3950
|
ref: t
|
|
3950
|
-
}),
|
|
3951
|
+
}), $("path", {
|
|
3951
3952
|
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
3953
|
fill: r,
|
|
3953
3954
|
fillRule: "evenodd",
|
|
3954
3955
|
clipRule: "evenodd"
|
|
3955
3956
|
}));
|
|
3956
|
-
}), jl = ["color"], Ll = /* @__PURE__ */
|
|
3957
|
+
}), jl = ["color"], Ll = /* @__PURE__ */ H(function(e, t) {
|
|
3957
3958
|
var n = e.color, r = n === void 0 ? "currentColor" : n, o = yt(e, jl);
|
|
3958
|
-
return
|
|
3959
|
+
return $("svg", Object.assign({
|
|
3959
3960
|
width: "15",
|
|
3960
3961
|
height: "15",
|
|
3961
3962
|
viewBox: "0 0 15 15",
|
|
@@ -3963,7 +3964,7 @@ var El = ["color"], Qr = /* @__PURE__ */ W(function(e, t) {
|
|
|
3963
3964
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3964
3965
|
}, o, {
|
|
3965
3966
|
ref: t
|
|
3966
|
-
}),
|
|
3967
|
+
}), $("path", {
|
|
3967
3968
|
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
3969
|
fill: r,
|
|
3969
3970
|
fillRule: "evenodd",
|
|
@@ -4000,7 +4001,7 @@ var Vl = {
|
|
|
4000
4001
|
* This source code is licensed under the ISC license.
|
|
4001
4002
|
* See the LICENSE file in the root directory of this source tree.
|
|
4002
4003
|
*/
|
|
4003
|
-
const Bl =
|
|
4004
|
+
const Bl = H(
|
|
4004
4005
|
({
|
|
4005
4006
|
color: e = "currentColor",
|
|
4006
4007
|
size: t = 24,
|
|
@@ -4010,7 +4011,7 @@ const Bl = W(
|
|
|
4010
4011
|
children: s,
|
|
4011
4012
|
iconNode: a,
|
|
4012
4013
|
...i
|
|
4013
|
-
}, c) =>
|
|
4014
|
+
}, c) => $(
|
|
4014
4015
|
"svg",
|
|
4015
4016
|
{
|
|
4016
4017
|
ref: c,
|
|
@@ -4023,7 +4024,7 @@ const Bl = W(
|
|
|
4023
4024
|
...i
|
|
4024
4025
|
},
|
|
4025
4026
|
[
|
|
4026
|
-
...a.map(([l, d]) =>
|
|
4027
|
+
...a.map(([l, d]) => $(l, d)),
|
|
4027
4028
|
...Array.isArray(s) ? s : [s]
|
|
4028
4029
|
]
|
|
4029
4030
|
)
|
|
@@ -4035,8 +4036,8 @@ const Bl = W(
|
|
|
4035
4036
|
* See the LICENSE file in the root directory of this source tree.
|
|
4036
4037
|
*/
|
|
4037
4038
|
const Ie = (e, t) => {
|
|
4038
|
-
const n =
|
|
4039
|
-
({ className: r, ...o }, s) =>
|
|
4039
|
+
const n = H(
|
|
4040
|
+
({ className: r, ...o }, s) => $(Bl, {
|
|
4040
4041
|
ref: s,
|
|
4041
4042
|
iconNode: t,
|
|
4042
4043
|
className: ea(`lucide-${Fl(e)}`, r),
|
|
@@ -4254,17 +4255,17 @@ const tu = Ie("X", [
|
|
|
4254
4255
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
4255
4256
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
4256
4257
|
]);
|
|
4257
|
-
function
|
|
4258
|
-
return
|
|
4258
|
+
function W() {
|
|
4259
|
+
return W = Object.assign ? Object.assign.bind() : function(e) {
|
|
4259
4260
|
for (var t = 1; t < arguments.length; t++) {
|
|
4260
4261
|
var n = arguments[t];
|
|
4261
4262
|
for (var r in n)
|
|
4262
4263
|
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
4263
4264
|
}
|
|
4264
4265
|
return e;
|
|
4265
|
-
},
|
|
4266
|
+
}, W.apply(this, arguments);
|
|
4266
4267
|
}
|
|
4267
|
-
function
|
|
4268
|
+
function J(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
4268
4269
|
return function(o) {
|
|
4269
4270
|
if (e?.(o), n === !1 || !o.defaultPrevented)
|
|
4270
4271
|
return t?.(o);
|
|
@@ -4294,7 +4295,7 @@ function Tt(e, t = []) {
|
|
|
4294
4295
|
() => f,
|
|
4295
4296
|
Object.values(f)
|
|
4296
4297
|
);
|
|
4297
|
-
return /* @__PURE__ */
|
|
4298
|
+
return /* @__PURE__ */ $(m.Provider, {
|
|
4298
4299
|
value: w
|
|
4299
4300
|
}, h);
|
|
4300
4301
|
}
|
|
@@ -4365,20 +4366,20 @@ function ru(...e) {
|
|
|
4365
4366
|
};
|
|
4366
4367
|
return n.scopeName = t.scopeName, n;
|
|
4367
4368
|
}
|
|
4368
|
-
const Ut = /* @__PURE__ */
|
|
4369
|
+
const Ut = /* @__PURE__ */ H((e, t) => {
|
|
4369
4370
|
const { children: n, ...r } = e, o = jt.toArray(n), s = o.find(ou);
|
|
4370
4371
|
if (s) {
|
|
4371
4372
|
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__ */
|
|
4373
|
+
return /* @__PURE__ */ $(Dr, W({}, r, {
|
|
4373
4374
|
ref: t
|
|
4374
4375
|
}), /* @__PURE__ */ jn(a) ? /* @__PURE__ */ Gr(a, void 0, i) : null);
|
|
4375
4376
|
}
|
|
4376
|
-
return /* @__PURE__ */
|
|
4377
|
+
return /* @__PURE__ */ $(Dr, W({}, r, {
|
|
4377
4378
|
ref: t
|
|
4378
4379
|
}), n);
|
|
4379
4380
|
});
|
|
4380
4381
|
Ut.displayName = "Slot";
|
|
4381
|
-
const Dr = /* @__PURE__ */
|
|
4382
|
+
const Dr = /* @__PURE__ */ H((e, t) => {
|
|
4382
4383
|
const { children: n, ...r } = e;
|
|
4383
4384
|
return /* @__PURE__ */ jn(n) ? /* @__PURE__ */ Gr(n, {
|
|
4384
4385
|
...su(r, n.props),
|
|
@@ -4386,7 +4387,7 @@ const Dr = /* @__PURE__ */ W((e, t) => {
|
|
|
4386
4387
|
}) : jt.count(n) > 1 ? jt.only(null) : null;
|
|
4387
4388
|
});
|
|
4388
4389
|
Dr.displayName = "SlotClone";
|
|
4389
|
-
const ra = ({ children: e }) => /* @__PURE__ */
|
|
4390
|
+
const ra = ({ children: e }) => /* @__PURE__ */ $(Xt, null, e);
|
|
4390
4391
|
function ou(e) {
|
|
4391
4392
|
return /* @__PURE__ */ jn(e) && e.type === ra;
|
|
4392
4393
|
}
|
|
@@ -4429,11 +4430,11 @@ const au = [
|
|
|
4429
4430
|
"svg",
|
|
4430
4431
|
"ul"
|
|
4431
4432
|
], Ee = au.reduce((e, t) => {
|
|
4432
|
-
const n = /* @__PURE__ */
|
|
4433
|
+
const n = /* @__PURE__ */ H((r, o) => {
|
|
4433
4434
|
const { asChild: s, ...a } = r, i = s ? Ut : t;
|
|
4434
|
-
return
|
|
4435
|
+
return Z(() => {
|
|
4435
4436
|
window[Symbol.for("radix-ui")] = !0;
|
|
4436
|
-
}, []), /* @__PURE__ */
|
|
4437
|
+
}, []), /* @__PURE__ */ $(i, W({}, a, {
|
|
4437
4438
|
ref: o
|
|
4438
4439
|
}));
|
|
4439
4440
|
});
|
|
@@ -4449,7 +4450,7 @@ function oa(e, t) {
|
|
|
4449
4450
|
}
|
|
4450
4451
|
function He(e) {
|
|
4451
4452
|
const t = K(e);
|
|
4452
|
-
return
|
|
4453
|
+
return Z(() => {
|
|
4453
4454
|
t.current = e;
|
|
4454
4455
|
}), ve(
|
|
4455
4456
|
() => (...n) => {
|
|
@@ -4461,7 +4462,7 @@ function He(e) {
|
|
|
4461
4462
|
}
|
|
4462
4463
|
function iu(e, t = globalThis?.document) {
|
|
4463
4464
|
const n = He(e);
|
|
4464
|
-
|
|
4465
|
+
Z(() => {
|
|
4465
4466
|
const r = (o) => {
|
|
4466
4467
|
o.key === "Escape" && n(o);
|
|
4467
4468
|
};
|
|
@@ -4477,31 +4478,31 @@ const uu = /* @__PURE__ */ Bt({
|
|
|
4477
4478
|
layers: /* @__PURE__ */ new Set(),
|
|
4478
4479
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
4479
4480
|
branches: /* @__PURE__ */ new Set()
|
|
4480
|
-
}), eo = /* @__PURE__ */
|
|
4481
|
+
}), eo = /* @__PURE__ */ H((e, t) => {
|
|
4481
4482
|
var n;
|
|
4482
|
-
const { disableOutsidePointerEvents: r = !1, onEscapeKeyDown: o, onPointerDownOutside: s, onFocusOutside: a, onInteractOutside: i, onDismiss: c, ...l } = e, d = wn(uu), [u, p] =
|
|
4483
|
+
const { disableOutsidePointerEvents: r = !1, onEscapeKeyDown: o, onPointerDownOutside: s, onFocusOutside: a, onInteractOutside: i, onDismiss: c, ...l } = e, d = wn(uu), [u, p] = q(null), h = (n = u?.ownerDocument) !== null && n !== void 0 ? n : globalThis?.document, [, f] = q({}), m = Se(
|
|
4483
4484
|
t,
|
|
4484
4485
|
(E) => p(E)
|
|
4485
4486
|
), w = Array.from(d.layers), [b] = [
|
|
4486
4487
|
...d.layersWithOutsidePointerEventsDisabled
|
|
4487
|
-
].slice(-1), g = w.indexOf(b), y = u ? w.indexOf(u) : -1,
|
|
4488
|
-
const
|
|
4488
|
+
].slice(-1), g = w.indexOf(b), y = u ? w.indexOf(u) : -1, C = d.layersWithOutsidePointerEventsDisabled.size > 0, _ = y >= g, M = du((E) => {
|
|
4489
|
+
const k = E.target, O = [
|
|
4489
4490
|
...d.branches
|
|
4490
4491
|
].some(
|
|
4491
|
-
(
|
|
4492
|
+
(V) => V.contains(k)
|
|
4492
4493
|
);
|
|
4493
|
-
!_ ||
|
|
4494
|
+
!_ || O || (s?.(E), i?.(E), E.defaultPrevented || c?.());
|
|
4494
4495
|
}, h), T = fu((E) => {
|
|
4495
|
-
const
|
|
4496
|
+
const k = E.target;
|
|
4496
4497
|
[
|
|
4497
4498
|
...d.branches
|
|
4498
4499
|
].some(
|
|
4499
|
-
(
|
|
4500
|
+
(V) => V.contains(k)
|
|
4500
4501
|
) || (a?.(E), i?.(E), E.defaultPrevented || c?.());
|
|
4501
4502
|
}, h);
|
|
4502
4503
|
return iu((E) => {
|
|
4503
4504
|
y === d.layers.size - 1 && (o?.(E), !E.defaultPrevented && c && (E.preventDefault(), c()));
|
|
4504
|
-
}, h),
|
|
4505
|
+
}, h), Z(() => {
|
|
4505
4506
|
if (u)
|
|
4506
4507
|
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
4508
|
r && d.layersWithOutsidePointerEventsDisabled.size === 1 && (h.body.style.pointerEvents = Qo);
|
|
@@ -4511,29 +4512,29 @@ const uu = /* @__PURE__ */ Bt({
|
|
|
4511
4512
|
h,
|
|
4512
4513
|
r,
|
|
4513
4514
|
d
|
|
4514
|
-
]),
|
|
4515
|
+
]), Z(() => () => {
|
|
4515
4516
|
u && (d.layers.delete(u), d.layersWithOutsidePointerEventsDisabled.delete(u), es());
|
|
4516
4517
|
}, [
|
|
4517
4518
|
u,
|
|
4518
4519
|
d
|
|
4519
|
-
]),
|
|
4520
|
+
]), Z(() => {
|
|
4520
4521
|
const E = () => f({});
|
|
4521
4522
|
return document.addEventListener(Ar, E), () => document.removeEventListener(Ar, E);
|
|
4522
|
-
}, []), /* @__PURE__ */
|
|
4523
|
+
}, []), /* @__PURE__ */ $(Ee.div, W({}, l, {
|
|
4523
4524
|
ref: m,
|
|
4524
4525
|
style: {
|
|
4525
|
-
pointerEvents:
|
|
4526
|
+
pointerEvents: C ? _ ? "auto" : "none" : void 0,
|
|
4526
4527
|
...e.style
|
|
4527
4528
|
},
|
|
4528
|
-
onFocusCapture:
|
|
4529
|
-
onBlurCapture:
|
|
4530
|
-
onPointerDownCapture:
|
|
4529
|
+
onFocusCapture: J(e.onFocusCapture, T.onFocusCapture),
|
|
4530
|
+
onBlurCapture: J(e.onBlurCapture, T.onBlurCapture),
|
|
4531
|
+
onPointerDownCapture: J(e.onPointerDownCapture, M.onPointerDownCapture)
|
|
4531
4532
|
}));
|
|
4532
4533
|
});
|
|
4533
4534
|
function du(e, t = globalThis?.document) {
|
|
4534
4535
|
const n = He(e), r = K(!1), o = K(() => {
|
|
4535
4536
|
});
|
|
4536
|
-
return
|
|
4537
|
+
return Z(() => {
|
|
4537
4538
|
const s = (i) => {
|
|
4538
4539
|
if (i.target && !r.current) {
|
|
4539
4540
|
let l = function() {
|
|
@@ -4566,7 +4567,7 @@ function du(e, t = globalThis?.document) {
|
|
|
4566
4567
|
}
|
|
4567
4568
|
function fu(e, t = globalThis?.document) {
|
|
4568
4569
|
const n = He(e), r = K(!1);
|
|
4569
|
-
return
|
|
4570
|
+
return Z(() => {
|
|
4570
4571
|
const o = (s) => {
|
|
4571
4572
|
s.target && !r.current && sa(lu, n, {
|
|
4572
4573
|
originalEvent: s
|
|
@@ -4598,11 +4599,11 @@ function sa(e, t, n, { discrete: r }) {
|
|
|
4598
4599
|
}), r ? oa(o, s) : o.dispatchEvent(s);
|
|
4599
4600
|
}
|
|
4600
4601
|
const je = globalThis?.document ? Yr : () => {
|
|
4601
|
-
}, pu =
|
|
4602
|
+
}, pu = z.useId || (() => {
|
|
4602
4603
|
});
|
|
4603
4604
|
let mu = 0;
|
|
4604
4605
|
function Kt(e) {
|
|
4605
|
-
const [t, n] =
|
|
4606
|
+
const [t, n] = z.useState(pu());
|
|
4606
4607
|
return je(() => {
|
|
4607
4608
|
n(
|
|
4608
4609
|
(r) => r ?? String(mu++)
|
|
@@ -4786,7 +4787,7 @@ const Cu = async (e, t, n) => {
|
|
|
4786
4787
|
} = i[m], {
|
|
4787
4788
|
x: g,
|
|
4788
4789
|
y,
|
|
4789
|
-
data:
|
|
4790
|
+
data: C,
|
|
4790
4791
|
reset: _
|
|
4791
4792
|
} = await b({
|
|
4792
4793
|
x: d,
|
|
@@ -4806,7 +4807,7 @@ const Cu = async (e, t, n) => {
|
|
|
4806
4807
|
...h,
|
|
4807
4808
|
[w]: {
|
|
4808
4809
|
...h[w],
|
|
4809
|
-
|
|
4810
|
+
...C
|
|
4810
4811
|
}
|
|
4811
4812
|
}, _ && f <= 50 && (f++, typeof _ == "object" && (_.placement && (p = _.placement), _.rects && (l = _.rects === !0 ? await a.getElementRects({
|
|
4812
4813
|
reference: e,
|
|
@@ -4851,7 +4852,7 @@ async function un(e, t) {
|
|
|
4851
4852
|
y: o,
|
|
4852
4853
|
width: a.floating.width,
|
|
4853
4854
|
height: a.floating.height
|
|
4854
|
-
} : a.reference, y = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(i.floating)),
|
|
4855
|
+
} : a.reference, y = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(i.floating)), C = await (s.isElement == null ? void 0 : s.isElement(y)) ? await (s.getScale == null ? void 0 : s.getScale(y)) || {
|
|
4855
4856
|
x: 1,
|
|
4856
4857
|
y: 1
|
|
4857
4858
|
} : {
|
|
@@ -4864,10 +4865,10 @@ async function un(e, t) {
|
|
|
4864
4865
|
strategy: c
|
|
4865
4866
|
}) : g);
|
|
4866
4867
|
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) /
|
|
4868
|
+
top: (b.top - _.top + f.top) / C.y,
|
|
4869
|
+
bottom: (_.bottom - b.bottom + f.bottom) / C.y,
|
|
4870
|
+
left: (b.left - _.left + f.left) / C.x,
|
|
4871
|
+
right: (_.right - b.right + f.right) / C.x
|
|
4871
4872
|
};
|
|
4872
4873
|
}
|
|
4873
4874
|
const Su = (e) => ({
|
|
@@ -4891,20 +4892,20 @@ const Su = (e) => ({
|
|
|
4891
4892
|
const u = aa(d), p = {
|
|
4892
4893
|
x: n,
|
|
4893
4894
|
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 =
|
|
4895
|
+
}, 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", C = s.reference[f] + s.reference[h] - p[h] - s.floating[f], _ = p[h] - s.reference[h], M = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(l));
|
|
4896
|
+
let T = M ? M[y] : 0;
|
|
4897
|
+
(!T || !await (a.isElement == null ? void 0 : a.isElement(M))) && (T = i.floating[y] || s.floating[f]);
|
|
4898
|
+
const E = C / 2 - _ / 2, k = T / 2 - m[f] / 2 - 1, O = Xe(u[b], k), V = Xe(u[g], k), I = O, Q = T - m[f] - V, G = T / 2 - m[f] / 2 + E, A = kr(I, G, Q), D = !c.arrow && Zt(o) != null && G !== A && s.reference[f] / 2 - (G < I ? O : V) - m[f] / 2 < 0, P = D ? G < I ? G - I : G - Q : 0;
|
|
4898
4899
|
return {
|
|
4899
4900
|
[h]: p[h] + P,
|
|
4900
4901
|
data: {
|
|
4901
4902
|
[h]: A,
|
|
4902
4903
|
centerOffset: G - A - P,
|
|
4903
|
-
...
|
|
4904
|
+
...D && {
|
|
4904
4905
|
alignmentOffset: P
|
|
4905
4906
|
}
|
|
4906
4907
|
},
|
|
4907
|
-
reset:
|
|
4908
|
+
reset: D
|
|
4908
4909
|
};
|
|
4909
4910
|
}
|
|
4910
4911
|
}), Eu = function(e) {
|
|
@@ -4931,36 +4932,36 @@ const Su = (e) => ({
|
|
|
4931
4932
|
} = rt(e, t);
|
|
4932
4933
|
if ((n = s.arrow) != null && n.alignmentOffset)
|
|
4933
4934
|
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,
|
|
4935
|
+
const b = ot(o), g = ot(i) === i, y = await (c.isRTL == null ? void 0 : c.isRTL(l.floating)), C = p || (g || !m ? [zn(i)] : xu(i));
|
|
4936
|
+
!p && f !== "none" && C.push(...yu(i, m, f, y));
|
|
4937
|
+
const _ = [i, ...C], M = await un(t, w), T = [];
|
|
4937
4938
|
let E = ((r = s.flip) == null ? void 0 : r.overflows) || [];
|
|
4938
|
-
if (d && T.push(
|
|
4939
|
-
const
|
|
4940
|
-
T.push(
|
|
4939
|
+
if (d && T.push(M[b]), u) {
|
|
4940
|
+
const I = bu(o, a, y);
|
|
4941
|
+
T.push(M[I[0]], M[I[1]]);
|
|
4941
4942
|
}
|
|
4942
4943
|
if (E = [...E, {
|
|
4943
4944
|
placement: o,
|
|
4944
4945
|
overflows: T
|
|
4945
|
-
}], !T.every((
|
|
4946
|
-
var
|
|
4947
|
-
const
|
|
4946
|
+
}], !T.every((I) => I <= 0)) {
|
|
4947
|
+
var k, O;
|
|
4948
|
+
const I = (((k = s.flip) == null ? void 0 : k.index) || 0) + 1, Q = _[I];
|
|
4948
4949
|
if (Q)
|
|
4949
4950
|
return {
|
|
4950
4951
|
data: {
|
|
4951
|
-
index:
|
|
4952
|
+
index: I,
|
|
4952
4953
|
overflows: E
|
|
4953
4954
|
},
|
|
4954
4955
|
reset: {
|
|
4955
4956
|
placement: Q
|
|
4956
4957
|
}
|
|
4957
4958
|
};
|
|
4958
|
-
let G = (
|
|
4959
|
+
let G = (O = E.filter((A) => A.overflows[0] <= 0).sort((A, D) => A.overflows[1] - D.overflows[1])[0]) == null ? void 0 : O.placement;
|
|
4959
4960
|
if (!G)
|
|
4960
4961
|
switch (h) {
|
|
4961
4962
|
case "bestFit": {
|
|
4962
|
-
var
|
|
4963
|
-
const A = (
|
|
4963
|
+
var V;
|
|
4964
|
+
const A = (V = E.map((D) => [D.placement, D.overflows.filter((P) => P > 0).reduce((P, ee) => P + ee, 0)]).sort((D, P) => D[1] - P[1])[0]) == null ? void 0 : V[0];
|
|
4964
4965
|
A && (G = A);
|
|
4965
4966
|
break;
|
|
4966
4967
|
}
|
|
@@ -5162,13 +5163,13 @@ const Ru = function(e) {
|
|
|
5162
5163
|
...m
|
|
5163
5164
|
};
|
|
5164
5165
|
if (c) {
|
|
5165
|
-
const y = p === "y" ? "height" : "width",
|
|
5166
|
-
h <
|
|
5166
|
+
const y = p === "y" ? "height" : "width", C = s.reference[p] - s.floating[y] + w.mainAxis, _ = s.reference[p] + s.reference[y] - w.mainAxis;
|
|
5167
|
+
h < C ? h = C : h > _ && (h = _);
|
|
5167
5168
|
}
|
|
5168
5169
|
if (l) {
|
|
5169
5170
|
var b, g;
|
|
5170
|
-
const y = p === "y" ? "width" : "height",
|
|
5171
|
-
f < _ ? f = _ : f >
|
|
5171
|
+
const y = p === "y" ? "width" : "height", C = ["top", "left"].includes(ot(o)), _ = s.reference[u] - s.floating[y] + (C && ((b = a.offset) == null ? void 0 : b[u]) || 0) + (C ? 0 : w.crossAxis), M = s.reference[u] + s.reference[y] + (C ? 0 : ((g = a.offset) == null ? void 0 : g[u]) || 0) - (C ? w.crossAxis : 0);
|
|
5172
|
+
f < _ ? f = _ : f > M && (f = M);
|
|
5172
5173
|
}
|
|
5173
5174
|
return {
|
|
5174
5175
|
[p]: h,
|
|
@@ -5196,15 +5197,15 @@ const Ru = function(e) {
|
|
|
5196
5197
|
} = r.floating;
|
|
5197
5198
|
let f, m;
|
|
5198
5199
|
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 ?
|
|
5200
|
+
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), C = !t.middlewareData.shift;
|
|
5201
|
+
let _ = g, M = y;
|
|
5202
|
+
if (u ? M = d || C ? Xe(y, b) : b : _ = d || C ? Xe(g, w) : w, C && !d) {
|
|
5203
|
+
const E = Le(c.left, 0), k = Le(c.right, 0), O = Le(c.top, 0), V = Le(c.bottom, 0);
|
|
5204
|
+
u ? M = p - 2 * (E !== 0 || k !== 0 ? E + k : Le(c.left, c.right)) : _ = h - 2 * (O !== 0 || V !== 0 ? O + V : Le(c.top, c.bottom));
|
|
5204
5205
|
}
|
|
5205
5206
|
await a({
|
|
5206
5207
|
...t,
|
|
5207
|
-
availableWidth:
|
|
5208
|
+
availableWidth: M,
|
|
5208
5209
|
availableHeight: _
|
|
5209
5210
|
});
|
|
5210
5211
|
const T = await o.getDimensions(s.floating);
|
|
@@ -5354,8 +5355,8 @@ function _t(e, t, n, r) {
|
|
|
5354
5355
|
const p = Fe(s), h = r && qe(r) ? Fe(r) : r;
|
|
5355
5356
|
let f = p, m = f.frameElement;
|
|
5356
5357
|
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 +=
|
|
5358
|
+
const w = Lt(m), b = m.getBoundingClientRect(), g = Ue(m), y = b.left + (m.clientLeft + parseFloat(g.paddingLeft)) * w.x, C = b.top + (m.clientTop + parseFloat(g.paddingTop)) * w.y;
|
|
5359
|
+
c *= w.x, l *= w.y, d *= w.x, u *= w.y, c += y, l += C, f = Fe(m), m = f.frameElement;
|
|
5359
5360
|
}
|
|
5360
5361
|
}
|
|
5361
5362
|
return Wn({
|
|
@@ -5599,25 +5600,25 @@ function Xu(e, t) {
|
|
|
5599
5600
|
threshold: Le(0, Xe(1, c)) || 1
|
|
5600
5601
|
};
|
|
5601
5602
|
let y = !0;
|
|
5602
|
-
function
|
|
5603
|
-
const
|
|
5604
|
-
if (
|
|
5603
|
+
function C(_) {
|
|
5604
|
+
const M = _[0].intersectionRatio;
|
|
5605
|
+
if (M !== c) {
|
|
5605
5606
|
if (!y)
|
|
5606
5607
|
return a();
|
|
5607
|
-
|
|
5608
|
+
M ? a(!1, M) : r = setTimeout(() => {
|
|
5608
5609
|
a(!1, 1e-7);
|
|
5609
5610
|
}, 1e3);
|
|
5610
5611
|
}
|
|
5611
5612
|
y = !1;
|
|
5612
5613
|
}
|
|
5613
5614
|
try {
|
|
5614
|
-
n = new IntersectionObserver(
|
|
5615
|
+
n = new IntersectionObserver(C, {
|
|
5615
5616
|
...g,
|
|
5616
5617
|
// Handle <iframe>s
|
|
5617
5618
|
root: o.ownerDocument
|
|
5618
5619
|
});
|
|
5619
5620
|
} catch {
|
|
5620
|
-
n = new IntersectionObserver(
|
|
5621
|
+
n = new IntersectionObserver(C, g);
|
|
5621
5622
|
}
|
|
5622
5623
|
n.observe(e);
|
|
5623
5624
|
}
|
|
@@ -5672,7 +5673,7 @@ const Zu = Ru, Ju = Pu, Qu = Eu, ed = Nu, td = _u, is = Su, nd = Ou, rd = (e, t,
|
|
|
5672
5673
|
platform: s
|
|
5673
5674
|
});
|
|
5674
5675
|
};
|
|
5675
|
-
var Mn = typeof document < "u" ? Yr :
|
|
5676
|
+
var Mn = typeof document < "u" ? Yr : Z;
|
|
5676
5677
|
function Hn(e, t) {
|
|
5677
5678
|
if (e === t)
|
|
5678
5679
|
return !0;
|
|
@@ -5712,7 +5713,7 @@ function cs(e, t) {
|
|
|
5712
5713
|
return Math.round(t * n) / n;
|
|
5713
5714
|
}
|
|
5714
5715
|
function ls(e) {
|
|
5715
|
-
const t =
|
|
5716
|
+
const t = z.useRef(e);
|
|
5716
5717
|
return Mn(() => {
|
|
5717
5718
|
t.current = e;
|
|
5718
5719
|
}), t;
|
|
@@ -5731,28 +5732,28 @@ function od(e) {
|
|
|
5731
5732
|
transform: i = !0,
|
|
5732
5733
|
whileElementsMounted: c,
|
|
5733
5734
|
open: l
|
|
5734
|
-
} = e, [d, u] =
|
|
5735
|
+
} = e, [d, u] = z.useState({
|
|
5735
5736
|
x: 0,
|
|
5736
5737
|
y: 0,
|
|
5737
5738
|
strategy: n,
|
|
5738
5739
|
placement: t,
|
|
5739
5740
|
middlewareData: {},
|
|
5740
5741
|
isPositioned: !1
|
|
5741
|
-
}), [p, h] =
|
|
5742
|
+
}), [p, h] = z.useState(r);
|
|
5742
5743
|
Hn(p, r) || h(r);
|
|
5743
|
-
const [f, m] =
|
|
5744
|
-
P !==
|
|
5745
|
-
}, []), y =
|
|
5744
|
+
const [f, m] = z.useState(null), [w, b] = z.useState(null), g = z.useCallback((P) => {
|
|
5745
|
+
P !== M.current && (M.current = P, m(P));
|
|
5746
|
+
}, []), y = z.useCallback((P) => {
|
|
5746
5747
|
P !== T.current && (T.current = P, b(P));
|
|
5747
|
-
}, []),
|
|
5748
|
-
if (!
|
|
5748
|
+
}, []), C = s || f, _ = a || w, M = z.useRef(null), T = z.useRef(null), E = z.useRef(d), k = c != null, O = ls(c), V = ls(o), I = z.useCallback(() => {
|
|
5749
|
+
if (!M.current || !T.current)
|
|
5749
5750
|
return;
|
|
5750
5751
|
const P = {
|
|
5751
5752
|
placement: t,
|
|
5752
5753
|
strategy: n,
|
|
5753
5754
|
middleware: p
|
|
5754
5755
|
};
|
|
5755
|
-
|
|
5756
|
+
V.current && (P.platform = V.current), rd(M.current, T.current, P).then((ee) => {
|
|
5756
5757
|
const S = {
|
|
5757
5758
|
...ee,
|
|
5758
5759
|
isPositioned: !0
|
|
@@ -5761,32 +5762,32 @@ function od(e) {
|
|
|
5761
5762
|
u(S);
|
|
5762
5763
|
}));
|
|
5763
5764
|
});
|
|
5764
|
-
}, [p, t, n,
|
|
5765
|
+
}, [p, t, n, V]);
|
|
5765
5766
|
Mn(() => {
|
|
5766
5767
|
l === !1 && E.current.isPositioned && (E.current.isPositioned = !1, u((P) => ({
|
|
5767
5768
|
...P,
|
|
5768
5769
|
isPositioned: !1
|
|
5769
5770
|
})));
|
|
5770
5771
|
}, [l]);
|
|
5771
|
-
const Q =
|
|
5772
|
+
const Q = z.useRef(!1);
|
|
5772
5773
|
Mn(() => (Q.current = !0, () => {
|
|
5773
5774
|
Q.current = !1;
|
|
5774
5775
|
}), []), Mn(() => {
|
|
5775
|
-
if (
|
|
5776
|
-
if (
|
|
5777
|
-
return
|
|
5778
|
-
|
|
5779
|
-
}
|
|
5780
|
-
}, [
|
|
5781
|
-
const G =
|
|
5782
|
-
reference:
|
|
5776
|
+
if (C && (M.current = C), _ && (T.current = _), C && _) {
|
|
5777
|
+
if (O.current)
|
|
5778
|
+
return O.current(C, _, I);
|
|
5779
|
+
I();
|
|
5780
|
+
}
|
|
5781
|
+
}, [C, _, I, O, k]);
|
|
5782
|
+
const G = z.useMemo(() => ({
|
|
5783
|
+
reference: M,
|
|
5783
5784
|
floating: T,
|
|
5784
5785
|
setReference: g,
|
|
5785
5786
|
setFloating: y
|
|
5786
|
-
}), [g, y]), A =
|
|
5787
|
-
reference:
|
|
5787
|
+
}), [g, y]), A = z.useMemo(() => ({
|
|
5788
|
+
reference: C,
|
|
5788
5789
|
floating: _
|
|
5789
|
-
}), [
|
|
5790
|
+
}), [C, _]), D = z.useMemo(() => {
|
|
5790
5791
|
const P = {
|
|
5791
5792
|
position: n,
|
|
5792
5793
|
left: 0,
|
|
@@ -5807,13 +5808,13 @@ function od(e) {
|
|
|
5807
5808
|
top: S
|
|
5808
5809
|
};
|
|
5809
5810
|
}, [n, i, A.floating, d.x, d.y]);
|
|
5810
|
-
return
|
|
5811
|
+
return z.useMemo(() => ({
|
|
5811
5812
|
...d,
|
|
5812
|
-
update:
|
|
5813
|
+
update: I,
|
|
5813
5814
|
refs: G,
|
|
5814
5815
|
elements: A,
|
|
5815
|
-
floatingStyles:
|
|
5816
|
-
}), [d,
|
|
5816
|
+
floatingStyles: D
|
|
5817
|
+
}), [d, I, G, A, D]);
|
|
5817
5818
|
}
|
|
5818
5819
|
const sd = (e) => {
|
|
5819
5820
|
function t(n) {
|
|
@@ -5859,7 +5860,7 @@ const sd = (e) => {
|
|
|
5859
5860
|
options: [e, t]
|
|
5860
5861
|
});
|
|
5861
5862
|
function pd(e) {
|
|
5862
|
-
const [t, n] =
|
|
5863
|
+
const [t, n] = q(void 0);
|
|
5863
5864
|
return je(() => {
|
|
5864
5865
|
if (e) {
|
|
5865
5866
|
n({
|
|
@@ -5891,25 +5892,25 @@ function pd(e) {
|
|
|
5891
5892
|
]), t;
|
|
5892
5893
|
}
|
|
5893
5894
|
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__ */
|
|
5895
|
+
const { __scopePopper: t, children: n } = e, [r, o] = q(null);
|
|
5896
|
+
return /* @__PURE__ */ $(md, {
|
|
5896
5897
|
scope: t,
|
|
5897
5898
|
anchor: r,
|
|
5898
5899
|
onAnchorChange: o
|
|
5899
5900
|
}, n);
|
|
5900
|
-
}, vd = "PopperAnchor", gd = /* @__PURE__ */
|
|
5901
|
+
}, vd = "PopperAnchor", gd = /* @__PURE__ */ H((e, t) => {
|
|
5901
5902
|
const { __scopePopper: n, virtualRef: r, ...o } = e, s = ga(vd, n), a = K(null), i = Se(t, a);
|
|
5902
|
-
return
|
|
5903
|
+
return Z(() => {
|
|
5903
5904
|
s.onAnchorChange(r?.current || a.current);
|
|
5904
|
-
}), r ? null : /* @__PURE__ */
|
|
5905
|
+
}), r ? null : /* @__PURE__ */ $(Ee.div, W({}, o, {
|
|
5905
5906
|
ref: i
|
|
5906
5907
|
}));
|
|
5907
|
-
}), ba = "PopperContent", [bd, fv] = va(ba), xd = /* @__PURE__ */
|
|
5908
|
+
}), ba = "PopperContent", [bd, fv] = va(ba), xd = /* @__PURE__ */ H((e, t) => {
|
|
5908
5909
|
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:
|
|
5910
|
+
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: C = !1, updatePositionStrategy: _ = "optimized", onPlaced: M, ...T } = e, E = ga(ba, d), [k, O] = q(null), V = Se(
|
|
5910
5911
|
t,
|
|
5911
|
-
(L) =>
|
|
5912
|
-
), [
|
|
5912
|
+
(L) => O(L)
|
|
5913
|
+
), [I, Q] = q(null), G = pd(I), A = (n = G?.width) !== null && n !== void 0 ? n : 0, D = (r = G?.height) !== null && r !== void 0 ? r : 0, P = u + (h !== "center" ? "-" + h : ""), ee = typeof g == "number" ? g : {
|
|
5913
5914
|
top: 0,
|
|
5914
5915
|
right: 0,
|
|
5915
5916
|
bottom: 0,
|
|
@@ -5917,11 +5918,11 @@ const ha = "Popper", [va, en] = Tt(ha), [md, ga] = va(ha), hd = (e) => {
|
|
|
5917
5918
|
...g
|
|
5918
5919
|
}, S = Array.isArray(b) ? b : [
|
|
5919
5920
|
b
|
|
5920
|
-
],
|
|
5921
|
+
], N = S.length > 0, j = {
|
|
5921
5922
|
padding: ee,
|
|
5922
5923
|
boundary: S.filter(wd),
|
|
5923
5924
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
5924
|
-
altBoundary:
|
|
5925
|
+
altBoundary: N
|
|
5925
5926
|
}, { refs: Y, floatingStyles: le, placement: ae, isPositioned: be, middlewareData: we } = od({
|
|
5926
5927
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
5927
5928
|
strategy: "fixed",
|
|
@@ -5934,7 +5935,7 @@ const ha = "Popper", [va, en] = Tt(ha), [md, ga] = va(ha), hd = (e) => {
|
|
|
5934
5935
|
},
|
|
5935
5936
|
middleware: [
|
|
5936
5937
|
ad({
|
|
5937
|
-
mainAxis: p +
|
|
5938
|
+
mainAxis: p + D,
|
|
5938
5939
|
alignmentAxis: f
|
|
5939
5940
|
}),
|
|
5940
5941
|
w && id({
|
|
@@ -5953,32 +5954,32 @@ const ha = "Popper", [va, en] = Tt(ha), [md, ga] = va(ha), hd = (e) => {
|
|
|
5953
5954
|
me.setProperty("--radix-popper-available-width", `${re}px`), me.setProperty("--radix-popper-available-height", `${$e}px`), me.setProperty("--radix-popper-anchor-width", `${Pe}px`), me.setProperty("--radix-popper-anchor-height", `${he}px`);
|
|
5954
5955
|
}
|
|
5955
5956
|
}),
|
|
5956
|
-
|
|
5957
|
-
element:
|
|
5957
|
+
I && fd({
|
|
5958
|
+
element: I,
|
|
5958
5959
|
padding: m
|
|
5959
5960
|
}),
|
|
5960
5961
|
yd({
|
|
5961
5962
|
arrowWidth: A,
|
|
5962
|
-
arrowHeight:
|
|
5963
|
+
arrowHeight: D
|
|
5963
5964
|
}),
|
|
5964
|
-
|
|
5965
|
+
C && dd({
|
|
5965
5966
|
strategy: "referenceHidden",
|
|
5966
5967
|
...j
|
|
5967
5968
|
})
|
|
5968
5969
|
]
|
|
5969
|
-
}), [X, se] = xa(ae), oe = He(
|
|
5970
|
+
}), [X, se] = xa(ae), oe = He(M);
|
|
5970
5971
|
je(() => {
|
|
5971
5972
|
be && oe?.();
|
|
5972
5973
|
}, [
|
|
5973
5974
|
be,
|
|
5974
5975
|
oe
|
|
5975
5976
|
]);
|
|
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] =
|
|
5977
|
+
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] = q();
|
|
5977
5978
|
return je(() => {
|
|
5978
|
-
|
|
5979
|
+
k && Me(window.getComputedStyle(k).zIndex);
|
|
5979
5980
|
}, [
|
|
5980
|
-
|
|
5981
|
-
]), /* @__PURE__ */
|
|
5981
|
+
k
|
|
5982
|
+
]), /* @__PURE__ */ $("div", {
|
|
5982
5983
|
ref: Y.setFloating,
|
|
5983
5984
|
"data-radix-popper-content-wrapper": "",
|
|
5984
5985
|
style: {
|
|
@@ -5993,18 +5994,18 @@ const ha = "Popper", [va, en] = Tt(ha), [md, ga] = va(ha), hd = (e) => {
|
|
|
5993
5994
|
].join(" ")
|
|
5994
5995
|
},
|
|
5995
5996
|
dir: e.dir
|
|
5996
|
-
}, /* @__PURE__ */
|
|
5997
|
+
}, /* @__PURE__ */ $(bd, {
|
|
5997
5998
|
scope: d,
|
|
5998
5999
|
placedSide: X,
|
|
5999
6000
|
onArrowChange: Q,
|
|
6000
6001
|
arrowX: ce,
|
|
6001
6002
|
arrowY: de,
|
|
6002
6003
|
shouldHideArrow: fe
|
|
6003
|
-
}, /* @__PURE__ */
|
|
6004
|
+
}, /* @__PURE__ */ $(Ee.div, W({
|
|
6004
6005
|
"data-side": X,
|
|
6005
6006
|
"data-align": se
|
|
6006
6007
|
}, T, {
|
|
6007
|
-
ref:
|
|
6008
|
+
ref: V,
|
|
6008
6009
|
style: {
|
|
6009
6010
|
...T.style,
|
|
6010
6011
|
// if the PopperContent hasn't been placed yet (not all measurements done)
|
|
@@ -6028,11 +6029,11 @@ const yd = (e) => ({
|
|
|
6028
6029
|
center: "50%",
|
|
6029
6030
|
end: "100%"
|
|
6030
6031
|
}[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`,
|
|
6032
|
+
let y = "", C = "";
|
|
6033
|
+
return f === "bottom" ? (y = u ? w : `${b}px`, C = `${-h}px`) : f === "top" ? (y = u ? w : `${b}px`, C = `${c.floating.height + h}px`) : f === "right" ? (y = `${-h}px`, C = u ? w : `${g}px`) : f === "left" && (y = `${c.floating.width + h}px`, C = u ? w : `${g}px`), {
|
|
6033
6034
|
data: {
|
|
6034
6035
|
x: y,
|
|
6035
|
-
y:
|
|
6036
|
+
y: C
|
|
6036
6037
|
}
|
|
6037
6038
|
};
|
|
6038
6039
|
}
|
|
@@ -6044,10 +6045,10 @@ function xa(e) {
|
|
|
6044
6045
|
n
|
|
6045
6046
|
];
|
|
6046
6047
|
}
|
|
6047
|
-
const co = hd, lo = gd, uo = xd, wa = /* @__PURE__ */
|
|
6048
|
+
const co = hd, lo = gd, uo = xd, wa = /* @__PURE__ */ H((e, t) => {
|
|
6048
6049
|
var n;
|
|
6049
6050
|
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__ */
|
|
6051
|
+
return r ? /* @__PURE__ */ rc.createPortal(/* @__PURE__ */ $(Ee.div, W({}, o, {
|
|
6051
6052
|
ref: t
|
|
6052
6053
|
})), r) : null;
|
|
6053
6054
|
});
|
|
@@ -6067,7 +6068,7 @@ const tn = (e) => {
|
|
|
6067
6068
|
};
|
|
6068
6069
|
tn.displayName = "Presence";
|
|
6069
6070
|
function Cd(e) {
|
|
6070
|
-
const [t, n] =
|
|
6071
|
+
const [t, n] = q(), r = K({}), o = K(e), s = K("none"), a = e ? "mounted" : "unmounted", [i, c] = $d(a, {
|
|
6071
6072
|
mounted: {
|
|
6072
6073
|
UNMOUNT: "unmounted",
|
|
6073
6074
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -6080,7 +6081,7 @@ function Cd(e) {
|
|
|
6080
6081
|
MOUNT: "mounted"
|
|
6081
6082
|
}
|
|
6082
6083
|
});
|
|
6083
|
-
return
|
|
6084
|
+
return Z(() => {
|
|
6084
6085
|
const l = En(r.current);
|
|
6085
6086
|
s.current = i === "mounted" ? l : "none";
|
|
6086
6087
|
}, [
|
|
@@ -6148,8 +6149,8 @@ function fn({ prop: e, defaultProp: t, onChange: n = () => {
|
|
|
6148
6149
|
];
|
|
6149
6150
|
}
|
|
6150
6151
|
function Sd({ defaultProp: e, onChange: t }) {
|
|
6151
|
-
const n =
|
|
6152
|
-
return
|
|
6152
|
+
const n = q(e), [r] = n, o = K(r), s = He(t);
|
|
6153
|
+
return Z(() => {
|
|
6153
6154
|
o.current !== r && (s(r), o.current = r);
|
|
6154
6155
|
}, [
|
|
6155
6156
|
r,
|
|
@@ -6157,7 +6158,7 @@ function Sd({ defaultProp: e, onChange: t }) {
|
|
|
6157
6158
|
s
|
|
6158
6159
|
]), n;
|
|
6159
6160
|
}
|
|
6160
|
-
const ya = /* @__PURE__ */
|
|
6161
|
+
const ya = /* @__PURE__ */ H((e, t) => /* @__PURE__ */ $(Ee.span, W({}, e, {
|
|
6161
6162
|
ref: t,
|
|
6162
6163
|
style: {
|
|
6163
6164
|
// See: https://github.com/twbs/bootstrap/blob/master/scss/mixins/_screen-reader.scss
|
|
@@ -6176,11 +6177,11 @@ const ya = /* @__PURE__ */ W((e, t) => /* @__PURE__ */ C(Ee.span, z({}, e, {
|
|
|
6176
6177
|
}))), Ed = ya, [rr, pv] = Tt("Tooltip", [
|
|
6177
6178
|
en
|
|
6178
6179
|
]), 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
|
|
6180
|
+
const { __scopeTooltip: t, delayDuration: n = Td, skipDelayDuration: r = 300, disableHoverableContent: o = !1, children: s } = e, [a, i] = q(!0), c = K(!1), l = K(0);
|
|
6181
|
+
return Z(() => {
|
|
6181
6182
|
const d = l.current;
|
|
6182
6183
|
return () => window.clearTimeout(d);
|
|
6183
|
-
}, []), /* @__PURE__ */
|
|
6184
|
+
}, []), /* @__PURE__ */ $(Rd, {
|
|
6184
6185
|
scope: t,
|
|
6185
6186
|
isOpenDelayed: a,
|
|
6186
6187
|
delayDuration: n,
|
|
@@ -6202,7 +6203,7 @@ const ya = /* @__PURE__ */ W((e, t) => /* @__PURE__ */ C(Ee.span, z({}, e, {
|
|
|
6202
6203
|
disableHoverableContent: o
|
|
6203
6204
|
}, s);
|
|
6204
6205
|
}, 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] =
|
|
6206
|
+
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] = q(null), p = Kt(), h = K(0), f = a ?? c.disableHoverableContent, m = i ?? c.delayDuration, w = K(!1), [b = !1, g] = fn({
|
|
6206
6207
|
prop: r,
|
|
6207
6208
|
defaultProp: o,
|
|
6208
6209
|
onChange: (T) => {
|
|
@@ -6210,7 +6211,7 @@ const ya = /* @__PURE__ */ W((e, t) => /* @__PURE__ */ C(Ee.span, z({}, e, {
|
|
|
6210
6211
|
}
|
|
6211
6212
|
}), y = ve(() => b ? w.current ? "delayed-open" : "instant-open" : "closed", [
|
|
6212
6213
|
b
|
|
6213
|
-
]),
|
|
6214
|
+
]), C = F(() => {
|
|
6214
6215
|
window.clearTimeout(h.current), w.current = !1, g(!0);
|
|
6215
6216
|
}, [
|
|
6216
6217
|
g
|
|
@@ -6218,7 +6219,7 @@ const ya = /* @__PURE__ */ W((e, t) => /* @__PURE__ */ C(Ee.span, z({}, e, {
|
|
|
6218
6219
|
window.clearTimeout(h.current), g(!1);
|
|
6219
6220
|
}, [
|
|
6220
6221
|
g
|
|
6221
|
-
]),
|
|
6222
|
+
]), M = F(() => {
|
|
6222
6223
|
window.clearTimeout(h.current), h.current = window.setTimeout(() => {
|
|
6223
6224
|
w.current = !0, g(!0);
|
|
6224
6225
|
}, m);
|
|
@@ -6226,7 +6227,7 @@ const ya = /* @__PURE__ */ W((e, t) => /* @__PURE__ */ C(Ee.span, z({}, e, {
|
|
|
6226
6227
|
m,
|
|
6227
6228
|
g
|
|
6228
6229
|
]);
|
|
6229
|
-
return
|
|
6230
|
+
return Z(() => () => window.clearTimeout(h.current), []), /* @__PURE__ */ $(co, l, /* @__PURE__ */ $(Od, {
|
|
6230
6231
|
scope: t,
|
|
6231
6232
|
contentId: p,
|
|
6232
6233
|
open: b,
|
|
@@ -6234,11 +6235,11 @@ const ya = /* @__PURE__ */ W((e, t) => /* @__PURE__ */ C(Ee.span, z({}, e, {
|
|
|
6234
6235
|
trigger: d,
|
|
6235
6236
|
onTriggerChange: u,
|
|
6236
6237
|
onTriggerEnter: F(() => {
|
|
6237
|
-
c.isOpenDelayed ?
|
|
6238
|
+
c.isOpenDelayed ? M() : C();
|
|
6238
6239
|
}, [
|
|
6239
6240
|
c.isOpenDelayed,
|
|
6240
|
-
|
|
6241
|
-
|
|
6241
|
+
M,
|
|
6242
|
+
C
|
|
6242
6243
|
]),
|
|
6243
6244
|
onTriggerLeave: F(() => {
|
|
6244
6245
|
f ? _() : window.clearTimeout(h.current);
|
|
@@ -6246,60 +6247,60 @@ const ya = /* @__PURE__ */ W((e, t) => /* @__PURE__ */ C(Ee.span, z({}, e, {
|
|
|
6246
6247
|
_,
|
|
6247
6248
|
f
|
|
6248
6249
|
]),
|
|
6249
|
-
onOpen:
|
|
6250
|
+
onOpen: C,
|
|
6250
6251
|
onClose: _,
|
|
6251
6252
|
disableHoverableContent: f
|
|
6252
6253
|
}, n));
|
|
6253
|
-
}, us = "TooltipTrigger", Id = /* @__PURE__ */
|
|
6254
|
+
}, us = "TooltipTrigger", Id = /* @__PURE__ */ H((e, t) => {
|
|
6254
6255
|
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
6256
|
() => l.current = !1,
|
|
6256
6257
|
[]
|
|
6257
6258
|
);
|
|
6258
|
-
return
|
|
6259
|
+
return Z(() => () => document.removeEventListener("pointerup", u), [
|
|
6259
6260
|
u
|
|
6260
|
-
]), /* @__PURE__ */
|
|
6261
|
+
]), /* @__PURE__ */ $(lo, W({
|
|
6261
6262
|
asChild: !0
|
|
6262
|
-
}, a), /* @__PURE__ */
|
|
6263
|
+
}, a), /* @__PURE__ */ $(Ee.button, W({
|
|
6263
6264
|
// We purposefully avoid adding `type=button` here because tooltip triggers are also
|
|
6264
6265
|
// commonly anchors and the anchor `type` attribute signifies MIME type.
|
|
6265
6266
|
"aria-describedby": o.open ? o.contentId : void 0,
|
|
6266
6267
|
"data-state": o.stateAttribute
|
|
6267
6268
|
}, r, {
|
|
6268
6269
|
ref: c,
|
|
6269
|
-
onPointerMove:
|
|
6270
|
+
onPointerMove: J(e.onPointerMove, (p) => {
|
|
6270
6271
|
p.pointerType !== "touch" && !d.current && !s.isPointerInTransitRef.current && (o.onTriggerEnter(), d.current = !0);
|
|
6271
6272
|
}),
|
|
6272
|
-
onPointerLeave:
|
|
6273
|
+
onPointerLeave: J(e.onPointerLeave, () => {
|
|
6273
6274
|
o.onTriggerLeave(), d.current = !1;
|
|
6274
6275
|
}),
|
|
6275
|
-
onPointerDown:
|
|
6276
|
+
onPointerDown: J(e.onPointerDown, () => {
|
|
6276
6277
|
l.current = !0, document.addEventListener("pointerup", u, {
|
|
6277
6278
|
once: !0
|
|
6278
6279
|
});
|
|
6279
6280
|
}),
|
|
6280
|
-
onFocus:
|
|
6281
|
+
onFocus: J(e.onFocus, () => {
|
|
6281
6282
|
l.current || o.onOpen();
|
|
6282
6283
|
}),
|
|
6283
|
-
onBlur:
|
|
6284
|
-
onClick:
|
|
6284
|
+
onBlur: J(e.onBlur, o.onClose),
|
|
6285
|
+
onClick: J(e.onClick, o.onClose)
|
|
6285
6286
|
})));
|
|
6286
6287
|
}), Md = "TooltipPortal", [mv, Dd] = rr(Md, {
|
|
6287
6288
|
forceMount: void 0
|
|
6288
|
-
}), pn = "TooltipContent", Ad = /* @__PURE__ */
|
|
6289
|
+
}), pn = "TooltipContent", Ad = /* @__PURE__ */ H((e, t) => {
|
|
6289
6290
|
const n = Dd(pn, e.__scopeTooltip), { forceMount: r = n.forceMount, side: o = "top", ...s } = e, a = or(pn, e.__scopeTooltip);
|
|
6290
|
-
return /* @__PURE__ */
|
|
6291
|
+
return /* @__PURE__ */ $(tn, {
|
|
6291
6292
|
present: r || a.open
|
|
6292
|
-
}, a.disableHoverableContent ? /* @__PURE__ */
|
|
6293
|
+
}, a.disableHoverableContent ? /* @__PURE__ */ $($a, W({
|
|
6293
6294
|
side: o
|
|
6294
6295
|
}, s, {
|
|
6295
6296
|
ref: t
|
|
6296
|
-
})) : /* @__PURE__ */
|
|
6297
|
+
})) : /* @__PURE__ */ $(kd, W({
|
|
6297
6298
|
side: o
|
|
6298
6299
|
}, s, {
|
|
6299
6300
|
ref: t
|
|
6300
6301
|
})));
|
|
6301
|
-
}), kd = /* @__PURE__ */
|
|
6302
|
-
const n = or(pn, e.__scopeTooltip), r = po(pn, e.__scopeTooltip), o = K(null), s = Se(t, o), [a, i] =
|
|
6302
|
+
}), kd = /* @__PURE__ */ H((e, t) => {
|
|
6303
|
+
const n = or(pn, e.__scopeTooltip), r = po(pn, e.__scopeTooltip), o = K(null), s = Se(t, o), [a, i] = q(null), { trigger: c, onClose: l } = n, d = o.current, { onPointerInTransitChange: u } = r, p = F(() => {
|
|
6303
6304
|
i(null), u(!1);
|
|
6304
6305
|
}, [
|
|
6305
6306
|
u
|
|
@@ -6307,17 +6308,17 @@ const ya = /* @__PURE__ */ W((e, t) => /* @__PURE__ */ C(Ee.span, z({}, e, {
|
|
|
6307
6308
|
const w = f.currentTarget, b = {
|
|
6308
6309
|
x: f.clientX,
|
|
6309
6310
|
y: f.clientY
|
|
6310
|
-
}, g = Ld(b, w.getBoundingClientRect()), y = Fd(b, g),
|
|
6311
|
+
}, g = Ld(b, w.getBoundingClientRect()), y = Fd(b, g), C = Vd(m.getBoundingClientRect()), _ = zd([
|
|
6311
6312
|
...y,
|
|
6312
|
-
|
|
6313
|
+
...C
|
|
6313
6314
|
]);
|
|
6314
6315
|
i(_), u(!0);
|
|
6315
6316
|
}, [
|
|
6316
6317
|
u
|
|
6317
6318
|
]);
|
|
6318
|
-
return
|
|
6319
|
+
return Z(() => () => p(), [
|
|
6319
6320
|
p
|
|
6320
|
-
]),
|
|
6321
|
+
]), Z(() => {
|
|
6321
6322
|
if (c && d) {
|
|
6322
6323
|
const f = (w) => h(w, d), m = (w) => h(w, c);
|
|
6323
6324
|
return c.addEventListener("pointerleave", f), d.addEventListener("pointerleave", m), () => {
|
|
@@ -6329,7 +6330,7 @@ const ya = /* @__PURE__ */ W((e, t) => /* @__PURE__ */ C(Ee.span, z({}, e, {
|
|
|
6329
6330
|
d,
|
|
6330
6331
|
h,
|
|
6331
6332
|
p
|
|
6332
|
-
]),
|
|
6333
|
+
]), Z(() => {
|
|
6333
6334
|
if (a) {
|
|
6334
6335
|
const f = (m) => {
|
|
6335
6336
|
const w = m.target, b = {
|
|
@@ -6346,16 +6347,16 @@ const ya = /* @__PURE__ */ W((e, t) => /* @__PURE__ */ C(Ee.span, z({}, e, {
|
|
|
6346
6347
|
a,
|
|
6347
6348
|
l,
|
|
6348
6349
|
p
|
|
6349
|
-
]), /* @__PURE__ */
|
|
6350
|
+
]), /* @__PURE__ */ $($a, W({}, e, {
|
|
6350
6351
|
ref: s
|
|
6351
6352
|
}));
|
|
6352
6353
|
}), [jd, hv] = rr(mo, {
|
|
6353
6354
|
isInside: !1
|
|
6354
|
-
}), $a = /* @__PURE__ */
|
|
6355
|
+
}), $a = /* @__PURE__ */ H((e, t) => {
|
|
6355
6356
|
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
|
|
6357
|
+
return Z(() => (document.addEventListener(Lr, d), () => document.removeEventListener(Lr, d)), [
|
|
6357
6358
|
d
|
|
6358
|
-
]),
|
|
6359
|
+
]), Z(() => {
|
|
6359
6360
|
if (c.trigger) {
|
|
6360
6361
|
const u = (p) => {
|
|
6361
6362
|
const h = p.target;
|
|
@@ -6370,14 +6371,14 @@ const ya = /* @__PURE__ */ W((e, t) => /* @__PURE__ */ C(Ee.span, z({}, e, {
|
|
|
6370
6371
|
}, [
|
|
6371
6372
|
c.trigger,
|
|
6372
6373
|
d
|
|
6373
|
-
]), /* @__PURE__ */
|
|
6374
|
+
]), /* @__PURE__ */ $(eo, {
|
|
6374
6375
|
asChild: !0,
|
|
6375
6376
|
disableOutsidePointerEvents: !1,
|
|
6376
6377
|
onEscapeKeyDown: s,
|
|
6377
6378
|
onPointerDownOutside: a,
|
|
6378
6379
|
onFocusOutside: (u) => u.preventDefault(),
|
|
6379
6380
|
onDismiss: d
|
|
6380
|
-
}, /* @__PURE__ */
|
|
6381
|
+
}, /* @__PURE__ */ $(uo, W({
|
|
6381
6382
|
"data-state": c.stateAttribute
|
|
6382
6383
|
}, l, i, {
|
|
6383
6384
|
ref: t,
|
|
@@ -6389,10 +6390,10 @@ const ya = /* @__PURE__ */ W((e, t) => /* @__PURE__ */ C(Ee.span, z({}, e, {
|
|
|
6389
6390
|
"--radix-tooltip-trigger-width": "var(--radix-popper-anchor-width)",
|
|
6390
6391
|
"--radix-tooltip-trigger-height": "var(--radix-popper-anchor-height)"
|
|
6391
6392
|
}
|
|
6392
|
-
}), /* @__PURE__ */
|
|
6393
|
+
}), /* @__PURE__ */ $(ra, null, r), /* @__PURE__ */ $(jd, {
|
|
6393
6394
|
scope: n,
|
|
6394
6395
|
isInside: !0
|
|
6395
|
-
}, /* @__PURE__ */
|
|
6396
|
+
}, /* @__PURE__ */ $(Ed, {
|
|
6396
6397
|
id: c.contentId,
|
|
6397
6398
|
role: "tooltip"
|
|
6398
6399
|
}, o || r))));
|
|
@@ -6518,7 +6519,7 @@ function Wd(e) {
|
|
|
6518
6519
|
}
|
|
6519
6520
|
return n.pop(), t.length === 1 && n.length === 1 && t[0].x === n[0].x && t[0].y === n[0].y ? t : t.concat(n);
|
|
6520
6521
|
}
|
|
6521
|
-
const Hd = Pd, Ud = Nd, Kd = Id, Ca = Ad, Un = Hd, Kn = Ud, Gn = Kd, mn =
|
|
6522
|
+
const Hd = Pd, Ud = Nd, Kd = Id, Ca = Ad, Un = Hd, Kn = Ud, Gn = Kd, mn = z.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ v.jsx(
|
|
6522
6523
|
Ca,
|
|
6523
6524
|
{
|
|
6524
6525
|
ref: r,
|
|
@@ -6655,11 +6656,11 @@ function ho(e) {
|
|
|
6655
6656
|
ref: g
|
|
6656
6657
|
}, w);
|
|
6657
6658
|
}), 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(() => (
|
|
6659
|
+
const { scope: m, children: w, ...b } = h, g = Ne.useRef(null), y = Se(f, g), C = s(l, m);
|
|
6660
|
+
return Ne.useEffect(() => (C.itemMap.set(g, {
|
|
6660
6661
|
ref: g,
|
|
6661
6662
|
...b
|
|
6662
|
-
}), () => void
|
|
6663
|
+
}), () => void C.itemMap.delete(g))), /* @__PURE__ */ Ne.createElement(Ut, {
|
|
6663
6664
|
[d]: "",
|
|
6664
6665
|
ref: y
|
|
6665
6666
|
}, w);
|
|
@@ -6672,7 +6673,7 @@ function ho(e) {
|
|
|
6672
6673
|
return [];
|
|
6673
6674
|
const b = Array.from(w.querySelectorAll(`[${d}]`));
|
|
6674
6675
|
return Array.from(f.itemMap.values()).sort(
|
|
6675
|
-
(
|
|
6676
|
+
(C, _) => b.indexOf(C.ref.current) - b.indexOf(_.ref.current)
|
|
6676
6677
|
);
|
|
6677
6678
|
}, [
|
|
6678
6679
|
f.collectionRef,
|
|
@@ -6696,7 +6697,7 @@ function vo(e) {
|
|
|
6696
6697
|
}
|
|
6697
6698
|
let xr = 0;
|
|
6698
6699
|
function Sa() {
|
|
6699
|
-
|
|
6700
|
+
Z(() => {
|
|
6700
6701
|
var e, t;
|
|
6701
6702
|
const n = document.querySelectorAll("[data-radix-focus-guard]");
|
|
6702
6703
|
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 +6714,8 @@ function fs() {
|
|
|
6713
6714
|
const wr = "focusScope.autoFocusOnMount", yr = "focusScope.autoFocusOnUnmount", ps = {
|
|
6714
6715
|
bubbles: !1,
|
|
6715
6716
|
cancelable: !0
|
|
6716
|
-
}, Ea = /* @__PURE__ */
|
|
6717
|
-
const { loop: n = !1, trapped: r = !1, onMountAutoFocus: o, onUnmountAutoFocus: s, ...a } = e, [i, c] =
|
|
6717
|
+
}, Ea = /* @__PURE__ */ H((e, t) => {
|
|
6718
|
+
const { loop: n = !1, trapped: r = !1, onMountAutoFocus: o, onUnmountAutoFocus: s, ...a } = e, [i, c] = q(null), l = He(o), d = He(s), u = K(null), p = Se(
|
|
6718
6719
|
t,
|
|
6719
6720
|
(m) => c(m)
|
|
6720
6721
|
), h = K({
|
|
@@ -6726,20 +6727,20 @@ const wr = "focusScope.autoFocusOnMount", yr = "focusScope.autoFocusOnUnmount",
|
|
|
6726
6727
|
this.paused = !1;
|
|
6727
6728
|
}
|
|
6728
6729
|
}).current;
|
|
6729
|
-
|
|
6730
|
+
Z(() => {
|
|
6730
6731
|
if (r) {
|
|
6731
6732
|
let m = function(y) {
|
|
6732
6733
|
if (h.paused || !i)
|
|
6733
6734
|
return;
|
|
6734
|
-
const
|
|
6735
|
-
i.contains(
|
|
6735
|
+
const C = y.target;
|
|
6736
|
+
i.contains(C) ? u.current = C : dt(u.current, {
|
|
6736
6737
|
select: !0
|
|
6737
6738
|
});
|
|
6738
6739
|
}, w = function(y) {
|
|
6739
6740
|
if (h.paused || !i)
|
|
6740
6741
|
return;
|
|
6741
|
-
const
|
|
6742
|
-
|
|
6742
|
+
const C = y.relatedTarget;
|
|
6743
|
+
C !== null && (i.contains(C) || dt(u.current, {
|
|
6743
6744
|
select: !0
|
|
6744
6745
|
}));
|
|
6745
6746
|
}, b = function(y) {
|
|
@@ -6760,7 +6761,7 @@ const wr = "focusScope.autoFocusOnMount", yr = "focusScope.autoFocusOnUnmount",
|
|
|
6760
6761
|
r,
|
|
6761
6762
|
i,
|
|
6762
6763
|
h.paused
|
|
6763
|
-
]),
|
|
6764
|
+
]), Z(() => {
|
|
6764
6765
|
if (i) {
|
|
6765
6766
|
hs.add(h);
|
|
6766
6767
|
const m = document.activeElement;
|
|
@@ -6790,10 +6791,10 @@ const wr = "focusScope.autoFocusOnMount", yr = "focusScope.autoFocusOnUnmount",
|
|
|
6790
6791
|
return;
|
|
6791
6792
|
const w = m.key === "Tab" && !m.altKey && !m.ctrlKey && !m.metaKey, b = document.activeElement;
|
|
6792
6793
|
if (w && b) {
|
|
6793
|
-
const g = m.currentTarget, [y,
|
|
6794
|
-
y &&
|
|
6794
|
+
const g = m.currentTarget, [y, C] = Qd(g);
|
|
6795
|
+
y && C ? !m.shiftKey && b === C ? (m.preventDefault(), n && dt(y, {
|
|
6795
6796
|
select: !0
|
|
6796
|
-
})) : m.shiftKey && b === y && (m.preventDefault(), n && dt(
|
|
6797
|
+
})) : m.shiftKey && b === y && (m.preventDefault(), n && dt(C, {
|
|
6797
6798
|
select: !0
|
|
6798
6799
|
})) : b === g && m.preventDefault();
|
|
6799
6800
|
}
|
|
@@ -6802,7 +6803,7 @@ const wr = "focusScope.autoFocusOnMount", yr = "focusScope.autoFocusOnUnmount",
|
|
|
6802
6803
|
r,
|
|
6803
6804
|
h.paused
|
|
6804
6805
|
]);
|
|
6805
|
-
return /* @__PURE__ */
|
|
6806
|
+
return /* @__PURE__ */ $(Ee.div, W({
|
|
6806
6807
|
tabIndex: -1
|
|
6807
6808
|
}, a, {
|
|
6808
6809
|
ref: p,
|
|
@@ -6977,7 +6978,7 @@ function Cr(e, t) {
|
|
|
6977
6978
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
6978
6979
|
}
|
|
6979
6980
|
function pf(e, t) {
|
|
6980
|
-
var n =
|
|
6981
|
+
var n = q(function() {
|
|
6981
6982
|
return {
|
|
6982
6983
|
// value
|
|
6983
6984
|
value: e,
|
|
@@ -6997,7 +6998,7 @@ function pf(e, t) {
|
|
|
6997
6998
|
})[0];
|
|
6998
6999
|
return n.callback = t, n.facade;
|
|
6999
7000
|
}
|
|
7000
|
-
var mf = typeof window < "u" ?
|
|
7001
|
+
var mf = typeof window < "u" ? z.useLayoutEffect : z.useEffect, gs = /* @__PURE__ */ new WeakMap();
|
|
7001
7002
|
function hf(e, t) {
|
|
7002
7003
|
var n = pf(null, function(r) {
|
|
7003
7004
|
return e.forEach(function(o) {
|
|
@@ -7106,24 +7107,24 @@ var Pa = function(e) {
|
|
|
7106
7107
|
var r = t.read();
|
|
7107
7108
|
if (!r)
|
|
7108
7109
|
throw new Error("Sidecar medium not found");
|
|
7109
|
-
return
|
|
7110
|
+
return z.createElement(r, Yn({}, n));
|
|
7110
7111
|
};
|
|
7111
7112
|
Pa.isSideCarExport = !0;
|
|
7112
7113
|
function wf(e, t) {
|
|
7113
7114
|
return e.useMedium(t), Pa;
|
|
7114
7115
|
}
|
|
7115
7116
|
var Oa = xf(), Sr = function() {
|
|
7116
|
-
}, sr =
|
|
7117
|
-
var n =
|
|
7117
|
+
}, sr = z.forwardRef(function(e, t) {
|
|
7118
|
+
var n = z.useRef(null), r = z.useState({
|
|
7118
7119
|
onScrollCapture: Sr,
|
|
7119
7120
|
onWheelCapture: Sr,
|
|
7120
7121
|
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,
|
|
7122
|
-
return
|
|
7123
|
-
|
|
7122
|
+
}), 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, C = hf([n, t]), _ = vt(vt({}, g), o);
|
|
7123
|
+
return z.createElement(
|
|
7124
|
+
z.Fragment,
|
|
7124
7125
|
null,
|
|
7125
|
-
d &&
|
|
7126
|
-
a ?
|
|
7126
|
+
d && z.createElement(y, { sideCar: Oa, removeScrollBar: l, shards: u, noIsolation: h, inert: f, setCallbacks: s, allowPinchZoom: !!m, lockRef: n }),
|
|
7127
|
+
a ? z.cloneElement(z.Children.only(i), vt(vt({}, _), { ref: C })) : z.createElement(b, vt({}, _, { className: c, ref: C }), i)
|
|
7127
7128
|
);
|
|
7128
7129
|
});
|
|
7129
7130
|
sr.defaultProps = {
|
|
@@ -7167,7 +7168,7 @@ var Ef = function() {
|
|
|
7167
7168
|
}, _f = function() {
|
|
7168
7169
|
var e = Ef();
|
|
7169
7170
|
return function(t, n) {
|
|
7170
|
-
|
|
7171
|
+
z.useEffect(function() {
|
|
7171
7172
|
return e.add(t), function() {
|
|
7172
7173
|
e.remove();
|
|
7173
7174
|
};
|
|
@@ -7247,7 +7248,7 @@ var Ef = function() {
|
|
|
7247
7248
|
var e = parseInt(document.body.getAttribute(Ft) || "0", 10);
|
|
7248
7249
|
return isFinite(e) ? e : 0;
|
|
7249
7250
|
}, If = function() {
|
|
7250
|
-
|
|
7251
|
+
z.useEffect(function() {
|
|
7251
7252
|
return document.body.setAttribute(Ft, (bs() + 1).toString()), function() {
|
|
7252
7253
|
var e = bs() - 1;
|
|
7253
7254
|
e <= 0 ? document.body.removeAttribute(Ft) : document.body.setAttribute(Ft, e.toString());
|
|
@@ -7256,10 +7257,10 @@ var Ef = function() {
|
|
|
7256
7257
|
}, Mf = function(e) {
|
|
7257
7258
|
var t = e.noRelative, n = e.noImportant, r = e.gapMode, o = r === void 0 ? "margin" : r;
|
|
7258
7259
|
If();
|
|
7259
|
-
var s =
|
|
7260
|
+
var s = z.useMemo(function() {
|
|
7260
7261
|
return Pf(o);
|
|
7261
7262
|
}, [o]);
|
|
7262
|
-
return
|
|
7263
|
+
return z.createElement(Of, { styles: Nf(s, !t, o, n ? "" : "!important") });
|
|
7263
7264
|
}, Fr = !1;
|
|
7264
7265
|
if (typeof window < "u")
|
|
7265
7266
|
try {
|
|
@@ -7344,12 +7345,12 @@ var At = Fr ? { passive: !1 } : !1, Df = function(e) {
|
|
|
7344
7345
|
`);
|
|
7345
7346
|
}, Wf = 0, kt = [];
|
|
7346
7347
|
function Hf(e) {
|
|
7347
|
-
var t =
|
|
7348
|
+
var t = z.useRef([]), n = z.useRef([0, 0]), r = z.useRef(), o = z.useState(Wf++)[0], s = z.useState(function() {
|
|
7348
7349
|
return Na();
|
|
7349
|
-
})[0], a =
|
|
7350
|
-
|
|
7350
|
+
})[0], a = z.useRef(e);
|
|
7351
|
+
z.useEffect(function() {
|
|
7351
7352
|
a.current = e;
|
|
7352
|
-
}, [e]),
|
|
7353
|
+
}, [e]), z.useEffect(function() {
|
|
7353
7354
|
if (e.inert) {
|
|
7354
7355
|
document.body.classList.add("block-interactivity-".concat(o));
|
|
7355
7356
|
var m = uf([e.lockRef.current], (e.shards || []).map(ys), !0).filter(Boolean);
|
|
@@ -7362,22 +7363,22 @@ function Hf(e) {
|
|
|
7362
7363
|
};
|
|
7363
7364
|
}
|
|
7364
7365
|
}, [e.inert, e.lockRef.current, e.shards]);
|
|
7365
|
-
var i =
|
|
7366
|
+
var i = z.useCallback(function(m, w) {
|
|
7366
7367
|
if ("touches" in m && m.touches.length === 2)
|
|
7367
7368
|
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" &&
|
|
7369
|
+
var b = Pn(m), g = n.current, y = "deltaX" in m ? m.deltaX : g[0] - b[0], C = "deltaY" in m ? m.deltaY : g[1] - b[1], _, M = m.target, T = Math.abs(y) > Math.abs(C) ? "h" : "v";
|
|
7370
|
+
if ("touches" in m && T === "h" && M.type === "range")
|
|
7370
7371
|
return !1;
|
|
7371
|
-
var E = xs(T,
|
|
7372
|
+
var E = xs(T, M);
|
|
7372
7373
|
if (!E)
|
|
7373
7374
|
return !0;
|
|
7374
|
-
if (E ? _ = T : (_ = T === "v" ? "h" : "v", E = xs(T,
|
|
7375
|
+
if (E ? _ = T : (_ = T === "v" ? "h" : "v", E = xs(T, M)), !E)
|
|
7375
7376
|
return !1;
|
|
7376
|
-
if (!r.current && "changedTouches" in m && (y ||
|
|
7377
|
+
if (!r.current && "changedTouches" in m && (y || C) && (r.current = _), !_)
|
|
7377
7378
|
return !0;
|
|
7378
|
-
var
|
|
7379
|
-
return Vf(
|
|
7380
|
-
}, []), c =
|
|
7379
|
+
var k = r.current || _;
|
|
7380
|
+
return Vf(k, w, m, k === "h" ? y : C, !0);
|
|
7381
|
+
}, []), c = z.useCallback(function(m) {
|
|
7381
7382
|
var w = m;
|
|
7382
7383
|
if (!(!kt.length || kt[kt.length - 1] !== s)) {
|
|
7383
7384
|
var b = "deltaY" in w ? ws(w) : Pn(w), g = t.current.filter(function(_) {
|
|
@@ -7390,25 +7391,25 @@ function Hf(e) {
|
|
|
7390
7391
|
if (!g) {
|
|
7391
7392
|
var y = (a.current.shards || []).map(ys).filter(Boolean).filter(function(_) {
|
|
7392
7393
|
return _.contains(w.target);
|
|
7393
|
-
}),
|
|
7394
|
-
|
|
7394
|
+
}), C = y.length > 0 ? i(w, y[0]) : !a.current.noIsolation;
|
|
7395
|
+
C && w.cancelable && w.preventDefault();
|
|
7395
7396
|
}
|
|
7396
7397
|
}
|
|
7397
|
-
}, []), l =
|
|
7398
|
+
}, []), l = z.useCallback(function(m, w, b, g) {
|
|
7398
7399
|
var y = { name: m, delta: w, target: b, should: g };
|
|
7399
7400
|
t.current.push(y), setTimeout(function() {
|
|
7400
|
-
t.current = t.current.filter(function(
|
|
7401
|
-
return
|
|
7401
|
+
t.current = t.current.filter(function(C) {
|
|
7402
|
+
return C !== y;
|
|
7402
7403
|
});
|
|
7403
7404
|
}, 1);
|
|
7404
|
-
}, []), d =
|
|
7405
|
+
}, []), d = z.useCallback(function(m) {
|
|
7405
7406
|
n.current = Pn(m), r.current = void 0;
|
|
7406
|
-
}, []), u =
|
|
7407
|
+
}, []), u = z.useCallback(function(m) {
|
|
7407
7408
|
l(m.type, ws(m), m.target, i(m, e.lockRef.current));
|
|
7408
|
-
}, []), p =
|
|
7409
|
+
}, []), p = z.useCallback(function(m) {
|
|
7409
7410
|
l(m.type, Pn(m), m.target, i(m, e.lockRef.current));
|
|
7410
7411
|
}, []);
|
|
7411
|
-
|
|
7412
|
+
z.useEffect(function() {
|
|
7412
7413
|
return kt.push(s), e.setCallbacks({
|
|
7413
7414
|
onScrollCapture: u,
|
|
7414
7415
|
onWheelCapture: u,
|
|
@@ -7420,16 +7421,16 @@ function Hf(e) {
|
|
|
7420
7421
|
};
|
|
7421
7422
|
}, []);
|
|
7422
7423
|
var h = e.removeScrollBar, f = e.inert;
|
|
7423
|
-
return
|
|
7424
|
-
|
|
7424
|
+
return z.createElement(
|
|
7425
|
+
z.Fragment,
|
|
7425
7426
|
null,
|
|
7426
|
-
f ?
|
|
7427
|
-
h ?
|
|
7427
|
+
f ? z.createElement(s, { styles: zf(o) }) : null,
|
|
7428
|
+
h ? z.createElement(Mf, { gapMode: "margin" }) : null
|
|
7428
7429
|
);
|
|
7429
7430
|
}
|
|
7430
7431
|
const Uf = wf(Oa, Hf);
|
|
7431
|
-
var go =
|
|
7432
|
-
return
|
|
7432
|
+
var go = z.forwardRef(function(e, t) {
|
|
7433
|
+
return z.createElement(sr, vt({}, e, { ref: t, sideCar: Uf }));
|
|
7433
7434
|
});
|
|
7434
7435
|
go.classNames = sr.classNames;
|
|
7435
7436
|
const Kf = [
|
|
@@ -7444,18 +7445,18 @@ const Kf = [
|
|
|
7444
7445
|
Yf,
|
|
7445
7446
|
en
|
|
7446
7447
|
]), 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] =
|
|
7448
|
+
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] = q(null), [b, g] = q(null), [y, C] = q(!1), _ = vo(l), [M = !1, T] = fn({
|
|
7448
7449
|
prop: r,
|
|
7449
7450
|
defaultProp: o,
|
|
7450
7451
|
onChange: s
|
|
7451
|
-
}), [E,
|
|
7452
|
+
}), [E, k] = fn({
|
|
7452
7453
|
prop: a,
|
|
7453
7454
|
defaultProp: i,
|
|
7454
7455
|
onChange: c
|
|
7455
|
-
}),
|
|
7456
|
+
}), O = K(null), V = m ? !!m.closest("form") : !0, [I, Q] = q(/* @__PURE__ */ new Set()), G = Array.from(I).map(
|
|
7456
7457
|
(A) => A.props.value
|
|
7457
7458
|
).join(";");
|
|
7458
|
-
return /* @__PURE__ */
|
|
7459
|
+
return /* @__PURE__ */ $(co, f, /* @__PURE__ */ $(Xf, {
|
|
7459
7460
|
required: h,
|
|
7460
7461
|
scope: t,
|
|
7461
7462
|
trigger: m,
|
|
@@ -7463,31 +7464,31 @@ const Kf = [
|
|
|
7463
7464
|
valueNode: b,
|
|
7464
7465
|
onValueNodeChange: g,
|
|
7465
7466
|
valueNodeHasChildren: y,
|
|
7466
|
-
onValueNodeHasChildrenChange:
|
|
7467
|
+
onValueNodeHasChildrenChange: C,
|
|
7467
7468
|
contentId: Kt(),
|
|
7468
7469
|
value: E,
|
|
7469
|
-
onValueChange:
|
|
7470
|
-
open:
|
|
7470
|
+
onValueChange: k,
|
|
7471
|
+
open: M,
|
|
7471
7472
|
onOpenChange: T,
|
|
7472
7473
|
dir: _,
|
|
7473
|
-
triggerPointerDownPosRef:
|
|
7474
|
+
triggerPointerDownPosRef: O,
|
|
7474
7475
|
disabled: p
|
|
7475
|
-
}, /* @__PURE__ */
|
|
7476
|
+
}, /* @__PURE__ */ $(ir.Provider, {
|
|
7476
7477
|
scope: t
|
|
7477
|
-
}, /* @__PURE__ */
|
|
7478
|
+
}, /* @__PURE__ */ $(qf, {
|
|
7478
7479
|
scope: e.__scopeSelect,
|
|
7479
7480
|
onNativeOptionAdd: F((A) => {
|
|
7480
7481
|
Q(
|
|
7481
|
-
(
|
|
7482
|
+
(D) => new Set(D).add(A)
|
|
7482
7483
|
);
|
|
7483
7484
|
}, []),
|
|
7484
7485
|
onNativeOptionRemove: F((A) => {
|
|
7485
|
-
Q((
|
|
7486
|
-
const P = new Set(
|
|
7486
|
+
Q((D) => {
|
|
7487
|
+
const P = new Set(D);
|
|
7487
7488
|
return P.delete(A), P;
|
|
7488
7489
|
});
|
|
7489
7490
|
}, [])
|
|
7490
|
-
}, n)),
|
|
7491
|
+
}, n)), V ? /* @__PURE__ */ $(Fa, {
|
|
7491
7492
|
key: G,
|
|
7492
7493
|
"aria-hidden": !0,
|
|
7493
7494
|
required: h,
|
|
@@ -7495,12 +7496,12 @@ const Kf = [
|
|
|
7495
7496
|
name: d,
|
|
7496
7497
|
autoComplete: u,
|
|
7497
7498
|
value: E,
|
|
7498
|
-
onChange: (A) =>
|
|
7499
|
+
onChange: (A) => k(A.target.value),
|
|
7499
7500
|
disabled: p
|
|
7500
|
-
}, E === void 0 ? /* @__PURE__ */
|
|
7501
|
+
}, E === void 0 ? /* @__PURE__ */ $("option", {
|
|
7501
7502
|
value: ""
|
|
7502
|
-
}) : null, Array.from(
|
|
7503
|
-
}, Qf = "SelectTrigger", ep = /* @__PURE__ */
|
|
7503
|
+
}) : null, Array.from(I)) : null));
|
|
7504
|
+
}, Qf = "SelectTrigger", ep = /* @__PURE__ */ H((e, t) => {
|
|
7504
7505
|
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
7506
|
const m = l().filter(
|
|
7506
7507
|
(g) => !g.disabled
|
|
@@ -7511,9 +7512,9 @@ const Kf = [
|
|
|
7511
7512
|
}), h = () => {
|
|
7512
7513
|
i || (a.onOpenChange(!0), p());
|
|
7513
7514
|
};
|
|
7514
|
-
return /* @__PURE__ */
|
|
7515
|
+
return /* @__PURE__ */ $(lo, W({
|
|
7515
7516
|
asChild: !0
|
|
7516
|
-
}, s), /* @__PURE__ */
|
|
7517
|
+
}, s), /* @__PURE__ */ $(Ee.button, W({
|
|
7517
7518
|
type: "button",
|
|
7518
7519
|
role: "combobox",
|
|
7519
7520
|
"aria-controls": a.contentId,
|
|
@@ -7527,59 +7528,59 @@ const Kf = [
|
|
|
7527
7528
|
"data-placeholder": La(a.value) ? "" : void 0
|
|
7528
7529
|
}, o, {
|
|
7529
7530
|
ref: c,
|
|
7530
|
-
onClick:
|
|
7531
|
+
onClick: J(o.onClick, (f) => {
|
|
7531
7532
|
f.currentTarget.focus();
|
|
7532
7533
|
}),
|
|
7533
|
-
onPointerDown:
|
|
7534
|
+
onPointerDown: J(o.onPointerDown, (f) => {
|
|
7534
7535
|
const m = f.target;
|
|
7535
7536
|
m.hasPointerCapture(f.pointerId) && m.releasePointerCapture(f.pointerId), f.button === 0 && f.ctrlKey === !1 && (h(), a.triggerPointerDownPosRef.current = {
|
|
7536
7537
|
x: Math.round(f.pageX),
|
|
7537
7538
|
y: Math.round(f.pageY)
|
|
7538
7539
|
}, f.preventDefault());
|
|
7539
7540
|
}),
|
|
7540
|
-
onKeyDown:
|
|
7541
|
+
onKeyDown: J(o.onKeyDown, (f) => {
|
|
7541
7542
|
const m = d.current !== "";
|
|
7542
7543
|
!(f.ctrlKey || f.altKey || f.metaKey) && f.key.length === 1 && u(f.key), !(m && f.key === " ") && Kf.includes(f.key) && (h(), f.preventDefault());
|
|
7543
7544
|
})
|
|
7544
7545
|
})));
|
|
7545
|
-
}), tp = "SelectValue", np = /* @__PURE__ */
|
|
7546
|
+
}), tp = "SelectValue", np = /* @__PURE__ */ H((e, t) => {
|
|
7546
7547
|
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
7548
|
return je(() => {
|
|
7548
7549
|
l(d);
|
|
7549
7550
|
}, [
|
|
7550
7551
|
l,
|
|
7551
7552
|
d
|
|
7552
|
-
]), /* @__PURE__ */
|
|
7553
|
+
]), /* @__PURE__ */ $(Ee.span, W({}, i, {
|
|
7553
7554
|
ref: u,
|
|
7554
7555
|
style: {
|
|
7555
7556
|
pointerEvents: "none"
|
|
7556
7557
|
}
|
|
7557
|
-
}), La(c.value) ? /* @__PURE__ */
|
|
7558
|
-
}), rp = /* @__PURE__ */
|
|
7558
|
+
}), La(c.value) ? /* @__PURE__ */ $(Xt, null, a) : s);
|
|
7559
|
+
}), rp = /* @__PURE__ */ H((e, t) => {
|
|
7559
7560
|
const { __scopeSelect: n, children: r, ...o } = e;
|
|
7560
|
-
return /* @__PURE__ */
|
|
7561
|
+
return /* @__PURE__ */ $(Ee.span, W({
|
|
7561
7562
|
"aria-hidden": !0
|
|
7562
7563
|
}, o, {
|
|
7563
7564
|
ref: t
|
|
7564
7565
|
}), r || "▼");
|
|
7565
|
-
}), op = (e) => /* @__PURE__ */
|
|
7566
|
+
}), op = (e) => /* @__PURE__ */ $(wa, W({
|
|
7566
7567
|
asChild: !0
|
|
7567
|
-
}, e)), Yt = "SelectContent", sp = /* @__PURE__ */
|
|
7568
|
-
const n = Rt(Yt, e.__scopeSelect), [r, o] =
|
|
7568
|
+
}, e)), Yt = "SelectContent", sp = /* @__PURE__ */ H((e, t) => {
|
|
7569
|
+
const n = Rt(Yt, e.__scopeSelect), [r, o] = q();
|
|
7569
7570
|
if (je(() => {
|
|
7570
7571
|
o(new DocumentFragment());
|
|
7571
7572
|
}, []), !n.open) {
|
|
7572
7573
|
const s = r;
|
|
7573
|
-
return s ? /* @__PURE__ */ Xr(/* @__PURE__ */
|
|
7574
|
+
return s ? /* @__PURE__ */ Xr(/* @__PURE__ */ $(Aa, {
|
|
7574
7575
|
scope: e.__scopeSelect
|
|
7575
|
-
}, /* @__PURE__ */
|
|
7576
|
+
}, /* @__PURE__ */ $(ir.Slot, {
|
|
7576
7577
|
scope: e.__scopeSelect
|
|
7577
|
-
}, /* @__PURE__ */
|
|
7578
|
+
}, /* @__PURE__ */ $("div", null, e.children))), s) : null;
|
|
7578
7579
|
}
|
|
7579
|
-
return /* @__PURE__ */
|
|
7580
|
+
return /* @__PURE__ */ $(ap, W({}, e, {
|
|
7580
7581
|
ref: t
|
|
7581
7582
|
}));
|
|
7582
|
-
}), nt = 10, [Aa, Pt] = nn(Yt), ap = /* @__PURE__ */
|
|
7583
|
+
}), nt = 10, [Aa, Pt] = nn(Yt), ap = /* @__PURE__ */ H((e, t) => {
|
|
7583
7584
|
const {
|
|
7584
7585
|
__scopeSelect: n,
|
|
7585
7586
|
position: r = "item-aligned",
|
|
@@ -7598,18 +7599,18 @@ const Kf = [
|
|
|
7598
7599
|
avoidCollisions: w,
|
|
7599
7600
|
//
|
|
7600
7601
|
...b
|
|
7601
|
-
} = e, g = Rt(Yt, n), [y,
|
|
7602
|
+
} = e, g = Rt(Yt, n), [y, C] = q(null), [_, M] = q(null), T = Se(
|
|
7602
7603
|
t,
|
|
7603
|
-
(X) =>
|
|
7604
|
-
), [E,
|
|
7605
|
-
|
|
7604
|
+
(X) => C(X)
|
|
7605
|
+
), [E, k] = q(null), [O, V] = q(null), I = cr(n), [Q, G] = q(!1), A = K(!1);
|
|
7606
|
+
Z(() => {
|
|
7606
7607
|
if (y)
|
|
7607
7608
|
return Ra(y);
|
|
7608
7609
|
}, [
|
|
7609
7610
|
y
|
|
7610
7611
|
]), Sa();
|
|
7611
|
-
const
|
|
7612
|
-
const [se, ...oe] =
|
|
7612
|
+
const D = F((X) => {
|
|
7613
|
+
const [se, ...oe] = I().map(
|
|
7613
7614
|
(fe) => fe.ref.current
|
|
7614
7615
|
), [ce] = oe.slice(-1), de = document.activeElement;
|
|
7615
7616
|
for (const fe of X)
|
|
@@ -7618,27 +7619,27 @@ const Kf = [
|
|
|
7618
7619
|
}), fe === se && _ && (_.scrollTop = 0), fe === ce && _ && (_.scrollTop = _.scrollHeight), fe?.focus(), document.activeElement !== de))
|
|
7619
7620
|
return;
|
|
7620
7621
|
}, [
|
|
7621
|
-
|
|
7622
|
+
I,
|
|
7622
7623
|
_
|
|
7623
7624
|
]), P = F(
|
|
7624
|
-
() =>
|
|
7625
|
+
() => D([
|
|
7625
7626
|
E,
|
|
7626
7627
|
y
|
|
7627
7628
|
]),
|
|
7628
7629
|
[
|
|
7629
|
-
|
|
7630
|
+
D,
|
|
7630
7631
|
E,
|
|
7631
7632
|
y
|
|
7632
7633
|
]
|
|
7633
7634
|
);
|
|
7634
|
-
|
|
7635
|
+
Z(() => {
|
|
7635
7636
|
Q && P();
|
|
7636
7637
|
}, [
|
|
7637
7638
|
Q,
|
|
7638
7639
|
P
|
|
7639
7640
|
]);
|
|
7640
7641
|
const { onOpenChange: ee, triggerPointerDownPosRef: S } = g;
|
|
7641
|
-
|
|
7642
|
+
Z(() => {
|
|
7642
7643
|
if (y) {
|
|
7643
7644
|
let X = {
|
|
7644
7645
|
x: 0,
|
|
@@ -7666,7 +7667,7 @@ const Kf = [
|
|
|
7666
7667
|
y,
|
|
7667
7668
|
ee,
|
|
7668
7669
|
S
|
|
7669
|
-
]),
|
|
7670
|
+
]), Z(() => {
|
|
7670
7671
|
const X = () => ee(!1);
|
|
7671
7672
|
return window.addEventListener("blur", X), window.addEventListener("resize", X), () => {
|
|
7672
7673
|
window.removeEventListener("blur", X), window.removeEventListener("resize", X);
|
|
@@ -7674,8 +7675,8 @@ const Kf = [
|
|
|
7674
7675
|
}, [
|
|
7675
7676
|
ee
|
|
7676
7677
|
]);
|
|
7677
|
-
const [
|
|
7678
|
-
const se =
|
|
7678
|
+
const [N, j] = Va((X) => {
|
|
7679
|
+
const se = I().filter(
|
|
7679
7680
|
(de) => !de.disabled
|
|
7680
7681
|
), oe = se.find(
|
|
7681
7682
|
(de) => de.ref.current === document.activeElement
|
|
@@ -7685,7 +7686,7 @@ const Kf = [
|
|
|
7685
7686
|
);
|
|
7686
7687
|
}), Y = F((X, se, oe) => {
|
|
7687
7688
|
const ce = !A.current && !oe;
|
|
7688
|
-
(g.value !== void 0 && g.value === se || ce) && (
|
|
7689
|
+
(g.value !== void 0 && g.value === se || ce) && (k(X), ce && (A.current = !0));
|
|
7689
7690
|
}, [
|
|
7690
7691
|
g.value
|
|
7691
7692
|
]), le = F(
|
|
@@ -7695,7 +7696,7 @@ const Kf = [
|
|
|
7695
7696
|
]
|
|
7696
7697
|
), ae = F((X, se, oe) => {
|
|
7697
7698
|
const ce = !A.current && !oe;
|
|
7698
|
-
(g.value !== void 0 && g.value === se || ce) &&
|
|
7699
|
+
(g.value !== void 0 && g.value === se || ce) && V(X);
|
|
7699
7700
|
}, [
|
|
7700
7701
|
g.value
|
|
7701
7702
|
]), be = r === "popper" ? $s : ip, we = be === $s ? {
|
|
@@ -7710,43 +7711,43 @@ const Kf = [
|
|
|
7710
7711
|
hideWhenDetached: m,
|
|
7711
7712
|
avoidCollisions: w
|
|
7712
7713
|
} : {};
|
|
7713
|
-
return /* @__PURE__ */
|
|
7714
|
+
return /* @__PURE__ */ $(Aa, {
|
|
7714
7715
|
scope: n,
|
|
7715
7716
|
content: y,
|
|
7716
7717
|
viewport: _,
|
|
7717
|
-
onViewportChange:
|
|
7718
|
+
onViewportChange: M,
|
|
7718
7719
|
itemRefCallback: Y,
|
|
7719
7720
|
selectedItem: E,
|
|
7720
7721
|
onItemLeave: le,
|
|
7721
7722
|
itemTextRefCallback: ae,
|
|
7722
7723
|
focusSelectedItem: P,
|
|
7723
|
-
selectedItemText:
|
|
7724
|
+
selectedItemText: O,
|
|
7724
7725
|
position: r,
|
|
7725
7726
|
isPositioned: Q,
|
|
7726
|
-
searchRef:
|
|
7727
|
-
}, /* @__PURE__ */
|
|
7727
|
+
searchRef: N
|
|
7728
|
+
}, /* @__PURE__ */ $(go, {
|
|
7728
7729
|
as: Ut,
|
|
7729
7730
|
allowPinchZoom: !0
|
|
7730
|
-
}, /* @__PURE__ */
|
|
7731
|
+
}, /* @__PURE__ */ $(Ea, {
|
|
7731
7732
|
asChild: !0,
|
|
7732
7733
|
trapped: g.open,
|
|
7733
7734
|
onMountAutoFocus: (X) => {
|
|
7734
7735
|
X.preventDefault();
|
|
7735
7736
|
},
|
|
7736
|
-
onUnmountAutoFocus:
|
|
7737
|
+
onUnmountAutoFocus: J(o, (X) => {
|
|
7737
7738
|
var se;
|
|
7738
7739
|
(se = g.trigger) === null || se === void 0 || se.focus({
|
|
7739
7740
|
preventScroll: !0
|
|
7740
7741
|
}), X.preventDefault();
|
|
7741
7742
|
})
|
|
7742
|
-
}, /* @__PURE__ */
|
|
7743
|
+
}, /* @__PURE__ */ $(eo, {
|
|
7743
7744
|
asChild: !0,
|
|
7744
7745
|
disableOutsidePointerEvents: !0,
|
|
7745
7746
|
onEscapeKeyDown: s,
|
|
7746
7747
|
onPointerDownOutside: a,
|
|
7747
7748
|
onFocusOutside: (X) => X.preventDefault(),
|
|
7748
7749
|
onDismiss: () => g.onOpenChange(!1)
|
|
7749
|
-
}, /* @__PURE__ */
|
|
7750
|
+
}, /* @__PURE__ */ $(be, W({
|
|
7750
7751
|
role: "listbox",
|
|
7751
7752
|
id: g.contentId,
|
|
7752
7753
|
"data-state": g.open ? "open" : "closed",
|
|
@@ -7763,7 +7764,7 @@ const Kf = [
|
|
|
7763
7764
|
outline: "none",
|
|
7764
7765
|
...b.style
|
|
7765
7766
|
},
|
|
7766
|
-
onKeyDown:
|
|
7767
|
+
onKeyDown: J(b.onKeyDown, (X) => {
|
|
7767
7768
|
const se = X.ctrlKey || X.altKey || X.metaKey;
|
|
7768
7769
|
if (X.key === "Tab" && X.preventDefault(), !se && X.key.length === 1 && j(X.key), [
|
|
7769
7770
|
"ArrowUp",
|
|
@@ -7771,7 +7772,7 @@ const Kf = [
|
|
|
7771
7772
|
"Home",
|
|
7772
7773
|
"End"
|
|
7773
7774
|
].includes(X.key)) {
|
|
7774
|
-
let ce =
|
|
7775
|
+
let ce = I().filter(
|
|
7775
7776
|
(de) => !de.disabled
|
|
7776
7777
|
).map(
|
|
7777
7778
|
(de) => de.ref.current
|
|
@@ -7787,44 +7788,44 @@ const Kf = [
|
|
|
7787
7788
|
ce = ce.slice(fe + 1);
|
|
7788
7789
|
}
|
|
7789
7790
|
setTimeout(
|
|
7790
|
-
() =>
|
|
7791
|
+
() => D(ce)
|
|
7791
7792
|
), X.preventDefault();
|
|
7792
7793
|
}
|
|
7793
7794
|
})
|
|
7794
7795
|
}))))));
|
|
7795
|
-
}), ip = /* @__PURE__ */
|
|
7796
|
-
const { __scopeSelect: n, onPlaced: r, ...o } = e, s = Rt(Yt, n), a = Pt(Yt, n), [i, c] =
|
|
7796
|
+
}), ip = /* @__PURE__ */ H((e, t) => {
|
|
7797
|
+
const { __scopeSelect: n, onPlaced: r, ...o } = e, s = Rt(Yt, n), a = Pt(Yt, n), [i, c] = q(null), [l, d] = q(null), u = Se(
|
|
7797
7798
|
t,
|
|
7798
7799
|
(T) => d(T)
|
|
7799
7800
|
), p = cr(n), h = K(!1), f = K(!0), { viewport: m, selectedItem: w, selectedItemText: b, focusSelectedItem: g } = a, y = F(() => {
|
|
7800
7801
|
if (s.trigger && s.valueNode && i && l && m && w && b) {
|
|
7801
|
-
const T = s.trigger.getBoundingClientRect(), E = l.getBoundingClientRect(),
|
|
7802
|
+
const T = s.trigger.getBoundingClientRect(), E = l.getBoundingClientRect(), k = s.valueNode.getBoundingClientRect(), O = b.getBoundingClientRect();
|
|
7802
7803
|
if (s.dir !== "rtl") {
|
|
7803
|
-
const de =
|
|
7804
|
+
const de = O.left - E.left, fe = k.left - de, Re = T.left - fe, Me = T.width + Re, L = Math.max(Me, E.width), U = window.innerWidth - nt, re = ds(fe, [
|
|
7804
7805
|
nt,
|
|
7805
7806
|
U - L
|
|
7806
7807
|
]);
|
|
7807
7808
|
i.style.minWidth = Me + "px", i.style.left = re + "px";
|
|
7808
7809
|
} else {
|
|
7809
|
-
const de = E.right -
|
|
7810
|
+
const de = E.right - O.right, fe = window.innerWidth - k.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
7811
|
nt,
|
|
7811
7812
|
U - L
|
|
7812
7813
|
]);
|
|
7813
7814
|
i.style.minWidth = Me + "px", i.style.right = re + "px";
|
|
7814
7815
|
}
|
|
7815
|
-
const
|
|
7816
|
+
const V = p(), I = window.innerHeight - nt * 2, Q = m.scrollHeight, G = window.getComputedStyle(l), A = parseInt(G.borderTopWidth, 10), D = parseInt(G.paddingTop, 10), P = parseInt(G.borderBottomWidth, 10), ee = parseInt(G.paddingBottom, 10), S = A + D + Q + ee + P, N = 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 = I - ae, we = w.offsetHeight / 2, X = w.offsetTop + we, se = A + D + X, oe = S - se;
|
|
7816
7817
|
if (se <= ae) {
|
|
7817
|
-
const de = w ===
|
|
7818
|
+
const de = w === V[V.length - 1].ref.current;
|
|
7818
7819
|
i.style.bottom = "0px";
|
|
7819
7820
|
const fe = l.clientHeight - m.offsetTop - m.offsetHeight, Re = Math.max(be, we + (de ? le : 0) + fe + P), Me = se + Re;
|
|
7820
7821
|
i.style.height = Me + "px";
|
|
7821
7822
|
} else {
|
|
7822
|
-
const de = w ===
|
|
7823
|
+
const de = w === V[0].ref.current;
|
|
7823
7824
|
i.style.top = "0px";
|
|
7824
7825
|
const Re = Math.max(ae, A + m.offsetTop + (de ? Y : 0) + we) + oe;
|
|
7825
7826
|
i.style.height = Re + "px", m.scrollTop = se - ae + m.offsetTop;
|
|
7826
7827
|
}
|
|
7827
|
-
i.style.margin = `${nt}px 0`, i.style.minHeight =
|
|
7828
|
+
i.style.margin = `${nt}px 0`, i.style.minHeight = N + "px", i.style.maxHeight = I + "px", r?.(), requestAnimationFrame(
|
|
7828
7829
|
() => h.current = !0
|
|
7829
7830
|
);
|
|
7830
7831
|
}
|
|
@@ -7846,32 +7847,32 @@ const Kf = [
|
|
|
7846
7847
|
y
|
|
7847
7848
|
]
|
|
7848
7849
|
);
|
|
7849
|
-
const [
|
|
7850
|
+
const [C, _] = q();
|
|
7850
7851
|
je(() => {
|
|
7851
7852
|
l && _(window.getComputedStyle(l).zIndex);
|
|
7852
7853
|
}, [
|
|
7853
7854
|
l
|
|
7854
7855
|
]);
|
|
7855
|
-
const
|
|
7856
|
+
const M = F((T) => {
|
|
7856
7857
|
T && f.current === !0 && (y(), g?.(), f.current = !1);
|
|
7857
7858
|
}, [
|
|
7858
7859
|
y,
|
|
7859
7860
|
g
|
|
7860
7861
|
]);
|
|
7861
|
-
return /* @__PURE__ */
|
|
7862
|
+
return /* @__PURE__ */ $(cp, {
|
|
7862
7863
|
scope: n,
|
|
7863
7864
|
contentWrapper: i,
|
|
7864
7865
|
shouldExpandOnScrollRef: h,
|
|
7865
|
-
onScrollButtonChange:
|
|
7866
|
-
}, /* @__PURE__ */
|
|
7866
|
+
onScrollButtonChange: M
|
|
7867
|
+
}, /* @__PURE__ */ $("div", {
|
|
7867
7868
|
ref: c,
|
|
7868
7869
|
style: {
|
|
7869
7870
|
display: "flex",
|
|
7870
7871
|
flexDirection: "column",
|
|
7871
7872
|
position: "fixed",
|
|
7872
|
-
zIndex:
|
|
7873
|
+
zIndex: C
|
|
7873
7874
|
}
|
|
7874
|
-
}, /* @__PURE__ */
|
|
7875
|
+
}, /* @__PURE__ */ $(Ee.div, W({}, o, {
|
|
7875
7876
|
ref: u,
|
|
7876
7877
|
style: {
|
|
7877
7878
|
// When we get the height of the content, it includes borders. If we were to set
|
|
@@ -7882,9 +7883,9 @@ const Kf = [
|
|
|
7882
7883
|
...o.style
|
|
7883
7884
|
}
|
|
7884
7885
|
}))));
|
|
7885
|
-
}), $s = /* @__PURE__ */
|
|
7886
|
+
}), $s = /* @__PURE__ */ H((e, t) => {
|
|
7886
7887
|
const { __scopeSelect: n, align: r = "start", collisionPadding: o = nt, ...s } = e, a = bo(n);
|
|
7887
|
-
return /* @__PURE__ */
|
|
7888
|
+
return /* @__PURE__ */ $(uo, W({}, a, s, {
|
|
7888
7889
|
ref: t,
|
|
7889
7890
|
align: r,
|
|
7890
7891
|
collisionPadding: o,
|
|
@@ -7899,15 +7900,15 @@ const Kf = [
|
|
|
7899
7900
|
"--radix-select-trigger-height": "var(--radix-popper-anchor-height)"
|
|
7900
7901
|
}
|
|
7901
7902
|
}));
|
|
7902
|
-
}), [cp, xo] = nn(Yt, {}), Cs = "SelectViewport", lp = /* @__PURE__ */
|
|
7903
|
+
}), [cp, xo] = nn(Yt, {}), Cs = "SelectViewport", lp = /* @__PURE__ */ H((e, t) => {
|
|
7903
7904
|
const { __scopeSelect: n, ...r } = e, o = Pt(Cs, n), s = xo(Cs, n), a = Se(t, o.onViewportChange), i = K(0);
|
|
7904
|
-
return /* @__PURE__ */
|
|
7905
|
+
return /* @__PURE__ */ $(Xt, null, /* @__PURE__ */ $("style", {
|
|
7905
7906
|
dangerouslySetInnerHTML: {
|
|
7906
7907
|
__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
7908
|
}
|
|
7908
|
-
}), /* @__PURE__ */
|
|
7909
|
+
}), /* @__PURE__ */ $(ir.Slot, {
|
|
7909
7910
|
scope: n
|
|
7910
|
-
}, /* @__PURE__ */
|
|
7911
|
+
}, /* @__PURE__ */ $(Ee.div, W({
|
|
7911
7912
|
"data-radix-select-viewport": "",
|
|
7912
7913
|
role: "presentation"
|
|
7913
7914
|
}, r, {
|
|
@@ -7921,7 +7922,7 @@ const Kf = [
|
|
|
7921
7922
|
overflow: "auto",
|
|
7922
7923
|
...r.style
|
|
7923
7924
|
},
|
|
7924
|
-
onScroll:
|
|
7925
|
+
onScroll: J(r.onScroll, (c) => {
|
|
7925
7926
|
const l = c.currentTarget, { contentWrapper: d, shouldExpandOnScrollRef: u } = s;
|
|
7926
7927
|
if (u != null && u.current && d) {
|
|
7927
7928
|
const p = Math.abs(i.current - l.scrollTop);
|
|
@@ -7936,15 +7937,15 @@ const Kf = [
|
|
|
7936
7937
|
i.current = l.scrollTop;
|
|
7937
7938
|
})
|
|
7938
7939
|
}))));
|
|
7939
|
-
}), up = "SelectGroup", [gv, dp] = nn(up), fp = "SelectLabel", pp = /* @__PURE__ */
|
|
7940
|
+
}), up = "SelectGroup", [gv, dp] = nn(up), fp = "SelectLabel", pp = /* @__PURE__ */ H((e, t) => {
|
|
7940
7941
|
const { __scopeSelect: n, ...r } = e, o = dp(fp, n);
|
|
7941
|
-
return /* @__PURE__ */
|
|
7942
|
+
return /* @__PURE__ */ $(Ee.div, W({
|
|
7942
7943
|
id: o.id
|
|
7943
7944
|
}, r, {
|
|
7944
7945
|
ref: t
|
|
7945
7946
|
}));
|
|
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] =
|
|
7947
|
+
}), Vr = "SelectItem", [mp, ka] = nn(Vr), hp = /* @__PURE__ */ H((e, t) => {
|
|
7948
|
+
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] = q(s ?? ""), [p, h] = q(!1), f = Se(t, (b) => {
|
|
7948
7949
|
var g;
|
|
7949
7950
|
return (g = c.itemRefCallback) === null || g === void 0 ? void 0 : g.call(c, b, r, o);
|
|
7950
7951
|
}), m = Kt(), w = () => {
|
|
@@ -7952,7 +7953,7 @@ const Kf = [
|
|
|
7952
7953
|
};
|
|
7953
7954
|
if (r === "")
|
|
7954
7955
|
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__ */
|
|
7956
|
+
return /* @__PURE__ */ $(mp, {
|
|
7956
7957
|
scope: n,
|
|
7957
7958
|
value: r,
|
|
7958
7959
|
disabled: o,
|
|
@@ -7964,12 +7965,12 @@ const Kf = [
|
|
|
7964
7965
|
return g || ((y = b?.textContent) !== null && y !== void 0 ? y : "").trim();
|
|
7965
7966
|
});
|
|
7966
7967
|
}, [])
|
|
7967
|
-
}, /* @__PURE__ */
|
|
7968
|
+
}, /* @__PURE__ */ $(ir.ItemSlot, {
|
|
7968
7969
|
scope: n,
|
|
7969
7970
|
value: r,
|
|
7970
7971
|
disabled: o,
|
|
7971
7972
|
textValue: d
|
|
7972
|
-
}, /* @__PURE__ */
|
|
7973
|
+
}, /* @__PURE__ */ $(Ee.div, W({
|
|
7973
7974
|
role: "option",
|
|
7974
7975
|
"aria-labelledby": m,
|
|
7975
7976
|
"data-highlighted": p ? "" : void 0,
|
|
@@ -7980,16 +7981,16 @@ const Kf = [
|
|
|
7980
7981
|
tabIndex: o ? void 0 : -1
|
|
7981
7982
|
}, a, {
|
|
7982
7983
|
ref: f,
|
|
7983
|
-
onFocus:
|
|
7984
|
+
onFocus: J(
|
|
7984
7985
|
a.onFocus,
|
|
7985
7986
|
() => h(!0)
|
|
7986
7987
|
),
|
|
7987
|
-
onBlur:
|
|
7988
|
+
onBlur: J(
|
|
7988
7989
|
a.onBlur,
|
|
7989
7990
|
() => h(!1)
|
|
7990
7991
|
),
|
|
7991
|
-
onPointerUp:
|
|
7992
|
-
onPointerMove:
|
|
7992
|
+
onPointerUp: J(a.onPointerUp, w),
|
|
7993
|
+
onPointerMove: J(a.onPointerMove, (b) => {
|
|
7993
7994
|
if (o) {
|
|
7994
7995
|
var g;
|
|
7995
7996
|
(g = c.onItemLeave) === null || g === void 0 || g.call(c);
|
|
@@ -7998,19 +7999,19 @@ const Kf = [
|
|
|
7998
7999
|
preventScroll: !0
|
|
7999
8000
|
});
|
|
8000
8001
|
}),
|
|
8001
|
-
onPointerLeave:
|
|
8002
|
+
onPointerLeave: J(a.onPointerLeave, (b) => {
|
|
8002
8003
|
if (b.currentTarget === document.activeElement) {
|
|
8003
8004
|
var g;
|
|
8004
8005
|
(g = c.onItemLeave) === null || g === void 0 || g.call(c);
|
|
8005
8006
|
}
|
|
8006
8007
|
}),
|
|
8007
|
-
onKeyDown:
|
|
8008
|
+
onKeyDown: J(a.onKeyDown, (b) => {
|
|
8008
8009
|
var g;
|
|
8009
8010
|
((g = c.searchRef) === null || g === void 0 ? void 0 : g.current) !== "" && b.key === " " || (Gf.includes(b.key) && w(), b.key === " " && b.preventDefault());
|
|
8010
8011
|
})
|
|
8011
8012
|
}))));
|
|
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] =
|
|
8013
|
+
}), On = "SelectItemText", vp = /* @__PURE__ */ H((e, t) => {
|
|
8014
|
+
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] = q(null), p = Se(
|
|
8014
8015
|
t,
|
|
8015
8016
|
(b) => u(b),
|
|
8016
8017
|
c.onItemTextChange,
|
|
@@ -8019,7 +8020,7 @@ const Kf = [
|
|
|
8019
8020
|
return (g = i.itemTextRefCallback) === null || g === void 0 ? void 0 : g.call(i, b, c.value, c.disabled);
|
|
8020
8021
|
}
|
|
8021
8022
|
), h = d?.textContent, f = ve(
|
|
8022
|
-
() => /* @__PURE__ */
|
|
8023
|
+
() => /* @__PURE__ */ $("option", {
|
|
8023
8024
|
key: c.value,
|
|
8024
8025
|
value: c.value,
|
|
8025
8026
|
disabled: c.disabled
|
|
@@ -8034,20 +8035,20 @@ const Kf = [
|
|
|
8034
8035
|
m,
|
|
8035
8036
|
w,
|
|
8036
8037
|
f
|
|
8037
|
-
]), /* @__PURE__ */
|
|
8038
|
+
]), /* @__PURE__ */ $(Xt, null, /* @__PURE__ */ $(Ee.span, W({
|
|
8038
8039
|
id: c.textId
|
|
8039
8040
|
}, s, {
|
|
8040
8041
|
ref: p
|
|
8041
8042
|
})), c.isSelected && a.valueNode && !a.valueNodeHasChildren ? /* @__PURE__ */ Xr(s.children, a.valueNode) : null);
|
|
8042
|
-
}), gp = "SelectItemIndicator", bp = /* @__PURE__ */
|
|
8043
|
+
}), gp = "SelectItemIndicator", bp = /* @__PURE__ */ H((e, t) => {
|
|
8043
8044
|
const { __scopeSelect: n, ...r } = e;
|
|
8044
|
-
return ka(gp, n).isSelected ? /* @__PURE__ */
|
|
8045
|
+
return ka(gp, n).isSelected ? /* @__PURE__ */ $(Ee.span, W({
|
|
8045
8046
|
"aria-hidden": !0
|
|
8046
8047
|
}, r, {
|
|
8047
8048
|
ref: t
|
|
8048
8049
|
})) : null;
|
|
8049
|
-
}), Ss = "SelectScrollUpButton", xp = /* @__PURE__ */
|
|
8050
|
-
const n = Pt(Ss, e.__scopeSelect), r = xo(Ss, e.__scopeSelect), [o, s] =
|
|
8050
|
+
}), Ss = "SelectScrollUpButton", xp = /* @__PURE__ */ H((e, t) => {
|
|
8051
|
+
const n = Pt(Ss, e.__scopeSelect), r = xo(Ss, e.__scopeSelect), [o, s] = q(!1), a = Se(t, r.onScrollButtonChange);
|
|
8051
8052
|
return je(() => {
|
|
8052
8053
|
if (n.viewport && n.isPositioned) {
|
|
8053
8054
|
let c = function() {
|
|
@@ -8060,15 +8061,15 @@ const Kf = [
|
|
|
8060
8061
|
}, [
|
|
8061
8062
|
n.viewport,
|
|
8062
8063
|
n.isPositioned
|
|
8063
|
-
]), o ? /* @__PURE__ */
|
|
8064
|
+
]), o ? /* @__PURE__ */ $(ja, W({}, e, {
|
|
8064
8065
|
ref: a,
|
|
8065
8066
|
onAutoScroll: () => {
|
|
8066
8067
|
const { viewport: i, selectedItem: c } = n;
|
|
8067
8068
|
i && c && (i.scrollTop = i.scrollTop - c.offsetHeight);
|
|
8068
8069
|
}
|
|
8069
8070
|
})) : null;
|
|
8070
|
-
}), Es = "SelectScrollDownButton", wp = /* @__PURE__ */
|
|
8071
|
-
const n = Pt(Es, e.__scopeSelect), r = xo(Es, e.__scopeSelect), [o, s] =
|
|
8071
|
+
}), Es = "SelectScrollDownButton", wp = /* @__PURE__ */ H((e, t) => {
|
|
8072
|
+
const n = Pt(Es, e.__scopeSelect), r = xo(Es, e.__scopeSelect), [o, s] = q(!1), a = Se(t, r.onScrollButtonChange);
|
|
8072
8073
|
return je(() => {
|
|
8073
8074
|
if (n.viewport && n.isPositioned) {
|
|
8074
8075
|
let c = function() {
|
|
@@ -8081,18 +8082,18 @@ const Kf = [
|
|
|
8081
8082
|
}, [
|
|
8082
8083
|
n.viewport,
|
|
8083
8084
|
n.isPositioned
|
|
8084
|
-
]), o ? /* @__PURE__ */
|
|
8085
|
+
]), o ? /* @__PURE__ */ $(ja, W({}, e, {
|
|
8085
8086
|
ref: a,
|
|
8086
8087
|
onAutoScroll: () => {
|
|
8087
8088
|
const { viewport: i, selectedItem: c } = n;
|
|
8088
8089
|
i && c && (i.scrollTop = i.scrollTop + c.offsetHeight);
|
|
8089
8090
|
}
|
|
8090
8091
|
})) : null;
|
|
8091
|
-
}), ja = /* @__PURE__ */
|
|
8092
|
+
}), ja = /* @__PURE__ */ H((e, t) => {
|
|
8092
8093
|
const { __scopeSelect: n, onAutoScroll: r, ...o } = e, s = Pt("SelectScrollButton", n), a = K(null), i = cr(n), c = F(() => {
|
|
8093
8094
|
a.current !== null && (window.clearInterval(a.current), a.current = null);
|
|
8094
8095
|
}, []);
|
|
8095
|
-
return
|
|
8096
|
+
return Z(() => () => c(), [
|
|
8096
8097
|
c
|
|
8097
8098
|
]), je(() => {
|
|
8098
8099
|
var l;
|
|
@@ -8104,7 +8105,7 @@ const Kf = [
|
|
|
8104
8105
|
});
|
|
8105
8106
|
}, [
|
|
8106
8107
|
i
|
|
8107
|
-
]), /* @__PURE__ */
|
|
8108
|
+
]), /* @__PURE__ */ $(Ee.div, W({
|
|
8108
8109
|
"aria-hidden": !0
|
|
8109
8110
|
}, o, {
|
|
8110
8111
|
ref: t,
|
|
@@ -8112,20 +8113,20 @@ const Kf = [
|
|
|
8112
8113
|
flexShrink: 0,
|
|
8113
8114
|
...o.style
|
|
8114
8115
|
},
|
|
8115
|
-
onPointerDown:
|
|
8116
|
+
onPointerDown: J(o.onPointerDown, () => {
|
|
8116
8117
|
a.current === null && (a.current = window.setInterval(r, 50));
|
|
8117
8118
|
}),
|
|
8118
|
-
onPointerMove:
|
|
8119
|
+
onPointerMove: J(o.onPointerMove, () => {
|
|
8119
8120
|
var l;
|
|
8120
8121
|
(l = s.onItemLeave) === null || l === void 0 || l.call(s), a.current === null && (a.current = window.setInterval(r, 50));
|
|
8121
8122
|
}),
|
|
8122
|
-
onPointerLeave:
|
|
8123
|
+
onPointerLeave: J(o.onPointerLeave, () => {
|
|
8123
8124
|
c();
|
|
8124
8125
|
})
|
|
8125
8126
|
}));
|
|
8126
|
-
}), yp = /* @__PURE__ */
|
|
8127
|
+
}), yp = /* @__PURE__ */ H((e, t) => {
|
|
8127
8128
|
const { __scopeSelect: n, ...r } = e;
|
|
8128
|
-
return /* @__PURE__ */
|
|
8129
|
+
return /* @__PURE__ */ $(Ee.div, W({
|
|
8129
8130
|
"aria-hidden": !0
|
|
8130
8131
|
}, r, {
|
|
8131
8132
|
ref: t
|
|
@@ -8134,9 +8135,9 @@ const Kf = [
|
|
|
8134
8135
|
function La(e) {
|
|
8135
8136
|
return e === "" || e === void 0;
|
|
8136
8137
|
}
|
|
8137
|
-
const Fa = /* @__PURE__ */
|
|
8138
|
+
const Fa = /* @__PURE__ */ H((e, t) => {
|
|
8138
8139
|
const { value: n, ...r } = e, o = K(null), s = Se(t, o), a = of(n);
|
|
8139
|
-
return
|
|
8140
|
+
return Z(() => {
|
|
8140
8141
|
const i = o.current, c = window.HTMLSelectElement.prototype, d = Object.getOwnPropertyDescriptor(c, "value").set;
|
|
8141
8142
|
if (a !== n && d) {
|
|
8142
8143
|
const u = new Event("change", {
|
|
@@ -8147,9 +8148,9 @@ const Fa = /* @__PURE__ */ W((e, t) => {
|
|
|
8147
8148
|
}, [
|
|
8148
8149
|
a,
|
|
8149
8150
|
n
|
|
8150
|
-
]), /* @__PURE__ */
|
|
8151
|
+
]), /* @__PURE__ */ $(ya, {
|
|
8151
8152
|
asChild: !0
|
|
8152
|
-
}, /* @__PURE__ */
|
|
8153
|
+
}, /* @__PURE__ */ $("select", W({}, r, {
|
|
8153
8154
|
ref: s,
|
|
8154
8155
|
defaultValue: n
|
|
8155
8156
|
})));
|
|
@@ -8169,7 +8170,7 @@ function Va(e) {
|
|
|
8169
8170
|
]), s = F(() => {
|
|
8170
8171
|
n.current = "", window.clearTimeout(r.current);
|
|
8171
8172
|
}, []);
|
|
8172
|
-
return
|
|
8173
|
+
return Z(() => () => window.clearTimeout(r.current), []), [
|
|
8173
8174
|
n,
|
|
8174
8175
|
o,
|
|
8175
8176
|
s
|
|
@@ -8193,7 +8194,7 @@ function $p(e, t) {
|
|
|
8193
8194
|
(n, r) => e[(t + r) % e.length]
|
|
8194
8195
|
);
|
|
8195
8196
|
}
|
|
8196
|
-
const Cp = Jf, za = ep, Sp = np, Ep = rp, _p = op, Wa = sp, Tp = lp, Ha = pp, Ua = hp, Rp = vp, Pp = bp, Ka = xp, Ga = wp, Ya = yp, Xa = Cp, qa = Sp, wo =
|
|
8197
|
+
const Cp = Jf, za = ep, Sp = np, Ep = rp, _p = op, Wa = sp, Tp = lp, Ha = pp, Ua = hp, Rp = vp, Pp = bp, Ka = xp, Ga = wp, Ya = yp, Xa = Cp, qa = Sp, wo = z.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ v.jsxs(
|
|
8197
8198
|
za,
|
|
8198
8199
|
{
|
|
8199
8200
|
ref: r,
|
|
@@ -8209,7 +8210,7 @@ const Cp = Jf, za = ep, Sp = np, Ep = rp, _p = op, Wa = sp, Tp = lp, Ha = pp, Ua
|
|
|
8209
8210
|
}
|
|
8210
8211
|
));
|
|
8211
8212
|
wo.displayName = za.displayName;
|
|
8212
|
-
const Za =
|
|
8213
|
+
const Za = z.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v.jsx(
|
|
8213
8214
|
Ka,
|
|
8214
8215
|
{
|
|
8215
8216
|
ref: n,
|
|
@@ -8219,7 +8220,7 @@ const Za = B.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v.jsx(
|
|
|
8219
8220
|
}
|
|
8220
8221
|
));
|
|
8221
8222
|
Za.displayName = Ka.displayName;
|
|
8222
|
-
const Ja =
|
|
8223
|
+
const Ja = z.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v.jsx(
|
|
8223
8224
|
Ga,
|
|
8224
8225
|
{
|
|
8225
8226
|
ref: n,
|
|
@@ -8229,7 +8230,7 @@ const Ja = B.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v.jsx(
|
|
|
8229
8230
|
}
|
|
8230
8231
|
));
|
|
8231
8232
|
Ja.displayName = Ga.displayName;
|
|
8232
|
-
const yo =
|
|
8233
|
+
const yo = z.forwardRef(({ className: e, children: t, position: n = "popper", ...r }, o) => /* @__PURE__ */ v.jsx(_p, { children: /* @__PURE__ */ v.jsxs(
|
|
8233
8234
|
Wa,
|
|
8234
8235
|
{
|
|
8235
8236
|
ref: o,
|
|
@@ -8257,7 +8258,7 @@ const yo = B.forwardRef(({ className: e, children: t, position: n = "popper", ..
|
|
|
8257
8258
|
}
|
|
8258
8259
|
) }));
|
|
8259
8260
|
yo.displayName = Wa.displayName;
|
|
8260
|
-
const Op =
|
|
8261
|
+
const Op = z.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v.jsx(
|
|
8261
8262
|
Ha,
|
|
8262
8263
|
{
|
|
8263
8264
|
ref: n,
|
|
@@ -8266,7 +8267,7 @@ const Op = B.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v.jsx(
|
|
|
8266
8267
|
}
|
|
8267
8268
|
));
|
|
8268
8269
|
Op.displayName = Ha.displayName;
|
|
8269
|
-
const Xn =
|
|
8270
|
+
const Xn = z.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ v.jsxs(
|
|
8270
8271
|
Ua,
|
|
8271
8272
|
{
|
|
8272
8273
|
ref: r,
|
|
@@ -8282,7 +8283,7 @@ const Xn = B.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__
|
|
|
8282
8283
|
}
|
|
8283
8284
|
));
|
|
8284
8285
|
Xn.displayName = Ua.displayName;
|
|
8285
|
-
const Np =
|
|
8286
|
+
const Np = z.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v.jsx(
|
|
8286
8287
|
Ya,
|
|
8287
8288
|
{
|
|
8288
8289
|
ref: n,
|
|
@@ -8402,8 +8403,8 @@ function Ap(e) {
|
|
|
8402
8403
|
);
|
|
8403
8404
|
}
|
|
8404
8405
|
function kp(e) {
|
|
8405
|
-
const [t, n] =
|
|
8406
|
-
return
|
|
8406
|
+
const [t, n] = q(!1);
|
|
8407
|
+
return Z(() => {
|
|
8407
8408
|
const r = e.current;
|
|
8408
8409
|
let o = !1;
|
|
8409
8410
|
r && (r.contains(document.activeElement) && document.activeElement instanceof HTMLInputElement ? o = !0 : o = !1), n(o);
|
|
@@ -8411,7 +8412,7 @@ function kp(e) {
|
|
|
8411
8412
|
}
|
|
8412
8413
|
function Br(e, t = !1) {
|
|
8413
8414
|
const n = kp(e);
|
|
8414
|
-
|
|
8415
|
+
Z(() => {
|
|
8415
8416
|
t || n && e.current?.select();
|
|
8416
8417
|
}, [n, t, e.current]);
|
|
8417
8418
|
}
|
|
@@ -8575,8 +8576,8 @@ function Kp(e) {
|
|
|
8575
8576
|
}
|
|
8576
8577
|
function Gp(e, t, n, r, o, s, a) {
|
|
8577
8578
|
a === void 0 && (a = Kp);
|
|
8578
|
-
var i = o.findIndex(function(
|
|
8579
|
-
return
|
|
8579
|
+
var i = o.findIndex(function(C) {
|
|
8580
|
+
return C;
|
|
8580
8581
|
}), c = e.slice(0, i);
|
|
8581
8582
|
!t && !n.startsWith(c) && (t = c, n = c + n, r = r + c.length);
|
|
8582
8583
|
for (var l = n.length, d = e.length, u = {}, p = new Array(l), h = 0; h < l; h++) {
|
|
@@ -8628,7 +8629,7 @@ function si(e, t, n, r, o, s) {
|
|
|
8628
8629
|
var a = Bp(function(f, m) {
|
|
8629
8630
|
var w, b;
|
|
8630
8631
|
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 =
|
|
8632
|
+
}), i = q(function() {
|
|
8632
8633
|
return a(Vt(e) ? t : e, n);
|
|
8633
8634
|
}), c = i[0], l = i[1], d = function(f, m) {
|
|
8634
8635
|
f.formattedValue !== c.formattedValue && l({
|
|
@@ -8671,13 +8672,13 @@ function Zp(e) {
|
|
|
8671
8672
|
g === void 0 && (g = Yp);
|
|
8672
8673
|
var y = e.isValidInputCharacter;
|
|
8673
8674
|
y === void 0 && (y = vn);
|
|
8674
|
-
var
|
|
8675
|
-
|
|
8676
|
-
}, Q =
|
|
8675
|
+
var C = e.isCharacterSame, _ = Qa(e, ["type", "displayType", "customInput", "renderText", "getInputRef", "format", "removeFormatting", "defaultValue", "valueIsNumericString", "onValueChange", "isAllowed", "onChange", "onKeyDown", "onMouseUp", "onFocus", "onBlur", "value", "getCaretBoundary", "isValidInputCharacter", "isCharacterSame"]), M = si(b, c, !!l, a, i, d), T = M[0], E = T.formattedValue, k = T.numAsString, O = M[1], V = K({ formattedValue: E, numAsString: k }), I = function(L, U) {
|
|
8676
|
+
V.current = { formattedValue: L.formattedValue, numAsString: L.value }, O(L, U);
|
|
8677
|
+
}, Q = q(!1), G = Q[0], A = Q[1], D = K(null), P = K({
|
|
8677
8678
|
setCaretTimeout: null,
|
|
8678
8679
|
focusTimeout: null
|
|
8679
8680
|
});
|
|
8680
|
-
|
|
8681
|
+
Z(function() {
|
|
8681
8682
|
return A(!0), function() {
|
|
8682
8683
|
clearTimeout(P.current.setCaretTimeout), clearTimeout(P.current.focusTimeout);
|
|
8683
8684
|
};
|
|
@@ -8689,14 +8690,14 @@ function Zp(e) {
|
|
|
8689
8690
|
value: U,
|
|
8690
8691
|
floatValue: isNaN(re) ? void 0 : re
|
|
8691
8692
|
};
|
|
8692
|
-
},
|
|
8693
|
+
}, N = function(L, U, re) {
|
|
8693
8694
|
L.selectionStart === 0 && L.selectionEnd === L.value.length || (St(L, U), P.current.setCaretTimeout = setTimeout(function() {
|
|
8694
8695
|
L.value === re && L.selectionStart !== U && St(L, U);
|
|
8695
8696
|
}, 0));
|
|
8696
8697
|
}, j = function(L, U, re) {
|
|
8697
8698
|
return Rs(L, U, g(L), re);
|
|
8698
8699
|
}, Y = function(L, U, re) {
|
|
8699
|
-
var $e = g(U), Pe = Gp(U, E, L, re, $e, y,
|
|
8700
|
+
var $e = g(U), Pe = Gp(U, E, L, re, $e, y, C);
|
|
8700
8701
|
return Pe = Rs(U, Pe, $e), Pe;
|
|
8701
8702
|
}, le = function(L) {
|
|
8702
8703
|
var U = L.formattedValue;
|
|
@@ -8704,30 +8705,30 @@ function Zp(e) {
|
|
|
8704
8705
|
var re = L.input, $e = L.source, Pe = L.event, he = L.numAsString, me;
|
|
8705
8706
|
if (re) {
|
|
8706
8707
|
var De = L.inputValue || re.value, $t = _r(re);
|
|
8707
|
-
re.value = U, me = Y(De, U, $t), me !== void 0 &&
|
|
8708
|
+
re.value = U, me = Y(De, U, $t), me !== void 0 && N(re, me, U);
|
|
8708
8709
|
}
|
|
8709
|
-
U !== E &&
|
|
8710
|
+
U !== E && I(S(U, he), { event: Pe, source: $e });
|
|
8710
8711
|
};
|
|
8711
|
-
|
|
8712
|
-
var L =
|
|
8713
|
-
E !== U && (E !==
|
|
8712
|
+
Z(function() {
|
|
8713
|
+
var L = V.current, U = L.formattedValue, re = L.numAsString;
|
|
8714
|
+
E !== U && (E !== k || U !== re) && I(S(E, k), {
|
|
8714
8715
|
event: void 0,
|
|
8715
8716
|
source: hn.props
|
|
8716
8717
|
});
|
|
8717
|
-
}, [E,
|
|
8718
|
-
var ae =
|
|
8718
|
+
}, [E, k]);
|
|
8719
|
+
var ae = D.current ? _r(D.current) : void 0, be = typeof window < "u" ? Yr : Z;
|
|
8719
8720
|
be(function() {
|
|
8720
|
-
var L =
|
|
8721
|
-
if (E !==
|
|
8722
|
-
var U = Y(
|
|
8723
|
-
L.value = E,
|
|
8721
|
+
var L = D.current;
|
|
8722
|
+
if (E !== V.current.formattedValue && L) {
|
|
8723
|
+
var U = Y(V.current.formattedValue, E, ae);
|
|
8724
|
+
L.value = E, N(L, U, E);
|
|
8724
8725
|
}
|
|
8725
8726
|
}, [E]);
|
|
8726
8727
|
var we = function(L, U, re) {
|
|
8727
8728
|
var $e = oi(E, L), Pe = Object.assign(Object.assign({}, $e), { lastValue: E }), he = i(L, Pe), me = ee(he);
|
|
8728
8729
|
if (he = i(me, void 0), u && !u(S(me, he))) {
|
|
8729
8730
|
var De = U.target, $t = _r(De), dr = Y(L, E, $t);
|
|
8730
|
-
return De.value = E,
|
|
8731
|
+
return De.value = E, N(De, dr, E), !1;
|
|
8731
8732
|
}
|
|
8732
8733
|
return le({
|
|
8733
8734
|
formattedValue: me,
|
|
@@ -8754,13 +8755,13 @@ function Zp(e) {
|
|
|
8754
8755
|
De = j(he, me, $t), De !== me && L.preventDefault();
|
|
8755
8756
|
} else
|
|
8756
8757
|
re === "Delete" && !y(he[me]) ? De = j(he, me, "right") : re === "Backspace" && !y(he[me]) && (De = j(he, me, "left"));
|
|
8757
|
-
De !== me &&
|
|
8758
|
+
De !== me && N(U, De, he), L.isUnitTestRun && N(U, De, he), h(L);
|
|
8758
8759
|
}, oe = function(L) {
|
|
8759
8760
|
var U = L.target, re = function() {
|
|
8760
8761
|
var $e = U.selectionStart, Pe = U.selectionEnd, he = U.value;
|
|
8761
8762
|
if (he === void 0 && (he = ""), $e === Pe) {
|
|
8762
8763
|
var me = j(he, $e);
|
|
8763
|
-
me !== $e &&
|
|
8764
|
+
me !== $e && N(U, me, he);
|
|
8764
8765
|
}
|
|
8765
8766
|
};
|
|
8766
8767
|
re(), requestAnimationFrame(function() {
|
|
@@ -8769,14 +8770,14 @@ function Zp(e) {
|
|
|
8769
8770
|
}, ce = function(L) {
|
|
8770
8771
|
L.persist && L.persist();
|
|
8771
8772
|
var U = L.target, re = L.currentTarget;
|
|
8772
|
-
|
|
8773
|
+
D.current = U, P.current.focusTimeout = setTimeout(function() {
|
|
8773
8774
|
var $e = U.selectionStart, Pe = U.selectionEnd, he = U.value;
|
|
8774
8775
|
he === void 0 && (he = "");
|
|
8775
8776
|
var me = j(he, $e);
|
|
8776
|
-
me !== $e && !($e === 0 && Pe === he.length) &&
|
|
8777
|
+
me !== $e && !($e === 0 && Pe === he.length) && N(U, me, he), m(Object.assign(Object.assign({}, L), { currentTarget: re }));
|
|
8777
8778
|
}, 0);
|
|
8778
8779
|
}, de = function(L) {
|
|
8779
|
-
|
|
8780
|
+
D.current = null, clearTimeout(P.current.focusTimeout), clearTimeout(P.current.setCaretTimeout), w(L);
|
|
8780
8781
|
}, fe = G && Hp() ? "numeric" : void 0, Re = Object.assign({ inputMode: fe }, _, {
|
|
8781
8782
|
type: t,
|
|
8782
8783
|
value: E,
|
|
@@ -8841,24 +8842,24 @@ function tm(e, t, n) {
|
|
|
8841
8842
|
e = e.substring(0, d) + w + e.substring(d + 1, e.length);
|
|
8842
8843
|
}
|
|
8843
8844
|
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:
|
|
8845
|
+
var N = !1, j = !1;
|
|
8846
|
+
s.startsWith("-") ? N = !1 : P.startsWith("--") ? (N = !1, j = !0) : a.startsWith("-") && P.length === a.length ? N = !1 : P[0] === "-" && (N = !0);
|
|
8847
|
+
var Y = N ? 1 : 0;
|
|
8848
|
+
return j && (Y = 2), Y && (P = P.substring(Y), ee -= Y, S -= Y), { value: P, start: ee, end: S, hasNegation: N };
|
|
8848
8849
|
}, g = b(e, d, u), y = g.hasNegation;
|
|
8849
8850
|
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) ?
|
|
8856
|
-
var
|
|
8851
|
+
var C = b(t.lastValue, c.start, c.end), _ = C.start, M = C.end, T = C.value, E = e.substring(d, u);
|
|
8852
|
+
e.length && T.length && (_ > T.length - a.length || M < s.length) && !(E && a.startsWith(E)) && (e = T);
|
|
8853
|
+
var k = 0;
|
|
8854
|
+
e.startsWith(s) ? k += s.length : d < s.length && (k = d), e = e.substring(k), u -= k;
|
|
8855
|
+
var O = e.length, V = e.length - a.length;
|
|
8856
|
+
e.endsWith(a) ? O = V : (u > V || u > e.length - a.length) && (O = u), e = e.substring(0, O), e = Jp(y ? "-" + e : e, o), e = (e.match(Qp(f)) || []).join("");
|
|
8857
|
+
var I = e.indexOf(f);
|
|
8857
8858
|
e = e.replace(new RegExp(ti(f), "g"), function(P, ee) {
|
|
8858
|
-
return ee ===
|
|
8859
|
+
return ee === I ? "." : "";
|
|
8859
8860
|
});
|
|
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 =
|
|
8861
|
+
var Q = $o(e, o), G = Q.beforeDecimal, A = Q.afterDecimal, D = Q.addNegation;
|
|
8862
|
+
return l.end - l.start < c.end - c.start && G === "" && m && !parseFloat(A) && (e = D ? "-" : ""), e;
|
|
8862
8863
|
}
|
|
8863
8864
|
function nm(e, t) {
|
|
8864
8865
|
var n = t.prefix;
|
|
@@ -8896,55 +8897,55 @@ function om(e) {
|
|
|
8896
8897
|
s === void 0 && (s = gt);
|
|
8897
8898
|
var a = e.thousandSeparator, i = e.decimalScale, c = e.fixedDecimalScale, l = e.prefix;
|
|
8898
8899
|
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
|
-
},
|
|
8900
|
+
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(D) {
|
|
8901
|
+
return Ps(D, e);
|
|
8902
|
+
}, y = function(D, P) {
|
|
8903
|
+
return tm(D, P, e);
|
|
8904
|
+
}, C = Vt(u) ? d : u, _ = p ?? em(C, l, t);
|
|
8904
8905
|
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(
|
|
8906
|
+
var M = function(D) {
|
|
8907
|
+
return ei(D) ? D : (typeof D == "number" && (D = ri(D)), _ && typeof i == "number" ? Ts(D, i, !!c) : D);
|
|
8908
|
+
}, T = si(M(u), M(d), !!_, g, y, h), E = T[0], k = E.numAsString, O = E.formattedValue, V = T[1], I = function(D) {
|
|
8909
|
+
var P = D.target, ee = D.key, S = P.selectionStart, N = P.selectionEnd, j = P.value;
|
|
8910
|
+
if (j === void 0 && (j = ""), S !== N) {
|
|
8911
|
+
o(D);
|
|
8911
8912
|
return;
|
|
8912
8913
|
}
|
|
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),
|
|
8914
|
+
ee === "Backspace" && j[0] === "-" && S === l.length + 1 && n && St(P, 1), i && c && (ee === "Backspace" && j[S - 1] === w ? (St(P, S - 1), D.preventDefault()) : ee === "Delete" && j[S] === w && D.preventDefault()), b?.includes(ee) && j[S] === w && St(P, S + 1);
|
|
8914
8915
|
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 !==
|
|
8916
|
+
ee === "Backspace" && j[S - 1] === Y && St(P, S - 1), ee === "Delete" && j[S] === Y && St(P, S + 1), o(D);
|
|
8917
|
+
}, Q = function(D) {
|
|
8918
|
+
var P = k;
|
|
8919
|
+
if (P.match(/\d/g) || (P = ""), r || (P = zp(P)), c && i && (P = Ts(P, i, c)), P !== k) {
|
|
8919
8920
|
var ee = Ps(P, e);
|
|
8920
|
-
|
|
8921
|
+
V({
|
|
8921
8922
|
formattedValue: ee,
|
|
8922
8923
|
value: P,
|
|
8923
8924
|
floatValue: parseFloat(P)
|
|
8924
8925
|
}, {
|
|
8925
|
-
event:
|
|
8926
|
+
event: D,
|
|
8926
8927
|
source: hn.event
|
|
8927
8928
|
});
|
|
8928
8929
|
}
|
|
8929
|
-
s(
|
|
8930
|
-
}, G = function(
|
|
8931
|
-
return
|
|
8932
|
-
}, A = function(
|
|
8933
|
-
var P =
|
|
8934
|
-
return
|
|
8930
|
+
s(D);
|
|
8931
|
+
}, G = function(D) {
|
|
8932
|
+
return D === w ? !0 : vn(D);
|
|
8933
|
+
}, A = function(D) {
|
|
8934
|
+
var P = D.currentValue, ee = D.lastValue, S = D.formattedValue, N = D.currentValueIndex, j = D.formattedValueIndex, Y = P[N], le = S[j], ae = oi(ee, P), be = ae.to;
|
|
8935
|
+
return N >= be.start && N < be.end && b && b.includes(Y) && le === w ? !0 : Y === le;
|
|
8935
8936
|
};
|
|
8936
8937
|
return Object.assign(Object.assign({}, f), {
|
|
8937
|
-
value:
|
|
8938
|
+
value: O,
|
|
8938
8939
|
valueIsNumericString: !1,
|
|
8939
8940
|
isValidInputCharacter: G,
|
|
8940
8941
|
isCharacterSame: A,
|
|
8941
|
-
onValueChange:
|
|
8942
|
+
onValueChange: V,
|
|
8942
8943
|
format: g,
|
|
8943
8944
|
removeFormatting: y,
|
|
8944
|
-
getCaretBoundary: function(
|
|
8945
|
-
return nm(
|
|
8945
|
+
getCaretBoundary: function(D) {
|
|
8946
|
+
return nm(D, e);
|
|
8946
8947
|
},
|
|
8947
|
-
onKeyDown:
|
|
8948
|
+
onKeyDown: I,
|
|
8948
8949
|
onBlur: Q
|
|
8949
8950
|
});
|
|
8950
8951
|
}
|
|
@@ -8971,17 +8972,17 @@ function am(e, t) {
|
|
|
8971
8972
|
} = e, w = ".", b = ",", g = cm({
|
|
8972
8973
|
dataEditorType: r,
|
|
8973
8974
|
decimalScale: l?.numeric?.decimalScale
|
|
8974
|
-
}), y = l?.numeric?.allowNegative,
|
|
8975
|
-
({ value:
|
|
8976
|
-
const
|
|
8977
|
-
a?.(
|
|
8975
|
+
}), y = l?.numeric?.allowNegative, C = l?.numeric?.min, _ = l?.numeric?.max, M = r === "Currency" ? "R$ " : "", T = r === "Percentage" ? "%" : "", [E, k] = q(u), O = F(
|
|
8976
|
+
({ value: V }) => {
|
|
8977
|
+
const I = Or({ value: V, min: C, max: _ });
|
|
8978
|
+
a?.(I), k(I);
|
|
8978
8979
|
},
|
|
8979
|
-
[a,
|
|
8980
|
+
[a, C, _]
|
|
8980
8981
|
);
|
|
8981
|
-
return
|
|
8982
|
-
const
|
|
8983
|
-
|
|
8984
|
-
}, [u,
|
|
8982
|
+
return Z(() => {
|
|
8983
|
+
const V = Or({ value: u, min: C, max: _ });
|
|
8984
|
+
k(V);
|
|
8985
|
+
}, [u, C, _]), /* @__PURE__ */ v.jsx(
|
|
8985
8986
|
sm,
|
|
8986
8987
|
{
|
|
8987
8988
|
...m,
|
|
@@ -8989,7 +8990,7 @@ function am(e, t) {
|
|
|
8989
8990
|
tabIndex: f,
|
|
8990
8991
|
value: E,
|
|
8991
8992
|
onPaste: c,
|
|
8992
|
-
prefix:
|
|
8993
|
+
prefix: M,
|
|
8993
8994
|
suffix: T,
|
|
8994
8995
|
fixedDecimalScale: !0,
|
|
8995
8996
|
onBlur: s,
|
|
@@ -8998,7 +8999,7 @@ function am(e, t) {
|
|
|
8998
8999
|
onFocus: o,
|
|
8999
9000
|
onClick: i,
|
|
9000
9001
|
decimalScale: g,
|
|
9001
|
-
onValueChange:
|
|
9002
|
+
onValueChange: O,
|
|
9002
9003
|
allowNegative: y,
|
|
9003
9004
|
decimalSeparator: b,
|
|
9004
9005
|
thousandSeparator: w,
|
|
@@ -9018,7 +9019,7 @@ function cm(e) {
|
|
|
9018
9019
|
let r = n;
|
|
9019
9020
|
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
9021
|
}
|
|
9021
|
-
const ai =
|
|
9022
|
+
const ai = H(am);
|
|
9022
9023
|
function lm(e) {
|
|
9023
9024
|
const {
|
|
9024
9025
|
mode: t,
|
|
@@ -9030,28 +9031,28 @@ function lm(e) {
|
|
|
9030
9031
|
column: i,
|
|
9031
9032
|
coordinates: c,
|
|
9032
9033
|
testid: l = "numeric-data-editor"
|
|
9033
|
-
} = e, d = K(null), u = F(
|
|
9034
|
-
(
|
|
9035
|
-
|
|
9034
|
+
} = e, d = K(null), [u, p] = q(!1), h = F(
|
|
9035
|
+
(w) => {
|
|
9036
|
+
w.preventDefault(), s?.(w);
|
|
9036
9037
|
},
|
|
9037
9038
|
[s]
|
|
9038
|
-
),
|
|
9039
|
+
), f = F(() => {
|
|
9039
9040
|
r?.(), a?.("view");
|
|
9040
|
-
}, [r, a]),
|
|
9041
|
-
(
|
|
9042
|
-
o?.({ data:
|
|
9041
|
+
}, [r, a]), m = F(
|
|
9042
|
+
(w) => {
|
|
9043
|
+
o?.({ data: w }), p(!0);
|
|
9043
9044
|
},
|
|
9044
9045
|
[o]
|
|
9045
9046
|
);
|
|
9046
|
-
return Br(d), /* @__PURE__ */ v.jsx(
|
|
9047
|
+
return Br(d, u), /* @__PURE__ */ v.jsx(
|
|
9047
9048
|
ai,
|
|
9048
9049
|
{
|
|
9049
9050
|
ref: d,
|
|
9050
9051
|
dataEditorType: i.dataEditorType,
|
|
9051
9052
|
value: n,
|
|
9052
|
-
onPaste:
|
|
9053
|
-
onBlur:
|
|
9054
|
-
onChange:
|
|
9053
|
+
onPaste: h,
|
|
9054
|
+
onBlur: f,
|
|
9055
|
+
onChange: m,
|
|
9055
9056
|
settings: i.settings,
|
|
9056
9057
|
dataCypress: `table-cell-numeric-${i.id}-${c.row}`,
|
|
9057
9058
|
"aria-readonly": t === "readonly",
|
|
@@ -9153,40 +9154,40 @@ const ci = Bt({}), mm = ({ children: e }) => {
|
|
|
9153
9154
|
return /* @__PURE__ */ v.jsx(ci.Provider, { value: { portalRef: t }, children: Ne.cloneElement(e, { ref: t }) });
|
|
9154
9155
|
}, hm = () => wn(ci);
|
|
9155
9156
|
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
|
-
|
|
9157
|
+
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] = q(0), w = ve(() => ii(u, n), [u, n]), b = K(null), [g, y] = q(null), [C, _] = q(!1);
|
|
9158
|
+
Z(() => {
|
|
9158
9159
|
if (b.current && w) {
|
|
9159
|
-
const { top:
|
|
9160
|
+
const { top: O, left: V } = b.current.getBoundingClientRect();
|
|
9160
9161
|
d?.current ? y({
|
|
9161
|
-
top:
|
|
9162
|
-
left:
|
|
9163
|
-
}) : y({ top:
|
|
9162
|
+
top: O - d.current.getBoundingClientRect().top + window.scrollY,
|
|
9163
|
+
left: V - d.current.getBoundingClientRect().left + window.scrollX
|
|
9164
|
+
}) : y({ top: O + window.scrollY, left: V + window.scrollX });
|
|
9164
9165
|
}
|
|
9165
|
-
}, [w, d?.current]),
|
|
9166
|
-
g &&
|
|
9166
|
+
}, [w, d?.current]), Z(() => {
|
|
9167
|
+
g && M();
|
|
9167
9168
|
}, [g]);
|
|
9168
|
-
const
|
|
9169
|
-
const
|
|
9170
|
-
if (!
|
|
9169
|
+
const M = F(() => {
|
|
9170
|
+
const O = h.current;
|
|
9171
|
+
if (!O)
|
|
9171
9172
|
return;
|
|
9172
|
-
const
|
|
9173
|
-
|
|
9174
|
-
}, []),
|
|
9175
|
-
(
|
|
9176
|
-
|
|
9173
|
+
const V = O.scrollHeight;
|
|
9174
|
+
O.style.height = `${V}px`, m(V);
|
|
9175
|
+
}, []), T = F(
|
|
9176
|
+
(O) => {
|
|
9177
|
+
O.stopPropagation(), M();
|
|
9177
9178
|
},
|
|
9178
|
-
[
|
|
9179
|
-
),
|
|
9179
|
+
[M]
|
|
9180
|
+
), E = F(() => {
|
|
9180
9181
|
o?.(), a?.("view");
|
|
9181
|
-
}, [o, a]),
|
|
9182
|
-
(
|
|
9183
|
-
s?.({ data:
|
|
9182
|
+
}, [o, a]), k = F(
|
|
9183
|
+
(O) => {
|
|
9184
|
+
s?.({ data: O.target.value }), _(!0), M();
|
|
9184
9185
|
},
|
|
9185
|
-
[
|
|
9186
|
+
[M, s]
|
|
9186
9187
|
);
|
|
9187
|
-
return
|
|
9188
|
-
|
|
9189
|
-
}, [
|
|
9188
|
+
return Z(() => {
|
|
9189
|
+
M();
|
|
9190
|
+
}, [M]), Br(p, C), Br(h, C), w ? /* @__PURE__ */ v.jsx("div", { className: "-sl-left-0.5 -sl-top-0.5 sl-z-0", ref: b, children: g && Xr(
|
|
9190
9191
|
/* @__PURE__ */ v.jsx(
|
|
9191
9192
|
"div",
|
|
9192
9193
|
{
|
|
@@ -9209,14 +9210,14 @@ function vm(e) {
|
|
|
9209
9210
|
"textarea",
|
|
9210
9211
|
{
|
|
9211
9212
|
ref: h,
|
|
9212
|
-
onBlur:
|
|
9213
|
-
onPaste:
|
|
9213
|
+
onBlur: E,
|
|
9214
|
+
onPaste: T,
|
|
9214
9215
|
value: u,
|
|
9215
|
-
onChange:
|
|
9216
|
+
onChange: k,
|
|
9216
9217
|
className: ne(
|
|
9217
9218
|
"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
9219
|
),
|
|
9219
|
-
onFocus: (
|
|
9220
|
+
onFocus: (O) => pm(O.target),
|
|
9220
9221
|
maxLength: Ln,
|
|
9221
9222
|
style: { width: n },
|
|
9222
9223
|
"data-cypress": `table-cell-string-${i.id}-${l.row}`,
|
|
@@ -9233,11 +9234,11 @@ function vm(e) {
|
|
|
9233
9234
|
"input",
|
|
9234
9235
|
{
|
|
9235
9236
|
ref: p,
|
|
9236
|
-
onBlur:
|
|
9237
|
-
onPaste:
|
|
9237
|
+
onBlur: E,
|
|
9238
|
+
onPaste: T,
|
|
9238
9239
|
value: u,
|
|
9239
9240
|
maxLength: Ln,
|
|
9240
|
-
onChange:
|
|
9241
|
+
onChange: k,
|
|
9241
9242
|
className: ne("sl-h-full sl-w-full sl-bg-transparent sl-pl-1 sl-text-sm sl-outline-none"),
|
|
9242
9243
|
"data-cypress": `table-cell-string-${i.id}-${l.row}`,
|
|
9243
9244
|
"aria-readonly": t === "readonly",
|
|
@@ -9297,7 +9298,7 @@ const et = {
|
|
|
9297
9298
|
Select: fm
|
|
9298
9299
|
}, bm = ["Boolean", "Select", "String"];
|
|
9299
9300
|
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] =
|
|
9301
|
+
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] = q(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]), C = ve(
|
|
9301
9302
|
() => ({
|
|
9302
9303
|
dataEditor: {
|
|
9303
9304
|
coordinates: r,
|
|
@@ -9307,8 +9308,8 @@ function xm(e) {
|
|
|
9307
9308
|
selected: g,
|
|
9308
9309
|
mode: f,
|
|
9309
9310
|
width: n,
|
|
9310
|
-
onPaste: (
|
|
9311
|
-
onChange: ({ data:
|
|
9311
|
+
onPaste: (O) => i(r, O),
|
|
9312
|
+
onChange: ({ data: O }) => a({ data: O, point: r })
|
|
9312
9313
|
},
|
|
9313
9314
|
dataViewer: {
|
|
9314
9315
|
coordinates: r,
|
|
@@ -9323,49 +9324,51 @@ function xm(e) {
|
|
|
9323
9324
|
[r, n, f, t, b, g, i, a, r]
|
|
9324
9325
|
), _ = ve(
|
|
9325
9326
|
() => ({
|
|
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, {
|
|
9327
|
+
Date: /* @__PURE__ */ v.jsx(et.Date, { ...C.dataEditor }),
|
|
9328
|
+
String: /* @__PURE__ */ v.jsx(et.Text, { ...C.dataEditor }),
|
|
9329
|
+
Currency: /* @__PURE__ */ v.jsx(et.Numeric, { ...C.dataEditor }),
|
|
9330
|
+
Decimal: /* @__PURE__ */ v.jsx(et.Numeric, { ...C.dataEditor }),
|
|
9331
|
+
Float: /* @__PURE__ */ v.jsx(et.Numeric, { ...C.dataEditor }),
|
|
9332
|
+
Integer: /* @__PURE__ */ v.jsx(et.Numeric, { ...C.dataEditor }),
|
|
9333
|
+
Percentage: /* @__PURE__ */ v.jsx(et.Numeric, { ...C.dataEditor }),
|
|
9334
|
+
Boolean: /* @__PURE__ */ v.jsx(et.Boolean, { ...C.dataEditor }),
|
|
9335
|
+
Select: /* @__PURE__ */ v.jsx(et.Select, { ...C.dataEditor, items: y })
|
|
9335
9336
|
}),
|
|
9336
|
-
[
|
|
9337
|
-
),
|
|
9337
|
+
[C.dataEditor, y]
|
|
9338
|
+
), M = ve(
|
|
9338
9339
|
() => ({
|
|
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, {
|
|
9340
|
+
Date: /* @__PURE__ */ v.jsx(tt.Date, { ...C.dataViewer }),
|
|
9341
|
+
String: /* @__PURE__ */ v.jsx(tt.Text, { ...C.dataViewer }),
|
|
9342
|
+
Currency: /* @__PURE__ */ v.jsx(tt.Numeric, { ...C.dataViewer }),
|
|
9343
|
+
Decimal: /* @__PURE__ */ v.jsx(tt.Numeric, { ...C.dataViewer }),
|
|
9344
|
+
Float: /* @__PURE__ */ v.jsx(tt.Numeric, { ...C.dataViewer }),
|
|
9345
|
+
Integer: /* @__PURE__ */ v.jsx(tt.Numeric, { ...C.dataViewer }),
|
|
9346
|
+
Percentage: /* @__PURE__ */ v.jsx(tt.Numeric, { ...C.dataViewer }),
|
|
9347
|
+
Boolean: /* @__PURE__ */ v.jsx(tt.Boolean, { ...C.dataViewer }),
|
|
9348
|
+
Select: /* @__PURE__ */ v.jsx(tt.Select, { ...C.dataViewer, items: y })
|
|
9348
9349
|
}),
|
|
9349
|
-
[
|
|
9350
|
+
[C.dataViewer, y]
|
|
9350
9351
|
), T = ve(
|
|
9351
9352
|
() => l ? _[l] : null,
|
|
9352
9353
|
[l, _]
|
|
9353
9354
|
), E = ve(
|
|
9354
|
-
() => l ?
|
|
9355
|
-
[l,
|
|
9356
|
-
),
|
|
9355
|
+
() => l ? M[l] : null,
|
|
9356
|
+
[l, M]
|
|
9357
|
+
), k = F(() => {
|
|
9357
9358
|
bm.includes(l) || m("view");
|
|
9358
9359
|
}, [l]);
|
|
9359
|
-
return
|
|
9360
|
-
const
|
|
9361
|
-
|
|
9362
|
-
|
|
9360
|
+
return Z(() => {
|
|
9361
|
+
const O = (V) => {
|
|
9362
|
+
if (V.ctrlKey || V.metaKey)
|
|
9363
|
+
return;
|
|
9364
|
+
const I = V.code === "Enter", Q = /[a-zA-Z0-9\u00C0-\u017F]/.test(V.key) && V.key.length === 1;
|
|
9365
|
+
I && g && f === "view" && m("edit"), Q && g && f === "view" && (a({
|
|
9363
9366
|
data: "",
|
|
9364
9367
|
point: r
|
|
9365
|
-
}), m("edit")),
|
|
9368
|
+
}), m("edit")), I && g && f === "edit" && m("view");
|
|
9366
9369
|
};
|
|
9367
|
-
return window.addEventListener("keydown",
|
|
9368
|
-
}, [g, f, a, r]), Js(w,
|
|
9370
|
+
return window.addEventListener("keydown", O), () => window.removeEventListener("keydown", O);
|
|
9371
|
+
}, [g, f, a, r]), Js(w, k), Z(() => {
|
|
9369
9372
|
m(p ? "readonly" : "view");
|
|
9370
9373
|
}, [p]), h ? f === "readonly" ? /* @__PURE__ */ v.jsx(
|
|
9371
9374
|
"div",
|
|
@@ -9421,7 +9424,10 @@ function wm({ row: e }) {
|
|
|
9421
9424
|
o && "sl-bg-info-300 sl-text-white",
|
|
9422
9425
|
s && "sl-bg-info-300 sl-text-white"
|
|
9423
9426
|
),
|
|
9424
|
-
|
|
9427
|
+
"data-testid": `row-indicator-${e}${o && !s ? "-in-range" : ""}${s ? "-selected" : ""}`,
|
|
9428
|
+
onClick: (a) => {
|
|
9429
|
+
t(e, a);
|
|
9430
|
+
},
|
|
9425
9431
|
style: {
|
|
9426
9432
|
height: ln
|
|
9427
9433
|
},
|
|
@@ -9477,25 +9483,25 @@ const Tr = "rovingFocusGroup.onEntryFocus", Cm = {
|
|
|
9477
9483
|
cancelable: !0
|
|
9478
9484
|
}, Co = "RovingFocusGroup", [zr, li, Sm] = ho(Co), [Em, ui] = Tt(Co, [
|
|
9479
9485
|
Sm
|
|
9480
|
-
]), [_m, Tm] = Em(Co), Rm = /* @__PURE__ */
|
|
9486
|
+
]), [_m, Tm] = Em(Co), Rm = /* @__PURE__ */ H((e, t) => /* @__PURE__ */ $(zr.Provider, {
|
|
9481
9487
|
scope: e.__scopeRovingFocusGroup
|
|
9482
|
-
}, /* @__PURE__ */
|
|
9488
|
+
}, /* @__PURE__ */ $(zr.Slot, {
|
|
9483
9489
|
scope: e.__scopeRovingFocusGroup
|
|
9484
|
-
}, /* @__PURE__ */
|
|
9490
|
+
}, /* @__PURE__ */ $(Pm, W({}, e, {
|
|
9485
9491
|
ref: t
|
|
9486
|
-
}))))), Pm = /* @__PURE__ */
|
|
9492
|
+
}))))), Pm = /* @__PURE__ */ H((e, t) => {
|
|
9487
9493
|
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({
|
|
9488
9494
|
prop: a,
|
|
9489
9495
|
defaultProp: i,
|
|
9490
9496
|
onChange: c
|
|
9491
|
-
}), [w, b] =
|
|
9492
|
-
return
|
|
9497
|
+
}), [w, b] = q(!1), g = He(l), y = li(n), C = K(!1), [_, M] = q(0);
|
|
9498
|
+
return Z(() => {
|
|
9493
9499
|
const T = u.current;
|
|
9494
9500
|
if (T)
|
|
9495
9501
|
return T.addEventListener(Tr, g), () => T.removeEventListener(Tr, g);
|
|
9496
9502
|
}, [
|
|
9497
9503
|
g
|
|
9498
|
-
]), /* @__PURE__ */
|
|
9504
|
+
]), /* @__PURE__ */ $(_m, {
|
|
9499
9505
|
scope: n,
|
|
9500
9506
|
orientation: r,
|
|
9501
9507
|
dir: h,
|
|
@@ -9512,18 +9518,18 @@ const Tr = "rovingFocusGroup.onEntryFocus", Cm = {
|
|
|
9512
9518
|
[]
|
|
9513
9519
|
),
|
|
9514
9520
|
onFocusableItemAdd: F(
|
|
9515
|
-
() =>
|
|
9521
|
+
() => M(
|
|
9516
9522
|
(T) => T + 1
|
|
9517
9523
|
),
|
|
9518
9524
|
[]
|
|
9519
9525
|
),
|
|
9520
9526
|
onFocusableItemRemove: F(
|
|
9521
|
-
() =>
|
|
9527
|
+
() => M(
|
|
9522
9528
|
(T) => T - 1
|
|
9523
9529
|
),
|
|
9524
9530
|
[]
|
|
9525
9531
|
)
|
|
9526
|
-
}, /* @__PURE__ */
|
|
9532
|
+
}, /* @__PURE__ */ $(Ee.div, W({
|
|
9527
9533
|
tabIndex: w || _ === 0 ? -1 : 0,
|
|
9528
9534
|
"data-orientation": r
|
|
9529
9535
|
}, d, {
|
|
@@ -9532,64 +9538,64 @@ const Tr = "rovingFocusGroup.onEntryFocus", Cm = {
|
|
|
9532
9538
|
outline: "none",
|
|
9533
9539
|
...e.style
|
|
9534
9540
|
},
|
|
9535
|
-
onMouseDown:
|
|
9536
|
-
|
|
9541
|
+
onMouseDown: J(e.onMouseDown, () => {
|
|
9542
|
+
C.current = !0;
|
|
9537
9543
|
}),
|
|
9538
|
-
onFocus:
|
|
9539
|
-
const E =
|
|
9544
|
+
onFocus: J(e.onFocus, (T) => {
|
|
9545
|
+
const E = !C.current;
|
|
9540
9546
|
if (T.target === T.currentTarget && E && !w) {
|
|
9541
|
-
const
|
|
9542
|
-
if (T.currentTarget.dispatchEvent(
|
|
9543
|
-
const
|
|
9547
|
+
const k = new CustomEvent(Tr, Cm);
|
|
9548
|
+
if (T.currentTarget.dispatchEvent(k), !k.defaultPrevented) {
|
|
9549
|
+
const O = y().filter(
|
|
9544
9550
|
(A) => A.focusable
|
|
9545
|
-
),
|
|
9551
|
+
), V = O.find(
|
|
9546
9552
|
(A) => A.active
|
|
9547
|
-
),
|
|
9553
|
+
), I = O.find(
|
|
9548
9554
|
(A) => A.id === f
|
|
9549
9555
|
), G = [
|
|
9550
|
-
|
|
9551
|
-
|
|
9552
|
-
...
|
|
9556
|
+
V,
|
|
9557
|
+
I,
|
|
9558
|
+
...O
|
|
9553
9559
|
].filter(Boolean).map(
|
|
9554
9560
|
(A) => A.ref.current
|
|
9555
9561
|
);
|
|
9556
9562
|
di(G);
|
|
9557
9563
|
}
|
|
9558
9564
|
}
|
|
9559
|
-
|
|
9565
|
+
C.current = !1;
|
|
9560
9566
|
}),
|
|
9561
|
-
onBlur:
|
|
9567
|
+
onBlur: J(
|
|
9562
9568
|
e.onBlur,
|
|
9563
9569
|
() => b(!1)
|
|
9564
9570
|
)
|
|
9565
9571
|
})));
|
|
9566
|
-
}), Om = "RovingFocusGroupItem", Nm = /* @__PURE__ */
|
|
9572
|
+
}), Om = "RovingFocusGroupItem", Nm = /* @__PURE__ */ H((e, t) => {
|
|
9567
9573
|
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;
|
|
9568
|
-
return
|
|
9574
|
+
return Z(() => {
|
|
9569
9575
|
if (r)
|
|
9570
9576
|
return p(), () => h();
|
|
9571
9577
|
}, [
|
|
9572
9578
|
r,
|
|
9573
9579
|
p,
|
|
9574
9580
|
h
|
|
9575
|
-
]), /* @__PURE__ */
|
|
9581
|
+
]), /* @__PURE__ */ $(zr.ItemSlot, {
|
|
9576
9582
|
scope: n,
|
|
9577
9583
|
id: c,
|
|
9578
9584
|
focusable: r,
|
|
9579
9585
|
active: o
|
|
9580
|
-
}, /* @__PURE__ */
|
|
9586
|
+
}, /* @__PURE__ */ $(Ee.span, W({
|
|
9581
9587
|
tabIndex: d ? 0 : -1,
|
|
9582
9588
|
"data-orientation": l.orientation
|
|
9583
9589
|
}, a, {
|
|
9584
9590
|
ref: t,
|
|
9585
|
-
onMouseDown:
|
|
9591
|
+
onMouseDown: J(e.onMouseDown, (f) => {
|
|
9586
9592
|
r ? l.onItemFocus(c) : f.preventDefault();
|
|
9587
9593
|
}),
|
|
9588
|
-
onFocus:
|
|
9594
|
+
onFocus: J(
|
|
9589
9595
|
e.onFocus,
|
|
9590
9596
|
() => l.onItemFocus(c)
|
|
9591
9597
|
),
|
|
9592
|
-
onKeyDown:
|
|
9598
|
+
onKeyDown: J(e.onKeyDown, (f) => {
|
|
9593
9599
|
if (f.key === "Tab" && f.shiftKey) {
|
|
9594
9600
|
l.onItemShiftTab();
|
|
9595
9601
|
return;
|
|
@@ -9687,8 +9693,8 @@ const km = Rm, jm = Nm, Wr = [
|
|
|
9687
9693
|
en,
|
|
9688
9694
|
ui
|
|
9689
9695
|
]), So = en(), mi = ui(), [Hm, Nt] = Ot(ur), [Um, $n] = Ot(ur), Km = (e) => {
|
|
9690
|
-
const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: s, modal: a = !0 } = e, i = So(t), [c, l] =
|
|
9691
|
-
return
|
|
9696
|
+
const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: s, modal: a = !0 } = e, i = So(t), [c, l] = q(null), d = K(!1), u = He(s), p = vo(o);
|
|
9697
|
+
return Z(() => {
|
|
9692
9698
|
const h = () => {
|
|
9693
9699
|
d.current = !0, document.addEventListener("pointerdown", f, {
|
|
9694
9700
|
capture: !0,
|
|
@@ -9709,13 +9715,13 @@ const km = Rm, jm = Nm, Wr = [
|
|
|
9709
9715
|
capture: !0
|
|
9710
9716
|
});
|
|
9711
9717
|
};
|
|
9712
|
-
}, []), /* @__PURE__ */
|
|
9718
|
+
}, []), /* @__PURE__ */ $(co, i, /* @__PURE__ */ $(Hm, {
|
|
9713
9719
|
scope: t,
|
|
9714
9720
|
open: n,
|
|
9715
9721
|
onOpenChange: u,
|
|
9716
9722
|
content: c,
|
|
9717
9723
|
onContentChange: l
|
|
9718
|
-
}, /* @__PURE__ */
|
|
9724
|
+
}, /* @__PURE__ */ $(Um, {
|
|
9719
9725
|
scope: t,
|
|
9720
9726
|
onClose: F(
|
|
9721
9727
|
() => u(!1),
|
|
@@ -9727,49 +9733,49 @@ const km = Rm, jm = Nm, Wr = [
|
|
|
9727
9733
|
dir: p,
|
|
9728
9734
|
modal: a
|
|
9729
9735
|
}, r)));
|
|
9730
|
-
}, hi = /* @__PURE__ */
|
|
9736
|
+
}, hi = /* @__PURE__ */ H((e, t) => {
|
|
9731
9737
|
const { __scopeMenu: n, ...r } = e, o = So(n);
|
|
9732
|
-
return /* @__PURE__ */
|
|
9738
|
+
return /* @__PURE__ */ $(lo, W({}, o, r, {
|
|
9733
9739
|
ref: t
|
|
9734
9740
|
}));
|
|
9735
9741
|
}), vi = "MenuPortal", [Gm, gi] = Ot(vi, {
|
|
9736
9742
|
forceMount: void 0
|
|
9737
9743
|
}), Ym = (e) => {
|
|
9738
9744
|
const { __scopeMenu: t, forceMount: n, children: r, container: o } = e, s = Nt(vi, t);
|
|
9739
|
-
return /* @__PURE__ */
|
|
9745
|
+
return /* @__PURE__ */ $(Gm, {
|
|
9740
9746
|
scope: t,
|
|
9741
9747
|
forceMount: n
|
|
9742
|
-
}, /* @__PURE__ */
|
|
9748
|
+
}, /* @__PURE__ */ $(tn, {
|
|
9743
9749
|
present: n || s.open
|
|
9744
|
-
}, /* @__PURE__ */
|
|
9750
|
+
}, /* @__PURE__ */ $(wa, {
|
|
9745
9751
|
asChild: !0,
|
|
9746
9752
|
container: o
|
|
9747
9753
|
}, r)));
|
|
9748
|
-
}, We = "MenuContent", [Xm, Eo] = Ot(We), qm = /* @__PURE__ */
|
|
9754
|
+
}, We = "MenuContent", [Xm, Eo] = Ot(We), qm = /* @__PURE__ */ H((e, t) => {
|
|
9749
9755
|
const n = gi(We, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = Nt(We, e.__scopeMenu), a = $n(We, e.__scopeMenu);
|
|
9750
|
-
return /* @__PURE__ */
|
|
9756
|
+
return /* @__PURE__ */ $(gn.Provider, {
|
|
9751
9757
|
scope: e.__scopeMenu
|
|
9752
|
-
}, /* @__PURE__ */
|
|
9758
|
+
}, /* @__PURE__ */ $(tn, {
|
|
9753
9759
|
present: r || s.open
|
|
9754
|
-
}, /* @__PURE__ */
|
|
9760
|
+
}, /* @__PURE__ */ $(gn.Slot, {
|
|
9755
9761
|
scope: e.__scopeMenu
|
|
9756
|
-
}, a.modal ? /* @__PURE__ */
|
|
9762
|
+
}, a.modal ? /* @__PURE__ */ $(Zm, W({}, o, {
|
|
9757
9763
|
ref: t
|
|
9758
|
-
})) : /* @__PURE__ */
|
|
9764
|
+
})) : /* @__PURE__ */ $(Jm, W({}, o, {
|
|
9759
9765
|
ref: t
|
|
9760
9766
|
})))));
|
|
9761
|
-
}), Zm = /* @__PURE__ */
|
|
9767
|
+
}), Zm = /* @__PURE__ */ H((e, t) => {
|
|
9762
9768
|
const n = Nt(We, e.__scopeMenu), r = K(null), o = Se(t, r);
|
|
9763
|
-
return
|
|
9769
|
+
return Z(() => {
|
|
9764
9770
|
const s = r.current;
|
|
9765
9771
|
if (s)
|
|
9766
9772
|
return Ra(s);
|
|
9767
|
-
}, []), /* @__PURE__ */
|
|
9773
|
+
}, []), /* @__PURE__ */ $(_o, W({}, e, {
|
|
9768
9774
|
ref: o,
|
|
9769
9775
|
trapFocus: n.open,
|
|
9770
9776
|
disableOutsidePointerEvents: n.open,
|
|
9771
9777
|
disableOutsideScroll: !0,
|
|
9772
|
-
onFocusOutside:
|
|
9778
|
+
onFocusOutside: J(
|
|
9773
9779
|
e.onFocusOutside,
|
|
9774
9780
|
(s) => s.preventDefault(),
|
|
9775
9781
|
{
|
|
@@ -9778,32 +9784,32 @@ const km = Rm, jm = Nm, Wr = [
|
|
|
9778
9784
|
),
|
|
9779
9785
|
onDismiss: () => n.onOpenChange(!1)
|
|
9780
9786
|
}));
|
|
9781
|
-
}), Jm = /* @__PURE__ */
|
|
9787
|
+
}), Jm = /* @__PURE__ */ H((e, t) => {
|
|
9782
9788
|
const n = Nt(We, e.__scopeMenu);
|
|
9783
|
-
return /* @__PURE__ */
|
|
9789
|
+
return /* @__PURE__ */ $(_o, W({}, e, {
|
|
9784
9790
|
ref: t,
|
|
9785
9791
|
trapFocus: !1,
|
|
9786
9792
|
disableOutsidePointerEvents: !1,
|
|
9787
9793
|
disableOutsideScroll: !1,
|
|
9788
9794
|
onDismiss: () => n.onOpenChange(!1)
|
|
9789
9795
|
}));
|
|
9790
|
-
}), _o = /* @__PURE__ */
|
|
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),
|
|
9796
|
+
}), _o = /* @__PURE__ */ H((e, t) => {
|
|
9797
|
+
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), C = zm(n), [_, M] = q(null), T = K(null), E = Se(t, T, w.onContentChange), k = K(0), O = K(""), V = K(0), I = K(null), Q = K("right"), G = K(0), A = f ? go : Xt, D = f ? {
|
|
9792
9798
|
as: Ut,
|
|
9793
9799
|
allowPinchZoom: !0
|
|
9794
9800
|
} : void 0, P = (S) => {
|
|
9795
|
-
var
|
|
9796
|
-
const Y =
|
|
9801
|
+
var N, j;
|
|
9802
|
+
const Y = O.current + S, le = C().filter(
|
|
9797
9803
|
(oe) => !oe.disabled
|
|
9798
|
-
), ae = document.activeElement, be = (
|
|
9804
|
+
), ae = document.activeElement, be = (N = le.find(
|
|
9799
9805
|
(oe) => oe.ref.current === ae
|
|
9800
|
-
)) === null ||
|
|
9806
|
+
)) === null || N === void 0 ? void 0 : N.textValue, we = le.map(
|
|
9801
9807
|
(oe) => oe.textValue
|
|
9802
9808
|
), X = mh(we, Y, be), se = (j = le.find(
|
|
9803
9809
|
(oe) => oe.textValue === X
|
|
9804
9810
|
)) === null || j === void 0 ? void 0 : j.ref.current;
|
|
9805
9811
|
(function oe(ce) {
|
|
9806
|
-
|
|
9812
|
+
O.current = ce, window.clearTimeout(k.current), ce !== "" && (k.current = window.setTimeout(
|
|
9807
9813
|
() => oe(""),
|
|
9808
9814
|
1e3
|
|
9809
9815
|
));
|
|
@@ -9811,22 +9817,22 @@ const km = Rm, jm = Nm, Wr = [
|
|
|
9811
9817
|
() => se.focus()
|
|
9812
9818
|
);
|
|
9813
9819
|
};
|
|
9814
|
-
|
|
9820
|
+
Z(() => () => window.clearTimeout(k.current), []), Sa();
|
|
9815
9821
|
const ee = F((S) => {
|
|
9816
|
-
var
|
|
9817
|
-
return Q.current === ((
|
|
9822
|
+
var N, j;
|
|
9823
|
+
return Q.current === ((N = I.current) === null || N === void 0 ? void 0 : N.side) && vh(S, (j = I.current) === null || j === void 0 ? void 0 : j.area);
|
|
9818
9824
|
}, []);
|
|
9819
|
-
return /* @__PURE__ */
|
|
9825
|
+
return /* @__PURE__ */ $(Xm, {
|
|
9820
9826
|
scope: n,
|
|
9821
|
-
searchRef:
|
|
9827
|
+
searchRef: O,
|
|
9822
9828
|
onItemEnter: F((S) => {
|
|
9823
9829
|
ee(S) && S.preventDefault();
|
|
9824
9830
|
}, [
|
|
9825
9831
|
ee
|
|
9826
9832
|
]),
|
|
9827
9833
|
onItemLeave: F((S) => {
|
|
9828
|
-
var
|
|
9829
|
-
ee(S) || ((
|
|
9834
|
+
var N;
|
|
9835
|
+
ee(S) || ((N = T.current) === null || N === void 0 || N.focus(), M(null));
|
|
9830
9836
|
}, [
|
|
9831
9837
|
ee
|
|
9832
9838
|
]),
|
|
@@ -9835,19 +9841,19 @@ const km = Rm, jm = Nm, Wr = [
|
|
|
9835
9841
|
}, [
|
|
9836
9842
|
ee
|
|
9837
9843
|
]),
|
|
9838
|
-
pointerGraceTimerRef:
|
|
9844
|
+
pointerGraceTimerRef: V,
|
|
9839
9845
|
onPointerGraceIntentChange: F((S) => {
|
|
9840
|
-
|
|
9846
|
+
I.current = S;
|
|
9841
9847
|
}, [])
|
|
9842
|
-
}, /* @__PURE__ */
|
|
9848
|
+
}, /* @__PURE__ */ $(A, D, /* @__PURE__ */ $(Ea, {
|
|
9843
9849
|
asChild: !0,
|
|
9844
9850
|
trapped: o,
|
|
9845
|
-
onMountAutoFocus:
|
|
9846
|
-
var
|
|
9847
|
-
S.preventDefault(), (
|
|
9851
|
+
onMountAutoFocus: J(s, (S) => {
|
|
9852
|
+
var N;
|
|
9853
|
+
S.preventDefault(), (N = T.current) === null || N === void 0 || N.focus();
|
|
9848
9854
|
}),
|
|
9849
9855
|
onUnmountAutoFocus: a
|
|
9850
|
-
}, /* @__PURE__ */
|
|
9856
|
+
}, /* @__PURE__ */ $(eo, {
|
|
9851
9857
|
asChild: !0,
|
|
9852
9858
|
disableOutsidePointerEvents: i,
|
|
9853
9859
|
onEscapeKeyDown: l,
|
|
@@ -9855,18 +9861,18 @@ const km = Rm, jm = Nm, Wr = [
|
|
|
9855
9861
|
onFocusOutside: u,
|
|
9856
9862
|
onInteractOutside: p,
|
|
9857
9863
|
onDismiss: h
|
|
9858
|
-
}, /* @__PURE__ */
|
|
9864
|
+
}, /* @__PURE__ */ $(km, W({
|
|
9859
9865
|
asChild: !0
|
|
9860
9866
|
}, y, {
|
|
9861
9867
|
dir: b.dir,
|
|
9862
9868
|
orientation: "vertical",
|
|
9863
9869
|
loop: r,
|
|
9864
9870
|
currentTabStopId: _,
|
|
9865
|
-
onCurrentTabStopIdChange:
|
|
9866
|
-
onEntryFocus:
|
|
9871
|
+
onCurrentTabStopIdChange: M,
|
|
9872
|
+
onEntryFocus: J(c, (S) => {
|
|
9867
9873
|
b.isUsingKeyboardRef.current || S.preventDefault();
|
|
9868
9874
|
})
|
|
9869
|
-
}), /* @__PURE__ */
|
|
9875
|
+
}), /* @__PURE__ */ $(uo, W({
|
|
9870
9876
|
role: "menu",
|
|
9871
9877
|
"aria-orientation": "vertical",
|
|
9872
9878
|
"data-state": $i(w.open),
|
|
@@ -9878,37 +9884,37 @@ const km = Rm, jm = Nm, Wr = [
|
|
|
9878
9884
|
outline: "none",
|
|
9879
9885
|
...m.style
|
|
9880
9886
|
},
|
|
9881
|
-
onKeyDown:
|
|
9887
|
+
onKeyDown: J(m.onKeyDown, (S) => {
|
|
9882
9888
|
const j = S.target.closest("[data-radix-menu-content]") === S.currentTarget, Y = S.ctrlKey || S.altKey || S.metaKey, le = S.key.length === 1;
|
|
9883
9889
|
j && (S.key === "Tab" && S.preventDefault(), !Y && le && P(S.key));
|
|
9884
9890
|
const ae = T.current;
|
|
9885
9891
|
if (S.target !== ae || !Fm.includes(S.key))
|
|
9886
9892
|
return;
|
|
9887
9893
|
S.preventDefault();
|
|
9888
|
-
const we =
|
|
9894
|
+
const we = C().filter(
|
|
9889
9895
|
(X) => !X.disabled
|
|
9890
9896
|
).map(
|
|
9891
9897
|
(X) => X.ref.current
|
|
9892
9898
|
);
|
|
9893
9899
|
fi.includes(S.key) && we.reverse(), fh(we);
|
|
9894
9900
|
}),
|
|
9895
|
-
onBlur:
|
|
9896
|
-
S.currentTarget.contains(S.target) || (window.clearTimeout(
|
|
9901
|
+
onBlur: J(e.onBlur, (S) => {
|
|
9902
|
+
S.currentTarget.contains(S.target) || (window.clearTimeout(k.current), O.current = "");
|
|
9897
9903
|
}),
|
|
9898
|
-
onPointerMove:
|
|
9899
|
-
const
|
|
9900
|
-
if (S.currentTarget.contains(
|
|
9904
|
+
onPointerMove: J(e.onPointerMove, bn((S) => {
|
|
9905
|
+
const N = S.target, j = G.current !== S.clientX;
|
|
9906
|
+
if (S.currentTarget.contains(N) && j) {
|
|
9901
9907
|
const Y = S.clientX > G.current ? "right" : "left";
|
|
9902
9908
|
Q.current = Y, G.current = S.clientX;
|
|
9903
9909
|
}
|
|
9904
9910
|
}))
|
|
9905
9911
|
})))))));
|
|
9906
|
-
}), Qm = /* @__PURE__ */
|
|
9912
|
+
}), Qm = /* @__PURE__ */ H((e, t) => {
|
|
9907
9913
|
const { __scopeMenu: n, ...r } = e;
|
|
9908
|
-
return /* @__PURE__ */
|
|
9914
|
+
return /* @__PURE__ */ $(Ee.div, W({}, r, {
|
|
9909
9915
|
ref: t
|
|
9910
9916
|
}));
|
|
9911
|
-
}), Hr = "MenuItem", Os = "menu.itemSelect", To = /* @__PURE__ */
|
|
9917
|
+
}), Hr = "MenuItem", Os = "menu.itemSelect", To = /* @__PURE__ */ H((e, t) => {
|
|
9912
9918
|
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 = () => {
|
|
9913
9919
|
const u = s.current;
|
|
9914
9920
|
if (!n && u) {
|
|
@@ -9925,26 +9931,26 @@ const km = Rm, jm = Nm, Wr = [
|
|
|
9925
9931
|
), oa(u, p), p.defaultPrevented ? l.current = !1 : a.onClose();
|
|
9926
9932
|
}
|
|
9927
9933
|
};
|
|
9928
|
-
return /* @__PURE__ */
|
|
9934
|
+
return /* @__PURE__ */ $(bi, W({}, o, {
|
|
9929
9935
|
ref: c,
|
|
9930
9936
|
disabled: n,
|
|
9931
|
-
onClick:
|
|
9937
|
+
onClick: J(e.onClick, d),
|
|
9932
9938
|
onPointerDown: (u) => {
|
|
9933
9939
|
var p;
|
|
9934
9940
|
(p = e.onPointerDown) === null || p === void 0 || p.call(e, u), l.current = !0;
|
|
9935
9941
|
},
|
|
9936
|
-
onPointerUp:
|
|
9942
|
+
onPointerUp: J(e.onPointerUp, (u) => {
|
|
9937
9943
|
var p;
|
|
9938
9944
|
l.current || (p = u.currentTarget) === null || p === void 0 || p.click();
|
|
9939
9945
|
}),
|
|
9940
|
-
onKeyDown:
|
|
9946
|
+
onKeyDown: J(e.onKeyDown, (u) => {
|
|
9941
9947
|
const p = i.searchRef.current !== "";
|
|
9942
9948
|
n || p && u.key === " " || Wr.includes(u.key) && (u.currentTarget.click(), u.preventDefault());
|
|
9943
9949
|
})
|
|
9944
9950
|
}));
|
|
9945
|
-
}), bi = /* @__PURE__ */
|
|
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] =
|
|
9947
|
-
return
|
|
9951
|
+
}), bi = /* @__PURE__ */ H((e, t) => {
|
|
9952
|
+
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] = q(!1), [p, h] = q("");
|
|
9953
|
+
return Z(() => {
|
|
9948
9954
|
const f = c.current;
|
|
9949
9955
|
if (f) {
|
|
9950
9956
|
var m;
|
|
@@ -9952,48 +9958,48 @@ const km = Rm, jm = Nm, Wr = [
|
|
|
9952
9958
|
}
|
|
9953
9959
|
}, [
|
|
9954
9960
|
s.children
|
|
9955
|
-
]), /* @__PURE__ */
|
|
9961
|
+
]), /* @__PURE__ */ $(gn.ItemSlot, {
|
|
9956
9962
|
scope: n,
|
|
9957
9963
|
disabled: r,
|
|
9958
9964
|
textValue: o ?? p
|
|
9959
|
-
}, /* @__PURE__ */
|
|
9965
|
+
}, /* @__PURE__ */ $(jm, W({
|
|
9960
9966
|
asChild: !0
|
|
9961
9967
|
}, i, {
|
|
9962
9968
|
focusable: !r
|
|
9963
|
-
}), /* @__PURE__ */
|
|
9969
|
+
}), /* @__PURE__ */ $(Ee.div, W({
|
|
9964
9970
|
role: "menuitem",
|
|
9965
9971
|
"data-highlighted": d ? "" : void 0,
|
|
9966
9972
|
"aria-disabled": r || void 0,
|
|
9967
9973
|
"data-disabled": r ? "" : void 0
|
|
9968
9974
|
}, s, {
|
|
9969
9975
|
ref: l,
|
|
9970
|
-
onPointerMove:
|
|
9976
|
+
onPointerMove: J(e.onPointerMove, bn((f) => {
|
|
9971
9977
|
r ? a.onItemLeave(f) : (a.onItemEnter(f), f.defaultPrevented || f.currentTarget.focus());
|
|
9972
9978
|
})),
|
|
9973
|
-
onPointerLeave:
|
|
9979
|
+
onPointerLeave: J(e.onPointerLeave, bn(
|
|
9974
9980
|
(f) => a.onItemLeave(f)
|
|
9975
9981
|
)),
|
|
9976
|
-
onFocus:
|
|
9982
|
+
onFocus: J(
|
|
9977
9983
|
e.onFocus,
|
|
9978
9984
|
() => u(!0)
|
|
9979
9985
|
),
|
|
9980
|
-
onBlur:
|
|
9986
|
+
onBlur: J(
|
|
9981
9987
|
e.onBlur,
|
|
9982
9988
|
() => u(!1)
|
|
9983
9989
|
)
|
|
9984
9990
|
}))));
|
|
9985
|
-
}), eh = /* @__PURE__ */
|
|
9991
|
+
}), eh = /* @__PURE__ */ H((e, t) => {
|
|
9986
9992
|
const { checked: n = !1, onCheckedChange: r, ...o } = e;
|
|
9987
|
-
return /* @__PURE__ */
|
|
9993
|
+
return /* @__PURE__ */ $(wi, {
|
|
9988
9994
|
scope: e.__scopeMenu,
|
|
9989
9995
|
checked: n
|
|
9990
|
-
}, /* @__PURE__ */
|
|
9996
|
+
}, /* @__PURE__ */ $(To, W({
|
|
9991
9997
|
role: "menuitemcheckbox",
|
|
9992
9998
|
"aria-checked": qn(n) ? "mixed" : n
|
|
9993
9999
|
}, o, {
|
|
9994
10000
|
ref: t,
|
|
9995
10001
|
"data-state": Ro(n),
|
|
9996
|
-
onSelect:
|
|
10002
|
+
onSelect: J(
|
|
9997
10003
|
o.onSelect,
|
|
9998
10004
|
() => r?.(qn(n) ? !0 : !n),
|
|
9999
10005
|
{
|
|
@@ -10005,18 +10011,18 @@ const km = Rm, jm = Nm, Wr = [
|
|
|
10005
10011
|
value: void 0,
|
|
10006
10012
|
onValueChange: () => {
|
|
10007
10013
|
}
|
|
10008
|
-
}), rh = "MenuRadioItem", oh = /* @__PURE__ */
|
|
10014
|
+
}), rh = "MenuRadioItem", oh = /* @__PURE__ */ H((e, t) => {
|
|
10009
10015
|
const { value: n, ...r } = e, o = nh(rh, e.__scopeMenu), s = n === o.value;
|
|
10010
|
-
return /* @__PURE__ */
|
|
10016
|
+
return /* @__PURE__ */ $(wi, {
|
|
10011
10017
|
scope: e.__scopeMenu,
|
|
10012
10018
|
checked: s
|
|
10013
|
-
}, /* @__PURE__ */
|
|
10019
|
+
}, /* @__PURE__ */ $(To, W({
|
|
10014
10020
|
role: "menuitemradio",
|
|
10015
10021
|
"aria-checked": s
|
|
10016
10022
|
}, r, {
|
|
10017
10023
|
ref: t,
|
|
10018
10024
|
"data-state": Ro(s),
|
|
10019
|
-
onSelect:
|
|
10025
|
+
onSelect: J(r.onSelect, () => {
|
|
10020
10026
|
var a;
|
|
10021
10027
|
return (a = o.onValueChange) === null || a === void 0 ? void 0 : a.call(o, n);
|
|
10022
10028
|
}, {
|
|
@@ -10025,34 +10031,34 @@ const km = Rm, jm = Nm, Wr = [
|
|
|
10025
10031
|
})));
|
|
10026
10032
|
}), xi = "MenuItemIndicator", [wi, sh] = Ot(xi, {
|
|
10027
10033
|
checked: !1
|
|
10028
|
-
}), ah = /* @__PURE__ */
|
|
10034
|
+
}), ah = /* @__PURE__ */ H((e, t) => {
|
|
10029
10035
|
const { __scopeMenu: n, forceMount: r, ...o } = e, s = sh(xi, n);
|
|
10030
|
-
return /* @__PURE__ */
|
|
10036
|
+
return /* @__PURE__ */ $(tn, {
|
|
10031
10037
|
present: r || qn(s.checked) || s.checked === !0
|
|
10032
|
-
}, /* @__PURE__ */
|
|
10038
|
+
}, /* @__PURE__ */ $(Ee.span, W({}, o, {
|
|
10033
10039
|
ref: t,
|
|
10034
10040
|
"data-state": Ro(s.checked)
|
|
10035
10041
|
})));
|
|
10036
|
-
}), ih = /* @__PURE__ */
|
|
10042
|
+
}), ih = /* @__PURE__ */ H((e, t) => {
|
|
10037
10043
|
const { __scopeMenu: n, ...r } = e;
|
|
10038
|
-
return /* @__PURE__ */
|
|
10044
|
+
return /* @__PURE__ */ $(Ee.div, W({
|
|
10039
10045
|
role: "separator",
|
|
10040
10046
|
"aria-orientation": "horizontal"
|
|
10041
10047
|
}, r, {
|
|
10042
10048
|
ref: t
|
|
10043
10049
|
}));
|
|
10044
|
-
}), ch = "MenuSub", [xv, yi] = Ot(ch), Nn = "MenuSubTrigger", lh = /* @__PURE__ */
|
|
10050
|
+
}), ch = "MenuSub", [xv, yi] = Ot(ch), Nn = "MenuSubTrigger", lh = /* @__PURE__ */ H((e, t) => {
|
|
10045
10051
|
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 = {
|
|
10046
10052
|
__scopeMenu: e.__scopeMenu
|
|
10047
10053
|
}, d = F(() => {
|
|
10048
10054
|
a.current && window.clearTimeout(a.current), a.current = null;
|
|
10049
10055
|
}, []);
|
|
10050
|
-
return
|
|
10056
|
+
return Z(
|
|
10051
10057
|
() => d,
|
|
10052
10058
|
[
|
|
10053
10059
|
d
|
|
10054
10060
|
]
|
|
10055
|
-
),
|
|
10061
|
+
), Z(() => {
|
|
10056
10062
|
const u = i.current;
|
|
10057
10063
|
return () => {
|
|
10058
10064
|
window.clearTimeout(u), c(null);
|
|
@@ -10060,9 +10066,9 @@ const km = Rm, jm = Nm, Wr = [
|
|
|
10060
10066
|
}, [
|
|
10061
10067
|
i,
|
|
10062
10068
|
c
|
|
10063
|
-
]), /* @__PURE__ */
|
|
10069
|
+
]), /* @__PURE__ */ $(hi, W({
|
|
10064
10070
|
asChild: !0
|
|
10065
|
-
}, l), /* @__PURE__ */
|
|
10071
|
+
}, l), /* @__PURE__ */ $(bi, W({
|
|
10066
10072
|
id: o.triggerId,
|
|
10067
10073
|
"aria-haspopup": "menu",
|
|
10068
10074
|
"aria-expanded": n.open,
|
|
@@ -10074,12 +10080,12 @@ const km = Rm, jm = Nm, Wr = [
|
|
|
10074
10080
|
var p;
|
|
10075
10081
|
(p = e.onClick) === null || p === void 0 || p.call(e, u), !(e.disabled || u.defaultPrevented) && (u.currentTarget.focus(), n.open || n.onOpenChange(!0));
|
|
10076
10082
|
},
|
|
10077
|
-
onPointerMove:
|
|
10083
|
+
onPointerMove: J(e.onPointerMove, bn((u) => {
|
|
10078
10084
|
s.onItemEnter(u), !u.defaultPrevented && !e.disabled && !n.open && !a.current && (s.onPointerGraceIntentChange(null), a.current = window.setTimeout(() => {
|
|
10079
10085
|
n.onOpenChange(!0), d();
|
|
10080
10086
|
}, 100));
|
|
10081
10087
|
})),
|
|
10082
|
-
onPointerLeave:
|
|
10088
|
+
onPointerLeave: J(e.onPointerLeave, bn((u) => {
|
|
10083
10089
|
var p;
|
|
10084
10090
|
d();
|
|
10085
10091
|
const h = (p = n.content) === null || p === void 0 ? void 0 : p.getBoundingClientRect();
|
|
@@ -10121,7 +10127,7 @@ const km = Rm, jm = Nm, Wr = [
|
|
|
10121
10127
|
s.onPointerGraceIntentChange(null);
|
|
10122
10128
|
}
|
|
10123
10129
|
})),
|
|
10124
|
-
onKeyDown:
|
|
10130
|
+
onKeyDown: J(e.onKeyDown, (u) => {
|
|
10125
10131
|
const p = s.searchRef.current !== "";
|
|
10126
10132
|
if (!(e.disabled || p && u.key === " ") && Vm[r.dir].includes(u.key)) {
|
|
10127
10133
|
var h;
|
|
@@ -10129,15 +10135,15 @@ const km = Rm, jm = Nm, Wr = [
|
|
|
10129
10135
|
}
|
|
10130
10136
|
})
|
|
10131
10137
|
})));
|
|
10132
|
-
}), uh = "MenuSubContent", dh = /* @__PURE__ */
|
|
10138
|
+
}), uh = "MenuSubContent", dh = /* @__PURE__ */ H((e, t) => {
|
|
10133
10139
|
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);
|
|
10134
|
-
return /* @__PURE__ */
|
|
10140
|
+
return /* @__PURE__ */ $(gn.Provider, {
|
|
10135
10141
|
scope: e.__scopeMenu
|
|
10136
|
-
}, /* @__PURE__ */
|
|
10142
|
+
}, /* @__PURE__ */ $(tn, {
|
|
10137
10143
|
present: r || s.open
|
|
10138
|
-
}, /* @__PURE__ */
|
|
10144
|
+
}, /* @__PURE__ */ $(gn.Slot, {
|
|
10139
10145
|
scope: e.__scopeMenu
|
|
10140
|
-
}, /* @__PURE__ */
|
|
10146
|
+
}, /* @__PURE__ */ $(_o, W({
|
|
10141
10147
|
id: i.contentId,
|
|
10142
10148
|
"aria-labelledby": i.triggerId
|
|
10143
10149
|
}, o, {
|
|
@@ -10152,13 +10158,13 @@ const km = Rm, jm = Nm, Wr = [
|
|
|
10152
10158
|
a.isUsingKeyboardRef.current && ((u = c.current) === null || u === void 0 || u.focus()), d.preventDefault();
|
|
10153
10159
|
},
|
|
10154
10160
|
onCloseAutoFocus: (d) => d.preventDefault(),
|
|
10155
|
-
onFocusOutside:
|
|
10161
|
+
onFocusOutside: J(e.onFocusOutside, (d) => {
|
|
10156
10162
|
d.target !== i.trigger && s.onOpenChange(!1);
|
|
10157
10163
|
}),
|
|
10158
|
-
onEscapeKeyDown:
|
|
10164
|
+
onEscapeKeyDown: J(e.onEscapeKeyDown, (d) => {
|
|
10159
10165
|
a.onClose(), d.preventDefault();
|
|
10160
10166
|
}),
|
|
10161
|
-
onKeyDown:
|
|
10167
|
+
onKeyDown: J(e.onKeyDown, (d) => {
|
|
10162
10168
|
const u = d.currentTarget.contains(d.target), p = Bm[a.dir].includes(d.key);
|
|
10163
10169
|
if (u && p) {
|
|
10164
10170
|
var h;
|
|
@@ -10229,7 +10235,7 @@ const gh = Km, bh = hi, xh = Ym, wh = qm, yh = Qm, $h = To, Ch = eh, Sh = oh, Eh
|
|
|
10229
10235
|
defaultProp: s,
|
|
10230
10236
|
onChange: a
|
|
10231
10237
|
});
|
|
10232
|
-
return /* @__PURE__ */
|
|
10238
|
+
return /* @__PURE__ */ $(Oh, {
|
|
10233
10239
|
scope: t,
|
|
10234
10240
|
triggerId: Kt(),
|
|
10235
10241
|
triggerRef: l,
|
|
@@ -10245,17 +10251,17 @@ const gh = Km, bh = hi, xh = Ym, wh = qm, yh = Qm, $h = To, Ch = eh, Sh = oh, Eh
|
|
|
10245
10251
|
]
|
|
10246
10252
|
),
|
|
10247
10253
|
modal: i
|
|
10248
|
-
}, /* @__PURE__ */
|
|
10254
|
+
}, /* @__PURE__ */ $(gh, W({}, c, {
|
|
10249
10255
|
open: d,
|
|
10250
10256
|
onOpenChange: u,
|
|
10251
10257
|
dir: r,
|
|
10252
10258
|
modal: i
|
|
10253
10259
|
}), n));
|
|
10254
|
-
}, Ih = "DropdownMenuTrigger", Mh = /* @__PURE__ */
|
|
10260
|
+
}, Ih = "DropdownMenuTrigger", Mh = /* @__PURE__ */ H((e, t) => {
|
|
10255
10261
|
const { __scopeDropdownMenu: n, disabled: r = !1, ...o } = e, s = Si(Ih, n), a = Be(n);
|
|
10256
|
-
return /* @__PURE__ */
|
|
10262
|
+
return /* @__PURE__ */ $(bh, W({
|
|
10257
10263
|
asChild: !0
|
|
10258
|
-
}, a), /* @__PURE__ */
|
|
10264
|
+
}, a), /* @__PURE__ */ $(Ee.button, W({
|
|
10259
10265
|
type: "button",
|
|
10260
10266
|
id: s.triggerId,
|
|
10261
10267
|
"aria-haspopup": "menu",
|
|
@@ -10266,10 +10272,10 @@ const gh = Km, bh = hi, xh = Ym, wh = qm, yh = Qm, $h = To, Ch = eh, Sh = oh, Eh
|
|
|
10266
10272
|
disabled: r
|
|
10267
10273
|
}, o, {
|
|
10268
10274
|
ref: tr(t, s.triggerRef),
|
|
10269
|
-
onPointerDown:
|
|
10275
|
+
onPointerDown: J(e.onPointerDown, (i) => {
|
|
10270
10276
|
!r && i.button === 0 && i.ctrlKey === !1 && (s.onOpenToggle(), s.open || i.preventDefault());
|
|
10271
10277
|
}),
|
|
10272
|
-
onKeyDown:
|
|
10278
|
+
onKeyDown: J(e.onKeyDown, (i) => {
|
|
10273
10279
|
r || ([
|
|
10274
10280
|
"Enter",
|
|
10275
10281
|
" "
|
|
@@ -10282,19 +10288,19 @@ const gh = Km, bh = hi, xh = Ym, wh = qm, yh = Qm, $h = To, Ch = eh, Sh = oh, Eh
|
|
|
10282
10288
|
})));
|
|
10283
10289
|
}), Dh = (e) => {
|
|
10284
10290
|
const { __scopeDropdownMenu: t, ...n } = e, r = Be(t);
|
|
10285
|
-
return /* @__PURE__ */
|
|
10286
|
-
}, Ah = "DropdownMenuContent", kh = /* @__PURE__ */
|
|
10291
|
+
return /* @__PURE__ */ $(xh, W({}, r, n));
|
|
10292
|
+
}, Ah = "DropdownMenuContent", kh = /* @__PURE__ */ H((e, t) => {
|
|
10287
10293
|
const { __scopeDropdownMenu: n, ...r } = e, o = Si(Ah, n), s = Be(n), a = K(!1);
|
|
10288
|
-
return /* @__PURE__ */
|
|
10294
|
+
return /* @__PURE__ */ $(wh, W({
|
|
10289
10295
|
id: o.contentId,
|
|
10290
10296
|
"aria-labelledby": o.triggerId
|
|
10291
10297
|
}, s, r, {
|
|
10292
10298
|
ref: t,
|
|
10293
|
-
onCloseAutoFocus:
|
|
10299
|
+
onCloseAutoFocus: J(e.onCloseAutoFocus, (i) => {
|
|
10294
10300
|
var c;
|
|
10295
10301
|
a.current || (c = o.triggerRef.current) === null || c === void 0 || c.focus(), a.current = !1, i.preventDefault();
|
|
10296
10302
|
}),
|
|
10297
|
-
onInteractOutside:
|
|
10303
|
+
onInteractOutside: J(e.onInteractOutside, (i) => {
|
|
10298
10304
|
const c = i.detail.originalEvent, l = c.button === 0 && c.ctrlKey === !0, d = c.button === 2 || l;
|
|
10299
10305
|
(!o.modal || d) && (a.current = !0);
|
|
10300
10306
|
}),
|
|
@@ -10307,44 +10313,44 @@ const gh = Km, bh = hi, xh = Ym, wh = qm, yh = Qm, $h = To, Ch = eh, Sh = oh, Eh
|
|
|
10307
10313
|
"--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
|
|
10308
10314
|
}
|
|
10309
10315
|
}));
|
|
10310
|
-
}), jh = /* @__PURE__ */
|
|
10316
|
+
}), jh = /* @__PURE__ */ H((e, t) => {
|
|
10311
10317
|
const { __scopeDropdownMenu: n, ...r } = e, o = Be(n);
|
|
10312
|
-
return /* @__PURE__ */
|
|
10318
|
+
return /* @__PURE__ */ $(yh, W({}, o, r, {
|
|
10313
10319
|
ref: t
|
|
10314
10320
|
}));
|
|
10315
|
-
}), Lh = /* @__PURE__ */
|
|
10321
|
+
}), Lh = /* @__PURE__ */ H((e, t) => {
|
|
10316
10322
|
const { __scopeDropdownMenu: n, ...r } = e, o = Be(n);
|
|
10317
|
-
return /* @__PURE__ */
|
|
10323
|
+
return /* @__PURE__ */ $($h, W({}, o, r, {
|
|
10318
10324
|
ref: t
|
|
10319
10325
|
}));
|
|
10320
|
-
}), Fh = /* @__PURE__ */
|
|
10326
|
+
}), Fh = /* @__PURE__ */ H((e, t) => {
|
|
10321
10327
|
const { __scopeDropdownMenu: n, ...r } = e, o = Be(n);
|
|
10322
|
-
return /* @__PURE__ */
|
|
10328
|
+
return /* @__PURE__ */ $(Ch, W({}, o, r, {
|
|
10323
10329
|
ref: t
|
|
10324
10330
|
}));
|
|
10325
|
-
}), Vh = /* @__PURE__ */
|
|
10331
|
+
}), Vh = /* @__PURE__ */ H((e, t) => {
|
|
10326
10332
|
const { __scopeDropdownMenu: n, ...r } = e, o = Be(n);
|
|
10327
|
-
return /* @__PURE__ */
|
|
10333
|
+
return /* @__PURE__ */ $(Sh, W({}, o, r, {
|
|
10328
10334
|
ref: t
|
|
10329
10335
|
}));
|
|
10330
|
-
}), Bh = /* @__PURE__ */
|
|
10336
|
+
}), Bh = /* @__PURE__ */ H((e, t) => {
|
|
10331
10337
|
const { __scopeDropdownMenu: n, ...r } = e, o = Be(n);
|
|
10332
|
-
return /* @__PURE__ */
|
|
10338
|
+
return /* @__PURE__ */ $(Eh, W({}, o, r, {
|
|
10333
10339
|
ref: t
|
|
10334
10340
|
}));
|
|
10335
|
-
}), zh = /* @__PURE__ */
|
|
10341
|
+
}), zh = /* @__PURE__ */ H((e, t) => {
|
|
10336
10342
|
const { __scopeDropdownMenu: n, ...r } = e, o = Be(n);
|
|
10337
|
-
return /* @__PURE__ */
|
|
10343
|
+
return /* @__PURE__ */ $(_h, W({}, o, r, {
|
|
10338
10344
|
ref: t
|
|
10339
10345
|
}));
|
|
10340
|
-
}), Wh = /* @__PURE__ */
|
|
10346
|
+
}), Wh = /* @__PURE__ */ H((e, t) => {
|
|
10341
10347
|
const { __scopeDropdownMenu: n, ...r } = e, o = Be(n);
|
|
10342
|
-
return /* @__PURE__ */
|
|
10348
|
+
return /* @__PURE__ */ $(Th, W({}, o, r, {
|
|
10343
10349
|
ref: t
|
|
10344
10350
|
}));
|
|
10345
|
-
}), Hh = /* @__PURE__ */
|
|
10351
|
+
}), Hh = /* @__PURE__ */ H((e, t) => {
|
|
10346
10352
|
const { __scopeDropdownMenu: n, ...r } = e, o = Be(n);
|
|
10347
|
-
return /* @__PURE__ */
|
|
10353
|
+
return /* @__PURE__ */ $(Rh, W({}, o, r, {
|
|
10348
10354
|
ref: t,
|
|
10349
10355
|
style: {
|
|
10350
10356
|
...e.style,
|
|
@@ -10355,7 +10361,7 @@ const gh = Km, bh = hi, xh = Ym, wh = qm, yh = Qm, $h = To, Ch = eh, Sh = oh, Eh
|
|
|
10355
10361
|
"--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
|
|
10356
10362
|
}
|
|
10357
10363
|
}));
|
|
10358
|
-
}), Uh = Nh, Kh = Mh, Gh = Dh, Ei = kh, _i = jh, Ti = Lh, Ri = Fh, Pi = Vh, Oi = Bh, Ni = zh, Ii = Wh, Mi = Hh, Yh = Uh, Xh = Kh, qh =
|
|
10364
|
+
}), Uh = Nh, Kh = Mh, Gh = Dh, Ei = kh, _i = jh, Ti = Lh, Ri = Fh, Pi = Vh, Oi = Bh, Ni = zh, Ii = Wh, Mi = Hh, Yh = Uh, Xh = Kh, qh = z.forwardRef(({ className: e, inset: t, children: n, ...r }, o) => /* @__PURE__ */ v.jsxs(
|
|
10359
10365
|
Ii,
|
|
10360
10366
|
{
|
|
10361
10367
|
ref: o,
|
|
@@ -10372,7 +10378,7 @@ const gh = Km, bh = hi, xh = Ym, wh = qm, yh = Qm, $h = To, Ch = eh, Sh = oh, Eh
|
|
|
10372
10378
|
}
|
|
10373
10379
|
));
|
|
10374
10380
|
qh.displayName = Ii.displayName;
|
|
10375
|
-
const Zh =
|
|
10381
|
+
const Zh = z.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v.jsx(
|
|
10376
10382
|
Mi,
|
|
10377
10383
|
{
|
|
10378
10384
|
ref: n,
|
|
@@ -10384,7 +10390,7 @@ const Zh = B.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v.jsx(
|
|
|
10384
10390
|
}
|
|
10385
10391
|
));
|
|
10386
10392
|
Zh.displayName = Mi.displayName;
|
|
10387
|
-
const Di =
|
|
10393
|
+
const Di = z.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ v.jsx(Gh, { children: /* @__PURE__ */ v.jsx(
|
|
10388
10394
|
Ei,
|
|
10389
10395
|
{
|
|
10390
10396
|
ref: r,
|
|
@@ -10398,7 +10404,7 @@ const Di = B.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__
|
|
|
10398
10404
|
}
|
|
10399
10405
|
) }));
|
|
10400
10406
|
Di.displayName = Ei.displayName;
|
|
10401
|
-
const Ai =
|
|
10407
|
+
const Ai = z.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ v.jsx(
|
|
10402
10408
|
Ti,
|
|
10403
10409
|
{
|
|
10404
10410
|
ref: r,
|
|
@@ -10411,7 +10417,7 @@ const Ai = B.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */
|
|
|
10411
10417
|
}
|
|
10412
10418
|
));
|
|
10413
10419
|
Ai.displayName = Ti.displayName;
|
|
10414
|
-
const ki =
|
|
10420
|
+
const ki = z.forwardRef(({ className: e, children: t, checked: n, ...r }, o) => /* @__PURE__ */ v.jsxs(
|
|
10415
10421
|
Ri,
|
|
10416
10422
|
{
|
|
10417
10423
|
ref: o,
|
|
@@ -10428,7 +10434,7 @@ const ki = B.forwardRef(({ className: e, children: t, checked: n, ...r }, o) =>
|
|
|
10428
10434
|
}
|
|
10429
10435
|
));
|
|
10430
10436
|
ki.displayName = Ri.displayName;
|
|
10431
|
-
const Jh =
|
|
10437
|
+
const Jh = z.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ v.jsxs(
|
|
10432
10438
|
Pi,
|
|
10433
10439
|
{
|
|
10434
10440
|
ref: r,
|
|
@@ -10444,7 +10450,7 @@ const Jh = B.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__
|
|
|
10444
10450
|
}
|
|
10445
10451
|
));
|
|
10446
10452
|
Jh.displayName = Pi.displayName;
|
|
10447
|
-
const Qh =
|
|
10453
|
+
const Qh = z.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ v.jsx(
|
|
10448
10454
|
_i,
|
|
10449
10455
|
{
|
|
10450
10456
|
ref: r,
|
|
@@ -10453,7 +10459,7 @@ const Qh = B.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */
|
|
|
10453
10459
|
}
|
|
10454
10460
|
));
|
|
10455
10461
|
Qh.displayName = _i.displayName;
|
|
10456
|
-
const ev =
|
|
10462
|
+
const ev = z.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v.jsx(
|
|
10457
10463
|
Ni,
|
|
10458
10464
|
{
|
|
10459
10465
|
ref: n,
|
|
@@ -10826,22 +10832,22 @@ function lv(e) {
|
|
|
10826
10832
|
errorMessages: u,
|
|
10827
10833
|
maxImageSizeInKb: p,
|
|
10828
10834
|
...h
|
|
10829
|
-
} = e, f = K(null), [m, w] =
|
|
10830
|
-
E || (
|
|
10835
|
+
} = e, f = K(null), [m, w] = q(!1), [b, g] = q(""), [y, C] = q(!1), _ = !!u?.priorityError, M = u?.priorityError || b, T = !!M, E = i === "Disabled", k = i === "Uploading" || i === "Removing", O = i === "Finished", V = i === "Idle", I = (A) => A > 1024 ? `${(A / 1024).toFixed(1)}MB` : `${A}KB`, Q = (A) => {
|
|
10836
|
+
E || (V && f.current?.click(), o?.(A));
|
|
10831
10837
|
}, G = (A) => {
|
|
10832
10838
|
if (E)
|
|
10833
10839
|
return;
|
|
10834
10840
|
g("");
|
|
10835
|
-
const
|
|
10836
|
-
if (
|
|
10837
|
-
const P =
|
|
10841
|
+
const D = A.target.files?.[0];
|
|
10842
|
+
if (D) {
|
|
10843
|
+
const P = D.type, ee = D.size / 1024;
|
|
10838
10844
|
if (P !== "image/jpeg" && P !== "image/png") {
|
|
10839
10845
|
const S = u?.imageTypeError || "O tipo do arquivo enviado não é permitido, envie uma imagem";
|
|
10840
10846
|
g(S), a?.(S);
|
|
10841
10847
|
return;
|
|
10842
10848
|
}
|
|
10843
10849
|
if (p && ee > p) {
|
|
10844
|
-
const S = u?.imageSizeError || `A imagem enviada é maior do que o permitido, máximo de ${
|
|
10850
|
+
const S = u?.imageSizeError || `A imagem enviada é maior do que o permitido, máximo de ${I(
|
|
10845
10851
|
p
|
|
10846
10852
|
)}`;
|
|
10847
10853
|
g(S), a?.(S);
|
|
@@ -10850,7 +10856,7 @@ function lv(e) {
|
|
|
10850
10856
|
s?.(A);
|
|
10851
10857
|
}
|
|
10852
10858
|
};
|
|
10853
|
-
return
|
|
10859
|
+
return Z(() => {
|
|
10854
10860
|
t && r && g("");
|
|
10855
10861
|
}, [t, r]), /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
|
|
10856
10862
|
/* @__PURE__ */ v.jsxs(
|
|
@@ -10860,23 +10866,23 @@ function lv(e) {
|
|
|
10860
10866
|
"sl-w-full sl-justify-between sl-cursor-pointer",
|
|
10861
10867
|
"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",
|
|
10862
10868
|
"disabled:sl-border-primary-100 disabled:sl-bg-primary-100 disabled:sl-text-primary-500 disabled:sl-shadow-none",
|
|
10863
|
-
!
|
|
10864
|
-
!
|
|
10865
|
-
!
|
|
10869
|
+
!O && !T && !E && !k && "hover:sl-border-primary-500",
|
|
10870
|
+
!O && !T && k && "sl-border-primary-700",
|
|
10871
|
+
!O && !T && E && "sl-bg-primary-100 sl-border-transparent",
|
|
10866
10872
|
E && "sl-cursor-not-allowed",
|
|
10867
|
-
!
|
|
10868
|
-
!T &&
|
|
10873
|
+
!O && !T && m && "sl-bg-info-100 sl-border-info-400",
|
|
10874
|
+
!T && O && "sl-border-success-300",
|
|
10869
10875
|
T && "sl-border-danger-300"
|
|
10870
10876
|
),
|
|
10871
10877
|
onClick: Q,
|
|
10872
10878
|
onDragOver: (A) => {
|
|
10873
|
-
A.preventDefault(),
|
|
10879
|
+
A.preventDefault(), V && w(!0);
|
|
10874
10880
|
},
|
|
10875
10881
|
onDragLeave: (A) => {
|
|
10876
|
-
A.preventDefault(),
|
|
10882
|
+
A.preventDefault(), V && w(!1);
|
|
10877
10883
|
},
|
|
10878
10884
|
onDrop: (A) => {
|
|
10879
|
-
A.preventDefault(),
|
|
10885
|
+
A.preventDefault(), V && (f.current && (f.current.files = A.dataTransfer.files, f.current.dispatchEvent(new Event("change", { bubbles: !0 }))), w(!1));
|
|
10880
10886
|
},
|
|
10881
10887
|
"aria-disabled": E,
|
|
10882
10888
|
...h,
|
|
@@ -10889,7 +10895,7 @@ function lv(e) {
|
|
|
10889
10895
|
onChange: G,
|
|
10890
10896
|
className: "sl-hidden",
|
|
10891
10897
|
accept: "image/png, image/jpeg",
|
|
10892
|
-
disabled: !
|
|
10898
|
+
disabled: !V || E
|
|
10893
10899
|
}
|
|
10894
10900
|
),
|
|
10895
10901
|
/* @__PURE__ */ v.jsxs("div", { className: "sl-flex sl-items-center sl-gap-x-2 sl-gap-y-1 sl-flex-wrap", children: [
|
|
@@ -10996,21 +11002,21 @@ function lv(e) {
|
|
|
10996
11002
|
]
|
|
10997
11003
|
}
|
|
10998
11004
|
),
|
|
10999
|
-
!
|
|
11005
|
+
!O && !k && /* @__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: [
|
|
11000
11006
|
"Arquivos aceitos: PNG e JPEG. Tamanho máximo de cada arquivo:",
|
|
11001
11007
|
" ",
|
|
11002
|
-
|
|
11008
|
+
I(p || 0),
|
|
11003
11009
|
"."
|
|
11004
11010
|
] }) }),
|
|
11005
|
-
T && /* @__PURE__ */ v.jsx("p", { className: "sl-mt-1 sl-text-xs sl-text-danger-300", children:
|
|
11006
|
-
!
|
|
11011
|
+
T && /* @__PURE__ */ v.jsx("p", { className: "sl-mt-1 sl-text-xs sl-text-danger-300", children: M }),
|
|
11012
|
+
!M && (E || O) && (!!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: [
|
|
11007
11013
|
/* @__PURE__ */ v.jsxs("div", { className: "sl-mb-2 sl-flex sl-justify-between", children: [
|
|
11008
11014
|
/* @__PURE__ */ v.jsx("p", { className: "sl-text-primary-700 sl-text-sm", children: "Visualização da imagem" }),
|
|
11009
11015
|
/* @__PURE__ */ v.jsx(
|
|
11010
11016
|
Ql,
|
|
11011
11017
|
{
|
|
11012
11018
|
className: "sl-h-4 sl-w-4 sl-text-primary-500 sl-cursor-pointer",
|
|
11013
|
-
onClick: () =>
|
|
11019
|
+
onClick: () => C(!0)
|
|
11014
11020
|
}
|
|
11015
11021
|
)
|
|
11016
11022
|
] }),
|
|
@@ -11029,7 +11035,7 @@ function lv(e) {
|
|
|
11029
11035
|
imageUrl: r,
|
|
11030
11036
|
customImage: d,
|
|
11031
11037
|
onClose: () => {
|
|
11032
|
-
|
|
11038
|
+
C(!1);
|
|
11033
11039
|
}
|
|
11034
11040
|
}
|
|
11035
11041
|
)
|