@oncehub/ui-react 1.4.22-beta.1.0 → 1.4.22-beta.1.2
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/ui-react.es.js +1263 -1249
- package/dist/ui-react.es.js.map +1 -1
- package/dist/ui-react.umd.js +12 -12
- package/dist/ui-react.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/ui-react.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
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 ce, { forwardRef as ut, useState as ae, useEffect as X, useRef as P, useLayoutEffect as No, Fragment as ot, isValidElement as Ao, cloneElement as Do, createElement as $o, createContext as ht, useContext as dt, useMemo as _e, useReducer as rr, createRef as or, useCallback as yt } from "react";
|
|
4
4
|
import { createPortal as wn } from "react-dom";
|
|
5
|
-
var Mo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, pn = { exports: {} },
|
|
5
|
+
var Mo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, pn = { exports: {} }, Ct = {};
|
|
6
6
|
/**
|
|
7
7
|
* @license React
|
|
8
8
|
* react-jsx-runtime.production.min.js
|
|
@@ -15,22 +15,22 @@ var Mo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
15
15
|
var Vn;
|
|
16
16
|
function Wo() {
|
|
17
17
|
if (Vn)
|
|
18
|
-
return
|
|
18
|
+
return Ct;
|
|
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 = ce, 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(f, b, v) {
|
|
22
|
+
var m, h = {}, l = null, d = null;
|
|
23
|
+
v !== void 0 && (l = "" + v), b.key !== void 0 && (l = "" + b.key), b.ref !== void 0 && (d = 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 (f && f.defaultProps)
|
|
27
|
+
for (m in b = f.defaultProps, b)
|
|
28
28
|
h[m] === void 0 && (h[m] = b[m]);
|
|
29
|
-
return { $$typeof: t, type:
|
|
29
|
+
return { $$typeof: t, type: f, key: l, ref: d, props: h, _owner: o.current };
|
|
30
30
|
}
|
|
31
|
-
return
|
|
31
|
+
return Ct.Fragment = n, Ct.jsx = i, Ct.jsxs = i, Ct;
|
|
32
32
|
}
|
|
33
|
-
var
|
|
33
|
+
var It = {};
|
|
34
34
|
/**
|
|
35
35
|
* @license React
|
|
36
36
|
* react-jsx-runtime.development.js
|
|
@@ -43,54 +43,54 @@ 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 = ce, 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"), f = 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"), d = 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;
|
|
50
|
-
var
|
|
51
|
-
return typeof
|
|
50
|
+
var x = a && s[a] || s[u];
|
|
51
|
+
return typeof x == "function" ? x : null;
|
|
52
52
|
}
|
|
53
53
|
var g = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
54
|
-
function
|
|
54
|
+
function E(s) {
|
|
55
55
|
{
|
|
56
|
-
for (var
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
for (var x = arguments.length, C = new Array(x > 1 ? x - 1 : 0), A = 1; A < x; A++)
|
|
57
|
+
C[A - 1] = arguments[A];
|
|
58
|
+
y("error", s, C);
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function y(s, x, C) {
|
|
62
62
|
{
|
|
63
|
-
var
|
|
64
|
-
|
|
65
|
-
var
|
|
66
|
-
return String(
|
|
63
|
+
var A = g.ReactDebugCurrentFrame, Q = A.getStackAddendum();
|
|
64
|
+
Q !== "" && (x += "%s", C = C.concat([Q]));
|
|
65
|
+
var le = C.map(function(G) {
|
|
66
|
+
return String(G);
|
|
67
67
|
});
|
|
68
|
-
|
|
68
|
+
le.unshift("Warning: " + x), Function.prototype.apply.call(console[s], console, le);
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
-
var
|
|
72
|
-
|
|
73
|
-
function
|
|
74
|
-
return !!(typeof s == "string" || typeof s == "function" || s === r || s === c ||
|
|
71
|
+
var _ = !1, M = !1, S = !1, U = !1, W = !1, I;
|
|
72
|
+
I = Symbol.for("react.module.reference");
|
|
73
|
+
function Y(s) {
|
|
74
|
+
return !!(typeof s == "string" || typeof s == "function" || s === r || s === c || W || s === o || s === v || s === m || U || s === d || _ || M || S || typeof s == "object" && s !== null && (s.$$typeof === l || s.$$typeof === h || s.$$typeof === i || s.$$typeof === f || 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
|
-
s.$$typeof ===
|
|
78
|
+
s.$$typeof === I || s.getModuleId !== void 0));
|
|
79
79
|
}
|
|
80
|
-
function
|
|
81
|
-
var
|
|
82
|
-
if (
|
|
83
|
-
return
|
|
84
|
-
var
|
|
85
|
-
return
|
|
80
|
+
function se(s, x, C) {
|
|
81
|
+
var A = s.displayName;
|
|
82
|
+
if (A)
|
|
83
|
+
return A;
|
|
84
|
+
var Q = x.displayName || x.name || "";
|
|
85
|
+
return Q !== "" ? C + "(" + Q + ")" : C;
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function oe(s) {
|
|
88
88
|
return s.displayName || "Context";
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function w(s) {
|
|
91
91
|
if (s == null)
|
|
92
92
|
return null;
|
|
93
|
-
if (typeof s.tag == "number" &&
|
|
93
|
+
if (typeof s.tag == "number" && E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof s == "function")
|
|
94
94
|
return s.displayName || s.name || null;
|
|
95
95
|
if (typeof s == "string")
|
|
96
96
|
return s;
|
|
@@ -110,21 +110,21 @@ function Vo() {
|
|
|
110
110
|
}
|
|
111
111
|
if (typeof s == "object")
|
|
112
112
|
switch (s.$$typeof) {
|
|
113
|
-
case
|
|
114
|
-
var
|
|
115
|
-
return
|
|
113
|
+
case f:
|
|
114
|
+
var x = s;
|
|
115
|
+
return oe(x) + ".Consumer";
|
|
116
116
|
case i:
|
|
117
|
-
var
|
|
118
|
-
return
|
|
117
|
+
var C = s;
|
|
118
|
+
return oe(C._context) + ".Provider";
|
|
119
119
|
case b:
|
|
120
|
-
return
|
|
120
|
+
return se(s, s.render, "ForwardRef");
|
|
121
121
|
case h:
|
|
122
|
-
var
|
|
123
|
-
return
|
|
122
|
+
var A = s.displayName || null;
|
|
123
|
+
return A !== null ? A : w(s.type) || "Memo";
|
|
124
124
|
case l: {
|
|
125
|
-
var
|
|
125
|
+
var Q = s, le = Q._payload, G = Q._init;
|
|
126
126
|
try {
|
|
127
|
-
return
|
|
127
|
+
return w(G(le));
|
|
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 q = Object.assign, ne = 0, fe, B, pe, re, Z, de, he;
|
|
136
|
+
function be() {
|
|
137
137
|
}
|
|
138
|
-
|
|
138
|
+
be.__reactDisabledLog = !0;
|
|
139
139
|
function T() {
|
|
140
140
|
{
|
|
141
141
|
if (ne === 0) {
|
|
142
|
-
|
|
142
|
+
fe = console.log, B = console.info, pe = console.warn, re = console.error, Z = console.group, de = console.groupCollapsed, he = console.groupEnd;
|
|
143
143
|
var s = {
|
|
144
144
|
configurable: !0,
|
|
145
145
|
enumerable: !0,
|
|
146
|
-
value:
|
|
146
|
+
value: be,
|
|
147
147
|
writable: !0
|
|
148
148
|
};
|
|
149
149
|
Object.defineProperties(console, {
|
|
@@ -159,7 +159,7 @@ function Vo() {
|
|
|
159
159
|
ne++;
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
|
-
function
|
|
162
|
+
function L() {
|
|
163
163
|
{
|
|
164
164
|
if (ne--, ne === 0) {
|
|
165
165
|
var s = {
|
|
@@ -168,312 +168,312 @@ function Vo() {
|
|
|
168
168
|
writable: !0
|
|
169
169
|
};
|
|
170
170
|
Object.defineProperties(console, {
|
|
171
|
-
log:
|
|
172
|
-
value:
|
|
171
|
+
log: q({}, s, {
|
|
172
|
+
value: fe
|
|
173
173
|
}),
|
|
174
|
-
info:
|
|
174
|
+
info: q({}, s, {
|
|
175
175
|
value: B
|
|
176
176
|
}),
|
|
177
|
-
warn:
|
|
178
|
-
value:
|
|
177
|
+
warn: q({}, s, {
|
|
178
|
+
value: pe
|
|
179
179
|
}),
|
|
180
|
-
error:
|
|
181
|
-
value:
|
|
180
|
+
error: q({}, s, {
|
|
181
|
+
value: re
|
|
182
182
|
}),
|
|
183
|
-
group:
|
|
184
|
-
value:
|
|
183
|
+
group: q({}, s, {
|
|
184
|
+
value: Z
|
|
185
185
|
}),
|
|
186
|
-
groupCollapsed:
|
|
187
|
-
value:
|
|
186
|
+
groupCollapsed: q({}, s, {
|
|
187
|
+
value: de
|
|
188
188
|
}),
|
|
189
|
-
groupEnd:
|
|
190
|
-
value:
|
|
189
|
+
groupEnd: q({}, s, {
|
|
190
|
+
value: he
|
|
191
191
|
})
|
|
192
192
|
});
|
|
193
193
|
}
|
|
194
|
-
ne < 0 &&
|
|
194
|
+
ne < 0 && E("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
|
-
var
|
|
198
|
-
function
|
|
197
|
+
var $ = g.ReactCurrentDispatcher, Oe;
|
|
198
|
+
function Ee(s, x, C) {
|
|
199
199
|
{
|
|
200
|
-
if (
|
|
200
|
+
if (Oe === void 0)
|
|
201
201
|
try {
|
|
202
202
|
throw Error();
|
|
203
|
-
} catch (
|
|
204
|
-
var
|
|
205
|
-
|
|
203
|
+
} catch (Q) {
|
|
204
|
+
var A = Q.stack.trim().match(/\n( *(at )?)/);
|
|
205
|
+
Oe = A && A[1] || "";
|
|
206
206
|
}
|
|
207
207
|
return `
|
|
208
|
-
` +
|
|
208
|
+
` + Oe + s;
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
|
-
var
|
|
211
|
+
var ze = !1, Ve;
|
|
212
212
|
{
|
|
213
|
-
var
|
|
214
|
-
|
|
213
|
+
var Et = typeof WeakMap == "function" ? WeakMap : Map;
|
|
214
|
+
Ve = new Et();
|
|
215
215
|
}
|
|
216
|
-
function
|
|
217
|
-
if (!s ||
|
|
216
|
+
function k(s, x) {
|
|
217
|
+
if (!s || ze)
|
|
218
218
|
return "";
|
|
219
219
|
{
|
|
220
|
-
var
|
|
221
|
-
if (
|
|
222
|
-
return
|
|
220
|
+
var C = Ve.get(s);
|
|
221
|
+
if (C !== void 0)
|
|
222
|
+
return C;
|
|
223
223
|
}
|
|
224
|
-
var
|
|
225
|
-
|
|
226
|
-
var
|
|
224
|
+
var A;
|
|
225
|
+
ze = !0;
|
|
226
|
+
var Q = Error.prepareStackTrace;
|
|
227
227
|
Error.prepareStackTrace = void 0;
|
|
228
|
-
var
|
|
229
|
-
|
|
228
|
+
var le;
|
|
229
|
+
le = $.current, $.current = null, T();
|
|
230
230
|
try {
|
|
231
|
-
if (
|
|
232
|
-
var
|
|
231
|
+
if (x) {
|
|
232
|
+
var G = function() {
|
|
233
233
|
throw Error();
|
|
234
234
|
};
|
|
235
|
-
if (Object.defineProperty(
|
|
235
|
+
if (Object.defineProperty(G.prototype, "props", {
|
|
236
236
|
set: function() {
|
|
237
237
|
throw Error();
|
|
238
238
|
}
|
|
239
239
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
240
240
|
try {
|
|
241
|
-
Reflect.construct(
|
|
241
|
+
Reflect.construct(G, []);
|
|
242
242
|
} catch (nt) {
|
|
243
|
-
|
|
243
|
+
A = nt;
|
|
244
244
|
}
|
|
245
|
-
Reflect.construct(s, [],
|
|
245
|
+
Reflect.construct(s, [], G);
|
|
246
246
|
} else {
|
|
247
247
|
try {
|
|
248
|
-
|
|
248
|
+
G.call();
|
|
249
249
|
} catch (nt) {
|
|
250
|
-
|
|
250
|
+
A = nt;
|
|
251
251
|
}
|
|
252
|
-
s.call(
|
|
252
|
+
s.call(G.prototype);
|
|
253
253
|
}
|
|
254
254
|
} else {
|
|
255
255
|
try {
|
|
256
256
|
throw Error();
|
|
257
257
|
} catch (nt) {
|
|
258
|
-
|
|
258
|
+
A = nt;
|
|
259
259
|
}
|
|
260
260
|
s();
|
|
261
261
|
}
|
|
262
262
|
} catch (nt) {
|
|
263
|
-
if (nt &&
|
|
264
|
-
for (var
|
|
265
|
-
`), je =
|
|
266
|
-
`), ge =
|
|
267
|
-
|
|
268
|
-
for (; ge >= 1 &&
|
|
269
|
-
if (
|
|
270
|
-
if (ge !== 1 ||
|
|
263
|
+
if (nt && A && typeof nt.stack == "string") {
|
|
264
|
+
for (var z = nt.stack.split(`
|
|
265
|
+
`), je = A.stack.split(`
|
|
266
|
+
`), ge = z.length - 1, ye = je.length - 1; ge >= 1 && ye >= 0 && z[ge] !== je[ye]; )
|
|
267
|
+
ye--;
|
|
268
|
+
for (; ge >= 1 && ye >= 0; ge--, ye--)
|
|
269
|
+
if (z[ge] !== je[ye]) {
|
|
270
|
+
if (ge !== 1 || ye !== 1)
|
|
271
271
|
do
|
|
272
|
-
if (ge--,
|
|
272
|
+
if (ge--, ye--, ye < 0 || z[ge] !== je[ye]) {
|
|
273
273
|
var Ue = `
|
|
274
|
-
` +
|
|
275
|
-
return s.displayName && Ue.includes("<anonymous>") && (Ue = Ue.replace("<anonymous>", s.displayName)), typeof s == "function" &&
|
|
274
|
+
` + z[ge].replace(" at new ", " at ");
|
|
275
|
+
return s.displayName && Ue.includes("<anonymous>") && (Ue = Ue.replace("<anonymous>", s.displayName)), typeof s == "function" && Ve.set(s, Ue), Ue;
|
|
276
276
|
}
|
|
277
|
-
while (ge >= 1 &&
|
|
277
|
+
while (ge >= 1 && ye >= 0);
|
|
278
278
|
break;
|
|
279
279
|
}
|
|
280
280
|
}
|
|
281
281
|
} finally {
|
|
282
|
-
|
|
282
|
+
ze = !1, $.current = le, L(), Error.prepareStackTrace = Q;
|
|
283
283
|
}
|
|
284
|
-
var xt = s ? s.displayName || s.name : "", Wn = xt ?
|
|
285
|
-
return typeof s == "function" &&
|
|
284
|
+
var xt = s ? s.displayName || s.name : "", Wn = xt ? Ee(xt) : "";
|
|
285
|
+
return typeof s == "function" && Ve.set(s, Wn), Wn;
|
|
286
286
|
}
|
|
287
|
-
function
|
|
288
|
-
return
|
|
287
|
+
function V(s, x, C) {
|
|
288
|
+
return k(s, !1);
|
|
289
289
|
}
|
|
290
|
-
function
|
|
291
|
-
var
|
|
292
|
-
return !!(
|
|
290
|
+
function ve(s) {
|
|
291
|
+
var x = s.prototype;
|
|
292
|
+
return !!(x && x.isReactComponent);
|
|
293
293
|
}
|
|
294
|
-
function
|
|
294
|
+
function xe(s, x, C) {
|
|
295
295
|
if (s == null)
|
|
296
296
|
return "";
|
|
297
297
|
if (typeof s == "function")
|
|
298
|
-
return
|
|
298
|
+
return k(s, ve(s));
|
|
299
299
|
if (typeof s == "string")
|
|
300
|
-
return
|
|
300
|
+
return Ee(s);
|
|
301
301
|
switch (s) {
|
|
302
302
|
case v:
|
|
303
|
-
return
|
|
303
|
+
return Ee("Suspense");
|
|
304
304
|
case m:
|
|
305
|
-
return
|
|
305
|
+
return Ee("SuspenseList");
|
|
306
306
|
}
|
|
307
307
|
if (typeof s == "object")
|
|
308
308
|
switch (s.$$typeof) {
|
|
309
309
|
case b:
|
|
310
|
-
return
|
|
310
|
+
return V(s.render);
|
|
311
311
|
case h:
|
|
312
|
-
return
|
|
312
|
+
return xe(s.type, x, C);
|
|
313
313
|
case l: {
|
|
314
|
-
var
|
|
314
|
+
var A = s, Q = A._payload, le = A._init;
|
|
315
315
|
try {
|
|
316
|
-
return
|
|
316
|
+
return xe(le(Q), x, C);
|
|
317
317
|
} catch {
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
320
|
}
|
|
321
321
|
return "";
|
|
322
322
|
}
|
|
323
|
-
var
|
|
324
|
-
function
|
|
323
|
+
var Re = Object.prototype.hasOwnProperty, Ne = {}, Je = g.ReactDebugCurrentFrame;
|
|
324
|
+
function Pe(s) {
|
|
325
325
|
if (s) {
|
|
326
|
-
var
|
|
327
|
-
|
|
326
|
+
var x = s._owner, C = xe(s.type, s._source, x ? x.type : null);
|
|
327
|
+
Je.setExtraStackFrame(C);
|
|
328
328
|
} else
|
|
329
|
-
|
|
329
|
+
Je.setExtraStackFrame(null);
|
|
330
330
|
}
|
|
331
|
-
function
|
|
331
|
+
function vt(s, x, C, A, Q) {
|
|
332
332
|
{
|
|
333
|
-
var
|
|
334
|
-
for (var
|
|
335
|
-
if (
|
|
336
|
-
var
|
|
333
|
+
var le = Function.call.bind(Re);
|
|
334
|
+
for (var G in s)
|
|
335
|
+
if (le(s, G)) {
|
|
336
|
+
var z = void 0;
|
|
337
337
|
try {
|
|
338
|
-
if (typeof s[
|
|
339
|
-
var je = Error((
|
|
338
|
+
if (typeof s[G] != "function") {
|
|
339
|
+
var je = Error((A || "React class") + ": " + C + " type `" + G + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof s[G] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
340
340
|
throw je.name = "Invariant Violation", je;
|
|
341
341
|
}
|
|
342
|
-
|
|
342
|
+
z = s[G](x, G, A, C, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
343
343
|
} catch (ge) {
|
|
344
|
-
|
|
344
|
+
z = ge;
|
|
345
345
|
}
|
|
346
|
-
|
|
346
|
+
z && !(z instanceof Error) && (Pe(Q), E("%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).", A || "React class", C, G, typeof z), Pe(null)), z instanceof Error && !(z.message in Ne) && (Ne[z.message] = !0, Pe(Q), E("Failed %s type: %s", C, z.message), Pe(null));
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
350
|
var Mt = Array.isArray;
|
|
351
|
-
function
|
|
351
|
+
function Le(s) {
|
|
352
352
|
return Mt(s);
|
|
353
353
|
}
|
|
354
|
-
function
|
|
354
|
+
function lt(s) {
|
|
355
355
|
{
|
|
356
|
-
var
|
|
357
|
-
return
|
|
356
|
+
var x = typeof Symbol == "function" && Symbol.toStringTag, C = x && s[Symbol.toStringTag] || s.constructor.name || "Object";
|
|
357
|
+
return C;
|
|
358
358
|
}
|
|
359
359
|
}
|
|
360
360
|
function gt(s) {
|
|
361
361
|
try {
|
|
362
|
-
return
|
|
362
|
+
return H(s), !1;
|
|
363
363
|
} catch {
|
|
364
364
|
return !0;
|
|
365
365
|
}
|
|
366
366
|
}
|
|
367
|
-
function
|
|
367
|
+
function H(s) {
|
|
368
368
|
return "" + s;
|
|
369
369
|
}
|
|
370
|
-
function
|
|
370
|
+
function J(s) {
|
|
371
371
|
if (gt(s))
|
|
372
|
-
return
|
|
372
|
+
return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", lt(s)), H(s);
|
|
373
373
|
}
|
|
374
|
-
var
|
|
374
|
+
var F = g.ReactCurrentOwner, ie = {
|
|
375
375
|
key: !0,
|
|
376
376
|
ref: !0,
|
|
377
377
|
__self: !0,
|
|
378
378
|
__source: !0
|
|
379
|
-
},
|
|
380
|
-
|
|
381
|
-
function
|
|
382
|
-
if (
|
|
383
|
-
var
|
|
384
|
-
if (
|
|
379
|
+
}, Ye, $e, K;
|
|
380
|
+
K = {};
|
|
381
|
+
function N(s) {
|
|
382
|
+
if (Re.call(s, "ref")) {
|
|
383
|
+
var x = Object.getOwnPropertyDescriptor(s, "ref").get;
|
|
384
|
+
if (x && x.isReactWarning)
|
|
385
385
|
return !1;
|
|
386
386
|
}
|
|
387
387
|
return s.ref !== void 0;
|
|
388
388
|
}
|
|
389
389
|
function Be(s) {
|
|
390
|
-
if (
|
|
391
|
-
var
|
|
392
|
-
if (
|
|
390
|
+
if (Re.call(s, "key")) {
|
|
391
|
+
var x = Object.getOwnPropertyDescriptor(s, "key").get;
|
|
392
|
+
if (x && x.isReactWarning)
|
|
393
393
|
return !1;
|
|
394
394
|
}
|
|
395
395
|
return s.key !== void 0;
|
|
396
396
|
}
|
|
397
|
-
function
|
|
398
|
-
if (typeof s.ref == "string" &&
|
|
399
|
-
var
|
|
400
|
-
|
|
397
|
+
function Tt(s, x) {
|
|
398
|
+
if (typeof s.ref == "string" && F.current && x && F.current.stateNode !== x) {
|
|
399
|
+
var C = w(F.current.type);
|
|
400
|
+
K[C] || (E('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', w(F.current.type), s.ref), K[C] = !0);
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
|
-
function Wt(s,
|
|
403
|
+
function Wt(s, x) {
|
|
404
404
|
{
|
|
405
|
-
var
|
|
406
|
-
|
|
405
|
+
var C = function() {
|
|
406
|
+
Ye || (Ye = !0, E("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", x));
|
|
407
407
|
};
|
|
408
|
-
|
|
409
|
-
get:
|
|
408
|
+
C.isReactWarning = !0, Object.defineProperty(s, "key", {
|
|
409
|
+
get: C,
|
|
410
410
|
configurable: !0
|
|
411
411
|
});
|
|
412
412
|
}
|
|
413
413
|
}
|
|
414
|
-
function ko(s,
|
|
414
|
+
function ko(s, x) {
|
|
415
415
|
{
|
|
416
|
-
var
|
|
417
|
-
$e || ($e = !0,
|
|
416
|
+
var C = function() {
|
|
417
|
+
$e || ($e = !0, E("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", x));
|
|
418
418
|
};
|
|
419
|
-
|
|
420
|
-
get:
|
|
419
|
+
C.isReactWarning = !0, Object.defineProperty(s, "ref", {
|
|
420
|
+
get: C,
|
|
421
421
|
configurable: !0
|
|
422
422
|
});
|
|
423
423
|
}
|
|
424
424
|
}
|
|
425
|
-
var So = function(s,
|
|
426
|
-
var
|
|
425
|
+
var So = function(s, x, C, A, Q, le, G) {
|
|
426
|
+
var z = {
|
|
427
427
|
// This tag allows us to uniquely identify this as a React Element
|
|
428
428
|
$$typeof: t,
|
|
429
429
|
// Built-in properties that belong on the element
|
|
430
430
|
type: s,
|
|
431
|
-
key:
|
|
432
|
-
ref:
|
|
433
|
-
props:
|
|
431
|
+
key: x,
|
|
432
|
+
ref: C,
|
|
433
|
+
props: G,
|
|
434
434
|
// Record the component responsible for creating this element.
|
|
435
|
-
_owner:
|
|
435
|
+
_owner: le
|
|
436
436
|
};
|
|
437
|
-
return
|
|
437
|
+
return z._store = {}, Object.defineProperty(z._store, "validated", {
|
|
438
438
|
configurable: !1,
|
|
439
439
|
enumerable: !1,
|
|
440
440
|
writable: !0,
|
|
441
441
|
value: !1
|
|
442
|
-
}), Object.defineProperty(
|
|
442
|
+
}), Object.defineProperty(z, "_self", {
|
|
443
443
|
configurable: !1,
|
|
444
444
|
enumerable: !1,
|
|
445
445
|
writable: !1,
|
|
446
|
-
value:
|
|
447
|
-
}), Object.defineProperty(
|
|
446
|
+
value: A
|
|
447
|
+
}), Object.defineProperty(z, "_source", {
|
|
448
448
|
configurable: !1,
|
|
449
449
|
enumerable: !1,
|
|
450
450
|
writable: !1,
|
|
451
|
-
value:
|
|
452
|
-
}), Object.freeze && (Object.freeze(
|
|
451
|
+
value: Q
|
|
452
|
+
}), Object.freeze && (Object.freeze(z.props), Object.freeze(z)), z;
|
|
453
453
|
};
|
|
454
|
-
function Eo(s,
|
|
454
|
+
function Eo(s, x, C, A, Q) {
|
|
455
455
|
{
|
|
456
|
-
var
|
|
457
|
-
|
|
458
|
-
for (
|
|
459
|
-
|
|
456
|
+
var le, G = {}, z = null, je = null;
|
|
457
|
+
C !== void 0 && (J(C), z = "" + C), Be(x) && (J(x.key), z = "" + x.key), N(x) && (je = x.ref, Tt(x, Q));
|
|
458
|
+
for (le in x)
|
|
459
|
+
Re.call(x, le) && !ie.hasOwnProperty(le) && (G[le] = x[le]);
|
|
460
460
|
if (s && s.defaultProps) {
|
|
461
461
|
var ge = s.defaultProps;
|
|
462
|
-
for (
|
|
463
|
-
|
|
462
|
+
for (le in ge)
|
|
463
|
+
G[le] === void 0 && (G[le] = ge[le]);
|
|
464
464
|
}
|
|
465
|
-
if (
|
|
466
|
-
var
|
|
467
|
-
|
|
465
|
+
if (z || je) {
|
|
466
|
+
var ye = typeof s == "function" ? s.displayName || s.name || "Unknown" : s;
|
|
467
|
+
z && Wt(G, ye), je && ko(G, ye);
|
|
468
468
|
}
|
|
469
|
-
return So(s,
|
|
469
|
+
return So(s, z, je, Q, A, F.current, G);
|
|
470
470
|
}
|
|
471
471
|
}
|
|
472
472
|
var rn = g.ReactCurrentOwner, Fn = g.ReactDebugCurrentFrame;
|
|
473
473
|
function wt(s) {
|
|
474
474
|
if (s) {
|
|
475
|
-
var
|
|
476
|
-
Fn.setExtraStackFrame(
|
|
475
|
+
var x = s._owner, C = xe(s.type, s._source, x ? x.type : null);
|
|
476
|
+
Fn.setExtraStackFrame(C);
|
|
477
477
|
} else
|
|
478
478
|
Fn.setExtraStackFrame(null);
|
|
479
479
|
}
|
|
@@ -485,7 +485,7 @@ function Vo() {
|
|
|
485
485
|
function Nn() {
|
|
486
486
|
{
|
|
487
487
|
if (rn.current) {
|
|
488
|
-
var s =
|
|
488
|
+
var s = w(rn.current.type);
|
|
489
489
|
if (s)
|
|
490
490
|
return `
|
|
491
491
|
|
|
@@ -497,10 +497,10 @@ Check the render method of \`` + s + "`.";
|
|
|
497
497
|
function To(s) {
|
|
498
498
|
{
|
|
499
499
|
if (s !== void 0) {
|
|
500
|
-
var
|
|
500
|
+
var x = s.fileName.replace(/^.*[\\\/]/, ""), C = s.lineNumber;
|
|
501
501
|
return `
|
|
502
502
|
|
|
503
|
-
Check your code at ` +
|
|
503
|
+
Check your code at ` + x + ":" + C + ".";
|
|
504
504
|
}
|
|
505
505
|
return "";
|
|
506
506
|
}
|
|
@@ -508,127 +508,127 @@ Check your code at ` + w + ":" + E + ".";
|
|
|
508
508
|
var An = {};
|
|
509
509
|
function Co(s) {
|
|
510
510
|
{
|
|
511
|
-
var
|
|
512
|
-
if (!
|
|
513
|
-
var
|
|
514
|
-
|
|
511
|
+
var x = Nn();
|
|
512
|
+
if (!x) {
|
|
513
|
+
var C = typeof s == "string" ? s : s.displayName || s.name;
|
|
514
|
+
C && (x = `
|
|
515
515
|
|
|
516
|
-
Check the top-level render call using <` +
|
|
516
|
+
Check the top-level render call using <` + C + ">.");
|
|
517
517
|
}
|
|
518
|
-
return
|
|
518
|
+
return x;
|
|
519
519
|
}
|
|
520
520
|
}
|
|
521
|
-
function Dn(s,
|
|
521
|
+
function Dn(s, x) {
|
|
522
522
|
{
|
|
523
523
|
if (!s._store || s._store.validated || s.key != null)
|
|
524
524
|
return;
|
|
525
525
|
s._store.validated = !0;
|
|
526
|
-
var
|
|
527
|
-
if (An[
|
|
526
|
+
var C = Co(x);
|
|
527
|
+
if (An[C])
|
|
528
528
|
return;
|
|
529
|
-
An[
|
|
530
|
-
var
|
|
531
|
-
s && s._owner && s._owner !== rn.current && (
|
|
529
|
+
An[C] = !0;
|
|
530
|
+
var A = "";
|
|
531
|
+
s && s._owner && s._owner !== rn.current && (A = " It was passed a child from " + w(s._owner.type) + "."), wt(s), E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', C, A), wt(null);
|
|
532
532
|
}
|
|
533
533
|
}
|
|
534
|
-
function $n(s,
|
|
534
|
+
function $n(s, x) {
|
|
535
535
|
{
|
|
536
536
|
if (typeof s != "object")
|
|
537
537
|
return;
|
|
538
|
-
if (
|
|
539
|
-
for (var
|
|
540
|
-
var
|
|
541
|
-
an(
|
|
538
|
+
if (Le(s))
|
|
539
|
+
for (var C = 0; C < s.length; C++) {
|
|
540
|
+
var A = s[C];
|
|
541
|
+
an(A) && Dn(A, x);
|
|
542
542
|
}
|
|
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
|
|
549
|
-
an(
|
|
546
|
+
var Q = p(s);
|
|
547
|
+
if (typeof Q == "function" && Q !== s.entries)
|
|
548
|
+
for (var le = Q.call(s), G; !(G = le.next()).done; )
|
|
549
|
+
an(G.value) && Dn(G.value, x);
|
|
550
550
|
}
|
|
551
551
|
}
|
|
552
552
|
}
|
|
553
553
|
function Io(s) {
|
|
554
554
|
{
|
|
555
|
-
var
|
|
556
|
-
if (
|
|
555
|
+
var x = s.type;
|
|
556
|
+
if (x == null || typeof x == "string")
|
|
557
557
|
return;
|
|
558
|
-
var
|
|
559
|
-
if (typeof
|
|
560
|
-
|
|
561
|
-
else if (typeof
|
|
558
|
+
var C;
|
|
559
|
+
if (typeof x == "function")
|
|
560
|
+
C = x.propTypes;
|
|
561
|
+
else if (typeof x == "object" && (x.$$typeof === b || // Note: Memo only checks outer props here.
|
|
562
562
|
// Inner props are checked in the reconciler.
|
|
563
|
-
|
|
564
|
-
|
|
563
|
+
x.$$typeof === h))
|
|
564
|
+
C = x.propTypes;
|
|
565
565
|
else
|
|
566
566
|
return;
|
|
567
|
-
if (
|
|
568
|
-
var
|
|
569
|
-
|
|
570
|
-
} else if (
|
|
567
|
+
if (C) {
|
|
568
|
+
var A = w(x);
|
|
569
|
+
vt(C, s.props, "prop", A, s);
|
|
570
|
+
} else if (x.PropTypes !== void 0 && !on) {
|
|
571
571
|
on = !0;
|
|
572
|
-
var
|
|
573
|
-
|
|
572
|
+
var Q = w(x);
|
|
573
|
+
E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", Q || "Unknown");
|
|
574
574
|
}
|
|
575
|
-
typeof
|
|
575
|
+
typeof x.getDefaultProps == "function" && !x.getDefaultProps.isReactClassApproved && E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
576
576
|
}
|
|
577
577
|
}
|
|
578
578
|
function Ro(s) {
|
|
579
579
|
{
|
|
580
|
-
for (var
|
|
581
|
-
var
|
|
582
|
-
if (
|
|
583
|
-
wt(s),
|
|
580
|
+
for (var x = Object.keys(s.props), C = 0; C < x.length; C++) {
|
|
581
|
+
var A = x[C];
|
|
582
|
+
if (A !== "children" && A !== "key") {
|
|
583
|
+
wt(s), E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", A), wt(null);
|
|
584
584
|
break;
|
|
585
585
|
}
|
|
586
586
|
}
|
|
587
|
-
s.ref !== null && (wt(s),
|
|
587
|
+
s.ref !== null && (wt(s), E("Invalid attribute `ref` supplied to `React.Fragment`."), wt(null));
|
|
588
588
|
}
|
|
589
589
|
}
|
|
590
|
-
function Mn(s,
|
|
590
|
+
function Mn(s, x, C, A, Q, le) {
|
|
591
591
|
{
|
|
592
|
-
var
|
|
593
|
-
if (!
|
|
594
|
-
var
|
|
595
|
-
(s === void 0 || typeof s == "object" && s !== null && Object.keys(s).length === 0) && (
|
|
596
|
-
var je = To(
|
|
597
|
-
je ?
|
|
592
|
+
var G = Y(s);
|
|
593
|
+
if (!G) {
|
|
594
|
+
var z = "";
|
|
595
|
+
(s === void 0 || typeof s == "object" && s !== null && Object.keys(s).length === 0) && (z += " 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(Q);
|
|
597
|
+
je ? z += je : z += Nn();
|
|
598
598
|
var ge;
|
|
599
|
-
s === null ? ge = "null" :
|
|
599
|
+
s === null ? ge = "null" : Le(s) ? ge = "array" : s !== void 0 && s.$$typeof === t ? (ge = "<" + (w(s.type) || "Unknown") + " />", z = " Did you accidentally export a JSX literal instead of a component?") : ge = typeof s, E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ge, z);
|
|
600
600
|
}
|
|
601
|
-
var
|
|
602
|
-
if (
|
|
603
|
-
return
|
|
604
|
-
if (
|
|
605
|
-
var Ue =
|
|
601
|
+
var ye = Eo(s, x, C, Q, le);
|
|
602
|
+
if (ye == null)
|
|
603
|
+
return ye;
|
|
604
|
+
if (G) {
|
|
605
|
+
var Ue = x.children;
|
|
606
606
|
if (Ue !== void 0)
|
|
607
|
-
if (
|
|
608
|
-
if (
|
|
607
|
+
if (A)
|
|
608
|
+
if (Le(Ue)) {
|
|
609
609
|
for (var xt = 0; xt < Ue.length; xt++)
|
|
610
610
|
$n(Ue[xt], s);
|
|
611
611
|
Object.freeze && Object.freeze(Ue);
|
|
612
612
|
} else
|
|
613
|
-
|
|
613
|
+
E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
614
614
|
else
|
|
615
615
|
$n(Ue, s);
|
|
616
616
|
}
|
|
617
|
-
return s === r ? Ro(
|
|
617
|
+
return s === r ? Ro(ye) : Io(ye), ye;
|
|
618
618
|
}
|
|
619
619
|
}
|
|
620
|
-
function Po(s,
|
|
621
|
-
return Mn(s,
|
|
620
|
+
function Po(s, x, C) {
|
|
621
|
+
return Mn(s, x, C, !0);
|
|
622
622
|
}
|
|
623
|
-
function
|
|
624
|
-
return Mn(s,
|
|
623
|
+
function Lo(s, x, C) {
|
|
624
|
+
return Mn(s, x, C, !1);
|
|
625
625
|
}
|
|
626
|
-
var
|
|
627
|
-
|
|
628
|
-
}()),
|
|
626
|
+
var jo = Lo, Fo = Po;
|
|
627
|
+
It.Fragment = r, It.jsx = jo, It.jsxs = Fo;
|
|
628
|
+
}()), It;
|
|
629
629
|
}
|
|
630
630
|
process.env.NODE_ENV === "production" ? pn.exports = Wo() : pn.exports = Vo();
|
|
631
|
-
var
|
|
631
|
+
var O = 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,
|
|
@@ -638,7 +638,7 @@ const Bo = "_button_1q2ge_1", Uo = "_primary_1q2ge_5", Ho = "_secondary_1q2ge_12
|
|
|
638
638
|
medium: Yo,
|
|
639
639
|
large: Ko,
|
|
640
640
|
squared: Go
|
|
641
|
-
},
|
|
641
|
+
}, ft = (e) => {
|
|
642
642
|
if (!e)
|
|
643
643
|
throw new Error("Please provide a hex color code");
|
|
644
644
|
if (!/^#([A-Fa-f0-9]{3}){1,2}$/.test(e))
|
|
@@ -649,12 +649,12 @@ const Bo = "_button_1q2ge_1", Uo = "_primary_1q2ge_5", Ho = "_secondary_1q2ge_12
|
|
|
649
649
|
);
|
|
650
650
|
return (0.2126 * o + 0.7152 * c + 0.0722 * i) / 255 < 0.7 ? "dark" : "light";
|
|
651
651
|
};
|
|
652
|
-
class
|
|
652
|
+
class tt {
|
|
653
653
|
static convert3HexTo6(t) {
|
|
654
654
|
return typeof t == "string" && /^#(?:[0-9a-fA-F]{3}){1,2}$/.test(t) && t.length === 4 ? t.replace(/^#(.)(.)(.)$/, "#$1$1$2$2$3$3") : t;
|
|
655
655
|
}
|
|
656
656
|
}
|
|
657
|
-
const ir =
|
|
657
|
+
const ir = ut(
|
|
658
658
|
({
|
|
659
659
|
themeColor: e = "",
|
|
660
660
|
variant: t = "primary",
|
|
@@ -663,16 +663,16 @@ const ir = dt(
|
|
|
663
663
|
children: o,
|
|
664
664
|
className: c = "",
|
|
665
665
|
style: i = {},
|
|
666
|
-
disabled:
|
|
666
|
+
disabled: f,
|
|
667
667
|
...b
|
|
668
668
|
}, v) => {
|
|
669
669
|
let m = {};
|
|
670
670
|
if (e) {
|
|
671
|
-
const l =
|
|
672
|
-
if (e =
|
|
673
|
-
const
|
|
671
|
+
const l = ft(e);
|
|
672
|
+
if (e = tt.convert3HexTo6(e), !f && (l === "dark" || l === "light")) {
|
|
673
|
+
const d = 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: d,
|
|
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__ */ O.jsx(
|
|
684
684
|
"button",
|
|
685
685
|
{
|
|
686
|
-
disabled:
|
|
686
|
+
disabled: f,
|
|
687
687
|
ref: v,
|
|
688
688
|
style: { ...m, ...i },
|
|
689
689
|
className: `${h}`,
|
|
@@ -694,7 +694,7 @@ const ir = dt(
|
|
|
694
694
|
}
|
|
695
695
|
);
|
|
696
696
|
ir.displayName = "Button";
|
|
697
|
-
const Jo = "_checkboxLayout_bt7qx_1", Qo = "_checkboxLabel_bt7qx_4", Xo = "_checkboxInnerContainer_bt7qx_10", Zo = "_checkboxInput_bt7qx_13", ei = "_checkboxFrame_bt7qx_16", ti = "_checkboxCheckMark_bt7qx_19", ni = "_checkboxCheckMarkPath_bt7qx_22", ri = "_checkboxUncheckedChecked_bt7qx_1", oi = "_visuallyHidden_bt7qx_43", ii = "_checkboxDisabled_bt7qx_53", ai = "_medium_bt7qx_59", li = "_large_bt7qx_65",
|
|
697
|
+
const Jo = "_checkboxLayout_bt7qx_1", Qo = "_checkboxLabel_bt7qx_4", Xo = "_checkboxInnerContainer_bt7qx_10", Zo = "_checkboxInput_bt7qx_13", ei = "_checkboxFrame_bt7qx_16", ti = "_checkboxCheckMark_bt7qx_19", ni = "_checkboxCheckMarkPath_bt7qx_22", ri = "_checkboxUncheckedChecked_bt7qx_1", oi = "_visuallyHidden_bt7qx_43", ii = "_checkboxDisabled_bt7qx_53", ai = "_medium_bt7qx_59", li = "_large_bt7qx_65", Qe = {
|
|
698
698
|
checkboxLayout: Jo,
|
|
699
699
|
checkboxLabel: Qo,
|
|
700
700
|
checkboxInnerContainer: Xo,
|
|
@@ -707,7 +707,7 @@ const Jo = "_checkboxLayout_bt7qx_1", Qo = "_checkboxLabel_bt7qx_4", Xo = "_chec
|
|
|
707
707
|
checkboxDisabled: ii,
|
|
708
708
|
medium: ai,
|
|
709
709
|
large: li
|
|
710
|
-
}, si = () => `checkbox_${Math.random().toString(36).substring(2, 11)}`, ar =
|
|
710
|
+
}, si = () => `checkbox_${Math.random().toString(36).substring(2, 11)}`, ar = ut(
|
|
711
711
|
({
|
|
712
712
|
children: e,
|
|
713
713
|
themeColor: t = "",
|
|
@@ -716,17 +716,17 @@ 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: f,
|
|
720
720
|
style: b = {},
|
|
721
721
|
tabIndex: v,
|
|
722
722
|
...m
|
|
723
723
|
}, h) => {
|
|
724
|
-
const [l,
|
|
724
|
+
const [l, d] = ae(o);
|
|
725
725
|
let a = {}, u, p = c ? "#9b9b9b" : "#ffffff";
|
|
726
726
|
if (t) {
|
|
727
|
-
const
|
|
728
|
-
if (t =
|
|
729
|
-
switch (
|
|
727
|
+
const _ = ft(t);
|
|
728
|
+
if (t = tt.convert3HexTo6(t), _ === "dark" || _ === "light") {
|
|
729
|
+
switch (_) {
|
|
730
730
|
case "dark":
|
|
731
731
|
p = c ? l ? "#9b9b9b" : "#f9f9f9" : "#ffffff";
|
|
732
732
|
break;
|
|
@@ -737,31 +737,31 @@ const Jo = "_checkboxLayout_bt7qx_1", Qo = "_checkboxLabel_bt7qx_4", Xo = "_chec
|
|
|
737
737
|
p = "#9b9b9b";
|
|
738
738
|
break;
|
|
739
739
|
}
|
|
740
|
-
const
|
|
740
|
+
const M = c ? "#f9f9f9" : l ? t : "#ffffff";
|
|
741
741
|
u = c ? "#e4e4e4" : t == "#ffffff" ? "#333333" : t, l && (a = {
|
|
742
|
-
backgroundColor:
|
|
742
|
+
backgroundColor: M,
|
|
743
743
|
borderColor: u,
|
|
744
744
|
outlineColor: u
|
|
745
745
|
});
|
|
746
746
|
}
|
|
747
747
|
}
|
|
748
|
-
const g = c ?
|
|
749
|
-
|
|
748
|
+
const g = c ? Qe.checkboxDisabled : "", E = [Qe.checkboxLayout, Qe[n], g, i].filter(Boolean).join(" "), y = (_) => {
|
|
749
|
+
_.key != "Enter" && (_.preventDefault(), f?.(_.target.checked), d(!l));
|
|
750
750
|
};
|
|
751
|
-
return /* @__PURE__ */
|
|
752
|
-
/* @__PURE__ */
|
|
751
|
+
return /* @__PURE__ */ O.jsx(O.Fragment, { children: /* @__PURE__ */ O.jsx("div", { className: E, "data-testid": "checkbox", children: /* @__PURE__ */ O.jsxs("label", { className: Qe.checkboxLabel, htmlFor: r, onClick: (_) => y(_), children: [
|
|
752
|
+
/* @__PURE__ */ O.jsxs(
|
|
753
753
|
"div",
|
|
754
754
|
{
|
|
755
|
-
className:
|
|
755
|
+
className: Qe.checkboxInnerContainer,
|
|
756
756
|
tabIndex: v || c ? -1 : 0,
|
|
757
|
-
onKeyPress: (
|
|
757
|
+
onKeyPress: (_) => y(_),
|
|
758
758
|
"data-testid": "checkbox-inner-container",
|
|
759
759
|
children: [
|
|
760
|
-
/* @__PURE__ */
|
|
760
|
+
/* @__PURE__ */ O.jsx(
|
|
761
761
|
"input",
|
|
762
762
|
{
|
|
763
|
-
className:
|
|
764
|
-
onChange: (
|
|
763
|
+
className: Qe.checkboxInput,
|
|
764
|
+
onChange: (_) => y(_),
|
|
765
765
|
type: "checkbox",
|
|
766
766
|
checked: l,
|
|
767
767
|
disabled: c,
|
|
@@ -772,24 +772,24 @@ 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__ */ O.jsx(
|
|
776
776
|
"div",
|
|
777
777
|
{
|
|
778
|
-
className:
|
|
778
|
+
className: Qe.checkboxFrame,
|
|
779
779
|
style: { ...a, ...b },
|
|
780
780
|
"data-testid": "checkbox-frame",
|
|
781
|
-
children: /* @__PURE__ */
|
|
781
|
+
children: /* @__PURE__ */ O.jsx(
|
|
782
782
|
"svg",
|
|
783
783
|
{
|
|
784
784
|
version: "1.1",
|
|
785
785
|
focusable: "false",
|
|
786
|
-
className:
|
|
786
|
+
className: Qe.checkboxCheckMark,
|
|
787
787
|
viewBox: "0 0 24 24",
|
|
788
788
|
"data-testid": "check-mark-svg",
|
|
789
|
-
children: /* @__PURE__ */
|
|
789
|
+
children: /* @__PURE__ */ O.jsx(
|
|
790
790
|
"path",
|
|
791
791
|
{
|
|
792
|
-
className:
|
|
792
|
+
className: Qe.checkboxCheckMarkPath,
|
|
793
793
|
fill: "none",
|
|
794
794
|
stroke: p,
|
|
795
795
|
d: "M4.1,12.7 9,17.6 20.3,6.3"
|
|
@@ -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__ */ O.jsx("span", { "data-testid": "checkbox-label", children: e }),
|
|
806
|
+
/* @__PURE__ */ O.jsx("div", { className: Qe.visuallyHidden, "aria-live": "polite", "aria-atomic": "true", children: l ? "Checked" : "Unchecked" })
|
|
807
807
|
] }) }) });
|
|
808
808
|
}
|
|
809
809
|
);
|
|
@@ -812,95 +812,95 @@ const ci = "_textInputWrapper_1i9m6_1", ui = "_textInput_1i9m6_1", Un = {
|
|
|
812
812
|
textInputWrapper: ci,
|
|
813
813
|
textInput: ui
|
|
814
814
|
};
|
|
815
|
-
var
|
|
815
|
+
var R = {}, bn = { exports: {} };
|
|
816
816
|
(function(e, t) {
|
|
817
817
|
(function(n, r) {
|
|
818
|
-
var o = "1.0.37", c = "", i = "?",
|
|
819
|
-
var
|
|
820
|
-
for (var
|
|
821
|
-
|
|
822
|
-
return
|
|
823
|
-
},
|
|
824
|
-
for (var
|
|
825
|
-
|
|
826
|
-
return
|
|
827
|
-
},
|
|
828
|
-
return typeof
|
|
829
|
-
},
|
|
830
|
-
return
|
|
831
|
-
},
|
|
832
|
-
return typeof
|
|
833
|
-
},
|
|
834
|
-
if (typeof
|
|
835
|
-
return
|
|
836
|
-
},
|
|
837
|
-
for (var
|
|
838
|
-
var
|
|
839
|
-
for (
|
|
840
|
-
if (
|
|
818
|
+
var o = "1.0.37", c = "", i = "?", f = "function", b = "undefined", v = "object", m = "string", h = "major", l = "model", d = "name", a = "type", u = "vendor", p = "version", g = "architecture", E = "console", y = "mobile", _ = "tablet", M = "smarttv", S = "wearable", U = "embedded", W = 500, I = "Amazon", Y = "Apple", se = "ASUS", oe = "BlackBerry", w = "Browser", q = "Chrome", ne = "Edge", fe = "Firefox", B = "Google", pe = "Huawei", re = "LG", Z = "Microsoft", de = "Motorola", he = "Opera", be = "Samsung", T = "Sharp", L = "Sony", $ = "Xiaomi", Oe = "Zebra", Ee = "Facebook", ze = "Chromium OS", Ve = "Mac OS", Et = function(H, J) {
|
|
819
|
+
var F = {};
|
|
820
|
+
for (var ie in H)
|
|
821
|
+
J[ie] && J[ie].length % 2 === 0 ? F[ie] = J[ie].concat(H[ie]) : F[ie] = H[ie];
|
|
822
|
+
return F;
|
|
823
|
+
}, k = function(H) {
|
|
824
|
+
for (var J = {}, F = 0; F < H.length; F++)
|
|
825
|
+
J[H[F].toUpperCase()] = H[F];
|
|
826
|
+
return J;
|
|
827
|
+
}, V = function(H, J) {
|
|
828
|
+
return typeof H === m ? ve(J).indexOf(ve(H)) !== -1 : !1;
|
|
829
|
+
}, ve = function(H) {
|
|
830
|
+
return H.toLowerCase();
|
|
831
|
+
}, xe = function(H) {
|
|
832
|
+
return typeof H === m ? H.replace(/[^\d\.]/g, c).split(".")[0] : r;
|
|
833
|
+
}, Re = function(H, J) {
|
|
834
|
+
if (typeof H === m)
|
|
835
|
+
return H = H.replace(/^\s\s*/, c), typeof J === b ? H : H.substring(0, W);
|
|
836
|
+
}, Ne = function(H, J) {
|
|
837
|
+
for (var F = 0, ie, Ye, $e, K, N, Be; F < J.length && !N; ) {
|
|
838
|
+
var Tt = J[F], Wt = J[F + 1];
|
|
839
|
+
for (ie = Ye = 0; ie < Tt.length && !N && Tt[ie]; )
|
|
840
|
+
if (N = Tt[ie++].exec(H), N)
|
|
841
841
|
for ($e = 0; $e < Wt.length; $e++)
|
|
842
|
-
Be =
|
|
843
|
-
|
|
842
|
+
Be = N[++Ye], K = Wt[$e], typeof K === v && K.length > 0 ? K.length === 2 ? typeof K[1] == f ? this[K[0]] = K[1].call(this, Be) : this[K[0]] = K[1] : K.length === 3 ? typeof K[1] === f && !(K[1].exec && K[1].test) ? this[K[0]] = Be ? K[1].call(this, Be, K[2]) : r : this[K[0]] = Be ? Be.replace(K[1], K[2]) : r : K.length === 4 && (this[K[0]] = Be ? K[3].call(this, Be.replace(K[1], K[2])) : r) : this[K] = Be || r;
|
|
843
|
+
F += 2;
|
|
844
844
|
}
|
|
845
|
-
},
|
|
846
|
-
for (var
|
|
847
|
-
if (typeof
|
|
848
|
-
for (var
|
|
849
|
-
if (
|
|
850
|
-
return
|
|
851
|
-
} else if (
|
|
852
|
-
return
|
|
853
|
-
return
|
|
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
|
|
856
|
-
return new
|
|
857
|
-
var
|
|
845
|
+
}, Je = function(H, J) {
|
|
846
|
+
for (var F in J)
|
|
847
|
+
if (typeof J[F] === v && J[F].length > 0) {
|
|
848
|
+
for (var ie = 0; ie < J[F].length; ie++)
|
|
849
|
+
if (V(J[F][ie], H))
|
|
850
|
+
return F === i ? r : F;
|
|
851
|
+
} else if (V(J[F], H))
|
|
852
|
+
return F === i ? r : F;
|
|
853
|
+
return H;
|
|
854
|
+
}, Pe = { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }, vt = { 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, he + " Mini"]], [/\bopr\/([\w\.]+)/i], [p, [d, he]], [/\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" + w]], [/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 " + w]], [/(avast|avg)\/([\w\.]+)/i], [[d, /(.+)/, "$1 Secure " + w], p], [/\bfocus\/([\w\.]+)/i], [p, [d, fe + " Focus"]], [/\bopt\/([\w\.]+)/i], [p, [d, he + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [p, [d, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [p, [d, "Dolphin"]], [/coast\/([\w\.]+)/i], [p, [d, he + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [p, [d, "MIUI " + w]], [/fxios\/([-\w\.]+)/i], [p, [d, fe]], [/\bqihu|(qi?ho?o?|360)browser/i], [[d, "360 " + w]], [/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i], [[d, /(.+)/, "$1 " + w], p], [/samsungbrowser\/([\w\.]+)/i], [p, [d, be + " 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, Ee], 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, q + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[d, q + " WebView"], p], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [p, [d, "Android " + w]], [/(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, Je, Pe]], [/(webkit|khtml)\/([\w\.]+)/i], [d, p], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[d, "Netscape"], p], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [p, [d, fe + " 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, ve]], [/((?: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, ve]], [/(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, ve]]], 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, be], [a, _]], [/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]([-\w]+)/i, /sec-(sgh\w+)/i], [l, [u, be], [a, y]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [l, [u, Y], [a, y]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [l, [u, Y], [a, _]], [/(macintosh);/i], [l, [u, Y]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [l, [u, T], [a, y]], [/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i], [l, [u, pe], [a, _]], [/(?:huawei|honor)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [l, [u, pe], [a, y]], [/\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, $], [a, y]], [/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i, /\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i], [[l, /_/g, " "], [u, $], [a, _]], [/; (\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, y]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [l, [u, "Vivo"], [a, y]], [/\b(rmx[1-3]\d{3})(?: bui|;|\))/i], [l, [u, "Realme"], [a, y]], [/\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, de], [a, y]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [l, [u, de], [a, _]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [l, [u, re], [a, _]], [/(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, y]], [/(ideatab[-\w ]+)/i, /lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i], [l, [u, "Lenovo"], [a, _]], [/(?:maemo|nokia).*(n900|lumia \d+)/i, /nokia[-_ ]?([-\w\.]*)/i], [[l, /_/g, " "], [u, "Nokia"], [a, y]], [/(pixel c)\b/i], [l, [u, B], [a, _]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [l, [u, B], [a, y]], [/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, L], [a, y]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[l, "Xperia Tablet"], [u, L], [a, _]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [l, [u, "OnePlus"], [a, y]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [l, [u, I], [a, _]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[l, /(.+)/g, "Fire Phone $1"], [u, I], [a, y]], [/(playbook);[-\w\),; ]+(rim)/i], [l, u, [a, _]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [l, [u, oe], [a, y]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [l, [u, se], [a, _]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [l, [u, se], [a, y]], [/(nexus 9)/i], [l, [u, "HTC"], [a, _]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [u, [l, /_/g, " "], [a, y]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [l, [u, "Acer"], [a, _]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [l, [u, "Meizu"], [a, y]], [/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i], [l, [u, "Ulefone"], [a, y]], [/(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, y]], [/(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, _]], [/(surface duo)/i], [l, [u, Z], [a, _]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [l, [u, "Fairphone"], [a, y]], [/(u304aa)/i], [l, [u, "AT&T"], [a, y]], [/\bsie-(\w*)/i], [l, [u, "Siemens"], [a, y]], [/\b(rct\w+) b/i], [l, [u, "RCA"], [a, _]], [/\b(venue[\d ]{2,7}) b/i], [l, [u, "Dell"], [a, _]], [/\b(q(?:mv|ta)\w+) b/i], [l, [u, "Verizon"], [a, _]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [l, [u, "Barnes & Noble"], [a, _]], [/\b(tm\d{3}\w+) b/i], [l, [u, "NuVision"], [a, _]], [/\b(k88) b/i], [l, [u, "ZTE"], [a, _]], [/\b(nx\d{3}j) b/i], [l, [u, "ZTE"], [a, y]], [/\b(gen\d{3}) b.+49h/i], [l, [u, "Swiss"], [a, y]], [/\b(zur\d{3}) b/i], [l, [u, "Swiss"], [a, _]], [/\b((zeki)?tb.*\b) b/i], [l, [u, "Zeki"], [a, _]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[u, "Dragon Touch"], l, [a, _]], [/\b(ns-?\w{0,9}) b/i], [l, [u, "Insignia"], [a, _]], [/\b((nxa|next)-?\w{0,9}) b/i], [l, [u, "NextBook"], [a, _]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[u, "Voice"], l, [a, y]], [/\b(lvtel\-)?(v1[12]) b/i], [[u, "LvTel"], l, [a, y]], [/\b(ph-1) /i], [l, [u, "Essential"], [a, y]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [l, [u, "Envizen"], [a, _]], [/\b(trio[-\w\. ]+) b/i], [l, [u, "MachSpeed"], [a, _]], [/\btu_(1491) b/i], [l, [u, "Rotor"], [a, _]], [/(shield[\w ]+) b/i], [l, [u, "Nvidia"], [a, _]], [/(sprint) (\w+)/i], [u, l, [a, y]], [/(kin\.[onetw]{3})/i], [[l, /\./g, " "], [u, Z], [a, y]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [l, [u, Oe], [a, _]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [l, [u, Oe], [a, y]], [/smart-tv.+(samsung)/i], [u, [a, M]], [/hbbtv.+maple;(\d+)/i], [[l, /^/, "SmartTV"], [u, be], [a, M]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[u, re], [a, M]], [/(apple) ?tv/i], [u, [l, Y + " TV"], [a, M]], [/crkey/i], [[l, q + "cast"], [u, B], [a, M]], [/droid.+aft(\w+)( bui|\))/i], [l, [u, I], [a, M]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [l, [u, T], [a, M]], [/(bravia[\w ]+)( bui|\))/i], [l, [u, L], [a, M]], [/(mitv-\w{5}) bui/i], [l, [u, $], [a, M]], [/Hbbtv.*(technisat) (.*);/i], [u, l, [a, M]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[u, Re], [l, Re], [a, M]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[a, M]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [u, l, [a, E]], [/droid.+; (shield) bui/i], [l, [u, "Nvidia"], [a, E]], [/(playstation [345portablevi]+)/i], [l, [u, L], [a, E]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [l, [u, Z], [a, E]], [/((pebble))app/i], [u, l, [a, S]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [l, [u, Y], [a, S]], [/droid.+; (glass) \d/i], [l, [u, B], [a, S]], [/droid.+; (wt63?0{2,3})\)/i], [l, [u, Oe], [a, S]], [/(quest( 2| pro)?)/i], [l, [u, Ee], [a, S]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [u, [a, U]], [/(aeobc)\b/i], [l, [u, I], [a, U]], [/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i], [l, [a, y]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [l, [a, _]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[a, _]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[a, y]], [/(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, Je, vt]], [/windows nt 6\.2; (arm)/i, /windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i, /(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[p, Je, vt], [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, Ve], [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, oe]], [/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i], [p, [d, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [p, [d, fe + " 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, q + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[d, ze], 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]] }, Le = function(H, J) {
|
|
855
|
+
if (typeof H === v && (J = H, H = r), !(this instanceof Le))
|
|
856
|
+
return new Le(H, J).getResult();
|
|
857
|
+
var F = typeof n !== b && n.navigator ? n.navigator : r, ie = H || (F && F.userAgent ? F.userAgent : c), Ye = F && F.userAgentData ? F.userAgentData : r, $e = J ? Et(Mt, J) : Mt, K = F && F.userAgent == ie;
|
|
858
858
|
return this.getBrowser = function() {
|
|
859
|
-
var
|
|
860
|
-
return
|
|
859
|
+
var N = {};
|
|
860
|
+
return N[d] = r, N[p] = r, Ne.call(N, ie, $e.browser), N[h] = xe(N[p]), K && F && F.brave && typeof F.brave.isBrave == f && (N[d] = "Brave"), N;
|
|
861
861
|
}, this.getCPU = function() {
|
|
862
|
-
var
|
|
863
|
-
return
|
|
862
|
+
var N = {};
|
|
863
|
+
return N[g] = r, Ne.call(N, ie, $e.cpu), N;
|
|
864
864
|
}, this.getDevice = function() {
|
|
865
|
-
var
|
|
866
|
-
return
|
|
865
|
+
var N = {};
|
|
866
|
+
return N[u] = r, N[l] = r, N[a] = r, Ne.call(N, ie, $e.device), K && !N[a] && Ye && Ye.mobile && (N[a] = y), K && N[l] == "Macintosh" && F && typeof F.standalone !== b && F.maxTouchPoints && F.maxTouchPoints > 2 && (N[l] = "iPad", N[a] = _), N;
|
|
867
867
|
}, this.getEngine = function() {
|
|
868
|
-
var
|
|
869
|
-
return
|
|
868
|
+
var N = {};
|
|
869
|
+
return N[d] = r, N[p] = r, Ne.call(N, ie, $e.engine), N;
|
|
870
870
|
}, this.getOS = function() {
|
|
871
|
-
var
|
|
872
|
-
return
|
|
871
|
+
var N = {};
|
|
872
|
+
return N[d] = r, N[p] = r, Ne.call(N, ie, $e.os), K && !N[d] && Ye && Ye.platform != "Unknown" && (N[d] = Ye.platform.replace(/chrome os/i, ze).replace(/macos/i, Ve)), N;
|
|
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
|
|
877
|
-
}, this.setUA = function(
|
|
878
|
-
return
|
|
879
|
-
}, this.setUA(
|
|
876
|
+
return ie;
|
|
877
|
+
}, this.setUA = function(N) {
|
|
878
|
+
return ie = typeof N === m && N.length > W ? Re(N, W) : N, this;
|
|
879
|
+
}, this.setUA(ie), this;
|
|
880
880
|
};
|
|
881
|
-
|
|
882
|
-
var
|
|
883
|
-
if (
|
|
884
|
-
var gt = new
|
|
885
|
-
|
|
881
|
+
Le.VERSION = o, Le.BROWSER = k([d, p, h]), Le.CPU = k([g]), Le.DEVICE = k([l, u, a, E, y, M, _, S, U]), Le.ENGINE = Le.OS = k([d, p]), e.exports && (t = e.exports = Le), t.UAParser = Le;
|
|
882
|
+
var lt = typeof n !== b && (n.jQuery || n.Zepto);
|
|
883
|
+
if (lt && !lt.ua) {
|
|
884
|
+
var gt = new Le();
|
|
885
|
+
lt.ua = gt.getResult(), lt.ua.get = function() {
|
|
886
886
|
return gt.getUA();
|
|
887
|
-
},
|
|
888
|
-
gt.setUA(
|
|
889
|
-
var
|
|
890
|
-
for (var
|
|
891
|
-
|
|
887
|
+
}, lt.ua.set = function(H) {
|
|
888
|
+
gt.setUA(H);
|
|
889
|
+
var J = gt.getResult();
|
|
890
|
+
for (var F in J)
|
|
891
|
+
lt.ua[F] = J[F];
|
|
892
892
|
};
|
|
893
893
|
}
|
|
894
894
|
})(typeof window == "object" ? window : Mo);
|
|
895
895
|
})(bn, bn.exports);
|
|
896
896
|
var di = bn.exports;
|
|
897
|
-
Object.defineProperty(
|
|
897
|
+
Object.defineProperty(R, "__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
|
|
902
|
-
return
|
|
903
|
-
},
|
|
901
|
+
var Ce = ce, ue = fi(Ce), lr = di, pt = new lr(), Ie = pt.getBrowser(), pi = pt.getCPU(), We = pt.getDevice(), xn = pt.getEngine(), bt = pt.getOS(), jt = pt.getUA(), sr = function(t) {
|
|
902
|
+
return pt.setUA(t);
|
|
903
|
+
}, Ft = function(t) {
|
|
904
904
|
if (!t) {
|
|
905
905
|
console.error("No userAgent string was provided");
|
|
906
906
|
return;
|
|
@@ -919,15 +919,15 @@ var Te = ue, de = fi(Te), lr = di, bt = new lr(), Ce = bt.getBrowser(), pi = bt.
|
|
|
919
919
|
}
|
|
920
920
|
};
|
|
921
921
|
}, cr = /* @__PURE__ */ Object.freeze({
|
|
922
|
-
ClientUAInstance:
|
|
923
|
-
browser:
|
|
922
|
+
ClientUAInstance: pt,
|
|
923
|
+
browser: Ie,
|
|
924
924
|
cpu: pi,
|
|
925
925
|
device: We,
|
|
926
926
|
engine: xn,
|
|
927
|
-
os:
|
|
927
|
+
os: bt,
|
|
928
928
|
ua: jt,
|
|
929
929
|
setUa: sr,
|
|
930
|
-
parseUserAgent:
|
|
930
|
+
parseUserAgent: Ft
|
|
931
931
|
});
|
|
932
932
|
function Hn(e, t) {
|
|
933
933
|
var n = Object.keys(e);
|
|
@@ -950,13 +950,13 @@ function bi(e) {
|
|
|
950
950
|
}
|
|
951
951
|
return e;
|
|
952
952
|
}
|
|
953
|
-
function
|
|
953
|
+
function Pt(e) {
|
|
954
954
|
"@babel/helpers - typeof";
|
|
955
|
-
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ?
|
|
955
|
+
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Pt = function(t) {
|
|
956
956
|
return typeof t;
|
|
957
|
-
} :
|
|
957
|
+
} : Pt = function(t) {
|
|
958
958
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
959
|
-
},
|
|
959
|
+
}, Pt(e);
|
|
960
960
|
}
|
|
961
961
|
function vi(e, t) {
|
|
962
962
|
if (!(e instanceof 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, f;
|
|
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, f = 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 f;
|
|
1066
1066
|
}
|
|
1067
1067
|
}
|
|
1068
1068
|
return r;
|
|
@@ -1089,7 +1089,7 @@ function Si() {
|
|
|
1089
1089
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
1090
1090
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1091
1091
|
}
|
|
1092
|
-
var
|
|
1092
|
+
var Te = {
|
|
1093
1093
|
Mobile: "mobile",
|
|
1094
1094
|
Tablet: "tablet",
|
|
1095
1095
|
SmartTv: "smarttv",
|
|
@@ -1097,7 +1097,7 @@ var Ee = {
|
|
|
1097
1097
|
Wearable: "wearable",
|
|
1098
1098
|
Embedded: "embedded",
|
|
1099
1099
|
Browser: void 0
|
|
1100
|
-
},
|
|
1100
|
+
}, Ae = {
|
|
1101
1101
|
Chrome: "Chrome",
|
|
1102
1102
|
Firefox: "Firefox",
|
|
1103
1103
|
Opera: "Opera",
|
|
@@ -1126,31 +1126,31 @@ var Ee = {
|
|
|
1126
1126
|
isWearable: !1
|
|
1127
1127
|
}, Ti = function(t) {
|
|
1128
1128
|
switch (t) {
|
|
1129
|
-
case
|
|
1129
|
+
case Te.Mobile:
|
|
1130
1130
|
return {
|
|
1131
1131
|
isMobile: !0
|
|
1132
1132
|
};
|
|
1133
|
-
case
|
|
1133
|
+
case Te.Tablet:
|
|
1134
1134
|
return {
|
|
1135
1135
|
isTablet: !0
|
|
1136
1136
|
};
|
|
1137
|
-
case
|
|
1137
|
+
case Te.SmartTv:
|
|
1138
1138
|
return {
|
|
1139
1139
|
isSmartTV: !0
|
|
1140
1140
|
};
|
|
1141
|
-
case
|
|
1141
|
+
case Te.Console:
|
|
1142
1142
|
return {
|
|
1143
1143
|
isConsole: !0
|
|
1144
1144
|
};
|
|
1145
|
-
case
|
|
1145
|
+
case Te.Wearable:
|
|
1146
1146
|
return {
|
|
1147
1147
|
isWearable: !0
|
|
1148
1148
|
};
|
|
1149
|
-
case
|
|
1149
|
+
case Te.Browser:
|
|
1150
1150
|
return {
|
|
1151
1151
|
isBrowser: !0
|
|
1152
1152
|
};
|
|
1153
|
-
case
|
|
1153
|
+
case Te.Embedded:
|
|
1154
1154
|
return {
|
|
1155
1155
|
isEmbedded: !0
|
|
1156
1156
|
};
|
|
@@ -1159,7 +1159,7 @@ var Ee = {
|
|
|
1159
1159
|
}
|
|
1160
1160
|
}, Ci = function(t) {
|
|
1161
1161
|
return sr(t);
|
|
1162
|
-
},
|
|
1162
|
+
}, D = function(t) {
|
|
1163
1163
|
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "none";
|
|
1164
1164
|
return t || n;
|
|
1165
1165
|
}, yn = function() {
|
|
@@ -1170,64 +1170,64 @@ var Ee = {
|
|
|
1170
1170
|
}, Ii = function(t, n, r, o, c) {
|
|
1171
1171
|
return {
|
|
1172
1172
|
isBrowser: t,
|
|
1173
|
-
browserMajorVersion:
|
|
1174
|
-
browserFullVersion:
|
|
1175
|
-
browserName:
|
|
1176
|
-
engineName:
|
|
1177
|
-
engineVersion:
|
|
1178
|
-
osName:
|
|
1179
|
-
osVersion:
|
|
1180
|
-
userAgent:
|
|
1173
|
+
browserMajorVersion: D(n.major),
|
|
1174
|
+
browserFullVersion: D(n.version),
|
|
1175
|
+
browserName: D(n.name),
|
|
1176
|
+
engineName: D(r.name),
|
|
1177
|
+
engineVersion: D(r.version),
|
|
1178
|
+
osName: D(o.name),
|
|
1179
|
+
osVersion: D(o.version),
|
|
1180
|
+
userAgent: D(c)
|
|
1181
1181
|
};
|
|
1182
1182
|
}, Yn = function(t, n, r, o) {
|
|
1183
1183
|
return bi({}, t, {
|
|
1184
|
-
vendor:
|
|
1185
|
-
model:
|
|
1186
|
-
os:
|
|
1187
|
-
osVersion:
|
|
1188
|
-
ua:
|
|
1184
|
+
vendor: D(n.vendor),
|
|
1185
|
+
model: D(n.model),
|
|
1186
|
+
os: D(r.name),
|
|
1187
|
+
osVersion: D(r.version),
|
|
1188
|
+
ua: D(o)
|
|
1189
1189
|
});
|
|
1190
1190
|
}, Ri = function(t, n, r, o) {
|
|
1191
1191
|
return {
|
|
1192
1192
|
isSmartTV: t,
|
|
1193
|
-
engineName:
|
|
1194
|
-
engineVersion:
|
|
1195
|
-
osName:
|
|
1196
|
-
osVersion:
|
|
1197
|
-
userAgent:
|
|
1193
|
+
engineName: D(n.name),
|
|
1194
|
+
engineVersion: D(n.version),
|
|
1195
|
+
osName: D(r.name),
|
|
1196
|
+
osVersion: D(r.version),
|
|
1197
|
+
userAgent: D(o)
|
|
1198
1198
|
};
|
|
1199
1199
|
}, Pi = function(t, n, r, o) {
|
|
1200
1200
|
return {
|
|
1201
1201
|
isConsole: t,
|
|
1202
|
-
engineName:
|
|
1203
|
-
engineVersion:
|
|
1204
|
-
osName:
|
|
1205
|
-
osVersion:
|
|
1206
|
-
userAgent:
|
|
1202
|
+
engineName: D(n.name),
|
|
1203
|
+
engineVersion: D(n.version),
|
|
1204
|
+
osName: D(r.name),
|
|
1205
|
+
osVersion: D(r.version),
|
|
1206
|
+
userAgent: D(o)
|
|
1207
1207
|
};
|
|
1208
|
-
},
|
|
1208
|
+
}, Li = function(t, n, r, o) {
|
|
1209
1209
|
return {
|
|
1210
1210
|
isWearable: t,
|
|
1211
|
-
engineName:
|
|
1212
|
-
engineVersion:
|
|
1213
|
-
osName:
|
|
1214
|
-
osVersion:
|
|
1215
|
-
userAgent:
|
|
1211
|
+
engineName: D(n.name),
|
|
1212
|
+
engineVersion: D(n.version),
|
|
1213
|
+
osName: D(r.name),
|
|
1214
|
+
osVersion: D(r.version),
|
|
1215
|
+
userAgent: D(o)
|
|
1216
1216
|
};
|
|
1217
|
-
},
|
|
1217
|
+
}, ji = function(t, n, r, o, c) {
|
|
1218
1218
|
return {
|
|
1219
1219
|
isEmbedded: t,
|
|
1220
|
-
vendor:
|
|
1221
|
-
model:
|
|
1222
|
-
engineName:
|
|
1223
|
-
engineVersion:
|
|
1224
|
-
osName:
|
|
1225
|
-
osVersion:
|
|
1226
|
-
userAgent:
|
|
1220
|
+
vendor: D(n.vendor),
|
|
1221
|
+
model: D(n.model),
|
|
1222
|
+
engineName: D(r.name),
|
|
1223
|
+
engineVersion: D(r.version),
|
|
1224
|
+
osName: D(o.name),
|
|
1225
|
+
osVersion: D(o.version),
|
|
1226
|
+
userAgent: D(c)
|
|
1227
1227
|
};
|
|
1228
1228
|
};
|
|
1229
1229
|
function Fi(e) {
|
|
1230
|
-
var t = e ?
|
|
1230
|
+
var t = e ? Ft(e) : cr, n = t.device, r = t.browser, o = t.engine, c = t.os, i = t.ua, f = Ti(n.type), b = f.isBrowser, v = f.isMobile, m = f.isTablet, h = f.isSmartTV, l = f.isConsole, d = f.isWearable, a = f.isEmbedded;
|
|
1231
1231
|
if (b)
|
|
1232
1232
|
return Ii(b, r, o, c, i);
|
|
1233
1233
|
if (h)
|
|
@@ -1235,45 +1235,45 @@ 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
|
|
1238
|
+
return Yn(f, n, c, i);
|
|
1239
|
+
if (d)
|
|
1240
|
+
return Li(d, o, c, i);
|
|
1241
1241
|
if (a)
|
|
1242
|
-
return
|
|
1242
|
+
return ji(a, n, o, c, i);
|
|
1243
1243
|
}
|
|
1244
1244
|
var ur = function(t) {
|
|
1245
1245
|
var n = t.type;
|
|
1246
|
-
return n ===
|
|
1246
|
+
return n === Te.Mobile;
|
|
1247
1247
|
}, dr = function(t) {
|
|
1248
1248
|
var n = t.type;
|
|
1249
|
-
return n ===
|
|
1249
|
+
return n === Te.Tablet;
|
|
1250
1250
|
}, fr = function(t) {
|
|
1251
1251
|
var n = t.type;
|
|
1252
|
-
return n ===
|
|
1252
|
+
return n === Te.Mobile || n === Te.Tablet;
|
|
1253
1253
|
}, pr = function(t) {
|
|
1254
1254
|
var n = t.type;
|
|
1255
|
-
return n ===
|
|
1255
|
+
return n === Te.SmartTv;
|
|
1256
1256
|
}, zt = function(t) {
|
|
1257
1257
|
var n = t.type;
|
|
1258
|
-
return n ===
|
|
1258
|
+
return n === Te.Browser;
|
|
1259
1259
|
}, br = function(t) {
|
|
1260
1260
|
var n = t.type;
|
|
1261
|
-
return n ===
|
|
1261
|
+
return n === Te.Wearable;
|
|
1262
1262
|
}, vr = function(t) {
|
|
1263
1263
|
var n = t.type;
|
|
1264
|
-
return n ===
|
|
1264
|
+
return n === Te.Console;
|
|
1265
1265
|
}, mr = function(t) {
|
|
1266
1266
|
var n = t.type;
|
|
1267
|
-
return n ===
|
|
1267
|
+
return n === Te.Embedded;
|
|
1268
1268
|
}, hr = function(t) {
|
|
1269
1269
|
var n = t.vendor;
|
|
1270
|
-
return
|
|
1270
|
+
return D(n);
|
|
1271
1271
|
}, gr = function(t) {
|
|
1272
1272
|
var n = t.model;
|
|
1273
|
-
return
|
|
1273
|
+
return D(n);
|
|
1274
1274
|
}, wr = function(t) {
|
|
1275
1275
|
var n = t.type;
|
|
1276
|
-
return
|
|
1276
|
+
return D(n, "browser");
|
|
1277
1277
|
}, xr = function(t) {
|
|
1278
1278
|
var n = t.name;
|
|
1279
1279
|
return n === kt.Android;
|
|
@@ -1291,58 +1291,58 @@ var ur = function(t) {
|
|
|
1291
1291
|
return n === kt.IOS;
|
|
1292
1292
|
}, Sr = function(t) {
|
|
1293
1293
|
var n = t.version;
|
|
1294
|
-
return
|
|
1294
|
+
return D(n);
|
|
1295
1295
|
}, Er = function(t) {
|
|
1296
1296
|
var n = t.name;
|
|
1297
|
-
return
|
|
1297
|
+
return D(n);
|
|
1298
1298
|
}, Tr = function(t) {
|
|
1299
1299
|
var n = t.name;
|
|
1300
|
-
return n ===
|
|
1300
|
+
return n === Ae.Chrome;
|
|
1301
1301
|
}, Cr = function(t) {
|
|
1302
1302
|
var n = t.name;
|
|
1303
|
-
return n ===
|
|
1303
|
+
return n === Ae.Firefox;
|
|
1304
1304
|
}, Ir = function(t) {
|
|
1305
1305
|
var n = t.name;
|
|
1306
|
-
return n ===
|
|
1306
|
+
return n === Ae.Chromium;
|
|
1307
1307
|
}, Yt = function(t) {
|
|
1308
1308
|
var n = t.name;
|
|
1309
|
-
return n ===
|
|
1309
|
+
return n === Ae.Edge;
|
|
1310
1310
|
}, Rr = function(t) {
|
|
1311
1311
|
var n = t.name;
|
|
1312
|
-
return n ===
|
|
1312
|
+
return n === Ae.Yandex;
|
|
1313
1313
|
}, Pr = function(t) {
|
|
1314
1314
|
var n = t.name;
|
|
1315
|
-
return n ===
|
|
1316
|
-
}, jr = function(t) {
|
|
1317
|
-
var n = t.name;
|
|
1318
|
-
return n === Ne.MobileSafari;
|
|
1315
|
+
return n === Ae.Safari || n === Ae.MobileSafari;
|
|
1319
1316
|
}, Lr = function(t) {
|
|
1320
1317
|
var n = t.name;
|
|
1321
|
-
return n ===
|
|
1318
|
+
return n === Ae.MobileSafari;
|
|
1319
|
+
}, jr = function(t) {
|
|
1320
|
+
var n = t.name;
|
|
1321
|
+
return n === Ae.Opera;
|
|
1322
1322
|
}, Fr = function(t) {
|
|
1323
1323
|
var n = t.name;
|
|
1324
|
-
return n ===
|
|
1324
|
+
return n === Ae.InternetExplorer || n === Ae.Ie;
|
|
1325
1325
|
}, Nr = function(t) {
|
|
1326
1326
|
var n = t.name;
|
|
1327
|
-
return n ===
|
|
1327
|
+
return n === Ae.MIUI;
|
|
1328
1328
|
}, Ar = function(t) {
|
|
1329
1329
|
var n = t.name;
|
|
1330
|
-
return n ===
|
|
1330
|
+
return n === Ae.SamsungBrowser;
|
|
1331
1331
|
}, Dr = function(t) {
|
|
1332
1332
|
var n = t.version;
|
|
1333
|
-
return
|
|
1333
|
+
return D(n);
|
|
1334
1334
|
}, $r = function(t) {
|
|
1335
1335
|
var n = t.major;
|
|
1336
|
-
return
|
|
1336
|
+
return D(n);
|
|
1337
1337
|
}, Mr = function(t) {
|
|
1338
1338
|
var n = t.name;
|
|
1339
|
-
return
|
|
1339
|
+
return D(n);
|
|
1340
1340
|
}, Wr = function(t) {
|
|
1341
1341
|
var n = t.name;
|
|
1342
|
-
return
|
|
1342
|
+
return D(n);
|
|
1343
1343
|
}, Vr = function(t) {
|
|
1344
1344
|
var n = t.version;
|
|
1345
|
-
return
|
|
1345
|
+
return D(n);
|
|
1346
1346
|
}, Br = function() {
|
|
1347
1347
|
var t = yn(), n = t && t.userAgent && t.userAgent.toLowerCase();
|
|
1348
1348
|
return typeof n == "string" ? /electron/.test(n) : !1;
|
|
@@ -1351,14 +1351,14 @@ var ur = function(t) {
|
|
|
1351
1351
|
}, Ur = function() {
|
|
1352
1352
|
var t = yn();
|
|
1353
1353
|
return t && (/iPad|iPhone|iPod/.test(t.platform) || t.platform === "MacIntel" && t.maxTouchPoints > 1) && !window.MSStream;
|
|
1354
|
-
},
|
|
1354
|
+
}, Ze = function() {
|
|
1355
1355
|
return On("iPad");
|
|
1356
1356
|
}, Hr = function() {
|
|
1357
1357
|
return On("iPhone");
|
|
1358
1358
|
}, qr = function() {
|
|
1359
1359
|
return On("iPod");
|
|
1360
1360
|
}, zr = function(t) {
|
|
1361
|
-
return
|
|
1361
|
+
return D(t);
|
|
1362
1362
|
};
|
|
1363
1363
|
function Yr(e) {
|
|
1364
1364
|
var t = e || cr, n = t.device, r = t.browser, o = t.os, c = t.engine, i = t.ua;
|
|
@@ -1367,20 +1367,20 @@ function Yr(e) {
|
|
|
1367
1367
|
isConsole: vr(n),
|
|
1368
1368
|
isWearable: br(n),
|
|
1369
1369
|
isEmbedded: mr(n),
|
|
1370
|
-
isMobileSafari:
|
|
1370
|
+
isMobileSafari: Lr(r) || Ze(),
|
|
1371
1371
|
isChromium: Ir(r),
|
|
1372
|
-
isMobile: fr(n) ||
|
|
1372
|
+
isMobile: fr(n) || Ze(),
|
|
1373
1373
|
isMobileOnly: ur(n),
|
|
1374
|
-
isTablet: dr(n) ||
|
|
1374
|
+
isTablet: dr(n) || Ze(),
|
|
1375
1375
|
isBrowser: zt(n),
|
|
1376
1376
|
isDesktop: zt(n),
|
|
1377
1377
|
isAndroid: xr(o),
|
|
1378
1378
|
isWinPhone: _r(o),
|
|
1379
|
-
isIOS: kr(o) ||
|
|
1379
|
+
isIOS: kr(o) || Ze(),
|
|
1380
1380
|
isChrome: Tr(r),
|
|
1381
1381
|
isFirefox: Cr(r),
|
|
1382
1382
|
isSafari: Pr(r),
|
|
1383
|
-
isOpera:
|
|
1383
|
+
isOpera: jr(r),
|
|
1384
1384
|
isIE: Fr(r),
|
|
1385
1385
|
osVersion: Sr(o),
|
|
1386
1386
|
osName: Er(o),
|
|
@@ -1396,7 +1396,7 @@ function Yr(e) {
|
|
|
1396
1396
|
isYandex: Rr(r),
|
|
1397
1397
|
deviceType: wr(n),
|
|
1398
1398
|
isIOS13: Ur(),
|
|
1399
|
-
isIPad13:
|
|
1399
|
+
isIPad13: Ze(),
|
|
1400
1400
|
isIPhone13: Hr(),
|
|
1401
1401
|
isIPod13: qr(),
|
|
1402
1402
|
isElectron: Br(),
|
|
@@ -1408,59 +1408,59 @@ function Yr(e) {
|
|
|
1408
1408
|
isSamsungBrowser: Ar(r)
|
|
1409
1409
|
};
|
|
1410
1410
|
}
|
|
1411
|
-
var Kr = pr(We), Gr = vr(We), Jr = br(We), Ni = mr(We), Ai =
|
|
1411
|
+
var Kr = pr(We), Gr = vr(We), Jr = br(We), Ni = mr(We), Ai = Lr(Ie) || Ze(), Di = Ir(Ie), Qt = fr(We) || Ze(), Qr = ur(We), Xr = dr(We) || Ze(), Zr = zt(We), $i = zt(We), eo = xr(bt), to = _r(bt), no = kr(bt) || Ze(), Mi = Tr(Ie), Wi = Cr(Ie), Vi = Pr(Ie), Bi = jr(Ie), ro = Fr(Ie), Ui = Sr(bt), Hi = Er(bt), qi = Dr(Ie), zi = $r(Ie), Yi = Mr(Ie), Ki = hr(We), Gi = gr(We), Ji = Wr(xn), Qi = Vr(xn), Xi = zr(jt), Zi = Yt(Ie) || Ot(jt), ea = Rr(Ie), ta = wr(We), na = Ur(), ra = Ze(), oa = Hr(), ia = qr(), aa = Br(), la = Ot(jt), sa = Yt(Ie) && !Ot(jt), ca = yr(bt), ua = Or(bt), da = Nr(Ie), fa = Ar(Ie), pa = function(t) {
|
|
1412
1412
|
if (!t || typeof t != "string") {
|
|
1413
1413
|
console.error("No valid user agent string was provided");
|
|
1414
1414
|
return;
|
|
1415
1415
|
}
|
|
1416
|
-
var n =
|
|
1416
|
+
var n = Ft(t), r = n.device, o = n.browser, c = n.os, i = n.engine, f = 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: f
|
|
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 ? ue.createElement(Ce.Fragment, null, r) : ue.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 ? ue.createElement(Ce.Fragment, null, r) : ue.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 ? ue.createElement(Ce.Fragment, null, r) : ue.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 ? ue.createElement(Ce.Fragment, null, r) : ue.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 ? ue.createElement(Ce.Fragment, null, r) : ue.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 ? ue.createElement(Ce.Fragment, null, r) : ue.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 ? ue.createElement(Ce.Fragment, null, r) : ue.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 ? ue.createElement(Ce.Fragment, null, r) : ue.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 ? ue.createElement(Ce.Fragment, null, r) : ue.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 ? ue.createElement(Ce.Fragment, null, r) : ue.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 ? ue.createElement(Ce.Fragment, null, r) : ue.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 ? ue.createElement(Ce.Fragment, null, r) : ue.createElement("div", c, r) : null;
|
|
1464
1464
|
};
|
|
1465
1465
|
function Ea(e) {
|
|
1466
1466
|
return /* @__PURE__ */ function(t) {
|
|
@@ -1495,7 +1495,7 @@ function Ea(e) {
|
|
|
1495
1495
|
}, {
|
|
1496
1496
|
key: "componentDidMount",
|
|
1497
1497
|
value: function() {
|
|
1498
|
-
(typeof window > "u" ? "undefined" :
|
|
1498
|
+
(typeof window > "u" ? "undefined" : Pt(window)) !== void 0 && Qt && (this.isEventListenerAdded ? window.removeEventListener("load", this.onPageLoad, !1) : (this.handleOrientationChange(), window.addEventListener("load", this.onPageLoad, !1)), window.addEventListener("resize", this.onOrientationChange, !1));
|
|
1499
1499
|
}
|
|
1500
1500
|
}, {
|
|
1501
1501
|
key: "componentWillUnmount",
|
|
@@ -1505,23 +1505,23 @@ function Ea(e) {
|
|
|
1505
1505
|
}, {
|
|
1506
1506
|
key: "render",
|
|
1507
1507
|
value: function() {
|
|
1508
|
-
return
|
|
1508
|
+
return ue.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
|
+
}(ue.Component);
|
|
1515
1515
|
}
|
|
1516
1516
|
function Ta() {
|
|
1517
|
-
var e =
|
|
1517
|
+
var e = Ce.useState(function() {
|
|
1518
1518
|
var c = window.innerWidth > window.innerHeight ? 90 : 0;
|
|
1519
1519
|
return {
|
|
1520
1520
|
isPortrait: c === 0,
|
|
1521
1521
|
isLandscape: c === 90,
|
|
1522
1522
|
orientation: c === 0 ? "portrait" : "landscape"
|
|
1523
1523
|
};
|
|
1524
|
-
}), t = yi(e, 2), n = t[0], r = t[1], o =
|
|
1524
|
+
}), t = yi(e, 2), n = t[0], r = t[1], o = Ce.useCallback(function() {
|
|
1525
1525
|
var c = window.innerWidth > window.innerHeight ? 90 : 0, i = {
|
|
1526
1526
|
isPortrait: c === 0,
|
|
1527
1527
|
isLandscape: c === 90,
|
|
@@ -1529,106 +1529,106 @@ function Ta() {
|
|
|
1529
1529
|
};
|
|
1530
1530
|
n.orientation !== i.orientation && r(i);
|
|
1531
1531
|
}, [n.orientation]);
|
|
1532
|
-
return
|
|
1533
|
-
return (typeof window > "u" ? "undefined" :
|
|
1532
|
+
return Ce.useEffect(function() {
|
|
1533
|
+
return (typeof window > "u" ? "undefined" : Pt(window)) !== void 0 && Qt && (o(), window.addEventListener("load", o, !1), window.addEventListener("resize", o, !1)), function() {
|
|
1534
1534
|
window.removeEventListener("resize", o, !1), window.removeEventListener("load", o, !1);
|
|
1535
1535
|
};
|
|
1536
1536
|
}, [o]), n;
|
|
1537
1537
|
}
|
|
1538
1538
|
function oo(e) {
|
|
1539
1539
|
var t = e || window.navigator.userAgent;
|
|
1540
|
-
return
|
|
1540
|
+
return Ft(t);
|
|
1541
1541
|
}
|
|
1542
1542
|
function Ca(e) {
|
|
1543
1543
|
var t = e || window.navigator.userAgent, n = oo(t), r = Yr(n);
|
|
1544
1544
|
return [r, n];
|
|
1545
1545
|
}
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
var Ia =
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
const Ec =
|
|
1612
|
-
|
|
1613
|
-
({ themeColor: e = "", onSubmit: t, style: n = {}, className: r = "", onInput: o, onFocus: c, onBlur: i, ...
|
|
1614
|
-
const [v, m] =
|
|
1615
|
-
e =
|
|
1546
|
+
R.AndroidView = ba;
|
|
1547
|
+
R.BrowserTypes = Ae;
|
|
1548
|
+
R.BrowserView = va;
|
|
1549
|
+
R.ConsoleView = _a;
|
|
1550
|
+
R.CustomView = Sa;
|
|
1551
|
+
R.IEView = ma;
|
|
1552
|
+
R.IOSView = ha;
|
|
1553
|
+
R.MobileOnlyView = ya;
|
|
1554
|
+
R.MobileView = ga;
|
|
1555
|
+
R.OsTypes = kt;
|
|
1556
|
+
R.SmartTVView = Oa;
|
|
1557
|
+
R.TabletView = wa;
|
|
1558
|
+
R.WearableView = ka;
|
|
1559
|
+
R.WinPhoneView = xa;
|
|
1560
|
+
R.browserName = Yi;
|
|
1561
|
+
R.browserVersion = zi;
|
|
1562
|
+
R.deviceDetect = Fi;
|
|
1563
|
+
R.deviceType = ta;
|
|
1564
|
+
R.engineName = Ji;
|
|
1565
|
+
R.engineVersion = Qi;
|
|
1566
|
+
R.fullBrowserVersion = qi;
|
|
1567
|
+
R.getSelectorsByUserAgent = pa;
|
|
1568
|
+
R.getUA = Xi;
|
|
1569
|
+
R.isAndroid = eo;
|
|
1570
|
+
R.isBrowser = Zr;
|
|
1571
|
+
R.isChrome = Mi;
|
|
1572
|
+
R.isChromium = Di;
|
|
1573
|
+
R.isConsole = Gr;
|
|
1574
|
+
R.isDesktop = $i;
|
|
1575
|
+
R.isEdge = Zi;
|
|
1576
|
+
R.isEdgeChromium = la;
|
|
1577
|
+
R.isElectron = aa;
|
|
1578
|
+
R.isEmbedded = Ni;
|
|
1579
|
+
R.isFirefox = Wi;
|
|
1580
|
+
R.isIE = ro;
|
|
1581
|
+
R.isIOS = no;
|
|
1582
|
+
R.isIOS13 = na;
|
|
1583
|
+
R.isIPad13 = ra;
|
|
1584
|
+
R.isIPhone13 = oa;
|
|
1585
|
+
R.isIPod13 = ia;
|
|
1586
|
+
R.isLegacyEdge = sa;
|
|
1587
|
+
R.isMIUI = da;
|
|
1588
|
+
R.isMacOs = ua;
|
|
1589
|
+
var Ia = R.isMobile = Qt;
|
|
1590
|
+
R.isMobileOnly = Qr;
|
|
1591
|
+
R.isMobileSafari = Ai;
|
|
1592
|
+
R.isOpera = Bi;
|
|
1593
|
+
R.isSafari = Vi;
|
|
1594
|
+
R.isSamsungBrowser = fa;
|
|
1595
|
+
R.isSmartTV = Kr;
|
|
1596
|
+
R.isTablet = Xr;
|
|
1597
|
+
R.isWearable = Jr;
|
|
1598
|
+
R.isWinPhone = to;
|
|
1599
|
+
R.isWindows = ca;
|
|
1600
|
+
R.isYandex = ea;
|
|
1601
|
+
R.mobileModel = Gi;
|
|
1602
|
+
R.mobileVendor = Ki;
|
|
1603
|
+
R.osName = Hi;
|
|
1604
|
+
R.osVersion = Ui;
|
|
1605
|
+
R.parseUserAgent = Ft;
|
|
1606
|
+
R.setUserAgent = Ci;
|
|
1607
|
+
R.useDeviceData = oo;
|
|
1608
|
+
R.useDeviceSelectors = Ca;
|
|
1609
|
+
R.useMobileOrientation = Ta;
|
|
1610
|
+
R.withOrientationChange = Ea;
|
|
1611
|
+
const Ec = ce.memo(
|
|
1612
|
+
ut(
|
|
1613
|
+
({ themeColor: e = "", onSubmit: t, style: n = {}, className: r = "", onInput: o, onFocus: c, onBlur: i, ...f }, b) => {
|
|
1614
|
+
const [v, m] = ae(!0), [h, l] = ae(!1);
|
|
1615
|
+
e = tt.convert3HexTo6(e), X(() => {
|
|
1616
1616
|
m(Ia);
|
|
1617
1617
|
}, []);
|
|
1618
|
-
const
|
|
1619
|
-
!v &&
|
|
1620
|
-
}, a = (
|
|
1621
|
-
o?.(
|
|
1618
|
+
const d = (y) => {
|
|
1619
|
+
!v && y.key === "Enter" && !y.shiftKey && t && (y.preventDefault(), t());
|
|
1620
|
+
}, a = (y) => {
|
|
1621
|
+
o?.(y), y.target.style.height = "40px", y.target.style.height = 2 + y.target.scrollHeight + "px";
|
|
1622
1622
|
};
|
|
1623
1623
|
let u = {};
|
|
1624
1624
|
const p = [Un.textInput, r].filter(Boolean).join(" "), g = () => {
|
|
1625
1625
|
l(!0);
|
|
1626
|
-
},
|
|
1626
|
+
}, E = () => {
|
|
1627
1627
|
l(!1);
|
|
1628
1628
|
};
|
|
1629
1629
|
return u = {
|
|
1630
1630
|
borderBottomColor: h ? e !== "#ffffff" ? e : "#c8c8c8" : ""
|
|
1631
|
-
}, /* @__PURE__ */
|
|
1631
|
+
}, /* @__PURE__ */ O.jsx("div", { className: Un.textInputWrapper, children: /* @__PURE__ */ O.jsx(
|
|
1632
1632
|
"textarea",
|
|
1633
1633
|
{
|
|
1634
1634
|
"data-testid": "textbox-input",
|
|
@@ -1636,19 +1636,19 @@ const Ec = ue.memo(
|
|
|
1636
1636
|
className: p,
|
|
1637
1637
|
style: { ...u, ...n },
|
|
1638
1638
|
onFocus: g,
|
|
1639
|
-
onBlur:
|
|
1640
|
-
onInput: (
|
|
1641
|
-
onKeyDown:
|
|
1642
|
-
...
|
|
1639
|
+
onBlur: E,
|
|
1640
|
+
onInput: (y) => a(y),
|
|
1641
|
+
onKeyDown: d,
|
|
1642
|
+
...f
|
|
1643
1643
|
}
|
|
1644
1644
|
) });
|
|
1645
1645
|
}
|
|
1646
1646
|
)
|
|
1647
|
-
), Ra = "_multiSelectContainer_lh9wi_1", Pa = "_listOptionsWrap_lh9wi_4",
|
|
1647
|
+
), Ra = "_multiSelectContainer_lh9wi_1", Pa = "_listOptionsWrap_lh9wi_4", La = "_selectedValuesWrap_lh9wi_7", ja = "_selectedValues_lh9wi_7", Fa = "_focused_lh9wi_13", Na = "_placeholder_lh9wi_16", Aa = "_dropDownIcon_lh9wi_19", Da = "_optionsListContainer_lh9wi_23", $a = "_top_lh9wi_26", Ma = "_optionsListWrap_lh9wi_29", Wa = "_searchInputWrap_lh9wi_32", Va = "_searchInput_lh9wi_32", Ba = "_optionsList_lh9wi_23", Ua = "_btnContainer_lh9wi_54", Ha = "_hiddenButton_lh9wi_57", qa = "_announcement_lh9wi_70", ke = {
|
|
1648
1648
|
multiSelectContainer: Ra,
|
|
1649
1649
|
listOptionsWrap: Pa,
|
|
1650
|
-
selectedValuesWrap:
|
|
1651
|
-
selectedValues:
|
|
1650
|
+
selectedValuesWrap: La,
|
|
1651
|
+
selectedValues: ja,
|
|
1652
1652
|
focused: Fa,
|
|
1653
1653
|
placeholder: Na,
|
|
1654
1654
|
dropDownIcon: Aa,
|
|
@@ -1661,7 +1661,7 @@ const Ec = ue.memo(
|
|
|
1661
1661
|
btnContainer: Ua,
|
|
1662
1662
|
hiddenButton: Ha,
|
|
1663
1663
|
announcement: qa
|
|
1664
|
-
}, za = "_pseudoCheckbox_z8j4c_1", Ya = "_checkboxCheckMark_z8j4c_4", Ka = "_checkboxCheckMarkPath_z8j4c_7", Ga = "_checked_z8j4c_12", Ja = "_checkboxUncheckedChecked_z8j4c_1", Qa = "_checkboxDisabled_z8j4c_22",
|
|
1664
|
+
}, za = "_pseudoCheckbox_z8j4c_1", Ya = "_checkboxCheckMark_z8j4c_4", Ka = "_checkboxCheckMarkPath_z8j4c_7", Ga = "_checked_z8j4c_12", Ja = "_checkboxUncheckedChecked_z8j4c_1", Qa = "_checkboxDisabled_z8j4c_22", Rt = {
|
|
1665
1665
|
pseudoCheckbox: za,
|
|
1666
1666
|
checkboxCheckMark: Ya,
|
|
1667
1667
|
checkboxCheckMarkPath: Ka,
|
|
@@ -1670,17 +1670,17 @@ const Ec = ue.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 ?
|
|
1673
|
+
const i = n ? Rt.checkboxDisabled : "", f = e ? Rt.checked : "", b = [Rt.pseudoCheckbox, f, i].filter(Boolean).join(" ");
|
|
1674
1674
|
let v;
|
|
1675
1675
|
if (t) {
|
|
1676
|
-
const m =
|
|
1677
|
-
t =
|
|
1676
|
+
const m = ft(t);
|
|
1677
|
+
t = tt.convert3HexTo6(t), m === "dark" || m === "light" ? (n ? c = e ? "#9b9b9b" : "#f9f9f9" : c = m == "light" ? "#333333" : "#ffffff", o = n ? "#f9f9f9" : e ? t : "#ffffff", v = n ? "#e4e4e4" : t === "#ffffff" ? "#333333" : t, e && (r = {
|
|
1678
1678
|
backgroundColor: o,
|
|
1679
1679
|
borderColor: v,
|
|
1680
1680
|
outlineColor: v
|
|
1681
1681
|
})) : c = "#9b9b9b";
|
|
1682
1682
|
}
|
|
1683
|
-
return /* @__PURE__ */
|
|
1683
|
+
return /* @__PURE__ */ O.jsx(
|
|
1684
1684
|
"div",
|
|
1685
1685
|
{
|
|
1686
1686
|
style: r,
|
|
@@ -1690,10 +1690,10 @@ const Ec = ue.memo(
|
|
|
1690
1690
|
"aria-hidden": "true",
|
|
1691
1691
|
tabIndex: -1,
|
|
1692
1692
|
"data-testid": "checkbox-input",
|
|
1693
|
-
children: /* @__PURE__ */
|
|
1693
|
+
children: /* @__PURE__ */ O.jsx("svg", { version: "1.1", focusable: "false", className: Rt.checkboxCheckMark, viewBox: "0 0 24 24", children: /* @__PURE__ */ O.jsx(
|
|
1694
1694
|
"path",
|
|
1695
1695
|
{
|
|
1696
|
-
className:
|
|
1696
|
+
className: Rt.checkboxCheckMarkPath,
|
|
1697
1697
|
fill: "none",
|
|
1698
1698
|
stroke: c,
|
|
1699
1699
|
d: "M4.1,12.7 9,17.6 20.3,6.3"
|
|
@@ -1712,146 +1712,152 @@ const Tc = ({
|
|
|
1712
1712
|
className: c = "",
|
|
1713
1713
|
style: i = {}
|
|
1714
1714
|
}) => {
|
|
1715
|
-
const
|
|
1716
|
-
let
|
|
1717
|
-
const [
|
|
1715
|
+
const f = P(e), [b, v] = ae(t), [m, h] = ae(""), [l, d] = ae(!1), [a, u] = ae(!1), p = P(null), g = P(null), E = P(null), y = P(null), _ = P(null), M = P(null), [S, U] = ae(-1), W = P(0), I = P(0), [Y, se] = ae(!1);
|
|
1716
|
+
let oe = {};
|
|
1717
|
+
const [w, q] = ae({ left: 0, top: 0 }), [ne, fe] = ae(null), B = P(!1), pe = P(null), re = () => {
|
|
1718
1718
|
setTimeout(() => {
|
|
1719
1719
|
(p.current?.children[0]).focus();
|
|
1720
1720
|
}, 0);
|
|
1721
1721
|
};
|
|
1722
|
-
|
|
1723
|
-
const
|
|
1724
|
-
g.current && !g.current.contains(
|
|
1722
|
+
X(() => {
|
|
1723
|
+
const k = (V) => {
|
|
1724
|
+
g.current && !g.current.contains(V.target) && (d(!1), h(""), re());
|
|
1725
1725
|
};
|
|
1726
|
-
return document.addEventListener("mousedown",
|
|
1727
|
-
document.removeEventListener("mousedown",
|
|
1726
|
+
return document.addEventListener("mousedown", k), () => {
|
|
1727
|
+
document.removeEventListener("mousedown", k);
|
|
1728
1728
|
};
|
|
1729
1729
|
}, []);
|
|
1730
|
-
const
|
|
1731
|
-
|
|
1730
|
+
const Z = () => {
|
|
1731
|
+
W.current = window.innerHeight, I.current = document.body.scrollHeight, se(!0);
|
|
1732
1732
|
};
|
|
1733
|
-
|
|
1734
|
-
window.addEventListener("resize",
|
|
1733
|
+
X(() => (Z(), window.addEventListener("resize", Z), () => {
|
|
1734
|
+
window.addEventListener("resize", Z);
|
|
1735
1735
|
}), []);
|
|
1736
|
-
const
|
|
1737
|
-
const
|
|
1738
|
-
|
|
1739
|
-
|
|
1736
|
+
const de = (k) => {
|
|
1737
|
+
const V = document.getElementById("announcement");
|
|
1738
|
+
V && (V.textContent = k, V.setAttribute("aria-live", "assertive"), setTimeout(() => {
|
|
1739
|
+
V.textContent = "", V.setAttribute("aria-live", "off");
|
|
1740
1740
|
}, 1e3));
|
|
1741
1741
|
};
|
|
1742
|
-
|
|
1743
|
-
const
|
|
1744
|
-
|
|
1742
|
+
X(() => {
|
|
1743
|
+
const k = e.filter((V) => V.label.toLowerCase().includes(m.toLowerCase()));
|
|
1744
|
+
f.current = k;
|
|
1745
1745
|
}, [e, m]);
|
|
1746
|
-
const
|
|
1747
|
-
const
|
|
1748
|
-
return
|
|
1749
|
-
}).filter((
|
|
1750
|
-
const
|
|
1751
|
-
if (
|
|
1752
|
-
const
|
|
1753
|
-
(r === void 0 ||
|
|
1754
|
-
}
|
|
1755
|
-
},
|
|
1756
|
-
|
|
1757
|
-
|
|
1746
|
+
const he = b.length > 0 ? b.map((k) => {
|
|
1747
|
+
const V = e.find((ve) => ve.value === k);
|
|
1748
|
+
return V?.label !== null ? V?.label : "";
|
|
1749
|
+
}).filter((k) => k !== "").join(", ") : "Select your option", be = (k) => {
|
|
1750
|
+
const V = e.find((ve) => ve.value === k);
|
|
1751
|
+
if (V && !V.disable && (r === void 0 || b.length <= r)) {
|
|
1752
|
+
const xe = b.includes(k) ? b.filter((Ne) => Ne !== k) : [...b, k];
|
|
1753
|
+
(r === void 0 || xe.length <= r) && l && (v(xe), n(xe), de(`${V?.label} ${xe.includes(k) ? "selected" : "not selected"}`));
|
|
1754
|
+
}
|
|
1755
|
+
}, T = (k) => {
|
|
1756
|
+
$(), d(k), setTimeout(() => {
|
|
1757
|
+
E.current ? E.current?.focus() : y.current?.focus(), de("use up and down arrow keys to navigate");
|
|
1758
1758
|
}, 0);
|
|
1759
|
-
},
|
|
1759
|
+
}, L = () => I.current - (W.current + window.scrollY), $ = () => {
|
|
1760
1760
|
if (p.current) {
|
|
1761
|
-
const
|
|
1761
|
+
const k = p.current.getBoundingClientRect();
|
|
1762
1762
|
setTimeout(() => {
|
|
1763
|
-
const
|
|
1764
|
-
let
|
|
1765
|
-
if (
|
|
1766
|
-
const
|
|
1767
|
-
|
|
1768
|
-
left:
|
|
1769
|
-
top:
|
|
1763
|
+
const V = g?.current?.getBoundingClientRect(), ve = L(), xe = W.current - k.bottom;
|
|
1764
|
+
let Re;
|
|
1765
|
+
if (V) {
|
|
1766
|
+
const Ne = k.height, Je = k.top, Pe = V.height, vt = Pe > Je + window.scrollY;
|
|
1767
|
+
Je < Pe && (vt || vt && xe < Pe || ve > Pe || xe > Pe) || Je > Pe && xe > Pe ? Re = k.y + Ne : Re = k.y - Pe, q({
|
|
1768
|
+
left: k.left,
|
|
1769
|
+
top: Re ?? k.top
|
|
1770
1770
|
});
|
|
1771
1771
|
}
|
|
1772
1772
|
}, 0);
|
|
1773
1773
|
}
|
|
1774
1774
|
};
|
|
1775
|
-
|
|
1776
|
-
window.removeEventListener("scroll",
|
|
1775
|
+
X(() => (window.addEventListener("scroll", $), window.addEventListener("resize", $), () => {
|
|
1776
|
+
window.removeEventListener("scroll", $), window.removeEventListener("resize", $);
|
|
1777
1777
|
}), [l]);
|
|
1778
|
-
const
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
}, 0), B.current = !1) :
|
|
1782
|
-
},
|
|
1783
|
-
const { key:
|
|
1784
|
-
if (
|
|
1778
|
+
const Oe = (k) => {
|
|
1779
|
+
k.preventDefault(), k.key === "Shift" ? B.current = !0 : k.shiftKey && B.current && k.key === "Tab" || k.key === "Tab" ? (setTimeout(() => {
|
|
1780
|
+
E.current ? E.current?.focus() : y.current?.focus();
|
|
1781
|
+
}, 0), B.current = !1) : k.key === "Escape" || k.key === "Enter" || k.key === "Space" || k.key === " " ? (T(!1), re()) : B.current = !1;
|
|
1782
|
+
}, Ee = (k) => {
|
|
1783
|
+
const { key: V } = k;
|
|
1784
|
+
if (V === "Tab" || k.shiftKey && V === "Tab")
|
|
1785
1785
|
setTimeout(() => {
|
|
1786
|
-
|
|
1786
|
+
_.current?.focus();
|
|
1787
1787
|
}, 0);
|
|
1788
|
-
else if (
|
|
1789
|
-
|
|
1790
|
-
|
|
1788
|
+
else if (V === "ArrowDown" || V === "ArrowUp") {
|
|
1789
|
+
k.preventDefault(), setTimeout(() => {
|
|
1790
|
+
y.current?.focus();
|
|
1791
1791
|
}, 0);
|
|
1792
|
-
let
|
|
1793
|
-
if (
|
|
1794
|
-
const
|
|
1795
|
-
|
|
1792
|
+
let ve = S;
|
|
1793
|
+
if (V === "ArrowDown" ? ve = Math.min(S + 1, f.current.length - 1) : V === "ArrowUp" && (ve = Math.max(S - 1, 0)), S === 0 && k.key === "ArrowUp" ? ve = f.current.length - 1 : S === f.current.length - 1 && k.key === "ArrowDown" && (ve = 0), U(ve), M.current && ve >= 0) {
|
|
1794
|
+
const xe = M.current.querySelectorAll(`.${ke.optionsList}`)[ve], Re = xe.children[0].getAttribute("aria-checked"), Ne = `${xe.textContent} ${Re === "true" ? "selected" : "not selected"} ${ve + 1} out of ${f.current.length}`;
|
|
1795
|
+
de(Ne), xe && xe.scrollIntoView({
|
|
1796
1796
|
block: "nearest",
|
|
1797
1797
|
inline: "nearest"
|
|
1798
1798
|
});
|
|
1799
1799
|
}
|
|
1800
1800
|
} else
|
|
1801
|
-
|
|
1801
|
+
V === "Enter" || V === "Space" || V === " " ? S !== -1 && be(f.current[S].value) : V === "Escape" && (T(!1), re());
|
|
1802
1802
|
};
|
|
1803
|
-
|
|
1803
|
+
X(() => {
|
|
1804
1804
|
ne && clearTimeout(ne);
|
|
1805
|
-
const
|
|
1806
|
-
const
|
|
1807
|
-
l &&
|
|
1805
|
+
const k = setTimeout(() => {
|
|
1806
|
+
const V = f.current.length ? `${f.current.length} results are available, use up and down arrow keys to navigate` : "No results available";
|
|
1807
|
+
l && de(V);
|
|
1808
1808
|
}, 500);
|
|
1809
|
-
|
|
1809
|
+
fe(k);
|
|
1810
1810
|
}, [m]);
|
|
1811
|
-
const
|
|
1811
|
+
const ze = () => {
|
|
1812
1812
|
u(!0);
|
|
1813
|
-
},
|
|
1813
|
+
}, Ve = () => {
|
|
1814
1814
|
u(!1);
|
|
1815
1815
|
};
|
|
1816
|
-
if (
|
|
1817
|
-
const
|
|
1818
|
-
|
|
1816
|
+
if (X(() => {
|
|
1817
|
+
const k = pe.current;
|
|
1818
|
+
return k && (k.addEventListener("focus", ze), k.addEventListener("blur", Ve)), () => {
|
|
1819
|
+
k && (k.removeEventListener("focus", ze), k.removeEventListener("blur", Ve));
|
|
1820
|
+
};
|
|
1821
|
+
}, [ze, Ve]), o) {
|
|
1822
|
+
const k = ft(o);
|
|
1823
|
+
o = tt.convert3HexTo6(o), (k === "dark" || k === "light") && (oe = {
|
|
1819
1824
|
borderBottomColor: o === "#ffffff" ? "#c8c8c8" : a || l ? o : "#333333"
|
|
1820
1825
|
});
|
|
1821
1826
|
}
|
|
1822
|
-
const
|
|
1823
|
-
|
|
1827
|
+
const Et = () => {
|
|
1828
|
+
d(!1);
|
|
1824
1829
|
};
|
|
1825
|
-
return /* @__PURE__ */
|
|
1826
|
-
/* @__PURE__ */
|
|
1827
|
-
/* @__PURE__ */
|
|
1830
|
+
return /* @__PURE__ */ O.jsx("div", { className: ke.multiSelectContainer, children: /* @__PURE__ */ O.jsxs("div", { className: ke.listOptionsWrap, children: [
|
|
1831
|
+
/* @__PURE__ */ O.jsxs("div", { className: `${c} ${ke.selectedValuesWrap}`, ref: p, children: [
|
|
1832
|
+
/* @__PURE__ */ O.jsx(
|
|
1828
1833
|
"div",
|
|
1829
1834
|
{
|
|
1830
1835
|
className: `${ke.selectedValues} ${l ? ke.focused : ""} ${b.length === 0 ? ke.placeholder : ""}`,
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
+
ref: pe,
|
|
1837
|
+
onFocus: ze,
|
|
1838
|
+
onBlur: Ve,
|
|
1839
|
+
onClick: () => T(!l),
|
|
1840
|
+
onKeyPress: (k) => {
|
|
1841
|
+
(k.key === " " || k.code === "Space" || k.code === "Enter") && (k.preventDefault(), T(!l));
|
|
1836
1842
|
},
|
|
1837
1843
|
tabIndex: 0,
|
|
1838
1844
|
"data-testid": "selected-input",
|
|
1839
|
-
style: { ...
|
|
1845
|
+
style: { ...oe, ...i },
|
|
1840
1846
|
"aria-expanded": l,
|
|
1841
1847
|
"aria-haspopup": "listbox",
|
|
1842
1848
|
"aria-multiselectable": "true",
|
|
1843
1849
|
"aria-autocomplete": "list",
|
|
1844
1850
|
role: "combobox",
|
|
1845
|
-
children:
|
|
1851
|
+
children: he
|
|
1846
1852
|
}
|
|
1847
1853
|
),
|
|
1848
|
-
/* @__PURE__ */
|
|
1854
|
+
/* @__PURE__ */ O.jsx(
|
|
1849
1855
|
"span",
|
|
1850
1856
|
{
|
|
1851
1857
|
className: ke.dropDownIcon,
|
|
1852
|
-
onClick: () =>
|
|
1858
|
+
onClick: () => T(!l),
|
|
1853
1859
|
"data-testid": "arrow-button",
|
|
1854
|
-
children: /* @__PURE__ */
|
|
1860
|
+
children: /* @__PURE__ */ O.jsx("svg", { width: "12px", height: "7px", viewBox: "0 0 12 7", version: "1.1", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ O.jsx("g", { stroke: "none", strokeWidth: "1", fill: "none", fillRule: "evenodd", children: /* @__PURE__ */ O.jsx("g", { transform: "translate(-2360.000000, -295.000000)", fill: "#666666", children: /* @__PURE__ */ O.jsx("g", { transform: "translate(2006.000000, 248.000000)", children: /* @__PURE__ */ O.jsx(
|
|
1855
1861
|
"path",
|
|
1856
1862
|
{
|
|
1857
1863
|
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,97 +1867,97 @@ const Tc = ({
|
|
|
1861
1867
|
}
|
|
1862
1868
|
)
|
|
1863
1869
|
] }),
|
|
1864
|
-
/* @__PURE__ */
|
|
1865
|
-
|
|
1866
|
-
/* @__PURE__ */
|
|
1870
|
+
/* @__PURE__ */ O.jsx("div", { id: "announcement", "aria-live": "assertive", role: "alert", className: ke.announcement }),
|
|
1871
|
+
Y ? wn(
|
|
1872
|
+
/* @__PURE__ */ O.jsx(O.Fragment, { children: l && p && /* @__PURE__ */ O.jsx(
|
|
1867
1873
|
"div",
|
|
1868
1874
|
{
|
|
1869
|
-
onClick:
|
|
1875
|
+
onClick: Et,
|
|
1870
1876
|
style: {
|
|
1871
1877
|
position: "fixed",
|
|
1872
1878
|
inset: 0,
|
|
1873
1879
|
backgroundColor: "rgba(255,255,255,0)",
|
|
1874
1880
|
zIndex: 1e3
|
|
1875
1881
|
},
|
|
1876
|
-
children: /* @__PURE__ */
|
|
1882
|
+
children: /* @__PURE__ */ O.jsxs(
|
|
1877
1883
|
"div",
|
|
1878
1884
|
{
|
|
1879
1885
|
className: `${ke.optionsListContainer}`,
|
|
1880
1886
|
ref: g,
|
|
1881
|
-
onClick: (
|
|
1887
|
+
onClick: (k) => k.stopPropagation(),
|
|
1882
1888
|
style: {
|
|
1883
|
-
opacity:
|
|
1889
|
+
opacity: w.left ? 1 : 0,
|
|
1884
1890
|
width: p.current ? p.current.clientWidth : "auto",
|
|
1885
|
-
left:
|
|
1886
|
-
top:
|
|
1891
|
+
left: w.left,
|
|
1892
|
+
top: w.top
|
|
1887
1893
|
},
|
|
1888
1894
|
children: [
|
|
1889
|
-
/* @__PURE__ */
|
|
1890
|
-
e.length >= 6 && /* @__PURE__ */
|
|
1895
|
+
/* @__PURE__ */ O.jsxs("div", { className: ke.optionsListWrap, children: [
|
|
1896
|
+
e.length >= 6 && /* @__PURE__ */ O.jsx("div", { className: ke.searchInputWrap, children: /* @__PURE__ */ O.jsx(
|
|
1891
1897
|
"input",
|
|
1892
1898
|
{
|
|
1893
1899
|
type: "text",
|
|
1894
|
-
ref:
|
|
1900
|
+
ref: E,
|
|
1895
1901
|
placeholder: "Type to filter",
|
|
1896
1902
|
className: ke.searchInput,
|
|
1897
1903
|
value: m,
|
|
1898
|
-
onChange: (
|
|
1904
|
+
onChange: (k) => h(k.target.value),
|
|
1899
1905
|
"data-testid": "search-input",
|
|
1900
|
-
onKeyDown: (
|
|
1901
|
-
|
|
1906
|
+
onKeyDown: (k) => {
|
|
1907
|
+
Ee(k);
|
|
1902
1908
|
}
|
|
1903
1909
|
}
|
|
1904
1910
|
) }),
|
|
1905
|
-
/* @__PURE__ */
|
|
1911
|
+
/* @__PURE__ */ O.jsx("ul", { ref: M, role: "listbox", children: f.current.map((k, V) => (
|
|
1906
1912
|
// eslint-disable-next-line jsx-a11y/role-supports-aria-props
|
|
1907
|
-
/* @__PURE__ */
|
|
1913
|
+
/* @__PURE__ */ O.jsxs(
|
|
1908
1914
|
"li",
|
|
1909
1915
|
{
|
|
1910
|
-
className: `${ke.optionsList} ${
|
|
1911
|
-
onClick: () =>
|
|
1912
|
-
"aria-selected":
|
|
1916
|
+
className: `${ke.optionsList} ${V === S ? ke.focused : ""}`,
|
|
1917
|
+
onClick: () => be(k.value),
|
|
1918
|
+
"aria-selected": V === S,
|
|
1913
1919
|
role: "option",
|
|
1914
1920
|
children: [
|
|
1915
|
-
/* @__PURE__ */
|
|
1921
|
+
/* @__PURE__ */ O.jsx(
|
|
1916
1922
|
io,
|
|
1917
1923
|
{
|
|
1918
1924
|
themeColor: o,
|
|
1919
|
-
checked: b.includes(
|
|
1920
|
-
disabled:
|
|
1925
|
+
checked: b.includes(k.value),
|
|
1926
|
+
disabled: k.disable || r !== void 0 && b.length >= r && !b.includes(k.value)
|
|
1921
1927
|
}
|
|
1922
1928
|
),
|
|
1923
|
-
/* @__PURE__ */
|
|
1929
|
+
/* @__PURE__ */ O.jsx("span", { children: k.label })
|
|
1924
1930
|
]
|
|
1925
1931
|
},
|
|
1926
|
-
|
|
1932
|
+
k.value
|
|
1927
1933
|
)
|
|
1928
1934
|
)) })
|
|
1929
1935
|
] }),
|
|
1930
|
-
/* @__PURE__ */
|
|
1931
|
-
/* @__PURE__ */
|
|
1936
|
+
/* @__PURE__ */ O.jsxs("div", { className: ke.btnContainer, children: [
|
|
1937
|
+
/* @__PURE__ */ O.jsx(
|
|
1932
1938
|
"input",
|
|
1933
1939
|
{
|
|
1934
|
-
ref:
|
|
1935
|
-
onKeyDown: (
|
|
1936
|
-
|
|
1940
|
+
ref: y,
|
|
1941
|
+
onKeyDown: (k) => {
|
|
1942
|
+
Ee(k);
|
|
1937
1943
|
},
|
|
1938
1944
|
className: ke.hiddenButton
|
|
1939
1945
|
}
|
|
1940
1946
|
),
|
|
1941
|
-
/* @__PURE__ */
|
|
1947
|
+
/* @__PURE__ */ O.jsx(
|
|
1942
1948
|
ir,
|
|
1943
1949
|
{
|
|
1944
1950
|
themeColor: o,
|
|
1945
1951
|
variant: "primary",
|
|
1946
1952
|
size: "medium",
|
|
1947
1953
|
onClick: () => {
|
|
1948
|
-
|
|
1954
|
+
d(!1), h(""), re(), n(b);
|
|
1949
1955
|
},
|
|
1950
1956
|
"data-testid": "done-button",
|
|
1951
|
-
onKeyDown: (
|
|
1952
|
-
|
|
1957
|
+
onKeyDown: (k) => {
|
|
1958
|
+
Oe(k);
|
|
1953
1959
|
},
|
|
1954
|
-
ref:
|
|
1960
|
+
ref: _,
|
|
1955
1961
|
children: "Done"
|
|
1956
1962
|
}
|
|
1957
1963
|
)
|
|
@@ -1977,20 +1983,20 @@ const Tc = ({
|
|
|
1977
1983
|
themeColor: o,
|
|
1978
1984
|
className: c = "",
|
|
1979
1985
|
style: i = {},
|
|
1980
|
-
id:
|
|
1986
|
+
id: f = ""
|
|
1981
1987
|
}) => {
|
|
1982
|
-
const [b, v] =
|
|
1988
|
+
const [b, v] = ae(t), m = P({});
|
|
1983
1989
|
let h = {}, l;
|
|
1984
|
-
const
|
|
1985
|
-
const u = e.find((
|
|
1990
|
+
const d = (a) => {
|
|
1991
|
+
const u = e.find((_) => _.value === a);
|
|
1986
1992
|
if (!u || u.disable)
|
|
1987
1993
|
return;
|
|
1988
1994
|
m.current[a]?.click();
|
|
1989
|
-
const
|
|
1990
|
-
(r === void 0 ||
|
|
1995
|
+
const E = b.includes(a) ? b.filter((_) => _ !== a) : [...b, a];
|
|
1996
|
+
(r === void 0 || E.length <= r) && (v(E), n(E));
|
|
1991
1997
|
};
|
|
1992
1998
|
if (o) {
|
|
1993
|
-
l =
|
|
1999
|
+
l = ft(o), o = tt.convert3HexTo6(o);
|
|
1994
2000
|
const a = o === "#ffffff" ? "#333333" : o;
|
|
1995
2001
|
(l === "dark" || l === "light") && (h = {
|
|
1996
2002
|
outlineColor: a,
|
|
@@ -1998,18 +2004,18 @@ const Tc = ({
|
|
|
1998
2004
|
color: o === "#ffffff" || l === "light" ? "#333333" : o
|
|
1999
2005
|
});
|
|
2000
2006
|
}
|
|
2001
|
-
return /* @__PURE__ */
|
|
2007
|
+
return /* @__PURE__ */ O.jsx("div", { className: Bt.multiSelectContainer, role: "group", children: /* @__PURE__ */ O.jsx("ul", { className: Bt.quickOptionsWrap, id: f, children: e.map((a) => /* @__PURE__ */ O.jsx(
|
|
2002
2008
|
"li",
|
|
2003
2009
|
{
|
|
2004
2010
|
style: { ...h, ...i },
|
|
2005
2011
|
className: `${c} ${a.disable || r !== void 0 && b.length >= r && !b.includes(a.value) ? Bt.disabled : ""} ${b.includes(a.value) ? Bt.selected : ""}`,
|
|
2006
2012
|
tabIndex: a.disable ? -1 : 0,
|
|
2007
|
-
onClick: () =>
|
|
2013
|
+
onClick: () => d(a.value),
|
|
2008
2014
|
onKeyPress: (u) => {
|
|
2009
|
-
(u.key === " " || u.code === "Space") && (u.preventDefault(),
|
|
2015
|
+
(u.key === " " || u.code === "Space") && (u.preventDefault(), d(a.value));
|
|
2010
2016
|
},
|
|
2011
2017
|
"data-testid": "option-box",
|
|
2012
|
-
children: /* @__PURE__ */
|
|
2018
|
+
children: /* @__PURE__ */ O.jsx(
|
|
2013
2019
|
ar,
|
|
2014
2020
|
{
|
|
2015
2021
|
id: a.value,
|
|
@@ -2021,7 +2027,7 @@ const Tc = ({
|
|
|
2021
2027
|
},
|
|
2022
2028
|
checked: b.includes(a.value),
|
|
2023
2029
|
disabled: a.disable || r !== void 0 && b.length >= r && !b.includes(a.value),
|
|
2024
|
-
children: /* @__PURE__ */
|
|
2030
|
+
children: /* @__PURE__ */ O.jsx(
|
|
2025
2031
|
"span",
|
|
2026
2032
|
{
|
|
2027
2033
|
style: {
|
|
@@ -2035,7 +2041,7 @@ const Tc = ({
|
|
|
2035
2041
|
},
|
|
2036
2042
|
a.value
|
|
2037
2043
|
)) }) });
|
|
2038
|
-
}, nl = "_singleSelectWrapper_j8hf5_1", rl = "_quickOption_j8hf5_4", ol = "_selected_j8hf5_10", il = "_triangle_j8hf5_16", al = "_loader_j8hf5_19", ll = "_checkmarkWrap_j8hf5_22", sl = "_checkmark_j8hf5_22", cl = "_fill_j8hf5_1", ul = "_scale_j8hf5_1", dl = "_checkmarkCheck_j8hf5_29", fl = "_stroke_j8hf5_1", pl = "_disabled_j8hf5_34",
|
|
2044
|
+
}, nl = "_singleSelectWrapper_j8hf5_1", rl = "_quickOption_j8hf5_4", ol = "_selected_j8hf5_10", il = "_triangle_j8hf5_16", al = "_loader_j8hf5_19", ll = "_checkmarkWrap_j8hf5_22", sl = "_checkmark_j8hf5_22", cl = "_fill_j8hf5_1", ul = "_scale_j8hf5_1", dl = "_checkmarkCheck_j8hf5_29", fl = "_stroke_j8hf5_1", pl = "_disabled_j8hf5_34", Xe = {
|
|
2039
2045
|
singleSelectWrapper: nl,
|
|
2040
2046
|
quickOption: rl,
|
|
2041
2047
|
selected: ol,
|
|
@@ -2057,11 +2063,11 @@ const Tc = ({
|
|
|
2057
2063
|
className: o = "",
|
|
2058
2064
|
style: c = {},
|
|
2059
2065
|
showLoader: i = !1,
|
|
2060
|
-
id:
|
|
2066
|
+
id: f = ""
|
|
2061
2067
|
}) => {
|
|
2062
|
-
const [b, v] =
|
|
2068
|
+
const [b, v] = ae(n);
|
|
2063
2069
|
let m = {}, h = {}, l = "#ffffff";
|
|
2064
|
-
const
|
|
2070
|
+
const d = (a) => {
|
|
2065
2071
|
if (b?.value === a?.value) {
|
|
2066
2072
|
v(void 0), t(void 0);
|
|
2067
2073
|
return;
|
|
@@ -2069,8 +2075,8 @@ const Tc = ({
|
|
|
2069
2075
|
t(a), v(a);
|
|
2070
2076
|
};
|
|
2071
2077
|
if (r) {
|
|
2072
|
-
const a =
|
|
2073
|
-
r =
|
|
2078
|
+
const a = ft(r);
|
|
2079
|
+
r = tt.convert3HexTo6(r);
|
|
2074
2080
|
const u = r === "#ffffff" ? "#333333" : r;
|
|
2075
2081
|
(a === "dark" || a === "light") && (l = r === "#ffffff" || a === "dark" ? "#ffffff" : "#333333", m = {
|
|
2076
2082
|
outlineColor: u,
|
|
@@ -2081,36 +2087,36 @@ const Tc = ({
|
|
|
2081
2087
|
borderTopColor: u
|
|
2082
2088
|
});
|
|
2083
2089
|
}
|
|
2084
|
-
return /* @__PURE__ */
|
|
2090
|
+
return /* @__PURE__ */ O.jsx("div", { className: Xe.singleSelectWrapper, children: /* @__PURE__ */ O.jsx("div", { className: Xe.quickOption, children: /* @__PURE__ */ O.jsx("ul", { className: Xe.quickOption, role: "radiogroup", id: f, children: e.map((a) => /* @__PURE__ */ O.jsxs(
|
|
2085
2091
|
"li",
|
|
2086
2092
|
{
|
|
2087
2093
|
tabIndex: a.disable ? -1 : 0,
|
|
2088
|
-
className: `${o} ${b?.value === a.value ?
|
|
2094
|
+
className: `${o} ${b?.value === a.value ? Xe.selected : ""} ${a.disable ? Xe.disabled : ""}`,
|
|
2089
2095
|
style: { ...m, ...c },
|
|
2090
|
-
onClick: () =>
|
|
2096
|
+
onClick: () => d(a),
|
|
2091
2097
|
onKeyPress: (u) => {
|
|
2092
|
-
(u.key === " " || u.code === "Space") && (u.preventDefault(),
|
|
2098
|
+
(u.key === " " || u.code === "Space") && (u.preventDefault(), d(a));
|
|
2093
2099
|
},
|
|
2094
2100
|
"data-testid": "checkbox-input",
|
|
2095
2101
|
role: "radio",
|
|
2096
2102
|
"aria-checked": b?.value === a.value,
|
|
2097
2103
|
children: [
|
|
2098
2104
|
a.label,
|
|
2099
|
-
b?.value === a.value && !a.disable && /* @__PURE__ */
|
|
2100
|
-
i && /* @__PURE__ */
|
|
2101
|
-
!i && /* @__PURE__ */
|
|
2105
|
+
b?.value === a.value && !a.disable && /* @__PURE__ */ O.jsxs("div", { className: Xe.triangle, style: { ...h }, children: [
|
|
2106
|
+
i && /* @__PURE__ */ O.jsx("div", { className: Xe.loader, style: { borderRightColor: r ?? "#006bb1" } }),
|
|
2107
|
+
!i && /* @__PURE__ */ O.jsx("div", { className: Xe.checkmarkWrap, children: /* @__PURE__ */ O.jsx(
|
|
2102
2108
|
"svg",
|
|
2103
2109
|
{
|
|
2104
|
-
className:
|
|
2110
|
+
className: Xe.checkmark,
|
|
2105
2111
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2106
2112
|
width: "11",
|
|
2107
2113
|
height: "9",
|
|
2108
2114
|
viewBox: "0 0 11 9",
|
|
2109
2115
|
fill: "none",
|
|
2110
|
-
children: /* @__PURE__ */
|
|
2116
|
+
children: /* @__PURE__ */ O.jsx(
|
|
2111
2117
|
"path",
|
|
2112
2118
|
{
|
|
2113
|
-
className:
|
|
2119
|
+
className: Xe.checkmarkCheck,
|
|
2114
2120
|
stroke: l,
|
|
2115
2121
|
d: "M2.1 4.34286L4.12857 6.40001L8.9 1.60001",
|
|
2116
2122
|
strokeWidth: "2"
|
|
@@ -2125,10 +2131,10 @@ const Tc = ({
|
|
|
2125
2131
|
)) }) }) });
|
|
2126
2132
|
}, bl = "_scrollbarContainer_40vsr_1", vl = {
|
|
2127
2133
|
scrollbarContainer: bl
|
|
2128
|
-
}, ml =
|
|
2134
|
+
}, ml = ut(
|
|
2129
2135
|
({ children: e, className: t = "", style: n = {}, ...r }, o) => {
|
|
2130
2136
|
const c = [vl.scrollbarContainer, t].filter(Boolean).join(" ");
|
|
2131
|
-
return /* @__PURE__ */
|
|
2137
|
+
return /* @__PURE__ */ O.jsx(O.Fragment, { children: /* @__PURE__ */ O.jsx("div", { ref: o, style: { ...n }, className: c, ...r, children: e }) });
|
|
2132
2138
|
}
|
|
2133
2139
|
);
|
|
2134
2140
|
ml.displayName = "Scrollbar";
|
|
@@ -2162,16 +2168,16 @@ let wl = class {
|
|
|
2162
2168
|
return this.handoffState === "complete";
|
|
2163
2169
|
}
|
|
2164
2170
|
}, mt = new wl(), we = (e, t) => {
|
|
2165
|
-
mt.isServer ?
|
|
2171
|
+
mt.isServer ? X(e, t) : No(e, t);
|
|
2166
2172
|
};
|
|
2167
|
-
function
|
|
2168
|
-
let t =
|
|
2173
|
+
function Ge(e) {
|
|
2174
|
+
let t = P(e);
|
|
2169
2175
|
return we(() => {
|
|
2170
2176
|
t.current = e;
|
|
2171
2177
|
}, [e]), t;
|
|
2172
2178
|
}
|
|
2173
|
-
function
|
|
2174
|
-
let [n, r] =
|
|
2179
|
+
function Nt(e, t) {
|
|
2180
|
+
let [n, r] = ae(e), o = Ge(e);
|
|
2175
2181
|
return we(() => r(o.current), [o, r, ...t]), n;
|
|
2176
2182
|
}
|
|
2177
2183
|
function xl(e) {
|
|
@@ -2179,7 +2185,7 @@ function xl(e) {
|
|
|
2179
2185
|
throw t;
|
|
2180
2186
|
}));
|
|
2181
2187
|
}
|
|
2182
|
-
function
|
|
2188
|
+
function et() {
|
|
2183
2189
|
let e = [], t = { addEventListener(n, r, o, c) {
|
|
2184
2190
|
return n.addEventListener(r, o, c), t.add(() => n.removeEventListener(r, o, c));
|
|
2185
2191
|
}, requestAnimationFrame(...n) {
|
|
@@ -2203,7 +2209,7 @@ function Xe() {
|
|
|
2203
2209
|
Object.assign(n.style, { [r]: c });
|
|
2204
2210
|
});
|
|
2205
2211
|
}, group(n) {
|
|
2206
|
-
let r =
|
|
2212
|
+
let r = et();
|
|
2207
2213
|
return n(r), this.add(() => r.dispose());
|
|
2208
2214
|
}, add(n) {
|
|
2209
2215
|
return e.push(n), () => {
|
|
@@ -2219,12 +2225,12 @@ function Xe() {
|
|
|
2219
2225
|
return t;
|
|
2220
2226
|
}
|
|
2221
2227
|
function it() {
|
|
2222
|
-
let [e] =
|
|
2223
|
-
return
|
|
2228
|
+
let [e] = ae(et);
|
|
2229
|
+
return X(() => () => e.dispose(), [e]), e;
|
|
2224
2230
|
}
|
|
2225
|
-
let
|
|
2226
|
-
let t =
|
|
2227
|
-
return
|
|
2231
|
+
let j = function(e) {
|
|
2232
|
+
let t = Ge(e);
|
|
2233
|
+
return ce.useCallback((...n) => t.current(...n), [t]);
|
|
2228
2234
|
};
|
|
2229
2235
|
function yl() {
|
|
2230
2236
|
let e = typeof document > "u";
|
|
@@ -2238,19 +2244,19 @@ function _n() {
|
|
|
2238
2244
|
}, [t]), rt.useEffect(() => mt.handoff(), []), e ? !1 : t;
|
|
2239
2245
|
}
|
|
2240
2246
|
var Kn;
|
|
2241
|
-
let at = (Kn =
|
|
2242
|
-
let e = _n(), [t, n] =
|
|
2247
|
+
let at = (Kn = ce.useId) != null ? Kn : function() {
|
|
2248
|
+
let e = _n(), [t, n] = ce.useState(e ? () => mt.nextId() : null);
|
|
2243
2249
|
return we(() => {
|
|
2244
2250
|
t === null && n(mt.nextId());
|
|
2245
2251
|
}, [t]), t != null ? "" + t : void 0;
|
|
2246
2252
|
};
|
|
2247
|
-
function
|
|
2253
|
+
function me(e, t, ...n) {
|
|
2248
2254
|
if (e in t) {
|
|
2249
2255
|
let o = t[e];
|
|
2250
2256
|
return typeof o == "function" ? o(...n) : o;
|
|
2251
2257
|
}
|
|
2252
2258
|
let r = new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((o) => `"${o}"`).join(", ")}.`);
|
|
2253
|
-
throw Error.captureStackTrace && Error.captureStackTrace(r,
|
|
2259
|
+
throw Error.captureStackTrace && Error.captureStackTrace(r, me), r;
|
|
2254
2260
|
}
|
|
2255
2261
|
function Xt(e) {
|
|
2256
2262
|
return mt.isServer ? null : e instanceof Node ? e.ownerDocument : e != null && e.hasOwnProperty("current") && e.current instanceof Node ? e.current.ownerDocument : document;
|
|
@@ -2259,7 +2265,7 @@ let Gn = ["[contentEditable=true]", "[tabindex]", "a[href]", "area[href]", "butt
|
|
|
2259
2265
|
var Ol = ((e) => (e[e.First = 1] = "First", e[e.Previous = 2] = "Previous", e[e.Next = 4] = "Next", e[e.Last = 8] = "Last", e[e.WrapAround = 16] = "WrapAround", e[e.NoScroll = 32] = "NoScroll", e))(Ol || {}), _l = ((e) => (e[e.Error = 0] = "Error", e[e.Overflow = 1] = "Overflow", e[e.Success = 2] = "Success", e[e.Underflow = 3] = "Underflow", e))(_l || {}), kl = ((e) => (e[e.Previous = -1] = "Previous", e[e.Next = 1] = "Next", e))(kl || {}), kn = ((e) => (e[e.Strict = 0] = "Strict", e[e.Loose = 1] = "Loose", e))(kn || {});
|
|
2260
2266
|
function ao(e, t = 0) {
|
|
2261
2267
|
var n;
|
|
2262
|
-
return e === ((n = Xt(e)) == null ? void 0 : n.body) ? !1 :
|
|
2268
|
+
return e === ((n = Xt(e)) == null ? void 0 : n.body) ? !1 : me(t, { 0() {
|
|
2263
2269
|
return e.matches(Gn);
|
|
2264
2270
|
}, 1() {
|
|
2265
2271
|
let r = e;
|
|
@@ -2287,8 +2293,8 @@ function lo(e, t = (n) => n) {
|
|
|
2287
2293
|
});
|
|
2288
2294
|
}
|
|
2289
2295
|
function Ut(e, t, n) {
|
|
2290
|
-
let r =
|
|
2291
|
-
|
|
2296
|
+
let r = Ge(t);
|
|
2297
|
+
X(() => {
|
|
2292
2298
|
function o(c) {
|
|
2293
2299
|
r.current(c);
|
|
2294
2300
|
}
|
|
@@ -2296,8 +2302,8 @@ function Ut(e, t, n) {
|
|
|
2296
2302
|
}, [e, n]);
|
|
2297
2303
|
}
|
|
2298
2304
|
function El(e, t, n) {
|
|
2299
|
-
let r =
|
|
2300
|
-
|
|
2305
|
+
let r = Ge(t);
|
|
2306
|
+
X(() => {
|
|
2301
2307
|
function o(c) {
|
|
2302
2308
|
r.current(c);
|
|
2303
2309
|
}
|
|
@@ -2305,16 +2311,16 @@ function El(e, t, n) {
|
|
|
2305
2311
|
}, [e, n]);
|
|
2306
2312
|
}
|
|
2307
2313
|
function so(e, t, n = !0) {
|
|
2308
|
-
let r =
|
|
2309
|
-
|
|
2314
|
+
let r = P(!1);
|
|
2315
|
+
X(() => {
|
|
2310
2316
|
requestAnimationFrame(() => {
|
|
2311
2317
|
r.current = n;
|
|
2312
2318
|
});
|
|
2313
2319
|
}, [n]);
|
|
2314
|
-
function o(i,
|
|
2320
|
+
function o(i, f) {
|
|
2315
2321
|
if (!r.current || i.defaultPrevented)
|
|
2316
2322
|
return;
|
|
2317
|
-
let b =
|
|
2323
|
+
let b = f(i);
|
|
2318
2324
|
if (b === null || !b.getRootNode().contains(b) || !b.isConnected)
|
|
2319
2325
|
return;
|
|
2320
2326
|
let v = function m(h) {
|
|
@@ -2329,13 +2335,13 @@ function so(e, t, n = !0) {
|
|
|
2329
2335
|
}
|
|
2330
2336
|
return !ao(b, kn.Loose) && b.tabIndex !== -1 && i.preventDefault(), t(i, b);
|
|
2331
2337
|
}
|
|
2332
|
-
let c =
|
|
2338
|
+
let c = P(null);
|
|
2333
2339
|
Ut("pointerdown", (i) => {
|
|
2334
|
-
var
|
|
2335
|
-
r.current && (c.current = ((b = (
|
|
2340
|
+
var f, b;
|
|
2341
|
+
r.current && (c.current = ((b = (f = i.composedPath) == null ? void 0 : f.call(i)) == null ? void 0 : b[0]) || i.target);
|
|
2336
2342
|
}, !0), Ut("mousedown", (i) => {
|
|
2337
|
-
var
|
|
2338
|
-
r.current && (c.current = ((b = (
|
|
2343
|
+
var f, b;
|
|
2344
|
+
r.current && (c.current = ((b = (f = i.composedPath) == null ? void 0 : f.call(i)) == null ? void 0 : b[0]) || i.target);
|
|
2339
2345
|
}, !0), Ut("click", (i) => {
|
|
2340
2346
|
c.current && (o(i, () => c.current), c.current = null);
|
|
2341
2347
|
}, !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 +2355,7 @@ function Jn(e) {
|
|
|
2349
2355
|
return "button";
|
|
2350
2356
|
}
|
|
2351
2357
|
function co(e, t) {
|
|
2352
|
-
let [n, r] =
|
|
2358
|
+
let [n, r] = ae(() => Jn(e));
|
|
2353
2359
|
return we(() => {
|
|
2354
2360
|
r(Jn(e));
|
|
2355
2361
|
}, [e.type, e.as]), we(() => {
|
|
@@ -2358,19 +2364,19 @@ function co(e, t) {
|
|
|
2358
2364
|
}
|
|
2359
2365
|
let Tl = Symbol();
|
|
2360
2366
|
function qe(...e) {
|
|
2361
|
-
let t =
|
|
2362
|
-
|
|
2367
|
+
let t = P(e);
|
|
2368
|
+
X(() => {
|
|
2363
2369
|
t.current = e;
|
|
2364
2370
|
}, [e]);
|
|
2365
|
-
let n =
|
|
2371
|
+
let n = j((r) => {
|
|
2366
2372
|
for (let o of t.current)
|
|
2367
2373
|
o != null && (typeof o == "function" ? o(r) : o.current = r);
|
|
2368
2374
|
});
|
|
2369
2375
|
return e.every((r) => r == null || r?.[Tl]) ? void 0 : n;
|
|
2370
2376
|
}
|
|
2371
2377
|
function Cl({ container: e, accept: t, walk: n, enabled: r = !0 }) {
|
|
2372
|
-
let o =
|
|
2373
|
-
|
|
2378
|
+
let o = P(t), c = P(n);
|
|
2379
|
+
X(() => {
|
|
2374
2380
|
o.current = t, c.current = n;
|
|
2375
2381
|
}, [t, n]), we(() => {
|
|
2376
2382
|
if (!e || !r)
|
|
@@ -2378,7 +2384,7 @@ function Cl({ container: e, accept: t, walk: n, enabled: r = !0 }) {
|
|
|
2378
2384
|
let i = Xt(e);
|
|
2379
2385
|
if (!i)
|
|
2380
2386
|
return;
|
|
2381
|
-
let
|
|
2387
|
+
let f = o.current, b = c.current, v = Object.assign((h) => f(h), { acceptNode: f }), m = i.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, v, !1);
|
|
2382
2388
|
for (; m.nextNode(); )
|
|
2383
2389
|
b(m.currentNode);
|
|
2384
2390
|
}, [e, r, o, c]);
|
|
@@ -2396,13 +2402,13 @@ function uo(e, t) {
|
|
|
2396
2402
|
case 0:
|
|
2397
2403
|
return n.findIndex((i) => !t.resolveDisabled(i));
|
|
2398
2404
|
case 1: {
|
|
2399
|
-
let i = n.slice().reverse().findIndex((
|
|
2405
|
+
let i = n.slice().reverse().findIndex((f, b, v) => o !== -1 && v.length - b - 1 >= o ? !1 : !t.resolveDisabled(f));
|
|
2400
2406
|
return i === -1 ? i : n.length - 1 - i;
|
|
2401
2407
|
}
|
|
2402
2408
|
case 2:
|
|
2403
|
-
return n.findIndex((i,
|
|
2409
|
+
return n.findIndex((i, f) => f <= o ? !1 : !t.resolveDisabled(i));
|
|
2404
2410
|
case 3: {
|
|
2405
|
-
let i = n.slice().reverse().findIndex((
|
|
2411
|
+
let i = n.slice().reverse().findIndex((f) => !t.resolveDisabled(f));
|
|
2406
2412
|
return i === -1 ? i : n.length - 1 - i;
|
|
2407
2413
|
}
|
|
2408
2414
|
case 4:
|
|
@@ -2418,47 +2424,47 @@ function uo(e, t) {
|
|
|
2418
2424
|
function Kt(...e) {
|
|
2419
2425
|
return Array.from(new Set(e.flatMap((t) => typeof t == "string" ? t.split(" ") : []))).filter(Boolean).join(" ");
|
|
2420
2426
|
}
|
|
2421
|
-
var _t = ((e) => (e[e.None = 0] = "None", e[e.RenderStrategy = 1] = "RenderStrategy", e[e.Static = 2] = "Static", e))(_t || {}),
|
|
2422
|
-
function
|
|
2423
|
-
let
|
|
2427
|
+
var _t = ((e) => (e[e.None = 0] = "None", e[e.RenderStrategy = 1] = "RenderStrategy", e[e.Static = 2] = "Static", e))(_t || {}), ct = ((e) => (e[e.Unmount = 0] = "Unmount", e[e.Hidden = 1] = "Hidden", e))(ct || {});
|
|
2428
|
+
function De({ ourProps: e, theirProps: t, slot: n, defaultTag: r, features: o, visible: c = !0, name: i }) {
|
|
2429
|
+
let f = fo(t, e);
|
|
2424
2430
|
if (c)
|
|
2425
|
-
return Ht(
|
|
2431
|
+
return Ht(f, n, r, i);
|
|
2426
2432
|
let b = o ?? 0;
|
|
2427
2433
|
if (b & 2) {
|
|
2428
|
-
let { static: v = !1, ...m } =
|
|
2434
|
+
let { static: v = !1, ...m } = f;
|
|
2429
2435
|
if (v)
|
|
2430
2436
|
return Ht(m, n, r, i);
|
|
2431
2437
|
}
|
|
2432
2438
|
if (b & 1) {
|
|
2433
|
-
let { unmount: v = !0, ...m } =
|
|
2434
|
-
return
|
|
2439
|
+
let { unmount: v = !0, ...m } = f;
|
|
2440
|
+
return me(v ? 0 : 1, { 0() {
|
|
2435
2441
|
return null;
|
|
2436
2442
|
}, 1() {
|
|
2437
2443
|
return Ht({ ...m, hidden: !0, style: { display: "none" } }, n, r, i);
|
|
2438
2444
|
} });
|
|
2439
2445
|
}
|
|
2440
|
-
return Ht(
|
|
2446
|
+
return Ht(f, n, r, i);
|
|
2441
2447
|
}
|
|
2442
2448
|
function Ht(e, t = {}, n, r) {
|
|
2443
|
-
let { as: o = n, children: c, refName: i = "ref", ...
|
|
2444
|
-
"className" in
|
|
2449
|
+
let { as: o = n, children: c, refName: i = "ref", ...f } = sn(e, ["unmount", "static"]), b = e.ref !== void 0 ? { [i]: e.ref } : {}, v = typeof c == "function" ? c(t) : c;
|
|
2450
|
+
"className" in f && f.className && typeof f.className == "function" && (f.className = f.className(t));
|
|
2445
2451
|
let m = {};
|
|
2446
2452
|
if (t) {
|
|
2447
2453
|
let h = !1, l = [];
|
|
2448
|
-
for (let [
|
|
2449
|
-
typeof a == "boolean" && (h = !0), a === !0 && l.push(
|
|
2454
|
+
for (let [d, a] of Object.entries(t))
|
|
2455
|
+
typeof a == "boolean" && (h = !0), a === !0 && l.push(d);
|
|
2450
2456
|
h && (m["data-headlessui-state"] = l.join(" "));
|
|
2451
2457
|
}
|
|
2452
|
-
if (o === ot && Object.keys(Gt(
|
|
2458
|
+
if (o === ot && Object.keys(Gt(f)).length > 0) {
|
|
2453
2459
|
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(
|
|
2460
|
+
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(f).map((a) => ` - ${a}`).join(`
|
|
2455
2461
|
`), "", "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
2462
|
`)].join(`
|
|
2457
2463
|
`));
|
|
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(
|
|
2464
|
+
let h = v.props, l = typeof h?.className == "function" ? (...a) => Kt(h?.className(...a), f.className) : Kt(h?.className, f.className), d = l ? { className: l } : {};
|
|
2465
|
+
return Do(v, Object.assign({}, fo(v.props, Gt(sn(f, ["ref"]))), m, b, Rl(v.ref, b.ref), d));
|
|
2460
2466
|
}
|
|
2461
|
-
return $o(o, Object.assign({}, sn(
|
|
2467
|
+
return $o(o, Object.assign({}, sn(f, ["ref"]), o !== ot && b, o !== ot && m), v);
|
|
2462
2468
|
}
|
|
2463
2469
|
function Rl(...e) {
|
|
2464
2470
|
return { ref: e.every((t) => t == null) ? void 0 : (t) => {
|
|
@@ -2480,17 +2486,17 @@ function fo(...e) {
|
|
|
2480
2486
|
for (let r in n)
|
|
2481
2487
|
Object.assign(t, { [r](o, ...c) {
|
|
2482
2488
|
let i = n[r];
|
|
2483
|
-
for (let
|
|
2489
|
+
for (let f of i) {
|
|
2484
2490
|
if ((o instanceof Event || o?.nativeEvent instanceof Event) && o.defaultPrevented)
|
|
2485
2491
|
return;
|
|
2486
|
-
|
|
2492
|
+
f(o, ...c);
|
|
2487
2493
|
}
|
|
2488
2494
|
} });
|
|
2489
2495
|
return t;
|
|
2490
2496
|
}
|
|
2491
|
-
function
|
|
2497
|
+
function Fe(e) {
|
|
2492
2498
|
var t;
|
|
2493
|
-
return Object.assign(
|
|
2499
|
+
return Object.assign(ut(e), { displayName: (t = e.displayName) != null ? t : e.name });
|
|
2494
2500
|
}
|
|
2495
2501
|
function Gt(e) {
|
|
2496
2502
|
let t = Object.assign({}, e);
|
|
@@ -2537,34 +2543,34 @@ function vo(e, t, n) {
|
|
|
2537
2543
|
else
|
|
2538
2544
|
n instanceof Date ? e.push([t, n.toISOString()]) : typeof n == "boolean" ? e.push([t, n ? "1" : "0"]) : typeof n == "string" ? e.push([t, n]) : typeof n == "number" ? e.push([t, `${n}`]) : n == null ? e.push([t, ""]) : Sn(n, t, e);
|
|
2539
2545
|
}
|
|
2540
|
-
let
|
|
2546
|
+
let Ll = "div";
|
|
2541
2547
|
var En = ((e) => (e[e.None = 1] = "None", e[e.Focusable = 2] = "Focusable", e[e.Hidden = 4] = "Hidden", e))(En || {});
|
|
2542
|
-
function
|
|
2548
|
+
function jl(e, t) {
|
|
2543
2549
|
let { features: n = 1, ...r } = e, o = { ref: t, "aria-hidden": (n & 2) === 2 ? !0 : void 0, style: { position: "fixed", top: 1, left: 1, width: 1, height: 0, padding: 0, margin: -1, overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0", ...(n & 4) === 4 && (n & 2) !== 2 && { display: "none" } } };
|
|
2544
|
-
return
|
|
2550
|
+
return De({ ourProps: o, theirProps: r, slot: {}, defaultTag: Ll, name: "Hidden" });
|
|
2545
2551
|
}
|
|
2546
|
-
let mo =
|
|
2552
|
+
let mo = Fe(jl), Tn = ht(null);
|
|
2547
2553
|
Tn.displayName = "OpenClosedContext";
|
|
2548
2554
|
var Se = ((e) => (e[e.Open = 1] = "Open", e[e.Closed = 2] = "Closed", e[e.Closing = 4] = "Closing", e[e.Opening = 8] = "Opening", e))(Se || {});
|
|
2549
2555
|
function Zt() {
|
|
2550
|
-
return
|
|
2556
|
+
return dt(Tn);
|
|
2551
2557
|
}
|
|
2552
2558
|
function Cn({ value: e, children: t }) {
|
|
2553
|
-
return
|
|
2559
|
+
return ce.createElement(Tn.Provider, { value: e }, t);
|
|
2554
2560
|
}
|
|
2555
2561
|
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
2562
|
function ho(e, t, n) {
|
|
2557
|
-
let [r, o] =
|
|
2558
|
-
return c && !i.current && !
|
|
2563
|
+
let [r, o] = ae(n), c = e !== void 0, i = P(c), f = P(!1), b = P(!1);
|
|
2564
|
+
return c && !i.current && !f.current ? (f.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, j((v) => (c || o(v), t?.(v)))];
|
|
2559
2565
|
}
|
|
2560
2566
|
function Qn(e, t) {
|
|
2561
|
-
let n =
|
|
2562
|
-
|
|
2567
|
+
let n = P([]), r = j(e);
|
|
2568
|
+
X(() => {
|
|
2563
2569
|
let o = [...n.current];
|
|
2564
2570
|
for (let [c, i] of t.entries())
|
|
2565
2571
|
if (n.current[c] !== i) {
|
|
2566
|
-
let
|
|
2567
|
-
return n.current = t,
|
|
2572
|
+
let f = r(t, o);
|
|
2573
|
+
return n.current = t, f;
|
|
2568
2574
|
}
|
|
2569
2575
|
}, [r, ...t]);
|
|
2570
2576
|
}
|
|
@@ -2572,7 +2578,7 @@ function Xn(e) {
|
|
|
2572
2578
|
return [e.screenX, e.screenY];
|
|
2573
2579
|
}
|
|
2574
2580
|
function go() {
|
|
2575
|
-
let e =
|
|
2581
|
+
let e = P([-1, -1]);
|
|
2576
2582
|
return { wasMoved(t) {
|
|
2577
2583
|
let n = Xn(t);
|
|
2578
2584
|
return e.current[0] === n[0] && e.current[1] === n[1] ? !1 : (e.current = n, !0);
|
|
@@ -2619,11 +2625,11 @@ let Bl = { 1(e) {
|
|
|
2619
2625
|
let b = i.options.findIndex((v) => !v.dataRef.current.disabled);
|
|
2620
2626
|
b !== -1 && (i.activeOptionIndex = b);
|
|
2621
2627
|
}
|
|
2622
|
-
let
|
|
2623
|
-
return { ...e, ...i, activeOptionIndex:
|
|
2628
|
+
let f = uo(t, { resolveItems: () => i.options, resolveActiveIndex: () => i.activeOptionIndex, resolveId: (b) => b.id, resolveDisabled: (b) => b.dataRef.current.disabled });
|
|
2629
|
+
return { ...e, ...i, activeOptionIndex: f, activationTrigger: (c = t.trigger) != null ? c : 1 };
|
|
2624
2630
|
}, 3: (e, t) => {
|
|
2625
2631
|
var n, r;
|
|
2626
|
-
let o = { id: t.id, dataRef: t.dataRef }, c = cn(e, (
|
|
2632
|
+
let o = { id: t.id, dataRef: t.dataRef }, c = cn(e, (f) => [...f, o]);
|
|
2627
2633
|
e.activeOptionIndex === null && (n = e.dataRef.current) != null && n.isSelected(t.dataRef.current.value) && (c.activeOptionIndex = c.options.indexOf(o));
|
|
2628
2634
|
let i = { ...e, ...c, activationTrigger: 1 };
|
|
2629
2635
|
return (r = e.dataRef.current) != null && r.__demoMode && e.dataRef.current.value === void 0 && (i.activeOptionIndex = 0), i;
|
|
@@ -2635,18 +2641,18 @@ let Bl = { 1(e) {
|
|
|
2635
2641
|
return { ...e, ...n, activationTrigger: 1 };
|
|
2636
2642
|
}, 5: (e, t) => ({ ...e, labelId: t.id }) }, In = ht(null);
|
|
2637
2643
|
In.displayName = "ComboboxActionsContext";
|
|
2638
|
-
function
|
|
2639
|
-
let t =
|
|
2644
|
+
function At(e) {
|
|
2645
|
+
let t = dt(In);
|
|
2640
2646
|
if (t === null) {
|
|
2641
2647
|
let n = new Error(`<${e} /> is missing a parent <Combobox /> component.`);
|
|
2642
|
-
throw Error.captureStackTrace && Error.captureStackTrace(n,
|
|
2648
|
+
throw Error.captureStackTrace && Error.captureStackTrace(n, At), n;
|
|
2643
2649
|
}
|
|
2644
2650
|
return t;
|
|
2645
2651
|
}
|
|
2646
2652
|
let Rn = ht(null);
|
|
2647
2653
|
Rn.displayName = "ComboboxDataContext";
|
|
2648
2654
|
function St(e) {
|
|
2649
|
-
let t =
|
|
2655
|
+
let t = dt(Rn);
|
|
2650
2656
|
if (t === null) {
|
|
2651
2657
|
let n = new Error(`<${e} /> is missing a parent <Combobox /> component.`);
|
|
2652
2658
|
throw Error.captureStackTrace && Error.captureStackTrace(n, St), n;
|
|
@@ -2654,152 +2660,152 @@ function St(e) {
|
|
|
2654
2660
|
return t;
|
|
2655
2661
|
}
|
|
2656
2662
|
function Ul(e, t) {
|
|
2657
|
-
return
|
|
2663
|
+
return me(t.type, Bl, e, t);
|
|
2658
2664
|
}
|
|
2659
2665
|
let Hl = ot;
|
|
2660
2666
|
function ql(e, t) {
|
|
2661
|
-
let { value: n, defaultValue: r, onChange: o, form: c, name: i, by:
|
|
2662
|
-
let
|
|
2663
|
-
return T?.[
|
|
2664
|
-
} :
|
|
2667
|
+
let { value: n, defaultValue: r, onChange: o, form: c, name: i, by: f = (T, L) => T === L, disabled: b = !1, __demoMode: v = !1, nullable: m = !1, multiple: h = !1, ...l } = e, [d = 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 = P(!1), E = P({ static: !1, hold: !1 }), y = P(null), _ = P(null), M = P(null), S = P(null), U = j(typeof f == "string" ? (T, L) => {
|
|
2668
|
+
let $ = f;
|
|
2669
|
+
return T?.[$] === L?.[$];
|
|
2670
|
+
} : f), W = yt((T) => me(I.mode, { 1: () => d.some((L) => U(L, T)), 0: () => U(d, T) }), [d]), I = _e(() => ({ ...u, optionsPropsRef: E, labelRef: y, inputRef: _, buttonRef: M, optionsRef: S, value: d, defaultValue: r, disabled: b, mode: h ? 1 : 0, get activeOptionIndex() {
|
|
2665
2671
|
if (g.current && u.activeOptionIndex === null && u.options.length > 0) {
|
|
2666
|
-
let T = u.options.findIndex((
|
|
2672
|
+
let T = u.options.findIndex((L) => !L.dataRef.current.disabled);
|
|
2667
2673
|
if (T !== -1)
|
|
2668
2674
|
return T;
|
|
2669
2675
|
}
|
|
2670
2676
|
return u.activeOptionIndex;
|
|
2671
|
-
}, compare:
|
|
2672
|
-
|
|
2673
|
-
let T =
|
|
2674
|
-
|
|
2677
|
+
}, compare: U, isSelected: W, nullable: m, __demoMode: v }), [d, r, b, h, m, v, u]), Y = P(I.activeOptionIndex !== null ? I.options[I.activeOptionIndex] : null);
|
|
2678
|
+
X(() => {
|
|
2679
|
+
let T = I.activeOptionIndex !== null ? I.options[I.activeOptionIndex] : null;
|
|
2680
|
+
Y.current !== T && (Y.current = T);
|
|
2675
2681
|
}), we(() => {
|
|
2676
|
-
u.dataRef.current =
|
|
2677
|
-
}, [
|
|
2678
|
-
let
|
|
2679
|
-
let
|
|
2680
|
-
|
|
2681
|
-
}),
|
|
2682
|
-
if (
|
|
2683
|
-
let { dataRef: T, id:
|
|
2684
|
-
|
|
2685
|
-
}
|
|
2686
|
-
}),
|
|
2682
|
+
u.dataRef.current = I;
|
|
2683
|
+
}, [I]), so([I.buttonRef, I.inputRef, I.optionsRef], () => Z.closeCombobox(), I.comboboxState === 0);
|
|
2684
|
+
let se = _e(() => ({ open: I.comboboxState === 0, disabled: b, activeIndex: I.activeOptionIndex, activeOption: I.activeOptionIndex === null ? null : I.options[I.activeOptionIndex].dataRef.current.value, value: d }), [I, b, d]), oe = j((T) => {
|
|
2685
|
+
let L = I.options.find(($) => $.id === T);
|
|
2686
|
+
L && re(L.dataRef.current.value);
|
|
2687
|
+
}), w = j(() => {
|
|
2688
|
+
if (I.activeOptionIndex !== null) {
|
|
2689
|
+
let { dataRef: T, id: L } = I.options[I.activeOptionIndex];
|
|
2690
|
+
re(T.current.value), Z.goToOption(te.Specific, L);
|
|
2691
|
+
}
|
|
2692
|
+
}), q = j(() => {
|
|
2687
2693
|
p({ type: 0 }), g.current = !0;
|
|
2688
|
-
}), ne =
|
|
2694
|
+
}), ne = j(() => {
|
|
2689
2695
|
p({ type: 1 }), g.current = !1;
|
|
2690
|
-
}),
|
|
2691
|
-
var
|
|
2692
|
-
((
|
|
2693
|
-
})),
|
|
2696
|
+
}), fe = j((T, L, $) => (g.current = !1, T === te.Specific ? p({ type: 2, focus: te.Specific, id: L, trigger: $ }) : p({ type: 2, focus: T, trigger: $ }))), B = j((T, L) => (p({ type: 3, id: T, dataRef: L }), () => {
|
|
2697
|
+
var $;
|
|
2698
|
+
(($ = Y.current) == null ? void 0 : $.id) === T && (g.current = !0), p({ type: 4, id: T });
|
|
2699
|
+
})), pe = j((T) => (p({ type: 5, id: T }), () => p({ type: 5, id: null }))), re = j((T) => me(I.mode, { 0() {
|
|
2694
2700
|
return a?.(T);
|
|
2695
2701
|
}, 1() {
|
|
2696
|
-
let
|
|
2697
|
-
return
|
|
2698
|
-
} })),
|
|
2699
|
-
return
|
|
2700
|
-
|
|
2702
|
+
let L = I.value.slice(), $ = L.findIndex((Oe) => U(Oe, T));
|
|
2703
|
+
return $ === -1 ? L.push(T) : L.splice($, 1), a?.(L);
|
|
2704
|
+
} })), Z = _e(() => ({ onChange: re, registerOption: B, registerLabel: pe, goToOption: fe, closeCombobox: ne, openCombobox: q, selectActiveOption: w, selectOption: oe }), []), de = t === null ? {} : { ref: t }, he = P(null), be = it();
|
|
2705
|
+
return X(() => {
|
|
2706
|
+
he.current && r !== void 0 && be.addEventListener(he.current, "reset", () => {
|
|
2701
2707
|
a?.(r);
|
|
2702
2708
|
});
|
|
2703
|
-
}, [
|
|
2704
|
-
var
|
|
2705
|
-
|
|
2706
|
-
} : void 0, ...Gt({ key: T, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: c, name: T, value:
|
|
2709
|
+
}, [he, a]), ce.createElement(In.Provider, { value: Z }, ce.createElement(Rn.Provider, { value: I }, ce.createElement(Cn, { value: me(I.comboboxState, { 0: Se.Open, 1: Se.Closed }) }, i != null && d != null && Sn({ [i]: d }).map(([T, L], $) => ce.createElement(mo, { features: En.Hidden, ref: $ === 0 ? (Oe) => {
|
|
2710
|
+
var Ee;
|
|
2711
|
+
he.current = (Ee = Oe?.closest("form")) != null ? Ee : null;
|
|
2712
|
+
} : void 0, ...Gt({ key: T, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: c, name: T, value: L }) })), De({ ourProps: de, theirProps: l, slot: se, defaultTag: Hl, name: "Combobox" }))));
|
|
2707
2713
|
}
|
|
2708
2714
|
let zl = "input";
|
|
2709
2715
|
function Yl(e, t) {
|
|
2710
2716
|
var n, r, o, c;
|
|
2711
|
-
let i = at(), { id:
|
|
2712
|
-
|
|
2713
|
-
}),
|
|
2714
|
-
var
|
|
2715
|
-
return typeof v == "function" && l.value !== void 0 ? (
|
|
2717
|
+
let i = at(), { id: f = `headlessui-combobox-input-${i}`, onChange: b, displayValue: v, type: m = "text", ...h } = e, l = St("Combobox.Input"), d = At("Combobox.Input"), a = qe(l.inputRef, t), u = Dl(l.inputRef), p = P(!1), g = it(), E = j(() => {
|
|
2718
|
+
d.onChange(null), l.optionsRef.current && (l.optionsRef.current.scrollTop = 0), d.goToOption(te.Nothing);
|
|
2719
|
+
}), y = function() {
|
|
2720
|
+
var w;
|
|
2721
|
+
return typeof v == "function" && l.value !== void 0 ? (w = v(l.value)) != null ? w : "" : typeof l.value == "string" ? l.value : "";
|
|
2716
2722
|
}();
|
|
2717
|
-
Qn(([
|
|
2723
|
+
Qn(([w, q], [ne, fe]) => {
|
|
2718
2724
|
if (p.current)
|
|
2719
2725
|
return;
|
|
2720
2726
|
let B = l.inputRef.current;
|
|
2721
|
-
B && ((
|
|
2727
|
+
B && ((fe === 0 && q === 1 || w !== ne) && (B.value = w), requestAnimationFrame(() => {
|
|
2722
2728
|
if (p.current || !B || u?.activeElement !== B)
|
|
2723
2729
|
return;
|
|
2724
|
-
let { selectionStart:
|
|
2725
|
-
Math.abs((
|
|
2730
|
+
let { selectionStart: pe, selectionEnd: re } = B;
|
|
2731
|
+
Math.abs((re ?? 0) - (pe ?? 0)) === 0 && pe === 0 && B.setSelectionRange(B.value.length, B.value.length);
|
|
2726
2732
|
}));
|
|
2727
|
-
}, [
|
|
2728
|
-
if (
|
|
2733
|
+
}, [y, l.comboboxState, u]), Qn(([w], [q]) => {
|
|
2734
|
+
if (w === 0 && q === 1) {
|
|
2729
2735
|
if (p.current)
|
|
2730
2736
|
return;
|
|
2731
2737
|
let ne = l.inputRef.current;
|
|
2732
2738
|
if (!ne)
|
|
2733
2739
|
return;
|
|
2734
|
-
let
|
|
2735
|
-
ne.value = "", ne.value =
|
|
2740
|
+
let fe = ne.value, { selectionStart: B, selectionEnd: pe, selectionDirection: re } = ne;
|
|
2741
|
+
ne.value = "", ne.value = fe, re !== null ? ne.setSelectionRange(B, pe, re) : ne.setSelectionRange(B, pe);
|
|
2736
2742
|
}
|
|
2737
2743
|
}, [l.comboboxState]);
|
|
2738
|
-
let
|
|
2739
|
-
|
|
2740
|
-
}),
|
|
2744
|
+
let _ = P(!1), M = j(() => {
|
|
2745
|
+
_.current = !0;
|
|
2746
|
+
}), S = j(() => {
|
|
2741
2747
|
g.nextFrame(() => {
|
|
2742
|
-
|
|
2748
|
+
_.current = !1;
|
|
2743
2749
|
});
|
|
2744
|
-
}),
|
|
2745
|
-
switch (p.current = !0,
|
|
2750
|
+
}), U = j((w) => {
|
|
2751
|
+
switch (p.current = !0, w.key) {
|
|
2746
2752
|
case ee.Enter:
|
|
2747
|
-
if (p.current = !1, l.comboboxState !== 0 ||
|
|
2753
|
+
if (p.current = !1, l.comboboxState !== 0 || _.current)
|
|
2748
2754
|
return;
|
|
2749
|
-
if (
|
|
2750
|
-
|
|
2755
|
+
if (w.preventDefault(), w.stopPropagation(), l.activeOptionIndex === null) {
|
|
2756
|
+
d.closeCombobox();
|
|
2751
2757
|
return;
|
|
2752
2758
|
}
|
|
2753
|
-
|
|
2759
|
+
d.selectActiveOption(), l.mode === 0 && d.closeCombobox();
|
|
2754
2760
|
break;
|
|
2755
2761
|
case ee.ArrowDown:
|
|
2756
|
-
return p.current = !1,
|
|
2757
|
-
|
|
2762
|
+
return p.current = !1, w.preventDefault(), w.stopPropagation(), me(l.comboboxState, { 0: () => {
|
|
2763
|
+
d.goToOption(te.Next);
|
|
2758
2764
|
}, 1: () => {
|
|
2759
|
-
|
|
2765
|
+
d.openCombobox();
|
|
2760
2766
|
} });
|
|
2761
2767
|
case ee.ArrowUp:
|
|
2762
|
-
return p.current = !1,
|
|
2763
|
-
|
|
2768
|
+
return p.current = !1, w.preventDefault(), w.stopPropagation(), me(l.comboboxState, { 0: () => {
|
|
2769
|
+
d.goToOption(te.Previous);
|
|
2764
2770
|
}, 1: () => {
|
|
2765
|
-
|
|
2766
|
-
l.value ||
|
|
2771
|
+
d.openCombobox(), g.nextFrame(() => {
|
|
2772
|
+
l.value || d.goToOption(te.Last);
|
|
2767
2773
|
});
|
|
2768
2774
|
} });
|
|
2769
2775
|
case ee.Home:
|
|
2770
|
-
if (
|
|
2776
|
+
if (w.shiftKey)
|
|
2771
2777
|
break;
|
|
2772
|
-
return p.current = !1,
|
|
2778
|
+
return p.current = !1, w.preventDefault(), w.stopPropagation(), d.goToOption(te.First);
|
|
2773
2779
|
case ee.PageUp:
|
|
2774
|
-
return p.current = !1,
|
|
2780
|
+
return p.current = !1, w.preventDefault(), w.stopPropagation(), d.goToOption(te.First);
|
|
2775
2781
|
case ee.End:
|
|
2776
|
-
if (
|
|
2782
|
+
if (w.shiftKey)
|
|
2777
2783
|
break;
|
|
2778
|
-
return p.current = !1,
|
|
2784
|
+
return p.current = !1, w.preventDefault(), w.stopPropagation(), d.goToOption(te.Last);
|
|
2779
2785
|
case ee.PageDown:
|
|
2780
|
-
return p.current = !1,
|
|
2786
|
+
return p.current = !1, w.preventDefault(), w.stopPropagation(), d.goToOption(te.Last);
|
|
2781
2787
|
case ee.Escape:
|
|
2782
|
-
return p.current = !1, l.comboboxState !== 0 ? void 0 : (
|
|
2788
|
+
return p.current = !1, l.comboboxState !== 0 ? void 0 : (w.preventDefault(), l.optionsRef.current && !l.optionsPropsRef.current.static && w.stopPropagation(), l.nullable && l.mode === 0 && l.value === null && E(), d.closeCombobox());
|
|
2783
2789
|
case ee.Tab:
|
|
2784
2790
|
if (p.current = !1, l.comboboxState !== 0)
|
|
2785
2791
|
return;
|
|
2786
|
-
l.mode === 0 &&
|
|
2792
|
+
l.mode === 0 && d.selectActiveOption(), d.closeCombobox();
|
|
2787
2793
|
break;
|
|
2788
2794
|
}
|
|
2789
|
-
}),
|
|
2790
|
-
b?.(
|
|
2791
|
-
}),
|
|
2795
|
+
}), W = j((w) => {
|
|
2796
|
+
b?.(w), l.nullable && l.mode === 0 && w.target.value === "" && E(), d.openCombobox();
|
|
2797
|
+
}), I = j(() => {
|
|
2792
2798
|
p.current = !1;
|
|
2793
|
-
}),
|
|
2799
|
+
}), Y = Nt(() => {
|
|
2794
2800
|
if (l.labelId)
|
|
2795
2801
|
return [l.labelId].join(" ");
|
|
2796
|
-
}, [l.labelId]),
|
|
2797
|
-
return
|
|
2802
|
+
}, [l.labelId]), se = _e(() => ({ open: l.comboboxState === 0, disabled: l.disabled }), [l]), oe = { ref: a, id: f, 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": Y, "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: M, onCompositionEnd: S, onKeyDown: U, onChange: W, onBlur: I };
|
|
2803
|
+
return De({ ourProps: oe, theirProps: h, slot: se, defaultTag: zl, name: "Combobox.Input" });
|
|
2798
2804
|
}
|
|
2799
2805
|
let Kl = "button";
|
|
2800
2806
|
function Gl(e, t) {
|
|
2801
2807
|
var n;
|
|
2802
|
-
let r = St("Combobox.Button"), o =
|
|
2808
|
+
let r = St("Combobox.Button"), o = At("Combobox.Button"), c = qe(r.buttonRef, t), i = at(), { id: f = `headlessui-combobox-button-${i}`, ...b } = e, v = it(), m = j((u) => {
|
|
2803
2809
|
switch (u.key) {
|
|
2804
2810
|
case ee.ArrowDown:
|
|
2805
2811
|
return u.preventDefault(), u.stopPropagation(), r.comboboxState === 1 && o.openCombobox(), v.nextFrame(() => {
|
|
@@ -2821,91 +2827,91 @@ function Gl(e, t) {
|
|
|
2821
2827
|
default:
|
|
2822
2828
|
return;
|
|
2823
2829
|
}
|
|
2824
|
-
}), h =
|
|
2830
|
+
}), h = j((u) => {
|
|
2825
2831
|
if (po(u.currentTarget))
|
|
2826
2832
|
return u.preventDefault();
|
|
2827
2833
|
r.comboboxState === 0 ? o.closeCombobox() : (u.preventDefault(), o.openCombobox()), v.nextFrame(() => {
|
|
2828
2834
|
var p;
|
|
2829
2835
|
return (p = r.inputRef.current) == null ? void 0 : p.focus({ preventScroll: !0 });
|
|
2830
2836
|
});
|
|
2831
|
-
}), l =
|
|
2837
|
+
}), l = Nt(() => {
|
|
2832
2838
|
if (r.labelId)
|
|
2833
|
-
return [r.labelId,
|
|
2834
|
-
}, [r.labelId,
|
|
2835
|
-
return
|
|
2839
|
+
return [r.labelId, f].join(" ");
|
|
2840
|
+
}, [r.labelId, f]), d = _e(() => ({ open: r.comboboxState === 0, disabled: r.disabled, value: r.value }), [r]), a = { ref: c, id: f, 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 };
|
|
2841
|
+
return De({ ourProps: a, theirProps: b, slot: d, defaultTag: Kl, name: "Combobox.Button" });
|
|
2836
2842
|
}
|
|
2837
2843
|
let Jl = "label";
|
|
2838
2844
|
function Ql(e, t) {
|
|
2839
|
-
let n = at(), { id: r = `headlessui-combobox-label-${n}`, ...o } = e, c = St("Combobox.Label"), i =
|
|
2845
|
+
let n = at(), { id: r = `headlessui-combobox-label-${n}`, ...o } = e, c = St("Combobox.Label"), i = At("Combobox.Label"), f = qe(c.labelRef, t);
|
|
2840
2846
|
we(() => i.registerLabel(r), [r]);
|
|
2841
|
-
let b =
|
|
2847
|
+
let b = j(() => {
|
|
2842
2848
|
var m;
|
|
2843
2849
|
return (m = c.inputRef.current) == null ? void 0 : m.focus({ preventScroll: !0 });
|
|
2844
2850
|
}), v = _e(() => ({ open: c.comboboxState === 0, disabled: c.disabled }), [c]);
|
|
2845
|
-
return
|
|
2851
|
+
return De({ ourProps: { ref: f, id: r, onClick: b }, theirProps: o, slot: v, defaultTag: Jl, name: "Combobox.Label" });
|
|
2846
2852
|
}
|
|
2847
2853
|
let Xl = "ul", Zl = _t.RenderStrategy | _t.Static;
|
|
2848
2854
|
function es(e, t) {
|
|
2849
|
-
let n = at(), { id: r = `headlessui-combobox-options-${n}`, hold: o = !1, ...c } = e, i = St("Combobox.Options"),
|
|
2855
|
+
let n = at(), { id: r = `headlessui-combobox-options-${n}`, hold: o = !1, ...c } = e, i = St("Combobox.Options"), f = qe(i.optionsRef, t), b = Zt(), v = (() => b !== null ? (b & Se.Open) === Se.Open : i.comboboxState === 0)();
|
|
2850
2856
|
we(() => {
|
|
2851
|
-
var
|
|
2852
|
-
i.optionsPropsRef.current.static = (
|
|
2857
|
+
var d;
|
|
2858
|
+
i.optionsPropsRef.current.static = (d = e.static) != null ? d : !1;
|
|
2853
2859
|
}, [i.optionsPropsRef, e.static]), we(() => {
|
|
2854
2860
|
i.optionsPropsRef.current.hold = o;
|
|
2855
|
-
}, [i.optionsPropsRef, o]), Cl({ container: i.optionsRef.current, enabled: i.comboboxState === 0, accept(
|
|
2856
|
-
return
|
|
2857
|
-
}, walk(
|
|
2858
|
-
|
|
2861
|
+
}, [i.optionsPropsRef, o]), Cl({ container: i.optionsRef.current, enabled: i.comboboxState === 0, accept(d) {
|
|
2862
|
+
return d.getAttribute("role") === "option" ? NodeFilter.FILTER_REJECT : d.hasAttribute("role") ? NodeFilter.FILTER_SKIP : NodeFilter.FILTER_ACCEPT;
|
|
2863
|
+
}, walk(d) {
|
|
2864
|
+
d.setAttribute("role", "none");
|
|
2859
2865
|
} });
|
|
2860
|
-
let m =
|
|
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:
|
|
2864
|
-
return
|
|
2866
|
+
let m = Nt(() => {
|
|
2867
|
+
var d, a;
|
|
2868
|
+
return (a = i.labelId) != null ? a : (d = i.buttonRef.current) == null ? void 0 : d.id;
|
|
2869
|
+
}, [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: f };
|
|
2870
|
+
return De({ ourProps: l, theirProps: c, slot: h, defaultTag: Xl, features: Zl, visible: v, name: "Combobox.Options" });
|
|
2865
2871
|
}
|
|
2866
2872
|
let ts = "li";
|
|
2867
2873
|
function ns(e, t) {
|
|
2868
2874
|
var n, r;
|
|
2869
|
-
let o = at(), { id: c = `headlessui-combobox-option-${o}`, disabled: i = !1, value:
|
|
2875
|
+
let o = at(), { id: c = `headlessui-combobox-option-${o}`, disabled: i = !1, value: f, ...b } = e, v = St("Combobox.Option"), m = At("Combobox.Option"), h = v.activeOptionIndex !== null ? v.options[v.activeOptionIndex].id === c : !1, l = v.isSelected(f), d = P(null), a = Ge({ disabled: i, value: f, domRef: d, textValue: (r = (n = d.current) == null ? void 0 : n.textContent) == null ? void 0 : r.toLowerCase() }), u = qe(t, d), p = j(() => m.selectOption(c));
|
|
2870
2876
|
we(() => m.registerOption(c, a), [a, c]);
|
|
2871
|
-
let g =
|
|
2877
|
+
let g = P(!v.__demoMode);
|
|
2872
2878
|
we(() => {
|
|
2873
2879
|
if (!v.__demoMode)
|
|
2874
2880
|
return;
|
|
2875
|
-
let
|
|
2876
|
-
return
|
|
2881
|
+
let I = et();
|
|
2882
|
+
return I.requestAnimationFrame(() => {
|
|
2877
2883
|
g.current = !0;
|
|
2878
|
-
}),
|
|
2884
|
+
}), I.dispose;
|
|
2879
2885
|
}, []), we(() => {
|
|
2880
2886
|
if (v.comboboxState !== 0 || !h || !g.current || v.activationTrigger === 0)
|
|
2881
2887
|
return;
|
|
2882
|
-
let
|
|
2883
|
-
return
|
|
2884
|
-
var
|
|
2885
|
-
(
|
|
2886
|
-
}),
|
|
2887
|
-
}, [
|
|
2888
|
-
let
|
|
2888
|
+
let I = et();
|
|
2889
|
+
return I.requestAnimationFrame(() => {
|
|
2890
|
+
var Y, se;
|
|
2891
|
+
(se = (Y = d.current) == null ? void 0 : Y.scrollIntoView) == null || se.call(Y, { block: "nearest" });
|
|
2892
|
+
}), I.dispose;
|
|
2893
|
+
}, [d, h, v.comboboxState, v.activationTrigger, v.activeOptionIndex]);
|
|
2894
|
+
let E = j((I) => {
|
|
2889
2895
|
if (i)
|
|
2890
|
-
return
|
|
2896
|
+
return I.preventDefault();
|
|
2891
2897
|
p(), v.mode === 0 && m.closeCombobox(), Al() || requestAnimationFrame(() => {
|
|
2892
|
-
var
|
|
2893
|
-
return (
|
|
2898
|
+
var Y;
|
|
2899
|
+
return (Y = v.inputRef.current) == null ? void 0 : Y.focus();
|
|
2894
2900
|
});
|
|
2895
|
-
}),
|
|
2901
|
+
}), y = j(() => {
|
|
2896
2902
|
if (i)
|
|
2897
2903
|
return m.goToOption(te.Nothing);
|
|
2898
2904
|
m.goToOption(te.Specific, c);
|
|
2899
|
-
}),
|
|
2900
|
-
|
|
2901
|
-
}),
|
|
2902
|
-
|
|
2903
|
-
}),
|
|
2904
|
-
return
|
|
2905
|
-
}
|
|
2906
|
-
let rs =
|
|
2905
|
+
}), _ = go(), M = j((I) => _.update(I)), S = j((I) => {
|
|
2906
|
+
_.wasMoved(I) && (i || h || m.goToOption(te.Specific, c, 0));
|
|
2907
|
+
}), U = j((I) => {
|
|
2908
|
+
_.wasMoved(I) && (i || h && (v.optionsPropsRef.current.hold || m.goToOption(te.Nothing)));
|
|
2909
|
+
}), W = _e(() => ({ active: h, selected: l, disabled: i }), [h, l, i]);
|
|
2910
|
+
return De({ ourProps: { id: c, ref: u, role: "option", tabIndex: i === !0 ? void 0 : -1, "aria-disabled": i === !0 ? !0 : void 0, "aria-selected": l, disabled: void 0, onClick: E, onFocus: y, onPointerEnter: M, onMouseEnter: M, onPointerMove: S, onMouseMove: S, onPointerLeave: U, onMouseLeave: U }, theirProps: b, slot: W, defaultTag: ts, name: "Combobox.Option" });
|
|
2911
|
+
}
|
|
2912
|
+
let rs = Fe(ql), os = Fe(Gl), is = Fe(Yl), as = Fe(Ql), ls = Fe(es), ss = Fe(ns), Lt = Object.assign(rs, { Input: is, Button: os, Label: as, Options: ls, Option: ss });
|
|
2907
2913
|
function Pn() {
|
|
2908
|
-
let e =
|
|
2914
|
+
let e = P(!1);
|
|
2909
2915
|
return we(() => (e.current = !0, () => {
|
|
2910
2916
|
e.current = !1;
|
|
2911
2917
|
}), []), e;
|
|
@@ -2917,8 +2923,8 @@ function er(e) {
|
|
|
2917
2923
|
if (!(o instanceof HTMLElement))
|
|
2918
2924
|
return r;
|
|
2919
2925
|
let c = !1;
|
|
2920
|
-
for (let
|
|
2921
|
-
|
|
2926
|
+
for (let f of o.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))
|
|
2927
|
+
f.remove(), c = !0;
|
|
2922
2928
|
let i = c ? (n = o.innerText) != null ? n : "" : r;
|
|
2923
2929
|
return Zn.test(i) && (i = i.replace(Zn, "")), i;
|
|
2924
2930
|
}
|
|
@@ -2942,8 +2948,8 @@ function cs(e) {
|
|
|
2942
2948
|
return er(e).trim();
|
|
2943
2949
|
}
|
|
2944
2950
|
function us(e) {
|
|
2945
|
-
let t =
|
|
2946
|
-
return
|
|
2951
|
+
let t = P(""), n = P("");
|
|
2952
|
+
return j(() => {
|
|
2947
2953
|
let r = e.current;
|
|
2948
2954
|
if (!r)
|
|
2949
2955
|
return "";
|
|
@@ -2976,8 +2982,8 @@ let vs = { 1(e) {
|
|
|
2976
2982
|
if (e.dataRef.current.disabled || e.listboxState === 1)
|
|
2977
2983
|
return e;
|
|
2978
2984
|
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 && ((
|
|
2985
|
+
var f;
|
|
2986
|
+
return !i.dataRef.current.disabled && ((f = i.dataRef.current.textValue) == null ? void 0 : f.startsWith(r));
|
|
2981
2987
|
}), c = o ? e.options.indexOf(o) : -1;
|
|
2982
2988
|
return c === -1 || c === e.activeOptionIndex ? { ...e, searchQuery: r } : { ...e, searchQuery: r, activeOptionIndex: c, activationTrigger: 1 };
|
|
2983
2989
|
}, 4(e) {
|
|
@@ -2991,207 +2997,207 @@ let vs = { 1(e) {
|
|
|
2991
2997
|
return o !== -1 && r.splice(o, 1), r;
|
|
2992
2998
|
});
|
|
2993
2999
|
return { ...e, ...n, activationTrigger: 1 };
|
|
2994
|
-
}, 7: (e, t) => ({ ...e, labelId: t.id }) },
|
|
2995
|
-
|
|
2996
|
-
function
|
|
2997
|
-
let t =
|
|
3000
|
+
}, 7: (e, t) => ({ ...e, labelId: t.id }) }, Ln = ht(null);
|
|
3001
|
+
Ln.displayName = "ListboxActionsContext";
|
|
3002
|
+
function Dt(e) {
|
|
3003
|
+
let t = dt(Ln);
|
|
2998
3004
|
if (t === null) {
|
|
2999
3005
|
let n = new Error(`<${e} /> is missing a parent <Listbox /> component.`);
|
|
3000
|
-
throw Error.captureStackTrace && Error.captureStackTrace(n,
|
|
3006
|
+
throw Error.captureStackTrace && Error.captureStackTrace(n, Dt), n;
|
|
3001
3007
|
}
|
|
3002
3008
|
return t;
|
|
3003
3009
|
}
|
|
3004
|
-
let
|
|
3005
|
-
|
|
3006
|
-
function
|
|
3007
|
-
let t =
|
|
3010
|
+
let jn = ht(null);
|
|
3011
|
+
jn.displayName = "ListboxDataContext";
|
|
3012
|
+
function $t(e) {
|
|
3013
|
+
let t = dt(jn);
|
|
3008
3014
|
if (t === null) {
|
|
3009
3015
|
let n = new Error(`<${e} /> is missing a parent <Listbox /> component.`);
|
|
3010
|
-
throw Error.captureStackTrace && Error.captureStackTrace(n,
|
|
3016
|
+
throw Error.captureStackTrace && Error.captureStackTrace(n, $t), n;
|
|
3011
3017
|
}
|
|
3012
3018
|
return t;
|
|
3013
3019
|
}
|
|
3014
3020
|
function ms(e, t) {
|
|
3015
|
-
return
|
|
3021
|
+
return me(t.type, vs, e, t);
|
|
3016
3022
|
}
|
|
3017
3023
|
let hs = ot;
|
|
3018
3024
|
function gs(e, t) {
|
|
3019
|
-
let { value: n, defaultValue: r, form: o, name: c, onChange: i, by:
|
|
3025
|
+
let { value: n, defaultValue: r, form: o, name: c, onChange: i, by: f = (T, L) => T === L, disabled: b = !1, horizontal: v = !1, multiple: m = !1, ...h } = e;
|
|
3020
3026
|
const l = v ? "horizontal" : "vertical";
|
|
3021
|
-
let
|
|
3022
|
-
let
|
|
3023
|
-
return T?.[
|
|
3024
|
-
} :
|
|
3027
|
+
let d = 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 }), E = P({ static: !1, hold: !1 }), y = P(null), _ = P(null), M = P(null), S = j(typeof f == "string" ? (T, L) => {
|
|
3028
|
+
let $ = f;
|
|
3029
|
+
return T?.[$] === L?.[$];
|
|
3030
|
+
} : f), U = yt((T) => me(W.mode, { 1: () => a.some((L) => S(L, T)), 0: () => S(a, T) }), [a]), W = _e(() => ({ ...p, value: a, disabled: b, mode: m ? 1 : 0, orientation: l, compare: S, isSelected: U, optionsPropsRef: E, labelRef: y, buttonRef: _, optionsRef: M }), [a, b, m, p]);
|
|
3025
3031
|
we(() => {
|
|
3026
|
-
p.dataRef.current =
|
|
3027
|
-
}, [
|
|
3028
|
-
var
|
|
3029
|
-
g({ type: 1 }), ao(
|
|
3030
|
-
},
|
|
3031
|
-
let
|
|
3032
|
-
let
|
|
3033
|
-
|
|
3034
|
-
}),
|
|
3035
|
-
if (
|
|
3036
|
-
let { dataRef: T, id:
|
|
3037
|
-
B(T.current.value), g({ type: 2, focus: te.Specific, id:
|
|
3038
|
-
}
|
|
3039
|
-
}),
|
|
3032
|
+
p.dataRef.current = W;
|
|
3033
|
+
}, [W]), so([W.buttonRef, W.optionsRef], (T, L) => {
|
|
3034
|
+
var $;
|
|
3035
|
+
g({ type: 1 }), ao(L, kn.Loose) || (T.preventDefault(), ($ = W.buttonRef.current) == null || $.focus());
|
|
3036
|
+
}, W.listboxState === 0);
|
|
3037
|
+
let I = _e(() => ({ open: W.listboxState === 0, disabled: b, value: a }), [W, b, a]), Y = j((T) => {
|
|
3038
|
+
let L = W.options.find(($) => $.id === T);
|
|
3039
|
+
L && B(L.dataRef.current.value);
|
|
3040
|
+
}), se = j(() => {
|
|
3041
|
+
if (W.activeOptionIndex !== null) {
|
|
3042
|
+
let { dataRef: T, id: L } = W.options[W.activeOptionIndex];
|
|
3043
|
+
B(T.current.value), g({ type: 2, focus: te.Specific, id: L });
|
|
3044
|
+
}
|
|
3045
|
+
}), oe = j(() => g({ type: 0 })), w = j(() => g({ type: 1 })), q = j((T, L, $) => T === te.Specific ? g({ type: 2, focus: te.Specific, id: L, trigger: $ }) : g({ type: 2, focus: T, trigger: $ })), ne = j((T, L) => (g({ type: 5, id: T, dataRef: L }), () => g({ type: 6, id: T }))), fe = j((T) => (g({ type: 7, id: T }), () => g({ type: 7, id: null }))), B = j((T) => me(W.mode, { 0() {
|
|
3040
3046
|
return u?.(T);
|
|
3041
3047
|
}, 1() {
|
|
3042
|
-
let
|
|
3043
|
-
return
|
|
3044
|
-
} })),
|
|
3045
|
-
return
|
|
3046
|
-
|
|
3048
|
+
let L = W.value.slice(), $ = L.findIndex((Oe) => S(Oe, T));
|
|
3049
|
+
return $ === -1 ? L.push(T) : L.splice($, 1), u?.(L);
|
|
3050
|
+
} })), pe = j((T) => g({ type: 3, value: T })), re = j(() => g({ type: 4 })), Z = _e(() => ({ onChange: B, registerOption: ne, registerLabel: fe, goToOption: q, closeListbox: w, openListbox: oe, selectActiveOption: se, selectOption: Y, search: pe, clearSearch: re }), []), de = { ref: d }, he = P(null), be = it();
|
|
3051
|
+
return X(() => {
|
|
3052
|
+
he.current && r !== void 0 && be.addEventListener(he.current, "reset", () => {
|
|
3047
3053
|
u?.(r);
|
|
3048
3054
|
});
|
|
3049
|
-
}, [
|
|
3050
|
-
var
|
|
3051
|
-
|
|
3052
|
-
} : void 0, ...Gt({ key: T, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: o, name: T, value:
|
|
3055
|
+
}, [he, u]), ce.createElement(Ln.Provider, { value: Z }, ce.createElement(jn.Provider, { value: W }, ce.createElement(Cn, { value: me(W.listboxState, { 0: Se.Open, 1: Se.Closed }) }, c != null && a != null && Sn({ [c]: a }).map(([T, L], $) => ce.createElement(mo, { features: En.Hidden, ref: $ === 0 ? (Oe) => {
|
|
3056
|
+
var Ee;
|
|
3057
|
+
he.current = (Ee = Oe?.closest("form")) != null ? Ee : null;
|
|
3058
|
+
} : void 0, ...Gt({ key: T, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: o, name: T, value: L }) })), De({ ourProps: de, theirProps: h, slot: I, defaultTag: hs, name: "Listbox" }))));
|
|
3053
3059
|
}
|
|
3054
3060
|
let ws = "button";
|
|
3055
3061
|
function xs(e, t) {
|
|
3056
3062
|
var n;
|
|
3057
|
-
let r = at(), { id: o = `headlessui-listbox-button-${r}`, ...c } = e, i =
|
|
3063
|
+
let r = at(), { id: o = `headlessui-listbox-button-${r}`, ...c } = e, i = $t("Listbox.Button"), f = Dt("Listbox.Button"), b = qe(i.buttonRef, t), v = it(), m = j((p) => {
|
|
3058
3064
|
switch (p.key) {
|
|
3059
3065
|
case ee.Space:
|
|
3060
3066
|
case ee.Enter:
|
|
3061
3067
|
case ee.ArrowDown:
|
|
3062
|
-
p.preventDefault(),
|
|
3063
|
-
i.value ||
|
|
3068
|
+
p.preventDefault(), f.openListbox(), v.nextFrame(() => {
|
|
3069
|
+
i.value || f.goToOption(te.First);
|
|
3064
3070
|
});
|
|
3065
3071
|
break;
|
|
3066
3072
|
case ee.ArrowUp:
|
|
3067
|
-
p.preventDefault(),
|
|
3068
|
-
i.value ||
|
|
3073
|
+
p.preventDefault(), f.openListbox(), v.nextFrame(() => {
|
|
3074
|
+
i.value || f.goToOption(te.Last);
|
|
3069
3075
|
});
|
|
3070
3076
|
break;
|
|
3071
3077
|
}
|
|
3072
|
-
}), h =
|
|
3078
|
+
}), h = j((p) => {
|
|
3073
3079
|
switch (p.key) {
|
|
3074
3080
|
case ee.Space:
|
|
3075
3081
|
p.preventDefault();
|
|
3076
3082
|
break;
|
|
3077
3083
|
}
|
|
3078
|
-
}), l =
|
|
3084
|
+
}), l = j((p) => {
|
|
3079
3085
|
if (po(p.currentTarget))
|
|
3080
3086
|
return p.preventDefault();
|
|
3081
|
-
i.listboxState === 0 ? (
|
|
3087
|
+
i.listboxState === 0 ? (f.closeListbox(), v.nextFrame(() => {
|
|
3082
3088
|
var g;
|
|
3083
3089
|
return (g = i.buttonRef.current) == null ? void 0 : g.focus({ preventScroll: !0 });
|
|
3084
|
-
})) : (p.preventDefault(),
|
|
3085
|
-
}),
|
|
3090
|
+
})) : (p.preventDefault(), f.openListbox());
|
|
3091
|
+
}), d = Nt(() => {
|
|
3086
3092
|
if (i.labelId)
|
|
3087
3093
|
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":
|
|
3089
|
-
return
|
|
3094
|
+
}, [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": d, disabled: i.disabled, onKeyDown: m, onKeyUp: h, onClick: l };
|
|
3095
|
+
return De({ ourProps: u, theirProps: c, slot: a, defaultTag: ws, name: "Listbox.Button" });
|
|
3090
3096
|
}
|
|
3091
3097
|
let ys = "label";
|
|
3092
3098
|
function Os(e, t) {
|
|
3093
|
-
let n = at(), { id: r = `headlessui-listbox-label-${n}`, ...o } = e, c =
|
|
3099
|
+
let n = at(), { id: r = `headlessui-listbox-label-${n}`, ...o } = e, c = $t("Listbox.Label"), i = Dt("Listbox.Label"), f = qe(c.labelRef, t);
|
|
3094
3100
|
we(() => i.registerLabel(r), [r]);
|
|
3095
|
-
let b =
|
|
3101
|
+
let b = j(() => {
|
|
3096
3102
|
var m;
|
|
3097
3103
|
return (m = c.buttonRef.current) == null ? void 0 : m.focus({ preventScroll: !0 });
|
|
3098
3104
|
}), v = _e(() => ({ open: c.listboxState === 0, disabled: c.disabled }), [c]);
|
|
3099
|
-
return
|
|
3105
|
+
return De({ ourProps: { ref: f, id: r, onClick: b }, theirProps: o, slot: v, defaultTag: ys, name: "Listbox.Label" });
|
|
3100
3106
|
}
|
|
3101
3107
|
let _s = "ul", ks = _t.RenderStrategy | _t.Static;
|
|
3102
3108
|
function Ss(e, t) {
|
|
3103
3109
|
var n;
|
|
3104
|
-
let r = at(), { id: o = `headlessui-listbox-options-${r}`, ...c } = e, i =
|
|
3105
|
-
|
|
3110
|
+
let r = at(), { id: o = `headlessui-listbox-options-${r}`, ...c } = e, i = $t("Listbox.Options"), f = Dt("Listbox.Options"), b = qe(i.optionsRef, t), v = it(), m = it(), h = Zt(), l = (() => h !== null ? (h & Se.Open) === Se.Open : i.listboxState === 0)();
|
|
3111
|
+
X(() => {
|
|
3106
3112
|
var g;
|
|
3107
|
-
let
|
|
3108
|
-
|
|
3113
|
+
let E = i.optionsRef.current;
|
|
3114
|
+
E && i.listboxState === 0 && E !== ((g = Xt(E)) == null ? void 0 : g.activeElement) && E.focus({ preventScroll: !0 });
|
|
3109
3115
|
}, [i.listboxState, i.optionsRef]);
|
|
3110
|
-
let
|
|
3116
|
+
let d = j((g) => {
|
|
3111
3117
|
switch (m.dispose(), g.key) {
|
|
3112
3118
|
case ee.Space:
|
|
3113
3119
|
if (i.searchQuery !== "")
|
|
3114
|
-
return g.preventDefault(), g.stopPropagation(),
|
|
3120
|
+
return g.preventDefault(), g.stopPropagation(), f.search(g.key);
|
|
3115
3121
|
case ee.Enter:
|
|
3116
3122
|
if (g.preventDefault(), g.stopPropagation(), i.activeOptionIndex !== null) {
|
|
3117
|
-
let { dataRef:
|
|
3118
|
-
|
|
3123
|
+
let { dataRef: E } = i.options[i.activeOptionIndex];
|
|
3124
|
+
f.onChange(E.current.value);
|
|
3119
3125
|
}
|
|
3120
|
-
i.mode === 0 && (
|
|
3121
|
-
var
|
|
3122
|
-
return (
|
|
3126
|
+
i.mode === 0 && (f.closeListbox(), et().nextFrame(() => {
|
|
3127
|
+
var E;
|
|
3128
|
+
return (E = i.buttonRef.current) == null ? void 0 : E.focus({ preventScroll: !0 });
|
|
3123
3129
|
}));
|
|
3124
3130
|
break;
|
|
3125
|
-
case
|
|
3126
|
-
return g.preventDefault(), g.stopPropagation(),
|
|
3127
|
-
case
|
|
3128
|
-
return g.preventDefault(), g.stopPropagation(),
|
|
3131
|
+
case me(i.orientation, { vertical: ee.ArrowDown, horizontal: ee.ArrowRight }):
|
|
3132
|
+
return g.preventDefault(), g.stopPropagation(), f.goToOption(te.Next);
|
|
3133
|
+
case me(i.orientation, { vertical: ee.ArrowUp, horizontal: ee.ArrowLeft }):
|
|
3134
|
+
return g.preventDefault(), g.stopPropagation(), f.goToOption(te.Previous);
|
|
3129
3135
|
case ee.Home:
|
|
3130
3136
|
case ee.PageUp:
|
|
3131
|
-
return g.preventDefault(), g.stopPropagation(),
|
|
3137
|
+
return g.preventDefault(), g.stopPropagation(), f.goToOption(te.First);
|
|
3132
3138
|
case ee.End:
|
|
3133
3139
|
case ee.PageDown:
|
|
3134
|
-
return g.preventDefault(), g.stopPropagation(),
|
|
3140
|
+
return g.preventDefault(), g.stopPropagation(), f.goToOption(te.Last);
|
|
3135
3141
|
case ee.Escape:
|
|
3136
|
-
return g.preventDefault(), g.stopPropagation(),
|
|
3137
|
-
var
|
|
3138
|
-
return (
|
|
3142
|
+
return g.preventDefault(), g.stopPropagation(), f.closeListbox(), v.nextFrame(() => {
|
|
3143
|
+
var E;
|
|
3144
|
+
return (E = i.buttonRef.current) == null ? void 0 : E.focus({ preventScroll: !0 });
|
|
3139
3145
|
});
|
|
3140
3146
|
case ee.Tab:
|
|
3141
3147
|
g.preventDefault(), g.stopPropagation();
|
|
3142
3148
|
break;
|
|
3143
3149
|
default:
|
|
3144
|
-
g.key.length === 1 && (
|
|
3150
|
+
g.key.length === 1 && (f.search(g.key), m.setTimeout(() => f.clearSearch(), 350));
|
|
3145
3151
|
break;
|
|
3146
3152
|
}
|
|
3147
|
-
}), a =
|
|
3148
|
-
var g,
|
|
3149
|
-
return (
|
|
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:
|
|
3151
|
-
return
|
|
3153
|
+
}), a = Nt(() => {
|
|
3154
|
+
var g, E, y;
|
|
3155
|
+
return (y = (g = i.labelRef.current) == null ? void 0 : g.id) != null ? y : (E = i.buttonRef.current) == null ? void 0 : E.id;
|
|
3156
|
+
}, [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: d, role: "listbox", tabIndex: 0, ref: b };
|
|
3157
|
+
return De({ ourProps: p, theirProps: c, slot: u, defaultTag: _s, features: ks, visible: l, name: "Listbox.Options" });
|
|
3152
3158
|
}
|
|
3153
3159
|
let Es = "li";
|
|
3154
3160
|
function Ts(e, t) {
|
|
3155
|
-
let n = at(), { id: r = `headlessui-listbox-option-${n}`, disabled: o = !1, value: c, ...i } = e,
|
|
3161
|
+
let n = at(), { id: r = `headlessui-listbox-option-${n}`, disabled: o = !1, value: c, ...i } = e, f = $t("Listbox.Option"), b = Dt("Listbox.Option"), v = f.activeOptionIndex !== null ? f.options[f.activeOptionIndex].id === r : !1, m = f.isSelected(c), h = P(null), l = us(h), d = Ge({ disabled: o, value: c, domRef: h, get textValue() {
|
|
3156
3162
|
return l();
|
|
3157
3163
|
} }), a = qe(t, h);
|
|
3158
3164
|
we(() => {
|
|
3159
|
-
if (
|
|
3165
|
+
if (f.listboxState !== 0 || !v || f.activationTrigger === 0)
|
|
3160
3166
|
return;
|
|
3161
|
-
let
|
|
3162
|
-
return
|
|
3163
|
-
var
|
|
3164
|
-
(
|
|
3165
|
-
}),
|
|
3166
|
-
}, [h, v,
|
|
3167
|
-
let u =
|
|
3167
|
+
let S = et();
|
|
3168
|
+
return S.requestAnimationFrame(() => {
|
|
3169
|
+
var U, W;
|
|
3170
|
+
(W = (U = h.current) == null ? void 0 : U.scrollIntoView) == null || W.call(U, { block: "nearest" });
|
|
3171
|
+
}), S.dispose;
|
|
3172
|
+
}, [h, v, f.listboxState, f.activationTrigger, f.activeOptionIndex]), we(() => b.registerOption(r, d), [d, r]);
|
|
3173
|
+
let u = j((S) => {
|
|
3168
3174
|
if (o)
|
|
3169
|
-
return
|
|
3170
|
-
b.onChange(c),
|
|
3171
|
-
var
|
|
3172
|
-
return (
|
|
3175
|
+
return S.preventDefault();
|
|
3176
|
+
b.onChange(c), f.mode === 0 && (b.closeListbox(), et().nextFrame(() => {
|
|
3177
|
+
var U;
|
|
3178
|
+
return (U = f.buttonRef.current) == null ? void 0 : U.focus({ preventScroll: !0 });
|
|
3173
3179
|
}));
|
|
3174
|
-
}), p =
|
|
3180
|
+
}), p = j(() => {
|
|
3175
3181
|
if (o)
|
|
3176
3182
|
return b.goToOption(te.Nothing);
|
|
3177
3183
|
b.goToOption(te.Specific, r);
|
|
3178
|
-
}), g = go(),
|
|
3179
|
-
g.wasMoved(
|
|
3180
|
-
}),
|
|
3181
|
-
g.wasMoved(
|
|
3182
|
-
}),
|
|
3183
|
-
return
|
|
3184
|
-
}
|
|
3185
|
-
let Cs =
|
|
3186
|
-
function
|
|
3187
|
-
let [t, n] =
|
|
3184
|
+
}), g = go(), E = j((S) => g.update(S)), y = j((S) => {
|
|
3185
|
+
g.wasMoved(S) && (o || v || b.goToOption(te.Specific, r, 0));
|
|
3186
|
+
}), _ = j((S) => {
|
|
3187
|
+
g.wasMoved(S) && (o || v && b.goToOption(te.Nothing));
|
|
3188
|
+
}), M = _e(() => ({ active: v, selected: m, disabled: o }), [v, m, o]);
|
|
3189
|
+
return De({ ourProps: { id: r, ref: a, role: "option", tabIndex: o === !0 ? void 0 : -1, "aria-disabled": o === !0 ? !0 : void 0, "aria-selected": m, disabled: void 0, onClick: u, onFocus: p, onPointerEnter: E, onMouseEnter: E, onPointerMove: y, onMouseMove: y, onPointerLeave: _, onMouseLeave: _ }, theirProps: i, slot: M, defaultTag: Es, name: "Listbox.Option" });
|
|
3190
|
+
}
|
|
3191
|
+
let Cs = Fe(gs), Is = Fe(xs), Rs = Fe(Os), Ps = Fe(Ss), Ls = Fe(Ts), Jt = Object.assign(Cs, { Button: Is, Label: Rs, Options: Ps, Option: Ls });
|
|
3192
|
+
function js(e = 0) {
|
|
3193
|
+
let [t, n] = ae(e), r = Pn(), o = yt((b) => {
|
|
3188
3194
|
r.current && n((v) => v | b);
|
|
3189
3195
|
}, [t, r]), c = yt((b) => !!(t & b), [t]), i = yt((b) => {
|
|
3190
3196
|
r.current && n((v) => v & ~b);
|
|
3191
|
-
}, [n, r]),
|
|
3197
|
+
}, [n, r]), f = yt((b) => {
|
|
3192
3198
|
r.current && n((v) => v ^ b);
|
|
3193
3199
|
}, [n]);
|
|
3194
|
-
return { flags: t, addFlag: o, hasFlag: c, removeFlag: i, toggleFlag:
|
|
3200
|
+
return { flags: t, addFlag: o, hasFlag: c, removeFlag: i, toggleFlag: f };
|
|
3195
3201
|
}
|
|
3196
3202
|
function Fs(e) {
|
|
3197
3203
|
let t = { called: !1 };
|
|
@@ -3207,18 +3213,18 @@ function fn(e, ...t) {
|
|
|
3207
3213
|
e && t.length > 0 && e.classList.remove(...t);
|
|
3208
3214
|
}
|
|
3209
3215
|
function Ns(e, t) {
|
|
3210
|
-
let n =
|
|
3216
|
+
let n = et();
|
|
3211
3217
|
if (!e)
|
|
3212
3218
|
return n.dispose;
|
|
3213
3219
|
let { transitionDuration: r, transitionDelay: o } = getComputedStyle(e), [c, i] = [r, o].map((b) => {
|
|
3214
3220
|
let [v = 0] = b.split(",").filter(Boolean).map((m) => m.includes("ms") ? parseFloat(m) : parseFloat(m) * 1e3).sort((m, h) => h - m);
|
|
3215
3221
|
return v;
|
|
3216
|
-
}),
|
|
3217
|
-
if (
|
|
3222
|
+
}), f = c + i;
|
|
3223
|
+
if (f !== 0) {
|
|
3218
3224
|
n.group((v) => {
|
|
3219
3225
|
v.setTimeout(() => {
|
|
3220
3226
|
t(), v.dispose();
|
|
3221
|
-
},
|
|
3227
|
+
}, f), v.addEventListener(e, "transitionrun", (m) => {
|
|
3222
3228
|
m.target === m.currentTarget && v.dispose();
|
|
3223
3229
|
});
|
|
3224
3230
|
});
|
|
@@ -3230,21 +3236,21 @@ function Ns(e, t) {
|
|
|
3230
3236
|
return n.add(() => t()), n.dispose;
|
|
3231
3237
|
}
|
|
3232
3238
|
function As(e, t, n, r) {
|
|
3233
|
-
let o = n ? "enter" : "leave", c =
|
|
3239
|
+
let o = n ? "enter" : "leave", c = et(), i = r !== void 0 ? Fs(r) : () => {
|
|
3234
3240
|
};
|
|
3235
3241
|
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, ...
|
|
3242
|
+
let f = me(o, { enter: () => t.enter, leave: () => t.leave }), b = me(o, { enter: () => t.enterTo, leave: () => t.leaveTo }), v = me(o, { enter: () => t.enterFrom, leave: () => t.leaveFrom });
|
|
3243
|
+
return fn(e, ...t.base, ...t.enter, ...t.enterTo, ...t.enterFrom, ...t.leave, ...t.leaveFrom, ...t.leaveTo, ...t.entered), dn(e, ...t.base, ...f, ...v), c.nextFrame(() => {
|
|
3244
|
+
fn(e, ...t.base, ...f, ...v), dn(e, ...t.base, ...f, ...b), Ns(e, () => (fn(e, ...t.base, ...f), dn(e, ...t.base, ...t.entered), i()));
|
|
3239
3245
|
}), c.dispose;
|
|
3240
3246
|
}
|
|
3241
3247
|
function Ds({ immediate: e, container: t, direction: n, classes: r, onStart: o, onStop: c }) {
|
|
3242
|
-
let i = Pn(),
|
|
3248
|
+
let i = Pn(), f = it(), b = Ge(n);
|
|
3243
3249
|
we(() => {
|
|
3244
3250
|
e && (b.current = "enter");
|
|
3245
3251
|
}, [e]), we(() => {
|
|
3246
|
-
let v =
|
|
3247
|
-
|
|
3252
|
+
let v = et();
|
|
3253
|
+
f.add(v.dispose);
|
|
3248
3254
|
let m = t.current;
|
|
3249
3255
|
if (m && b.current !== "idle" && i.current)
|
|
3250
3256
|
return v.dispose(), o.current(b.current), v.add(As(m, r.current, b.current === "enter", () => {
|
|
@@ -3252,20 +3258,20 @@ function Ds({ immediate: e, container: t, direction: n, classes: r, onStart: o,
|
|
|
3252
3258
|
})), v.dispose;
|
|
3253
3259
|
}, [n]);
|
|
3254
3260
|
}
|
|
3255
|
-
function
|
|
3261
|
+
function st(e = "") {
|
|
3256
3262
|
return e.split(" ").filter((t) => t.trim().length > 1);
|
|
3257
3263
|
}
|
|
3258
3264
|
let en = ht(null);
|
|
3259
3265
|
en.displayName = "TransitionContext";
|
|
3260
3266
|
var $s = ((e) => (e.Visible = "visible", e.Hidden = "hidden", e))($s || {});
|
|
3261
3267
|
function Ms() {
|
|
3262
|
-
let e =
|
|
3268
|
+
let e = dt(en);
|
|
3263
3269
|
if (e === null)
|
|
3264
3270
|
throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
|
|
3265
3271
|
return e;
|
|
3266
3272
|
}
|
|
3267
3273
|
function Ws() {
|
|
3268
|
-
let e =
|
|
3274
|
+
let e = dt(tn);
|
|
3269
3275
|
if (e === null)
|
|
3270
3276
|
throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
|
|
3271
3277
|
return e;
|
|
@@ -3276,32 +3282,32 @@ function nn(e) {
|
|
|
3276
3282
|
return "children" in e ? nn(e.children) : e.current.filter(({ el: t }) => t.current !== null).filter(({ state: t }) => t === "visible").length > 0;
|
|
3277
3283
|
}
|
|
3278
3284
|
function wo(e, t) {
|
|
3279
|
-
let n =
|
|
3280
|
-
let u = r.current.findIndex(({ el: p }) => p ===
|
|
3281
|
-
u !== -1 && (
|
|
3285
|
+
let n = Ge(e), r = P([]), o = Pn(), c = it(), i = j((d, a = ct.Hidden) => {
|
|
3286
|
+
let u = r.current.findIndex(({ el: p }) => p === d);
|
|
3287
|
+
u !== -1 && (me(a, { [ct.Unmount]() {
|
|
3282
3288
|
r.current.splice(u, 1);
|
|
3283
|
-
}, [
|
|
3289
|
+
}, [ct.Hidden]() {
|
|
3284
3290
|
r.current[u].state = "hidden";
|
|
3285
3291
|
} }), c.microTask(() => {
|
|
3286
3292
|
var p;
|
|
3287
3293
|
!nn(r) && o.current && ((p = n.current) == null || p.call(n));
|
|
3288
3294
|
}));
|
|
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 =
|
|
3293
|
-
b.current.splice(0), t && (t.chains.current[a] = t.chains.current[a].filter(([p]) => p !==
|
|
3295
|
+
}), f = j((d) => {
|
|
3296
|
+
let a = r.current.find(({ el: u }) => u === d);
|
|
3297
|
+
return a ? a.state !== "visible" && (a.state = "visible") : r.current.push({ el: d, state: "visible" }), () => i(d, ct.Unmount);
|
|
3298
|
+
}), b = P([]), v = P(Promise.resolve()), m = P({ enter: [], leave: [], idle: [] }), h = j((d, a, u) => {
|
|
3299
|
+
b.current.splice(0), t && (t.chains.current[a] = t.chains.current[a].filter(([p]) => p !== d)), t?.chains.current[a].push([d, new Promise((p) => {
|
|
3294
3300
|
b.current.push(p);
|
|
3295
|
-
})]), t?.chains.current[a].push([
|
|
3296
|
-
Promise.all(m.current[a].map(([g,
|
|
3301
|
+
})]), t?.chains.current[a].push([d, new Promise((p) => {
|
|
3302
|
+
Promise.all(m.current[a].map(([g, E]) => E)).then(() => p());
|
|
3297
3303
|
})]), a === "enter" ? v.current = v.current.then(() => t?.wait.current).then(() => u(a)) : u(a);
|
|
3298
|
-
}), l =
|
|
3304
|
+
}), l = j((d, a, u) => {
|
|
3299
3305
|
Promise.all(m.current[a].splice(0).map(([p, g]) => g)).then(() => {
|
|
3300
3306
|
var p;
|
|
3301
3307
|
(p = b.current.shift()) == null || p();
|
|
3302
3308
|
}).then(() => u(a));
|
|
3303
3309
|
});
|
|
3304
|
-
return _e(() => ({ children: r, register:
|
|
3310
|
+
return _e(() => ({ children: r, register: f, unregister: i, onStart: h, onStop: l, wait: v, chains: m }), [f, i, r, h, l, m, v]);
|
|
3305
3311
|
}
|
|
3306
3312
|
function Vs() {
|
|
3307
3313
|
}
|
|
@@ -3314,90 +3320,90 @@ function tr(e) {
|
|
|
3314
3320
|
return n;
|
|
3315
3321
|
}
|
|
3316
3322
|
function Us(e) {
|
|
3317
|
-
let t =
|
|
3318
|
-
return
|
|
3323
|
+
let t = P(tr(e));
|
|
3324
|
+
return X(() => {
|
|
3319
3325
|
t.current = tr(e);
|
|
3320
3326
|
}, [e]), t;
|
|
3321
3327
|
}
|
|
3322
3328
|
let Hs = "div", xo = _t.RenderStrategy;
|
|
3323
3329
|
function qs(e, t) {
|
|
3324
3330
|
var n, r;
|
|
3325
|
-
let { beforeEnter: o, afterEnter: c, beforeLeave: i, afterLeave:
|
|
3326
|
-
|
|
3327
|
-
if (
|
|
3328
|
-
if (
|
|
3329
|
-
|
|
3331
|
+
let { beforeEnter: o, afterEnter: c, beforeLeave: i, afterLeave: f, enter: b, enterFrom: v, enterTo: m, entered: h, leave: l, leaveFrom: d, leaveTo: a, ...u } = e, p = P(null), g = qe(p, t), E = (n = u.unmount) == null || n ? ct.Unmount : ct.Hidden, { show: y, appear: _, initial: M } = Ms(), [S, U] = ae(y ? "visible" : "hidden"), W = Ws(), { register: I, unregister: Y } = W;
|
|
3332
|
+
X(() => I(p), [I, p]), X(() => {
|
|
3333
|
+
if (E === ct.Hidden && p.current) {
|
|
3334
|
+
if (y && S !== "visible") {
|
|
3335
|
+
U("visible");
|
|
3330
3336
|
return;
|
|
3331
3337
|
}
|
|
3332
|
-
return
|
|
3338
|
+
return me(S, { hidden: () => Y(p), visible: () => I(p) });
|
|
3333
3339
|
}
|
|
3334
|
-
}, [
|
|
3335
|
-
let
|
|
3336
|
-
|
|
3337
|
-
if (
|
|
3340
|
+
}, [S, p, I, Y, y, E]);
|
|
3341
|
+
let se = Ge({ base: st(u.className), enter: st(b), enterFrom: st(v), enterTo: st(m), entered: st(h), leave: st(l), leaveFrom: st(d), leaveTo: st(a) }), oe = Us({ beforeEnter: o, afterEnter: c, beforeLeave: i, afterLeave: f }), w = _n();
|
|
3342
|
+
X(() => {
|
|
3343
|
+
if (w && S === "visible" && p.current === null)
|
|
3338
3344
|
throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
|
|
3339
|
-
}, [p,
|
|
3340
|
-
let
|
|
3341
|
-
B.addFlag(Se.Opening),
|
|
3345
|
+
}, [p, S, w]);
|
|
3346
|
+
let q = M && !_, ne = _ && y && M, fe = (() => !w || q ? "idle" : y ? "enter" : "leave")(), B = js(0), pe = j((be) => me(be, { enter: () => {
|
|
3347
|
+
B.addFlag(Se.Opening), oe.current.beforeEnter();
|
|
3342
3348
|
}, leave: () => {
|
|
3343
|
-
B.addFlag(Se.Closing),
|
|
3349
|
+
B.addFlag(Se.Closing), oe.current.beforeLeave();
|
|
3344
3350
|
}, idle: () => {
|
|
3345
|
-
} })),
|
|
3346
|
-
B.removeFlag(Se.Opening),
|
|
3351
|
+
} })), re = j((be) => me(be, { enter: () => {
|
|
3352
|
+
B.removeFlag(Se.Opening), oe.current.afterEnter();
|
|
3347
3353
|
}, leave: () => {
|
|
3348
|
-
B.removeFlag(Se.Closing),
|
|
3354
|
+
B.removeFlag(Se.Closing), oe.current.afterLeave();
|
|
3349
3355
|
}, idle: () => {
|
|
3350
|
-
} })),
|
|
3351
|
-
|
|
3352
|
-
},
|
|
3353
|
-
Ds({ immediate: ne, container: p, classes:
|
|
3354
|
-
|
|
3355
|
-
}), onStop:
|
|
3356
|
-
|
|
3356
|
+
} })), Z = wo(() => {
|
|
3357
|
+
U("hidden"), Y(p);
|
|
3358
|
+
}, W);
|
|
3359
|
+
Ds({ immediate: ne, container: p, classes: se, direction: fe, onStart: Ge((be) => {
|
|
3360
|
+
Z.onStart(p, be, pe);
|
|
3361
|
+
}), onStop: Ge((be) => {
|
|
3362
|
+
Z.onStop(p, be, re), be === "leave" && !nn(Z) && (U("hidden"), Y(p));
|
|
3357
3363
|
}) });
|
|
3358
|
-
let
|
|
3359
|
-
return ne ?
|
|
3364
|
+
let de = u, he = { ref: g };
|
|
3365
|
+
return ne ? de = { ...de, className: Kt(u.className, ...se.current.enter, ...se.current.enterFrom) } : (de.className = Kt(u.className, (r = p.current) == null ? void 0 : r.className), de.className === "" && delete de.className), ce.createElement(tn.Provider, { value: Z }, ce.createElement(Cn, { value: me(S, { visible: Se.Open, hidden: Se.Closed }) | B.flags }, De({ ourProps: he, theirProps: de, defaultTag: Hs, features: xo, visible: S === "visible", name: "Transition.Child" })));
|
|
3360
3366
|
}
|
|
3361
3367
|
function zs(e, t) {
|
|
3362
|
-
let { show: n, appear: r = !1, unmount: o = !0, ...c } = e, i =
|
|
3368
|
+
let { show: n, appear: r = !1, unmount: o = !0, ...c } = e, i = P(null), f = qe(i, t);
|
|
3363
3369
|
_n();
|
|
3364
3370
|
let b = Zt();
|
|
3365
3371
|
if (n === void 0 && b !== null && (n = (b & Se.Open) === Se.Open), ![!0, !1].includes(n))
|
|
3366
3372
|
throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");
|
|
3367
|
-
let [v, m] =
|
|
3373
|
+
let [v, m] = ae(n ? "visible" : "hidden"), h = wo(() => {
|
|
3368
3374
|
m("hidden");
|
|
3369
|
-
}), [l,
|
|
3375
|
+
}), [l, d] = ae(!0), a = P([n]);
|
|
3370
3376
|
we(() => {
|
|
3371
|
-
l !== !1 && a.current[a.current.length - 1] !== n && (a.current.push(n),
|
|
3377
|
+
l !== !1 && a.current[a.current.length - 1] !== n && (a.current.push(n), d(!1));
|
|
3372
3378
|
}, [a, n]);
|
|
3373
3379
|
let u = _e(() => ({ show: n, appear: r, initial: l }), [n, r, l]);
|
|
3374
|
-
|
|
3380
|
+
X(() => {
|
|
3375
3381
|
if (n)
|
|
3376
3382
|
m("visible");
|
|
3377
3383
|
else if (!nn(h))
|
|
3378
3384
|
m("hidden");
|
|
3379
3385
|
else {
|
|
3380
|
-
let
|
|
3381
|
-
if (!
|
|
3386
|
+
let y = i.current;
|
|
3387
|
+
if (!y)
|
|
3382
3388
|
return;
|
|
3383
|
-
let
|
|
3384
|
-
|
|
3389
|
+
let _ = y.getBoundingClientRect();
|
|
3390
|
+
_.x === 0 && _.y === 0 && _.width === 0 && _.height === 0 && m("hidden");
|
|
3385
3391
|
}
|
|
3386
3392
|
}, [n, h]);
|
|
3387
|
-
let p = { unmount: o }, g =
|
|
3388
|
-
var
|
|
3389
|
-
l &&
|
|
3390
|
-
}),
|
|
3391
|
-
var
|
|
3392
|
-
l &&
|
|
3393
|
+
let p = { unmount: o }, g = j(() => {
|
|
3394
|
+
var y;
|
|
3395
|
+
l && d(!1), (y = e.beforeEnter) == null || y.call(e);
|
|
3396
|
+
}), E = j(() => {
|
|
3397
|
+
var y;
|
|
3398
|
+
l && d(!1), (y = e.beforeLeave) == null || y.call(e);
|
|
3393
3399
|
});
|
|
3394
|
-
return
|
|
3400
|
+
return ce.createElement(tn.Provider, { value: h }, ce.createElement(en.Provider, { value: u }, De({ ourProps: { ...p, as: ot, children: ce.createElement(yo, { ref: f, ...p, ...c, beforeEnter: g, beforeLeave: E }) }, theirProps: {}, defaultTag: ot, features: xo, visible: v === "visible", name: "Transition" })));
|
|
3395
3401
|
}
|
|
3396
3402
|
function Ys(e, t) {
|
|
3397
|
-
let n =
|
|
3398
|
-
return
|
|
3403
|
+
let n = dt(en) !== null, r = Zt() !== null;
|
|
3404
|
+
return ce.createElement(ce.Fragment, null, !n && r ? ce.createElement(gn, { ref: t, ...e }) : ce.createElement(yo, { ref: t, ...e }));
|
|
3399
3405
|
}
|
|
3400
|
-
let gn =
|
|
3406
|
+
let gn = Fe(zs), yo = Fe(qs), Ks = Fe(Ys), Oo = Object.assign(gn, { Child: Ks, Root: gn });
|
|
3401
3407
|
function Gs({
|
|
3402
3408
|
title: e,
|
|
3403
3409
|
titleId: t,
|
|
@@ -3433,67 +3439,75 @@ const Js = rt.forwardRef(Gs), _o = Js, Qs = "_select_12thw_1", Xs = "_selectCont
|
|
|
3433
3439
|
leaveTo: sc,
|
|
3434
3440
|
selectOptions: cc
|
|
3435
3441
|
}, Pc = ({ children: e, selected: t, onSelect: n, themeColor: r }) => {
|
|
3436
|
-
const [o, c] =
|
|
3437
|
-
let
|
|
3438
|
-
const
|
|
3439
|
-
n(
|
|
3440
|
-
}, p = () => {
|
|
3441
|
-
c(!0);
|
|
3442
|
+
const [o, c] = ae(!1), [i, f] = ae(!1), b = P(null), v = P(null), m = P(null), [h, l] = ae({ left: 0, top: 0 }), d = P(0), a = P(0);
|
|
3443
|
+
let u = "#333333";
|
|
3444
|
+
const p = (S) => {
|
|
3445
|
+
n(S);
|
|
3442
3446
|
}, g = () => {
|
|
3447
|
+
c(!0);
|
|
3448
|
+
}, E = () => {
|
|
3443
3449
|
c(!1);
|
|
3444
|
-
}, k = () => {
|
|
3445
|
-
l.current = window.innerHeight, f.current = document.body.scrollHeight, d(!0);
|
|
3446
3450
|
};
|
|
3447
|
-
|
|
3448
|
-
|
|
3451
|
+
X(() => {
|
|
3452
|
+
const S = v.current;
|
|
3453
|
+
return S && (S.addEventListener("focus", g), S.addEventListener("blur", E)), () => {
|
|
3454
|
+
S && (S.removeEventListener("focus", g), S.removeEventListener("blur", E));
|
|
3455
|
+
};
|
|
3456
|
+
}, [g, E]);
|
|
3457
|
+
const y = () => {
|
|
3458
|
+
d.current = window.innerHeight, a.current = document.body.scrollHeight, f(!0);
|
|
3459
|
+
};
|
|
3460
|
+
X(() => (y(), window.addEventListener("resize", y), () => {
|
|
3461
|
+
window.addEventListener("resize", y);
|
|
3449
3462
|
}), []);
|
|
3450
|
-
const
|
|
3463
|
+
const _ = () => a.current - (d.current + window.scrollY), M = () => {
|
|
3451
3464
|
if (b.current) {
|
|
3452
|
-
const
|
|
3465
|
+
const S = b.current.getBoundingClientRect();
|
|
3453
3466
|
setTimeout(() => {
|
|
3454
|
-
const
|
|
3455
|
-
let
|
|
3456
|
-
if (
|
|
3457
|
-
const
|
|
3458
|
-
|
|
3459
|
-
left:
|
|
3460
|
-
top:
|
|
3467
|
+
const U = m?.current?.getBoundingClientRect(), W = _(), I = d.current - S.bottom;
|
|
3468
|
+
let Y;
|
|
3469
|
+
if (U) {
|
|
3470
|
+
const se = S.height, oe = S.top, w = U.height, q = w >= oe + window.scrollY;
|
|
3471
|
+
w >= oe && (q || q && I <= w || W >= w || I >= w) || oe >= w && I >= w ? Y = S.y + se : Y = S.y - w, l({
|
|
3472
|
+
left: S.left,
|
|
3473
|
+
top: Y ?? S.top
|
|
3461
3474
|
});
|
|
3462
3475
|
}
|
|
3463
3476
|
}, 0);
|
|
3464
3477
|
}
|
|
3465
3478
|
};
|
|
3466
|
-
if (
|
|
3467
|
-
window.removeEventListener("scroll",
|
|
3479
|
+
if (X(() => (window.addEventListener("scroll", M), window.addEventListener("resize", M), () => {
|
|
3480
|
+
window.removeEventListener("scroll", M), window.removeEventListener("resize", M);
|
|
3468
3481
|
}), []), r) {
|
|
3469
|
-
r =
|
|
3470
|
-
const
|
|
3471
|
-
(
|
|
3482
|
+
r = tt.convert3HexTo6(r);
|
|
3483
|
+
const S = ft(r);
|
|
3484
|
+
(S === "dark" || S === "light") && (u = r === "#ffffff" ? "#c8c8c8" : r);
|
|
3472
3485
|
}
|
|
3473
|
-
return /* @__PURE__ */
|
|
3474
|
-
/* @__PURE__ */
|
|
3486
|
+
return /* @__PURE__ */ O.jsx(Jt, { value: t, onChange: p, children: ({ open: S }) => /* @__PURE__ */ O.jsxs("div", { className: Me.select, children: [
|
|
3487
|
+
/* @__PURE__ */ O.jsx("div", { className: Me.selectContainer, ref: b, children: /* @__PURE__ */ O.jsxs(
|
|
3475
3488
|
Jt.Button,
|
|
3476
3489
|
{
|
|
3477
3490
|
"data-testid": "select-options",
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3491
|
+
ref: v,
|
|
3492
|
+
onFocus: g,
|
|
3493
|
+
onBlur: E,
|
|
3494
|
+
onClick: M,
|
|
3495
|
+
onKeyDown: (U) => {
|
|
3496
|
+
(U.key === " " || U.code === "Space" || U.code === "Enter") && M();
|
|
3483
3497
|
},
|
|
3484
|
-
style: { borderBottomColor: r && (o ||
|
|
3485
|
-
className: `${Me.selectButton} ${
|
|
3498
|
+
style: { borderBottomColor: r && (o || S) ? u : "" },
|
|
3499
|
+
className: `${Me.selectButton} ${S ? Me.open : ""}`,
|
|
3486
3500
|
children: [
|
|
3487
|
-
t && /* @__PURE__ */
|
|
3488
|
-
t.avatar && /* @__PURE__ */
|
|
3489
|
-
/* @__PURE__ */
|
|
3501
|
+
t && /* @__PURE__ */ O.jsxs("span", { className: Me.selectValue, children: [
|
|
3502
|
+
t.avatar && /* @__PURE__ */ O.jsx("img", { src: t.avatar, alt: "", className: Me.seletIcon }),
|
|
3503
|
+
/* @__PURE__ */ O.jsx("span", { className: Me.selectText, children: t.label })
|
|
3490
3504
|
] }),
|
|
3491
|
-
/* @__PURE__ */
|
|
3505
|
+
/* @__PURE__ */ O.jsx("span", { className: Me.chevronDownIconSpan, children: /* @__PURE__ */ O.jsx(_o, { className: Me.chevronDownIcon, "aria-hidden": "true" }) })
|
|
3492
3506
|
]
|
|
3493
3507
|
}
|
|
3494
3508
|
) }),
|
|
3495
3509
|
i ? wn(
|
|
3496
|
-
/* @__PURE__ */
|
|
3510
|
+
/* @__PURE__ */ O.jsx(O.Fragment, { children: S && /* @__PURE__ */ O.jsx(
|
|
3497
3511
|
"div",
|
|
3498
3512
|
{
|
|
3499
3513
|
style: {
|
|
@@ -3502,16 +3516,16 @@ const Js = rt.forwardRef(Gs), _o = Js, Qs = "_select_12thw_1", Xs = "_selectCont
|
|
|
3502
3516
|
backgroundColor: "rgba(255,255,255,0)",
|
|
3503
3517
|
zIndex: 1e3
|
|
3504
3518
|
},
|
|
3505
|
-
children: /* @__PURE__ */
|
|
3519
|
+
children: /* @__PURE__ */ O.jsx(
|
|
3506
3520
|
"div",
|
|
3507
3521
|
{
|
|
3508
|
-
ref:
|
|
3522
|
+
ref: m,
|
|
3509
3523
|
style: {
|
|
3510
3524
|
position: "absolute",
|
|
3511
|
-
opacity:
|
|
3525
|
+
opacity: h.left ? 1 : 0,
|
|
3512
3526
|
width: b.current ? b.current.clientWidth : "auto",
|
|
3513
|
-
left:
|
|
3514
|
-
top:
|
|
3527
|
+
left: h.left,
|
|
3528
|
+
top: h.top
|
|
3515
3529
|
},
|
|
3516
3530
|
children: e
|
|
3517
3531
|
}
|
|
@@ -3521,7 +3535,7 @@ const Js = rt.forwardRef(Gs), _o = Js, Qs = "_select_12thw_1", Xs = "_selectCont
|
|
|
3521
3535
|
document.body
|
|
3522
3536
|
) : null
|
|
3523
3537
|
] }) });
|
|
3524
|
-
},
|
|
3538
|
+
}, Lc = ({ children: e, setQuery: t }) => /* @__PURE__ */ O.jsx(
|
|
3525
3539
|
Oo,
|
|
3526
3540
|
{
|
|
3527
3541
|
as: ot,
|
|
@@ -3529,11 +3543,11 @@ const Js = rt.forwardRef(Gs), _o = Js, Qs = "_select_12thw_1", Xs = "_selectCont
|
|
|
3529
3543
|
leaveFrom: Me.leaveFrom,
|
|
3530
3544
|
leaveTo: Me.leaveTo,
|
|
3531
3545
|
afterLeave: () => t(""),
|
|
3532
|
-
children: /* @__PURE__ */
|
|
3546
|
+
children: /* @__PURE__ */ O.jsx(Jt.Options, { className: Me.selectOptions, children: e })
|
|
3533
3547
|
}
|
|
3534
|
-
), uc =
|
|
3548
|
+
), uc = ut((e, t) => /* @__PURE__ */ O.jsx(Jt.Option, { ref: t, className: e.className, value: e.value, disabled: e.disable, children: e.children }));
|
|
3535
3549
|
uc.displayName = "SelectOption";
|
|
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",
|
|
3550
|
+
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", Ke = {
|
|
3537
3551
|
autocomplete: dc,
|
|
3538
3552
|
autocompleteContainer: fc,
|
|
3539
3553
|
disable: pc,
|
|
@@ -3544,7 +3558,7 @@ const dc = "_autocomplete_1ue23_1", fc = "_autocompleteContainer_1ue23_4", pc =
|
|
|
3544
3558
|
leaveFrom: gc,
|
|
3545
3559
|
leaveTo: wc,
|
|
3546
3560
|
autocompleteOptions: xc
|
|
3547
|
-
},
|
|
3561
|
+
}, jc = ({
|
|
3548
3562
|
children: e,
|
|
3549
3563
|
selected: t,
|
|
3550
3564
|
onSelect: n,
|
|
@@ -3553,93 +3567,93 @@ const dc = "_autocomplete_1ue23_1", fc = "_autocompleteContainer_1ue23_4", pc =
|
|
|
3553
3567
|
clearSearch: c = !1,
|
|
3554
3568
|
themeColor: i
|
|
3555
3569
|
}) => {
|
|
3556
|
-
const
|
|
3557
|
-
let
|
|
3558
|
-
|
|
3559
|
-
|
|
3570
|
+
const f = P(null), b = P(null), [v, m] = ae(!1), [h, l] = ae(!1), d = P(null), a = P(null), [u, p] = ae({ left: 0, top: 0 }), g = P(0), E = P(0);
|
|
3571
|
+
let y = {};
|
|
3572
|
+
X(() => {
|
|
3573
|
+
f.current && t && (f.current.value = t.label || "");
|
|
3560
3574
|
}, [t]);
|
|
3561
|
-
const
|
|
3562
|
-
g.current = window.innerHeight,
|
|
3575
|
+
const _ = () => {
|
|
3576
|
+
g.current = window.innerHeight, E.current = document.body.scrollHeight, l(!0);
|
|
3563
3577
|
};
|
|
3564
|
-
|
|
3565
|
-
window.addEventListener("resize",
|
|
3578
|
+
X(() => (_(), window.addEventListener("resize", _), () => {
|
|
3579
|
+
window.addEventListener("resize", _);
|
|
3566
3580
|
}), []);
|
|
3567
|
-
const
|
|
3568
|
-
if (
|
|
3569
|
-
const
|
|
3581
|
+
const M = () => E.current - (g.current + window.scrollY), S = () => {
|
|
3582
|
+
if (d.current) {
|
|
3583
|
+
const w = d.current.getBoundingClientRect();
|
|
3570
3584
|
setTimeout(() => {
|
|
3571
|
-
const
|
|
3585
|
+
const q = a?.current?.getBoundingClientRect(), ne = M(), fe = g.current - w.bottom;
|
|
3572
3586
|
let B;
|
|
3573
|
-
if (
|
|
3574
|
-
const
|
|
3575
|
-
|
|
3576
|
-
left:
|
|
3577
|
-
top: B ??
|
|
3587
|
+
if (q) {
|
|
3588
|
+
const pe = w.height, re = w.top, Z = q.height, de = Z > re + window.scrollY;
|
|
3589
|
+
re < Z && (de || de && fe < Z || ne > Z || fe > Z) || re > Z && fe > Z ? B = w.y + pe : B = w.y - Z, p({
|
|
3590
|
+
left: w.left,
|
|
3591
|
+
top: B ?? w.top
|
|
3578
3592
|
});
|
|
3579
3593
|
}
|
|
3580
3594
|
}, 0);
|
|
3581
3595
|
}
|
|
3582
3596
|
};
|
|
3583
|
-
|
|
3584
|
-
window.removeEventListener("scroll",
|
|
3597
|
+
X(() => (window.addEventListener("scroll", S), window.addEventListener("resize", S), () => {
|
|
3598
|
+
window.removeEventListener("scroll", S), window.removeEventListener("resize", S);
|
|
3585
3599
|
}), []);
|
|
3586
|
-
const
|
|
3587
|
-
n(
|
|
3588
|
-
},
|
|
3589
|
-
|
|
3590
|
-
},
|
|
3591
|
-
const
|
|
3592
|
-
|
|
3593
|
-
},
|
|
3600
|
+
const U = (w) => {
|
|
3601
|
+
n(w), Y();
|
|
3602
|
+
}, W = () => {
|
|
3603
|
+
S(), m(!0), f.current && t && (f.current.value = t.label || ""), f.current && b.current && (c && (f.current.value = "", r("")), b.current.click());
|
|
3604
|
+
}, I = (w) => w?.label, Y = () => {
|
|
3605
|
+
const w = f.current;
|
|
3606
|
+
w && w.setSelectionRange(w.value.length, w.value.length);
|
|
3607
|
+
}, se = () => {
|
|
3594
3608
|
m(!0);
|
|
3595
|
-
},
|
|
3609
|
+
}, oe = () => {
|
|
3596
3610
|
m(!1);
|
|
3597
3611
|
};
|
|
3598
|
-
if (
|
|
3599
|
-
const
|
|
3600
|
-
return
|
|
3601
|
-
|
|
3612
|
+
if (X(() => {
|
|
3613
|
+
const w = f.current;
|
|
3614
|
+
return w && (w.addEventListener("focus", se), w.addEventListener("blur", oe)), () => {
|
|
3615
|
+
w && (w.removeEventListener("focus", se), w.removeEventListener("blur", oe));
|
|
3602
3616
|
};
|
|
3603
|
-
}, [
|
|
3604
|
-
const
|
|
3605
|
-
i =
|
|
3617
|
+
}, [se, oe]), i) {
|
|
3618
|
+
const w = ft(i);
|
|
3619
|
+
i = tt.convert3HexTo6(i), (w === "dark" || w === "light") && (y = {
|
|
3606
3620
|
borderBottomColor: i === "#ffffff" ? "#c8c8c8" : v ? i : "#333333"
|
|
3607
3621
|
});
|
|
3608
3622
|
}
|
|
3609
|
-
return /* @__PURE__ */
|
|
3610
|
-
/* @__PURE__ */
|
|
3611
|
-
/* @__PURE__ */
|
|
3612
|
-
|
|
3623
|
+
return /* @__PURE__ */ O.jsx(Lt, { value: t, onChange: U, disabled: o, children: ({ open: w }) => /* @__PURE__ */ O.jsxs("div", { className: Ke.autocomplete, children: [
|
|
3624
|
+
/* @__PURE__ */ O.jsxs("div", { ref: d, className: `${Ke.autocompleteContainer} ${o ? Ke.disable : ""}`, children: [
|
|
3625
|
+
/* @__PURE__ */ O.jsx(
|
|
3626
|
+
Lt.Input,
|
|
3613
3627
|
{
|
|
3614
|
-
ref:
|
|
3628
|
+
ref: f,
|
|
3615
3629
|
"data-testid": "select-input",
|
|
3616
|
-
className:
|
|
3617
|
-
displayValue:
|
|
3618
|
-
onChange: (
|
|
3619
|
-
r(
|
|
3630
|
+
className: Ke.autocompleteInput,
|
|
3631
|
+
displayValue: I,
|
|
3632
|
+
onChange: (q) => {
|
|
3633
|
+
r(q.target.value), S();
|
|
3620
3634
|
},
|
|
3621
|
-
onClick:
|
|
3622
|
-
onFocus:
|
|
3623
|
-
onBlur:
|
|
3624
|
-
onKeyDown: (
|
|
3625
|
-
(
|
|
3635
|
+
onClick: W,
|
|
3636
|
+
onFocus: se,
|
|
3637
|
+
onBlur: oe,
|
|
3638
|
+
onKeyDown: (q) => {
|
|
3639
|
+
(q.key === " " || q.code === "Space") && S();
|
|
3626
3640
|
},
|
|
3627
|
-
style: { ...
|
|
3641
|
+
style: { ...y },
|
|
3628
3642
|
placeholder: "Select your option",
|
|
3629
3643
|
autoComplete: "off"
|
|
3630
3644
|
}
|
|
3631
3645
|
),
|
|
3632
|
-
/* @__PURE__ */
|
|
3633
|
-
|
|
3646
|
+
/* @__PURE__ */ O.jsx(
|
|
3647
|
+
Lt.Button,
|
|
3634
3648
|
{
|
|
3635
|
-
className:
|
|
3649
|
+
className: Ke.autocompleteButton,
|
|
3636
3650
|
"data-testid": "select-button",
|
|
3637
3651
|
ref: b,
|
|
3638
|
-
onClick:
|
|
3639
|
-
children: /* @__PURE__ */
|
|
3652
|
+
onClick: S,
|
|
3653
|
+
children: /* @__PURE__ */ O.jsx(
|
|
3640
3654
|
_o,
|
|
3641
3655
|
{
|
|
3642
|
-
className: `${
|
|
3656
|
+
className: `${Ke.chevronDownIcon} ${o ? Ke.disable : ""}`,
|
|
3643
3657
|
"aria-hidden": "true"
|
|
3644
3658
|
}
|
|
3645
3659
|
)
|
|
@@ -3647,7 +3661,7 @@ const dc = "_autocomplete_1ue23_1", fc = "_autocompleteContainer_1ue23_4", pc =
|
|
|
3647
3661
|
)
|
|
3648
3662
|
] }),
|
|
3649
3663
|
h ? wn(
|
|
3650
|
-
/* @__PURE__ */
|
|
3664
|
+
/* @__PURE__ */ O.jsx(O.Fragment, { children: w && /* @__PURE__ */ O.jsx(
|
|
3651
3665
|
"div",
|
|
3652
3666
|
{
|
|
3653
3667
|
style: {
|
|
@@ -3656,14 +3670,14 @@ const dc = "_autocomplete_1ue23_1", fc = "_autocompleteContainer_1ue23_4", pc =
|
|
|
3656
3670
|
backgroundColor: "rgba(255,255,255,0)",
|
|
3657
3671
|
zIndex: 1e3
|
|
3658
3672
|
},
|
|
3659
|
-
children: /* @__PURE__ */
|
|
3673
|
+
children: /* @__PURE__ */ O.jsx(
|
|
3660
3674
|
"div",
|
|
3661
3675
|
{
|
|
3662
3676
|
ref: a,
|
|
3663
3677
|
style: {
|
|
3664
3678
|
position: "absolute",
|
|
3665
3679
|
opacity: u.left ? 1 : 0,
|
|
3666
|
-
width:
|
|
3680
|
+
width: d.current ? d.current.clientWidth : "auto",
|
|
3667
3681
|
left: u.left,
|
|
3668
3682
|
top: u.top
|
|
3669
3683
|
},
|
|
@@ -3675,36 +3689,36 @@ const dc = "_autocomplete_1ue23_1", fc = "_autocompleteContainer_1ue23_4", pc =
|
|
|
3675
3689
|
document.body
|
|
3676
3690
|
) : null
|
|
3677
3691
|
] }) });
|
|
3678
|
-
}, Fc = ({ children: e, setQuery: t }) => /* @__PURE__ */
|
|
3692
|
+
}, Fc = ({ children: e, setQuery: t }) => /* @__PURE__ */ O.jsx(
|
|
3679
3693
|
Oo,
|
|
3680
3694
|
{
|
|
3681
3695
|
as: ot,
|
|
3682
|
-
leave:
|
|
3683
|
-
leaveFrom:
|
|
3684
|
-
leaveTo:
|
|
3696
|
+
leave: Ke.leave,
|
|
3697
|
+
leaveFrom: Ke.leaveFrom,
|
|
3698
|
+
leaveTo: Ke.leaveTo,
|
|
3685
3699
|
afterLeave: () => t(""),
|
|
3686
|
-
children: /* @__PURE__ */
|
|
3700
|
+
children: /* @__PURE__ */ O.jsx(Lt.Options, { className: Ke.autocompleteOptions, children: e })
|
|
3687
3701
|
}
|
|
3688
|
-
), yc =
|
|
3702
|
+
), yc = ut((e, t) => /* @__PURE__ */ O.jsx(Lt.Option, { ref: t, className: e.className, value: e.value, disabled: e.disable, children: e.children }));
|
|
3689
3703
|
yc.displayName = "AutoCompleteOption";
|
|
3690
3704
|
const Oc = "_textInputWrapper_gym4n_1", _c = "_textInput_gym4n_1", nr = {
|
|
3691
3705
|
textInputWrapper: Oc,
|
|
3692
3706
|
textInput: _c
|
|
3693
|
-
}, Nc =
|
|
3694
|
-
|
|
3707
|
+
}, Nc = ce.memo(
|
|
3708
|
+
ut(
|
|
3695
3709
|
({ themeColor: e = "", style: t = {}, className: n = "", onFocus: r, onBlur: o, ...c }, i) => {
|
|
3696
|
-
const [
|
|
3710
|
+
const [f, b] = ae(!1);
|
|
3697
3711
|
let v = {};
|
|
3698
3712
|
const m = [nr.textInput, n].filter(Boolean).join(" ");
|
|
3699
|
-
e =
|
|
3713
|
+
e = tt.convert3HexTo6(e);
|
|
3700
3714
|
const h = () => {
|
|
3701
3715
|
b(!0);
|
|
3702
3716
|
}, l = () => {
|
|
3703
3717
|
b(!1);
|
|
3704
3718
|
};
|
|
3705
3719
|
return v = {
|
|
3706
|
-
borderBottomColor:
|
|
3707
|
-
}, /* @__PURE__ */
|
|
3720
|
+
borderBottomColor: f ? e !== "#ffffff" ? e : "#c8c8c8" : ""
|
|
3721
|
+
}, /* @__PURE__ */ O.jsx("div", { className: nr.textInputWrapper, children: /* @__PURE__ */ O.jsx(
|
|
3708
3722
|
"input",
|
|
3709
3723
|
{
|
|
3710
3724
|
type: "text",
|
|
@@ -3721,12 +3735,12 @@ const Oc = "_textInputWrapper_gym4n_1", _c = "_textInput_gym4n_1", nr = {
|
|
|
3721
3735
|
)
|
|
3722
3736
|
);
|
|
3723
3737
|
export {
|
|
3724
|
-
|
|
3738
|
+
jc as AutoComplete,
|
|
3725
3739
|
yc as AutoCompleteOption,
|
|
3726
3740
|
Fc as AutoCompleteOptions,
|
|
3727
3741
|
ir as Button,
|
|
3728
3742
|
ar as Checkbox,
|
|
3729
|
-
|
|
3743
|
+
tt as ColorsService,
|
|
3730
3744
|
Ec as MultiLineInput,
|
|
3731
3745
|
Tc as MultiSelect,
|
|
3732
3746
|
Cc as QuickMultiSelect,
|
|
@@ -3734,7 +3748,7 @@ export {
|
|
|
3734
3748
|
ml as Scrollbar,
|
|
3735
3749
|
Pc as Select,
|
|
3736
3750
|
uc as SelectOption,
|
|
3737
|
-
|
|
3751
|
+
Lc as SelectOptions,
|
|
3738
3752
|
Nc as SingleLineInput
|
|
3739
3753
|
};
|
|
3740
3754
|
//# sourceMappingURL=ui-react.es.js.map
|