@oncehub/ui-react 1.4.20-beta.1.0 → 1.4.22-beta.1.0
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/button/button.d.ts +0 -1
- package/dist/components/checkbox/checkbox.d.ts +0 -1
- package/dist/components/common/pseudo-checkbox/pseudo-checkbox.d.ts +0 -1
- package/dist/components/multi-line-input/multi-line-input.d.ts +0 -1
- package/dist/components/multi-select/multi-select.d.ts +0 -1
- package/dist/components/quick-multi-select/quick-multi-select.d.ts +0 -1
- package/dist/components/quick-select/quick-select.d.ts +0 -1
- package/dist/components/scrollbar/scrollbar.d.ts +0 -1
- package/dist/components/select/auto-complete-options.d.ts +0 -1
- package/dist/components/select/auto-complete.d.ts +0 -1
- package/dist/components/select/select-options.d.ts +0 -1
- package/dist/components/select/select.d.ts +0 -1
- package/dist/components/single-line-input/single-line-input.d.ts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/ui-react.es.js +524 -519
- package/dist/ui-react.es.js.map +1 -1
- package/dist/ui-react.umd.js +7 -7
- package/dist/ui-react.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/ui-react.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{--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: }::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-relative{position:relative}.tw-block{display:block}.tw-flex{display:flex}.tw-h-20{height:5rem}.tw-cursor-default{cursor:default}.tw-select-none{user-select:none}.tw-items-center{align-items:center}.tw-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tw-bg-\\[\\#EEEEEE\\]{--tw-bg-opacity: 1;background-color:rgb(238 238 238 / var(--tw-bg-opacity))}.tw-py-2{padding-top:.5rem;padding-bottom:.5rem}.tw-pl-4{padding-left:1rem}.tw-pr-4{padding-right:1rem}.tw-font-medium{font-weight:500}.tw-font-normal{font-weight:400}.tw-text-\\[\\#333333\\]{--tw-text-opacity: 1;color:rgb(51 51 51 / var(--tw-text-opacity))}._button_1q2ge_1{box-sizing:border-box;display:flex;cursor:pointer;align-items:center;justify-content:center;border-width:1px;border-style:solid;text-align:center;--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)}._button_1q2ge_1:hover{text-decoration-line:underline}._button_1q2ge_1:focus{text-decoration-line:underline}._button_1q2ge_1:disabled{cursor:default}._button_1q2ge_1:hover:disabled{text-decoration-line:none}._primary_1q2ge_5{border-color:transparent;--tw-bg-opacity: 1;background-color:rgb(0 107 177 / var(--tw-bg-opacity));font-weight:500;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity));outline-color:#006bb1}._primary_1q2ge_5:focus{outline-width:2px;outline-offset:3px}._primary_1q2ge_5:disabled{--tw-border-opacity: 1;border-color:rgb(200 200 200 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(200 200 200 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._secondary_1q2ge_12{--tw-border-opacity: 1;border-color:rgb(0 107 177 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));font-weight:400;--tw-text-opacity: 1;color:rgb(0 107 177 / var(--tw-text-opacity))}._secondary_1q2ge_12:hover{border-color:transparent;outline-style:solid;outline-width:2px;outline-offset:-2px;outline-color:#006bb1}._secondary_1q2ge_12:focus{border-color:transparent;outline-style:solid;outline-width:2px;outline-offset:-2px;outline-color:#006bb1}._secondary_1q2ge_12:disabled{--tw-border-opacity: 1;border-color:rgb(200 200 200 / var(--tw-border-opacity));--tw-text-opacity: 1;color:rgb(200 200 200 / var(--tw-text-opacity))}._secondary_1q2ge_12:disabled:hover{outline-width:0px}._secondary_1q2ge_12:disabled:focus{outline-width:0px}._small_1q2ge_19{min-height:35px;min-width:70px;padding:4px 22px;font-size:.875rem;line-height:1.25rem;line-height:22px}._small_1q2ge_19._rounded_1q2ge_22{border-radius:18px}._medium_1q2ge_26{min-height:40px;min-width:74px;padding:7px 22px;font-size:.875rem;line-height:1.25rem;line-height:22px}._medium_1q2ge_26._rounded_1q2ge_22{border-radius:20px}._large_1q2ge_33{min-height:44px;min-width:94px;padding-left:1.5rem;padding-right:1.5rem;padding-top:8px;padding-bottom:8px;font-size:1rem;line-height:1.5rem;line-height:24px}._large_1q2ge_33._rounded_1q2ge_22{border-radius:22px}._squared_1q2ge_40{border-radius:.25rem}._checkboxLayout_bt7qx_1{display:inline-flex;width:100%;align-items:center;white-space:nowrap;vertical-align:middle}._checkboxLayout_bt7qx_1 ._checkboxLabel_bt7qx_4{display:flex;width:100%;cursor:pointer;align-items:baseline;gap:.5rem;font-size:.875rem;line-height:1.25rem;line-height:22px;letter-spacing:0;--tw-text-opacity: 1;color:rgb(51 51 51 / var(--tw-text-opacity))}._checkboxLayout_bt7qx_1 ._checkboxLabel_bt7qx_4>span{white-space:normal;font-size:.875rem;line-height:1.25rem;line-height:22px;letter-spacing:0;--tw-text-opacity: 1;color:rgb(51 51 51 / var(--tw-text-opacity))}._checkboxLayout_bt7qx_1 ._checkboxLabel_bt7qx_4 ._checkboxInnerContainer_bt7qx_10{position:relative;top:2px;display:inline-block;height:1rem;width:1rem;flex-shrink:0;cursor:pointer;white-space:nowrap;border-width:0px;vertical-align:middle;line-height:0;--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);outline-width:0px}._checkboxLayout_bt7qx_1 ._checkboxLabel_bt7qx_4 ._checkboxInnerContainer_bt7qx_10 ._checkboxInput_bt7qx_13{position:absolute;bottom:0;left:0;height:0px;width:0px;appearance:none;border-width:0px;padding:0;opacity:0;outline-width:0px}._checkboxLayout_bt7qx_1 ._checkboxLabel_bt7qx_4 ._checkboxInnerContainer_bt7qx_10 ._checkboxInput_bt7qx_13:checked+._checkboxFrame_bt7qx_16{--tw-border-opacity: 1;border-color:rgb(0 107 177 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(0 107 177 / var(--tw-bg-opacity))}._checkboxLayout_bt7qx_1 ._checkboxLabel_bt7qx_4 ._checkboxInnerContainer_bt7qx_10 ._checkboxInput_bt7qx_13:checked+._checkboxFrame_bt7qx_16 ._checkboxCheckMark_bt7qx_19{opacity:1}._checkboxLayout_bt7qx_1 ._checkboxLabel_bt7qx_4 ._checkboxInnerContainer_bt7qx_10 ._checkboxInput_bt7qx_13:checked+._checkboxFrame_bt7qx_16 ._checkboxCheckMark_bt7qx_19 ._checkboxCheckMarkPath_bt7qx_22{animation:.18s linear 0ms _checkboxUncheckedChecked_bt7qx_1;stroke-dashoffset:0}._checkboxLayout_bt7qx_1 ._checkboxLabel_bt7qx_4 ._checkboxInnerContainer_bt7qx_10 ._checkboxInput_bt7qx_13:disabled+._checkboxFrame_bt7qx_16{--tw-border-opacity: 1;border-color:rgb(228 228 228 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(249 249 249 / var(--tw-bg-opacity))}._checkboxLayout_bt7qx_1 ._checkboxLabel_bt7qx_4 ._checkboxInnerContainer_bt7qx_10 ._checkboxFrame_bt7qx_16{position:absolute;inset:0;box-sizing:border-box;border-radius:3px;border-width:1px;border-style:solid;--tw-border-opacity: 1;border-color:rgb(156 156 156 / var(--tw-border-opacity));background-color:transparent}._checkboxLayout_bt7qx_1 ._checkboxLabel_bt7qx_4 ._checkboxInnerContainer_bt7qx_10 ._checkboxFrame_bt7qx_16 ._checkboxCheckMark_bt7qx_19{position:absolute;inset:0;width:100%}._checkboxLayout_bt7qx_1 ._checkboxLabel_bt7qx_4 ._checkboxInnerContainer_bt7qx_10 ._checkboxFrame_bt7qx_16 ._checkboxCheckMark_bt7qx_19 ._checkboxCheckMarkPath_bt7qx_22{stroke-width:3px;stroke-dashoffset:23;stroke-dasharray:23}._checkboxLayout_bt7qx_1 ._checkboxLabel_bt7qx_4 ._checkboxInnerContainer_bt7qx_10:focus-visible ._checkboxFrame_bt7qx_16{outline-style:solid;outline-width:2px;outline-offset:-1px;outline-color:#006bb1}._checkboxLayout_bt7qx_1 ._checkboxLabel_bt7qx_4 ._visuallyHidden_bt7qx_43{position:absolute;width:0px;height:0px;margin:0;padding:0;overflow:hidden;clip:rect(0,0,0,0);border:0}._checkboxLayout_bt7qx_1._checkboxDisabled_bt7qx_53{pointer-events:none;cursor:default}._checkboxLayout_bt7qx_1._checkboxDisabled_bt7qx_53 ._checkboxLabel_bt7qx_4 ._checkboxInnerContainer_bt7qx_10 ._checkboxFrame_bt7qx_16{--tw-border-opacity: 1;border-color:rgb(228 228 228 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(249 249 249 / var(--tw-bg-opacity))}._checkboxLayout_bt7qx_1._medium_bt7qx_59 ._checkboxLabel_bt7qx_4>span{width:calc(100% - 24px);font-size:.875rem;line-height:1.25rem}._checkboxLayout_bt7qx_1._medium_bt7qx_59 ._checkboxLabel_bt7qx_4 ._checkboxInnerContainer_bt7qx_10{height:1rem;width:1rem}._checkboxLayout_bt7qx_1._large_bt7qx_65 ._checkboxLabel_bt7qx_4>span{width:calc(100% - 27px);font-size:1rem;line-height:1.5rem}._checkboxLayout_bt7qx_1._large_bt7qx_65 ._checkboxLabel_bt7qx_4 ._checkboxInnerContainer_bt7qx_10{top:4px;height:1.25rem;width:1.25rem}@keyframes _checkboxUncheckedChecked_bt7qx_1{0%,50%{stroke-dashoffset:23}50%{animation-timing-function:cubic-bezier(0,0,.2,.1)}to{stroke-dashoffset:0}}._textInputWrapper_1i9m6_1{width:100%}._textInputWrapper_1i9m6_1 ._textInput_1i9m6_1{box-sizing:border-box;display:block;height:2.5rem;max-height:225px;width:100%;resize:none;border-width:0px;border-bottom-width:1px;--tw-border-opacity: 1;border-color:rgb(51 51 51 / var(--tw-border-opacity));padding-left:10px;padding-right:10px;padding-bottom:.5rem;padding-top:7px;font-size:1rem;line-height:1.5rem;--tw-text-opacity: 1;color:rgb(51 51 51 / var(--tw-text-opacity));outline:2px solid transparent;outline-offset:2px}._textInputWrapper_1i9m6_1 ._textInput_1i9m6_1:focus{border-bottom-width:2px;--tw-border-opacity: 1;border-color:rgb(0 107 177 / var(--tw-border-opacity));padding-bottom:7px}._multiSelectContainer_lh9wi_1,._multiSelectContainer_lh9wi_1 ._listOptionsWrap_lh9wi_4{position:relative;width:100%}._multiSelectContainer_lh9wi_1 ._listOptionsWrap_lh9wi_4 ._selectedValuesWrap_lh9wi_7{position:relative;height:2.5rem;width:100%}._multiSelectContainer_lh9wi_1 ._listOptionsWrap_lh9wi_4 ._selectedValuesWrap_lh9wi_7 ._selectedValues_lh9wi_7{box-sizing:border-box;display:block;height:100%;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-width:0px;border-bottom-width:1px;border-style:solid;--tw-border-opacity: 1;border-bottom-color:rgb(51 51 51 / var(--tw-border-opacity));padding-bottom:.5rem;padding-left:10px;padding-right:2.75rem;padding-top:.5rem;font-size:1rem;line-height:1rem;--tw-text-opacity: 1;color:rgb(51 51 51 / var(--tw-text-opacity))}._multiSelectContainer_lh9wi_1 ._listOptionsWrap_lh9wi_4 ._selectedValuesWrap_lh9wi_7 ._selectedValues_lh9wi_7::placeholder{--tw-placeholder-opacity: 1;color:rgb(102 102 102 / var(--tw-placeholder-opacity))}._multiSelectContainer_lh9wi_1 ._listOptionsWrap_lh9wi_4 ._selectedValuesWrap_lh9wi_7 ._selectedValues_lh9wi_7:focus-within{outline:2px solid transparent;outline-offset:2px}._multiSelectContainer_lh9wi_1 ._listOptionsWrap_lh9wi_4 ._selectedValuesWrap_lh9wi_7 ._selectedValues_lh9wi_7:focus{border-bottom-width:2px;--tw-border-opacity: 1;border-color:rgb(0 107 177 / var(--tw-border-opacity));padding-bottom:7px}._multiSelectContainer_lh9wi_1 ._listOptionsWrap_lh9wi_4 ._selectedValuesWrap_lh9wi_7 ._selectedValues_lh9wi_7:focus-visible{outline:2px solid transparent;outline-offset:2px}._multiSelectContainer_lh9wi_1 ._listOptionsWrap_lh9wi_4 ._selectedValuesWrap_lh9wi_7 ._selectedValues_lh9wi_7._focused_lh9wi_13{border-bottom-width:2px;--tw-border-opacity: 1;border-color:rgb(0 107 177 / var(--tw-border-opacity));padding-bottom:7px;outline:2px solid transparent;outline-offset:2px}._multiSelectContainer_lh9wi_1 ._listOptionsWrap_lh9wi_4 ._selectedValuesWrap_lh9wi_7 ._selectedValues_lh9wi_7._placeholder_lh9wi_16{--tw-text-opacity: 1;color:rgb(102 102 102 / var(--tw-text-opacity))}._multiSelectContainer_lh9wi_1 ._listOptionsWrap_lh9wi_4 ._selectedValuesWrap_lh9wi_7 ._dropDownIcon_lh9wi_19{position:absolute;right:.5rem;top:50%;display:flex;height:100%;width:1.75rem;--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));cursor:pointer;align-items:center;justify-content:center}._optionsListContainer_lh9wi_23{position:absolute;z-index:10;margin-top:0;max-height:293px;width:100%;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));padding-bottom:4rem;font-size:.875rem;line-height:1.25rem;line-height:22px;--tw-shadow: 0 1px 6px 0 rgba(0,0,0,.5);--tw-shadow-colored: 0 1px 6px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}._optionsListContainer_lh9wi_23:focus{outline:2px solid transparent;outline-offset:2px}._optionsListContainer_lh9wi_23._top_lh9wi_26{transform:translateY(calc(-100% - 40px))}._optionsListContainer_lh9wi_23 ._optionsListWrap_lh9wi_29{max-height:225px;overflow:auto;padding-top:1rem;padding-bottom:1rem}._optionsListContainer_lh9wi_23 ._optionsListWrap_lh9wi_29 ._searchInputWrap_lh9wi_32{margin-bottom:.5rem;height:2.5rem;padding-left:10px;padding-right:10px}._optionsListContainer_lh9wi_23 ._optionsListWrap_lh9wi_29 ._searchInputWrap_lh9wi_32 ._searchInput_lh9wi_32{box-sizing:border-box;height:100%;width:100%;padding-top:.5rem;padding-bottom:.5rem;padding-left:10px;outline-style:solid;outline-width:1px;outline-offset:-2px;outline-color:#c8c8c8}._optionsListContainer_lh9wi_23 ._optionsListWrap_lh9wi_29 ul{margin:0;padding:0}._optionsListContainer_lh9wi_23 ._optionsListWrap_lh9wi_29 ._optionsList_lh9wi_23{box-sizing:border-box;display:flex;list-style-type:none;align-items:flex-start;gap:.5rem;padding-left:10px;padding-right:10px;padding-top:.5rem;padding-bottom:.5rem}._optionsListContainer_lh9wi_23 ._optionsListWrap_lh9wi_29 ._optionsList_lh9wi_23 span{word-break:break-word;display:block;width:calc(100% - 22px);overflow-wrap:break-word;font-size:.875rem;line-height:1.25rem;line-height:22px}._optionsListContainer_lh9wi_23 ._optionsListWrap_lh9wi_29 ._optionsList_lh9wi_23:hover,._optionsListContainer_lh9wi_23 ._optionsListWrap_lh9wi_29 ._optionsList_lh9wi_23._focused_lh9wi_13{--tw-bg-opacity: 1;background-color:rgb(238 238 238 / var(--tw-bg-opacity))}._optionsListContainer_lh9wi_23 ._btnContainer_lh9wi_54{position:absolute;left:0;right:0;box-sizing:border-box;display:flex;height:64px;width:100%;align-items:center;justify-content:flex-end;border-width:0px;border-top-width:1px;border-style:solid;--tw-border-opacity: 1;border-top-color:rgb(200 200 200 / var(--tw-border-opacity));padding-left:18px;padding-right:18px}._optionsListContainer_lh9wi_23 ._btnContainer_lh9wi_54 ._hiddenButton_lh9wi_57{position:absolute;left:-9999px;height:0px;width:0px;opacity:0}._optionsListContainer_lh9wi_23 ::-webkit-scrollbar{width:6px}._optionsListContainer_lh9wi_23 ::-webkit-scrollbar-thumb{background-color:#a9a9a9;border-radius:6px}._announcement_lh9wi_70{pointer-events:none;height:0px;overflow:hidden;opacity:0}._pseudoCheckbox_z8j4c_1{position:relative;top:3px;box-sizing:border-box;height:1rem;width:1rem;border-radius:3px;border-width:1px;border-style:solid;--tw-border-opacity: 1;border-color:rgb(156 156 156 / var(--tw-border-opacity))}._pseudoCheckbox_z8j4c_1 ._checkboxCheckMark_z8j4c_4{position:absolute;inset:0;width:100%}._pseudoCheckbox_z8j4c_1 ._checkboxCheckMark_z8j4c_4 ._checkboxCheckMarkPath_z8j4c_7{stroke-width:3px;stroke-dashoffset:23;stroke-dasharray:23}._pseudoCheckbox_z8j4c_1._checked_z8j4c_12{--tw-border-opacity: 1;border-color:rgb(0 107 177 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(0 107 177 / var(--tw-bg-opacity))}._pseudoCheckbox_z8j4c_1._checked_z8j4c_12 ._checkboxCheckMark_z8j4c_4{opacity:1}._pseudoCheckbox_z8j4c_1._checked_z8j4c_12 ._checkboxCheckMark_z8j4c_4 ._checkboxCheckMarkPath_z8j4c_7{animation:.18s linear 0ms _checkboxUncheckedChecked_z8j4c_1;stroke-dashoffset:0}._pseudoCheckbox_z8j4c_1._checkboxDisabled_z8j4c_22{pointer-events:none;cursor:default;--tw-border-opacity: 1;border-color:rgb(228 228 228 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(249 249 249 / var(--tw-bg-opacity))}@keyframes _checkboxUncheckedChecked_z8j4c_1{0%,50%{stroke-dashoffset:23}50%{animation-timing-function:cubic-bezier(0,0,.2,.1)}to{stroke-dashoffset:0}}._multiSelectContainer_1nq57_1{position:relative}._multiSelectContainer_1nq57_1 ._quickOptionsWrap_1nq57_4{margin-right:-.75rem;display:flex;flex-direction:row;flex-wrap:wrap;gap:.75rem}._multiSelectContainer_1nq57_1 ._quickOptionsWrap_1nq57_4 li{word-break:break-word;position:relative;box-sizing:border-box;display:inline-flex;min-width:80px;cursor:pointer;list-style-type:none;align-items:center;overflow-wrap:break-word;border-radius:4px;border-width:1px;border-style:solid;--tw-border-opacity: 1;border-color:rgb(0 107 177 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));padding:8px 14px;font-size:1rem;line-height:1.5rem;--tw-text-opacity: 1;color:rgb(0 107 177 / var(--tw-text-opacity))}._multiSelectContainer_1nq57_1 ._quickOptionsWrap_1nq57_4 li:hover,._multiSelectContainer_1nq57_1 ._quickOptionsWrap_1nq57_4 li:focus-visible,._multiSelectContainer_1nq57_1 ._quickOptionsWrap_1nq57_4 li._selected_1nq57_11{outline-style:solid;outline-width:2px;outline-offset:-2px;outline-color:#006bb1}._multiSelectContainer_1nq57_1 ._quickOptionsWrap_1nq57_4 li:hover,._multiSelectContainer_1nq57_1 ._quickOptionsWrap_1nq57_4 li:focus-visible{text-decoration-line:underline}._multiSelectContainer_1nq57_1 ._quickOptionsWrap_1nq57_4 li._disabled_1nq57_17{pointer-events:none!important;cursor:default!important;--tw-border-opacity: 1 !important;border-color:rgb(228 228 228 / var(--tw-border-opacity))!important;--tw-text-opacity: 1 !important;color:rgb(51 51 51 / var(--tw-text-opacity))!important;text-decoration-line:none!important;outline-width:0px!important}._singleSelectWrapper_j8hf5_1{position:relative}._singleSelectWrapper_j8hf5_1 ._quickOption_j8hf5_4{display:flex;flex-direction:row;flex-wrap:wrap;gap:.75rem}._singleSelectWrapper_j8hf5_1 ._quickOption_j8hf5_4 li{position:relative;box-sizing:border-box;display:inline-flex;min-height:44px;min-width:80px;cursor:pointer;list-style-type:none;align-items:center;word-break:break-all;border-radius:4px;border-width:1px;border-style:solid;--tw-border-opacity: 1;border-color:rgb(0 107 177 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));padding-left:1.5rem;padding-right:1.5rem;padding-top:9px;padding-bottom:9px;text-align:center;font-size:1rem;line-height:1.5rem;--tw-text-opacity: 1;color:rgb(0 107 177 / var(--tw-text-opacity))}._singleSelectWrapper_j8hf5_1 ._quickOption_j8hf5_4 li:hover,._singleSelectWrapper_j8hf5_1 ._quickOption_j8hf5_4 li:focus-visible,._singleSelectWrapper_j8hf5_1 ._quickOption_j8hf5_4 li._selected_j8hf5_10{outline-style:solid;outline-width:2px;outline-offset:-2px;outline-color:#006bb1}._singleSelectWrapper_j8hf5_1 ._quickOption_j8hf5_4 li:hover,._singleSelectWrapper_j8hf5_1 ._quickOption_j8hf5_4 li:focus-visible{text-decoration-line:underline}._singleSelectWrapper_j8hf5_1 ._quickOption_j8hf5_4 li ._triangle_j8hf5_16{position:absolute;right:0;top:0;display:inline-block;height:0px;width:0px;border-width:11px;border-style:solid;border-bottom-color:transparent;border-left-color:transparent;border-right-color:rgb(0 107 177 / var(--tw-border-opacity));--tw-border-opacity: 1;border-top-color:rgb(0 107 177 / var(--tw-border-opacity))}._singleSelectWrapper_j8hf5_1 ._quickOption_j8hf5_4 li ._triangle_j8hf5_16 ._loader_j8hf5_19{position:absolute;left:0;top:-10px;height:10px;width:10px}@keyframes _tw-spin_j8hf5_1{to{transform:rotate(360deg)}}._singleSelectWrapper_j8hf5_1 ._quickOption_j8hf5_4 li ._triangle_j8hf5_16 ._loader_j8hf5_19{animation:_tw-spin_j8hf5_1 1s linear infinite;border-radius:50%;border-width:2px;border-style:solid;border-color:rgb(255 255 255 / var(--tw-border-opacity));--tw-border-opacity: 1;border-right-color:rgb(0 107 177 / var(--tw-border-opacity))}._singleSelectWrapper_j8hf5_1 ._quickOption_j8hf5_4 li ._triangle_j8hf5_16 ._checkmarkWrap_j8hf5_22{position:absolute;left:-1px;top:-9px}._singleSelectWrapper_j8hf5_1 ._quickOption_j8hf5_4 li ._triangle_j8hf5_16 ._checkmarkWrap_j8hf5_22 ._checkmark_j8hf5_22{display:block;animation:_fill_j8hf5_1 .4s ease-in-out .4s forwards,_scale_j8hf5_1 .3s ease-in-out .9s both;border-radius:50%;--tw-shadow: inset 0px 0px 0px transparent;--tw-shadow-colored: inset 0px 0px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);stroke-miterlimit:10}._singleSelectWrapper_j8hf5_1 ._quickOption_j8hf5_4 li ._triangle_j8hf5_16 ._checkmarkWrap_j8hf5_22 ._checkmark_j8hf5_22 ._checkmarkCheck_j8hf5_29{transform-origin:50% 50%;animation:_stroke_j8hf5_1 .8s cubic-bezier(.5,0,.45,1) .2s forwards;stroke-dasharray:48;stroke-dashoffset:48}._singleSelectWrapper_j8hf5_1 ._quickOption_j8hf5_4 li._disabled_j8hf5_34{pointer-events:none!important;cursor:default!important;--tw-border-opacity: 1 !important;border-color:rgb(228 228 228 / var(--tw-border-opacity))!important;--tw-text-opacity: 1 !important;color:rgb(51 51 51 / var(--tw-text-opacity))!important;text-decoration-line:none!important;outline-width:0px!important}@keyframes _scale_j8hf5_1{0%,to{transform:none}50%{transform:scale3d(1.1,1.1,1)}}@keyframes _fill_j8hf5_1{to{box-shadow:inset 0 0 0 30px transparent}}@keyframes _stroke_j8hf5_1{to{stroke-dashoffset:0}}._scrollbarContainer_40vsr_1{overflow-y:auto}._scrollbarContainer_40vsr_1::-webkit-scrollbar{width:10px}._scrollbarContainer_40vsr_1::-webkit-scrollbar-track{display:none}._scrollbarContainer_40vsr_1::-webkit-scrollbar-thumb{background-color:#ccc!important;border:2px #fff solid;border-radius:15px}._scrollbarContainer_40vsr_1{@supports not selector(::-webkit-scrollbar){scrollbar-width:thin;scrollbar-color:#ccc #0000}}._select_12thw_1,._select_12thw_1 ._selectContainer_12thw_4{position:relative}._select_12thw_1 ._selectContainer_12thw_4 ._selectButton_12thw_7{position:relative;box-sizing:border-box;height:2.5rem;width:100%;cursor:pointer;border-left-width:0px;border-right-width:0px;border-bottom-width:1px;border-top-width:1px;border-style:solid;border-top-color:transparent;--tw-border-opacity: 1;border-bottom-color:rgb(51 51 51 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));padding-top:.375rem;padding-bottom:.375rem;padding-left:10px;padding-right:2rem;text-align:left;font-size:1rem;line-height:1.5rem;--tw-text-opacity: 1;color:rgb(51 51 51 / var(--tw-text-opacity))}._select_12thw_1 ._selectContainer_12thw_4 ._selectButton_12thw_7:focus{border-bottom-width:2px;border-top-width:2px;--tw-border-opacity: 1;border-bottom-color:rgb(0 107 177 / var(--tw-border-opacity));padding-top:5px;padding-bottom:5px;outline:2px solid transparent;outline-offset:2px;--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)}._select_12thw_1 ._selectContainer_12thw_4 ._selectButton_12thw_7._open_12thw_13{border-bottom-width:2px;border-top-width:2px;--tw-border-opacity: 1;border-bottom-color:rgb(0 107 177 / var(--tw-border-opacity))}._select_12thw_1 ._selectContainer_12thw_4 ._selectButton_12thw_7 ._selectValue_12thw_16{display:flex;align-items:center}._select_12thw_1 ._selectContainer_12thw_4 ._selectButton_12thw_7 ._selectValue_12thw_16 ._seletIcon_12thw_19{margin-right:.5rem;height:1.25rem;width:1.25rem;flex-shrink:0}._select_12thw_1 ._selectContainer_12thw_4 ._selectButton_12thw_7 ._selectValue_12thw_16 ._selectText_12thw_22{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._select_12thw_1 ._selectContainer_12thw_4 ._selectButton_12thw_7 ._chevronDownIconSpan_12thw_25{pointer-events:none;position:absolute;top:0;bottom:0;right:0;display:flex;align-items:center;padding-right:.5rem}._select_12thw_1 ._selectContainer_12thw_4 ._selectButton_12thw_7 ._chevronDownIconSpan_12thw_25 ._chevronDownIcon_12thw_25{height:1.25rem;width:1.25rem;--tw-text-opacity: 1;color:rgb(51 51 51 / var(--tw-text-opacity))}._leave_12thw_32{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.1s;transition-timing-function:cubic-bezier(.4,0,1,1)}._leaveFrom_12thw_36{opacity:1}._leaveTo_12thw_40{opacity:0}._selectOptions_12thw_44{margin:0;max-height:200px;width:100%;list-style-type:none;overflow:auto;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));padding:10px 0;font-size:1rem;line-height:1.5rem;--tw-shadow: 0 1px 6px 0 rgba(0,0,0,.5);--tw-shadow-colored: 0 1px 6px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}@media (min-width: 640px){._selectOptions_12thw_44{font-size:.875rem;line-height:1.25rem}}._selectOptions_12thw_44::-webkit-scrollbar-thumb{border-radius:.375rem;--tw-bg-opacity: 1;background-color:rgb(169 169 169 / var(--tw-bg-opacity))}._selectOptions_12thw_44::-webkit-scrollbar{width:6px}._selectOptions_12thw_44:focus{outline:2px solid transparent;outline-offset:2px}._autocomplete_1ue23_1{position:relative}._autocomplete_1ue23_1 ._autocompleteContainer_1ue23_4{position:relative;height:2.5rem;width:100%;cursor:default;overflow:hidden;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));text-align:left;--tw-text-opacity: 1;color:rgb(51 51 51 / var(--tw-text-opacity))}._autocomplete_1ue23_1 ._autocompleteContainer_1ue23_4._disable_1ue23_7{--tw-text-opacity: 1;color:rgb(167 167 167 / var(--tw-text-opacity))}._autocomplete_1ue23_1 ._autocompleteContainer_1ue23_4:focus{outline:2px solid transparent;outline-offset:2px}._autocomplete_1ue23_1 ._autocompleteContainer_1ue23_4: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);--tw-ring-opacity: 1;--tw-ring-color: rgb(223 223 223 / var(--tw-ring-opacity));--tw-ring-offset-width: 2px;--tw-ring-offset-color: #DFDFDF }._autocomplete_1ue23_1 ._autocompleteContainer_1ue23_4 ._autocompleteInput_1ue23_16{box-sizing:border-box;height:100%;width:100%;border-width:0px;border-bottom-width:1px;--tw-border-opacity: 1;border-bottom-color:rgb(51 51 51 / var(--tw-border-opacity));padding-bottom:.5rem;padding-left:10px;padding-right:2.5rem;padding-top:.5rem;font-size:1rem;line-height:1.25rem}._autocomplete_1ue23_1 ._autocompleteContainer_1ue23_4 ._autocompleteInput_1ue23_16::placeholder{--tw-placeholder-opacity: 1;color:rgb(102 102 102 / var(--tw-placeholder-opacity))}._autocomplete_1ue23_1 ._autocompleteContainer_1ue23_4 ._autocompleteInput_1ue23_16{--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)}._autocomplete_1ue23_1 ._autocompleteContainer_1ue23_4 ._autocompleteInput_1ue23_16:focus{border-bottom-width:2px;--tw-border-opacity: 1;border-bottom-color:rgb(0 107 177 / var(--tw-border-opacity));padding-bottom:7px;outline:2px solid transparent;outline-offset:2px;--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)}._autocomplete_1ue23_1 ._autocompleteContainer_1ue23_4 ._autocompleteInput_1ue23_16: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(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)}._autocomplete_1ue23_1 ._autocompleteContainer_1ue23_4 ._autocompleteButton_1ue23_25{position:absolute;top:0;bottom:0;right:0;display:flex;align-items:center;border-width:0px;background-color:transparent;padding-right:.5rem}._autocomplete_1ue23_1 ._autocompleteContainer_1ue23_4 ._autocompleteButton_1ue23_25 ._chevronDownIcon_1ue23_28{height:1.25rem;width:1.25rem;--tw-text-opacity: 1;color:rgb(51 51 51 / var(--tw-text-opacity))}._autocomplete_1ue23_1 ._autocompleteContainer_1ue23_4 ._autocompleteButton_1ue23_25 ._chevronDownIcon_1ue23_28._disable_1ue23_7{--tw-text-opacity: 1;color:rgb(167 167 167 / var(--tw-text-opacity))}._leave_1ue23_35{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.1s;transition-timing-function:cubic-bezier(.4,0,1,1)}._leaveFrom_1ue23_39{opacity:1}._leaveTo_1ue23_43{opacity:0}._autocompleteOptions_1ue23_47{margin:0;max-height:210px;width:100%;list-style-type:none;overflow:auto;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));padding:10px 0;font-size:1rem;line-height:1.5rem;--tw-shadow: 0 1px 6px 0 rgba(0,0,0,.5);--tw-shadow-colored: 0 1px 6px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}@media (min-width: 640px){._autocompleteOptions_1ue23_47{font-size:.875rem;line-height:1.25rem}}._autocompleteOptions_1ue23_47::-webkit-scrollbar-thumb{border-radius:.375rem;--tw-bg-opacity: 1;background-color:rgb(169 169 169 / var(--tw-bg-opacity))}._autocompleteOptions_1ue23_47::-webkit-scrollbar{width:6px}._autocompleteOptions_1ue23_47:focus{outline:2px solid transparent;outline-offset:2px}._textInputWrapper_gym4n_1{width:100%}._textInputWrapper_gym4n_1 ._textInput_gym4n_1{display:block;height:2.5rem;width:100%;border-width:0px;border-bottom-width:1px;--tw-border-opacity: 1;border-color:rgb(51 51 51 / var(--tw-border-opacity));padding-left:10px;padding-right:10px;padding-bottom:.5rem;padding-top:7px;font-size:1rem;line-height:1.5rem;--tw-text-opacity: 1;color:rgb(51 51 51 / var(--tw-text-opacity));outline:2px solid transparent;outline-offset:2px}._textInputWrapper_gym4n_1 ._textInput_gym4n_1:focus{border-bottom-width:2px;--tw-border-opacity: 1;border-color:rgb(0 107 177 / var(--tw-border-opacity));padding-bottom:7px}")),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
2
2
|
import * as rt from "react";
|
|
3
|
-
import
|
|
3
|
+
import ue, { forwardRef as dt, useState as le, useEffect as re, useRef as j, useLayoutEffect as No, Fragment as ot, isValidElement as Ao, cloneElement as Do, createElement as $o, createContext as ht, useContext as ft, useMemo as _e, useReducer as rr, createRef as or, useCallback as yt } from "react";
|
|
4
4
|
import { createPortal as wn } from "react-dom";
|
|
5
5
|
var Mo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, pn = { exports: {} }, Tt = {};
|
|
6
6
|
/**
|
|
@@ -17,16 +17,16 @@ function Wo() {
|
|
|
17
17
|
if (Vn)
|
|
18
18
|
return Tt;
|
|
19
19
|
Vn = 1;
|
|
20
|
-
var e =
|
|
21
|
-
function i(
|
|
22
|
-
var m, h = {}, l = null,
|
|
23
|
-
v !== void 0 && (l = "" + v), b.key !== void 0 && (l = "" + b.key), b.ref !== void 0 && (
|
|
20
|
+
var e = ue, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, c = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
21
|
+
function i(d, b, v) {
|
|
22
|
+
var m, h = {}, l = null, f = null;
|
|
23
|
+
v !== void 0 && (l = "" + v), b.key !== void 0 && (l = "" + b.key), b.ref !== void 0 && (f = b.ref);
|
|
24
24
|
for (m in b)
|
|
25
25
|
r.call(b, m) && !c.hasOwnProperty(m) && (h[m] = b[m]);
|
|
26
|
-
if (
|
|
27
|
-
for (m in b =
|
|
26
|
+
if (d && d.defaultProps)
|
|
27
|
+
for (m in b = d.defaultProps, b)
|
|
28
28
|
h[m] === void 0 && (h[m] = b[m]);
|
|
29
|
-
return { $$typeof: t, type:
|
|
29
|
+
return { $$typeof: t, type: d, key: l, ref: f, props: h, _owner: o.current };
|
|
30
30
|
}
|
|
31
31
|
return Tt.Fragment = n, Tt.jsx = i, Tt.jsxs = i, Tt;
|
|
32
32
|
}
|
|
@@ -43,7 +43,7 @@ var Ct = {};
|
|
|
43
43
|
var Bn;
|
|
44
44
|
function Vo() {
|
|
45
45
|
return Bn || (Bn = 1, process.env.NODE_ENV !== "production" && function() {
|
|
46
|
-
var e =
|
|
46
|
+
var e = ue, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), d = Symbol.for("react.context"), b = Symbol.for("react.forward_ref"), v = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), l = Symbol.for("react.lazy"), f = Symbol.for("react.offscreen"), a = Symbol.iterator, u = "@@iterator";
|
|
47
47
|
function p(s) {
|
|
48
48
|
if (s === null || typeof s != "object")
|
|
49
49
|
return null;
|
|
@@ -60,34 +60,34 @@ function Vo() {
|
|
|
60
60
|
}
|
|
61
61
|
function x(s, w, E) {
|
|
62
62
|
{
|
|
63
|
-
var D = g.ReactDebugCurrentFrame,
|
|
64
|
-
|
|
65
|
-
var
|
|
63
|
+
var D = g.ReactDebugCurrentFrame, Z = D.getStackAddendum();
|
|
64
|
+
Z !== "" && (w += "%s", E = E.concat([Z]));
|
|
65
|
+
var se = E.map(function(K) {
|
|
66
66
|
return String(K);
|
|
67
67
|
});
|
|
68
|
-
|
|
68
|
+
se.unshift("Warning: " + w), Function.prototype.apply.call(console[s], console, se);
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
var y = !1, F = !1, R = !1, q = !1, M = !1, C;
|
|
72
72
|
C = Symbol.for("react.module.reference");
|
|
73
73
|
function z(s) {
|
|
74
|
-
return !!(typeof s == "string" || typeof s == "function" || s === r || s === c || M || s === o || s === v || s === m || q || s ===
|
|
74
|
+
return !!(typeof s == "string" || typeof s == "function" || s === r || s === c || M || s === o || s === v || s === m || q || s === f || y || F || R || typeof s == "object" && s !== null && (s.$$typeof === l || s.$$typeof === h || s.$$typeof === i || s.$$typeof === d || s.$$typeof === b || // This needs to include all possible module reference object
|
|
75
75
|
// types supported by any Flight configuration anywhere since
|
|
76
76
|
// we don't know which Flight build this will end up being used
|
|
77
77
|
// with.
|
|
78
78
|
s.$$typeof === C || s.getModuleId !== void 0));
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function oe(s, w, E) {
|
|
81
81
|
var D = s.displayName;
|
|
82
82
|
if (D)
|
|
83
83
|
return D;
|
|
84
|
-
var
|
|
85
|
-
return
|
|
84
|
+
var Z = w.displayName || w.name || "";
|
|
85
|
+
return Z !== "" ? E + "(" + Z + ")" : E;
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function G(s) {
|
|
88
88
|
return s.displayName || "Context";
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function O(s) {
|
|
91
91
|
if (s == null)
|
|
92
92
|
return null;
|
|
93
93
|
if (typeof s.tag == "number" && k("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof s == "function")
|
|
@@ -110,21 +110,21 @@ function Vo() {
|
|
|
110
110
|
}
|
|
111
111
|
if (typeof s == "object")
|
|
112
112
|
switch (s.$$typeof) {
|
|
113
|
-
case
|
|
113
|
+
case d:
|
|
114
114
|
var w = s;
|
|
115
|
-
return
|
|
115
|
+
return G(w) + ".Consumer";
|
|
116
116
|
case i:
|
|
117
117
|
var E = s;
|
|
118
|
-
return
|
|
118
|
+
return G(E._context) + ".Provider";
|
|
119
119
|
case b:
|
|
120
|
-
return
|
|
120
|
+
return oe(s, s.render, "ForwardRef");
|
|
121
121
|
case h:
|
|
122
122
|
var D = s.displayName || null;
|
|
123
|
-
return D !== null ? D :
|
|
123
|
+
return D !== null ? D : O(s.type) || "Memo";
|
|
124
124
|
case l: {
|
|
125
|
-
var
|
|
125
|
+
var Z = s, se = Z._payload, K = Z._init;
|
|
126
126
|
try {
|
|
127
|
-
return
|
|
127
|
+
return O(K(se));
|
|
128
128
|
} catch {
|
|
129
129
|
return null;
|
|
130
130
|
}
|
|
@@ -132,18 +132,18 @@ function Vo() {
|
|
|
132
132
|
}
|
|
133
133
|
return null;
|
|
134
134
|
}
|
|
135
|
-
var
|
|
136
|
-
function
|
|
135
|
+
var J = Object.assign, ne = 0, pe, B, fe, ie, X, me, ve;
|
|
136
|
+
function ce() {
|
|
137
137
|
}
|
|
138
|
-
|
|
138
|
+
ce.__reactDisabledLog = !0;
|
|
139
139
|
function T() {
|
|
140
140
|
{
|
|
141
141
|
if (ne === 0) {
|
|
142
|
-
pe = console.log, B = console.info, fe = console.warn,
|
|
142
|
+
pe = console.log, B = console.info, fe = console.warn, ie = console.error, X = console.group, me = console.groupCollapsed, ve = console.groupEnd;
|
|
143
143
|
var s = {
|
|
144
144
|
configurable: !0,
|
|
145
145
|
enumerable: !0,
|
|
146
|
-
value:
|
|
146
|
+
value: ce,
|
|
147
147
|
writable: !0
|
|
148
148
|
};
|
|
149
149
|
Object.defineProperties(console, {
|
|
@@ -168,25 +168,25 @@ function Vo() {
|
|
|
168
168
|
writable: !0
|
|
169
169
|
};
|
|
170
170
|
Object.defineProperties(console, {
|
|
171
|
-
log:
|
|
171
|
+
log: J({}, s, {
|
|
172
172
|
value: pe
|
|
173
173
|
}),
|
|
174
|
-
info:
|
|
174
|
+
info: J({}, s, {
|
|
175
175
|
value: B
|
|
176
176
|
}),
|
|
177
|
-
warn:
|
|
177
|
+
warn: J({}, s, {
|
|
178
178
|
value: fe
|
|
179
179
|
}),
|
|
180
|
-
error:
|
|
181
|
-
value:
|
|
180
|
+
error: J({}, s, {
|
|
181
|
+
value: ie
|
|
182
182
|
}),
|
|
183
|
-
group:
|
|
184
|
-
value:
|
|
183
|
+
group: J({}, s, {
|
|
184
|
+
value: X
|
|
185
185
|
}),
|
|
186
|
-
groupCollapsed:
|
|
186
|
+
groupCollapsed: J({}, s, {
|
|
187
187
|
value: me
|
|
188
188
|
}),
|
|
189
|
-
groupEnd:
|
|
189
|
+
groupEnd: J({}, s, {
|
|
190
190
|
value: ve
|
|
191
191
|
})
|
|
192
192
|
});
|
|
@@ -200,8 +200,8 @@ function Vo() {
|
|
|
200
200
|
if (xe === void 0)
|
|
201
201
|
try {
|
|
202
202
|
throw Error();
|
|
203
|
-
} catch (
|
|
204
|
-
var D =
|
|
203
|
+
} catch (Z) {
|
|
204
|
+
var D = Z.stack.trim().match(/\n( *(at )?)/);
|
|
205
205
|
xe = D && D[1] || "";
|
|
206
206
|
}
|
|
207
207
|
return `
|
|
@@ -223,10 +223,10 @@ function Vo() {
|
|
|
223
223
|
}
|
|
224
224
|
var D;
|
|
225
225
|
lt = !0;
|
|
226
|
-
var
|
|
226
|
+
var Z = Error.prepareStackTrace;
|
|
227
227
|
Error.prepareStackTrace = void 0;
|
|
228
|
-
var
|
|
229
|
-
|
|
228
|
+
var se;
|
|
229
|
+
se = V.current, V.current = null, T();
|
|
230
230
|
try {
|
|
231
231
|
if (w) {
|
|
232
232
|
var K = function() {
|
|
@@ -279,7 +279,7 @@ function Vo() {
|
|
|
279
279
|
}
|
|
280
280
|
}
|
|
281
281
|
} finally {
|
|
282
|
-
lt = !1, V.current =
|
|
282
|
+
lt = !1, V.current = se, P(), Error.prepareStackTrace = Z;
|
|
283
283
|
}
|
|
284
284
|
var xt = s ? s.displayName || s.name : "", Wn = xt ? Ie(xt) : "";
|
|
285
285
|
return typeof s == "function" && et.set(s, Wn), Wn;
|
|
@@ -311,9 +311,9 @@ function Vo() {
|
|
|
311
311
|
case h:
|
|
312
312
|
return De(s.type, w, E);
|
|
313
313
|
case l: {
|
|
314
|
-
var D = s,
|
|
314
|
+
var D = s, Z = D._payload, se = D._init;
|
|
315
315
|
try {
|
|
316
|
-
return De(
|
|
316
|
+
return De(se(Z), w, E);
|
|
317
317
|
} catch {
|
|
318
318
|
}
|
|
319
319
|
}
|
|
@@ -328,11 +328,11 @@ function Vo() {
|
|
|
328
328
|
} else
|
|
329
329
|
Re.setExtraStackFrame(null);
|
|
330
330
|
}
|
|
331
|
-
function $t(s, w, E, D,
|
|
331
|
+
function $t(s, w, E, D, Z) {
|
|
332
332
|
{
|
|
333
|
-
var
|
|
333
|
+
var se = Function.call.bind(Fe);
|
|
334
334
|
for (var K in s)
|
|
335
|
-
if (
|
|
335
|
+
if (se(s, K)) {
|
|
336
336
|
var H = void 0;
|
|
337
337
|
try {
|
|
338
338
|
if (typeof s[K] != "function") {
|
|
@@ -343,7 +343,7 @@ function Vo() {
|
|
|
343
343
|
} catch (ge) {
|
|
344
344
|
H = ge;
|
|
345
345
|
}
|
|
346
|
-
H && !(H instanceof Error) && (tt(
|
|
346
|
+
H && !(H instanceof Error) && (tt(Z), k("%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).", D || "React class", E, K, typeof H), tt(null)), H instanceof Error && !(H.message in Ve) && (Ve[H.message] = !0, tt(Z), k("Failed %s type: %s", E, H.message), tt(null));
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
349
|
}
|
|
@@ -367,11 +367,11 @@ function Vo() {
|
|
|
367
367
|
function U(s) {
|
|
368
368
|
return "" + s;
|
|
369
369
|
}
|
|
370
|
-
function
|
|
370
|
+
function Q(s) {
|
|
371
371
|
if (gt(s))
|
|
372
372
|
return k("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", st(s)), U(s);
|
|
373
373
|
}
|
|
374
|
-
var N = g.ReactCurrentOwner,
|
|
374
|
+
var N = g.ReactCurrentOwner, ae = {
|
|
375
375
|
key: !0,
|
|
376
376
|
ref: !0,
|
|
377
377
|
__self: !0,
|
|
@@ -396,8 +396,8 @@ function Vo() {
|
|
|
396
396
|
}
|
|
397
397
|
function Et(s, w) {
|
|
398
398
|
if (typeof s.ref == "string" && N.current && w && N.current.stateNode !== w) {
|
|
399
|
-
var E =
|
|
400
|
-
Y[E] || (k('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',
|
|
399
|
+
var E = O(N.current.type);
|
|
400
|
+
Y[E] || (k('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', O(N.current.type), s.ref), Y[E] = !0);
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
403
|
function Wt(s, w) {
|
|
@@ -422,7 +422,7 @@ function Vo() {
|
|
|
422
422
|
});
|
|
423
423
|
}
|
|
424
424
|
}
|
|
425
|
-
var So = function(s, w, E, D,
|
|
425
|
+
var So = function(s, w, E, D, Z, se, K) {
|
|
426
426
|
var H = {
|
|
427
427
|
// This tag allows us to uniquely identify this as a React Element
|
|
428
428
|
$$typeof: t,
|
|
@@ -432,7 +432,7 @@ function Vo() {
|
|
|
432
432
|
ref: E,
|
|
433
433
|
props: K,
|
|
434
434
|
// Record the component responsible for creating this element.
|
|
435
|
-
_owner:
|
|
435
|
+
_owner: se
|
|
436
436
|
};
|
|
437
437
|
return H._store = {}, Object.defineProperty(H._store, "validated", {
|
|
438
438
|
configurable: !1,
|
|
@@ -448,25 +448,25 @@ function Vo() {
|
|
|
448
448
|
configurable: !1,
|
|
449
449
|
enumerable: !1,
|
|
450
450
|
writable: !1,
|
|
451
|
-
value:
|
|
451
|
+
value: Z
|
|
452
452
|
}), Object.freeze && (Object.freeze(H.props), Object.freeze(H)), H;
|
|
453
453
|
};
|
|
454
|
-
function Eo(s, w, E, D,
|
|
454
|
+
function Eo(s, w, E, D, Z) {
|
|
455
455
|
{
|
|
456
|
-
var
|
|
457
|
-
E !== void 0 && (
|
|
458
|
-
for (
|
|
459
|
-
Fe.call(w,
|
|
456
|
+
var se, K = {}, H = null, je = null;
|
|
457
|
+
E !== void 0 && (Q(E), H = "" + E), Be(w) && (Q(w.key), H = "" + w.key), A(w) && (je = w.ref, Et(w, Z));
|
|
458
|
+
for (se in w)
|
|
459
|
+
Fe.call(w, se) && !ae.hasOwnProperty(se) && (K[se] = w[se]);
|
|
460
460
|
if (s && s.defaultProps) {
|
|
461
461
|
var ge = s.defaultProps;
|
|
462
|
-
for (
|
|
463
|
-
K[
|
|
462
|
+
for (se in ge)
|
|
463
|
+
K[se] === void 0 && (K[se] = ge[se]);
|
|
464
464
|
}
|
|
465
465
|
if (H || je) {
|
|
466
466
|
var Oe = typeof s == "function" ? s.displayName || s.name || "Unknown" : s;
|
|
467
467
|
H && Wt(K, Oe), je && ko(K, Oe);
|
|
468
468
|
}
|
|
469
|
-
return So(s, H, je,
|
|
469
|
+
return So(s, H, je, Z, D, N.current, K);
|
|
470
470
|
}
|
|
471
471
|
}
|
|
472
472
|
var rn = g.ReactCurrentOwner, Fn = g.ReactDebugCurrentFrame;
|
|
@@ -485,7 +485,7 @@ function Vo() {
|
|
|
485
485
|
function Nn() {
|
|
486
486
|
{
|
|
487
487
|
if (rn.current) {
|
|
488
|
-
var s =
|
|
488
|
+
var s = O(rn.current.type);
|
|
489
489
|
if (s)
|
|
490
490
|
return `
|
|
491
491
|
|
|
@@ -528,7 +528,7 @@ Check the top-level render call using <` + E + ">.");
|
|
|
528
528
|
return;
|
|
529
529
|
An[E] = !0;
|
|
530
530
|
var D = "";
|
|
531
|
-
s && s._owner && s._owner !== rn.current && (D = " It was passed a child from " +
|
|
531
|
+
s && s._owner && s._owner !== rn.current && (D = " It was passed a child from " + O(s._owner.type) + "."), wt(s), k('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', E, D), wt(null);
|
|
532
532
|
}
|
|
533
533
|
}
|
|
534
534
|
function $n(s, w) {
|
|
@@ -543,9 +543,9 @@ Check the top-level render call using <` + E + ">.");
|
|
|
543
543
|
else if (an(s))
|
|
544
544
|
s._store && (s._store.validated = !0);
|
|
545
545
|
else if (s) {
|
|
546
|
-
var
|
|
547
|
-
if (typeof
|
|
548
|
-
for (var
|
|
546
|
+
var Z = p(s);
|
|
547
|
+
if (typeof Z == "function" && Z !== s.entries)
|
|
548
|
+
for (var se = Z.call(s), K; !(K = se.next()).done; )
|
|
549
549
|
an(K.value) && Dn(K.value, w);
|
|
550
550
|
}
|
|
551
551
|
}
|
|
@@ -565,12 +565,12 @@ Check the top-level render call using <` + E + ">.");
|
|
|
565
565
|
else
|
|
566
566
|
return;
|
|
567
567
|
if (E) {
|
|
568
|
-
var D =
|
|
568
|
+
var D = O(w);
|
|
569
569
|
$t(E, s.props, "prop", D, s);
|
|
570
570
|
} else if (w.PropTypes !== void 0 && !on) {
|
|
571
571
|
on = !0;
|
|
572
|
-
var
|
|
573
|
-
k("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",
|
|
572
|
+
var Z = O(w);
|
|
573
|
+
k("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", Z || "Unknown");
|
|
574
574
|
}
|
|
575
575
|
typeof w.getDefaultProps == "function" && !w.getDefaultProps.isReactClassApproved && k("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
576
576
|
}
|
|
@@ -587,18 +587,18 @@ Check the top-level render call using <` + E + ">.");
|
|
|
587
587
|
s.ref !== null && (wt(s), k("Invalid attribute `ref` supplied to `React.Fragment`."), wt(null));
|
|
588
588
|
}
|
|
589
589
|
}
|
|
590
|
-
function Mn(s, w, E, D,
|
|
590
|
+
function Mn(s, w, E, D, Z, se) {
|
|
591
591
|
{
|
|
592
592
|
var K = z(s);
|
|
593
593
|
if (!K) {
|
|
594
594
|
var H = "";
|
|
595
595
|
(s === void 0 || typeof s == "object" && s !== null && Object.keys(s).length === 0) && (H += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
596
|
-
var je = To(
|
|
596
|
+
var je = To(Z);
|
|
597
597
|
je ? H += je : H += Nn();
|
|
598
598
|
var ge;
|
|
599
|
-
s === null ? ge = "null" : Pe(s) ? ge = "array" : s !== void 0 && s.$$typeof === t ? (ge = "<" + (
|
|
599
|
+
s === null ? ge = "null" : Pe(s) ? ge = "array" : s !== void 0 && s.$$typeof === t ? (ge = "<" + (O(s.type) || "Unknown") + " />", H = " Did you accidentally export a JSX literal instead of a component?") : ge = typeof s, k("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ge, H);
|
|
600
600
|
}
|
|
601
|
-
var Oe = Eo(s, w, E,
|
|
601
|
+
var Oe = Eo(s, w, E, Z, se);
|
|
602
602
|
if (Oe == null)
|
|
603
603
|
return Oe;
|
|
604
604
|
if (K) {
|
|
@@ -628,7 +628,7 @@ Check the top-level render call using <` + E + ">.");
|
|
|
628
628
|
}()), Ct;
|
|
629
629
|
}
|
|
630
630
|
process.env.NODE_ENV === "production" ? pn.exports = Wo() : pn.exports = Vo();
|
|
631
|
-
var
|
|
631
|
+
var _ = pn.exports;
|
|
632
632
|
const Bo = "_button_1q2ge_1", Uo = "_primary_1q2ge_5", Ho = "_secondary_1q2ge_12", qo = "_small_1q2ge_19", zo = "_rounded_1q2ge_22", Yo = "_medium_1q2ge_26", Ko = "_large_1q2ge_33", Go = "_squared_1q2ge_40", Vt = {
|
|
633
633
|
button: Bo,
|
|
634
634
|
primary: Uo,
|
|
@@ -663,16 +663,16 @@ const ir = dt(
|
|
|
663
663
|
children: o,
|
|
664
664
|
className: c = "",
|
|
665
665
|
style: i = {},
|
|
666
|
-
disabled:
|
|
666
|
+
disabled: d,
|
|
667
667
|
...b
|
|
668
668
|
}, v) => {
|
|
669
669
|
let m = {};
|
|
670
670
|
if (e) {
|
|
671
671
|
const l = pt(e);
|
|
672
|
-
if (e = Ze.convert3HexTo6(e), !
|
|
673
|
-
const
|
|
672
|
+
if (e = Ze.convert3HexTo6(e), !d && (l === "dark" || l === "light")) {
|
|
673
|
+
const f = t === "primary" ? e : "#ffffff", a = t === "primary" ? l === "dark" ? "#ffffff" : "#333333" : l === "light" ? "#333333" : e, u = e === "#ffffff" ? "#c8c8c8" : e;
|
|
674
674
|
m = {
|
|
675
|
-
backgroundColor:
|
|
675
|
+
backgroundColor: f,
|
|
676
676
|
color: a,
|
|
677
677
|
outlineColor: u,
|
|
678
678
|
borderColor: u
|
|
@@ -680,10 +680,10 @@ const ir = dt(
|
|
|
680
680
|
}
|
|
681
681
|
}
|
|
682
682
|
const h = [Vt.button, Vt[t], Vt[n], Vt[r], c].filter(Boolean).join(" ");
|
|
683
|
-
return /* @__PURE__ */
|
|
683
|
+
return /* @__PURE__ */ _.jsx(
|
|
684
684
|
"button",
|
|
685
685
|
{
|
|
686
|
-
disabled:
|
|
686
|
+
disabled: d,
|
|
687
687
|
ref: v,
|
|
688
688
|
style: { ...m, ...i },
|
|
689
689
|
className: `${h}`,
|
|
@@ -716,12 +716,12 @@ const Jo = "_checkboxLayout_bt7qx_1", Qo = "_checkboxLabel_bt7qx_4", Xo = "_chec
|
|
|
716
716
|
checked: o = !1,
|
|
717
717
|
disabled: c = !1,
|
|
718
718
|
className: i = "",
|
|
719
|
-
onChange:
|
|
719
|
+
onChange: d,
|
|
720
720
|
style: b = {},
|
|
721
721
|
tabIndex: v,
|
|
722
722
|
...m
|
|
723
723
|
}, h) => {
|
|
724
|
-
const [l,
|
|
724
|
+
const [l, f] = le(o);
|
|
725
725
|
let a = {}, u, p = c ? "#9b9b9b" : "#ffffff";
|
|
726
726
|
if (t) {
|
|
727
727
|
const y = pt(t);
|
|
@@ -746,10 +746,10 @@ const Jo = "_checkboxLayout_bt7qx_1", Qo = "_checkboxLabel_bt7qx_4", Xo = "_chec
|
|
|
746
746
|
}
|
|
747
747
|
}
|
|
748
748
|
const g = c ? Ge.checkboxDisabled : "", k = [Ge.checkboxLayout, Ge[n], g, i].filter(Boolean).join(" "), x = (y) => {
|
|
749
|
-
y.key != "Enter" && (y.preventDefault(),
|
|
749
|
+
y.key != "Enter" && (y.preventDefault(), d?.(y.target.checked), f(!l));
|
|
750
750
|
};
|
|
751
|
-
return /* @__PURE__ */
|
|
752
|
-
/* @__PURE__ */
|
|
751
|
+
return /* @__PURE__ */ _.jsx(_.Fragment, { children: /* @__PURE__ */ _.jsx("div", { className: k, "data-testid": "checkbox", children: /* @__PURE__ */ _.jsxs("label", { className: Ge.checkboxLabel, htmlFor: r, onClick: (y) => x(y), children: [
|
|
752
|
+
/* @__PURE__ */ _.jsxs(
|
|
753
753
|
"div",
|
|
754
754
|
{
|
|
755
755
|
className: Ge.checkboxInnerContainer,
|
|
@@ -757,7 +757,7 @@ const Jo = "_checkboxLayout_bt7qx_1", Qo = "_checkboxLabel_bt7qx_4", Xo = "_chec
|
|
|
757
757
|
onKeyPress: (y) => x(y),
|
|
758
758
|
"data-testid": "checkbox-inner-container",
|
|
759
759
|
children: [
|
|
760
|
-
/* @__PURE__ */
|
|
760
|
+
/* @__PURE__ */ _.jsx(
|
|
761
761
|
"input",
|
|
762
762
|
{
|
|
763
763
|
className: Ge.checkboxInput,
|
|
@@ -772,13 +772,13 @@ const Jo = "_checkboxLayout_bt7qx_1", Qo = "_checkboxLabel_bt7qx_4", Xo = "_chec
|
|
|
772
772
|
"data-testid": "checkbox-input"
|
|
773
773
|
}
|
|
774
774
|
),
|
|
775
|
-
/* @__PURE__ */
|
|
775
|
+
/* @__PURE__ */ _.jsx(
|
|
776
776
|
"div",
|
|
777
777
|
{
|
|
778
778
|
className: Ge.checkboxFrame,
|
|
779
779
|
style: { ...a, ...b },
|
|
780
780
|
"data-testid": "checkbox-frame",
|
|
781
|
-
children: /* @__PURE__ */
|
|
781
|
+
children: /* @__PURE__ */ _.jsx(
|
|
782
782
|
"svg",
|
|
783
783
|
{
|
|
784
784
|
version: "1.1",
|
|
@@ -786,7 +786,7 @@ const Jo = "_checkboxLayout_bt7qx_1", Qo = "_checkboxLabel_bt7qx_4", Xo = "_chec
|
|
|
786
786
|
className: Ge.checkboxCheckMark,
|
|
787
787
|
viewBox: "0 0 24 24",
|
|
788
788
|
"data-testid": "check-mark-svg",
|
|
789
|
-
children: /* @__PURE__ */
|
|
789
|
+
children: /* @__PURE__ */ _.jsx(
|
|
790
790
|
"path",
|
|
791
791
|
{
|
|
792
792
|
className: Ge.checkboxCheckMarkPath,
|
|
@@ -802,8 +802,8 @@ const Jo = "_checkboxLayout_bt7qx_1", Qo = "_checkboxLabel_bt7qx_4", Xo = "_chec
|
|
|
802
802
|
]
|
|
803
803
|
}
|
|
804
804
|
),
|
|
805
|
-
e && /* @__PURE__ */
|
|
806
|
-
/* @__PURE__ */
|
|
805
|
+
e && /* @__PURE__ */ _.jsx("span", { "data-testid": "checkbox-label", children: e }),
|
|
806
|
+
/* @__PURE__ */ _.jsx("div", { className: Ge.visuallyHidden, "aria-live": "polite", "aria-atomic": "true", children: l ? "Checked" : "Unchecked" })
|
|
807
807
|
] }) }) });
|
|
808
808
|
}
|
|
809
809
|
);
|
|
@@ -815,70 +815,70 @@ const ci = "_textInputWrapper_1i9m6_1", ui = "_textInput_1i9m6_1", Un = {
|
|
|
815
815
|
var I = {}, bn = { exports: {} };
|
|
816
816
|
(function(e, t) {
|
|
817
817
|
(function(n, r) {
|
|
818
|
-
var o = "1.0.37", c = "", i = "?",
|
|
818
|
+
var o = "1.0.37", c = "", i = "?", d = "function", b = "undefined", v = "object", m = "string", h = "major", l = "model", f = "name", a = "type", u = "vendor", p = "version", g = "architecture", k = "console", x = "mobile", y = "tablet", F = "smarttv", R = "wearable", q = "embedded", M = 500, C = "Amazon", z = "Apple", oe = "ASUS", G = "BlackBerry", O = "Browser", J = "Chrome", ne = "Edge", pe = "Firefox", B = "Google", fe = "Huawei", ie = "LG", X = "Microsoft", me = "Motorola", ve = "Opera", ce = "Samsung", T = "Sharp", P = "Sony", V = "Xiaomi", xe = "Zebra", Ie = "Facebook", lt = "Chromium OS", et = "Mac OS", S = function(U, Q) {
|
|
819
819
|
var N = {};
|
|
820
|
-
for (var
|
|
821
|
-
|
|
820
|
+
for (var ae in U)
|
|
821
|
+
Q[ae] && Q[ae].length % 2 === 0 ? N[ae] = Q[ae].concat(U[ae]) : N[ae] = U[ae];
|
|
822
822
|
return N;
|
|
823
823
|
}, W = function(U) {
|
|
824
|
-
for (var
|
|
825
|
-
|
|
826
|
-
return
|
|
827
|
-
}, ye = function(U,
|
|
828
|
-
return typeof U === m ? he(
|
|
824
|
+
for (var Q = {}, N = 0; N < U.length; N++)
|
|
825
|
+
Q[U[N].toUpperCase()] = U[N];
|
|
826
|
+
return Q;
|
|
827
|
+
}, ye = function(U, Q) {
|
|
828
|
+
return typeof U === m ? he(Q).indexOf(he(U)) !== -1 : !1;
|
|
829
829
|
}, he = function(U) {
|
|
830
830
|
return U.toLowerCase();
|
|
831
831
|
}, De = function(U) {
|
|
832
832
|
return typeof U === m ? U.replace(/[^\d\.]/g, c).split(".")[0] : r;
|
|
833
|
-
}, Fe = function(U,
|
|
833
|
+
}, Fe = function(U, Q) {
|
|
834
834
|
if (typeof U === m)
|
|
835
|
-
return U = U.replace(/^\s\s*/, c), typeof
|
|
836
|
-
}, Ve = function(U,
|
|
837
|
-
for (var N = 0,
|
|
838
|
-
var Et =
|
|
839
|
-
for (
|
|
840
|
-
if (A = Et[
|
|
835
|
+
return U = U.replace(/^\s\s*/, c), typeof Q === b ? U : U.substring(0, M);
|
|
836
|
+
}, Ve = function(U, Q) {
|
|
837
|
+
for (var N = 0, ae, ze, $e, Y, A, Be; N < Q.length && !A; ) {
|
|
838
|
+
var Et = Q[N], Wt = Q[N + 1];
|
|
839
|
+
for (ae = ze = 0; ae < Et.length && !A && Et[ae]; )
|
|
840
|
+
if (A = Et[ae++].exec(U), A)
|
|
841
841
|
for ($e = 0; $e < Wt.length; $e++)
|
|
842
|
-
Be = A[++ze], Y = Wt[$e], typeof Y === v && Y.length > 0 ? Y.length === 2 ? typeof Y[1] ==
|
|
842
|
+
Be = A[++ze], Y = Wt[$e], typeof Y === v && Y.length > 0 ? Y.length === 2 ? typeof Y[1] == d ? this[Y[0]] = Y[1].call(this, Be) : this[Y[0]] = Y[1] : Y.length === 3 ? typeof Y[1] === d && !(Y[1].exec && Y[1].test) ? this[Y[0]] = Be ? Y[1].call(this, Be, Y[2]) : r : this[Y[0]] = Be ? Be.replace(Y[1], Y[2]) : r : Y.length === 4 && (this[Y[0]] = Be ? Y[3].call(this, Be.replace(Y[1], Y[2])) : r) : this[Y] = Be || r;
|
|
843
843
|
N += 2;
|
|
844
844
|
}
|
|
845
|
-
}, Re = function(U,
|
|
846
|
-
for (var N in
|
|
847
|
-
if (typeof
|
|
848
|
-
for (var
|
|
849
|
-
if (ye(
|
|
845
|
+
}, Re = function(U, Q) {
|
|
846
|
+
for (var N in Q)
|
|
847
|
+
if (typeof Q[N] === v && Q[N].length > 0) {
|
|
848
|
+
for (var ae = 0; ae < Q[N].length; ae++)
|
|
849
|
+
if (ye(Q[N][ae], U))
|
|
850
850
|
return N === i ? r : N;
|
|
851
|
-
} else if (ye(
|
|
851
|
+
} else if (ye(Q[N], U))
|
|
852
852
|
return N === i ? r : N;
|
|
853
853
|
return U;
|
|
854
|
-
}, tt = { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }, $t = { ME: "4.90", "NT 3.11": "NT3.51", "NT 4.0": "NT4.0", 2e3: "NT 5.0", XP: ["NT 5.1", "NT 5.2"], Vista: "NT 6.0", 7: "NT 6.1", 8: "NT 6.2", 8.1: "NT 6.3", 10: ["NT 6.4", "NT 10.0"], RT: "ARM" }, Mt = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [p, [d, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [p, [d, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [d, p], [/opios[\/ ]+([\w\.]+)/i], [p, [d, ve + " Mini"]], [/\bopr\/([\w\.]+)/i], [p, [d, ve]], [/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i], [p, [d, "Baidu"]], [/(kindle)\/([\w\.]+)/i, /(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i, /(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i, /(?:ms|\()(ie) ([\w\.]+)/i, /(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i, /(heytap|ovi)browser\/([\d\.]+)/i, /(weibo)__([\d\.]+)/i], [d, p], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [p, [d, "UC" + _]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i, /micromessenger\/([\w\.]+)/i], [p, [d, "WeChat"]], [/konqueror\/([\w\.]+)/i], [p, [d, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [p, [d, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [p, [d, "Yandex"]], [/slbrowser\/([\w\.]+)/i], [p, [d, "Smart Lenovo " + _]], [/(avast|avg)\/([\w\.]+)/i], [[d, /(.+)/, "$1 Secure " + _], p], [/\bfocus\/([\w\.]+)/i], [p, [d, pe + " Focus"]], [/\bopt\/([\w\.]+)/i], [p, [d, ve + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [p, [d, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [p, [d, "Dolphin"]], [/coast\/([\w\.]+)/i], [p, [d, ve + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [p, [d, "MIUI " + _]], [/fxios\/([-\w\.]+)/i], [p, [d, pe]], [/\bqihu|(qi?ho?o?|360)browser/i], [[d, "360 " + _]], [/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i], [[d, /(.+)/, "$1 " + _], p], [/samsungbrowser\/([\w\.]+)/i], [p, [d, se + " Internet"]], [/(comodo_dragon)\/([\w\.]+)/i], [[d, /_/g, " "], p], [/metasr[\/ ]?([\d\.]+)/i], [p, [d, "Sogou Explorer"]], [/(sogou)mo\w+\/([\d\.]+)/i], [[d, "Sogou Mobile"], p], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i], [d, p], [/(lbbrowser)/i, /\[(linkedin)app\]/i], [d], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[d, Ie], p], [/(Klarna)\/([\w\.]+)/i, /(kakao(?:talk|story))[\/ ]([\w\.]+)/i, /(naver)\(.*?(\d+\.[\w\.]+).*\)/i, /safari (line)\/([\w\.]+)/i, /\b(line)\/([\w\.]+)\/iab/i, /(alipay)client\/([\w\.]+)/i, /(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i], [d, p], [/\bgsa\/([\w\.]+) .*safari\//i], [p, [d, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [p, [d, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [p, [d, G + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[d, G + " WebView"], p], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [p, [d, "Android " + _]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [d, p], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [p, [d, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [p, d], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [d, [p, Re, tt]], [/(webkit|khtml)\/([\w\.]+)/i], [d, p], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[d, "Netscape"], p], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [p, [d, pe + " Reality"]], [/ekiohf.+(flow)\/([\w\.]+)/i, /(swiftfox)/i, /(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i, /(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i, /(firefox)\/([\w\.]+)/i, /(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i, /(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i, /(links) \(([\w\.]+)/i, /panasonic;(viera)/i], [d, p], [/(cobalt)\/([\w\.]+)/i], [d, [p, /master.|lts./, ""]]], cpu: [[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i], [[g, "amd64"]], [/(ia32(?=;))/i], [[g, he]], [/((?:i[346]|x)86)[;\)]/i], [[g, "ia32"]], [/\b(aarch64|arm(v?8e?l?|_?64))\b/i], [[g, "arm64"]], [/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i], [[g, "armhf"]], [/windows (ce|mobile); ppc;/i], [[g, "arm"]], [/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i], [[g, /ower/, c, he]], [/(sun4\w)[;\)]/i], [[g, "sparc"]], [/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i], [[g, he]]], device: [[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i], [l, [u, se], [a, y]], [/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]([-\w]+)/i, /sec-(sgh\w+)/i], [l, [u, se], [a, x]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [l, [u, z], [a, x]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [l, [u, z], [a, y]], [/(macintosh);/i], [l, [u, z]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [l, [u, T], [a, x]], [/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i], [l, [u, fe], [a, y]], [/(?:huawei|honor)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [l, [u, fe], [a, x]], [/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i, /\b; (\w+) build\/hm\1/i, /\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i, /\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i, /oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i, /\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i], [[l, /_/g, " "], [u, V], [a, x]], [/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i, /\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i], [[l, /_/g, " "], [u, V], [a, y]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [l, [u, "OPPO"], [a, x]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [l, [u, "Vivo"], [a, x]], [/\b(rmx[1-3]\d{3})(?: bui|;|\))/i], [l, [u, "Realme"], [a, x]], [/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i, /\bmot(?:orola)?[- ](\w*)/i, /((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i], [l, [u, me], [a, x]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [l, [u, me], [a, y]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [l, [u, re], [a, y]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i, /\blg-?([\d\w]+) bui/i], [l, [u, re], [a, x]], [/(ideatab[-\w ]+)/i, /lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i], [l, [u, "Lenovo"], [a, y]], [/(?:maemo|nokia).*(n900|lumia \d+)/i, /nokia[-_ ]?([-\w\.]*)/i], [[l, /_/g, " "], [u, "Nokia"], [a, x]], [/(pixel c)\b/i], [l, [u, B], [a, y]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [l, [u, B], [a, x]], [/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i], [l, [u, P], [a, x]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[l, "Xperia Tablet"], [u, P], [a, y]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [l, [u, "OnePlus"], [a, x]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [l, [u, C], [a, y]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[l, /(.+)/g, "Fire Phone $1"], [u, C], [a, x]], [/(playbook);[-\w\),; ]+(rim)/i], [l, u, [a, y]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [l, [u, Z], [a, x]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [l, [u, de], [a, y]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [l, [u, de], [a, x]], [/(nexus 9)/i], [l, [u, "HTC"], [a, y]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [u, [l, /_/g, " "], [a, x]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [l, [u, "Acer"], [a, y]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [l, [u, "Meizu"], [a, x]], [/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i], [l, [u, "Ulefone"], [a, x]], [/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i, /(hp) ([\w ]+\w)/i, /(asus)-?(\w+)/i, /(microsoft); (lumia[\w ]+)/i, /(lenovo)[-_ ]?([-\w]+)/i, /(jolla)/i, /(oppo) ?([\w ]+) bui/i], [u, l, [a, x]], [/(kobo)\s(ereader|touch)/i, /(archos) (gamepad2?)/i, /(hp).+(touchpad(?!.+tablet)|tablet)/i, /(kindle)\/([\w\.]+)/i, /(nook)[\w ]+build\/(\w+)/i, /(dell) (strea[kpr\d ]*[\dko])/i, /(le[- ]+pan)[- ]+(\w{1,9}) bui/i, /(trinity)[- ]*(t\d{3}) bui/i, /(gigaset)[- ]+(q\w{1,9}) bui/i, /(vodafone) ([\w ]+)(?:\)| bui)/i], [u, l, [a, y]], [/(surface duo)/i], [l, [u, Q], [a, y]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [l, [u, "Fairphone"], [a, x]], [/(u304aa)/i], [l, [u, "AT&T"], [a, x]], [/\bsie-(\w*)/i], [l, [u, "Siemens"], [a, x]], [/\b(rct\w+) b/i], [l, [u, "RCA"], [a, y]], [/\b(venue[\d ]{2,7}) b/i], [l, [u, "Dell"], [a, y]], [/\b(q(?:mv|ta)\w+) b/i], [l, [u, "Verizon"], [a, y]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [l, [u, "Barnes & Noble"], [a, y]], [/\b(tm\d{3}\w+) b/i], [l, [u, "NuVision"], [a, y]], [/\b(k88) b/i], [l, [u, "ZTE"], [a, y]], [/\b(nx\d{3}j) b/i], [l, [u, "ZTE"], [a, x]], [/\b(gen\d{3}) b.+49h/i], [l, [u, "Swiss"], [a, x]], [/\b(zur\d{3}) b/i], [l, [u, "Swiss"], [a, y]], [/\b((zeki)?tb.*\b) b/i], [l, [u, "Zeki"], [a, y]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[u, "Dragon Touch"], l, [a, y]], [/\b(ns-?\w{0,9}) b/i], [l, [u, "Insignia"], [a, y]], [/\b((nxa|next)-?\w{0,9}) b/i], [l, [u, "NextBook"], [a, y]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[u, "Voice"], l, [a, x]], [/\b(lvtel\-)?(v1[12]) b/i], [[u, "LvTel"], l, [a, x]], [/\b(ph-1) /i], [l, [u, "Essential"], [a, x]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [l, [u, "Envizen"], [a, y]], [/\b(trio[-\w\. ]+) b/i], [l, [u, "MachSpeed"], [a, y]], [/\btu_(1491) b/i], [l, [u, "Rotor"], [a, y]], [/(shield[\w ]+) b/i], [l, [u, "Nvidia"], [a, y]], [/(sprint) (\w+)/i], [u, l, [a, x]], [/(kin\.[onetw]{3})/i], [[l, /\./g, " "], [u, Q], [a, x]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [l, [u, xe], [a, y]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [l, [u, xe], [a, x]], [/smart-tv.+(samsung)/i], [u, [a, F]], [/hbbtv.+maple;(\d+)/i], [[l, /^/, "SmartTV"], [u, se], [a, F]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[u, re], [a, F]], [/(apple) ?tv/i], [u, [l, z + " TV"], [a, F]], [/crkey/i], [[l, G + "cast"], [u, B], [a, F]], [/droid.+aft(\w+)( bui|\))/i], [l, [u, C], [a, F]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [l, [u, T], [a, F]], [/(bravia[\w ]+)( bui|\))/i], [l, [u, P], [a, F]], [/(mitv-\w{5}) bui/i], [l, [u, V], [a, F]], [/Hbbtv.*(technisat) (.*);/i], [u, l, [a, F]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[u, Fe], [l, Fe], [a, F]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[a, F]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [u, l, [a, k]], [/droid.+; (shield) bui/i], [l, [u, "Nvidia"], [a, k]], [/(playstation [345portablevi]+)/i], [l, [u, P], [a, k]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [l, [u, Q], [a, k]], [/((pebble))app/i], [u, l, [a, R]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [l, [u, z], [a, R]], [/droid.+; (glass) \d/i], [l, [u, B], [a, R]], [/droid.+; (wt63?0{2,3})\)/i], [l, [u, xe], [a, R]], [/(quest( 2| pro)?)/i], [l, [u, Ie], [a, R]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [u, [a, q]], [/(aeobc)\b/i], [l, [u, C], [a, q]], [/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i], [l, [a, x]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [l, [a, y]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[a, y]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[a, x]], [/(android[-\w\. ]{0,9});.+buil/i], [l, [u, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [p, [d, ne + "HTML"]], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [p, [d, "Blink"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i, /ekioh(flow)\/([\w\.]+)/i, /(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, /(icab)[\/ ]([23]\.[\d\.]+)/i, /\b(libweb)/i], [d, p], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [p, d]], os: [[/microsoft (windows) (vista|xp)/i], [d, p], [/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i], [d, [p, Re, $t]], [/windows nt 6\.2; (arm)/i, /windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i, /(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[p, Re, $t], [d, "Windows"]], [/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i, /(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[p, /_/g, "."], [d, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[d, et], [p, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [p, d], [/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i, /(blackberry)\w*\/([\w\.]*)/i, /(tizen|kaios)[\/ ]([\w\.]+)/i, /\((series40);/i], [d, p], [/\(bb(10);/i], [p, [d, Z]], [/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i], [p, [d, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [p, [d, pe + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [p, [d, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [p, [d, "watchOS"]], [/crkey\/([\d\.]+)/i], [p, [d, G + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[d, lt], p], [/panasonic;(viera)/i, /(netrange)mmh/i, /(nettv)\/(\d+\.[\w\.]+)/i, /(nintendo|playstation) ([wids345portablevuch]+)/i, /(xbox); +xbox ([^\);]+)/i, /\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i, /(mint)[\/\(\) ]?(\w*)/i, /(mageia|vectorlinux)[; ]/i, /([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i, /(hurd|linux) ?([\w\.]*)/i, /(gnu) ?([\w\.]*)/i, /\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i, /(haiku) (\w+)/i], [d, p], [/(sunos) ?([\w\.\d]*)/i], [[d, "Solaris"], p], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [d, p]] }, Pe = function(U, J) {
|
|
855
|
-
if (typeof U === v && (
|
|
856
|
-
return new Pe(U,
|
|
857
|
-
var N = typeof n !== b && n.navigator ? n.navigator : r,
|
|
854
|
+
}, tt = { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }, $t = { ME: "4.90", "NT 3.11": "NT3.51", "NT 4.0": "NT4.0", 2e3: "NT 5.0", XP: ["NT 5.1", "NT 5.2"], Vista: "NT 6.0", 7: "NT 6.1", 8: "NT 6.2", 8.1: "NT 6.3", 10: ["NT 6.4", "NT 10.0"], RT: "ARM" }, Mt = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [p, [f, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [p, [f, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [f, p], [/opios[\/ ]+([\w\.]+)/i], [p, [f, ve + " Mini"]], [/\bopr\/([\w\.]+)/i], [p, [f, ve]], [/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i], [p, [f, "Baidu"]], [/(kindle)\/([\w\.]+)/i, /(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i, /(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i, /(?:ms|\()(ie) ([\w\.]+)/i, /(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i, /(heytap|ovi)browser\/([\d\.]+)/i, /(weibo)__([\d\.]+)/i], [f, p], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [p, [f, "UC" + O]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i, /micromessenger\/([\w\.]+)/i], [p, [f, "WeChat"]], [/konqueror\/([\w\.]+)/i], [p, [f, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [p, [f, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [p, [f, "Yandex"]], [/slbrowser\/([\w\.]+)/i], [p, [f, "Smart Lenovo " + O]], [/(avast|avg)\/([\w\.]+)/i], [[f, /(.+)/, "$1 Secure " + O], p], [/\bfocus\/([\w\.]+)/i], [p, [f, pe + " Focus"]], [/\bopt\/([\w\.]+)/i], [p, [f, ve + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [p, [f, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [p, [f, "Dolphin"]], [/coast\/([\w\.]+)/i], [p, [f, ve + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [p, [f, "MIUI " + O]], [/fxios\/([-\w\.]+)/i], [p, [f, pe]], [/\bqihu|(qi?ho?o?|360)browser/i], [[f, "360 " + O]], [/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i], [[f, /(.+)/, "$1 " + O], p], [/samsungbrowser\/([\w\.]+)/i], [p, [f, ce + " Internet"]], [/(comodo_dragon)\/([\w\.]+)/i], [[f, /_/g, " "], p], [/metasr[\/ ]?([\d\.]+)/i], [p, [f, "Sogou Explorer"]], [/(sogou)mo\w+\/([\d\.]+)/i], [[f, "Sogou Mobile"], p], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i], [f, p], [/(lbbrowser)/i, /\[(linkedin)app\]/i], [f], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[f, Ie], p], [/(Klarna)\/([\w\.]+)/i, /(kakao(?:talk|story))[\/ ]([\w\.]+)/i, /(naver)\(.*?(\d+\.[\w\.]+).*\)/i, /safari (line)\/([\w\.]+)/i, /\b(line)\/([\w\.]+)\/iab/i, /(alipay)client\/([\w\.]+)/i, /(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i], [f, p], [/\bgsa\/([\w\.]+) .*safari\//i], [p, [f, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [p, [f, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [p, [f, J + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[f, J + " WebView"], p], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [p, [f, "Android " + O]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [f, p], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [p, [f, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [p, f], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [f, [p, Re, tt]], [/(webkit|khtml)\/([\w\.]+)/i], [f, p], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[f, "Netscape"], p], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [p, [f, pe + " Reality"]], [/ekiohf.+(flow)\/([\w\.]+)/i, /(swiftfox)/i, /(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i, /(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i, /(firefox)\/([\w\.]+)/i, /(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i, /(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i, /(links) \(([\w\.]+)/i, /panasonic;(viera)/i], [f, p], [/(cobalt)\/([\w\.]+)/i], [f, [p, /master.|lts./, ""]]], cpu: [[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i], [[g, "amd64"]], [/(ia32(?=;))/i], [[g, he]], [/((?:i[346]|x)86)[;\)]/i], [[g, "ia32"]], [/\b(aarch64|arm(v?8e?l?|_?64))\b/i], [[g, "arm64"]], [/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i], [[g, "armhf"]], [/windows (ce|mobile); ppc;/i], [[g, "arm"]], [/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i], [[g, /ower/, c, he]], [/(sun4\w)[;\)]/i], [[g, "sparc"]], [/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i], [[g, he]]], device: [[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i], [l, [u, ce], [a, y]], [/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]([-\w]+)/i, /sec-(sgh\w+)/i], [l, [u, ce], [a, x]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [l, [u, z], [a, x]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [l, [u, z], [a, y]], [/(macintosh);/i], [l, [u, z]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [l, [u, T], [a, x]], [/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i], [l, [u, fe], [a, y]], [/(?:huawei|honor)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [l, [u, fe], [a, x]], [/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i, /\b; (\w+) build\/hm\1/i, /\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i, /\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i, /oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i, /\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i], [[l, /_/g, " "], [u, V], [a, x]], [/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i, /\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i], [[l, /_/g, " "], [u, V], [a, y]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [l, [u, "OPPO"], [a, x]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [l, [u, "Vivo"], [a, x]], [/\b(rmx[1-3]\d{3})(?: bui|;|\))/i], [l, [u, "Realme"], [a, x]], [/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i, /\bmot(?:orola)?[- ](\w*)/i, /((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i], [l, [u, me], [a, x]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [l, [u, me], [a, y]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [l, [u, ie], [a, y]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i, /\blg-?([\d\w]+) bui/i], [l, [u, ie], [a, x]], [/(ideatab[-\w ]+)/i, /lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i], [l, [u, "Lenovo"], [a, y]], [/(?:maemo|nokia).*(n900|lumia \d+)/i, /nokia[-_ ]?([-\w\.]*)/i], [[l, /_/g, " "], [u, "Nokia"], [a, x]], [/(pixel c)\b/i], [l, [u, B], [a, y]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [l, [u, B], [a, x]], [/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i], [l, [u, P], [a, x]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[l, "Xperia Tablet"], [u, P], [a, y]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [l, [u, "OnePlus"], [a, x]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [l, [u, C], [a, y]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[l, /(.+)/g, "Fire Phone $1"], [u, C], [a, x]], [/(playbook);[-\w\),; ]+(rim)/i], [l, u, [a, y]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [l, [u, G], [a, x]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [l, [u, oe], [a, y]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [l, [u, oe], [a, x]], [/(nexus 9)/i], [l, [u, "HTC"], [a, y]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [u, [l, /_/g, " "], [a, x]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [l, [u, "Acer"], [a, y]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [l, [u, "Meizu"], [a, x]], [/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i], [l, [u, "Ulefone"], [a, x]], [/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i, /(hp) ([\w ]+\w)/i, /(asus)-?(\w+)/i, /(microsoft); (lumia[\w ]+)/i, /(lenovo)[-_ ]?([-\w]+)/i, /(jolla)/i, /(oppo) ?([\w ]+) bui/i], [u, l, [a, x]], [/(kobo)\s(ereader|touch)/i, /(archos) (gamepad2?)/i, /(hp).+(touchpad(?!.+tablet)|tablet)/i, /(kindle)\/([\w\.]+)/i, /(nook)[\w ]+build\/(\w+)/i, /(dell) (strea[kpr\d ]*[\dko])/i, /(le[- ]+pan)[- ]+(\w{1,9}) bui/i, /(trinity)[- ]*(t\d{3}) bui/i, /(gigaset)[- ]+(q\w{1,9}) bui/i, /(vodafone) ([\w ]+)(?:\)| bui)/i], [u, l, [a, y]], [/(surface duo)/i], [l, [u, X], [a, y]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [l, [u, "Fairphone"], [a, x]], [/(u304aa)/i], [l, [u, "AT&T"], [a, x]], [/\bsie-(\w*)/i], [l, [u, "Siemens"], [a, x]], [/\b(rct\w+) b/i], [l, [u, "RCA"], [a, y]], [/\b(venue[\d ]{2,7}) b/i], [l, [u, "Dell"], [a, y]], [/\b(q(?:mv|ta)\w+) b/i], [l, [u, "Verizon"], [a, y]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [l, [u, "Barnes & Noble"], [a, y]], [/\b(tm\d{3}\w+) b/i], [l, [u, "NuVision"], [a, y]], [/\b(k88) b/i], [l, [u, "ZTE"], [a, y]], [/\b(nx\d{3}j) b/i], [l, [u, "ZTE"], [a, x]], [/\b(gen\d{3}) b.+49h/i], [l, [u, "Swiss"], [a, x]], [/\b(zur\d{3}) b/i], [l, [u, "Swiss"], [a, y]], [/\b((zeki)?tb.*\b) b/i], [l, [u, "Zeki"], [a, y]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[u, "Dragon Touch"], l, [a, y]], [/\b(ns-?\w{0,9}) b/i], [l, [u, "Insignia"], [a, y]], [/\b((nxa|next)-?\w{0,9}) b/i], [l, [u, "NextBook"], [a, y]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[u, "Voice"], l, [a, x]], [/\b(lvtel\-)?(v1[12]) b/i], [[u, "LvTel"], l, [a, x]], [/\b(ph-1) /i], [l, [u, "Essential"], [a, x]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [l, [u, "Envizen"], [a, y]], [/\b(trio[-\w\. ]+) b/i], [l, [u, "MachSpeed"], [a, y]], [/\btu_(1491) b/i], [l, [u, "Rotor"], [a, y]], [/(shield[\w ]+) b/i], [l, [u, "Nvidia"], [a, y]], [/(sprint) (\w+)/i], [u, l, [a, x]], [/(kin\.[onetw]{3})/i], [[l, /\./g, " "], [u, X], [a, x]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [l, [u, xe], [a, y]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [l, [u, xe], [a, x]], [/smart-tv.+(samsung)/i], [u, [a, F]], [/hbbtv.+maple;(\d+)/i], [[l, /^/, "SmartTV"], [u, ce], [a, F]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[u, ie], [a, F]], [/(apple) ?tv/i], [u, [l, z + " TV"], [a, F]], [/crkey/i], [[l, J + "cast"], [u, B], [a, F]], [/droid.+aft(\w+)( bui|\))/i], [l, [u, C], [a, F]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [l, [u, T], [a, F]], [/(bravia[\w ]+)( bui|\))/i], [l, [u, P], [a, F]], [/(mitv-\w{5}) bui/i], [l, [u, V], [a, F]], [/Hbbtv.*(technisat) (.*);/i], [u, l, [a, F]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[u, Fe], [l, Fe], [a, F]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[a, F]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [u, l, [a, k]], [/droid.+; (shield) bui/i], [l, [u, "Nvidia"], [a, k]], [/(playstation [345portablevi]+)/i], [l, [u, P], [a, k]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [l, [u, X], [a, k]], [/((pebble))app/i], [u, l, [a, R]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [l, [u, z], [a, R]], [/droid.+; (glass) \d/i], [l, [u, B], [a, R]], [/droid.+; (wt63?0{2,3})\)/i], [l, [u, xe], [a, R]], [/(quest( 2| pro)?)/i], [l, [u, Ie], [a, R]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [u, [a, q]], [/(aeobc)\b/i], [l, [u, C], [a, q]], [/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i], [l, [a, x]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [l, [a, y]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[a, y]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[a, x]], [/(android[-\w\. ]{0,9});.+buil/i], [l, [u, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [p, [f, ne + "HTML"]], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [p, [f, "Blink"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i, /ekioh(flow)\/([\w\.]+)/i, /(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, /(icab)[\/ ]([23]\.[\d\.]+)/i, /\b(libweb)/i], [f, p], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [p, f]], os: [[/microsoft (windows) (vista|xp)/i], [f, p], [/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i], [f, [p, Re, $t]], [/windows nt 6\.2; (arm)/i, /windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i, /(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[p, Re, $t], [f, "Windows"]], [/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i, /(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[p, /_/g, "."], [f, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[f, et], [p, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [p, f], [/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i, /(blackberry)\w*\/([\w\.]*)/i, /(tizen|kaios)[\/ ]([\w\.]+)/i, /\((series40);/i], [f, p], [/\(bb(10);/i], [p, [f, G]], [/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i], [p, [f, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [p, [f, pe + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [p, [f, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [p, [f, "watchOS"]], [/crkey\/([\d\.]+)/i], [p, [f, J + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[f, lt], p], [/panasonic;(viera)/i, /(netrange)mmh/i, /(nettv)\/(\d+\.[\w\.]+)/i, /(nintendo|playstation) ([wids345portablevuch]+)/i, /(xbox); +xbox ([^\);]+)/i, /\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i, /(mint)[\/\(\) ]?(\w*)/i, /(mageia|vectorlinux)[; ]/i, /([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i, /(hurd|linux) ?([\w\.]*)/i, /(gnu) ?([\w\.]*)/i, /\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i, /(haiku) (\w+)/i], [f, p], [/(sunos) ?([\w\.\d]*)/i], [[f, "Solaris"], p], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [f, p]] }, Pe = function(U, Q) {
|
|
855
|
+
if (typeof U === v && (Q = U, U = r), !(this instanceof Pe))
|
|
856
|
+
return new Pe(U, Q).getResult();
|
|
857
|
+
var N = typeof n !== b && n.navigator ? n.navigator : r, ae = U || (N && N.userAgent ? N.userAgent : c), ze = N && N.userAgentData ? N.userAgentData : r, $e = Q ? S(Mt, Q) : Mt, Y = N && N.userAgent == ae;
|
|
858
858
|
return this.getBrowser = function() {
|
|
859
859
|
var A = {};
|
|
860
|
-
return A[
|
|
860
|
+
return A[f] = r, A[p] = r, Ve.call(A, ae, $e.browser), A[h] = De(A[p]), Y && N && N.brave && typeof N.brave.isBrave == d && (A[f] = "Brave"), A;
|
|
861
861
|
}, this.getCPU = function() {
|
|
862
862
|
var A = {};
|
|
863
|
-
return A[g] = r, Ve.call(A,
|
|
863
|
+
return A[g] = r, Ve.call(A, ae, $e.cpu), A;
|
|
864
864
|
}, this.getDevice = function() {
|
|
865
865
|
var A = {};
|
|
866
|
-
return A[u] = r, A[l] = r, A[a] = r, Ve.call(A,
|
|
866
|
+
return A[u] = r, A[l] = r, A[a] = r, Ve.call(A, ae, $e.device), Y && !A[a] && ze && ze.mobile && (A[a] = x), Y && A[l] == "Macintosh" && N && typeof N.standalone !== b && N.maxTouchPoints && N.maxTouchPoints > 2 && (A[l] = "iPad", A[a] = y), A;
|
|
867
867
|
}, this.getEngine = function() {
|
|
868
868
|
var A = {};
|
|
869
|
-
return A[
|
|
869
|
+
return A[f] = r, A[p] = r, Ve.call(A, ae, $e.engine), A;
|
|
870
870
|
}, this.getOS = function() {
|
|
871
871
|
var A = {};
|
|
872
|
-
return A[
|
|
872
|
+
return A[f] = r, A[p] = r, Ve.call(A, ae, $e.os), Y && !A[f] && ze && ze.platform != "Unknown" && (A[f] = ze.platform.replace(/chrome os/i, lt).replace(/macos/i, et)), A;
|
|
873
873
|
}, this.getResult = function() {
|
|
874
874
|
return { ua: this.getUA(), browser: this.getBrowser(), engine: this.getEngine(), os: this.getOS(), device: this.getDevice(), cpu: this.getCPU() };
|
|
875
875
|
}, this.getUA = function() {
|
|
876
|
-
return
|
|
876
|
+
return ae;
|
|
877
877
|
}, this.setUA = function(A) {
|
|
878
|
-
return
|
|
879
|
-
}, this.setUA(
|
|
878
|
+
return ae = typeof A === m && A.length > M ? Fe(A, M) : A, this;
|
|
879
|
+
}, this.setUA(ae), this;
|
|
880
880
|
};
|
|
881
|
-
Pe.VERSION = o, Pe.BROWSER = W([
|
|
881
|
+
Pe.VERSION = o, Pe.BROWSER = W([f, p, h]), Pe.CPU = W([g]), Pe.DEVICE = W([l, u, a, k, x, F, y, R, q]), Pe.ENGINE = Pe.OS = W([f, p]), e.exports && (t = e.exports = Pe), t.UAParser = Pe;
|
|
882
882
|
var st = typeof n !== b && (n.jQuery || n.Zepto);
|
|
883
883
|
if (st && !st.ua) {
|
|
884
884
|
var gt = new Pe();
|
|
@@ -886,9 +886,9 @@ var I = {}, bn = { exports: {} };
|
|
|
886
886
|
return gt.getUA();
|
|
887
887
|
}, st.ua.set = function(U) {
|
|
888
888
|
gt.setUA(U);
|
|
889
|
-
var
|
|
890
|
-
for (var N in
|
|
891
|
-
st.ua[N] =
|
|
889
|
+
var Q = gt.getResult();
|
|
890
|
+
for (var N in Q)
|
|
891
|
+
st.ua[N] = Q[N];
|
|
892
892
|
};
|
|
893
893
|
}
|
|
894
894
|
})(typeof window == "object" ? window : Mo);
|
|
@@ -898,7 +898,7 @@ Object.defineProperty(I, "__esModule", { value: !0 });
|
|
|
898
898
|
function fi(e) {
|
|
899
899
|
return e && typeof e == "object" && "default" in e ? e.default : e;
|
|
900
900
|
}
|
|
901
|
-
var Te =
|
|
901
|
+
var Te = ue, de = fi(Te), lr = di, bt = new lr(), Ce = bt.getBrowser(), pi = bt.getCPU(), We = bt.getDevice(), xn = bt.getEngine(), vt = bt.getOS(), jt = bt.getUA(), sr = function(t) {
|
|
902
902
|
return bt.setUA(t);
|
|
903
903
|
}, Lt = function(t) {
|
|
904
904
|
if (!t) {
|
|
@@ -1051,18 +1051,18 @@ function Oi(e) {
|
|
|
1051
1051
|
function _i(e, t) {
|
|
1052
1052
|
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
1053
1053
|
if (n != null) {
|
|
1054
|
-
var r = [], o = !0, c = !1, i,
|
|
1054
|
+
var r = [], o = !0, c = !1, i, d;
|
|
1055
1055
|
try {
|
|
1056
1056
|
for (n = n.call(e); !(o = (i = n.next()).done) && (r.push(i.value), !(t && r.length === t)); o = !0)
|
|
1057
1057
|
;
|
|
1058
1058
|
} catch (b) {
|
|
1059
|
-
c = !0,
|
|
1059
|
+
c = !0, d = b;
|
|
1060
1060
|
} finally {
|
|
1061
1061
|
try {
|
|
1062
1062
|
!o && n.return != null && n.return();
|
|
1063
1063
|
} finally {
|
|
1064
1064
|
if (c)
|
|
1065
|
-
throw
|
|
1065
|
+
throw d;
|
|
1066
1066
|
}
|
|
1067
1067
|
}
|
|
1068
1068
|
return r;
|
|
@@ -1227,7 +1227,7 @@ var Ee = {
|
|
|
1227
1227
|
};
|
|
1228
1228
|
};
|
|
1229
1229
|
function Fi(e) {
|
|
1230
|
-
var t = e ? Lt(e) : cr, n = t.device, r = t.browser, o = t.engine, c = t.os, i = t.ua,
|
|
1230
|
+
var t = e ? Lt(e) : cr, n = t.device, r = t.browser, o = t.engine, c = t.os, i = t.ua, d = Ti(n.type), b = d.isBrowser, v = d.isMobile, m = d.isTablet, h = d.isSmartTV, l = d.isConsole, f = d.isWearable, a = d.isEmbedded;
|
|
1231
1231
|
if (b)
|
|
1232
1232
|
return Ii(b, r, o, c, i);
|
|
1233
1233
|
if (h)
|
|
@@ -1235,9 +1235,9 @@ function Fi(e) {
|
|
|
1235
1235
|
if (l)
|
|
1236
1236
|
return Pi(l, o, c, i);
|
|
1237
1237
|
if (v || m)
|
|
1238
|
-
return Yn(
|
|
1239
|
-
if (
|
|
1240
|
-
return ji(
|
|
1238
|
+
return Yn(d, n, c, i);
|
|
1239
|
+
if (f)
|
|
1240
|
+
return ji(f, o, c, i);
|
|
1241
1241
|
if (a)
|
|
1242
1242
|
return Li(a, n, o, c, i);
|
|
1243
1243
|
}
|
|
@@ -1413,54 +1413,54 @@ var Kr = pr(We), Gr = vr(We), Jr = br(We), Ni = mr(We), Ai = jr(Ce) || Qe(), Di
|
|
|
1413
1413
|
console.error("No valid user agent string was provided");
|
|
1414
1414
|
return;
|
|
1415
1415
|
}
|
|
1416
|
-
var n = Lt(t), r = n.device, o = n.browser, c = n.os, i = n.engine,
|
|
1416
|
+
var n = Lt(t), r = n.device, o = n.browser, c = n.os, i = n.engine, d = n.ua;
|
|
1417
1417
|
return Yr({
|
|
1418
1418
|
device: r,
|
|
1419
1419
|
browser: o,
|
|
1420
1420
|
os: c,
|
|
1421
1421
|
engine: i,
|
|
1422
|
-
ua:
|
|
1422
|
+
ua: d
|
|
1423
1423
|
});
|
|
1424
1424
|
}, ba = function(t) {
|
|
1425
1425
|
var n = t.renderWithFragment, r = t.children, o = He(t, ["renderWithFragment", "children"]);
|
|
1426
|
-
return eo ? n ?
|
|
1426
|
+
return eo ? n ? de.createElement(Te.Fragment, null, r) : de.createElement("div", o, r) : null;
|
|
1427
1427
|
}, va = function(t) {
|
|
1428
1428
|
var n = t.renderWithFragment, r = t.children, o = He(t, ["renderWithFragment", "children"]);
|
|
1429
|
-
return Zr ? n ?
|
|
1429
|
+
return Zr ? n ? de.createElement(Te.Fragment, null, r) : de.createElement("div", o, r) : null;
|
|
1430
1430
|
}, ma = function(t) {
|
|
1431
1431
|
var n = t.renderWithFragment, r = t.children, o = He(t, ["renderWithFragment", "children"]);
|
|
1432
|
-
return ro ? n ?
|
|
1432
|
+
return ro ? n ? de.createElement(Te.Fragment, null, r) : de.createElement("div", o, r) : null;
|
|
1433
1433
|
}, ha = function(t) {
|
|
1434
1434
|
var n = t.renderWithFragment, r = t.children, o = He(t, ["renderWithFragment", "children"]);
|
|
1435
|
-
return no ? n ?
|
|
1435
|
+
return no ? n ? de.createElement(Te.Fragment, null, r) : de.createElement("div", o, r) : null;
|
|
1436
1436
|
}, ga = function(t) {
|
|
1437
1437
|
var n = t.renderWithFragment, r = t.children, o = He(t, ["renderWithFragment", "children"]);
|
|
1438
|
-
return Qt ? n ?
|
|
1438
|
+
return Qt ? n ? de.createElement(Te.Fragment, null, r) : de.createElement("div", o, r) : null;
|
|
1439
1439
|
}, wa = function(t) {
|
|
1440
1440
|
var n = t.renderWithFragment, r = t.children, o = He(t, ["renderWithFragment", "children"]);
|
|
1441
|
-
return Xr ? n ?
|
|
1441
|
+
return Xr ? n ? de.createElement(Te.Fragment, null, r) : de.createElement("div", o, r) : null;
|
|
1442
1442
|
}, xa = function(t) {
|
|
1443
1443
|
var n = t.renderWithFragment, r = t.children, o = He(t, ["renderWithFragment", "children"]);
|
|
1444
|
-
return to ? n ?
|
|
1444
|
+
return to ? n ? de.createElement(Te.Fragment, null, r) : de.createElement("div", o, r) : null;
|
|
1445
1445
|
}, ya = function(t) {
|
|
1446
1446
|
var n = t.renderWithFragment, r = t.children;
|
|
1447
1447
|
t.viewClassName, t.style;
|
|
1448
1448
|
var o = He(t, ["renderWithFragment", "children", "viewClassName", "style"]);
|
|
1449
|
-
return Qr ? n ?
|
|
1449
|
+
return Qr ? n ? de.createElement(Te.Fragment, null, r) : de.createElement("div", o, r) : null;
|
|
1450
1450
|
}, Oa = function(t) {
|
|
1451
1451
|
var n = t.renderWithFragment, r = t.children, o = He(t, ["renderWithFragment", "children"]);
|
|
1452
|
-
return Kr ? n ?
|
|
1452
|
+
return Kr ? n ? de.createElement(Te.Fragment, null, r) : de.createElement("div", o, r) : null;
|
|
1453
1453
|
}, _a = function(t) {
|
|
1454
1454
|
var n = t.renderWithFragment, r = t.children, o = He(t, ["renderWithFragment", "children"]);
|
|
1455
|
-
return Gr ? n ?
|
|
1455
|
+
return Gr ? n ? de.createElement(Te.Fragment, null, r) : de.createElement("div", o, r) : null;
|
|
1456
1456
|
}, ka = function(t) {
|
|
1457
1457
|
var n = t.renderWithFragment, r = t.children, o = He(t, ["renderWithFragment", "children"]);
|
|
1458
|
-
return Jr ? n ?
|
|
1458
|
+
return Jr ? n ? de.createElement(Te.Fragment, null, r) : de.createElement("div", o, r) : null;
|
|
1459
1459
|
}, Sa = function(t) {
|
|
1460
1460
|
var n = t.renderWithFragment, r = t.children;
|
|
1461
1461
|
t.viewClassName, t.style;
|
|
1462
1462
|
var o = t.condition, c = He(t, ["renderWithFragment", "children", "viewClassName", "style", "condition"]);
|
|
1463
|
-
return o ? n ?
|
|
1463
|
+
return o ? n ? de.createElement(Te.Fragment, null, r) : de.createElement("div", c, r) : null;
|
|
1464
1464
|
};
|
|
1465
1465
|
function Ea(e) {
|
|
1466
1466
|
return /* @__PURE__ */ function(t) {
|
|
@@ -1505,13 +1505,13 @@ function Ea(e) {
|
|
|
1505
1505
|
}, {
|
|
1506
1506
|
key: "render",
|
|
1507
1507
|
value: function() {
|
|
1508
|
-
return
|
|
1508
|
+
return de.createElement(e, vn({}, this.props, {
|
|
1509
1509
|
isLandscape: this.state.isLandscape,
|
|
1510
1510
|
isPortrait: this.state.isPortrait
|
|
1511
1511
|
}));
|
|
1512
1512
|
}
|
|
1513
1513
|
}]), n;
|
|
1514
|
-
}(
|
|
1514
|
+
}(de.Component);
|
|
1515
1515
|
}
|
|
1516
1516
|
function Ta() {
|
|
1517
1517
|
var e = Te.useState(function() {
|
|
@@ -1608,14 +1608,14 @@ I.useDeviceData = oo;
|
|
|
1608
1608
|
I.useDeviceSelectors = Ca;
|
|
1609
1609
|
I.useMobileOrientation = Ta;
|
|
1610
1610
|
I.withOrientationChange = Ea;
|
|
1611
|
-
const Ec =
|
|
1611
|
+
const Ec = ue.memo(
|
|
1612
1612
|
dt(
|
|
1613
|
-
({ themeColor: e = "", onSubmit: t, style: n = {}, className: r = "", onInput: o, onFocus: c, onBlur: i, ...
|
|
1614
|
-
const [v, m] =
|
|
1615
|
-
e = Ze.convert3HexTo6(e),
|
|
1613
|
+
({ themeColor: e = "", onSubmit: t, style: n = {}, className: r = "", onInput: o, onFocus: c, onBlur: i, ...d }, b) => {
|
|
1614
|
+
const [v, m] = le(!0), [h, l] = le(!1);
|
|
1615
|
+
e = Ze.convert3HexTo6(e), re(() => {
|
|
1616
1616
|
m(Ia);
|
|
1617
1617
|
}, []);
|
|
1618
|
-
const
|
|
1618
|
+
const f = (x) => {
|
|
1619
1619
|
!v && x.key === "Enter" && !x.shiftKey && t && (x.preventDefault(), t());
|
|
1620
1620
|
}, a = (x) => {
|
|
1621
1621
|
o?.(x), x.target.style.height = "40px", x.target.style.height = 2 + x.target.scrollHeight + "px";
|
|
@@ -1628,7 +1628,7 @@ const Ec = ce.memo(
|
|
|
1628
1628
|
};
|
|
1629
1629
|
return u = {
|
|
1630
1630
|
borderBottomColor: h ? e !== "#ffffff" ? e : "#c8c8c8" : ""
|
|
1631
|
-
}, /* @__PURE__ */
|
|
1631
|
+
}, /* @__PURE__ */ _.jsx("div", { className: Un.textInputWrapper, children: /* @__PURE__ */ _.jsx(
|
|
1632
1632
|
"textarea",
|
|
1633
1633
|
{
|
|
1634
1634
|
"data-testid": "textbox-input",
|
|
@@ -1638,8 +1638,8 @@ const Ec = ce.memo(
|
|
|
1638
1638
|
onFocus: g,
|
|
1639
1639
|
onBlur: k,
|
|
1640
1640
|
onInput: (x) => a(x),
|
|
1641
|
-
onKeyDown:
|
|
1642
|
-
...
|
|
1641
|
+
onKeyDown: f,
|
|
1642
|
+
...d
|
|
1643
1643
|
}
|
|
1644
1644
|
) });
|
|
1645
1645
|
}
|
|
@@ -1670,7 +1670,7 @@ const Ec = ce.memo(
|
|
|
1670
1670
|
checkboxDisabled: Qa
|
|
1671
1671
|
}, io = ({ checked: e = !1, themeColor: t = "", disabled: n = !1 }) => {
|
|
1672
1672
|
let r = {}, o = "#006bb1", c = n ? "#9b9b9b" : "#ffffff";
|
|
1673
|
-
const i = n ? It.checkboxDisabled : "",
|
|
1673
|
+
const i = n ? It.checkboxDisabled : "", d = e ? It.checked : "", b = [It.pseudoCheckbox, d, i].filter(Boolean).join(" ");
|
|
1674
1674
|
let v;
|
|
1675
1675
|
if (t) {
|
|
1676
1676
|
const m = pt(t);
|
|
@@ -1680,7 +1680,7 @@ const Ec = ce.memo(
|
|
|
1680
1680
|
outlineColor: v
|
|
1681
1681
|
})) : c = "#9b9b9b";
|
|
1682
1682
|
}
|
|
1683
|
-
return /* @__PURE__ */
|
|
1683
|
+
return /* @__PURE__ */ _.jsx(
|
|
1684
1684
|
"div",
|
|
1685
1685
|
{
|
|
1686
1686
|
style: r,
|
|
@@ -1690,7 +1690,7 @@ const Ec = ce.memo(
|
|
|
1690
1690
|
"aria-hidden": "true",
|
|
1691
1691
|
tabIndex: -1,
|
|
1692
1692
|
"data-testid": "checkbox-input",
|
|
1693
|
-
children: /* @__PURE__ */
|
|
1693
|
+
children: /* @__PURE__ */ _.jsx("svg", { version: "1.1", focusable: "false", className: It.checkboxCheckMark, viewBox: "0 0 24 24", children: /* @__PURE__ */ _.jsx(
|
|
1694
1694
|
"path",
|
|
1695
1695
|
{
|
|
1696
1696
|
className: It.checkboxCheckMarkPath,
|
|
@@ -1712,36 +1712,36 @@ const Tc = ({
|
|
|
1712
1712
|
className: c = "",
|
|
1713
1713
|
style: i = {}
|
|
1714
1714
|
}) => {
|
|
1715
|
-
const
|
|
1716
|
-
let
|
|
1717
|
-
const [
|
|
1715
|
+
const d = j(e), [b, v] = le(t), [m, h] = le(""), [l, f] = le(!1), [a, u] = le(!1), p = j(null), g = j(null), k = j(null), x = j(null), y = j(null), F = j(null), [R, q] = le(-1), M = j(0), C = j(0), [z, oe] = le(!1);
|
|
1716
|
+
let G = {};
|
|
1717
|
+
const [O, J] = le({ left: 0, top: 0 }), [ne, pe] = le(null), B = j(!1), fe = () => {
|
|
1718
1718
|
setTimeout(() => {
|
|
1719
1719
|
(p.current?.children[0]).focus();
|
|
1720
1720
|
}, 0);
|
|
1721
1721
|
};
|
|
1722
|
-
|
|
1722
|
+
re(() => {
|
|
1723
1723
|
const S = (W) => {
|
|
1724
|
-
g.current && !g.current.contains(W.target) && (
|
|
1724
|
+
g.current && !g.current.contains(W.target) && (f(!1), h(""), fe());
|
|
1725
1725
|
};
|
|
1726
1726
|
return document.addEventListener("mousedown", S), () => {
|
|
1727
1727
|
document.removeEventListener("mousedown", S);
|
|
1728
1728
|
};
|
|
1729
1729
|
}, []);
|
|
1730
|
-
const
|
|
1731
|
-
M.current = window.innerHeight, C.current = document.body.scrollHeight,
|
|
1730
|
+
const ie = () => {
|
|
1731
|
+
M.current = window.innerHeight, C.current = document.body.scrollHeight, oe(!0);
|
|
1732
1732
|
};
|
|
1733
|
-
|
|
1734
|
-
window.addEventListener("resize",
|
|
1733
|
+
re(() => (ie(), window.addEventListener("resize", ie), () => {
|
|
1734
|
+
window.addEventListener("resize", ie);
|
|
1735
1735
|
}), []);
|
|
1736
|
-
const
|
|
1736
|
+
const X = (S) => {
|
|
1737
1737
|
const W = document.getElementById("announcement");
|
|
1738
1738
|
W && (W.textContent = S, W.setAttribute("aria-live", "assertive"), setTimeout(() => {
|
|
1739
1739
|
W.textContent = "", W.setAttribute("aria-live", "off");
|
|
1740
1740
|
}, 1e3));
|
|
1741
1741
|
};
|
|
1742
|
-
|
|
1742
|
+
re(() => {
|
|
1743
1743
|
const S = e.filter((W) => W.label.toLowerCase().includes(m.toLowerCase()));
|
|
1744
|
-
|
|
1744
|
+
d.current = S;
|
|
1745
1745
|
}, [e, m]);
|
|
1746
1746
|
const me = b.length > 0 ? b.map((S) => {
|
|
1747
1747
|
const W = e.find((ye) => ye.value === S);
|
|
@@ -1750,11 +1750,11 @@ const Tc = ({
|
|
|
1750
1750
|
const W = e.find((ye) => ye.value === S);
|
|
1751
1751
|
if (W && !W.disable && (r === void 0 || b.length <= r)) {
|
|
1752
1752
|
const he = b.includes(S) ? b.filter((Fe) => Fe !== S) : [...b, S];
|
|
1753
|
-
(r === void 0 || he.length <= r) && l && (v(he), n(he),
|
|
1753
|
+
(r === void 0 || he.length <= r) && l && (v(he), n(he), X(`${W?.label} ${he.includes(S) ? "selected" : "not selected"}`));
|
|
1754
1754
|
}
|
|
1755
|
-
},
|
|
1756
|
-
P(),
|
|
1757
|
-
k.current ? k.current?.focus() : x.current?.focus(),
|
|
1755
|
+
}, ce = (S) => {
|
|
1756
|
+
P(), f(S), setTimeout(() => {
|
|
1757
|
+
k.current ? k.current?.focus() : x.current?.focus(), X("use up and down arrow keys to navigate");
|
|
1758
1758
|
}, 0);
|
|
1759
1759
|
}, T = () => C.current - (M.current + window.scrollY), P = () => {
|
|
1760
1760
|
if (p.current) {
|
|
@@ -1764,7 +1764,7 @@ const Tc = ({
|
|
|
1764
1764
|
let De;
|
|
1765
1765
|
if (W) {
|
|
1766
1766
|
const Fe = S.height, Ve = S.top, Re = W.height, tt = Re > Ve + window.scrollY;
|
|
1767
|
-
Ve < Re && (tt || tt && he < Re || ye > Re || he > Re) || Ve > Re && he > Re ? De = S.y + Fe : De = S.y - Re,
|
|
1767
|
+
Ve < Re && (tt || tt && he < Re || ye > Re || he > Re) || Ve > Re && he > Re ? De = S.y + Fe : De = S.y - Re, J({
|
|
1768
1768
|
left: S.left,
|
|
1769
1769
|
top: De ?? S.top
|
|
1770
1770
|
});
|
|
@@ -1772,13 +1772,13 @@ const Tc = ({
|
|
|
1772
1772
|
}, 0);
|
|
1773
1773
|
}
|
|
1774
1774
|
};
|
|
1775
|
-
|
|
1775
|
+
re(() => (window.addEventListener("scroll", P), window.addEventListener("resize", P), () => {
|
|
1776
1776
|
window.removeEventListener("scroll", P), window.removeEventListener("resize", P);
|
|
1777
1777
|
}), [l]);
|
|
1778
1778
|
const V = (S) => {
|
|
1779
1779
|
S.preventDefault(), S.key === "Shift" ? B.current = !0 : S.shiftKey && B.current && S.key === "Tab" || S.key === "Tab" ? (setTimeout(() => {
|
|
1780
1780
|
k.current ? k.current?.focus() : x.current?.focus();
|
|
1781
|
-
}, 0), B.current = !1) : S.key === "Escape" || S.key === "Enter" || S.key === "Space" || S.key === " " ? (
|
|
1781
|
+
}, 0), B.current = !1) : S.key === "Escape" || S.key === "Enter" || S.key === "Space" || S.key === " " ? (ce(!1), fe()) : B.current = !1;
|
|
1782
1782
|
}, xe = (S) => {
|
|
1783
1783
|
const { key: W } = S;
|
|
1784
1784
|
if (W === "Tab" || S.shiftKey && W === "Tab")
|
|
@@ -1790,21 +1790,21 @@ const Tc = ({
|
|
|
1790
1790
|
x.current?.focus();
|
|
1791
1791
|
}, 0);
|
|
1792
1792
|
let ye = R;
|
|
1793
|
-
if (W === "ArrowDown" ? ye = Math.min(R + 1,
|
|
1794
|
-
const he = F.current.querySelectorAll(`.${ke.optionsList}`)[ye], De = he.children[0].getAttribute("aria-checked"), Fe = `${he.textContent} ${De === "true" ? "selected" : "not selected"} ${ye + 1} out of ${
|
|
1795
|
-
|
|
1793
|
+
if (W === "ArrowDown" ? ye = Math.min(R + 1, d.current.length - 1) : W === "ArrowUp" && (ye = Math.max(R - 1, 0)), R === 0 && S.key === "ArrowUp" ? ye = d.current.length - 1 : R === d.current.length - 1 && S.key === "ArrowDown" && (ye = 0), q(ye), F.current && ye >= 0) {
|
|
1794
|
+
const he = F.current.querySelectorAll(`.${ke.optionsList}`)[ye], De = he.children[0].getAttribute("aria-checked"), Fe = `${he.textContent} ${De === "true" ? "selected" : "not selected"} ${ye + 1} out of ${d.current.length}`;
|
|
1795
|
+
X(Fe), he && he.scrollIntoView({
|
|
1796
1796
|
block: "nearest",
|
|
1797
1797
|
inline: "nearest"
|
|
1798
1798
|
});
|
|
1799
1799
|
}
|
|
1800
1800
|
} else
|
|
1801
|
-
W === "Enter" || W === "Space" || W === " " ? R !== -1 && ve(
|
|
1801
|
+
W === "Enter" || W === "Space" || W === " " ? R !== -1 && ve(d.current[R].value) : W === "Escape" && (ce(!1), fe());
|
|
1802
1802
|
};
|
|
1803
|
-
|
|
1803
|
+
re(() => {
|
|
1804
1804
|
ne && clearTimeout(ne);
|
|
1805
1805
|
const S = setTimeout(() => {
|
|
1806
|
-
const W =
|
|
1807
|
-
l &&
|
|
1806
|
+
const W = d.current.length ? `${d.current.length} results are available, use up and down arrow keys to navigate` : "No results available";
|
|
1807
|
+
l && X(W);
|
|
1808
1808
|
}, 500);
|
|
1809
1809
|
pe(S);
|
|
1810
1810
|
}, [m]);
|
|
@@ -1815,28 +1815,28 @@ const Tc = ({
|
|
|
1815
1815
|
};
|
|
1816
1816
|
if (o) {
|
|
1817
1817
|
const S = pt(o);
|
|
1818
|
-
o = Ze.convert3HexTo6(o), (S === "dark" || S === "light") && (
|
|
1818
|
+
o = Ze.convert3HexTo6(o), (S === "dark" || S === "light") && (G = {
|
|
1819
1819
|
borderBottomColor: o === "#ffffff" ? "#c8c8c8" : a || l ? o : "#333333"
|
|
1820
1820
|
});
|
|
1821
1821
|
}
|
|
1822
1822
|
const et = () => {
|
|
1823
|
-
|
|
1823
|
+
f(!1);
|
|
1824
1824
|
};
|
|
1825
|
-
return /* @__PURE__ */
|
|
1826
|
-
/* @__PURE__ */
|
|
1827
|
-
/* @__PURE__ */
|
|
1825
|
+
return /* @__PURE__ */ _.jsx("div", { className: ke.multiSelectContainer, children: /* @__PURE__ */ _.jsxs("div", { className: ke.listOptionsWrap, children: [
|
|
1826
|
+
/* @__PURE__ */ _.jsxs("div", { className: `${c} ${ke.selectedValuesWrap}`, ref: p, children: [
|
|
1827
|
+
/* @__PURE__ */ _.jsx(
|
|
1828
1828
|
"div",
|
|
1829
1829
|
{
|
|
1830
1830
|
className: `${ke.selectedValues} ${l ? ke.focused : ""} ${b.length === 0 ? ke.placeholder : ""}`,
|
|
1831
1831
|
onFocus: Ie,
|
|
1832
1832
|
onBlur: lt,
|
|
1833
|
-
onClick: () =>
|
|
1833
|
+
onClick: () => ce(!l),
|
|
1834
1834
|
onKeyPress: (S) => {
|
|
1835
|
-
(S.key === " " || S.code === "Space" || S.code === "Enter") && (S.preventDefault(),
|
|
1835
|
+
(S.key === " " || S.code === "Space" || S.code === "Enter") && (S.preventDefault(), ce(!l));
|
|
1836
1836
|
},
|
|
1837
1837
|
tabIndex: 0,
|
|
1838
1838
|
"data-testid": "selected-input",
|
|
1839
|
-
style: { ...
|
|
1839
|
+
style: { ...G, ...i },
|
|
1840
1840
|
"aria-expanded": l,
|
|
1841
1841
|
"aria-haspopup": "listbox",
|
|
1842
1842
|
"aria-multiselectable": "true",
|
|
@@ -1845,13 +1845,13 @@ const Tc = ({
|
|
|
1845
1845
|
children: me
|
|
1846
1846
|
}
|
|
1847
1847
|
),
|
|
1848
|
-
/* @__PURE__ */
|
|
1848
|
+
/* @__PURE__ */ _.jsx(
|
|
1849
1849
|
"span",
|
|
1850
1850
|
{
|
|
1851
1851
|
className: ke.dropDownIcon,
|
|
1852
|
-
onClick: () =>
|
|
1852
|
+
onClick: () => ce(!l),
|
|
1853
1853
|
"data-testid": "arrow-button",
|
|
1854
|
-
children: /* @__PURE__ */
|
|
1854
|
+
children: /* @__PURE__ */ _.jsx("svg", { width: "12px", height: "7px", viewBox: "0 0 12 7", version: "1.1", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ _.jsx("g", { stroke: "none", strokeWidth: "1", fill: "none", fillRule: "evenodd", children: /* @__PURE__ */ _.jsx("g", { transform: "translate(-2360.000000, -295.000000)", fill: "#666666", children: /* @__PURE__ */ _.jsx("g", { transform: "translate(2006.000000, 248.000000)", children: /* @__PURE__ */ _.jsx(
|
|
1855
1855
|
"path",
|
|
1856
1856
|
{
|
|
1857
1857
|
d: "M358.027356,44.3431458 L358.027146,50.6581458 L364.343146,50.6589352 L364.343146,52.3431458 L358.027146,52.3421458 L358.027356,52.3431458 L356.343146,52.3431458 L356.343146,44.3431458 L358.027356,44.3431458 Z",
|
|
@@ -1861,9 +1861,9 @@ const Tc = ({
|
|
|
1861
1861
|
}
|
|
1862
1862
|
)
|
|
1863
1863
|
] }),
|
|
1864
|
-
/* @__PURE__ */
|
|
1864
|
+
/* @__PURE__ */ _.jsx("div", { id: "announcement", "aria-live": "assertive", role: "alert", className: ke.announcement }),
|
|
1865
1865
|
z ? wn(
|
|
1866
|
-
/* @__PURE__ */
|
|
1866
|
+
/* @__PURE__ */ _.jsx(_.Fragment, { children: l && p && /* @__PURE__ */ _.jsx(
|
|
1867
1867
|
"div",
|
|
1868
1868
|
{
|
|
1869
1869
|
onClick: et,
|
|
@@ -1873,21 +1873,21 @@ const Tc = ({
|
|
|
1873
1873
|
backgroundColor: "rgba(255,255,255,0)",
|
|
1874
1874
|
zIndex: 1e3
|
|
1875
1875
|
},
|
|
1876
|
-
children: /* @__PURE__ */
|
|
1876
|
+
children: /* @__PURE__ */ _.jsxs(
|
|
1877
1877
|
"div",
|
|
1878
1878
|
{
|
|
1879
1879
|
className: `${ke.optionsListContainer}`,
|
|
1880
1880
|
ref: g,
|
|
1881
1881
|
onClick: (S) => S.stopPropagation(),
|
|
1882
1882
|
style: {
|
|
1883
|
-
opacity:
|
|
1883
|
+
opacity: O.left ? 1 : 0,
|
|
1884
1884
|
width: p.current ? p.current.clientWidth : "auto",
|
|
1885
|
-
left:
|
|
1886
|
-
top:
|
|
1885
|
+
left: O.left,
|
|
1886
|
+
top: O.top
|
|
1887
1887
|
},
|
|
1888
1888
|
children: [
|
|
1889
|
-
/* @__PURE__ */
|
|
1890
|
-
e.length >= 6 && /* @__PURE__ */
|
|
1889
|
+
/* @__PURE__ */ _.jsxs("div", { className: ke.optionsListWrap, children: [
|
|
1890
|
+
e.length >= 6 && /* @__PURE__ */ _.jsx("div", { className: ke.searchInputWrap, children: /* @__PURE__ */ _.jsx(
|
|
1891
1891
|
"input",
|
|
1892
1892
|
{
|
|
1893
1893
|
type: "text",
|
|
@@ -1902,9 +1902,9 @@ const Tc = ({
|
|
|
1902
1902
|
}
|
|
1903
1903
|
}
|
|
1904
1904
|
) }),
|
|
1905
|
-
/* @__PURE__ */
|
|
1905
|
+
/* @__PURE__ */ _.jsx("ul", { ref: F, role: "listbox", children: d.current.map((S, W) => (
|
|
1906
1906
|
// eslint-disable-next-line jsx-a11y/role-supports-aria-props
|
|
1907
|
-
/* @__PURE__ */
|
|
1907
|
+
/* @__PURE__ */ _.jsxs(
|
|
1908
1908
|
"li",
|
|
1909
1909
|
{
|
|
1910
1910
|
className: `${ke.optionsList} ${W === R ? ke.focused : ""}`,
|
|
@@ -1912,7 +1912,7 @@ const Tc = ({
|
|
|
1912
1912
|
"aria-selected": W === R,
|
|
1913
1913
|
role: "option",
|
|
1914
1914
|
children: [
|
|
1915
|
-
/* @__PURE__ */
|
|
1915
|
+
/* @__PURE__ */ _.jsx(
|
|
1916
1916
|
io,
|
|
1917
1917
|
{
|
|
1918
1918
|
themeColor: o,
|
|
@@ -1920,15 +1920,15 @@ const Tc = ({
|
|
|
1920
1920
|
disabled: S.disable || r !== void 0 && b.length >= r && !b.includes(S.value)
|
|
1921
1921
|
}
|
|
1922
1922
|
),
|
|
1923
|
-
/* @__PURE__ */
|
|
1923
|
+
/* @__PURE__ */ _.jsx("span", { children: S.label })
|
|
1924
1924
|
]
|
|
1925
1925
|
},
|
|
1926
1926
|
S.value
|
|
1927
1927
|
)
|
|
1928
1928
|
)) })
|
|
1929
1929
|
] }),
|
|
1930
|
-
/* @__PURE__ */
|
|
1931
|
-
/* @__PURE__ */
|
|
1930
|
+
/* @__PURE__ */ _.jsxs("div", { className: ke.btnContainer, children: [
|
|
1931
|
+
/* @__PURE__ */ _.jsx(
|
|
1932
1932
|
"input",
|
|
1933
1933
|
{
|
|
1934
1934
|
ref: x,
|
|
@@ -1938,14 +1938,14 @@ const Tc = ({
|
|
|
1938
1938
|
className: ke.hiddenButton
|
|
1939
1939
|
}
|
|
1940
1940
|
),
|
|
1941
|
-
/* @__PURE__ */
|
|
1941
|
+
/* @__PURE__ */ _.jsx(
|
|
1942
1942
|
ir,
|
|
1943
1943
|
{
|
|
1944
1944
|
themeColor: o,
|
|
1945
1945
|
variant: "primary",
|
|
1946
1946
|
size: "medium",
|
|
1947
1947
|
onClick: () => {
|
|
1948
|
-
|
|
1948
|
+
f(!1), h(""), fe(), n(b);
|
|
1949
1949
|
},
|
|
1950
1950
|
"data-testid": "done-button",
|
|
1951
1951
|
onKeyDown: (S) => {
|
|
@@ -1977,11 +1977,11 @@ const Tc = ({
|
|
|
1977
1977
|
themeColor: o,
|
|
1978
1978
|
className: c = "",
|
|
1979
1979
|
style: i = {},
|
|
1980
|
-
id:
|
|
1980
|
+
id: d = ""
|
|
1981
1981
|
}) => {
|
|
1982
|
-
const [b, v] =
|
|
1982
|
+
const [b, v] = le(t), m = j({});
|
|
1983
1983
|
let h = {}, l;
|
|
1984
|
-
const
|
|
1984
|
+
const f = (a) => {
|
|
1985
1985
|
const u = e.find((y) => y.value === a);
|
|
1986
1986
|
if (!u || u.disable)
|
|
1987
1987
|
return;
|
|
@@ -1998,18 +1998,18 @@ const Tc = ({
|
|
|
1998
1998
|
color: o === "#ffffff" || l === "light" ? "#333333" : o
|
|
1999
1999
|
});
|
|
2000
2000
|
}
|
|
2001
|
-
return /* @__PURE__ */
|
|
2001
|
+
return /* @__PURE__ */ _.jsx("div", { className: Bt.multiSelectContainer, role: "group", children: /* @__PURE__ */ _.jsx("ul", { className: Bt.quickOptionsWrap, id: d, children: e.map((a) => /* @__PURE__ */ _.jsx(
|
|
2002
2002
|
"li",
|
|
2003
2003
|
{
|
|
2004
2004
|
style: { ...h, ...i },
|
|
2005
2005
|
className: `${c} ${a.disable || r !== void 0 && b.length >= r && !b.includes(a.value) ? Bt.disabled : ""} ${b.includes(a.value) ? Bt.selected : ""}`,
|
|
2006
2006
|
tabIndex: a.disable ? -1 : 0,
|
|
2007
|
-
onClick: () =>
|
|
2007
|
+
onClick: () => f(a.value),
|
|
2008
2008
|
onKeyPress: (u) => {
|
|
2009
|
-
(u.key === " " || u.code === "Space") && (u.preventDefault(),
|
|
2009
|
+
(u.key === " " || u.code === "Space") && (u.preventDefault(), f(a.value));
|
|
2010
2010
|
},
|
|
2011
2011
|
"data-testid": "option-box",
|
|
2012
|
-
children: /* @__PURE__ */
|
|
2012
|
+
children: /* @__PURE__ */ _.jsx(
|
|
2013
2013
|
ar,
|
|
2014
2014
|
{
|
|
2015
2015
|
id: a.value,
|
|
@@ -2021,7 +2021,7 @@ const Tc = ({
|
|
|
2021
2021
|
},
|
|
2022
2022
|
checked: b.includes(a.value),
|
|
2023
2023
|
disabled: a.disable || r !== void 0 && b.length >= r && !b.includes(a.value),
|
|
2024
|
-
children: /* @__PURE__ */
|
|
2024
|
+
children: /* @__PURE__ */ _.jsx(
|
|
2025
2025
|
"span",
|
|
2026
2026
|
{
|
|
2027
2027
|
style: {
|
|
@@ -2057,11 +2057,11 @@ const Tc = ({
|
|
|
2057
2057
|
className: o = "",
|
|
2058
2058
|
style: c = {},
|
|
2059
2059
|
showLoader: i = !1,
|
|
2060
|
-
id:
|
|
2060
|
+
id: d = ""
|
|
2061
2061
|
}) => {
|
|
2062
|
-
const [b, v] =
|
|
2062
|
+
const [b, v] = le(n);
|
|
2063
2063
|
let m = {}, h = {}, l = "#ffffff";
|
|
2064
|
-
const
|
|
2064
|
+
const f = (a) => {
|
|
2065
2065
|
if (b?.value === a?.value) {
|
|
2066
2066
|
v(void 0), t(void 0);
|
|
2067
2067
|
return;
|
|
@@ -2081,24 +2081,24 @@ const Tc = ({
|
|
|
2081
2081
|
borderTopColor: u
|
|
2082
2082
|
});
|
|
2083
2083
|
}
|
|
2084
|
-
return /* @__PURE__ */
|
|
2084
|
+
return /* @__PURE__ */ _.jsx("div", { className: Je.singleSelectWrapper, children: /* @__PURE__ */ _.jsx("div", { className: Je.quickOption, children: /* @__PURE__ */ _.jsx("ul", { className: Je.quickOption, role: "radiogroup", id: d, children: e.map((a) => /* @__PURE__ */ _.jsxs(
|
|
2085
2085
|
"li",
|
|
2086
2086
|
{
|
|
2087
2087
|
tabIndex: a.disable ? -1 : 0,
|
|
2088
2088
|
className: `${o} ${b?.value === a.value ? Je.selected : ""} ${a.disable ? Je.disabled : ""}`,
|
|
2089
2089
|
style: { ...m, ...c },
|
|
2090
|
-
onClick: () =>
|
|
2090
|
+
onClick: () => f(a),
|
|
2091
2091
|
onKeyPress: (u) => {
|
|
2092
|
-
(u.key === " " || u.code === "Space") && (u.preventDefault(),
|
|
2092
|
+
(u.key === " " || u.code === "Space") && (u.preventDefault(), f(a));
|
|
2093
2093
|
},
|
|
2094
2094
|
"data-testid": "checkbox-input",
|
|
2095
2095
|
role: "radio",
|
|
2096
2096
|
"aria-checked": b?.value === a.value,
|
|
2097
2097
|
children: [
|
|
2098
2098
|
a.label,
|
|
2099
|
-
b?.value === a.value && !a.disable && /* @__PURE__ */
|
|
2100
|
-
i && /* @__PURE__ */
|
|
2101
|
-
!i && /* @__PURE__ */
|
|
2099
|
+
b?.value === a.value && !a.disable && /* @__PURE__ */ _.jsxs("div", { className: Je.triangle, style: { ...h }, children: [
|
|
2100
|
+
i && /* @__PURE__ */ _.jsx("div", { className: Je.loader, style: { borderRightColor: r ?? "#006bb1" } }),
|
|
2101
|
+
!i && /* @__PURE__ */ _.jsx("div", { className: Je.checkmarkWrap, children: /* @__PURE__ */ _.jsx(
|
|
2102
2102
|
"svg",
|
|
2103
2103
|
{
|
|
2104
2104
|
className: Je.checkmark,
|
|
@@ -2107,7 +2107,7 @@ const Tc = ({
|
|
|
2107
2107
|
height: "9",
|
|
2108
2108
|
viewBox: "0 0 11 9",
|
|
2109
2109
|
fill: "none",
|
|
2110
|
-
children: /* @__PURE__ */
|
|
2110
|
+
children: /* @__PURE__ */ _.jsx(
|
|
2111
2111
|
"path",
|
|
2112
2112
|
{
|
|
2113
2113
|
className: Je.checkmarkCheck,
|
|
@@ -2128,7 +2128,7 @@ const Tc = ({
|
|
|
2128
2128
|
}, ml = dt(
|
|
2129
2129
|
({ children: e, className: t = "", style: n = {}, ...r }, o) => {
|
|
2130
2130
|
const c = [vl.scrollbarContainer, t].filter(Boolean).join(" ");
|
|
2131
|
-
return /* @__PURE__ */
|
|
2131
|
+
return /* @__PURE__ */ _.jsx(_.Fragment, { children: /* @__PURE__ */ _.jsx("div", { ref: o, style: { ...n }, className: c, ...r, children: e }) });
|
|
2132
2132
|
}
|
|
2133
2133
|
);
|
|
2134
2134
|
ml.displayName = "Scrollbar";
|
|
@@ -2162,7 +2162,7 @@ let wl = class {
|
|
|
2162
2162
|
return this.handoffState === "complete";
|
|
2163
2163
|
}
|
|
2164
2164
|
}, mt = new wl(), we = (e, t) => {
|
|
2165
|
-
mt.isServer ?
|
|
2165
|
+
mt.isServer ? re(e, t) : No(e, t);
|
|
2166
2166
|
};
|
|
2167
2167
|
function Ke(e) {
|
|
2168
2168
|
let t = j(e);
|
|
@@ -2171,7 +2171,7 @@ function Ke(e) {
|
|
|
2171
2171
|
}, [e]), t;
|
|
2172
2172
|
}
|
|
2173
2173
|
function Ft(e, t) {
|
|
2174
|
-
let [n, r] =
|
|
2174
|
+
let [n, r] = le(e), o = Ke(e);
|
|
2175
2175
|
return we(() => r(o.current), [o, r, ...t]), n;
|
|
2176
2176
|
}
|
|
2177
2177
|
function xl(e) {
|
|
@@ -2219,12 +2219,12 @@ function Xe() {
|
|
|
2219
2219
|
return t;
|
|
2220
2220
|
}
|
|
2221
2221
|
function it() {
|
|
2222
|
-
let [e] =
|
|
2223
|
-
return
|
|
2222
|
+
let [e] = le(Xe);
|
|
2223
|
+
return re(() => () => e.dispose(), [e]), e;
|
|
2224
2224
|
}
|
|
2225
2225
|
let L = function(e) {
|
|
2226
2226
|
let t = Ke(e);
|
|
2227
|
-
return
|
|
2227
|
+
return ue.useCallback((...n) => t.current(...n), [t]);
|
|
2228
2228
|
};
|
|
2229
2229
|
function yl() {
|
|
2230
2230
|
let e = typeof document > "u";
|
|
@@ -2238,8 +2238,8 @@ function _n() {
|
|
|
2238
2238
|
}, [t]), rt.useEffect(() => mt.handoff(), []), e ? !1 : t;
|
|
2239
2239
|
}
|
|
2240
2240
|
var Kn;
|
|
2241
|
-
let at = (Kn =
|
|
2242
|
-
let e = _n(), [t, n] =
|
|
2241
|
+
let at = (Kn = ue.useId) != null ? Kn : function() {
|
|
2242
|
+
let e = _n(), [t, n] = ue.useState(e ? () => mt.nextId() : null);
|
|
2243
2243
|
return we(() => {
|
|
2244
2244
|
t === null && n(mt.nextId());
|
|
2245
2245
|
}, [t]), t != null ? "" + t : void 0;
|
|
@@ -2288,7 +2288,7 @@ function lo(e, t = (n) => n) {
|
|
|
2288
2288
|
}
|
|
2289
2289
|
function Ut(e, t, n) {
|
|
2290
2290
|
let r = Ke(t);
|
|
2291
|
-
|
|
2291
|
+
re(() => {
|
|
2292
2292
|
function o(c) {
|
|
2293
2293
|
r.current(c);
|
|
2294
2294
|
}
|
|
@@ -2297,7 +2297,7 @@ function Ut(e, t, n) {
|
|
|
2297
2297
|
}
|
|
2298
2298
|
function El(e, t, n) {
|
|
2299
2299
|
let r = Ke(t);
|
|
2300
|
-
|
|
2300
|
+
re(() => {
|
|
2301
2301
|
function o(c) {
|
|
2302
2302
|
r.current(c);
|
|
2303
2303
|
}
|
|
@@ -2306,15 +2306,15 @@ function El(e, t, n) {
|
|
|
2306
2306
|
}
|
|
2307
2307
|
function so(e, t, n = !0) {
|
|
2308
2308
|
let r = j(!1);
|
|
2309
|
-
|
|
2309
|
+
re(() => {
|
|
2310
2310
|
requestAnimationFrame(() => {
|
|
2311
2311
|
r.current = n;
|
|
2312
2312
|
});
|
|
2313
2313
|
}, [n]);
|
|
2314
|
-
function o(i,
|
|
2314
|
+
function o(i, d) {
|
|
2315
2315
|
if (!r.current || i.defaultPrevented)
|
|
2316
2316
|
return;
|
|
2317
|
-
let b =
|
|
2317
|
+
let b = d(i);
|
|
2318
2318
|
if (b === null || !b.getRootNode().contains(b) || !b.isConnected)
|
|
2319
2319
|
return;
|
|
2320
2320
|
let v = function m(h) {
|
|
@@ -2331,11 +2331,11 @@ function so(e, t, n = !0) {
|
|
|
2331
2331
|
}
|
|
2332
2332
|
let c = j(null);
|
|
2333
2333
|
Ut("pointerdown", (i) => {
|
|
2334
|
-
var
|
|
2335
|
-
r.current && (c.current = ((b = (
|
|
2334
|
+
var d, b;
|
|
2335
|
+
r.current && (c.current = ((b = (d = i.composedPath) == null ? void 0 : d.call(i)) == null ? void 0 : b[0]) || i.target);
|
|
2336
2336
|
}, !0), Ut("mousedown", (i) => {
|
|
2337
|
-
var
|
|
2338
|
-
r.current && (c.current = ((b = (
|
|
2337
|
+
var d, b;
|
|
2338
|
+
r.current && (c.current = ((b = (d = i.composedPath) == null ? void 0 : d.call(i)) == null ? void 0 : b[0]) || i.target);
|
|
2339
2339
|
}, !0), Ut("click", (i) => {
|
|
2340
2340
|
c.current && (o(i, () => c.current), c.current = null);
|
|
2341
2341
|
}, !0), Ut("touchend", (i) => o(i, () => i.target instanceof HTMLElement ? i.target : null), !0), El("blur", (i) => o(i, () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null), !0);
|
|
@@ -2349,7 +2349,7 @@ function Jn(e) {
|
|
|
2349
2349
|
return "button";
|
|
2350
2350
|
}
|
|
2351
2351
|
function co(e, t) {
|
|
2352
|
-
let [n, r] =
|
|
2352
|
+
let [n, r] = le(() => Jn(e));
|
|
2353
2353
|
return we(() => {
|
|
2354
2354
|
r(Jn(e));
|
|
2355
2355
|
}, [e.type, e.as]), we(() => {
|
|
@@ -2359,7 +2359,7 @@ function co(e, t) {
|
|
|
2359
2359
|
let Tl = Symbol();
|
|
2360
2360
|
function qe(...e) {
|
|
2361
2361
|
let t = j(e);
|
|
2362
|
-
|
|
2362
|
+
re(() => {
|
|
2363
2363
|
t.current = e;
|
|
2364
2364
|
}, [e]);
|
|
2365
2365
|
let n = L((r) => {
|
|
@@ -2370,7 +2370,7 @@ function qe(...e) {
|
|
|
2370
2370
|
}
|
|
2371
2371
|
function Cl({ container: e, accept: t, walk: n, enabled: r = !0 }) {
|
|
2372
2372
|
let o = j(t), c = j(n);
|
|
2373
|
-
|
|
2373
|
+
re(() => {
|
|
2374
2374
|
o.current = t, c.current = n;
|
|
2375
2375
|
}, [t, n]), we(() => {
|
|
2376
2376
|
if (!e || !r)
|
|
@@ -2378,7 +2378,7 @@ function Cl({ container: e, accept: t, walk: n, enabled: r = !0 }) {
|
|
|
2378
2378
|
let i = Xt(e);
|
|
2379
2379
|
if (!i)
|
|
2380
2380
|
return;
|
|
2381
|
-
let
|
|
2381
|
+
let d = o.current, b = c.current, v = Object.assign((h) => d(h), { acceptNode: d }), m = i.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, v, !1);
|
|
2382
2382
|
for (; m.nextNode(); )
|
|
2383
2383
|
b(m.currentNode);
|
|
2384
2384
|
}, [e, r, o, c]);
|
|
@@ -2396,13 +2396,13 @@ function uo(e, t) {
|
|
|
2396
2396
|
case 0:
|
|
2397
2397
|
return n.findIndex((i) => !t.resolveDisabled(i));
|
|
2398
2398
|
case 1: {
|
|
2399
|
-
let i = n.slice().reverse().findIndex((
|
|
2399
|
+
let i = n.slice().reverse().findIndex((d, b, v) => o !== -1 && v.length - b - 1 >= o ? !1 : !t.resolveDisabled(d));
|
|
2400
2400
|
return i === -1 ? i : n.length - 1 - i;
|
|
2401
2401
|
}
|
|
2402
2402
|
case 2:
|
|
2403
|
-
return n.findIndex((i,
|
|
2403
|
+
return n.findIndex((i, d) => d <= o ? !1 : !t.resolveDisabled(i));
|
|
2404
2404
|
case 3: {
|
|
2405
|
-
let i = n.slice().reverse().findIndex((
|
|
2405
|
+
let i = n.slice().reverse().findIndex((d) => !t.resolveDisabled(d));
|
|
2406
2406
|
return i === -1 ? i : n.length - 1 - i;
|
|
2407
2407
|
}
|
|
2408
2408
|
case 4:
|
|
@@ -2420,45 +2420,45 @@ function Kt(...e) {
|
|
|
2420
2420
|
}
|
|
2421
2421
|
var _t = ((e) => (e[e.None = 0] = "None", e[e.RenderStrategy = 1] = "RenderStrategy", e[e.Static = 2] = "Static", e))(_t || {}), ut = ((e) => (e[e.Unmount = 0] = "Unmount", e[e.Hidden = 1] = "Hidden", e))(ut || {});
|
|
2422
2422
|
function Ae({ ourProps: e, theirProps: t, slot: n, defaultTag: r, features: o, visible: c = !0, name: i }) {
|
|
2423
|
-
let
|
|
2423
|
+
let d = fo(t, e);
|
|
2424
2424
|
if (c)
|
|
2425
|
-
return Ht(
|
|
2425
|
+
return Ht(d, n, r, i);
|
|
2426
2426
|
let b = o ?? 0;
|
|
2427
2427
|
if (b & 2) {
|
|
2428
|
-
let { static: v = !1, ...m } =
|
|
2428
|
+
let { static: v = !1, ...m } = d;
|
|
2429
2429
|
if (v)
|
|
2430
2430
|
return Ht(m, n, r, i);
|
|
2431
2431
|
}
|
|
2432
2432
|
if (b & 1) {
|
|
2433
|
-
let { unmount: v = !0, ...m } =
|
|
2433
|
+
let { unmount: v = !0, ...m } = d;
|
|
2434
2434
|
return be(v ? 0 : 1, { 0() {
|
|
2435
2435
|
return null;
|
|
2436
2436
|
}, 1() {
|
|
2437
2437
|
return Ht({ ...m, hidden: !0, style: { display: "none" } }, n, r, i);
|
|
2438
2438
|
} });
|
|
2439
2439
|
}
|
|
2440
|
-
return Ht(
|
|
2440
|
+
return Ht(d, n, r, i);
|
|
2441
2441
|
}
|
|
2442
2442
|
function Ht(e, t = {}, n, r) {
|
|
2443
|
-
let { as: o = n, children: c, refName: i = "ref", ...
|
|
2444
|
-
"className" in
|
|
2443
|
+
let { as: o = n, children: c, refName: i = "ref", ...d } = sn(e, ["unmount", "static"]), b = e.ref !== void 0 ? { [i]: e.ref } : {}, v = typeof c == "function" ? c(t) : c;
|
|
2444
|
+
"className" in d && d.className && typeof d.className == "function" && (d.className = d.className(t));
|
|
2445
2445
|
let m = {};
|
|
2446
2446
|
if (t) {
|
|
2447
2447
|
let h = !1, l = [];
|
|
2448
|
-
for (let [
|
|
2449
|
-
typeof a == "boolean" && (h = !0), a === !0 && l.push(
|
|
2448
|
+
for (let [f, a] of Object.entries(t))
|
|
2449
|
+
typeof a == "boolean" && (h = !0), a === !0 && l.push(f);
|
|
2450
2450
|
h && (m["data-headlessui-state"] = l.join(" "));
|
|
2451
2451
|
}
|
|
2452
|
-
if (o === ot && Object.keys(Gt(
|
|
2452
|
+
if (o === ot && Object.keys(Gt(d)).length > 0) {
|
|
2453
2453
|
if (!Ao(v) || Array.isArray(v) && v.length > 1)
|
|
2454
|
-
throw new Error(['Passing props on "Fragment"!', "", `The current component <${r} /> is rendering a "Fragment".`, "However we need to passthrough the following props:", Object.keys(
|
|
2454
|
+
throw new Error(['Passing props on "Fragment"!', "", `The current component <${r} /> is rendering a "Fragment".`, "However we need to passthrough the following props:", Object.keys(d).map((a) => ` - ${a}`).join(`
|
|
2455
2455
|
`), "", "You can apply a few solutions:", ['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".', "Render a single element as the child so that we can forward the props onto that element."].map((a) => ` - ${a}`).join(`
|
|
2456
2456
|
`)].join(`
|
|
2457
2457
|
`));
|
|
2458
|
-
let h = v.props, l = typeof h?.className == "function" ? (...a) => Kt(h?.className(...a),
|
|
2459
|
-
return Do(v, Object.assign({}, fo(v.props, Gt(sn(
|
|
2458
|
+
let h = v.props, l = typeof h?.className == "function" ? (...a) => Kt(h?.className(...a), d.className) : Kt(h?.className, d.className), f = l ? { className: l } : {};
|
|
2459
|
+
return Do(v, Object.assign({}, fo(v.props, Gt(sn(d, ["ref"]))), m, b, Rl(v.ref, b.ref), f));
|
|
2460
2460
|
}
|
|
2461
|
-
return $o(o, Object.assign({}, sn(
|
|
2461
|
+
return $o(o, Object.assign({}, sn(d, ["ref"]), o !== ot && b, o !== ot && m), v);
|
|
2462
2462
|
}
|
|
2463
2463
|
function Rl(...e) {
|
|
2464
2464
|
return { ref: e.every((t) => t == null) ? void 0 : (t) => {
|
|
@@ -2480,10 +2480,10 @@ function fo(...e) {
|
|
|
2480
2480
|
for (let r in n)
|
|
2481
2481
|
Object.assign(t, { [r](o, ...c) {
|
|
2482
2482
|
let i = n[r];
|
|
2483
|
-
for (let
|
|
2483
|
+
for (let d of i) {
|
|
2484
2484
|
if ((o instanceof Event || o?.nativeEvent instanceof Event) && o.defaultPrevented)
|
|
2485
2485
|
return;
|
|
2486
|
-
|
|
2486
|
+
d(o, ...c);
|
|
2487
2487
|
}
|
|
2488
2488
|
} });
|
|
2489
2489
|
return t;
|
|
@@ -2550,21 +2550,21 @@ function Zt() {
|
|
|
2550
2550
|
return ft(Tn);
|
|
2551
2551
|
}
|
|
2552
2552
|
function Cn({ value: e, children: t }) {
|
|
2553
|
-
return
|
|
2553
|
+
return ue.createElement(Tn.Provider, { value: e }, t);
|
|
2554
2554
|
}
|
|
2555
2555
|
var ee = ((e) => (e.Space = " ", e.Enter = "Enter", e.Escape = "Escape", e.Backspace = "Backspace", e.Delete = "Delete", e.ArrowLeft = "ArrowLeft", e.ArrowUp = "ArrowUp", e.ArrowRight = "ArrowRight", e.ArrowDown = "ArrowDown", e.Home = "Home", e.End = "End", e.PageUp = "PageUp", e.PageDown = "PageDown", e.Tab = "Tab", e))(ee || {});
|
|
2556
2556
|
function ho(e, t, n) {
|
|
2557
|
-
let [r, o] =
|
|
2558
|
-
return c && !i.current && !
|
|
2557
|
+
let [r, o] = le(n), c = e !== void 0, i = j(c), d = j(!1), b = j(!1);
|
|
2558
|
+
return c && !i.current && !d.current ? (d.current = !0, i.current = c, console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")) : !c && i.current && !b.current && (b.current = !0, i.current = c, console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")), [c ? e : r, L((v) => (c || o(v), t?.(v)))];
|
|
2559
2559
|
}
|
|
2560
2560
|
function Qn(e, t) {
|
|
2561
2561
|
let n = j([]), r = L(e);
|
|
2562
|
-
|
|
2562
|
+
re(() => {
|
|
2563
2563
|
let o = [...n.current];
|
|
2564
2564
|
for (let [c, i] of t.entries())
|
|
2565
2565
|
if (n.current[c] !== i) {
|
|
2566
|
-
let
|
|
2567
|
-
return n.current = t,
|
|
2566
|
+
let d = r(t, o);
|
|
2567
|
+
return n.current = t, d;
|
|
2568
2568
|
}
|
|
2569
2569
|
}, [r, ...t]);
|
|
2570
2570
|
}
|
|
@@ -2619,11 +2619,11 @@ let Bl = { 1(e) {
|
|
|
2619
2619
|
let b = i.options.findIndex((v) => !v.dataRef.current.disabled);
|
|
2620
2620
|
b !== -1 && (i.activeOptionIndex = b);
|
|
2621
2621
|
}
|
|
2622
|
-
let
|
|
2623
|
-
return { ...e, ...i, activeOptionIndex:
|
|
2622
|
+
let d = uo(t, { resolveItems: () => i.options, resolveActiveIndex: () => i.activeOptionIndex, resolveId: (b) => b.id, resolveDisabled: (b) => b.dataRef.current.disabled });
|
|
2623
|
+
return { ...e, ...i, activeOptionIndex: d, activationTrigger: (c = t.trigger) != null ? c : 1 };
|
|
2624
2624
|
}, 3: (e, t) => {
|
|
2625
2625
|
var n, r;
|
|
2626
|
-
let o = { id: t.id, dataRef: t.dataRef }, c = cn(e, (
|
|
2626
|
+
let o = { id: t.id, dataRef: t.dataRef }, c = cn(e, (d) => [...d, o]);
|
|
2627
2627
|
e.activeOptionIndex === null && (n = e.dataRef.current) != null && n.isSelected(t.dataRef.current.value) && (c.activeOptionIndex = c.options.indexOf(o));
|
|
2628
2628
|
let i = { ...e, ...c, activationTrigger: 1 };
|
|
2629
2629
|
return (r = e.dataRef.current) != null && r.__demoMode && e.dataRef.current.value === void 0 && (i.activeOptionIndex = 0), i;
|
|
@@ -2658,81 +2658,81 @@ function Ul(e, t) {
|
|
|
2658
2658
|
}
|
|
2659
2659
|
let Hl = ot;
|
|
2660
2660
|
function ql(e, t) {
|
|
2661
|
-
let { value: n, defaultValue: r, onChange: o, form: c, name: i, by:
|
|
2662
|
-
let V =
|
|
2661
|
+
let { value: n, defaultValue: r, onChange: o, form: c, name: i, by: d = (T, P) => T === P, disabled: b = !1, __demoMode: v = !1, nullable: m = !1, multiple: h = !1, ...l } = e, [f = h ? [] : void 0, a] = ho(n, o, r), [u, p] = rr(Ul, { dataRef: or(), comboboxState: v ? 0 : 1, options: [], activeOptionIndex: null, activationTrigger: 1, labelId: null }), g = j(!1), k = j({ static: !1, hold: !1 }), x = j(null), y = j(null), F = j(null), R = j(null), q = L(typeof d == "string" ? (T, P) => {
|
|
2662
|
+
let V = d;
|
|
2663
2663
|
return T?.[V] === P?.[V];
|
|
2664
|
-
} :
|
|
2664
|
+
} : d), M = yt((T) => be(C.mode, { 1: () => f.some((P) => q(P, T)), 0: () => q(f, T) }), [f]), C = _e(() => ({ ...u, optionsPropsRef: k, labelRef: x, inputRef: y, buttonRef: F, optionsRef: R, value: f, defaultValue: r, disabled: b, mode: h ? 1 : 0, get activeOptionIndex() {
|
|
2665
2665
|
if (g.current && u.activeOptionIndex === null && u.options.length > 0) {
|
|
2666
2666
|
let T = u.options.findIndex((P) => !P.dataRef.current.disabled);
|
|
2667
2667
|
if (T !== -1)
|
|
2668
2668
|
return T;
|
|
2669
2669
|
}
|
|
2670
2670
|
return u.activeOptionIndex;
|
|
2671
|
-
}, compare: q, isSelected: M, nullable: m, __demoMode: v }), [
|
|
2672
|
-
|
|
2671
|
+
}, compare: q, isSelected: M, nullable: m, __demoMode: v }), [f, r, b, h, m, v, u]), z = j(C.activeOptionIndex !== null ? C.options[C.activeOptionIndex] : null);
|
|
2672
|
+
re(() => {
|
|
2673
2673
|
let T = C.activeOptionIndex !== null ? C.options[C.activeOptionIndex] : null;
|
|
2674
2674
|
z.current !== T && (z.current = T);
|
|
2675
2675
|
}), we(() => {
|
|
2676
2676
|
u.dataRef.current = C;
|
|
2677
|
-
}, [C]), so([C.buttonRef, C.inputRef, C.optionsRef], () =>
|
|
2678
|
-
let
|
|
2677
|
+
}, [C]), so([C.buttonRef, C.inputRef, C.optionsRef], () => X.closeCombobox(), C.comboboxState === 0);
|
|
2678
|
+
let oe = _e(() => ({ open: C.comboboxState === 0, disabled: b, activeIndex: C.activeOptionIndex, activeOption: C.activeOptionIndex === null ? null : C.options[C.activeOptionIndex].dataRef.current.value, value: f }), [C, b, f]), G = L((T) => {
|
|
2679
2679
|
let P = C.options.find((V) => V.id === T);
|
|
2680
|
-
P &&
|
|
2681
|
-
}),
|
|
2680
|
+
P && ie(P.dataRef.current.value);
|
|
2681
|
+
}), O = L(() => {
|
|
2682
2682
|
if (C.activeOptionIndex !== null) {
|
|
2683
2683
|
let { dataRef: T, id: P } = C.options[C.activeOptionIndex];
|
|
2684
|
-
|
|
2684
|
+
ie(T.current.value), X.goToOption(te.Specific, P);
|
|
2685
2685
|
}
|
|
2686
|
-
}),
|
|
2686
|
+
}), J = L(() => {
|
|
2687
2687
|
p({ type: 0 }), g.current = !0;
|
|
2688
2688
|
}), ne = L(() => {
|
|
2689
2689
|
p({ type: 1 }), g.current = !1;
|
|
2690
2690
|
}), pe = L((T, P, V) => (g.current = !1, T === te.Specific ? p({ type: 2, focus: te.Specific, id: P, trigger: V }) : p({ type: 2, focus: T, trigger: V }))), B = L((T, P) => (p({ type: 3, id: T, dataRef: P }), () => {
|
|
2691
2691
|
var V;
|
|
2692
2692
|
((V = z.current) == null ? void 0 : V.id) === T && (g.current = !0), p({ type: 4, id: T });
|
|
2693
|
-
})), fe = L((T) => (p({ type: 5, id: T }), () => p({ type: 5, id: null }))),
|
|
2693
|
+
})), fe = L((T) => (p({ type: 5, id: T }), () => p({ type: 5, id: null }))), ie = L((T) => be(C.mode, { 0() {
|
|
2694
2694
|
return a?.(T);
|
|
2695
2695
|
}, 1() {
|
|
2696
2696
|
let P = C.value.slice(), V = P.findIndex((xe) => q(xe, T));
|
|
2697
2697
|
return V === -1 ? P.push(T) : P.splice(V, 1), a?.(P);
|
|
2698
|
-
} })),
|
|
2699
|
-
return
|
|
2700
|
-
ve.current && r !== void 0 &&
|
|
2698
|
+
} })), X = _e(() => ({ onChange: ie, registerOption: B, registerLabel: fe, goToOption: pe, closeCombobox: ne, openCombobox: J, selectActiveOption: O, selectOption: G }), []), me = t === null ? {} : { ref: t }, ve = j(null), ce = it();
|
|
2699
|
+
return re(() => {
|
|
2700
|
+
ve.current && r !== void 0 && ce.addEventListener(ve.current, "reset", () => {
|
|
2701
2701
|
a?.(r);
|
|
2702
2702
|
});
|
|
2703
|
-
}, [ve, a]),
|
|
2703
|
+
}, [ve, a]), ue.createElement(In.Provider, { value: X }, ue.createElement(Rn.Provider, { value: C }, ue.createElement(Cn, { value: be(C.comboboxState, { 0: Se.Open, 1: Se.Closed }) }, i != null && f != null && Sn({ [i]: f }).map(([T, P], V) => ue.createElement(mo, { features: En.Hidden, ref: V === 0 ? (xe) => {
|
|
2704
2704
|
var Ie;
|
|
2705
2705
|
ve.current = (Ie = xe?.closest("form")) != null ? Ie : null;
|
|
2706
|
-
} : void 0, ...Gt({ key: T, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: c, name: T, value: P }) })), Ae({ ourProps: me, theirProps: l, slot:
|
|
2706
|
+
} : void 0, ...Gt({ key: T, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: c, name: T, value: P }) })), Ae({ ourProps: me, theirProps: l, slot: oe, defaultTag: Hl, name: "Combobox" }))));
|
|
2707
2707
|
}
|
|
2708
2708
|
let zl = "input";
|
|
2709
2709
|
function Yl(e, t) {
|
|
2710
2710
|
var n, r, o, c;
|
|
2711
|
-
let i = at(), { id:
|
|
2712
|
-
|
|
2711
|
+
let i = at(), { id: d = `headlessui-combobox-input-${i}`, onChange: b, displayValue: v, type: m = "text", ...h } = e, l = St("Combobox.Input"), f = Nt("Combobox.Input"), a = qe(l.inputRef, t), u = Dl(l.inputRef), p = j(!1), g = it(), k = L(() => {
|
|
2712
|
+
f.onChange(null), l.optionsRef.current && (l.optionsRef.current.scrollTop = 0), f.goToOption(te.Nothing);
|
|
2713
2713
|
}), x = function() {
|
|
2714
|
-
var
|
|
2715
|
-
return typeof v == "function" && l.value !== void 0 ? (
|
|
2714
|
+
var O;
|
|
2715
|
+
return typeof v == "function" && l.value !== void 0 ? (O = v(l.value)) != null ? O : "" : typeof l.value == "string" ? l.value : "";
|
|
2716
2716
|
}();
|
|
2717
|
-
Qn(([
|
|
2717
|
+
Qn(([O, J], [ne, pe]) => {
|
|
2718
2718
|
if (p.current)
|
|
2719
2719
|
return;
|
|
2720
2720
|
let B = l.inputRef.current;
|
|
2721
|
-
B && ((pe === 0 &&
|
|
2721
|
+
B && ((pe === 0 && J === 1 || O !== ne) && (B.value = O), requestAnimationFrame(() => {
|
|
2722
2722
|
if (p.current || !B || u?.activeElement !== B)
|
|
2723
2723
|
return;
|
|
2724
|
-
let { selectionStart: fe, selectionEnd:
|
|
2725
|
-
Math.abs((
|
|
2724
|
+
let { selectionStart: fe, selectionEnd: ie } = B;
|
|
2725
|
+
Math.abs((ie ?? 0) - (fe ?? 0)) === 0 && fe === 0 && B.setSelectionRange(B.value.length, B.value.length);
|
|
2726
2726
|
}));
|
|
2727
|
-
}, [x, l.comboboxState, u]), Qn(([
|
|
2728
|
-
if (
|
|
2727
|
+
}, [x, l.comboboxState, u]), Qn(([O], [J]) => {
|
|
2728
|
+
if (O === 0 && J === 1) {
|
|
2729
2729
|
if (p.current)
|
|
2730
2730
|
return;
|
|
2731
2731
|
let ne = l.inputRef.current;
|
|
2732
2732
|
if (!ne)
|
|
2733
2733
|
return;
|
|
2734
|
-
let pe = ne.value, { selectionStart: B, selectionEnd: fe, selectionDirection:
|
|
2735
|
-
ne.value = "", ne.value = pe,
|
|
2734
|
+
let pe = ne.value, { selectionStart: B, selectionEnd: fe, selectionDirection: ie } = ne;
|
|
2735
|
+
ne.value = "", ne.value = pe, ie !== null ? ne.setSelectionRange(B, fe, ie) : ne.setSelectionRange(B, fe);
|
|
2736
2736
|
}
|
|
2737
2737
|
}, [l.comboboxState]);
|
|
2738
2738
|
let y = j(!1), F = L(() => {
|
|
@@ -2741,65 +2741,65 @@ function Yl(e, t) {
|
|
|
2741
2741
|
g.nextFrame(() => {
|
|
2742
2742
|
y.current = !1;
|
|
2743
2743
|
});
|
|
2744
|
-
}), q = L((
|
|
2745
|
-
switch (p.current = !0,
|
|
2744
|
+
}), q = L((O) => {
|
|
2745
|
+
switch (p.current = !0, O.key) {
|
|
2746
2746
|
case ee.Enter:
|
|
2747
2747
|
if (p.current = !1, l.comboboxState !== 0 || y.current)
|
|
2748
2748
|
return;
|
|
2749
|
-
if (
|
|
2750
|
-
|
|
2749
|
+
if (O.preventDefault(), O.stopPropagation(), l.activeOptionIndex === null) {
|
|
2750
|
+
f.closeCombobox();
|
|
2751
2751
|
return;
|
|
2752
2752
|
}
|
|
2753
|
-
|
|
2753
|
+
f.selectActiveOption(), l.mode === 0 && f.closeCombobox();
|
|
2754
2754
|
break;
|
|
2755
2755
|
case ee.ArrowDown:
|
|
2756
|
-
return p.current = !1,
|
|
2757
|
-
|
|
2756
|
+
return p.current = !1, O.preventDefault(), O.stopPropagation(), be(l.comboboxState, { 0: () => {
|
|
2757
|
+
f.goToOption(te.Next);
|
|
2758
2758
|
}, 1: () => {
|
|
2759
|
-
|
|
2759
|
+
f.openCombobox();
|
|
2760
2760
|
} });
|
|
2761
2761
|
case ee.ArrowUp:
|
|
2762
|
-
return p.current = !1,
|
|
2763
|
-
|
|
2762
|
+
return p.current = !1, O.preventDefault(), O.stopPropagation(), be(l.comboboxState, { 0: () => {
|
|
2763
|
+
f.goToOption(te.Previous);
|
|
2764
2764
|
}, 1: () => {
|
|
2765
|
-
|
|
2766
|
-
l.value ||
|
|
2765
|
+
f.openCombobox(), g.nextFrame(() => {
|
|
2766
|
+
l.value || f.goToOption(te.Last);
|
|
2767
2767
|
});
|
|
2768
2768
|
} });
|
|
2769
2769
|
case ee.Home:
|
|
2770
|
-
if (
|
|
2770
|
+
if (O.shiftKey)
|
|
2771
2771
|
break;
|
|
2772
|
-
return p.current = !1,
|
|
2772
|
+
return p.current = !1, O.preventDefault(), O.stopPropagation(), f.goToOption(te.First);
|
|
2773
2773
|
case ee.PageUp:
|
|
2774
|
-
return p.current = !1,
|
|
2774
|
+
return p.current = !1, O.preventDefault(), O.stopPropagation(), f.goToOption(te.First);
|
|
2775
2775
|
case ee.End:
|
|
2776
|
-
if (
|
|
2776
|
+
if (O.shiftKey)
|
|
2777
2777
|
break;
|
|
2778
|
-
return p.current = !1,
|
|
2778
|
+
return p.current = !1, O.preventDefault(), O.stopPropagation(), f.goToOption(te.Last);
|
|
2779
2779
|
case ee.PageDown:
|
|
2780
|
-
return p.current = !1,
|
|
2780
|
+
return p.current = !1, O.preventDefault(), O.stopPropagation(), f.goToOption(te.Last);
|
|
2781
2781
|
case ee.Escape:
|
|
2782
|
-
return p.current = !1, l.comboboxState !== 0 ? void 0 : (
|
|
2782
|
+
return p.current = !1, l.comboboxState !== 0 ? void 0 : (O.preventDefault(), l.optionsRef.current && !l.optionsPropsRef.current.static && O.stopPropagation(), l.nullable && l.mode === 0 && l.value === null && k(), f.closeCombobox());
|
|
2783
2783
|
case ee.Tab:
|
|
2784
2784
|
if (p.current = !1, l.comboboxState !== 0)
|
|
2785
2785
|
return;
|
|
2786
|
-
l.mode === 0 &&
|
|
2786
|
+
l.mode === 0 && f.selectActiveOption(), f.closeCombobox();
|
|
2787
2787
|
break;
|
|
2788
2788
|
}
|
|
2789
|
-
}), M = L((
|
|
2790
|
-
b?.(
|
|
2789
|
+
}), M = L((O) => {
|
|
2790
|
+
b?.(O), l.nullable && l.mode === 0 && O.target.value === "" && k(), f.openCombobox();
|
|
2791
2791
|
}), C = L(() => {
|
|
2792
2792
|
p.current = !1;
|
|
2793
2793
|
}), z = Ft(() => {
|
|
2794
2794
|
if (l.labelId)
|
|
2795
2795
|
return [l.labelId].join(" ");
|
|
2796
|
-
}, [l.labelId]),
|
|
2797
|
-
return Ae({ ourProps:
|
|
2796
|
+
}, [l.labelId]), oe = _e(() => ({ open: l.comboboxState === 0, disabled: l.disabled }), [l]), G = { ref: a, id: d, role: "combobox", type: m, "aria-controls": (n = l.optionsRef.current) == null ? void 0 : n.id, "aria-expanded": l.comboboxState === 0, "aria-activedescendant": l.activeOptionIndex === null || (r = l.options[l.activeOptionIndex]) == null ? void 0 : r.id, "aria-labelledby": z, "aria-autocomplete": "list", defaultValue: (c = (o = e.defaultValue) != null ? o : l.defaultValue !== void 0 ? v?.(l.defaultValue) : null) != null ? c : l.defaultValue, disabled: l.disabled, onCompositionStart: F, onCompositionEnd: R, onKeyDown: q, onChange: M, onBlur: C };
|
|
2797
|
+
return Ae({ ourProps: G, theirProps: h, slot: oe, defaultTag: zl, name: "Combobox.Input" });
|
|
2798
2798
|
}
|
|
2799
2799
|
let Kl = "button";
|
|
2800
2800
|
function Gl(e, t) {
|
|
2801
2801
|
var n;
|
|
2802
|
-
let r = St("Combobox.Button"), o = Nt("Combobox.Button"), c = qe(r.buttonRef, t), i = at(), { id:
|
|
2802
|
+
let r = St("Combobox.Button"), o = Nt("Combobox.Button"), c = qe(r.buttonRef, t), i = at(), { id: d = `headlessui-combobox-button-${i}`, ...b } = e, v = it(), m = L((u) => {
|
|
2803
2803
|
switch (u.key) {
|
|
2804
2804
|
case ee.ArrowDown:
|
|
2805
2805
|
return u.preventDefault(), u.stopPropagation(), r.comboboxState === 1 && o.openCombobox(), v.nextFrame(() => {
|
|
@@ -2830,43 +2830,43 @@ function Gl(e, t) {
|
|
|
2830
2830
|
});
|
|
2831
2831
|
}), l = Ft(() => {
|
|
2832
2832
|
if (r.labelId)
|
|
2833
|
-
return [r.labelId,
|
|
2834
|
-
}, [r.labelId,
|
|
2835
|
-
return Ae({ ourProps: a, theirProps: b, slot:
|
|
2833
|
+
return [r.labelId, d].join(" ");
|
|
2834
|
+
}, [r.labelId, d]), f = _e(() => ({ open: r.comboboxState === 0, disabled: r.disabled, value: r.value }), [r]), a = { ref: c, id: d, type: co(e, r.buttonRef), tabIndex: -1, "aria-haspopup": "listbox", "aria-controls": (n = r.optionsRef.current) == null ? void 0 : n.id, "aria-expanded": r.comboboxState === 0, "aria-labelledby": l, disabled: r.disabled, onClick: h, onKeyDown: m };
|
|
2835
|
+
return Ae({ ourProps: a, theirProps: b, slot: f, defaultTag: Kl, name: "Combobox.Button" });
|
|
2836
2836
|
}
|
|
2837
2837
|
let Jl = "label";
|
|
2838
2838
|
function Ql(e, t) {
|
|
2839
|
-
let n = at(), { id: r = `headlessui-combobox-label-${n}`, ...o } = e, c = St("Combobox.Label"), i = Nt("Combobox.Label"),
|
|
2839
|
+
let n = at(), { id: r = `headlessui-combobox-label-${n}`, ...o } = e, c = St("Combobox.Label"), i = Nt("Combobox.Label"), d = qe(c.labelRef, t);
|
|
2840
2840
|
we(() => i.registerLabel(r), [r]);
|
|
2841
2841
|
let b = L(() => {
|
|
2842
2842
|
var m;
|
|
2843
2843
|
return (m = c.inputRef.current) == null ? void 0 : m.focus({ preventScroll: !0 });
|
|
2844
2844
|
}), v = _e(() => ({ open: c.comboboxState === 0, disabled: c.disabled }), [c]);
|
|
2845
|
-
return Ae({ ourProps: { ref:
|
|
2845
|
+
return Ae({ ourProps: { ref: d, id: r, onClick: b }, theirProps: o, slot: v, defaultTag: Jl, name: "Combobox.Label" });
|
|
2846
2846
|
}
|
|
2847
2847
|
let Xl = "ul", Zl = _t.RenderStrategy | _t.Static;
|
|
2848
2848
|
function es(e, t) {
|
|
2849
|
-
let n = at(), { id: r = `headlessui-combobox-options-${n}`, hold: o = !1, ...c } = e, i = St("Combobox.Options"),
|
|
2849
|
+
let n = at(), { id: r = `headlessui-combobox-options-${n}`, hold: o = !1, ...c } = e, i = St("Combobox.Options"), d = qe(i.optionsRef, t), b = Zt(), v = (() => b !== null ? (b & Se.Open) === Se.Open : i.comboboxState === 0)();
|
|
2850
2850
|
we(() => {
|
|
2851
|
-
var
|
|
2852
|
-
i.optionsPropsRef.current.static = (
|
|
2851
|
+
var f;
|
|
2852
|
+
i.optionsPropsRef.current.static = (f = e.static) != null ? f : !1;
|
|
2853
2853
|
}, [i.optionsPropsRef, e.static]), we(() => {
|
|
2854
2854
|
i.optionsPropsRef.current.hold = o;
|
|
2855
|
-
}, [i.optionsPropsRef, o]), Cl({ container: i.optionsRef.current, enabled: i.comboboxState === 0, accept(
|
|
2856
|
-
return
|
|
2857
|
-
}, walk(
|
|
2858
|
-
|
|
2855
|
+
}, [i.optionsPropsRef, o]), Cl({ container: i.optionsRef.current, enabled: i.comboboxState === 0, accept(f) {
|
|
2856
|
+
return f.getAttribute("role") === "option" ? NodeFilter.FILTER_REJECT : f.hasAttribute("role") ? NodeFilter.FILTER_SKIP : NodeFilter.FILTER_ACCEPT;
|
|
2857
|
+
}, walk(f) {
|
|
2858
|
+
f.setAttribute("role", "none");
|
|
2859
2859
|
} });
|
|
2860
2860
|
let m = Ft(() => {
|
|
2861
|
-
var
|
|
2862
|
-
return (a = i.labelId) != null ? a : (
|
|
2863
|
-
}, [i.labelId, i.buttonRef.current]), h = _e(() => ({ open: i.comboboxState === 0 }), [i]), l = { "aria-labelledby": m, role: "listbox", "aria-multiselectable": i.mode === 1 ? !0 : void 0, id: r, ref:
|
|
2861
|
+
var f, a;
|
|
2862
|
+
return (a = i.labelId) != null ? a : (f = i.buttonRef.current) == null ? void 0 : f.id;
|
|
2863
|
+
}, [i.labelId, i.buttonRef.current]), h = _e(() => ({ open: i.comboboxState === 0 }), [i]), l = { "aria-labelledby": m, role: "listbox", "aria-multiselectable": i.mode === 1 ? !0 : void 0, id: r, ref: d };
|
|
2864
2864
|
return Ae({ ourProps: l, theirProps: c, slot: h, defaultTag: Xl, features: Zl, visible: v, name: "Combobox.Options" });
|
|
2865
2865
|
}
|
|
2866
2866
|
let ts = "li";
|
|
2867
2867
|
function ns(e, t) {
|
|
2868
2868
|
var n, r;
|
|
2869
|
-
let o = at(), { id: c = `headlessui-combobox-option-${o}`, disabled: i = !1, value:
|
|
2869
|
+
let o = at(), { id: c = `headlessui-combobox-option-${o}`, disabled: i = !1, value: d, ...b } = e, v = St("Combobox.Option"), m = Nt("Combobox.Option"), h = v.activeOptionIndex !== null ? v.options[v.activeOptionIndex].id === c : !1, l = v.isSelected(d), f = j(null), a = Ke({ disabled: i, value: d, domRef: f, textValue: (r = (n = f.current) == null ? void 0 : n.textContent) == null ? void 0 : r.toLowerCase() }), u = qe(t, f), p = L(() => m.selectOption(c));
|
|
2870
2870
|
we(() => m.registerOption(c, a), [a, c]);
|
|
2871
2871
|
let g = j(!v.__demoMode);
|
|
2872
2872
|
we(() => {
|
|
@@ -2881,10 +2881,10 @@ function ns(e, t) {
|
|
|
2881
2881
|
return;
|
|
2882
2882
|
let C = Xe();
|
|
2883
2883
|
return C.requestAnimationFrame(() => {
|
|
2884
|
-
var z,
|
|
2885
|
-
(
|
|
2884
|
+
var z, oe;
|
|
2885
|
+
(oe = (z = f.current) == null ? void 0 : z.scrollIntoView) == null || oe.call(z, { block: "nearest" });
|
|
2886
2886
|
}), C.dispose;
|
|
2887
|
-
}, [
|
|
2887
|
+
}, [f, h, v.comboboxState, v.activationTrigger, v.activeOptionIndex]);
|
|
2888
2888
|
let k = L((C) => {
|
|
2889
2889
|
if (i)
|
|
2890
2890
|
return C.preventDefault();
|
|
@@ -2917,8 +2917,8 @@ function er(e) {
|
|
|
2917
2917
|
if (!(o instanceof HTMLElement))
|
|
2918
2918
|
return r;
|
|
2919
2919
|
let c = !1;
|
|
2920
|
-
for (let
|
|
2921
|
-
|
|
2920
|
+
for (let d of o.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))
|
|
2921
|
+
d.remove(), c = !0;
|
|
2922
2922
|
let i = c ? (n = o.innerText) != null ? n : "" : r;
|
|
2923
2923
|
return Zn.test(i) && (i = i.replace(Zn, "")), i;
|
|
2924
2924
|
}
|
|
@@ -2976,8 +2976,8 @@ let vs = { 1(e) {
|
|
|
2976
2976
|
if (e.dataRef.current.disabled || e.listboxState === 1)
|
|
2977
2977
|
return e;
|
|
2978
2978
|
let n = e.searchQuery !== "" ? 0 : 1, r = e.searchQuery + t.value.toLowerCase(), o = (e.activeOptionIndex !== null ? e.options.slice(e.activeOptionIndex + n).concat(e.options.slice(0, e.activeOptionIndex + n)) : e.options).find((i) => {
|
|
2979
|
-
var
|
|
2980
|
-
return !i.dataRef.current.disabled && ((
|
|
2979
|
+
var d;
|
|
2980
|
+
return !i.dataRef.current.disabled && ((d = i.dataRef.current.textValue) == null ? void 0 : d.startsWith(r));
|
|
2981
2981
|
}), c = o ? e.options.indexOf(o) : -1;
|
|
2982
2982
|
return c === -1 || c === e.activeOptionIndex ? { ...e, searchQuery: r } : { ...e, searchQuery: r, activeOptionIndex: c, activationTrigger: 1 };
|
|
2983
2983
|
}, 4(e) {
|
|
@@ -3016,12 +3016,12 @@ function ms(e, t) {
|
|
|
3016
3016
|
}
|
|
3017
3017
|
let hs = ot;
|
|
3018
3018
|
function gs(e, t) {
|
|
3019
|
-
let { value: n, defaultValue: r, form: o, name: c, onChange: i, by:
|
|
3019
|
+
let { value: n, defaultValue: r, form: o, name: c, onChange: i, by: d = (T, P) => T === P, disabled: b = !1, horizontal: v = !1, multiple: m = !1, ...h } = e;
|
|
3020
3020
|
const l = v ? "horizontal" : "vertical";
|
|
3021
|
-
let
|
|
3022
|
-
let V =
|
|
3021
|
+
let f = qe(t), [a = m ? [] : void 0, u] = ho(n, i, r), [p, g] = rr(ms, { dataRef: or(), listboxState: 1, options: [], searchQuery: "", labelId: null, activeOptionIndex: null, activationTrigger: 1 }), k = j({ static: !1, hold: !1 }), x = j(null), y = j(null), F = j(null), R = L(typeof d == "string" ? (T, P) => {
|
|
3022
|
+
let V = d;
|
|
3023
3023
|
return T?.[V] === P?.[V];
|
|
3024
|
-
} :
|
|
3024
|
+
} : d), q = yt((T) => be(M.mode, { 1: () => a.some((P) => R(P, T)), 0: () => R(a, T) }), [a]), M = _e(() => ({ ...p, value: a, disabled: b, mode: m ? 1 : 0, orientation: l, compare: R, isSelected: q, optionsPropsRef: k, labelRef: x, buttonRef: y, optionsRef: F }), [a, b, m, p]);
|
|
3025
3025
|
we(() => {
|
|
3026
3026
|
p.dataRef.current = M;
|
|
3027
3027
|
}, [M]), so([M.buttonRef, M.optionsRef], (T, P) => {
|
|
@@ -3031,22 +3031,22 @@ function gs(e, t) {
|
|
|
3031
3031
|
let C = _e(() => ({ open: M.listboxState === 0, disabled: b, value: a }), [M, b, a]), z = L((T) => {
|
|
3032
3032
|
let P = M.options.find((V) => V.id === T);
|
|
3033
3033
|
P && B(P.dataRef.current.value);
|
|
3034
|
-
}),
|
|
3034
|
+
}), oe = L(() => {
|
|
3035
3035
|
if (M.activeOptionIndex !== null) {
|
|
3036
3036
|
let { dataRef: T, id: P } = M.options[M.activeOptionIndex];
|
|
3037
3037
|
B(T.current.value), g({ type: 2, focus: te.Specific, id: P });
|
|
3038
3038
|
}
|
|
3039
|
-
}),
|
|
3039
|
+
}), G = L(() => g({ type: 0 })), O = L(() => g({ type: 1 })), J = L((T, P, V) => T === te.Specific ? g({ type: 2, focus: te.Specific, id: P, trigger: V }) : g({ type: 2, focus: T, trigger: V })), ne = L((T, P) => (g({ type: 5, id: T, dataRef: P }), () => g({ type: 6, id: T }))), pe = L((T) => (g({ type: 7, id: T }), () => g({ type: 7, id: null }))), B = L((T) => be(M.mode, { 0() {
|
|
3040
3040
|
return u?.(T);
|
|
3041
3041
|
}, 1() {
|
|
3042
3042
|
let P = M.value.slice(), V = P.findIndex((xe) => R(xe, T));
|
|
3043
3043
|
return V === -1 ? P.push(T) : P.splice(V, 1), u?.(P);
|
|
3044
|
-
} })), fe = L((T) => g({ type: 3, value: T })),
|
|
3045
|
-
return
|
|
3046
|
-
ve.current && r !== void 0 &&
|
|
3044
|
+
} })), fe = L((T) => g({ type: 3, value: T })), ie = L(() => g({ type: 4 })), X = _e(() => ({ onChange: B, registerOption: ne, registerLabel: pe, goToOption: J, closeListbox: O, openListbox: G, selectActiveOption: oe, selectOption: z, search: fe, clearSearch: ie }), []), me = { ref: f }, ve = j(null), ce = it();
|
|
3045
|
+
return re(() => {
|
|
3046
|
+
ve.current && r !== void 0 && ce.addEventListener(ve.current, "reset", () => {
|
|
3047
3047
|
u?.(r);
|
|
3048
3048
|
});
|
|
3049
|
-
}, [ve, u]),
|
|
3049
|
+
}, [ve, u]), ue.createElement(jn.Provider, { value: X }, ue.createElement(Ln.Provider, { value: M }, ue.createElement(Cn, { value: be(M.listboxState, { 0: Se.Open, 1: Se.Closed }) }, c != null && a != null && Sn({ [c]: a }).map(([T, P], V) => ue.createElement(mo, { features: En.Hidden, ref: V === 0 ? (xe) => {
|
|
3050
3050
|
var Ie;
|
|
3051
3051
|
ve.current = (Ie = xe?.closest("form")) != null ? Ie : null;
|
|
3052
3052
|
} : void 0, ...Gt({ key: T, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: o, name: T, value: P }) })), Ae({ ourProps: me, theirProps: h, slot: C, defaultTag: hs, name: "Listbox" }))));
|
|
@@ -3054,18 +3054,18 @@ function gs(e, t) {
|
|
|
3054
3054
|
let ws = "button";
|
|
3055
3055
|
function xs(e, t) {
|
|
3056
3056
|
var n;
|
|
3057
|
-
let r = at(), { id: o = `headlessui-listbox-button-${r}`, ...c } = e, i = Dt("Listbox.Button"),
|
|
3057
|
+
let r = at(), { id: o = `headlessui-listbox-button-${r}`, ...c } = e, i = Dt("Listbox.Button"), d = At("Listbox.Button"), b = qe(i.buttonRef, t), v = it(), m = L((p) => {
|
|
3058
3058
|
switch (p.key) {
|
|
3059
3059
|
case ee.Space:
|
|
3060
3060
|
case ee.Enter:
|
|
3061
3061
|
case ee.ArrowDown:
|
|
3062
|
-
p.preventDefault(),
|
|
3063
|
-
i.value ||
|
|
3062
|
+
p.preventDefault(), d.openListbox(), v.nextFrame(() => {
|
|
3063
|
+
i.value || d.goToOption(te.First);
|
|
3064
3064
|
});
|
|
3065
3065
|
break;
|
|
3066
3066
|
case ee.ArrowUp:
|
|
3067
|
-
p.preventDefault(),
|
|
3068
|
-
i.value ||
|
|
3067
|
+
p.preventDefault(), d.openListbox(), v.nextFrame(() => {
|
|
3068
|
+
i.value || d.goToOption(te.Last);
|
|
3069
3069
|
});
|
|
3070
3070
|
break;
|
|
3071
3071
|
}
|
|
@@ -3078,62 +3078,62 @@ function xs(e, t) {
|
|
|
3078
3078
|
}), l = L((p) => {
|
|
3079
3079
|
if (po(p.currentTarget))
|
|
3080
3080
|
return p.preventDefault();
|
|
3081
|
-
i.listboxState === 0 ? (
|
|
3081
|
+
i.listboxState === 0 ? (d.closeListbox(), v.nextFrame(() => {
|
|
3082
3082
|
var g;
|
|
3083
3083
|
return (g = i.buttonRef.current) == null ? void 0 : g.focus({ preventScroll: !0 });
|
|
3084
|
-
})) : (p.preventDefault(),
|
|
3085
|
-
}),
|
|
3084
|
+
})) : (p.preventDefault(), d.openListbox());
|
|
3085
|
+
}), f = Ft(() => {
|
|
3086
3086
|
if (i.labelId)
|
|
3087
3087
|
return [i.labelId, o].join(" ");
|
|
3088
|
-
}, [i.labelId, o]), a = _e(() => ({ open: i.listboxState === 0, disabled: i.disabled, value: i.value }), [i]), u = { ref: b, id: o, type: co(e, i.buttonRef), "aria-haspopup": "listbox", "aria-controls": (n = i.optionsRef.current) == null ? void 0 : n.id, "aria-expanded": i.listboxState === 0, "aria-labelledby":
|
|
3088
|
+
}, [i.labelId, o]), a = _e(() => ({ open: i.listboxState === 0, disabled: i.disabled, value: i.value }), [i]), u = { ref: b, id: o, type: co(e, i.buttonRef), "aria-haspopup": "listbox", "aria-controls": (n = i.optionsRef.current) == null ? void 0 : n.id, "aria-expanded": i.listboxState === 0, "aria-labelledby": f, disabled: i.disabled, onKeyDown: m, onKeyUp: h, onClick: l };
|
|
3089
3089
|
return Ae({ ourProps: u, theirProps: c, slot: a, defaultTag: ws, name: "Listbox.Button" });
|
|
3090
3090
|
}
|
|
3091
3091
|
let ys = "label";
|
|
3092
3092
|
function Os(e, t) {
|
|
3093
|
-
let n = at(), { id: r = `headlessui-listbox-label-${n}`, ...o } = e, c = Dt("Listbox.Label"), i = At("Listbox.Label"),
|
|
3093
|
+
let n = at(), { id: r = `headlessui-listbox-label-${n}`, ...o } = e, c = Dt("Listbox.Label"), i = At("Listbox.Label"), d = qe(c.labelRef, t);
|
|
3094
3094
|
we(() => i.registerLabel(r), [r]);
|
|
3095
3095
|
let b = L(() => {
|
|
3096
3096
|
var m;
|
|
3097
3097
|
return (m = c.buttonRef.current) == null ? void 0 : m.focus({ preventScroll: !0 });
|
|
3098
3098
|
}), v = _e(() => ({ open: c.listboxState === 0, disabled: c.disabled }), [c]);
|
|
3099
|
-
return Ae({ ourProps: { ref:
|
|
3099
|
+
return Ae({ ourProps: { ref: d, id: r, onClick: b }, theirProps: o, slot: v, defaultTag: ys, name: "Listbox.Label" });
|
|
3100
3100
|
}
|
|
3101
3101
|
let _s = "ul", ks = _t.RenderStrategy | _t.Static;
|
|
3102
3102
|
function Ss(e, t) {
|
|
3103
3103
|
var n;
|
|
3104
|
-
let r = at(), { id: o = `headlessui-listbox-options-${r}`, ...c } = e, i = Dt("Listbox.Options"),
|
|
3105
|
-
|
|
3104
|
+
let r = at(), { id: o = `headlessui-listbox-options-${r}`, ...c } = e, i = Dt("Listbox.Options"), d = At("Listbox.Options"), b = qe(i.optionsRef, t), v = it(), m = it(), h = Zt(), l = (() => h !== null ? (h & Se.Open) === Se.Open : i.listboxState === 0)();
|
|
3105
|
+
re(() => {
|
|
3106
3106
|
var g;
|
|
3107
3107
|
let k = i.optionsRef.current;
|
|
3108
3108
|
k && i.listboxState === 0 && k !== ((g = Xt(k)) == null ? void 0 : g.activeElement) && k.focus({ preventScroll: !0 });
|
|
3109
3109
|
}, [i.listboxState, i.optionsRef]);
|
|
3110
|
-
let
|
|
3110
|
+
let f = L((g) => {
|
|
3111
3111
|
switch (m.dispose(), g.key) {
|
|
3112
3112
|
case ee.Space:
|
|
3113
3113
|
if (i.searchQuery !== "")
|
|
3114
|
-
return g.preventDefault(), g.stopPropagation(),
|
|
3114
|
+
return g.preventDefault(), g.stopPropagation(), d.search(g.key);
|
|
3115
3115
|
case ee.Enter:
|
|
3116
3116
|
if (g.preventDefault(), g.stopPropagation(), i.activeOptionIndex !== null) {
|
|
3117
3117
|
let { dataRef: k } = i.options[i.activeOptionIndex];
|
|
3118
|
-
|
|
3118
|
+
d.onChange(k.current.value);
|
|
3119
3119
|
}
|
|
3120
|
-
i.mode === 0 && (
|
|
3120
|
+
i.mode === 0 && (d.closeListbox(), Xe().nextFrame(() => {
|
|
3121
3121
|
var k;
|
|
3122
3122
|
return (k = i.buttonRef.current) == null ? void 0 : k.focus({ preventScroll: !0 });
|
|
3123
3123
|
}));
|
|
3124
3124
|
break;
|
|
3125
3125
|
case be(i.orientation, { vertical: ee.ArrowDown, horizontal: ee.ArrowRight }):
|
|
3126
|
-
return g.preventDefault(), g.stopPropagation(),
|
|
3126
|
+
return g.preventDefault(), g.stopPropagation(), d.goToOption(te.Next);
|
|
3127
3127
|
case be(i.orientation, { vertical: ee.ArrowUp, horizontal: ee.ArrowLeft }):
|
|
3128
|
-
return g.preventDefault(), g.stopPropagation(),
|
|
3128
|
+
return g.preventDefault(), g.stopPropagation(), d.goToOption(te.Previous);
|
|
3129
3129
|
case ee.Home:
|
|
3130
3130
|
case ee.PageUp:
|
|
3131
|
-
return g.preventDefault(), g.stopPropagation(),
|
|
3131
|
+
return g.preventDefault(), g.stopPropagation(), d.goToOption(te.First);
|
|
3132
3132
|
case ee.End:
|
|
3133
3133
|
case ee.PageDown:
|
|
3134
|
-
return g.preventDefault(), g.stopPropagation(),
|
|
3134
|
+
return g.preventDefault(), g.stopPropagation(), d.goToOption(te.Last);
|
|
3135
3135
|
case ee.Escape:
|
|
3136
|
-
return g.preventDefault(), g.stopPropagation(),
|
|
3136
|
+
return g.preventDefault(), g.stopPropagation(), d.closeListbox(), v.nextFrame(() => {
|
|
3137
3137
|
var k;
|
|
3138
3138
|
return (k = i.buttonRef.current) == null ? void 0 : k.focus({ preventScroll: !0 });
|
|
3139
3139
|
});
|
|
@@ -3141,35 +3141,35 @@ function Ss(e, t) {
|
|
|
3141
3141
|
g.preventDefault(), g.stopPropagation();
|
|
3142
3142
|
break;
|
|
3143
3143
|
default:
|
|
3144
|
-
g.key.length === 1 && (
|
|
3144
|
+
g.key.length === 1 && (d.search(g.key), m.setTimeout(() => d.clearSearch(), 350));
|
|
3145
3145
|
break;
|
|
3146
3146
|
}
|
|
3147
3147
|
}), a = Ft(() => {
|
|
3148
3148
|
var g, k, x;
|
|
3149
3149
|
return (x = (g = i.labelRef.current) == null ? void 0 : g.id) != null ? x : (k = i.buttonRef.current) == null ? void 0 : k.id;
|
|
3150
|
-
}, [i.labelRef.current, i.buttonRef.current]), u = _e(() => ({ open: i.listboxState === 0 }), [i]), p = { "aria-activedescendant": i.activeOptionIndex === null || (n = i.options[i.activeOptionIndex]) == null ? void 0 : n.id, "aria-multiselectable": i.mode === 1 ? !0 : void 0, "aria-labelledby": a, "aria-orientation": i.orientation, id: o, onKeyDown:
|
|
3150
|
+
}, [i.labelRef.current, i.buttonRef.current]), u = _e(() => ({ open: i.listboxState === 0 }), [i]), p = { "aria-activedescendant": i.activeOptionIndex === null || (n = i.options[i.activeOptionIndex]) == null ? void 0 : n.id, "aria-multiselectable": i.mode === 1 ? !0 : void 0, "aria-labelledby": a, "aria-orientation": i.orientation, id: o, onKeyDown: f, role: "listbox", tabIndex: 0, ref: b };
|
|
3151
3151
|
return Ae({ ourProps: p, theirProps: c, slot: u, defaultTag: _s, features: ks, visible: l, name: "Listbox.Options" });
|
|
3152
3152
|
}
|
|
3153
3153
|
let Es = "li";
|
|
3154
3154
|
function Ts(e, t) {
|
|
3155
|
-
let n = at(), { id: r = `headlessui-listbox-option-${n}`, disabled: o = !1, value: c, ...i } = e,
|
|
3155
|
+
let n = at(), { id: r = `headlessui-listbox-option-${n}`, disabled: o = !1, value: c, ...i } = e, d = Dt("Listbox.Option"), b = At("Listbox.Option"), v = d.activeOptionIndex !== null ? d.options[d.activeOptionIndex].id === r : !1, m = d.isSelected(c), h = j(null), l = us(h), f = Ke({ disabled: o, value: c, domRef: h, get textValue() {
|
|
3156
3156
|
return l();
|
|
3157
3157
|
} }), a = qe(t, h);
|
|
3158
3158
|
we(() => {
|
|
3159
|
-
if (
|
|
3159
|
+
if (d.listboxState !== 0 || !v || d.activationTrigger === 0)
|
|
3160
3160
|
return;
|
|
3161
3161
|
let R = Xe();
|
|
3162
3162
|
return R.requestAnimationFrame(() => {
|
|
3163
3163
|
var q, M;
|
|
3164
3164
|
(M = (q = h.current) == null ? void 0 : q.scrollIntoView) == null || M.call(q, { block: "nearest" });
|
|
3165
3165
|
}), R.dispose;
|
|
3166
|
-
}, [h, v,
|
|
3166
|
+
}, [h, v, d.listboxState, d.activationTrigger, d.activeOptionIndex]), we(() => b.registerOption(r, f), [f, r]);
|
|
3167
3167
|
let u = L((R) => {
|
|
3168
3168
|
if (o)
|
|
3169
3169
|
return R.preventDefault();
|
|
3170
|
-
b.onChange(c),
|
|
3170
|
+
b.onChange(c), d.mode === 0 && (b.closeListbox(), Xe().nextFrame(() => {
|
|
3171
3171
|
var q;
|
|
3172
|
-
return (q =
|
|
3172
|
+
return (q = d.buttonRef.current) == null ? void 0 : q.focus({ preventScroll: !0 });
|
|
3173
3173
|
}));
|
|
3174
3174
|
}), p = L(() => {
|
|
3175
3175
|
if (o)
|
|
@@ -3184,14 +3184,14 @@ function Ts(e, t) {
|
|
|
3184
3184
|
}
|
|
3185
3185
|
let Cs = Le(gs), Is = Le(xs), Rs = Le(Os), Ps = Le(Ss), js = Le(Ts), Jt = Object.assign(Cs, { Button: Is, Label: Rs, Options: Ps, Option: js });
|
|
3186
3186
|
function Ls(e = 0) {
|
|
3187
|
-
let [t, n] =
|
|
3187
|
+
let [t, n] = le(e), r = Pn(), o = yt((b) => {
|
|
3188
3188
|
r.current && n((v) => v | b);
|
|
3189
3189
|
}, [t, r]), c = yt((b) => !!(t & b), [t]), i = yt((b) => {
|
|
3190
3190
|
r.current && n((v) => v & ~b);
|
|
3191
|
-
}, [n, r]),
|
|
3191
|
+
}, [n, r]), d = yt((b) => {
|
|
3192
3192
|
r.current && n((v) => v ^ b);
|
|
3193
3193
|
}, [n]);
|
|
3194
|
-
return { flags: t, addFlag: o, hasFlag: c, removeFlag: i, toggleFlag:
|
|
3194
|
+
return { flags: t, addFlag: o, hasFlag: c, removeFlag: i, toggleFlag: d };
|
|
3195
3195
|
}
|
|
3196
3196
|
function Fs(e) {
|
|
3197
3197
|
let t = { called: !1 };
|
|
@@ -3213,12 +3213,12 @@ function Ns(e, t) {
|
|
|
3213
3213
|
let { transitionDuration: r, transitionDelay: o } = getComputedStyle(e), [c, i] = [r, o].map((b) => {
|
|
3214
3214
|
let [v = 0] = b.split(",").filter(Boolean).map((m) => m.includes("ms") ? parseFloat(m) : parseFloat(m) * 1e3).sort((m, h) => h - m);
|
|
3215
3215
|
return v;
|
|
3216
|
-
}),
|
|
3217
|
-
if (
|
|
3216
|
+
}), d = c + i;
|
|
3217
|
+
if (d !== 0) {
|
|
3218
3218
|
n.group((v) => {
|
|
3219
3219
|
v.setTimeout(() => {
|
|
3220
3220
|
t(), v.dispose();
|
|
3221
|
-
},
|
|
3221
|
+
}, d), v.addEventListener(e, "transitionrun", (m) => {
|
|
3222
3222
|
m.target === m.currentTarget && v.dispose();
|
|
3223
3223
|
});
|
|
3224
3224
|
});
|
|
@@ -3233,18 +3233,18 @@ function As(e, t, n, r) {
|
|
|
3233
3233
|
let o = n ? "enter" : "leave", c = Xe(), i = r !== void 0 ? Fs(r) : () => {
|
|
3234
3234
|
};
|
|
3235
3235
|
o === "enter" && (e.removeAttribute("hidden"), e.style.display = "");
|
|
3236
|
-
let
|
|
3237
|
-
return fn(e, ...t.base, ...t.enter, ...t.enterTo, ...t.enterFrom, ...t.leave, ...t.leaveFrom, ...t.leaveTo, ...t.entered), dn(e, ...t.base, ...
|
|
3238
|
-
fn(e, ...t.base, ...
|
|
3236
|
+
let d = be(o, { enter: () => t.enter, leave: () => t.leave }), b = be(o, { enter: () => t.enterTo, leave: () => t.leaveTo }), v = be(o, { enter: () => t.enterFrom, leave: () => t.leaveFrom });
|
|
3237
|
+
return fn(e, ...t.base, ...t.enter, ...t.enterTo, ...t.enterFrom, ...t.leave, ...t.leaveFrom, ...t.leaveTo, ...t.entered), dn(e, ...t.base, ...d, ...v), c.nextFrame(() => {
|
|
3238
|
+
fn(e, ...t.base, ...d, ...v), dn(e, ...t.base, ...d, ...b), Ns(e, () => (fn(e, ...t.base, ...d), dn(e, ...t.base, ...t.entered), i()));
|
|
3239
3239
|
}), c.dispose;
|
|
3240
3240
|
}
|
|
3241
3241
|
function Ds({ immediate: e, container: t, direction: n, classes: r, onStart: o, onStop: c }) {
|
|
3242
|
-
let i = Pn(),
|
|
3242
|
+
let i = Pn(), d = it(), b = Ke(n);
|
|
3243
3243
|
we(() => {
|
|
3244
3244
|
e && (b.current = "enter");
|
|
3245
3245
|
}, [e]), we(() => {
|
|
3246
3246
|
let v = Xe();
|
|
3247
|
-
|
|
3247
|
+
d.add(v.dispose);
|
|
3248
3248
|
let m = t.current;
|
|
3249
3249
|
if (m && b.current !== "idle" && i.current)
|
|
3250
3250
|
return v.dispose(), o.current(b.current), v.add(As(m, r.current, b.current === "enter", () => {
|
|
@@ -3276,8 +3276,8 @@ function nn(e) {
|
|
|
3276
3276
|
return "children" in e ? nn(e.children) : e.current.filter(({ el: t }) => t.current !== null).filter(({ state: t }) => t === "visible").length > 0;
|
|
3277
3277
|
}
|
|
3278
3278
|
function wo(e, t) {
|
|
3279
|
-
let n = Ke(e), r = j([]), o = Pn(), c = it(), i = L((
|
|
3280
|
-
let u = r.current.findIndex(({ el: p }) => p ===
|
|
3279
|
+
let n = Ke(e), r = j([]), o = Pn(), c = it(), i = L((f, a = ut.Hidden) => {
|
|
3280
|
+
let u = r.current.findIndex(({ el: p }) => p === f);
|
|
3281
3281
|
u !== -1 && (be(a, { [ut.Unmount]() {
|
|
3282
3282
|
r.current.splice(u, 1);
|
|
3283
3283
|
}, [ut.Hidden]() {
|
|
@@ -3286,22 +3286,22 @@ function wo(e, t) {
|
|
|
3286
3286
|
var p;
|
|
3287
3287
|
!nn(r) && o.current && ((p = n.current) == null || p.call(n));
|
|
3288
3288
|
}));
|
|
3289
|
-
}),
|
|
3290
|
-
let a = r.current.find(({ el: u }) => u ===
|
|
3291
|
-
return a ? a.state !== "visible" && (a.state = "visible") : r.current.push({ el:
|
|
3292
|
-
}), b = j([]), v = j(Promise.resolve()), m = j({ enter: [], leave: [], idle: [] }), h = L((
|
|
3293
|
-
b.current.splice(0), t && (t.chains.current[a] = t.chains.current[a].filter(([p]) => p !==
|
|
3289
|
+
}), d = L((f) => {
|
|
3290
|
+
let a = r.current.find(({ el: u }) => u === f);
|
|
3291
|
+
return a ? a.state !== "visible" && (a.state = "visible") : r.current.push({ el: f, state: "visible" }), () => i(f, ut.Unmount);
|
|
3292
|
+
}), b = j([]), v = j(Promise.resolve()), m = j({ enter: [], leave: [], idle: [] }), h = L((f, a, u) => {
|
|
3293
|
+
b.current.splice(0), t && (t.chains.current[a] = t.chains.current[a].filter(([p]) => p !== f)), t?.chains.current[a].push([f, new Promise((p) => {
|
|
3294
3294
|
b.current.push(p);
|
|
3295
|
-
})]), t?.chains.current[a].push([
|
|
3295
|
+
})]), t?.chains.current[a].push([f, new Promise((p) => {
|
|
3296
3296
|
Promise.all(m.current[a].map(([g, k]) => k)).then(() => p());
|
|
3297
3297
|
})]), a === "enter" ? v.current = v.current.then(() => t?.wait.current).then(() => u(a)) : u(a);
|
|
3298
|
-
}), l = L((
|
|
3298
|
+
}), l = L((f, a, u) => {
|
|
3299
3299
|
Promise.all(m.current[a].splice(0).map(([p, g]) => g)).then(() => {
|
|
3300
3300
|
var p;
|
|
3301
3301
|
(p = b.current.shift()) == null || p();
|
|
3302
3302
|
}).then(() => u(a));
|
|
3303
3303
|
});
|
|
3304
|
-
return _e(() => ({ children: r, register:
|
|
3304
|
+
return _e(() => ({ children: r, register: d, unregister: i, onStart: h, onStop: l, wait: v, chains: m }), [d, i, r, h, l, m, v]);
|
|
3305
3305
|
}
|
|
3306
3306
|
function Vs() {
|
|
3307
3307
|
}
|
|
@@ -3315,15 +3315,15 @@ function tr(e) {
|
|
|
3315
3315
|
}
|
|
3316
3316
|
function Us(e) {
|
|
3317
3317
|
let t = j(tr(e));
|
|
3318
|
-
return
|
|
3318
|
+
return re(() => {
|
|
3319
3319
|
t.current = tr(e);
|
|
3320
3320
|
}, [e]), t;
|
|
3321
3321
|
}
|
|
3322
3322
|
let Hs = "div", xo = _t.RenderStrategy;
|
|
3323
3323
|
function qs(e, t) {
|
|
3324
3324
|
var n, r;
|
|
3325
|
-
let { beforeEnter: o, afterEnter: c, beforeLeave: i, afterLeave:
|
|
3326
|
-
|
|
3325
|
+
let { beforeEnter: o, afterEnter: c, beforeLeave: i, afterLeave: d, enter: b, enterFrom: v, enterTo: m, entered: h, leave: l, leaveFrom: f, leaveTo: a, ...u } = e, p = j(null), g = qe(p, t), k = (n = u.unmount) == null || n ? ut.Unmount : ut.Hidden, { show: x, appear: y, initial: F } = Ms(), [R, q] = le(x ? "visible" : "hidden"), M = Ws(), { register: C, unregister: z } = M;
|
|
3326
|
+
re(() => C(p), [C, p]), re(() => {
|
|
3327
3327
|
if (k === ut.Hidden && p.current) {
|
|
3328
3328
|
if (x && R !== "visible") {
|
|
3329
3329
|
q("visible");
|
|
@@ -3332,46 +3332,46 @@ function qs(e, t) {
|
|
|
3332
3332
|
return be(R, { hidden: () => z(p), visible: () => C(p) });
|
|
3333
3333
|
}
|
|
3334
3334
|
}, [R, p, C, z, x, k]);
|
|
3335
|
-
let
|
|
3336
|
-
|
|
3337
|
-
if (
|
|
3335
|
+
let oe = Ke({ base: ct(u.className), enter: ct(b), enterFrom: ct(v), enterTo: ct(m), entered: ct(h), leave: ct(l), leaveFrom: ct(f), leaveTo: ct(a) }), G = Us({ beforeEnter: o, afterEnter: c, beforeLeave: i, afterLeave: d }), O = _n();
|
|
3336
|
+
re(() => {
|
|
3337
|
+
if (O && R === "visible" && p.current === null)
|
|
3338
3338
|
throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
|
|
3339
|
-
}, [p, R,
|
|
3340
|
-
let
|
|
3341
|
-
B.addFlag(Se.Opening),
|
|
3339
|
+
}, [p, R, O]);
|
|
3340
|
+
let J = F && !y, ne = y && x && F, pe = (() => !O || J ? "idle" : x ? "enter" : "leave")(), B = Ls(0), fe = L((ce) => be(ce, { enter: () => {
|
|
3341
|
+
B.addFlag(Se.Opening), G.current.beforeEnter();
|
|
3342
3342
|
}, leave: () => {
|
|
3343
|
-
B.addFlag(Se.Closing),
|
|
3343
|
+
B.addFlag(Se.Closing), G.current.beforeLeave();
|
|
3344
3344
|
}, idle: () => {
|
|
3345
|
-
} })),
|
|
3346
|
-
B.removeFlag(Se.Opening),
|
|
3345
|
+
} })), ie = L((ce) => be(ce, { enter: () => {
|
|
3346
|
+
B.removeFlag(Se.Opening), G.current.afterEnter();
|
|
3347
3347
|
}, leave: () => {
|
|
3348
|
-
B.removeFlag(Se.Closing),
|
|
3348
|
+
B.removeFlag(Se.Closing), G.current.afterLeave();
|
|
3349
3349
|
}, idle: () => {
|
|
3350
|
-
} })),
|
|
3350
|
+
} })), X = wo(() => {
|
|
3351
3351
|
q("hidden"), z(p);
|
|
3352
3352
|
}, M);
|
|
3353
|
-
Ds({ immediate: ne, container: p, classes:
|
|
3354
|
-
|
|
3355
|
-
}), onStop: Ke((
|
|
3356
|
-
|
|
3353
|
+
Ds({ immediate: ne, container: p, classes: oe, direction: pe, onStart: Ke((ce) => {
|
|
3354
|
+
X.onStart(p, ce, fe);
|
|
3355
|
+
}), onStop: Ke((ce) => {
|
|
3356
|
+
X.onStop(p, ce, ie), ce === "leave" && !nn(X) && (q("hidden"), z(p));
|
|
3357
3357
|
}) });
|
|
3358
3358
|
let me = u, ve = { ref: g };
|
|
3359
|
-
return ne ? me = { ...me, className: Kt(u.className, ...
|
|
3359
|
+
return ne ? me = { ...me, className: Kt(u.className, ...oe.current.enter, ...oe.current.enterFrom) } : (me.className = Kt(u.className, (r = p.current) == null ? void 0 : r.className), me.className === "" && delete me.className), ue.createElement(tn.Provider, { value: X }, ue.createElement(Cn, { value: be(R, { visible: Se.Open, hidden: Se.Closed }) | B.flags }, Ae({ ourProps: ve, theirProps: me, defaultTag: Hs, features: xo, visible: R === "visible", name: "Transition.Child" })));
|
|
3360
3360
|
}
|
|
3361
3361
|
function zs(e, t) {
|
|
3362
|
-
let { show: n, appear: r = !1, unmount: o = !0, ...c } = e, i = j(null),
|
|
3362
|
+
let { show: n, appear: r = !1, unmount: o = !0, ...c } = e, i = j(null), d = qe(i, t);
|
|
3363
3363
|
_n();
|
|
3364
3364
|
let b = Zt();
|
|
3365
3365
|
if (n === void 0 && b !== null && (n = (b & Se.Open) === Se.Open), ![!0, !1].includes(n))
|
|
3366
3366
|
throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");
|
|
3367
|
-
let [v, m] =
|
|
3367
|
+
let [v, m] = le(n ? "visible" : "hidden"), h = wo(() => {
|
|
3368
3368
|
m("hidden");
|
|
3369
|
-
}), [l,
|
|
3369
|
+
}), [l, f] = le(!0), a = j([n]);
|
|
3370
3370
|
we(() => {
|
|
3371
|
-
l !== !1 && a.current[a.current.length - 1] !== n && (a.current.push(n),
|
|
3371
|
+
l !== !1 && a.current[a.current.length - 1] !== n && (a.current.push(n), f(!1));
|
|
3372
3372
|
}, [a, n]);
|
|
3373
3373
|
let u = _e(() => ({ show: n, appear: r, initial: l }), [n, r, l]);
|
|
3374
|
-
|
|
3374
|
+
re(() => {
|
|
3375
3375
|
if (n)
|
|
3376
3376
|
m("visible");
|
|
3377
3377
|
else if (!nn(h))
|
|
@@ -3386,16 +3386,16 @@ function zs(e, t) {
|
|
|
3386
3386
|
}, [n, h]);
|
|
3387
3387
|
let p = { unmount: o }, g = L(() => {
|
|
3388
3388
|
var x;
|
|
3389
|
-
l &&
|
|
3389
|
+
l && f(!1), (x = e.beforeEnter) == null || x.call(e);
|
|
3390
3390
|
}), k = L(() => {
|
|
3391
3391
|
var x;
|
|
3392
|
-
l &&
|
|
3392
|
+
l && f(!1), (x = e.beforeLeave) == null || x.call(e);
|
|
3393
3393
|
});
|
|
3394
|
-
return
|
|
3394
|
+
return ue.createElement(tn.Provider, { value: h }, ue.createElement(en.Provider, { value: u }, Ae({ ourProps: { ...p, as: ot, children: ue.createElement(yo, { ref: d, ...p, ...c, beforeEnter: g, beforeLeave: k }) }, theirProps: {}, defaultTag: ot, features: xo, visible: v === "visible", name: "Transition" })));
|
|
3395
3395
|
}
|
|
3396
3396
|
function Ys(e, t) {
|
|
3397
3397
|
let n = ft(en) !== null, r = Zt() !== null;
|
|
3398
|
-
return
|
|
3398
|
+
return ue.createElement(ue.Fragment, null, !n && r ? ue.createElement(gn, { ref: t, ...e }) : ue.createElement(yo, { ref: t, ...e }));
|
|
3399
3399
|
}
|
|
3400
3400
|
let gn = Le(zs), yo = Le(qs), Ks = Le(Ys), Oo = Object.assign(gn, { Child: Ks, Root: gn });
|
|
3401
3401
|
function Gs({
|
|
@@ -3433,7 +3433,7 @@ const Js = rt.forwardRef(Gs), _o = Js, Qs = "_select_12thw_1", Xs = "_selectCont
|
|
|
3433
3433
|
leaveTo: sc,
|
|
3434
3434
|
selectOptions: cc
|
|
3435
3435
|
}, Pc = ({ children: e, selected: t, onSelect: n, themeColor: r }) => {
|
|
3436
|
-
const [o, c] =
|
|
3436
|
+
const [o, c] = le(!1), [i, d] = le(!1), b = j(null), v = j(null), [m, h] = le({ left: 0, top: 0 }), l = j(0), f = j(0);
|
|
3437
3437
|
let a = "#333333";
|
|
3438
3438
|
const u = (F) => {
|
|
3439
3439
|
n(F);
|
|
@@ -3442,20 +3442,20 @@ const Js = rt.forwardRef(Gs), _o = Js, Qs = "_select_12thw_1", Xs = "_selectCont
|
|
|
3442
3442
|
}, g = () => {
|
|
3443
3443
|
c(!1);
|
|
3444
3444
|
}, k = () => {
|
|
3445
|
-
l.current = window.innerHeight,
|
|
3445
|
+
l.current = window.innerHeight, f.current = document.body.scrollHeight, d(!0);
|
|
3446
3446
|
};
|
|
3447
|
-
|
|
3447
|
+
re(() => (k(), window.addEventListener("resize", k), () => {
|
|
3448
3448
|
window.addEventListener("resize", k);
|
|
3449
3449
|
}), []);
|
|
3450
|
-
const x = () =>
|
|
3450
|
+
const x = () => f.current - (l.current + window.scrollY), y = () => {
|
|
3451
3451
|
if (b.current) {
|
|
3452
3452
|
const F = b.current.getBoundingClientRect();
|
|
3453
3453
|
setTimeout(() => {
|
|
3454
3454
|
const R = v?.current?.getBoundingClientRect(), q = x(), M = l.current - F.bottom;
|
|
3455
3455
|
let C;
|
|
3456
3456
|
if (R) {
|
|
3457
|
-
const z = F.height,
|
|
3458
|
-
|
|
3457
|
+
const z = F.height, oe = F.top, G = R.height, O = G >= oe + window.scrollY;
|
|
3458
|
+
G >= oe && (O || O && M <= G || q >= G || M >= G) || oe >= G && M >= G ? C = F.y + z : C = F.y - G, h({
|
|
3459
3459
|
left: F.left,
|
|
3460
3460
|
top: C ?? F.top
|
|
3461
3461
|
});
|
|
@@ -3463,15 +3463,15 @@ const Js = rt.forwardRef(Gs), _o = Js, Qs = "_select_12thw_1", Xs = "_selectCont
|
|
|
3463
3463
|
}, 0);
|
|
3464
3464
|
}
|
|
3465
3465
|
};
|
|
3466
|
-
if (
|
|
3466
|
+
if (re(() => (window.addEventListener("scroll", y), window.addEventListener("resize", y), () => {
|
|
3467
3467
|
window.removeEventListener("scroll", y), window.removeEventListener("resize", y);
|
|
3468
3468
|
}), []), r) {
|
|
3469
3469
|
r = Ze.convert3HexTo6(r);
|
|
3470
3470
|
const F = pt(r);
|
|
3471
3471
|
(F === "dark" || F === "light") && (a = r === "#ffffff" ? "#c8c8c8" : r);
|
|
3472
3472
|
}
|
|
3473
|
-
return /* @__PURE__ */
|
|
3474
|
-
/* @__PURE__ */
|
|
3473
|
+
return /* @__PURE__ */ _.jsx(Jt, { value: t, onChange: u, children: ({ open: F }) => /* @__PURE__ */ _.jsxs("div", { className: Me.select, children: [
|
|
3474
|
+
/* @__PURE__ */ _.jsx("div", { className: Me.selectContainer, ref: b, children: /* @__PURE__ */ _.jsxs(
|
|
3475
3475
|
Jt.Button,
|
|
3476
3476
|
{
|
|
3477
3477
|
"data-testid": "select-options",
|
|
@@ -3484,16 +3484,16 @@ const Js = rt.forwardRef(Gs), _o = Js, Qs = "_select_12thw_1", Xs = "_selectCont
|
|
|
3484
3484
|
style: { borderBottomColor: r && (o || F) ? a : "" },
|
|
3485
3485
|
className: `${Me.selectButton} ${F ? Me.open : ""}`,
|
|
3486
3486
|
children: [
|
|
3487
|
-
t && /* @__PURE__ */
|
|
3488
|
-
t.avatar && /* @__PURE__ */
|
|
3489
|
-
/* @__PURE__ */
|
|
3487
|
+
t && /* @__PURE__ */ _.jsxs("span", { className: Me.selectValue, children: [
|
|
3488
|
+
t.avatar && /* @__PURE__ */ _.jsx("img", { src: t.avatar, alt: "", className: Me.seletIcon }),
|
|
3489
|
+
/* @__PURE__ */ _.jsx("span", { className: Me.selectText, children: t.label })
|
|
3490
3490
|
] }),
|
|
3491
|
-
/* @__PURE__ */
|
|
3491
|
+
/* @__PURE__ */ _.jsx("span", { className: Me.chevronDownIconSpan, children: /* @__PURE__ */ _.jsx(_o, { className: Me.chevronDownIcon, "aria-hidden": "true" }) })
|
|
3492
3492
|
]
|
|
3493
3493
|
}
|
|
3494
3494
|
) }),
|
|
3495
3495
|
i ? wn(
|
|
3496
|
-
/* @__PURE__ */
|
|
3496
|
+
/* @__PURE__ */ _.jsx(_.Fragment, { children: F && /* @__PURE__ */ _.jsx(
|
|
3497
3497
|
"div",
|
|
3498
3498
|
{
|
|
3499
3499
|
style: {
|
|
@@ -3502,7 +3502,7 @@ const Js = rt.forwardRef(Gs), _o = Js, Qs = "_select_12thw_1", Xs = "_selectCont
|
|
|
3502
3502
|
backgroundColor: "rgba(255,255,255,0)",
|
|
3503
3503
|
zIndex: 1e3
|
|
3504
3504
|
},
|
|
3505
|
-
children: /* @__PURE__ */
|
|
3505
|
+
children: /* @__PURE__ */ _.jsx(
|
|
3506
3506
|
"div",
|
|
3507
3507
|
{
|
|
3508
3508
|
ref: v,
|
|
@@ -3521,7 +3521,7 @@ const Js = rt.forwardRef(Gs), _o = Js, Qs = "_select_12thw_1", Xs = "_selectCont
|
|
|
3521
3521
|
document.body
|
|
3522
3522
|
) : null
|
|
3523
3523
|
] }) });
|
|
3524
|
-
}, jc = ({ children: e, setQuery: t }) => /* @__PURE__ */
|
|
3524
|
+
}, jc = ({ children: e, setQuery: t }) => /* @__PURE__ */ _.jsx(
|
|
3525
3525
|
Oo,
|
|
3526
3526
|
{
|
|
3527
3527
|
as: ot,
|
|
@@ -3529,9 +3529,9 @@ const Js = rt.forwardRef(Gs), _o = Js, Qs = "_select_12thw_1", Xs = "_selectCont
|
|
|
3529
3529
|
leaveFrom: Me.leaveFrom,
|
|
3530
3530
|
leaveTo: Me.leaveTo,
|
|
3531
3531
|
afterLeave: () => t(""),
|
|
3532
|
-
children: /* @__PURE__ */
|
|
3532
|
+
children: /* @__PURE__ */ _.jsx(Jt.Options, { className: Me.selectOptions, children: e })
|
|
3533
3533
|
}
|
|
3534
|
-
), uc = dt((e, t) => /* @__PURE__ */
|
|
3534
|
+
), uc = dt((e, t) => /* @__PURE__ */ _.jsx(Jt.Option, { ref: t, className: e.className, value: e.value, disabled: e.disable, children: e.children }));
|
|
3535
3535
|
uc.displayName = "SelectOption";
|
|
3536
3536
|
const dc = "_autocomplete_1ue23_1", fc = "_autocompleteContainer_1ue23_4", pc = "_disable_1ue23_7", bc = "_autocompleteInput_1ue23_16", vc = "_autocompleteButton_1ue23_25", mc = "_chevronDownIcon_1ue23_28", hc = "_leave_1ue23_35", gc = "_leaveFrom_1ue23_39", wc = "_leaveTo_1ue23_43", xc = "_autocompleteOptions_1ue23_47", Ye = {
|
|
3537
3537
|
autocomplete: dc,
|
|
@@ -3553,85 +3553,90 @@ const dc = "_autocomplete_1ue23_1", fc = "_autocompleteContainer_1ue23_4", pc =
|
|
|
3553
3553
|
clearSearch: c = !1,
|
|
3554
3554
|
themeColor: i
|
|
3555
3555
|
}) => {
|
|
3556
|
-
const
|
|
3556
|
+
const d = j(null), b = j(null), [v, m] = le(!1), [h, l] = le(!1), f = j(null), a = j(null), [u, p] = le({ left: 0, top: 0 }), g = j(0), k = j(0);
|
|
3557
3557
|
let x = {};
|
|
3558
|
-
|
|
3559
|
-
|
|
3558
|
+
re(() => {
|
|
3559
|
+
d.current && t && (d.current.value = t.label || "");
|
|
3560
3560
|
}, [t]);
|
|
3561
3561
|
const y = () => {
|
|
3562
3562
|
g.current = window.innerHeight, k.current = document.body.scrollHeight, l(!0);
|
|
3563
3563
|
};
|
|
3564
|
-
|
|
3564
|
+
re(() => (y(), window.addEventListener("resize", y), () => {
|
|
3565
3565
|
window.addEventListener("resize", y);
|
|
3566
3566
|
}), []);
|
|
3567
3567
|
const F = () => k.current - (g.current + window.scrollY), R = () => {
|
|
3568
|
-
if (
|
|
3569
|
-
const
|
|
3568
|
+
if (f.current) {
|
|
3569
|
+
const O = f.current.getBoundingClientRect();
|
|
3570
3570
|
setTimeout(() => {
|
|
3571
|
-
const
|
|
3571
|
+
const J = a?.current?.getBoundingClientRect(), ne = F(), pe = g.current - O.bottom;
|
|
3572
3572
|
let B;
|
|
3573
|
-
if (
|
|
3574
|
-
const fe =
|
|
3575
|
-
|
|
3576
|
-
left:
|
|
3577
|
-
top: B ??
|
|
3573
|
+
if (J) {
|
|
3574
|
+
const fe = O.height, ie = O.top, X = J.height, me = X > ie + window.scrollY;
|
|
3575
|
+
ie < X && (me || me && pe < X || ne > X || pe > X) || ie > X && pe > X ? B = O.y + fe : B = O.y - X, p({
|
|
3576
|
+
left: O.left,
|
|
3577
|
+
top: B ?? O.top
|
|
3578
3578
|
});
|
|
3579
3579
|
}
|
|
3580
3580
|
}, 0);
|
|
3581
3581
|
}
|
|
3582
3582
|
};
|
|
3583
|
-
|
|
3583
|
+
re(() => (window.addEventListener("scroll", R), window.addEventListener("resize", R), () => {
|
|
3584
3584
|
window.removeEventListener("scroll", R), window.removeEventListener("resize", R);
|
|
3585
3585
|
}), []);
|
|
3586
|
-
const q = (
|
|
3587
|
-
n(
|
|
3586
|
+
const q = (O) => {
|
|
3587
|
+
n(O), z();
|
|
3588
3588
|
}, M = () => {
|
|
3589
|
-
R(), m(!0),
|
|
3590
|
-
}, C = (
|
|
3591
|
-
const
|
|
3592
|
-
|
|
3593
|
-
},
|
|
3589
|
+
R(), m(!0), d.current && t && (d.current.value = t.label || ""), d.current && b.current && (c && (d.current.value = "", r("")), b.current.click());
|
|
3590
|
+
}, C = (O) => (z(), O?.label), z = () => {
|
|
3591
|
+
const O = d.current;
|
|
3592
|
+
O && O.setSelectionRange(O.value.length, O.value.length);
|
|
3593
|
+
}, oe = () => {
|
|
3594
3594
|
m(!0);
|
|
3595
|
-
},
|
|
3595
|
+
}, G = () => {
|
|
3596
3596
|
m(!1);
|
|
3597
3597
|
};
|
|
3598
|
-
if (
|
|
3599
|
-
const
|
|
3600
|
-
|
|
3598
|
+
if (re(() => {
|
|
3599
|
+
const O = d.current;
|
|
3600
|
+
return O && (O.addEventListener("focus", oe), O.addEventListener("blur", G)), () => {
|
|
3601
|
+
O && (O.removeEventListener("focus", oe), O.removeEventListener("blur", G));
|
|
3602
|
+
};
|
|
3603
|
+
}, [oe, G]), i) {
|
|
3604
|
+
const O = pt(i);
|
|
3605
|
+
i = Ze.convert3HexTo6(i), (O === "dark" || O === "light") && (x = {
|
|
3601
3606
|
borderBottomColor: i === "#ffffff" ? "#c8c8c8" : v ? i : "#333333"
|
|
3602
3607
|
});
|
|
3603
3608
|
}
|
|
3604
|
-
return /* @__PURE__ */
|
|
3605
|
-
/* @__PURE__ */
|
|
3606
|
-
/* @__PURE__ */
|
|
3609
|
+
return /* @__PURE__ */ _.jsx(Pt, { value: t, onChange: q, disabled: o, children: ({ open: O }) => /* @__PURE__ */ _.jsxs("div", { className: Ye.autocomplete, children: [
|
|
3610
|
+
/* @__PURE__ */ _.jsxs("div", { ref: f, className: `${Ye.autocompleteContainer} ${o ? Ye.disable : ""}`, children: [
|
|
3611
|
+
/* @__PURE__ */ _.jsx(
|
|
3607
3612
|
Pt.Input,
|
|
3608
3613
|
{
|
|
3609
|
-
ref:
|
|
3614
|
+
ref: d,
|
|
3610
3615
|
"data-testid": "select-input",
|
|
3611
3616
|
className: Ye.autocompleteInput,
|
|
3612
3617
|
displayValue: C,
|
|
3613
|
-
onChange: (
|
|
3614
|
-
r(
|
|
3618
|
+
onChange: (J) => {
|
|
3619
|
+
r(J.target.value), R();
|
|
3615
3620
|
},
|
|
3616
3621
|
onClick: M,
|
|
3617
|
-
onFocus:
|
|
3618
|
-
onBlur:
|
|
3619
|
-
onKeyDown: (
|
|
3620
|
-
(
|
|
3622
|
+
onFocus: oe,
|
|
3623
|
+
onBlur: G,
|
|
3624
|
+
onKeyDown: (J) => {
|
|
3625
|
+
(J.key === " " || J.code === "Space") && R();
|
|
3621
3626
|
},
|
|
3622
3627
|
style: { ...x },
|
|
3623
3628
|
placeholder: "Select your option",
|
|
3624
3629
|
autoComplete: "off"
|
|
3625
3630
|
}
|
|
3626
3631
|
),
|
|
3627
|
-
/* @__PURE__ */
|
|
3632
|
+
/* @__PURE__ */ _.jsx(
|
|
3628
3633
|
Pt.Button,
|
|
3629
3634
|
{
|
|
3630
3635
|
className: Ye.autocompleteButton,
|
|
3631
3636
|
"data-testid": "select-button",
|
|
3632
3637
|
ref: b,
|
|
3633
3638
|
onClick: R,
|
|
3634
|
-
children: /* @__PURE__ */
|
|
3639
|
+
children: /* @__PURE__ */ _.jsx(
|
|
3635
3640
|
_o,
|
|
3636
3641
|
{
|
|
3637
3642
|
className: `${Ye.chevronDownIcon} ${o ? Ye.disable : ""}`,
|
|
@@ -3642,7 +3647,7 @@ const dc = "_autocomplete_1ue23_1", fc = "_autocompleteContainer_1ue23_4", pc =
|
|
|
3642
3647
|
)
|
|
3643
3648
|
] }),
|
|
3644
3649
|
h ? wn(
|
|
3645
|
-
/* @__PURE__ */
|
|
3650
|
+
/* @__PURE__ */ _.jsx(_.Fragment, { children: O && /* @__PURE__ */ _.jsx(
|
|
3646
3651
|
"div",
|
|
3647
3652
|
{
|
|
3648
3653
|
style: {
|
|
@@ -3651,14 +3656,14 @@ const dc = "_autocomplete_1ue23_1", fc = "_autocompleteContainer_1ue23_4", pc =
|
|
|
3651
3656
|
backgroundColor: "rgba(255,255,255,0)",
|
|
3652
3657
|
zIndex: 1e3
|
|
3653
3658
|
},
|
|
3654
|
-
children: /* @__PURE__ */
|
|
3659
|
+
children: /* @__PURE__ */ _.jsx(
|
|
3655
3660
|
"div",
|
|
3656
3661
|
{
|
|
3657
3662
|
ref: a,
|
|
3658
3663
|
style: {
|
|
3659
3664
|
position: "absolute",
|
|
3660
3665
|
opacity: u.left ? 1 : 0,
|
|
3661
|
-
width:
|
|
3666
|
+
width: f.current ? f.current.clientWidth : "auto",
|
|
3662
3667
|
left: u.left,
|
|
3663
3668
|
top: u.top
|
|
3664
3669
|
},
|
|
@@ -3670,7 +3675,7 @@ const dc = "_autocomplete_1ue23_1", fc = "_autocompleteContainer_1ue23_4", pc =
|
|
|
3670
3675
|
document.body
|
|
3671
3676
|
) : null
|
|
3672
3677
|
] }) });
|
|
3673
|
-
}, Fc = ({ children: e, setQuery: t }) => /* @__PURE__ */
|
|
3678
|
+
}, Fc = ({ children: e, setQuery: t }) => /* @__PURE__ */ _.jsx(
|
|
3674
3679
|
Oo,
|
|
3675
3680
|
{
|
|
3676
3681
|
as: ot,
|
|
@@ -3678,17 +3683,17 @@ const dc = "_autocomplete_1ue23_1", fc = "_autocompleteContainer_1ue23_4", pc =
|
|
|
3678
3683
|
leaveFrom: Ye.leaveFrom,
|
|
3679
3684
|
leaveTo: Ye.leaveTo,
|
|
3680
3685
|
afterLeave: () => t(""),
|
|
3681
|
-
children: /* @__PURE__ */
|
|
3686
|
+
children: /* @__PURE__ */ _.jsx(Pt.Options, { className: Ye.autocompleteOptions, children: e })
|
|
3682
3687
|
}
|
|
3683
|
-
), yc = dt((e, t) => /* @__PURE__ */
|
|
3688
|
+
), yc = dt((e, t) => /* @__PURE__ */ _.jsx(Pt.Option, { ref: t, className: e.className, value: e.value, disabled: e.disable, children: e.children }));
|
|
3684
3689
|
yc.displayName = "AutoCompleteOption";
|
|
3685
3690
|
const Oc = "_textInputWrapper_gym4n_1", _c = "_textInput_gym4n_1", nr = {
|
|
3686
3691
|
textInputWrapper: Oc,
|
|
3687
3692
|
textInput: _c
|
|
3688
|
-
}, Nc =
|
|
3693
|
+
}, Nc = ue.memo(
|
|
3689
3694
|
dt(
|
|
3690
3695
|
({ themeColor: e = "", style: t = {}, className: n = "", onFocus: r, onBlur: o, ...c }, i) => {
|
|
3691
|
-
const [
|
|
3696
|
+
const [d, b] = le(!1);
|
|
3692
3697
|
let v = {};
|
|
3693
3698
|
const m = [nr.textInput, n].filter(Boolean).join(" ");
|
|
3694
3699
|
e = Ze.convert3HexTo6(e);
|
|
@@ -3698,8 +3703,8 @@ const Oc = "_textInputWrapper_gym4n_1", _c = "_textInput_gym4n_1", nr = {
|
|
|
3698
3703
|
b(!1);
|
|
3699
3704
|
};
|
|
3700
3705
|
return v = {
|
|
3701
|
-
borderBottomColor:
|
|
3702
|
-
}, /* @__PURE__ */
|
|
3706
|
+
borderBottomColor: d ? e !== "#ffffff" ? e : "#c8c8c8" : ""
|
|
3707
|
+
}, /* @__PURE__ */ _.jsx("div", { className: nr.textInputWrapper, children: /* @__PURE__ */ _.jsx(
|
|
3703
3708
|
"input",
|
|
3704
3709
|
{
|
|
3705
3710
|
type: "text",
|