@oncehub/ui-react 2.1.8-beta.2 → 2.1.8-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ui-react.es.js +981 -979
- package/dist/ui-react.es.js.map +1 -1
- package/dist/ui-react.umd.js +15 -15
- package/dist/ui-react.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/ui-react.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode("*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.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, 1))}.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, 1))}._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, 1));font-weight:500;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1));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, 1));--tw-bg-opacity: 1;background-color:rgb(200 200 200 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}._secondary_1q2ge_12{--tw-border-opacity: 1;border-color:rgb(0 107 177 / var(--tw-border-opacity, 1));--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));font-weight:400;--tw-text-opacity: 1;color:rgb(0 107 177 / var(--tw-text-opacity, 1))}._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, 1));--tw-text-opacity: 1;color:rgb(200 200 200 / var(--tw-text-opacity, 1))}._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, 1))}._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, 1))}._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, 1));--tw-bg-opacity: 1;background-color:rgb(0 107 177 / var(--tw-bg-opacity, 1))}._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, 1));--tw-bg-opacity: 1;background-color:rgb(249 249 249 / var(--tw-bg-opacity, 1))}._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, 1));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, 1));--tw-bg-opacity: 1;background-color:rgb(249 249 249 / var(--tw-bg-opacity, 1))}._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, 1));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, 1));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, 1));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, 1));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, 1))}._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, 1))}._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, 1));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, 1));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, 1))}._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, 1));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, 1))}._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, 1));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, 1))}._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, 1));--tw-bg-opacity: 1;background-color:rgb(0 107 177 / var(--tw-bg-opacity, 1))}._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, 1));--tw-bg-opacity: 1;background-color:rgb(249 249 249 / var(--tw-bg-opacity, 1))}@keyframes _checkboxUncheckedChecked_z8j4c_1{0%,50%{stroke-dashoffset:23}50%{animation-timing-function:cubic-bezier(0,0,.2,.1)}to{stroke-dashoffset:0}}._multiSelectContainer_1on91_1{position:relative;width:auto}._multiSelectContainer_1on91_1 ._listOptionsWrap_1on91_4{position:relative;width:100%}._multiSelectContainer_1on91_1 ._listOptionsWrap_1on91_4 ._selectedValuesWrap_1on91_7{position:relative;margin-top:1px;height:38px;width:100%}._multiSelectContainer_1on91_1 ._listOptionsWrap_1on91_4 ._selectedValuesWrap_1on91_7 ._selectedValues_1on91_7{position:relative;box-sizing:border-box;display:flex;height:100%;width:100%;cursor:pointer;align-items:center;justify-content:space-between;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(200 200 200 / var(--tw-border-opacity, 1));padding-bottom:.5rem;padding-left:10px;padding-top:.5rem;font-size:14px;line-height:20px;--tw-text-opacity: 1;color:rgb(51 51 51 / var(--tw-text-opacity, 1))}._multiSelectContainer_1on91_1 ._listOptionsWrap_1on91_4 ._selectedValuesWrap_1on91_7 ._selectedValues_1on91_7:focus-within{outline:2px solid transparent;outline-offset:2px}._multiSelectContainer_1on91_1 ._listOptionsWrap_1on91_4 ._selectedValuesWrap_1on91_7 ._selectedValues_1on91_7:focus{padding-bottom:7px}._multiSelectContainer_1on91_1 ._listOptionsWrap_1on91_4 ._selectedValuesWrap_1on91_7 ._selectedValues_1on91_7:focus-visible{outline:2px solid transparent;outline-offset:2px}._multiSelectContainer_1on91_1 ._listOptionsWrap_1on91_4 ._selectedValuesWrap_1on91_7 ._selectedValues_1on91_7:focus{border-bottom:2px solid var(--theme-color, #006bb1)}._multiSelectContainer_1on91_1 ._listOptionsWrap_1on91_4 ._selectedValuesWrap_1on91_7 ._selectedValues_1on91_7._focused_1on91_16{padding-bottom:7px;outline:2px solid transparent;outline-offset:2px}._multiSelectContainer_1on91_1 ._listOptionsWrap_1on91_4 ._selectedValuesWrap_1on91_7 ._selectedValues_1on91_7 ._countAndIconContainer_1on91_19{display:flex;align-items:center}._multiSelectContainer_1on91_1 ._listOptionsWrap_1on91_4 ._selectedValuesWrap_1on91_7 ._selectedValues_1on91_7._rounded_1on91_22{margin-top:0;display:flex;height:2.25rem;align-items:center;border-radius:9999px;border-width:1px;--tw-border-opacity: 1;border-color:rgb(200 200 200 / var(--tw-border-opacity, 1));--tw-bg-opacity: 1;background-color:rgb(244 244 244 / var(--tw-bg-opacity, 1));padding-left:1rem;padding-bottom:.5rem;padding-top:.5rem}._multiSelectContainer_1on91_1 ._listOptionsWrap_1on91_4 ._selectedValuesWrap_1on91_7 ._selectedValues_1on91_7._rounded_1on91_22._focused_1on91_16,._multiSelectContainer_1on91_1 ._listOptionsWrap_1on91_4 ._selectedValuesWrap_1on91_7 ._selectedValues_1on91_7._rounded_1on91_22:hover,._multiSelectContainer_1on91_1 ._listOptionsWrap_1on91_4 ._selectedValuesWrap_1on91_7 ._selectedValues_1on91_7._rounded_1on91_22:focus-visible{border-color:var(--theme-color, #006bb1);box-shadow:0 0 0 1px var(--theme-color, #006bb1)}._multiSelectContainer_1on91_1 ._listOptionsWrap_1on91_4 ._selectedValuesWrap_1on91_7 ._selectedValues_1on91_7._rounded_1on91_22._selected_1on91_7{border:1px solid var(--theme-color, #006bb1);box-shadow:0 0 0 1px var(--theme-color, #006bb1);background-color:color-mix(in srgb,var(--theme-color, #006bb1) 18%,transparent)}._multiSelectContainer_1on91_1 ._listOptionsWrap_1on91_4 ._selectedValuesWrap_1on91_7 ._selectedValues_1on91_7._rounded_1on91_22._selected_1on91_7:hover{background-color:color-mix(in srgb,var(--theme-color, #006bb1) 36%,transparent)}._multiSelectContainer_1on91_1 ._listOptionsWrap_1on91_4 ._selectedValuesWrap_1on91_7 ._selectedCount_1on91_37{margin-left:.5rem;margin-top:1px;box-sizing:border-box;height:22px;min-width:22px;border-radius:9999px;padding-left:7px;padding-right:7px;font-size:14px;font-weight:600;line-height:22px;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1));background-color:var(--theme-color, #006bb1)}._multiSelectContainer_1on91_1 ._listOptionsWrap_1on91_4 ._selectedValuesWrap_1on91_7 ._dropDownIcon_1on91_41{margin-left:.5rem;margin-right:18px;margin-top:0;cursor:pointer}._optionsListContainer_1on91_45{position:absolute;z-index:10;margin-top:0;max-height:293px;width:83%;max-width:367px;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));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_1on91_45:focus{outline:2px solid transparent;outline-offset:2px}@media(max-width:767px){._optionsListContainer_1on91_45{max-width:320px}}._optionsListContainer_1on91_45._top_1on91_48{transform:translateY(calc(-100% - 40px))}._optionsListContainer_1on91_45 ._optionsListWrap_1on91_51{max-height:225px;overflow:auto;padding-top:1rem;padding-bottom:1rem}._optionsListContainer_1on91_45 ._optionsListWrap_1on91_51 ._searchInputWrap_1on91_54{margin-bottom:.5rem;height:2.5rem;padding-left:10px;padding-right:10px}._optionsListContainer_1on91_45 ._optionsListWrap_1on91_51 ._searchInputWrap_1on91_54 ._searchInput_1on91_54{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_1on91_45 ._optionsListWrap_1on91_51 ul{margin:0;padding:0}._optionsListContainer_1on91_45 ._optionsListWrap_1on91_51 ._optionsList_1on91_45{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_1on91_45 ._optionsListWrap_1on91_51 ._optionsList_1on91_45 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_1on91_45 ._optionsListWrap_1on91_51 ._optionsList_1on91_45:hover,._optionsListContainer_1on91_45 ._optionsListWrap_1on91_51 ._optionsList_1on91_45._focused_1on91_16{--tw-bg-opacity: 1;background-color:rgb(238 238 238 / var(--tw-bg-opacity, 1))}._optionsListContainer_1on91_45 ._btnContainer_1on91_76{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, 1));padding-left:18px;padding-right:18px}._optionsListContainer_1on91_45 ._btnContainer_1on91_76 ._hiddenButton_1on91_79{position:absolute;left:-9999px;height:0px;width:0px;opacity:0}._optionsListContainer_1on91_45 ::-webkit-scrollbar{width:6px}._optionsListContainer_1on91_45 ::-webkit-scrollbar-thumb{background-color:#a9a9a9;border-radius:6px}._announcement_1on91_92{pointer-events:none;height:0px;width:58px;overflow:hidden;opacity:0}._multiSelectContainer_1rhxq_1{position:relative}._multiSelectContainer_1rhxq_1 ._quickOptionsWrap_1rhxq_4{margin-right:-.75rem;display:flex;flex-direction:row;flex-wrap:wrap;gap:.75rem}._multiSelectContainer_1rhxq_1 ._quickOptionsWrap_1rhxq_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, 1));background-color:transparent;padding:8px 14px;font-size:1rem;line-height:1.5rem;--tw-text-opacity: 1;color:rgb(0 107 177 / var(--tw-text-opacity, 1))}._multiSelectContainer_1rhxq_1 ._quickOptionsWrap_1rhxq_4 li:hover,._multiSelectContainer_1rhxq_1 ._quickOptionsWrap_1rhxq_4 li:focus-visible,._multiSelectContainer_1rhxq_1 ._quickOptionsWrap_1rhxq_4 li._selected_1rhxq_11{outline-style:solid;outline-width:2px;outline-offset:-2px;outline-color:#006bb1}._multiSelectContainer_1rhxq_1 ._quickOptionsWrap_1rhxq_4 li:hover,._multiSelectContainer_1rhxq_1 ._quickOptionsWrap_1rhxq_4 li:focus-visible{text-decoration-line:underline}._multiSelectContainer_1rhxq_1 ._quickOptionsWrap_1rhxq_4 li._disabled_1rhxq_17{pointer-events:none!important;cursor:default!important;--tw-border-opacity: 1 !important;border-color:rgb(228 228 228 / var(--tw-border-opacity, 1))!important;--tw-text-opacity: 1 !important;color:rgb(51 51 51 / var(--tw-text-opacity, 1))!important;text-decoration-line:none!important;outline-width:0px!important}._singleSelectWrapper_7i31h_1{position:relative}._singleSelectWrapper_7i31h_1 ._quickOption_7i31h_4{display:flex;flex-direction:row;flex-wrap:wrap;gap:.75rem}._singleSelectWrapper_7i31h_1 ._quickOption_7i31h_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;border-radius:4px;border-width:1px;border-style:solid;--tw-border-opacity: 1;border-color:rgb(0 107 177 / var(--tw-border-opacity, 1));background-color:transparent;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, 1));word-break:break-word}._singleSelectWrapper_7i31h_1 ._quickOption_7i31h_4 li:hover,._singleSelectWrapper_7i31h_1 ._quickOption_7i31h_4 li:focus-visible,._singleSelectWrapper_7i31h_1 ._quickOption_7i31h_4 li._selected_7i31h_11{outline-style:solid;outline-width:2px;outline-offset:-2px;outline-color:#006bb1}._singleSelectWrapper_7i31h_1 ._quickOption_7i31h_4 li:hover,._singleSelectWrapper_7i31h_1 ._quickOption_7i31h_4 li:focus-visible{text-decoration-line:underline}._singleSelectWrapper_7i31h_1 ._quickOption_7i31h_4 li ._triangle_7i31h_17{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, 1));--tw-border-opacity: 1;border-top-color:rgb(0 107 177 / var(--tw-border-opacity, 1))}._singleSelectWrapper_7i31h_1 ._quickOption_7i31h_4 li ._triangle_7i31h_17 ._loader_7i31h_20{position:absolute;left:0;top:-10px;height:10px;width:10px}@keyframes _tw-spin_7i31h_1{to{transform:rotate(360deg)}}._singleSelectWrapper_7i31h_1 ._quickOption_7i31h_4 li ._triangle_7i31h_17 ._loader_7i31h_20{animation:_tw-spin_7i31h_1 1s linear infinite;border-radius:50%;border-width:2px;border-style:solid;border-color:rgb(255 255 255 / var(--tw-border-opacity, 1));--tw-border-opacity: 1;border-right-color:rgb(0 107 177 / var(--tw-border-opacity, 1))}._singleSelectWrapper_7i31h_1 ._quickOption_7i31h_4 li ._triangle_7i31h_17 ._checkmarkWrap_7i31h_23{position:absolute;left:-1px;top:-9px}._singleSelectWrapper_7i31h_1 ._quickOption_7i31h_4 li ._triangle_7i31h_17 ._checkmarkWrap_7i31h_23 ._checkmark_7i31h_23{display:block;animation:_fill_7i31h_1 .4s ease-in-out .4s forwards,_scale_7i31h_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_7i31h_1 ._quickOption_7i31h_4 li ._triangle_7i31h_17 ._checkmarkWrap_7i31h_23 ._checkmark_7i31h_23 ._checkmarkCheck_7i31h_30{transform-origin:50% 50%;animation:_stroke_7i31h_1 .8s cubic-bezier(.5,0,.45,1) .2s forwards;stroke-dasharray:48;stroke-dashoffset:48}._singleSelectWrapper_7i31h_1 ._quickOption_7i31h_4 li._disabled_7i31h_35{pointer-events:none!important;cursor:default!important;--tw-border-opacity: 1 !important;border-color:rgb(228 228 228 / var(--tw-border-opacity, 1))!important;--tw-text-opacity: 1 !important;color:rgb(51 51 51 / var(--tw-text-opacity, 1))!important;text-decoration-line:none!important;outline-width:0px!important}@keyframes _scale_7i31h_1{0%,to{transform:none}50%{transform:scale3d(1.1,1.1,1)}}@keyframes _fill_7i31h_1{to{box-shadow:inset 0 0 0 30px transparent}}@keyframes _stroke_7i31h_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_fcnvh_1,._select_fcnvh_1 ._selectContainer_fcnvh_4{position:relative}._select_fcnvh_1 ._selectContainer_fcnvh_4 ._selectButton_fcnvh_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, 1));background-color:transparent;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, 1))}._select_fcnvh_1 ._selectContainer_fcnvh_4 ._selectButton_fcnvh_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, 1));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_fcnvh_1 ._selectContainer_fcnvh_4 ._selectButton_fcnvh_7._open_fcnvh_13{border-bottom-width:2px;border-top-width:2px;--tw-border-opacity: 1;border-bottom-color:rgb(0 107 177 / var(--tw-border-opacity, 1))}._select_fcnvh_1 ._selectContainer_fcnvh_4 ._selectButton_fcnvh_7 ._selectValue_fcnvh_16{display:flex;align-items:center}._select_fcnvh_1 ._selectContainer_fcnvh_4 ._selectButton_fcnvh_7 ._selectValue_fcnvh_16._placeholder_fcnvh_19{--tw-text-opacity: 1;color:rgb(102 102 102 / var(--tw-text-opacity, 1))}._select_fcnvh_1 ._selectContainer_fcnvh_4 ._selectButton_fcnvh_7 ._selectValue_fcnvh_16 ._seletIcon_fcnvh_22{margin-right:.5rem;height:1.25rem;width:1.25rem;flex-shrink:0}._select_fcnvh_1 ._selectContainer_fcnvh_4 ._selectButton_fcnvh_7 ._selectValue_fcnvh_16 ._selectText_fcnvh_25{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._select_fcnvh_1 ._selectContainer_fcnvh_4 ._selectButton_fcnvh_7 ._chevronDownIconSpan_fcnvh_28{pointer-events:none;position:absolute;top:0;bottom:0;right:0;display:flex;align-items:center;padding-right:.5rem}._select_fcnvh_1 ._selectContainer_fcnvh_4 ._selectButton_fcnvh_7 ._chevronDownIconSpan_fcnvh_28 ._chevronDownIcon_fcnvh_28{height:1.25rem;width:1.25rem;--tw-text-opacity: 1;color:rgb(51 51 51 / var(--tw-text-opacity, 1))}._leave_fcnvh_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_fcnvh_39{opacity:1}._leaveTo_fcnvh_43{opacity:0}._selectOptions_fcnvh_47{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, 1));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_fcnvh_47{font-size:.875rem;line-height:1.25rem}}._selectOptions_fcnvh_47::-webkit-scrollbar-thumb{border-radius:.375rem;--tw-bg-opacity: 1;background-color:rgb(169 169 169 / var(--tw-bg-opacity, 1))}._selectOptions_fcnvh_47::-webkit-scrollbar{width:6px}._selectOptions_fcnvh_47:focus{outline:2px solid transparent;outline-offset:2px}._autocomplete_29ukn_1{position:relative}._autocomplete_29ukn_1 ._autocompleteContainer_29ukn_4{position:relative;height:2.5rem;width:100%;cursor:default;overflow:hidden;background-color:transparent;text-align:left;--tw-text-opacity: 1;color:rgb(51 51 51 / var(--tw-text-opacity, 1))}._autocomplete_29ukn_1 ._autocompleteContainer_29ukn_4._disable_29ukn_7{--tw-text-opacity: 1;color:rgb(167 167 167 / var(--tw-text-opacity, 1))}._autocomplete_29ukn_1 ._autocompleteContainer_29ukn_4:focus{outline:2px solid transparent;outline-offset:2px}._autocomplete_29ukn_1 ._autocompleteContainer_29ukn_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, 1));--tw-ring-offset-width: 2px;--tw-ring-offset-color: #DFDFDF }._autocomplete_29ukn_1 ._autocompleteContainer_29ukn_4 ._autocompleteInput_29ukn_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, 1));background-color:transparent;padding-bottom:.5rem;padding-left:10px;padding-right:2.5rem;padding-top:.5rem;font-size:1rem;line-height:1.25rem}._autocomplete_29ukn_1 ._autocompleteContainer_29ukn_4 ._autocompleteInput_29ukn_16::placeholder{--tw-placeholder-opacity: 1;color:rgb(102 102 102 / var(--tw-placeholder-opacity, 1))}._autocomplete_29ukn_1 ._autocompleteContainer_29ukn_4 ._autocompleteInput_29ukn_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_29ukn_1 ._autocompleteContainer_29ukn_4 ._autocompleteInput_29ukn_16:focus{border-bottom-width:2px;--tw-border-opacity: 1;border-bottom-color:rgb(0 107 177 / var(--tw-border-opacity, 1));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_29ukn_1 ._autocompleteContainer_29ukn_4 ._autocompleteInput_29ukn_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_29ukn_1 ._autocompleteContainer_29ukn_4 ._autocompleteInput_29ukn_16[data-focus]{border-bottom-width:2px;--tw-border-opacity: 1;border-bottom-color:rgb(0 107 177 / var(--tw-border-opacity, 1));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_29ukn_1 ._autocompleteContainer_29ukn_4 ._autocompleteInput_29ukn_16[data-disabled]{cursor:not-allowed;--tw-text-opacity: 1;color:rgb(167 167 167 / var(--tw-text-opacity, 1))}._autocomplete_29ukn_1 ._autocompleteContainer_29ukn_4 ._autocompleteButton_29ukn_34{position:absolute;top:0;bottom:0;right:0;display:flex;align-items:center;border-width:0px;background-color:transparent;padding-right:.5rem}._autocomplete_29ukn_1 ._autocompleteContainer_29ukn_4 ._autocompleteButton_29ukn_34[data-focus]{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(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(0 107 177 / var(--tw-ring-opacity, 1));--tw-ring-offset-width: 1px }._autocomplete_29ukn_1 ._autocompleteContainer_29ukn_4 ._autocompleteButton_29ukn_34[data-disabled]{cursor:not-allowed}._autocomplete_29ukn_1 ._autocompleteContainer_29ukn_4 ._autocompleteButton_29ukn_34 ._chevronDownIcon_29ukn_44{height:1.25rem;width:1.25rem;--tw-text-opacity: 1;color:rgb(51 51 51 / var(--tw-text-opacity, 1));transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.2s}._autocomplete_29ukn_1 ._autocompleteContainer_29ukn_4 ._autocompleteButton_29ukn_34 ._chevronDownIcon_29ukn_44._disable_29ukn_7{--tw-text-opacity: 1;color:rgb(167 167 167 / var(--tw-text-opacity, 1))}._autocomplete_29ukn_1 ._autocompleteContainer_29ukn_4 ._autocompleteButton_29ukn_34[data-open] ._chevronDownIcon_29ukn_44{--tw-rotate: 180deg;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))}._leave_29ukn_57{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_29ukn_61{opacity:1}._leaveTo_29ukn_65{opacity:0}._autocompleteOptions_29ukn_69{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, 1));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_29ukn_69{font-size:.875rem;line-height:1.25rem}}._autocompleteOptions_29ukn_69::-webkit-scrollbar-thumb{border-radius:.375rem;--tw-bg-opacity: 1;background-color:rgb(169 169 169 / var(--tw-bg-opacity, 1))}._autocompleteOptions_29ukn_69::-webkit-scrollbar{width:6px}._autocompleteOptions_29ukn_69[data-transition]{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:.2s;transition-timing-function:cubic-bezier(0,0,.2,1)}._autocompleteOptions_29ukn_69[data-closed]{--tw-scale-x: .95;--tw-scale-y: .95;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));opacity:0}._autocompleteOptions_29ukn_69[data-open]{--tw-scale-x: 1;--tw-scale-y: 1;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));opacity:1}._autocompleteOptions_29ukn_69: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, 1));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, 1));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, 1));padding-bottom:7px}._phoneWrapper_dwcpz_1{display:flex;max-width:380px;align-items:center;justify-content:space-between;gap:.75rem}._phoneWrapper_dwcpz_1 ._countryCode_dwcpz_4{height:2.5rem;width:100%;max-width:110px}._phoneWrapper_dwcpz_1 ._countryCode_dwcpz_4 button{height:2.5rem;background-color:transparent;padding-left:10px;font-weight:400;background:transparent!important}._phoneWrapper_dwcpz_1 ._phoneInputWrap_dwcpz_11{width:100%}._phoneWrapper_dwcpz_1 ._phoneInputWrap_dwcpz_11 ._phoneInput_dwcpz_11{box-sizing:border-box;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, 1));background-color:transparent;padding-left:3px;padding-right:3px;font-size:1rem;line-height:1.5rem;--tw-text-opacity: 1;color:rgb(51 51 51 / var(--tw-text-opacity, 1))}._phoneWrapper_dwcpz_1 ._phoneInputWrap_dwcpz_11 ._phoneInput_dwcpz_11::placeholder{--tw-placeholder-opacity: 1;color:rgb(102 102 102 / var(--tw-placeholder-opacity, 1))}._phoneWrapper_dwcpz_1 ._phoneInputWrap_dwcpz_11 ._phoneInput_dwcpz_11{outline:2px solid transparent;outline-offset:2px}._phoneWrapper_dwcpz_1 ._phoneInputWrap_dwcpz_11 ._phoneInput_dwcpz_11:focus{border-bottom-width:2px;--tw-border-opacity: 1;border-color:rgb(0 107 177 / var(--tw-border-opacity, 1))}._phoneWrapper_dwcpz_1 ._phoneInputWrap_dwcpz_11 ._phoneInput_dwcpz_11._serverError_dwcpz_17:focus{--tw-border-opacity: 1;border-bottom-color:rgb(245 77 77 / var(--tw-border-opacity, 1))}._phonNumberList_dwcpz_21{min-width:286px}._phonNumberList_dwcpz_21>div{width:auto}._phonNumberList_dwcpz_21>div>div{position:relative;cursor:default;user-select:none;padding-left:10px;padding-right:10px;padding-top:.5rem;padding-bottom:.5rem}._phonNumberList_dwcpz_21>div>div[data-focus=true],._phonNumberList_dwcpz_21>div>div[data-selected=true],._phonNumberList_dwcpz_21>div>div._active_dwcpz_30,._phonNumberList_dwcpz_21>div>div:hover{--tw-bg-opacity: 1;background-color:rgb(238 238 238 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(51 51 51 / var(--tw-text-opacity, 1))}._phonNumberList_dwcpz_21>div>div ._countryListText_dwcpz_33{display:flex;align-items:center}._phonNumberList_dwcpz_21>div>div ._countryListText_dwcpz_33>span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:400}._phonNumberList_dwcpz_21 ul{width:auto}._phonNumberList_dwcpz_21 ul li{position:relative;cursor:default;user-select:none;padding-left:10px;padding-right:10px;padding-top:.5rem;padding-bottom:.5rem}._phonNumberList_dwcpz_21 ul li._active_dwcpz_30{--tw-bg-opacity: 1;background-color:rgb(238 238 238 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(51 51 51 / var(--tw-text-opacity, 1))}._phonNumberList_dwcpz_21 ul li ._countryListText_dwcpz_33{display:flex;align-items:center}._phonNumberList_dwcpz_21 ul li ._countryListText_dwcpz_33>span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:400}._progress_1piqy_1{position:relative;overflow:hidden;max-width:100%;width:100%;margin:0 auto}._progress-bar_1piqy_9{position:absolute;display:block;left:-60%;width:60%;animation-duration:2s;animation-timing-function:linear;animation-iteration-count:infinite}._radioWrapper_e4gpr_1{display:flex;flex-direction:column}._radioWrapper_e4gpr_1 ._radioBtnBox_e4gpr_4{position:relative;display:flex;align-items:center}._radioWrapper_e4gpr_1 ._radioBtnBox_e4gpr_4 ._radioBtnLabel_e4gpr_7{margin-top:7px;margin-bottom:7px;display:flex;cursor:pointer}._radioWrapper_e4gpr_1 ._radioBtnBox_e4gpr_4 ._radioBtnLabel_e4gpr_7 ._radioBtnInsideLabel_e4gpr_10{position:relative;margin-right:10px;height:1.25rem;width:1.25rem}._radioWrapper_e4gpr_1 ._radioBtnBox_e4gpr_4 ._radioBtnLabel_e4gpr_7 ._radioBtnInput_e4gpr_13{position:absolute;height:0px;width:0px;opacity:0}._radioWrapper_e4gpr_1 ._radioBtnBox_e4gpr_4 ._radioBtnLabel_e4gpr_7 ._radioBtnAvatar_e4gpr_16{margin-right:9px;height:1.25rem;width:1.25rem}._radioWrapper_e4gpr_1 ._radioBtnBox_e4gpr_4 ._radioBtnLabel_e4gpr_7 ._radioBtnAvatar_e4gpr_16 img{margin-top:1px;height:1.25rem;width:1.25rem;min-width:20px}._radioWrapper_e4gpr_1 ._radioBtnBox_e4gpr_4 ._radioBtnLabel_e4gpr_7 ._radioBtnText_e4gpr_23{font-size:1rem;line-height:1.5rem;font-size:16px;line-height:22px;word-break:break-word}._radioWrapper_e4gpr_1 ._radioBtnBox_e4gpr_4 ._radioBtnLabel_e4gpr_7 ._radioBtnCircle_e4gpr_27{position:relative;margin-top:1px;display:inline-block;height:1.25rem;width:1.25rem;border-radius:9999px;border-width:1px;border-style:solid}._radioWrapper_e4gpr_1 ._radioBtnBox_e4gpr_4 ._radioBtnLabel_e4gpr_7 ._radioBtnCircle_e4gpr_27._radioBtnChecked_e4gpr_30{border-width:2px}._radioWrapper_e4gpr_1 ._radioBtnBox_e4gpr_4 ._radioBtnLabel_e4gpr_7 ._radioBtnCircleInside_e4gpr_33{position:absolute;left:50%;top:50%;margin-left:-5px;margin-top:-5px;height:10px;width:10px;border-radius:9999px}")),document.head.appendChild(t)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
|
|
2
2
|
import * as ne from "react";
|
|
3
|
-
import
|
|
3
|
+
import M, { forwardRef as Yt, useState as oe, useEffect as he, useRef as X, useCallback as pe, useMemo as _e, useLayoutEffect as So, useContext as Ie, createContext as Me, isValidElement as Oo, cloneElement as Ul, createElement as xc, Fragment as lt, useId as st, useSyncExternalStore as Cc } from "react";
|
|
4
4
|
import * as Lr from "react-dom";
|
|
5
5
|
import { createPortal as Pn, flushSync as vt } from "react-dom";
|
|
6
6
|
function Hl(e) {
|
|
@@ -54,7 +54,7 @@ function Sc() {
|
|
|
54
54
|
function e(C) {
|
|
55
55
|
if (C == null) return null;
|
|
56
56
|
if (typeof C == "function")
|
|
57
|
-
return C.$$typeof ===
|
|
57
|
+
return C.$$typeof === U ? null : C.displayName || C.name || null;
|
|
58
58
|
if (typeof C == "string") return C;
|
|
59
59
|
switch (C) {
|
|
60
60
|
case v:
|
|
@@ -63,9 +63,9 @@ function Sc() {
|
|
|
63
63
|
return "Profiler";
|
|
64
64
|
case w:
|
|
65
65
|
return "StrictMode";
|
|
66
|
-
case
|
|
66
|
+
case O:
|
|
67
67
|
return "Suspense";
|
|
68
|
-
case
|
|
68
|
+
case D:
|
|
69
69
|
return "SuspenseList";
|
|
70
70
|
case _:
|
|
71
71
|
return "Activity";
|
|
@@ -81,14 +81,14 @@ function Sc() {
|
|
|
81
81
|
case b:
|
|
82
82
|
return (C._context.displayName || "Context") + ".Consumer";
|
|
83
83
|
case y:
|
|
84
|
-
var
|
|
85
|
-
return C = C.displayName, C || (C =
|
|
86
|
-
case
|
|
87
|
-
return
|
|
84
|
+
var T = C.render;
|
|
85
|
+
return C = C.displayName, C || (C = T.displayName || T.name || "", C = C !== "" ? "ForwardRef(" + C + ")" : "ForwardRef"), C;
|
|
86
|
+
case K:
|
|
87
|
+
return T = C.displayName || null, T !== null ? T : e(C.type) || "Memo";
|
|
88
88
|
case F:
|
|
89
|
-
|
|
89
|
+
T = C._payload, C = C._init;
|
|
90
90
|
try {
|
|
91
|
-
return e(C(
|
|
91
|
+
return e(C(T));
|
|
92
92
|
} catch {
|
|
93
93
|
}
|
|
94
94
|
}
|
|
@@ -100,15 +100,15 @@ function Sc() {
|
|
|
100
100
|
function n(C) {
|
|
101
101
|
try {
|
|
102
102
|
t(C);
|
|
103
|
-
var
|
|
103
|
+
var T = !1;
|
|
104
104
|
} catch {
|
|
105
|
-
|
|
105
|
+
T = !0;
|
|
106
106
|
}
|
|
107
|
-
if (
|
|
108
|
-
|
|
109
|
-
var
|
|
110
|
-
return
|
|
111
|
-
|
|
107
|
+
if (T) {
|
|
108
|
+
T = console;
|
|
109
|
+
var L = T.error, W = typeof Symbol == "function" && Symbol.toStringTag && C[Symbol.toStringTag] || C.constructor.name || "Object";
|
|
110
|
+
return L.call(
|
|
111
|
+
T,
|
|
112
112
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
113
113
|
W
|
|
114
114
|
), t(C);
|
|
@@ -119,35 +119,35 @@ function Sc() {
|
|
|
119
119
|
if (typeof C == "object" && C !== null && C.$$typeof === F)
|
|
120
120
|
return "<...>";
|
|
121
121
|
try {
|
|
122
|
-
var
|
|
123
|
-
return
|
|
122
|
+
var T = e(C);
|
|
123
|
+
return T ? "<" + T + ">" : "<...>";
|
|
124
124
|
} catch {
|
|
125
125
|
return "<...>";
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
128
|
function i() {
|
|
129
|
-
var C =
|
|
129
|
+
var C = j.A;
|
|
130
130
|
return C === null ? null : C.getOwner();
|
|
131
131
|
}
|
|
132
132
|
function o() {
|
|
133
133
|
return Error("react-stack-top-frame");
|
|
134
134
|
}
|
|
135
135
|
function a(C) {
|
|
136
|
-
if (
|
|
137
|
-
var
|
|
138
|
-
if (
|
|
136
|
+
if (z.call(C, "key")) {
|
|
137
|
+
var T = Object.getOwnPropertyDescriptor(C, "key").get;
|
|
138
|
+
if (T && T.isReactWarning) return !1;
|
|
139
139
|
}
|
|
140
140
|
return C.key !== void 0;
|
|
141
141
|
}
|
|
142
|
-
function d(C,
|
|
143
|
-
function
|
|
144
|
-
|
|
142
|
+
function d(C, T) {
|
|
143
|
+
function L() {
|
|
144
|
+
Q || (Q = !0, console.error(
|
|
145
145
|
"%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://react.dev/link/special-props)",
|
|
146
|
-
|
|
146
|
+
T
|
|
147
147
|
));
|
|
148
148
|
}
|
|
149
|
-
|
|
150
|
-
get:
|
|
149
|
+
L.isReactWarning = !0, Object.defineProperty(C, "key", {
|
|
150
|
+
get: L,
|
|
151
151
|
configurable: !0
|
|
152
152
|
});
|
|
153
153
|
}
|
|
@@ -157,15 +157,15 @@ function Sc() {
|
|
|
157
157
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
158
158
|
)), C = this.props.ref, C !== void 0 ? C : null;
|
|
159
159
|
}
|
|
160
|
-
function s(C,
|
|
161
|
-
var
|
|
160
|
+
function s(C, T, L, W, k, R) {
|
|
161
|
+
var V = L.ref;
|
|
162
162
|
return C = {
|
|
163
163
|
$$typeof: c,
|
|
164
164
|
type: C,
|
|
165
|
-
key:
|
|
166
|
-
props:
|
|
165
|
+
key: T,
|
|
166
|
+
props: L,
|
|
167
167
|
_owner: W
|
|
168
|
-
}, (
|
|
168
|
+
}, (V !== void 0 ? V : null) !== null ? Object.defineProperty(C, "ref", {
|
|
169
169
|
enumerable: !1,
|
|
170
170
|
get: l
|
|
171
171
|
}) : Object.defineProperty(C, "ref", { enumerable: !1, value: null }), C._store = {}, Object.defineProperty(C._store, "validated", {
|
|
@@ -182,7 +182,7 @@ function Sc() {
|
|
|
182
182
|
configurable: !1,
|
|
183
183
|
enumerable: !1,
|
|
184
184
|
writable: !0,
|
|
185
|
-
value:
|
|
185
|
+
value: k
|
|
186
186
|
}), Object.defineProperty(C, "_debugTask", {
|
|
187
187
|
configurable: !1,
|
|
188
188
|
enumerable: !1,
|
|
@@ -190,25 +190,25 @@ function Sc() {
|
|
|
190
190
|
value: R
|
|
191
191
|
}), Object.freeze && (Object.freeze(C.props), Object.freeze(C)), C;
|
|
192
192
|
}
|
|
193
|
-
function p(C,
|
|
194
|
-
var
|
|
195
|
-
if (
|
|
193
|
+
function p(C, T, L, W, k, R) {
|
|
194
|
+
var V = T.children;
|
|
195
|
+
if (V !== void 0)
|
|
196
196
|
if (W)
|
|
197
|
-
if (
|
|
198
|
-
for (W = 0; W <
|
|
199
|
-
m(
|
|
200
|
-
Object.freeze && Object.freeze(
|
|
197
|
+
if (Z(V)) {
|
|
198
|
+
for (W = 0; W < V.length; W++)
|
|
199
|
+
m(V[W]);
|
|
200
|
+
Object.freeze && Object.freeze(V);
|
|
201
201
|
} else
|
|
202
202
|
console.error(
|
|
203
203
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
204
204
|
);
|
|
205
|
-
else m(
|
|
206
|
-
if (
|
|
207
|
-
|
|
208
|
-
var
|
|
205
|
+
else m(V);
|
|
206
|
+
if (z.call(T, "key")) {
|
|
207
|
+
V = e(C);
|
|
208
|
+
var q = Object.keys(T).filter(function(le) {
|
|
209
209
|
return le !== "key";
|
|
210
210
|
});
|
|
211
|
-
W = 0 <
|
|
211
|
+
W = 0 < q.length ? "{key: someKey, " + q.join(": ..., ") + ": ...}" : "{key: someKey}", N[V + W] || (q = 0 < q.length ? "{" + q.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
212
212
|
`A props object containing a "key" prop is being spread into JSX:
|
|
213
213
|
let props = %s;
|
|
214
214
|
<%s {...props} />
|
|
@@ -216,25 +216,25 @@ React keys must be passed directly to JSX without using spread:
|
|
|
216
216
|
let props = %s;
|
|
217
217
|
<%s key={someKey} {...props} />`,
|
|
218
218
|
W,
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
), N[
|
|
219
|
+
V,
|
|
220
|
+
q,
|
|
221
|
+
V
|
|
222
|
+
), N[V + W] = !0);
|
|
223
223
|
}
|
|
224
|
-
if (
|
|
225
|
-
|
|
226
|
-
for (var ie in
|
|
227
|
-
ie !== "key" && (
|
|
228
|
-
} else
|
|
229
|
-
return
|
|
230
|
-
|
|
224
|
+
if (V = null, L !== void 0 && (n(L), V = "" + L), a(T) && (n(T.key), V = "" + T.key), "key" in T) {
|
|
225
|
+
L = {};
|
|
226
|
+
for (var ie in T)
|
|
227
|
+
ie !== "key" && (L[ie] = T[ie]);
|
|
228
|
+
} else L = T;
|
|
229
|
+
return V && d(
|
|
230
|
+
L,
|
|
231
231
|
typeof C == "function" ? C.displayName || C.name || "Unknown" : C
|
|
232
232
|
), s(
|
|
233
233
|
C,
|
|
234
|
-
|
|
235
|
-
|
|
234
|
+
V,
|
|
235
|
+
L,
|
|
236
236
|
i(),
|
|
237
|
-
|
|
237
|
+
k,
|
|
238
238
|
R
|
|
239
239
|
);
|
|
240
240
|
}
|
|
@@ -244,7 +244,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
244
244
|
function u(C) {
|
|
245
245
|
return typeof C == "object" && C !== null && C.$$typeof === c;
|
|
246
246
|
}
|
|
247
|
-
var f =
|
|
247
|
+
var f = M, c = Symbol.for("react.transitional.element"), h = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), w = Symbol.for("react.strict_mode"), E = Symbol.for("react.profiler"), b = Symbol.for("react.consumer"), x = Symbol.for("react.context"), y = Symbol.for("react.forward_ref"), O = Symbol.for("react.suspense"), D = Symbol.for("react.suspense_list"), K = Symbol.for("react.memo"), F = Symbol.for("react.lazy"), _ = Symbol.for("react.activity"), U = Symbol.for("react.client.reference"), j = f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, z = Object.prototype.hasOwnProperty, Z = Array.isArray, H = console.createTask ? console.createTask : function() {
|
|
248
248
|
return null;
|
|
249
249
|
};
|
|
250
250
|
f = {
|
|
@@ -252,29 +252,29 @@ React keys must be passed directly to JSX without using spread:
|
|
|
252
252
|
return C();
|
|
253
253
|
}
|
|
254
254
|
};
|
|
255
|
-
var
|
|
255
|
+
var Q, re = {}, ee = f.react_stack_bottom_frame.bind(
|
|
256
256
|
f,
|
|
257
257
|
o
|
|
258
|
-
)(),
|
|
259
|
-
Ln.Fragment = v, Ln.jsx = function(C,
|
|
260
|
-
var W = 1e4 >
|
|
258
|
+
)(), J = H(r(o)), N = {};
|
|
259
|
+
Ln.Fragment = v, Ln.jsx = function(C, T, L) {
|
|
260
|
+
var W = 1e4 > j.recentlyCreatedOwnerStacks++;
|
|
261
261
|
return p(
|
|
262
262
|
C,
|
|
263
|
-
|
|
264
|
-
|
|
263
|
+
T,
|
|
264
|
+
L,
|
|
265
265
|
!1,
|
|
266
|
-
W ? Error("react-stack-top-frame") :
|
|
267
|
-
W ? H(r(C)) :
|
|
266
|
+
W ? Error("react-stack-top-frame") : ee,
|
|
267
|
+
W ? H(r(C)) : J
|
|
268
268
|
);
|
|
269
|
-
}, Ln.jsxs = function(C,
|
|
270
|
-
var W = 1e4 >
|
|
269
|
+
}, Ln.jsxs = function(C, T, L) {
|
|
270
|
+
var W = 1e4 > j.recentlyCreatedOwnerStacks++;
|
|
271
271
|
return p(
|
|
272
272
|
C,
|
|
273
|
-
|
|
274
|
-
|
|
273
|
+
T,
|
|
274
|
+
L,
|
|
275
275
|
!0,
|
|
276
|
-
W ? Error("react-stack-top-frame") :
|
|
277
|
-
W ? H(r(C)) :
|
|
276
|
+
W ? Error("react-stack-top-frame") : ee,
|
|
277
|
+
W ? H(r(C)) : J
|
|
278
278
|
);
|
|
279
279
|
};
|
|
280
280
|
})()), Ln;
|
|
@@ -471,7 +471,7 @@ var te = {}, jn = { exports: {} }, Xc = jn.exports, Va;
|
|
|
471
471
|
function Zc() {
|
|
472
472
|
return Va || (Va = 1, (function(e, t) {
|
|
473
473
|
(function(n, r) {
|
|
474
|
-
var i = "1.0.41", o = "", a = "?", d = "function", l = "undefined", s = "object", p = "string", m = "major", u = "model", f = "name", c = "type", h = "vendor", v = "version", w = "architecture", E = "console", b = "mobile", x = "tablet", y = "smarttv",
|
|
474
|
+
var i = "1.0.41", o = "", a = "?", d = "function", l = "undefined", s = "object", p = "string", m = "major", u = "model", f = "name", c = "type", h = "vendor", v = "version", w = "architecture", E = "console", b = "mobile", x = "tablet", y = "smarttv", O = "wearable", D = "embedded", K = 500, F = "Amazon", _ = "Apple", U = "ASUS", j = "BlackBerry", z = "Browser", Z = "Chrome", H = "Edge", Q = "Firefox", re = "Google", ee = "Honor", J = "Huawei", N = "Lenovo", C = "LG", T = "Microsoft", L = "Motorola", W = "Nvidia", k = "OnePlus", R = "Opera", V = "OPPO", q = "Samsung", ie = "Sharp", le = "Sony", ce = "Xiaomi", P = "Zebra", ae = "Facebook", Te = "Chromium OS", B = "Mac OS", se = " Browser", Se = function(ve, $e) {
|
|
475
475
|
var fe = {};
|
|
476
476
|
for (var Oe in ve)
|
|
477
477
|
$e[Oe] && $e[Oe].length % 2 === 0 ? fe[Oe] = $e[Oe].concat(ve[Oe]) : fe[Oe] = ve[Oe];
|
|
@@ -488,7 +488,7 @@ function Zc() {
|
|
|
488
488
|
return typeof ve === p ? ve.replace(/[^\d\.]/g, o).split(".")[0] : r;
|
|
489
489
|
}, it = function(ve, $e) {
|
|
490
490
|
if (typeof ve === p)
|
|
491
|
-
return ve = ve.replace(/^\s\s*/, o), typeof $e === l ? ve : ve.substring(0,
|
|
491
|
+
return ve = ve.replace(/^\s\s*/, o), typeof $e === l ? ve : ve.substring(0, K);
|
|
492
492
|
}, ut = function(ve, $e) {
|
|
493
493
|
for (var fe = 0, Oe, ot, ze, ye, ue, et; fe < $e.length && !ue; ) {
|
|
494
494
|
var un = $e[fe], kn = $e[fe + 1];
|
|
@@ -507,7 +507,7 @@ function Zc() {
|
|
|
507
507
|
} else if (Ae($e[fe], ve))
|
|
508
508
|
return fe === a ? r : fe;
|
|
509
509
|
return $e.hasOwnProperty("*") ? $e["*"] : ve;
|
|
510
|
-
}, yt = { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }, Rn = { 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" }, Fn = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [v, [f, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [v, [f, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [f, v], [/opios[\/ ]+([\w\.]+)/i], [v, [f, R + " Mini"]], [/\bop(?:rg)?x\/([\w\.]+)/i], [v, [f, R + " GX"]], [/\bopr\/([\w\.]+)/i], [v, [f, R]], [/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i], [v, [f, "Baidu"]], [/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i], [v, [f, "Maxthon"]], [/(kindle)\/([\w\.]+)/i, /(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i, /(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i, /(?:ms|\()(ie) ([\w\.]+)/i, /(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i, /(heytap|ovi|115)browser\/([\d\.]+)/i, /(weibo)__([\d\.]+)/i], [f, v], [/quark(?:pc)?\/([-\w\.]+)/i], [v, [f, "Quark"]], [/\bddg\/([\w\.]+)/i], [v, [f, "DuckDuckGo"]], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [v, [f, "UC" + X]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i, /micromessenger\/([\w\.]+)/i], [v, [f, "WeChat"]], [/konqueror\/([\w\.]+)/i], [v, [f, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [v, [f, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [v, [f, "Yandex"]], [/slbrowser\/([\w\.]+)/i], [v, [f, "Smart Lenovo " + X]], [/(avast|avg)\/([\w\.]+)/i], [[f, /(.+)/, "$1 Secure " + X], v], [/\bfocus\/([\w\.]+)/i], [v, [f, Z + " Focus"]], [/\bopt\/([\w\.]+)/i], [v, [f, R + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [v, [f, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [v, [f, "Dolphin"]], [/coast\/([\w\.]+)/i], [v, [f, R + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [v, [f, "MIUI" + se]], [/fxios\/([\w\.-]+)/i], [v, [f, Z]], [/\bqihoobrowser\/?([\w\.]*)/i], [v, [f, "360"]], [/\b(qq)\/([\w\.]+)/i], [[f, /(.+)/, "$1Browser"], v], [/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i], [[f, /(.+)/, "$1" + se], v], [/samsungbrowser\/([\w\.]+)/i], [v, [f, K + " Internet"]], [/metasr[\/ ]?([\d\.]+)/i], [v, [f, "Sogou Explorer"]], [/(sogou)mo\w+\/([\d\.]+)/i], [[f, "Sogou Mobile"], v], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i], [f, v], [/(lbbrowser|rekonq)/i, /\[(linkedin)app\]/i], [f], [/ome\/([\w\.]+) \w* ?(iron) saf/i, /ome\/([\w\.]+).+qihu (360)[es]e/i], [v, f], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[f, ae], v], [/(Klarna)\/([\w\.]+)/i, /(kakao(?:talk|story))[\/ ]([\w\.]+)/i, /(naver)\(.*?(\d+\.[\w\.]+).*\)/i, /(daum)apps[\/ ]([\w\.]+)/i, /safari (line)\/([\w\.]+)/i, /\b(line)\/([\w\.]+)\/iab/i, /(alipay)client\/([\w\.]+)/i, /(twitter)(?:and| f.+e\/([\w\.]+))/i, /(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i], [f, v], [/\bgsa\/([\w\.]+) .*safari\//i], [v, [f, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [v, [f, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [v, [f, Q + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[f, Q + " WebView"], v], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [v, [f, "Android " + X]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [f, v], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [v, [f, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [v, f], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [f, [v, ct, yt]], [/(webkit|khtml)\/([\w\.]+)/i], [f, v], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[f, "Netscape"], v], [/(wolvic|librewolf)\/([\w\.]+)/i], [f, v], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [v, [f, Z + " Reality"]], [/ekiohf.+(flow)\/([\w\.]+)/i, /(swiftfox)/i, /(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i, /(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i, /(firefox)\/([\w\.]+)/i, /(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i, /(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i, /\b(links) \(([\w\.]+)/i], [f, [v, /_/g, "."]], [/(cobalt)\/([\w\.]+)/i], [f, [v, /master.|lts./, ""]]], cpu: [[/\b((amd|x|x86[-_]?|wow|win)64)\b/i], [[w, "amd64"]], [/(ia32(?=;))/i, /\b((i[346]|x)86)(pc)?\b/i], [[w, "ia32"]], [/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i], [[w, "arm64"]], [/\b(arm(v[67])?ht?n?[fl]p?)\b/i], [[w, "armhf"]], [/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i], [[w, "arm"]], [/((ppc|powerpc)(64)?)( mac|;|\))/i], [[w, /ower/, o, De]], [/ sun4\w[;\)]/i], [[w, "sparc"]], [/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i], [[w, De]]], 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], [u, [h, K], [c, x]], [/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]((?!sm-[lr])[-\w]+)/i, /sec-(sgh\w+)/i], [u, [h, K], [c, b]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [u, [h, _], [c, b]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [u, [h, _], [c, x]], [/(macintosh);/i], [u, [h, _]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [u, [h, ie], [c, b]], [/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i], [u, [h, J], [c, x]], [/honor([-\w ]+)[;\)]/i], [u, [h, J], [c, b]], [/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i], [u, [h, ee], [c, x]], [/(?:huawei)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [u, [h, ee], [c, b]], [/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i, /\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i], [[u, /_/g, " "], [h, ce], [c, 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|pro)?)(?: bui|\))/i, / ([\w ]+) miui\/v?\d/i], [[u, /_/g, " "], [h, ce], [c, b]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [u, [h, U], [c, b]], [/\b(opd2(\d{3}a?))(?: bui|\))/i], [u, [h, ct, { OnePlus: ["304", "403", "203"], "*": U }], [c, x]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [u, [h, "Vivo"], [c, b]], [/\b(rmx[1-3]\d{3})(?: bui|;|\))/i], [u, [h, "Realme"], [c, b]], [/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i, /\bmot(?:orola)?[- ](\w*)/i, /((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i], [u, [h, j], [c, b]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [u, [h, j], [c, x]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [u, [h, C], [c, x]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i, /\blg-?([\d\w]+) bui/i], [u, [h, C], [c, b]], [/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i, /lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i], [u, [h, N], [c, x]], [/(nokia) (t[12][01])/i], [h, u, [c, x]], [/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i, /nokia[-_ ]?(([-\w\. ]*))/i], [[u, /_/g, " "], [c, b], [h, "Nokia"]], [/(pixel (c|tablet))\b/i], [u, [h, re], [c, x]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [u, [h, re], [c, b]], [/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], [u, [h, le], [c, b]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[u, "Xperia Tablet"], [h, le], [c, x]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [u, [h, M], [c, b]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [u, [h, F], [c, x]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[u, /(.+)/g, "Fire Phone $1"], [h, F], [c, b]], [/(playbook);[-\w\),; ]+(rim)/i], [u, h, [c, x]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [u, [h, V], [c, b]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [u, [h, k], [c, x]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [u, [h, k], [c, b]], [/(nexus 9)/i], [u, [h, "HTC"], [c, x]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [h, [u, /_/g, " "], [c, b]], [/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i], [u, [h, "TCL"], [c, x]], [/(itel) ((\w+))/i], [[h, De], u, [c, ct, { tablet: ["p10001l", "w7001"], "*": "mobile" }]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [u, [h, "Acer"], [c, x]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [u, [h, "Meizu"], [c, b]], [/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i], [u, [h, "Ulefone"], [c, b]], [/; (energy ?\w+)(?: bui|\))/i, /; energizer ([\w ]+)(?: bui|\))/i], [u, [h, "Energizer"], [c, b]], [/; cat (b35);/i, /; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i], [u, [h, "Cat"], [c, b]], [/((?:new )?andromax[\w- ]+)(?: bui|\))/i], [u, [h, "Smartfren"], [c, b]], [/droid.+; (a(?:015|06[35]|142p?))/i], [u, [h, "Nothing"], [c, b]], [/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i, /archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i], [u, [h, "Archos"], [c, x]], [/archos ([\w ]+)( b|\))/i, /; (ac[3-6]\d\w{2,8})( b|\))/i], [u, [h, "Archos"], [c, b]], [/(imo) (tab \w+)/i, /(infinix) (x1101b?)/i], [h, u, [c, x]], [/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i, /; (hmd|imo) ([\w ]+?)(?: bui|\))/i, /(hp) ([\w ]+\w)/i, /(microsoft); (lumia[\w ]+)/i, /(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i, /(oppo) ?([\w ]+) bui/i], [h, u, [c, b]], [/(kobo)\s(ereader|touch)/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], [h, u, [c, x]], [/(surface duo)/i], [u, [h, P], [c, x]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [u, [h, "Fairphone"], [c, b]], [/(u304aa)/i], [u, [h, "AT&T"], [c, b]], [/\bsie-(\w*)/i], [u, [h, "Siemens"], [c, b]], [/\b(rct\w+) b/i], [u, [h, "RCA"], [c, x]], [/\b(venue[\d ]{2,7}) b/i], [u, [h, "Dell"], [c, x]], [/\b(q(?:mv|ta)\w+) b/i], [u, [h, "Verizon"], [c, x]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [u, [h, "Barnes & Noble"], [c, x]], [/\b(tm\d{3}\w+) b/i], [u, [h, "NuVision"], [c, x]], [/\b(k88) b/i], [u, [h, "ZTE"], [c, x]], [/\b(nx\d{3}j) b/i], [u, [h, "ZTE"], [c, b]], [/\b(gen\d{3}) b.+49h/i], [u, [h, "Swiss"], [c, b]], [/\b(zur\d{3}) b/i], [u, [h, "Swiss"], [c, x]], [/\b((zeki)?tb.*\b) b/i], [u, [h, "Zeki"], [c, x]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[h, "Dragon Touch"], u, [c, x]], [/\b(ns-?\w{0,9}) b/i], [u, [h, "Insignia"], [c, x]], [/\b((nxa|next)-?\w{0,9}) b/i], [u, [h, "NextBook"], [c, x]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[h, "Voice"], u, [c, b]], [/\b(lvtel\-)?(v1[12]) b/i], [[h, "LvTel"], u, [c, b]], [/\b(ph-1) /i], [u, [h, "Essential"], [c, b]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [u, [h, "Envizen"], [c, x]], [/\b(trio[-\w\. ]+) b/i], [u, [h, "MachSpeed"], [c, x]], [/\btu_(1491) b/i], [u, [h, "Rotor"], [c, x]], [/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i], [u, [h, W], [c, x]], [/(sprint) (\w+)/i], [h, u, [c, b]], [/(kin\.[onetw]{3})/i], [[u, /\./g, " "], [h, P], [c, b]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [u, [h, O], [c, x]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [u, [h, O], [c, b]], [/smart-tv.+(samsung)/i], [h, [c, y]], [/hbbtv.+maple;(\d+)/i], [[u, /^/, "SmartTV"], [h, K], [c, y]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[h, C], [c, y]], [/(apple) ?tv/i], [h, [u, _ + " TV"], [c, y]], [/crkey/i], [[u, Q + "cast"], [h, re], [c, y]], [/droid.+aft(\w+)( bui|\))/i], [u, [h, F], [c, y]], [/(shield \w+ tv)/i], [u, [h, W], [c, y]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [u, [h, ie], [c, y]], [/(bravia[\w ]+)( bui|\))/i], [u, [h, le], [c, y]], [/(mi(tv|box)-?\w+) bui/i], [u, [h, ce], [c, y]], [/Hbbtv.*(technisat) (.*);/i], [h, u, [c, y]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[h, it], [u, it], [c, y]], [/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i], [u, [c, y]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[c, y]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [h, u, [c, E]], [/droid.+; (shield)( bui|\))/i], [u, [h, W], [c, E]], [/(playstation \w+)/i], [u, [h, le], [c, E]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [u, [h, P], [c, E]], [/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i], [u, [h, K], [c, T]], [/((pebble))app/i, /(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i], [h, u, [c, T]], [/(ow(?:19|20)?we?[1-3]{1,3})/i], [u, [h, U], [c, T]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [u, [h, _], [c, T]], [/(opwwe\d{3})/i], [u, [h, M], [c, T]], [/(moto 360)/i], [u, [h, j], [c, T]], [/(smartwatch 3)/i], [u, [h, le], [c, T]], [/(g watch r)/i], [u, [h, C], [c, T]], [/droid.+; (wt63?0{2,3})\)/i], [u, [h, O], [c, T]], [/droid.+; (glass) \d/i], [u, [h, re], [c, T]], [/(pico) (4|neo3(?: link|pro)?)/i], [h, u, [c, T]], [/; (quest( \d| pro)?)/i], [u, [h, ae], [c, T]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [h, [c, L]], [/(aeobc)\b/i], [u, [h, F], [c, L]], [/(homepod).+mac os/i], [u, [h, _], [c, L]], [/windows iot/i], [[c, L]], [/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i], [u, [c, b]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [u, [c, x]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[c, x]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[c, b]], [/droid .+?; ([\w\. -]+)( bui|\))/i], [u, [h, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [v, [f, H + "HTML"]], [/(arkweb)\/([\w\.]+)/i], [f, v], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [v, [f, "Blink"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i, /ekioh(flow)\/([\w\.]+)/i, /(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, /(icab)[\/ ]([23]\.[\d\.]+)/i, /\b(libweb)/i], [f, v], [/ladybird\//i], [[f, "LibWeb"]], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [v, f]], os: [[/microsoft (windows) (vista|xp)/i], [f, v], [/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i], [f, [v, ct, Rn]], [/windows nt 6\.2; (arm)/i, /windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i, /(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[v, ct, Rn], [f, "Windows"]], [/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i, /(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[v, /_/g, "."], [f, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[f, B], [v, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [v, f], [/(ubuntu) ([\w\.]+) like android/i], [[f, /(.+)/, "$1 Touch"], v], [/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i], [f, v], [/\(bb(10);/i], [v, [f, V]], [/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i], [v, [f, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [v, [f, Z + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [v, [f, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [v, [f, "watchOS"]], [/crkey\/([\d\.]+)/i], [v, [f, Q + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[f, Te], v], [/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)(?: arm\w*| x86\w*| ?)([\w\.]*)/i, /(gnu) ?([\w\.]*)/i, /\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i, /(haiku) (\w+)/i], [f, v], [/(sunos) ?([\w\.\d]*)/i], [[f, "Solaris"], v], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [f, v]] }, Ze = function(ve, $e) {
|
|
510
|
+
}, yt = { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }, Rn = { 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" }, Fn = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [v, [f, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [v, [f, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [f, v], [/opios[\/ ]+([\w\.]+)/i], [v, [f, R + " Mini"]], [/\bop(?:rg)?x\/([\w\.]+)/i], [v, [f, R + " GX"]], [/\bopr\/([\w\.]+)/i], [v, [f, R]], [/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i], [v, [f, "Baidu"]], [/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i], [v, [f, "Maxthon"]], [/(kindle)\/([\w\.]+)/i, /(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i, /(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i, /(?:ms|\()(ie) ([\w\.]+)/i, /(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i, /(heytap|ovi|115)browser\/([\d\.]+)/i, /(weibo)__([\d\.]+)/i], [f, v], [/quark(?:pc)?\/([-\w\.]+)/i], [v, [f, "Quark"]], [/\bddg\/([\w\.]+)/i], [v, [f, "DuckDuckGo"]], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [v, [f, "UC" + z]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i, /micromessenger\/([\w\.]+)/i], [v, [f, "WeChat"]], [/konqueror\/([\w\.]+)/i], [v, [f, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [v, [f, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [v, [f, "Yandex"]], [/slbrowser\/([\w\.]+)/i], [v, [f, "Smart Lenovo " + z]], [/(avast|avg)\/([\w\.]+)/i], [[f, /(.+)/, "$1 Secure " + z], v], [/\bfocus\/([\w\.]+)/i], [v, [f, Q + " Focus"]], [/\bopt\/([\w\.]+)/i], [v, [f, R + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [v, [f, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [v, [f, "Dolphin"]], [/coast\/([\w\.]+)/i], [v, [f, R + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [v, [f, "MIUI" + se]], [/fxios\/([\w\.-]+)/i], [v, [f, Q]], [/\bqihoobrowser\/?([\w\.]*)/i], [v, [f, "360"]], [/\b(qq)\/([\w\.]+)/i], [[f, /(.+)/, "$1Browser"], v], [/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i], [[f, /(.+)/, "$1" + se], v], [/samsungbrowser\/([\w\.]+)/i], [v, [f, q + " Internet"]], [/metasr[\/ ]?([\d\.]+)/i], [v, [f, "Sogou Explorer"]], [/(sogou)mo\w+\/([\d\.]+)/i], [[f, "Sogou Mobile"], v], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i], [f, v], [/(lbbrowser|rekonq)/i, /\[(linkedin)app\]/i], [f], [/ome\/([\w\.]+) \w* ?(iron) saf/i, /ome\/([\w\.]+).+qihu (360)[es]e/i], [v, f], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[f, ae], v], [/(Klarna)\/([\w\.]+)/i, /(kakao(?:talk|story))[\/ ]([\w\.]+)/i, /(naver)\(.*?(\d+\.[\w\.]+).*\)/i, /(daum)apps[\/ ]([\w\.]+)/i, /safari (line)\/([\w\.]+)/i, /\b(line)\/([\w\.]+)\/iab/i, /(alipay)client\/([\w\.]+)/i, /(twitter)(?:and| f.+e\/([\w\.]+))/i, /(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i], [f, v], [/\bgsa\/([\w\.]+) .*safari\//i], [v, [f, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [v, [f, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [v, [f, Z + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[f, Z + " WebView"], v], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [v, [f, "Android " + z]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [f, v], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [v, [f, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [v, f], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [f, [v, ct, yt]], [/(webkit|khtml)\/([\w\.]+)/i], [f, v], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[f, "Netscape"], v], [/(wolvic|librewolf)\/([\w\.]+)/i], [f, v], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [v, [f, Q + " Reality"]], [/ekiohf.+(flow)\/([\w\.]+)/i, /(swiftfox)/i, /(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i, /(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i, /(firefox)\/([\w\.]+)/i, /(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i, /(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i, /\b(links) \(([\w\.]+)/i], [f, [v, /_/g, "."]], [/(cobalt)\/([\w\.]+)/i], [f, [v, /master.|lts./, ""]]], cpu: [[/\b((amd|x|x86[-_]?|wow|win)64)\b/i], [[w, "amd64"]], [/(ia32(?=;))/i, /\b((i[346]|x)86)(pc)?\b/i], [[w, "ia32"]], [/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i], [[w, "arm64"]], [/\b(arm(v[67])?ht?n?[fl]p?)\b/i], [[w, "armhf"]], [/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i], [[w, "arm"]], [/((ppc|powerpc)(64)?)( mac|;|\))/i], [[w, /ower/, o, De]], [/ sun4\w[;\)]/i], [[w, "sparc"]], [/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i], [[w, De]]], 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], [u, [h, q], [c, x]], [/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]((?!sm-[lr])[-\w]+)/i, /sec-(sgh\w+)/i], [u, [h, q], [c, b]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [u, [h, _], [c, b]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [u, [h, _], [c, x]], [/(macintosh);/i], [u, [h, _]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [u, [h, ie], [c, b]], [/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i], [u, [h, ee], [c, x]], [/honor([-\w ]+)[;\)]/i], [u, [h, ee], [c, b]], [/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i], [u, [h, J], [c, x]], [/(?:huawei)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [u, [h, J], [c, b]], [/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i, /\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i], [[u, /_/g, " "], [h, ce], [c, 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|pro)?)(?: bui|\))/i, / ([\w ]+) miui\/v?\d/i], [[u, /_/g, " "], [h, ce], [c, b]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [u, [h, V], [c, b]], [/\b(opd2(\d{3}a?))(?: bui|\))/i], [u, [h, ct, { OnePlus: ["304", "403", "203"], "*": V }], [c, x]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [u, [h, "Vivo"], [c, b]], [/\b(rmx[1-3]\d{3})(?: bui|;|\))/i], [u, [h, "Realme"], [c, b]], [/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i, /\bmot(?:orola)?[- ](\w*)/i, /((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i], [u, [h, L], [c, b]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [u, [h, L], [c, x]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [u, [h, C], [c, x]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i, /\blg-?([\d\w]+) bui/i], [u, [h, C], [c, b]], [/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i, /lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i], [u, [h, N], [c, x]], [/(nokia) (t[12][01])/i], [h, u, [c, x]], [/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i, /nokia[-_ ]?(([-\w\. ]*))/i], [[u, /_/g, " "], [c, b], [h, "Nokia"]], [/(pixel (c|tablet))\b/i], [u, [h, re], [c, x]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [u, [h, re], [c, b]], [/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], [u, [h, le], [c, b]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[u, "Xperia Tablet"], [h, le], [c, x]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [u, [h, k], [c, b]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [u, [h, F], [c, x]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[u, /(.+)/g, "Fire Phone $1"], [h, F], [c, b]], [/(playbook);[-\w\),; ]+(rim)/i], [u, h, [c, x]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [u, [h, j], [c, b]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [u, [h, U], [c, x]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [u, [h, U], [c, b]], [/(nexus 9)/i], [u, [h, "HTC"], [c, x]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [h, [u, /_/g, " "], [c, b]], [/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i], [u, [h, "TCL"], [c, x]], [/(itel) ((\w+))/i], [[h, De], u, [c, ct, { tablet: ["p10001l", "w7001"], "*": "mobile" }]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [u, [h, "Acer"], [c, x]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [u, [h, "Meizu"], [c, b]], [/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i], [u, [h, "Ulefone"], [c, b]], [/; (energy ?\w+)(?: bui|\))/i, /; energizer ([\w ]+)(?: bui|\))/i], [u, [h, "Energizer"], [c, b]], [/; cat (b35);/i, /; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i], [u, [h, "Cat"], [c, b]], [/((?:new )?andromax[\w- ]+)(?: bui|\))/i], [u, [h, "Smartfren"], [c, b]], [/droid.+; (a(?:015|06[35]|142p?))/i], [u, [h, "Nothing"], [c, b]], [/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i, /archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i], [u, [h, "Archos"], [c, x]], [/archos ([\w ]+)( b|\))/i, /; (ac[3-6]\d\w{2,8})( b|\))/i], [u, [h, "Archos"], [c, b]], [/(imo) (tab \w+)/i, /(infinix) (x1101b?)/i], [h, u, [c, x]], [/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i, /; (hmd|imo) ([\w ]+?)(?: bui|\))/i, /(hp) ([\w ]+\w)/i, /(microsoft); (lumia[\w ]+)/i, /(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i, /(oppo) ?([\w ]+) bui/i], [h, u, [c, b]], [/(kobo)\s(ereader|touch)/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], [h, u, [c, x]], [/(surface duo)/i], [u, [h, T], [c, x]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [u, [h, "Fairphone"], [c, b]], [/(u304aa)/i], [u, [h, "AT&T"], [c, b]], [/\bsie-(\w*)/i], [u, [h, "Siemens"], [c, b]], [/\b(rct\w+) b/i], [u, [h, "RCA"], [c, x]], [/\b(venue[\d ]{2,7}) b/i], [u, [h, "Dell"], [c, x]], [/\b(q(?:mv|ta)\w+) b/i], [u, [h, "Verizon"], [c, x]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [u, [h, "Barnes & Noble"], [c, x]], [/\b(tm\d{3}\w+) b/i], [u, [h, "NuVision"], [c, x]], [/\b(k88) b/i], [u, [h, "ZTE"], [c, x]], [/\b(nx\d{3}j) b/i], [u, [h, "ZTE"], [c, b]], [/\b(gen\d{3}) b.+49h/i], [u, [h, "Swiss"], [c, b]], [/\b(zur\d{3}) b/i], [u, [h, "Swiss"], [c, x]], [/\b((zeki)?tb.*\b) b/i], [u, [h, "Zeki"], [c, x]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[h, "Dragon Touch"], u, [c, x]], [/\b(ns-?\w{0,9}) b/i], [u, [h, "Insignia"], [c, x]], [/\b((nxa|next)-?\w{0,9}) b/i], [u, [h, "NextBook"], [c, x]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[h, "Voice"], u, [c, b]], [/\b(lvtel\-)?(v1[12]) b/i], [[h, "LvTel"], u, [c, b]], [/\b(ph-1) /i], [u, [h, "Essential"], [c, b]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [u, [h, "Envizen"], [c, x]], [/\b(trio[-\w\. ]+) b/i], [u, [h, "MachSpeed"], [c, x]], [/\btu_(1491) b/i], [u, [h, "Rotor"], [c, x]], [/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i], [u, [h, W], [c, x]], [/(sprint) (\w+)/i], [h, u, [c, b]], [/(kin\.[onetw]{3})/i], [[u, /\./g, " "], [h, T], [c, b]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [u, [h, P], [c, x]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [u, [h, P], [c, b]], [/smart-tv.+(samsung)/i], [h, [c, y]], [/hbbtv.+maple;(\d+)/i], [[u, /^/, "SmartTV"], [h, q], [c, y]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[h, C], [c, y]], [/(apple) ?tv/i], [h, [u, _ + " TV"], [c, y]], [/crkey/i], [[u, Z + "cast"], [h, re], [c, y]], [/droid.+aft(\w+)( bui|\))/i], [u, [h, F], [c, y]], [/(shield \w+ tv)/i], [u, [h, W], [c, y]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [u, [h, ie], [c, y]], [/(bravia[\w ]+)( bui|\))/i], [u, [h, le], [c, y]], [/(mi(tv|box)-?\w+) bui/i], [u, [h, ce], [c, y]], [/Hbbtv.*(technisat) (.*);/i], [h, u, [c, y]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[h, it], [u, it], [c, y]], [/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i], [u, [c, y]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[c, y]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [h, u, [c, E]], [/droid.+; (shield)( bui|\))/i], [u, [h, W], [c, E]], [/(playstation \w+)/i], [u, [h, le], [c, E]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [u, [h, T], [c, E]], [/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i], [u, [h, q], [c, O]], [/((pebble))app/i, /(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i], [h, u, [c, O]], [/(ow(?:19|20)?we?[1-3]{1,3})/i], [u, [h, V], [c, O]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [u, [h, _], [c, O]], [/(opwwe\d{3})/i], [u, [h, k], [c, O]], [/(moto 360)/i], [u, [h, L], [c, O]], [/(smartwatch 3)/i], [u, [h, le], [c, O]], [/(g watch r)/i], [u, [h, C], [c, O]], [/droid.+; (wt63?0{2,3})\)/i], [u, [h, P], [c, O]], [/droid.+; (glass) \d/i], [u, [h, re], [c, O]], [/(pico) (4|neo3(?: link|pro)?)/i], [h, u, [c, O]], [/; (quest( \d| pro)?)/i], [u, [h, ae], [c, O]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [h, [c, D]], [/(aeobc)\b/i], [u, [h, F], [c, D]], [/(homepod).+mac os/i], [u, [h, _], [c, D]], [/windows iot/i], [[c, D]], [/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i], [u, [c, b]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [u, [c, x]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[c, x]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[c, b]], [/droid .+?; ([\w\. -]+)( bui|\))/i], [u, [h, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [v, [f, H + "HTML"]], [/(arkweb)\/([\w\.]+)/i], [f, v], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [v, [f, "Blink"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i, /ekioh(flow)\/([\w\.]+)/i, /(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, /(icab)[\/ ]([23]\.[\d\.]+)/i, /\b(libweb)/i], [f, v], [/ladybird\//i], [[f, "LibWeb"]], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [v, f]], os: [[/microsoft (windows) (vista|xp)/i], [f, v], [/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i], [f, [v, ct, Rn]], [/windows nt 6\.2; (arm)/i, /windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i, /(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[v, ct, Rn], [f, "Windows"]], [/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i, /(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[v, /_/g, "."], [f, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[f, B], [v, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [v, f], [/(ubuntu) ([\w\.]+) like android/i], [[f, /(.+)/, "$1 Touch"], v], [/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i], [f, v], [/\(bb(10);/i], [v, [f, j]], [/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i], [v, [f, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [v, [f, Q + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [v, [f, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [v, [f, "watchOS"]], [/crkey\/([\d\.]+)/i], [v, [f, Z + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[f, Te], v], [/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)(?: arm\w*| x86\w*| ?)([\w\.]*)/i, /(gnu) ?([\w\.]*)/i, /\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i, /(haiku) (\w+)/i], [f, v], [/(sunos) ?([\w\.\d]*)/i], [[f, "Solaris"], v], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [f, v]] }, Ze = function(ve, $e) {
|
|
511
511
|
if (typeof ve === s && ($e = ve, ve = r), !(this instanceof Ze))
|
|
512
512
|
return new Ze(ve, $e).getResult();
|
|
513
513
|
var fe = typeof n !== l && n.navigator ? n.navigator : r, Oe = ve || (fe && fe.userAgent ? fe.userAgent : o), ot = fe && fe.userAgentData ? fe.userAgentData : r, ze = $e ? Se(Fn, $e) : Fn, ye = fe && fe.userAgent == Oe;
|
|
@@ -531,10 +531,10 @@ function Zc() {
|
|
|
531
531
|
}, this.getUA = function() {
|
|
532
532
|
return Oe;
|
|
533
533
|
}, this.setUA = function(ue) {
|
|
534
|
-
return Oe = typeof ue === p && ue.length >
|
|
534
|
+
return Oe = typeof ue === p && ue.length > K ? it(ue, K) : ue, this;
|
|
535
535
|
}, this.setUA(Oe), this;
|
|
536
536
|
};
|
|
537
|
-
Ze.VERSION = i, Ze.BROWSER = Ne([f, v, m]), Ze.CPU = Ne([w]), Ze.DEVICE = Ne([u, h, c, E, b, y, x,
|
|
537
|
+
Ze.VERSION = i, Ze.BROWSER = Ne([f, v, m]), Ze.CPU = Ne([w]), Ze.DEVICE = Ne([u, h, c, E, b, y, x, O, D]), Ze.ENGINE = Ze.OS = Ne([f, v]), e.exports && (t = e.exports = Ze), t.UAParser = Ze;
|
|
538
538
|
var It = typeof n !== l && (n.jQuery || n.Zepto);
|
|
539
539
|
if (It && !It.ua) {
|
|
540
540
|
var Qt = new Ze();
|
|
@@ -557,7 +557,7 @@ function Jc() {
|
|
|
557
557
|
function e(S) {
|
|
558
558
|
return S && typeof S == "object" && "default" in S ? S.default : S;
|
|
559
559
|
}
|
|
560
|
-
var t =
|
|
560
|
+
var t = M, n = e(t), r = Zc(), i = new r(), o = i.getBrowser(), a = i.getCPU(), d = i.getDevice(), l = i.getEngine(), s = i.getOS(), p = i.getUA(), m = function(g) {
|
|
561
561
|
return i.setUA(g);
|
|
562
562
|
}, u = function(g) {
|
|
563
563
|
if (!g) {
|
|
@@ -648,7 +648,7 @@ function Jc() {
|
|
|
648
648
|
return S;
|
|
649
649
|
}, y.apply(this, arguments);
|
|
650
650
|
}
|
|
651
|
-
function
|
|
651
|
+
function O(S, g) {
|
|
652
652
|
if (typeof g != "function" && g !== null)
|
|
653
653
|
throw new TypeError("Super expression must either be null or a function");
|
|
654
654
|
S.prototype = Object.create(g && g.prototype, {
|
|
@@ -657,17 +657,17 @@ function Jc() {
|
|
|
657
657
|
writable: !0,
|
|
658
658
|
configurable: !0
|
|
659
659
|
}
|
|
660
|
-
}), g &&
|
|
660
|
+
}), g && K(S, g);
|
|
661
661
|
}
|
|
662
|
-
function
|
|
663
|
-
return
|
|
662
|
+
function D(S) {
|
|
663
|
+
return D = Object.setPrototypeOf ? Object.getPrototypeOf : function($) {
|
|
664
664
|
return $.__proto__ || Object.getPrototypeOf($);
|
|
665
|
-
},
|
|
665
|
+
}, D(S);
|
|
666
666
|
}
|
|
667
|
-
function
|
|
668
|
-
return
|
|
667
|
+
function K(S, g) {
|
|
668
|
+
return K = Object.setPrototypeOf || function(A, G) {
|
|
669
669
|
return A.__proto__ = G, A;
|
|
670
|
-
},
|
|
670
|
+
}, K(S, g);
|
|
671
671
|
}
|
|
672
672
|
function F(S, g) {
|
|
673
673
|
if (S == null) return {};
|
|
@@ -686,22 +686,22 @@ function Jc() {
|
|
|
686
686
|
}
|
|
687
687
|
return $;
|
|
688
688
|
}
|
|
689
|
-
function
|
|
689
|
+
function U(S) {
|
|
690
690
|
if (S === void 0)
|
|
691
691
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
692
692
|
return S;
|
|
693
693
|
}
|
|
694
|
-
function
|
|
694
|
+
function j(S, g) {
|
|
695
695
|
if (g && (typeof g == "object" || typeof g == "function"))
|
|
696
696
|
return g;
|
|
697
697
|
if (g !== void 0)
|
|
698
698
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
699
|
-
return
|
|
699
|
+
return U(S);
|
|
700
700
|
}
|
|
701
|
-
function
|
|
702
|
-
return
|
|
701
|
+
function z(S, g) {
|
|
702
|
+
return Z(S) || H(S, g) || Q(S, g) || ee();
|
|
703
703
|
}
|
|
704
|
-
function
|
|
704
|
+
function Z(S) {
|
|
705
705
|
if (Array.isArray(S)) return S;
|
|
706
706
|
}
|
|
707
707
|
function H(S, g) {
|
|
@@ -723,7 +723,7 @@ function Jc() {
|
|
|
723
723
|
return A;
|
|
724
724
|
}
|
|
725
725
|
}
|
|
726
|
-
function
|
|
726
|
+
function Q(S, g) {
|
|
727
727
|
if (S) {
|
|
728
728
|
if (typeof S == "string") return re(S, g);
|
|
729
729
|
var $ = Object.prototype.toString.call(S).slice(8, -1);
|
|
@@ -736,11 +736,11 @@ function Jc() {
|
|
|
736
736
|
for (var $ = 0, A = new Array(g); $ < g; $++) A[$] = S[$];
|
|
737
737
|
return A;
|
|
738
738
|
}
|
|
739
|
-
function
|
|
739
|
+
function ee() {
|
|
740
740
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
741
741
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
742
742
|
}
|
|
743
|
-
var
|
|
743
|
+
var J = {
|
|
744
744
|
Mobile: "mobile",
|
|
745
745
|
Tablet: "tablet",
|
|
746
746
|
SmartTv: "smarttv",
|
|
@@ -768,119 +768,119 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
768
768
|
WindowsPhone: "Windows Phone",
|
|
769
769
|
Windows: "Windows",
|
|
770
770
|
MAC_OS: "Mac OS"
|
|
771
|
-
},
|
|
771
|
+
}, T = {
|
|
772
772
|
isMobile: !1,
|
|
773
773
|
isTablet: !1,
|
|
774
774
|
isBrowser: !1,
|
|
775
775
|
isSmartTV: !1,
|
|
776
776
|
isConsole: !1,
|
|
777
777
|
isWearable: !1
|
|
778
|
-
},
|
|
778
|
+
}, L = function(g) {
|
|
779
779
|
switch (g) {
|
|
780
|
-
case
|
|
780
|
+
case J.Mobile:
|
|
781
781
|
return {
|
|
782
782
|
isMobile: !0
|
|
783
783
|
};
|
|
784
|
-
case
|
|
784
|
+
case J.Tablet:
|
|
785
785
|
return {
|
|
786
786
|
isTablet: !0
|
|
787
787
|
};
|
|
788
|
-
case
|
|
788
|
+
case J.SmartTv:
|
|
789
789
|
return {
|
|
790
790
|
isSmartTV: !0
|
|
791
791
|
};
|
|
792
|
-
case
|
|
792
|
+
case J.Console:
|
|
793
793
|
return {
|
|
794
794
|
isConsole: !0
|
|
795
795
|
};
|
|
796
|
-
case
|
|
796
|
+
case J.Wearable:
|
|
797
797
|
return {
|
|
798
798
|
isWearable: !0
|
|
799
799
|
};
|
|
800
|
-
case
|
|
800
|
+
case J.Browser:
|
|
801
801
|
return {
|
|
802
802
|
isBrowser: !0
|
|
803
803
|
};
|
|
804
|
-
case
|
|
804
|
+
case J.Embedded:
|
|
805
805
|
return {
|
|
806
806
|
isEmbedded: !0
|
|
807
807
|
};
|
|
808
808
|
default:
|
|
809
|
-
return
|
|
809
|
+
return T;
|
|
810
810
|
}
|
|
811
811
|
}, W = function(g) {
|
|
812
812
|
return m(g);
|
|
813
|
-
},
|
|
813
|
+
}, k = function(g) {
|
|
814
814
|
var $ = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "none";
|
|
815
815
|
return g || $;
|
|
816
816
|
}, R = function() {
|
|
817
817
|
return typeof window < "u" && (window.navigator || navigator) ? window.navigator || navigator : !1;
|
|
818
|
-
},
|
|
818
|
+
}, V = function(g) {
|
|
819
819
|
var $ = R();
|
|
820
820
|
return $ && $.platform && ($.platform.indexOf(g) !== -1 || $.platform === "MacIntel" && $.maxTouchPoints > 1 && !window.MSStream);
|
|
821
|
-
},
|
|
821
|
+
}, q = function(g, $, A, G, ge) {
|
|
822
822
|
return {
|
|
823
823
|
isBrowser: g,
|
|
824
|
-
browserMajorVersion:
|
|
825
|
-
browserFullVersion:
|
|
826
|
-
browserName:
|
|
827
|
-
engineName:
|
|
828
|
-
engineVersion:
|
|
829
|
-
osName:
|
|
830
|
-
osVersion:
|
|
831
|
-
userAgent:
|
|
824
|
+
browserMajorVersion: k($.major),
|
|
825
|
+
browserFullVersion: k($.version),
|
|
826
|
+
browserName: k($.name),
|
|
827
|
+
engineName: k(A.name),
|
|
828
|
+
engineVersion: k(A.version),
|
|
829
|
+
osName: k(G.name),
|
|
830
|
+
osVersion: k(G.version),
|
|
831
|
+
userAgent: k(ge)
|
|
832
832
|
};
|
|
833
833
|
}, ie = function(g, $, A, G) {
|
|
834
834
|
return h({}, g, {
|
|
835
|
-
vendor:
|
|
836
|
-
model:
|
|
837
|
-
os:
|
|
838
|
-
osVersion:
|
|
839
|
-
ua:
|
|
835
|
+
vendor: k($.vendor),
|
|
836
|
+
model: k($.model),
|
|
837
|
+
os: k(A.name),
|
|
838
|
+
osVersion: k(A.version),
|
|
839
|
+
ua: k(G)
|
|
840
840
|
});
|
|
841
841
|
}, le = function(g, $, A, G) {
|
|
842
842
|
return {
|
|
843
843
|
isSmartTV: g,
|
|
844
|
-
engineName:
|
|
845
|
-
engineVersion:
|
|
846
|
-
osName:
|
|
847
|
-
osVersion:
|
|
848
|
-
userAgent:
|
|
844
|
+
engineName: k($.name),
|
|
845
|
+
engineVersion: k($.version),
|
|
846
|
+
osName: k(A.name),
|
|
847
|
+
osVersion: k(A.version),
|
|
848
|
+
userAgent: k(G)
|
|
849
849
|
};
|
|
850
850
|
}, ce = function(g, $, A, G) {
|
|
851
851
|
return {
|
|
852
852
|
isConsole: g,
|
|
853
|
-
engineName:
|
|
854
|
-
engineVersion:
|
|
855
|
-
osName:
|
|
856
|
-
osVersion:
|
|
857
|
-
userAgent:
|
|
853
|
+
engineName: k($.name),
|
|
854
|
+
engineVersion: k($.version),
|
|
855
|
+
osName: k(A.name),
|
|
856
|
+
osVersion: k(A.version),
|
|
857
|
+
userAgent: k(G)
|
|
858
858
|
};
|
|
859
|
-
},
|
|
859
|
+
}, P = function(g, $, A, G) {
|
|
860
860
|
return {
|
|
861
861
|
isWearable: g,
|
|
862
|
-
engineName:
|
|
863
|
-
engineVersion:
|
|
864
|
-
osName:
|
|
865
|
-
osVersion:
|
|
866
|
-
userAgent:
|
|
862
|
+
engineName: k($.name),
|
|
863
|
+
engineVersion: k($.version),
|
|
864
|
+
osName: k(A.name),
|
|
865
|
+
osVersion: k(A.version),
|
|
866
|
+
userAgent: k(G)
|
|
867
867
|
};
|
|
868
868
|
}, ae = function(g, $, A, G, ge) {
|
|
869
869
|
return {
|
|
870
870
|
isEmbedded: g,
|
|
871
|
-
vendor:
|
|
872
|
-
model:
|
|
873
|
-
engineName:
|
|
874
|
-
engineVersion:
|
|
875
|
-
osName:
|
|
876
|
-
osVersion:
|
|
877
|
-
userAgent:
|
|
871
|
+
vendor: k($.vendor),
|
|
872
|
+
model: k($.model),
|
|
873
|
+
engineName: k(A.name),
|
|
874
|
+
engineVersion: k(A.version),
|
|
875
|
+
osName: k(G.name),
|
|
876
|
+
osVersion: k(G.version),
|
|
877
|
+
userAgent: k(ge)
|
|
878
878
|
};
|
|
879
879
|
};
|
|
880
880
|
function Te(S) {
|
|
881
|
-
var g = S ? u(S) : f, $ = g.device, A = g.browser, G = g.engine, ge = g.os, Fe = g.ua, Je =
|
|
881
|
+
var g = S ? u(S) : f, $ = g.device, A = g.browser, G = g.engine, ge = g.os, Fe = g.ua, Je = L($.type), xr = Je.isBrowser, yc = Je.isMobile, wc = Je.isTablet, Fa = Je.isSmartTV, ka = Je.isConsole, Ma = Je.isWearable, La = Je.isEmbedded;
|
|
882
882
|
if (xr)
|
|
883
|
-
return
|
|
883
|
+
return q(xr, A, G, ge, Fe);
|
|
884
884
|
if (Fa)
|
|
885
885
|
return le(Fa, G, ge, Fe);
|
|
886
886
|
if (ka)
|
|
@@ -888,43 +888,43 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
888
888
|
if (yc || wc)
|
|
889
889
|
return ie(Je, $, ge, Fe);
|
|
890
890
|
if (Ma)
|
|
891
|
-
return
|
|
891
|
+
return P(Ma, G, ge, Fe);
|
|
892
892
|
if (La)
|
|
893
893
|
return ae(La, $, G, ge, Fe);
|
|
894
894
|
}
|
|
895
895
|
var B = function(g) {
|
|
896
896
|
var $ = g.type;
|
|
897
|
-
return $ ===
|
|
897
|
+
return $ === J.Mobile;
|
|
898
898
|
}, se = function(g) {
|
|
899
899
|
var $ = g.type;
|
|
900
|
-
return $ ===
|
|
900
|
+
return $ === J.Tablet;
|
|
901
901
|
}, Se = function(g) {
|
|
902
902
|
var $ = g.type;
|
|
903
|
-
return $ ===
|
|
903
|
+
return $ === J.Mobile || $ === J.Tablet;
|
|
904
904
|
}, Ne = function(g) {
|
|
905
905
|
var $ = g.type;
|
|
906
|
-
return $ ===
|
|
906
|
+
return $ === J.SmartTv;
|
|
907
907
|
}, Ae = function(g) {
|
|
908
908
|
var $ = g.type;
|
|
909
|
-
return $ ===
|
|
909
|
+
return $ === J.Browser;
|
|
910
910
|
}, De = function(g) {
|
|
911
911
|
var $ = g.type;
|
|
912
|
-
return $ ===
|
|
912
|
+
return $ === J.Wearable;
|
|
913
913
|
}, Jt = function(g) {
|
|
914
914
|
var $ = g.type;
|
|
915
|
-
return $ ===
|
|
915
|
+
return $ === J.Console;
|
|
916
916
|
}, it = function(g) {
|
|
917
917
|
var $ = g.type;
|
|
918
|
-
return $ ===
|
|
918
|
+
return $ === J.Embedded;
|
|
919
919
|
}, ut = function(g) {
|
|
920
920
|
var $ = g.vendor;
|
|
921
|
-
return
|
|
921
|
+
return k($);
|
|
922
922
|
}, ct = function(g) {
|
|
923
923
|
var $ = g.model;
|
|
924
|
-
return
|
|
924
|
+
return k($);
|
|
925
925
|
}, yt = function(g) {
|
|
926
926
|
var $ = g.type;
|
|
927
|
-
return
|
|
927
|
+
return k($, "browser");
|
|
928
928
|
}, Rn = function(g) {
|
|
929
929
|
var $ = g.name;
|
|
930
930
|
return $ === C.Android;
|
|
@@ -942,10 +942,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
942
942
|
return $ === C.IOS;
|
|
943
943
|
}, ve = function(g) {
|
|
944
944
|
var $ = g.version;
|
|
945
|
-
return
|
|
945
|
+
return k($);
|
|
946
946
|
}, $e = function(g) {
|
|
947
947
|
var $ = g.name;
|
|
948
|
-
return
|
|
948
|
+
return k($);
|
|
949
949
|
}, fe = function(g) {
|
|
950
950
|
var $ = g.name;
|
|
951
951
|
return $ === N.Chrome;
|
|
@@ -981,19 +981,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
981
981
|
return $ === N.SamsungBrowser;
|
|
982
982
|
}, fa = function(g) {
|
|
983
983
|
var $ = g.version;
|
|
984
|
-
return
|
|
984
|
+
return k($);
|
|
985
985
|
}, pa = function(g) {
|
|
986
986
|
var $ = g.major;
|
|
987
|
-
return
|
|
987
|
+
return k($);
|
|
988
988
|
}, ha = function(g) {
|
|
989
989
|
var $ = g.name;
|
|
990
|
-
return
|
|
990
|
+
return k($);
|
|
991
991
|
}, ma = function(g) {
|
|
992
992
|
var $ = g.name;
|
|
993
|
-
return
|
|
993
|
+
return k($);
|
|
994
994
|
}, va = function(g) {
|
|
995
995
|
var $ = g.version;
|
|
996
|
-
return
|
|
996
|
+
return k($);
|
|
997
997
|
}, ga = function() {
|
|
998
998
|
var g = R(), $ = g && g.userAgent && g.userAgent.toLowerCase();
|
|
999
999
|
return typeof $ == "string" ? /electron/.test($) : !1;
|
|
@@ -1003,13 +1003,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1003
1003
|
var g = R();
|
|
1004
1004
|
return g && (/iPad|iPhone|iPod/.test(g.platform) || g.platform === "MacIntel" && g.maxTouchPoints > 1) && !window.MSStream;
|
|
1005
1005
|
}, wt = function() {
|
|
1006
|
-
return
|
|
1006
|
+
return V("iPad");
|
|
1007
1007
|
}, $a = function() {
|
|
1008
|
-
return
|
|
1008
|
+
return V("iPhone");
|
|
1009
1009
|
}, ya = function() {
|
|
1010
|
-
return
|
|
1010
|
+
return V("iPod");
|
|
1011
1011
|
}, wa = function(g) {
|
|
1012
|
-
return
|
|
1012
|
+
return k(g);
|
|
1013
1013
|
};
|
|
1014
1014
|
function xa(S) {
|
|
1015
1015
|
var g = S || f, $ = g.device, A = g.browser, G = g.os, ge = g.engine, Fe = g.ua;
|
|
@@ -1115,10 +1115,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1115
1115
|
};
|
|
1116
1116
|
function gc(S) {
|
|
1117
1117
|
return /* @__PURE__ */ (function(g) {
|
|
1118
|
-
|
|
1118
|
+
O($, g);
|
|
1119
1119
|
function $(A) {
|
|
1120
1120
|
var G;
|
|
1121
|
-
return w(this, $), G =
|
|
1121
|
+
return w(this, $), G = j(this, D($).call(this, A)), G.isEventListenerAdded = !1, G.handleOrientationChange = G.handleOrientationChange.bind(U(G)), G.onOrientationChange = G.onOrientationChange.bind(U(G)), G.onPageLoad = G.onPageLoad.bind(U(G)), G.state = {
|
|
1122
1122
|
isLandscape: !1,
|
|
1123
1123
|
isPortrait: !1
|
|
1124
1124
|
}, G;
|
|
@@ -1172,7 +1172,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1172
1172
|
isLandscape: ge === 90,
|
|
1173
1173
|
orientation: ge === 0 ? "portrait" : "landscape"
|
|
1174
1174
|
};
|
|
1175
|
-
}), g =
|
|
1175
|
+
}), g = z(S, 2), $ = g[0], A = g[1], G = t.useCallback(function() {
|
|
1176
1176
|
var ge = window.innerWidth > window.innerHeight ? 90 : 0, Fe = {
|
|
1177
1177
|
isPortrait: ge === 0,
|
|
1178
1178
|
isLandscape: ge === 90,
|
|
@@ -1197,7 +1197,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1197
1197
|
return te.AndroidView = oc, te.BrowserTypes = N, te.BrowserView = ac, te.ConsoleView = hc, te.CustomView = vc, te.IEView = dc, te.IOSView = lc, te.MobileOnlyView = fc, te.MobileView = sc, te.OsTypes = C, te.SmartTVView = pc, te.TabletView = uc, te.WearableView = mc, te.WinPhoneView = cc, te.browserName = D0, te.browserVersion = L0, te.deviceDetect = Te, te.deviceType = K0, te.engineName = W0, te.engineVersion = V0, te.fullBrowserVersion = M0, te.getSelectorsByUserAgent = ic, te.getUA = U0, te.isAndroid = Na, te.isBrowser = Ta, te.isChrome = I0, te.isChromium = T0, te.isConsole = Ea, te.isDesktop = N0, te.isEdge = H0, te.isEdgeChromium = J0, te.isElectron = Z0, te.isEmbedded = O0, te.isFirefox = _0, te.isIE = Aa, te.isIOS = _a, te.isIOS13 = z0, te.isIPad13 = q0, te.isIPhone13 = Y0, te.isIPod13 = X0, te.isLegacyEdge = Q0, te.isMIUI = nc, te.isMacOs = tc, te.isMobile = wr, te.isMobileOnly = Oa, te.isMobileSafari = P0, te.isOpera = R0, te.isSafari = A0, te.isSamsungBrowser = rc, te.isSmartTV = Ca, te.isTablet = Pa, te.isWearable = Sa, te.isWinPhone = Ia, te.isWindows = ec, te.isYandex = G0, te.mobileModel = B0, te.mobileVendor = j0, te.osName = k0, te.osVersion = F0, te.parseUserAgent = u, te.setUserAgent = W, te.useDeviceData = Ra, te.useDeviceSelectors = $c, te.useMobileOrientation = bc, te.withOrientationChange = gc, te;
|
|
1198
1198
|
}
|
|
1199
1199
|
var Qc = Jc();
|
|
1200
|
-
const Xh =
|
|
1200
|
+
const Xh = M.memo(
|
|
1201
1201
|
Yt(
|
|
1202
1202
|
({ themeColor: e = "", onSubmit: t, style: n = {}, className: r = "", onInput: i, onFocus: o, onBlur: a, ...d }, l) => {
|
|
1203
1203
|
const [s, p] = oe(!0), [m, u] = oe(!1);
|
|
@@ -1299,61 +1299,61 @@ const Zh = ({
|
|
|
1299
1299
|
className: o = "",
|
|
1300
1300
|
style: a = {}
|
|
1301
1301
|
}) => {
|
|
1302
|
-
const d =
|
|
1303
|
-
let
|
|
1304
|
-
const [
|
|
1302
|
+
const d = X(e), [l, s] = oe(t), [p, m] = oe(""), [u, f] = oe(!1), [c, h] = oe(!1), v = X(null), w = X(null), E = X(null), b = X(null), x = X(null), y = X(null), [O, D] = oe(-1), K = X(0), F = X(0), [_, U] = oe(!1);
|
|
1303
|
+
let j = {};
|
|
1304
|
+
const [z, Z] = oe({ left: 0, top: 0 }), [H, Q] = oe(null), re = X(!1), ee = X(null), J = () => {
|
|
1305
1305
|
setTimeout(() => {
|
|
1306
1306
|
(v.current?.children[0]).focus();
|
|
1307
1307
|
}, 0);
|
|
1308
1308
|
};
|
|
1309
1309
|
he(() => {
|
|
1310
|
-
const
|
|
1311
|
-
w.current && !w.current.contains(ae.target) && (f(!1), m(""),
|
|
1310
|
+
const P = (ae) => {
|
|
1311
|
+
w.current && !w.current.contains(ae.target) && (f(!1), m(""), J());
|
|
1312
1312
|
};
|
|
1313
|
-
return document.addEventListener("mousedown",
|
|
1314
|
-
document.removeEventListener("mousedown",
|
|
1313
|
+
return document.addEventListener("mousedown", P), () => {
|
|
1314
|
+
document.removeEventListener("mousedown", P);
|
|
1315
1315
|
};
|
|
1316
1316
|
}, []);
|
|
1317
1317
|
const N = () => {
|
|
1318
|
-
|
|
1318
|
+
K.current = window.innerHeight, F.current = document.body.scrollHeight, U(!0);
|
|
1319
1319
|
};
|
|
1320
1320
|
he(() => (N(), window.addEventListener("resize", N), () => {
|
|
1321
1321
|
window.addEventListener("resize", N);
|
|
1322
1322
|
}), []);
|
|
1323
|
-
const C = (
|
|
1323
|
+
const C = (P) => {
|
|
1324
1324
|
const ae = document.getElementById("announcement");
|
|
1325
|
-
ae && (ae.textContent =
|
|
1325
|
+
ae && (ae.textContent = P, ae.setAttribute("aria-live", "assertive"), setTimeout(() => {
|
|
1326
1326
|
ae.textContent = "", ae.setAttribute("aria-live", "off");
|
|
1327
1327
|
}, 1e3));
|
|
1328
1328
|
};
|
|
1329
1329
|
he(() => {
|
|
1330
|
-
const
|
|
1331
|
-
d.current =
|
|
1330
|
+
const P = e.filter((ae) => ae.label.toLowerCase().includes(p.toLowerCase()));
|
|
1331
|
+
d.current = P;
|
|
1332
1332
|
}, [e, p]);
|
|
1333
|
-
const
|
|
1334
|
-
const ae = e.find((Te) => Te.value ===
|
|
1333
|
+
const T = l.length > 0 ? l.map((P) => {
|
|
1334
|
+
const ae = e.find((Te) => Te.value === P);
|
|
1335
1335
|
return ae?.label !== null ? ae?.label : "";
|
|
1336
|
-
}).filter((
|
|
1337
|
-
const ae = e.find((Te) => Te.value ===
|
|
1336
|
+
}).filter((P) => P !== "").join(", ") : "Select your option", L = (P) => {
|
|
1337
|
+
const ae = e.find((Te) => Te.value === P);
|
|
1338
1338
|
if (ae && !ae.disable && (r === void 0 || l.length <= r)) {
|
|
1339
|
-
const B = l.includes(
|
|
1340
|
-
(r === void 0 || B.length <= r) && u && (s(B), n(B), C(`${ae?.label} ${B.includes(
|
|
1339
|
+
const B = l.includes(P) ? l.filter((Se) => Se !== P) : [...l, P];
|
|
1340
|
+
(r === void 0 || B.length <= r) && u && (s(B), n(B), C(`${ae?.label} ${B.includes(P) ? "selected" : "not selected"}`));
|
|
1341
1341
|
}
|
|
1342
|
-
}, W = (
|
|
1343
|
-
R(), f(
|
|
1342
|
+
}, W = (P) => {
|
|
1343
|
+
R(), f(P), setTimeout(() => {
|
|
1344
1344
|
E.current ? E.current?.focus() : b.current?.focus(), C("use up and down arrow keys to navigate");
|
|
1345
1345
|
}, 0);
|
|
1346
|
-
},
|
|
1346
|
+
}, k = () => F.current - (K.current + window.scrollY), R = () => {
|
|
1347
1347
|
if (v.current) {
|
|
1348
|
-
const
|
|
1348
|
+
const P = v.current.getBoundingClientRect();
|
|
1349
1349
|
setTimeout(() => {
|
|
1350
|
-
const ae = w?.current?.getBoundingClientRect(), Te =
|
|
1350
|
+
const ae = w?.current?.getBoundingClientRect(), Te = k(), B = K.current - P.bottom;
|
|
1351
1351
|
let se;
|
|
1352
1352
|
if (ae) {
|
|
1353
|
-
const Se =
|
|
1354
|
-
Ne < Ae && (De || De && B < Ae || Te > Ae || B > Ae) || Ne > Ae && B > Ae ? se =
|
|
1355
|
-
left:
|
|
1356
|
-
top: se ??
|
|
1353
|
+
const Se = P.height, Ne = P.top, Ae = ae.height, De = Ae > Ne + window.scrollY;
|
|
1354
|
+
Ne < Ae && (De || De && B < Ae || Te > Ae || B > Ae) || Ne > Ae && B > Ae ? se = P.y + Se : se = P.y - Ae, Z({
|
|
1355
|
+
left: P.left,
|
|
1356
|
+
top: se ?? P.top
|
|
1357
1357
|
});
|
|
1358
1358
|
}
|
|
1359
1359
|
}, 0);
|
|
@@ -1362,37 +1362,37 @@ const Zh = ({
|
|
|
1362
1362
|
he(() => (window.addEventListener("scroll", R), window.addEventListener("resize", R), () => {
|
|
1363
1363
|
window.removeEventListener("scroll", R), window.removeEventListener("resize", R);
|
|
1364
1364
|
}), [u]);
|
|
1365
|
-
const
|
|
1366
|
-
|
|
1365
|
+
const V = (P) => {
|
|
1366
|
+
P.preventDefault(), P.key === "Shift" ? re.current = !0 : P.shiftKey && re.current && P.key === "Tab" || P.key === "Tab" ? (setTimeout(() => {
|
|
1367
1367
|
E.current ? E.current?.focus() : b.current?.focus();
|
|
1368
|
-
}, 0), re.current = !1) :
|
|
1369
|
-
},
|
|
1370
|
-
const { key: ae } =
|
|
1371
|
-
if (ae === "Tab" ||
|
|
1368
|
+
}, 0), re.current = !1) : P.key === "Escape" || P.key === "Enter" || P.key === "Space" || P.key === " " ? (W(!1), J()) : re.current = !1;
|
|
1369
|
+
}, q = (P) => {
|
|
1370
|
+
const { key: ae } = P;
|
|
1371
|
+
if (ae === "Tab" || P.shiftKey && ae === "Tab")
|
|
1372
1372
|
setTimeout(() => {
|
|
1373
1373
|
x.current?.focus();
|
|
1374
1374
|
}, 0);
|
|
1375
1375
|
else if (ae === "ArrowDown" || ae === "ArrowUp") {
|
|
1376
|
-
|
|
1376
|
+
P.preventDefault(), setTimeout(() => {
|
|
1377
1377
|
b.current?.focus();
|
|
1378
1378
|
}, 0);
|
|
1379
|
-
let Te =
|
|
1380
|
-
if (ae === "ArrowDown" ? Te = Math.min(
|
|
1379
|
+
let Te = O;
|
|
1380
|
+
if (ae === "ArrowDown" ? Te = Math.min(O + 1, d.current.length - 1) : ae === "ArrowUp" && (Te = Math.max(O - 1, 0)), O === 0 && P.key === "ArrowUp" ? Te = d.current.length - 1 : O === d.current.length - 1 && P.key === "ArrowDown" && (Te = 0), D(Te), y.current && Te >= 0) {
|
|
1381
1381
|
const B = y.current.querySelectorAll(`.${We.optionsList}`)[Te], se = B.children[0].getAttribute("aria-checked"), Se = `${B.textContent} ${se === "true" ? "selected" : "not selected"} ${Te + 1} out of ${d.current.length}`;
|
|
1382
1382
|
C(Se), B && B.scrollIntoView({
|
|
1383
1383
|
block: "nearest",
|
|
1384
1384
|
inline: "nearest"
|
|
1385
1385
|
});
|
|
1386
1386
|
}
|
|
1387
|
-
} else ae === "Enter" || ae === "Space" || ae === " " ?
|
|
1387
|
+
} else ae === "Enter" || ae === "Space" || ae === " " ? O !== -1 && L(d.current[O].value) : ae === "Escape" && (W(!1), J());
|
|
1388
1388
|
};
|
|
1389
1389
|
he(() => {
|
|
1390
1390
|
H && clearTimeout(H);
|
|
1391
|
-
const
|
|
1391
|
+
const P = setTimeout(() => {
|
|
1392
1392
|
const ae = d.current.length ? `${d.current.length} results are available, use up and down arrow keys to navigate` : "No results available";
|
|
1393
1393
|
u && C(ae);
|
|
1394
1394
|
}, 500);
|
|
1395
|
-
|
|
1395
|
+
Q(P);
|
|
1396
1396
|
}, [p]);
|
|
1397
1397
|
const ie = () => {
|
|
1398
1398
|
h(!0);
|
|
@@ -1400,13 +1400,13 @@ const Zh = ({
|
|
|
1400
1400
|
h(!1);
|
|
1401
1401
|
};
|
|
1402
1402
|
if (he(() => {
|
|
1403
|
-
const
|
|
1404
|
-
return
|
|
1405
|
-
|
|
1403
|
+
const P = ee.current;
|
|
1404
|
+
return P && (P.addEventListener("focus", ie), P.addEventListener("blur", le)), () => {
|
|
1405
|
+
P && (P.removeEventListener("focus", ie), P.removeEventListener("blur", le));
|
|
1406
1406
|
};
|
|
1407
1407
|
}, [ie, le]), i) {
|
|
1408
|
-
const
|
|
1409
|
-
i = $t.convert3HexTo6(i), (
|
|
1408
|
+
const P = Lt(i);
|
|
1409
|
+
i = $t.convert3HexTo6(i), (P === "dark" || P === "light") && (j = {
|
|
1410
1410
|
borderBottomColor: i === "#ffffff" ? "#c8c8c8" : c || u ? i : "#333333"
|
|
1411
1411
|
});
|
|
1412
1412
|
}
|
|
@@ -1419,22 +1419,22 @@ const Zh = ({
|
|
|
1419
1419
|
"div",
|
|
1420
1420
|
{
|
|
1421
1421
|
className: `${We.selectedValues} ${u ? We.focused : ""} ${l.length === 0 ? We.placeholder : ""}`,
|
|
1422
|
-
ref:
|
|
1422
|
+
ref: ee,
|
|
1423
1423
|
onFocus: ie,
|
|
1424
1424
|
onBlur: le,
|
|
1425
1425
|
onClick: () => W(!u),
|
|
1426
|
-
onKeyPress: (
|
|
1427
|
-
(
|
|
1426
|
+
onKeyPress: (P) => {
|
|
1427
|
+
(P.key === " " || P.code === "Space" || P.code === "Enter") && (P.preventDefault(), W(!u));
|
|
1428
1428
|
},
|
|
1429
1429
|
tabIndex: 0,
|
|
1430
1430
|
"data-testid": "selected-input",
|
|
1431
|
-
style: { ...
|
|
1431
|
+
style: { ...j, ...a },
|
|
1432
1432
|
"aria-expanded": u,
|
|
1433
1433
|
"aria-haspopup": "listbox",
|
|
1434
1434
|
"aria-multiselectable": "true",
|
|
1435
1435
|
"aria-autocomplete": "list",
|
|
1436
1436
|
role: "combobox",
|
|
1437
|
-
children:
|
|
1437
|
+
children: T
|
|
1438
1438
|
}
|
|
1439
1439
|
),
|
|
1440
1440
|
/* @__PURE__ */ I.jsx(
|
|
@@ -1470,12 +1470,12 @@ const Zh = ({
|
|
|
1470
1470
|
{
|
|
1471
1471
|
className: `${We.optionsListContainer}`,
|
|
1472
1472
|
ref: w,
|
|
1473
|
-
onClick: (
|
|
1473
|
+
onClick: (P) => P.stopPropagation(),
|
|
1474
1474
|
style: {
|
|
1475
|
-
opacity:
|
|
1475
|
+
opacity: z.left ? 1 : 0,
|
|
1476
1476
|
width: v.current ? v.current.clientWidth : "auto",
|
|
1477
|
-
left:
|
|
1478
|
-
top:
|
|
1477
|
+
left: z.left,
|
|
1478
|
+
top: z.top
|
|
1479
1479
|
},
|
|
1480
1480
|
children: [
|
|
1481
1481
|
/* @__PURE__ */ I.jsxs("div", { className: We.optionsListWrap, children: [
|
|
@@ -1487,35 +1487,35 @@ const Zh = ({
|
|
|
1487
1487
|
placeholder: "Type to filter",
|
|
1488
1488
|
className: We.searchInput,
|
|
1489
1489
|
value: p,
|
|
1490
|
-
onChange: (
|
|
1490
|
+
onChange: (P) => m(P.target.value),
|
|
1491
1491
|
"data-testid": "search-input",
|
|
1492
|
-
onKeyDown: (
|
|
1493
|
-
|
|
1492
|
+
onKeyDown: (P) => {
|
|
1493
|
+
q(P);
|
|
1494
1494
|
}
|
|
1495
1495
|
}
|
|
1496
1496
|
) }),
|
|
1497
|
-
/* @__PURE__ */ I.jsx("ul", { ref: y, role: "listbox", children: d.current.map((
|
|
1497
|
+
/* @__PURE__ */ I.jsx("ul", { ref: y, role: "listbox", children: d.current.map((P, ae) => (
|
|
1498
1498
|
// eslint-disable-next-line jsx-a11y/role-supports-aria-props
|
|
1499
1499
|
/* @__PURE__ */ I.jsxs(
|
|
1500
1500
|
"li",
|
|
1501
1501
|
{
|
|
1502
|
-
className: `${We.optionsList} ${ae ===
|
|
1503
|
-
onClick: () =>
|
|
1504
|
-
"aria-selected": ae ===
|
|
1502
|
+
className: `${We.optionsList} ${ae === O ? We.focused : ""}`,
|
|
1503
|
+
onClick: () => L(P.value),
|
|
1504
|
+
"aria-selected": ae === O,
|
|
1505
1505
|
role: "option",
|
|
1506
1506
|
children: [
|
|
1507
1507
|
/* @__PURE__ */ I.jsx(
|
|
1508
1508
|
To,
|
|
1509
1509
|
{
|
|
1510
1510
|
themeColor: i,
|
|
1511
|
-
checked: l.includes(
|
|
1512
|
-
disabled:
|
|
1511
|
+
checked: l.includes(P.value),
|
|
1512
|
+
disabled: P.disable || r !== void 0 && l.length >= r && !l.includes(P.value)
|
|
1513
1513
|
}
|
|
1514
1514
|
),
|
|
1515
|
-
/* @__PURE__ */ I.jsx("span", { children:
|
|
1515
|
+
/* @__PURE__ */ I.jsx("span", { children: P.label })
|
|
1516
1516
|
]
|
|
1517
1517
|
},
|
|
1518
|
-
|
|
1518
|
+
P.value
|
|
1519
1519
|
)
|
|
1520
1520
|
)) })
|
|
1521
1521
|
] }),
|
|
@@ -1524,8 +1524,8 @@ const Zh = ({
|
|
|
1524
1524
|
"input",
|
|
1525
1525
|
{
|
|
1526
1526
|
ref: b,
|
|
1527
|
-
onKeyDown: (
|
|
1528
|
-
|
|
1527
|
+
onKeyDown: (P) => {
|
|
1528
|
+
q(P);
|
|
1529
1529
|
},
|
|
1530
1530
|
className: We.hiddenButton
|
|
1531
1531
|
}
|
|
@@ -1537,11 +1537,11 @@ const Zh = ({
|
|
|
1537
1537
|
variant: "primary",
|
|
1538
1538
|
size: "medium",
|
|
1539
1539
|
onClick: () => {
|
|
1540
|
-
f(!1), m(""),
|
|
1540
|
+
f(!1), m(""), J(), n(l);
|
|
1541
1541
|
},
|
|
1542
1542
|
"data-testid": "done-button",
|
|
1543
|
-
onKeyDown: (
|
|
1544
|
-
|
|
1543
|
+
onKeyDown: (P) => {
|
|
1544
|
+
V(P);
|
|
1545
1545
|
},
|
|
1546
1546
|
ref: x,
|
|
1547
1547
|
children: "Done"
|
|
@@ -1587,30 +1587,30 @@ const Zh = ({
|
|
|
1587
1587
|
variant: l = "default",
|
|
1588
1588
|
placeholder: s = "Select your option"
|
|
1589
1589
|
}) => {
|
|
1590
|
-
const p =
|
|
1590
|
+
const p = X(e), [m, u] = oe(t), [f, c] = oe(""), [h, v] = oe(!1), [w, E] = oe(!1), b = X(null), x = X(null), y = X(null), O = X(null), D = X(null), K = X(null), [F, _] = oe(-1), U = X(0), j = X(0), [z, Z] = oe(!1);
|
|
1591
1591
|
let H = {};
|
|
1592
|
-
const [
|
|
1592
|
+
const [Q, re] = oe({ left: 0, top: 0 }), [ee, J] = oe(null), N = X(!1), C = X(null);
|
|
1593
1593
|
he(() => {
|
|
1594
1594
|
u(t);
|
|
1595
1595
|
}, [t]);
|
|
1596
|
-
const
|
|
1596
|
+
const T = () => {
|
|
1597
1597
|
setTimeout(() => {
|
|
1598
1598
|
(b.current?.children[0]).focus();
|
|
1599
1599
|
}, 0);
|
|
1600
1600
|
};
|
|
1601
1601
|
he(() => {
|
|
1602
1602
|
const B = (se) => {
|
|
1603
|
-
x.current && !x.current.contains(se.target) && (v(!1), c(""),
|
|
1603
|
+
x.current && !x.current.contains(se.target) && (v(!1), c(""), T());
|
|
1604
1604
|
};
|
|
1605
1605
|
return document.addEventListener("mousedown", B), () => {
|
|
1606
1606
|
document.removeEventListener("mousedown", B);
|
|
1607
1607
|
};
|
|
1608
1608
|
}, []);
|
|
1609
|
-
const
|
|
1610
|
-
|
|
1609
|
+
const L = () => {
|
|
1610
|
+
U.current = window.innerHeight, j.current = document.body.scrollHeight, Z(!0);
|
|
1611
1611
|
};
|
|
1612
|
-
he(() => (
|
|
1613
|
-
window.addEventListener("resize",
|
|
1612
|
+
he(() => (L(), window.addEventListener("resize", L), () => {
|
|
1613
|
+
window.addEventListener("resize", L);
|
|
1614
1614
|
}), []);
|
|
1615
1615
|
const W = (B) => {
|
|
1616
1616
|
const se = document.getElementById("announcement");
|
|
@@ -1622,7 +1622,7 @@ const Zh = ({
|
|
|
1622
1622
|
const B = e.filter((se) => se.label.toLowerCase().includes(f.toLowerCase()));
|
|
1623
1623
|
p.current = B;
|
|
1624
1624
|
}, [e, f]);
|
|
1625
|
-
const
|
|
1625
|
+
const k = m.length > 1 && d ? d : m.length > 0 ? m.map((B) => {
|
|
1626
1626
|
const se = e.find((Se) => Se.value === B);
|
|
1627
1627
|
return se?.label !== null ? se?.label : "";
|
|
1628
1628
|
}).filter((B) => B !== "").join(", ") : s, R = (B) => {
|
|
@@ -1630,20 +1630,20 @@ const Zh = ({
|
|
|
1630
1630
|
if (se && !se.disable && (r === void 0 || m.length <= r)) {
|
|
1631
1631
|
const Ne = m.includes(B) ? m.filter((De) => De !== B) : [...m, B];
|
|
1632
1632
|
(r === void 0 || Ne.length <= r) && h && (u(Ne), n(Ne), setTimeout(() => {
|
|
1633
|
-
|
|
1633
|
+
q();
|
|
1634
1634
|
}, 50), p.current.length === 1 && v(!1), W(`${se?.label} ${Ne.includes(B) ? "selected" : "not selected"}`));
|
|
1635
1635
|
}
|
|
1636
|
-
},
|
|
1637
|
-
|
|
1638
|
-
y.current ? y.current?.focus() :
|
|
1636
|
+
}, V = (B) => {
|
|
1637
|
+
q(), v(B), setTimeout(() => {
|
|
1638
|
+
y.current ? y.current?.focus() : O.current?.focus(), W("use up and down arrow keys to navigate");
|
|
1639
1639
|
}, 0);
|
|
1640
|
-
},
|
|
1640
|
+
}, q = () => {
|
|
1641
1641
|
if (b.current) {
|
|
1642
1642
|
const B = b.current.getBoundingClientRect();
|
|
1643
1643
|
setTimeout(() => {
|
|
1644
1644
|
const se = x?.current?.getBoundingClientRect();
|
|
1645
1645
|
if (se) {
|
|
1646
|
-
const Se = se.height, Ne = se.width, Ae = window.innerWidth, De =
|
|
1646
|
+
const Se = se.height, Ne = se.width, Ae = window.innerWidth, De = U.current - B.bottom, Jt = B.top;
|
|
1647
1647
|
let it;
|
|
1648
1648
|
De >= Se ? it = B.bottom : Jt >= Se ? it = B.top - Se : De >= Jt ? it = B.bottom : it = B.top - Se;
|
|
1649
1649
|
const ut = Ae - B.left, ct = B.right;
|
|
@@ -1656,52 +1656,52 @@ const Zh = ({
|
|
|
1656
1656
|
}, 10);
|
|
1657
1657
|
}
|
|
1658
1658
|
};
|
|
1659
|
-
he(() => (window.addEventListener("scroll",
|
|
1660
|
-
window.removeEventListener("scroll",
|
|
1659
|
+
he(() => (window.addEventListener("scroll", q), window.addEventListener("resize", q), () => {
|
|
1660
|
+
window.removeEventListener("scroll", q), window.removeEventListener("resize", q);
|
|
1661
1661
|
}), [h]);
|
|
1662
1662
|
const ie = (B) => {
|
|
1663
1663
|
B.preventDefault(), B.key === "Shift" ? N.current = !0 : B.shiftKey && N.current && B.key === "Tab" || B.key === "Tab" ? (setTimeout(() => {
|
|
1664
|
-
y.current ? y.current?.focus() :
|
|
1665
|
-
}, 0), N.current = !1) : B.key === "Escape" || B.key === "Enter" || B.key === "Space" || B.key === " " ? (
|
|
1664
|
+
y.current ? y.current?.focus() : O.current?.focus();
|
|
1665
|
+
}, 0), N.current = !1) : B.key === "Escape" || B.key === "Enter" || B.key === "Space" || B.key === " " ? (V(!1), T()) : N.current = !1;
|
|
1666
1666
|
}, le = (B) => {
|
|
1667
1667
|
const { key: se } = B;
|
|
1668
1668
|
if (se === "Tab" || B.shiftKey && se === "Tab")
|
|
1669
1669
|
setTimeout(() => {
|
|
1670
|
-
|
|
1670
|
+
D.current?.focus();
|
|
1671
1671
|
}, 0);
|
|
1672
1672
|
else if (se === "ArrowDown" || se === "ArrowUp") {
|
|
1673
1673
|
B.preventDefault(), setTimeout(() => {
|
|
1674
|
-
|
|
1674
|
+
O.current?.focus();
|
|
1675
1675
|
}, 0);
|
|
1676
1676
|
let Se = F;
|
|
1677
|
-
if (se === "ArrowDown" ? Se = Math.min(F + 1, p.current.length - 1) : se === "ArrowUp" && (Se = Math.max(F - 1, 0)), F === 0 && B.key === "ArrowUp" ? Se = p.current.length - 1 : F === p.current.length - 1 && B.key === "ArrowDown" && (Se = 0), _(Se),
|
|
1678
|
-
const Ne =
|
|
1677
|
+
if (se === "ArrowDown" ? Se = Math.min(F + 1, p.current.length - 1) : se === "ArrowUp" && (Se = Math.max(F - 1, 0)), F === 0 && B.key === "ArrowUp" ? Se = p.current.length - 1 : F === p.current.length - 1 && B.key === "ArrowDown" && (Se = 0), _(Se), K.current && Se >= 0) {
|
|
1678
|
+
const Ne = K.current.querySelectorAll(`.${Re.optionsList}`)[Se], Ae = Ne.children[0].getAttribute("aria-checked"), De = `${Ne.textContent} ${Ae === "true" ? "selected" : "not selected"} ${Se + 1} out of ${p.current.length}`;
|
|
1679
1679
|
W(De), Ne && Ne.scrollIntoView({
|
|
1680
1680
|
block: "nearest",
|
|
1681
1681
|
inline: "nearest"
|
|
1682
1682
|
});
|
|
1683
1683
|
}
|
|
1684
|
-
} else se === "Enter" || se === "Space" || se === " " ? F !== -1 && R(p.current[F].value) : se === "Escape" && (
|
|
1684
|
+
} else se === "Enter" || se === "Space" || se === " " ? F !== -1 && R(p.current[F].value) : se === "Escape" && (V(!1), T());
|
|
1685
1685
|
};
|
|
1686
1686
|
he(() => {
|
|
1687
|
-
|
|
1687
|
+
ee && clearTimeout(ee);
|
|
1688
1688
|
const B = setTimeout(() => {
|
|
1689
1689
|
const se = p.current.length ? `${p.current.length} results are available, use up and down arrow keys to navigate` : "No results available";
|
|
1690
1690
|
h && W(se);
|
|
1691
1691
|
}, 500);
|
|
1692
|
-
|
|
1692
|
+
J(B);
|
|
1693
1693
|
}, [f]);
|
|
1694
1694
|
const ce = () => {
|
|
1695
1695
|
E(!0);
|
|
1696
|
-
},
|
|
1696
|
+
}, P = () => {
|
|
1697
1697
|
E(!1);
|
|
1698
1698
|
};
|
|
1699
1699
|
if (he(() => {
|
|
1700
1700
|
const B = C.current;
|
|
1701
|
-
return B && (B.addEventListener("focus", ce), B.addEventListener("blur",
|
|
1702
|
-
B && (B.removeEventListener("focus", ce), B.removeEventListener("blur",
|
|
1701
|
+
return B && (B.addEventListener("focus", ce), B.addEventListener("blur", P)), () => {
|
|
1702
|
+
B && (B.removeEventListener("focus", ce), B.removeEventListener("blur", P));
|
|
1703
1703
|
};
|
|
1704
|
-
}, [ce,
|
|
1704
|
+
}, [ce, P]), i) {
|
|
1705
1705
|
const B = Lt(i);
|
|
1706
1706
|
i = $t.convert3HexTo6(i), (B === "dark" || B === "light") && (H = {
|
|
1707
1707
|
"--theme-color": i
|
|
@@ -1710,7 +1710,7 @@ const Zh = ({
|
|
|
1710
1710
|
const ae = () => {
|
|
1711
1711
|
v(!1);
|
|
1712
1712
|
}, Te = () => {
|
|
1713
|
-
v(!1), c(""),
|
|
1713
|
+
v(!1), c(""), T(), n(m);
|
|
1714
1714
|
};
|
|
1715
1715
|
return /* @__PURE__ */ I.jsx("div", { className: Re.multiSelectContainer, children: /* @__PURE__ */ I.jsxs("div", { className: Re.listOptionsWrap, children: [
|
|
1716
1716
|
/* @__PURE__ */ I.jsx("div", { className: `${o} ${Re.selectedValuesWrap}`, ref: b, children: /* @__PURE__ */ I.jsxs(
|
|
@@ -1719,10 +1719,10 @@ const Zh = ({
|
|
|
1719
1719
|
className: `${Re.selectedValues} ${h ? Re.focused : ""} ${m.length > 0 ? Re.selected : ""} ${m.length > 1 ? Re.countShow : ""} ${m.length === 0 ? Re.placeholder : ""} ${l === "rounded" ? Re.rounded : ""}`,
|
|
1720
1720
|
ref: C,
|
|
1721
1721
|
onFocus: ce,
|
|
1722
|
-
onBlur:
|
|
1723
|
-
onClick: () =>
|
|
1722
|
+
onBlur: P,
|
|
1723
|
+
onClick: () => V(!h),
|
|
1724
1724
|
onKeyPress: (B) => {
|
|
1725
|
-
(B.key === " " || B.code === "Space" || B.code === "Enter") && (B.preventDefault(),
|
|
1725
|
+
(B.key === " " || B.code === "Space" || B.code === "Enter") && (B.preventDefault(), V(!h));
|
|
1726
1726
|
},
|
|
1727
1727
|
tabIndex: 0,
|
|
1728
1728
|
"data-testid": "selected-input",
|
|
@@ -1733,7 +1733,7 @@ const Zh = ({
|
|
|
1733
1733
|
"aria-autocomplete": "list",
|
|
1734
1734
|
role: "combobox",
|
|
1735
1735
|
children: [
|
|
1736
|
-
/* @__PURE__ */ I.jsx("span", { children:
|
|
1736
|
+
/* @__PURE__ */ I.jsx("span", { children: k }),
|
|
1737
1737
|
/* @__PURE__ */ I.jsxs("div", { className: Re.countAndIconContainer, children: [
|
|
1738
1738
|
m.length > 1 && /* @__PURE__ */ I.jsx(
|
|
1739
1739
|
"span",
|
|
@@ -1748,7 +1748,7 @@ const Zh = ({
|
|
|
1748
1748
|
"span",
|
|
1749
1749
|
{
|
|
1750
1750
|
className: Re.dropDownIcon,
|
|
1751
|
-
onClick: () =>
|
|
1751
|
+
onClick: () => V(!h),
|
|
1752
1752
|
"data-testid": "arrow-button",
|
|
1753
1753
|
children: /* @__PURE__ */ I.jsx("svg", { width: "12px", height: "7px", viewBox: "0 0 12 7", version: "1.1", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ I.jsx("g", { stroke: "none", strokeWidth: "1", fill: "none", fillRule: "evenodd", children: /* @__PURE__ */ I.jsx("g", { transform: "translate(-2360.000000, -295.000000)", fill: "#666666", children: /* @__PURE__ */ I.jsx("g", { transform: "translate(2006.000000, 248.000000)", children: /* @__PURE__ */ I.jsx(
|
|
1754
1754
|
"path",
|
|
@@ -1764,7 +1764,7 @@ const Zh = ({
|
|
|
1764
1764
|
}
|
|
1765
1765
|
) }),
|
|
1766
1766
|
/* @__PURE__ */ I.jsx("div", { id: "announcement", "aria-live": "assertive", role: "alert", className: Re.announcement }),
|
|
1767
|
-
|
|
1767
|
+
z ? Pn(
|
|
1768
1768
|
/* @__PURE__ */ I.jsx(I.Fragment, { children: h && b && /* @__PURE__ */ I.jsx(
|
|
1769
1769
|
"div",
|
|
1770
1770
|
{
|
|
@@ -1782,9 +1782,9 @@ const Zh = ({
|
|
|
1782
1782
|
ref: x,
|
|
1783
1783
|
onClick: (B) => B.stopPropagation(),
|
|
1784
1784
|
style: {
|
|
1785
|
-
opacity:
|
|
1786
|
-
left:
|
|
1787
|
-
top:
|
|
1785
|
+
opacity: Q.top ? 1 : 0,
|
|
1786
|
+
left: Q.left,
|
|
1787
|
+
top: Q.top,
|
|
1788
1788
|
paddingBottom: p.current.length === 1 ? 0 : void 0
|
|
1789
1789
|
},
|
|
1790
1790
|
children: [
|
|
@@ -1804,7 +1804,7 @@ const Zh = ({
|
|
|
1804
1804
|
}
|
|
1805
1805
|
}
|
|
1806
1806
|
) }),
|
|
1807
|
-
/* @__PURE__ */ I.jsx("ul", { ref:
|
|
1807
|
+
/* @__PURE__ */ I.jsx("ul", { ref: K, role: "listbox", children: p.current.map((B, se) => (
|
|
1808
1808
|
// eslint-disable-next-line jsx-a11y/role-supports-aria-props
|
|
1809
1809
|
/* @__PURE__ */ I.jsxs(
|
|
1810
1810
|
"li",
|
|
@@ -1833,7 +1833,7 @@ const Zh = ({
|
|
|
1833
1833
|
/* @__PURE__ */ I.jsx(
|
|
1834
1834
|
"input",
|
|
1835
1835
|
{
|
|
1836
|
-
ref:
|
|
1836
|
+
ref: O,
|
|
1837
1837
|
onKeyDown: (B) => {
|
|
1838
1838
|
le(B);
|
|
1839
1839
|
},
|
|
@@ -1852,7 +1852,7 @@ const Zh = ({
|
|
|
1852
1852
|
onKeyDown: (B) => {
|
|
1853
1853
|
ie(B);
|
|
1854
1854
|
},
|
|
1855
|
-
ref:
|
|
1855
|
+
ref: D,
|
|
1856
1856
|
children: "Done"
|
|
1857
1857
|
}
|
|
1858
1858
|
)
|
|
@@ -1880,7 +1880,7 @@ const Zh = ({
|
|
|
1880
1880
|
style: a = {},
|
|
1881
1881
|
id: d = ""
|
|
1882
1882
|
}) => {
|
|
1883
|
-
const [l, s] = oe(t), p =
|
|
1883
|
+
const [l, s] = oe(t), p = X({});
|
|
1884
1884
|
let m = {}, u;
|
|
1885
1885
|
const f = (c) => {
|
|
1886
1886
|
const h = e.find((x) => x.value === c);
|
|
@@ -2029,7 +2029,7 @@ const Zh = ({
|
|
|
2029
2029
|
}
|
|
2030
2030
|
);
|
|
2031
2031
|
Q1.displayName = "Scrollbar";
|
|
2032
|
-
const ef = typeof document < "u" ?
|
|
2032
|
+
const ef = typeof document < "u" ? M.useLayoutEffect : () => {
|
|
2033
2033
|
}, Xt = (e) => {
|
|
2034
2034
|
var t;
|
|
2035
2035
|
return (t = e?.ownerDocument) !== null && t !== void 0 ? t : document;
|
|
@@ -2171,7 +2171,7 @@ function Kn(e, t, n = !0) {
|
|
|
2171
2171
|
}
|
|
2172
2172
|
Kn.isOpening = !1;
|
|
2173
2173
|
function zl() {
|
|
2174
|
-
let e =
|
|
2174
|
+
let e = X(/* @__PURE__ */ new Map()), t = pe((i, o, a, d) => {
|
|
2175
2175
|
let l = d?.once ? (...s) => {
|
|
2176
2176
|
e.current.delete(a), a(...s);
|
|
2177
2177
|
} : a;
|
|
@@ -2216,7 +2216,7 @@ function vf(e, t) {
|
|
|
2216
2216
|
});
|
|
2217
2217
|
}
|
|
2218
2218
|
function Yl(e) {
|
|
2219
|
-
let t =
|
|
2219
|
+
let t = X({
|
|
2220
2220
|
isFocused: !1,
|
|
2221
2221
|
observer: null
|
|
2222
2222
|
});
|
|
@@ -2371,7 +2371,7 @@ function Ef(e) {
|
|
|
2371
2371
|
};
|
|
2372
2372
|
}
|
|
2373
2373
|
function Sf(e) {
|
|
2374
|
-
let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = e, o =
|
|
2374
|
+
let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = e, o = X({
|
|
2375
2375
|
isFocusWithin: !1
|
|
2376
2376
|
}), { addGlobalListener: a, removeAllGlobalListeners: d } = zl(), l = pe((m) => {
|
|
2377
2377
|
Ht(m.currentTarget, He(m)) && o.current.isFocusWithin && !Ht(m.currentTarget, m.relatedTarget) && (o.current.isFocusWithin = !1, d(), n && n(m), i && i(!1));
|
|
@@ -2437,7 +2437,7 @@ function Of() {
|
|
|
2437
2437
|
};
|
|
2438
2438
|
}
|
|
2439
2439
|
function Ao(e) {
|
|
2440
|
-
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, isDisabled: i } = e, [o, a] = oe(!1), d =
|
|
2440
|
+
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, isDisabled: i } = e, [o, a] = oe(!1), d = X({
|
|
2441
2441
|
isHovered: !1,
|
|
2442
2442
|
ignoreEmulatedMouseEvents: !1,
|
|
2443
2443
|
pointerType: "",
|
|
@@ -2501,7 +2501,7 @@ function Ao(e) {
|
|
|
2501
2501
|
};
|
|
2502
2502
|
}
|
|
2503
2503
|
function Ro(e = {}) {
|
|
2504
|
-
let { autoFocus: t = !1, isTextInput: n, within: r } = e, i =
|
|
2504
|
+
let { autoFocus: t = !1, isTextInput: n, within: r } = e, i = X({
|
|
2505
2505
|
isFocused: !1,
|
|
2506
2506
|
isFocusVisible: t || qi()
|
|
2507
2507
|
}), [o, a] = oe(!1), [d, l] = oe(() => i.current.isFocused && i.current.isFocusVisible), s = pe(() => l(i.current.isFocused && i.current.isFocusVisible), []), p = pe((f) => {
|
|
@@ -2625,14 +2625,14 @@ let Pe = (e, t) => {
|
|
|
2625
2625
|
St.isServer ? he(e, t) : So(e, t);
|
|
2626
2626
|
};
|
|
2627
2627
|
function jt(e) {
|
|
2628
|
-
let t =
|
|
2628
|
+
let t = X(e);
|
|
2629
2629
|
return Pe(() => {
|
|
2630
2630
|
t.current = e;
|
|
2631
2631
|
}, [e]), t;
|
|
2632
2632
|
}
|
|
2633
2633
|
let de = function(e) {
|
|
2634
2634
|
let t = jt(e);
|
|
2635
|
-
return
|
|
2635
|
+
return M.useCallback((...n) => t.current(...n), [t]);
|
|
2636
2636
|
};
|
|
2637
2637
|
function If(e) {
|
|
2638
2638
|
let t = e.width / 2, n = e.height / 2;
|
|
@@ -2642,7 +2642,7 @@ function _f(e, t) {
|
|
|
2642
2642
|
return !(!e || !t || e.right < t.left || e.left > t.right || e.bottom < t.top || e.top > t.bottom);
|
|
2643
2643
|
}
|
|
2644
2644
|
function ns({ disabled: e = !1 } = {}) {
|
|
2645
|
-
let t =
|
|
2645
|
+
let t = X(null), [n, r] = oe(!1), i = Zt(), o = de(() => {
|
|
2646
2646
|
t.current = null, r(!1), i.dispose();
|
|
2647
2647
|
}), a = de((d) => {
|
|
2648
2648
|
if (i.dispose(), t.current === null) {
|
|
@@ -2727,7 +2727,7 @@ function Tr(e, t = {}, n, r, i) {
|
|
|
2727
2727
|
return xc(o, Object.assign({}, yi(l, ["ref"]), !Un(o) && s, !Un(o) && m), p);
|
|
2728
2728
|
}
|
|
2729
2729
|
function Ff() {
|
|
2730
|
-
let e =
|
|
2730
|
+
let e = X([]), t = pe((n) => {
|
|
2731
2731
|
for (let r of e.current) r != null && (typeof r == "function" ? r(n) : r.current = n);
|
|
2732
2732
|
}, []);
|
|
2733
2733
|
return (...n) => {
|
|
@@ -2783,7 +2783,7 @@ function yi(e, t = []) {
|
|
|
2783
2783
|
return n;
|
|
2784
2784
|
}
|
|
2785
2785
|
function Mf(e) {
|
|
2786
|
-
return
|
|
2786
|
+
return M.version.split(".")[0] >= "19" ? e.props.ref : e.ref;
|
|
2787
2787
|
}
|
|
2788
2788
|
function Un(e) {
|
|
2789
2789
|
return e === lt || e === Symbol.for("react.fragment");
|
|
@@ -2792,7 +2792,7 @@ function Lf(e) {
|
|
|
2792
2792
|
return Un(e.type);
|
|
2793
2793
|
}
|
|
2794
2794
|
function is(e, t, n) {
|
|
2795
|
-
let [r, i] = oe(n), o = e !== void 0, a =
|
|
2795
|
+
let [r, i] = oe(n), o = e !== void 0, a = X(o), d = X(!1), l = X(!1);
|
|
2796
2796
|
return o && !a.current && !d.current ? (d.current = !0, a.current = o, 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.")) : !o && a.current && !l.current && (l.current = !0, a.current = o, 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.")), [o ? e : r, de((s) => (o || vt(() => i(s)), t?.(s)))];
|
|
2797
2797
|
}
|
|
2798
2798
|
function os(e) {
|
|
@@ -2836,15 +2836,15 @@ function Wf(e, t) {
|
|
|
2836
2836
|
let ss = Le(Wf), Vf = Me(null);
|
|
2837
2837
|
function Uf({ children: e }) {
|
|
2838
2838
|
let t = Ie(Vf);
|
|
2839
|
-
if (!t) return
|
|
2839
|
+
if (!t) return M.createElement(M.Fragment, null, e);
|
|
2840
2840
|
let { target: n } = t;
|
|
2841
|
-
return n ? Pn(
|
|
2841
|
+
return n ? Pn(M.createElement(M.Fragment, null, e), n) : null;
|
|
2842
2842
|
}
|
|
2843
2843
|
function us({ data: e, form: t, disabled: n, onReset: r, overrides: i }) {
|
|
2844
2844
|
let [o, a] = oe(null), d = Zt();
|
|
2845
2845
|
return he(() => {
|
|
2846
2846
|
if (r && o) return d.addEventListener(o, "reset", r);
|
|
2847
|
-
}, [o, t, r]),
|
|
2847
|
+
}, [o, t, r]), M.createElement(Uf, null, M.createElement(Hf, { setForm: a, formId: t }), as(e).map(([l, s]) => M.createElement(ss, { features: ko.Hidden, ...Ut({ key: l, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: t, disabled: n, name: l, value: s, ...i }) })));
|
|
2848
2848
|
}
|
|
2849
2849
|
function Hf({ setForm: e, formId: t }) {
|
|
2850
2850
|
return he(() => {
|
|
@@ -2852,7 +2852,7 @@ function Hf({ setForm: e, formId: t }) {
|
|
|
2852
2852
|
let n = document.getElementById(t);
|
|
2853
2853
|
n && e(n);
|
|
2854
2854
|
}
|
|
2855
|
-
}, [e, t]), t ? null :
|
|
2855
|
+
}, [e, t]), t ? null : M.createElement(ss, { features: ko.Hidden, as: "input", type: "hidden", hidden: !0, readOnly: !0, ref: (n) => {
|
|
2856
2856
|
if (!n) return;
|
|
2857
2857
|
let r = n.closest("form");
|
|
2858
2858
|
r && e(r);
|
|
@@ -2915,7 +2915,7 @@ function Zf(e, t = !0) {
|
|
|
2915
2915
|
return Object.assign(e, { [ps]: t });
|
|
2916
2916
|
}
|
|
2917
2917
|
function Ke(...e) {
|
|
2918
|
-
let t =
|
|
2918
|
+
let t = X(e);
|
|
2919
2919
|
he(() => {
|
|
2920
2920
|
t.current = e;
|
|
2921
2921
|
}, [e]);
|
|
@@ -2970,7 +2970,7 @@ function gs({ inherit: e = !1 } = {}) {
|
|
|
2970
2970
|
let p = s.slice(), m = p.indexOf(l);
|
|
2971
2971
|
return m !== -1 && p.splice(m, 1), p;
|
|
2972
2972
|
}))), d = _e(() => ({ register: a, slot: o.slot, name: o.name, props: o.props, value: o.value }), [a, o.slot, o.name, o.props, o.value]);
|
|
2973
|
-
return
|
|
2973
|
+
return M.createElement(ri.Provider, { value: d }, o.children);
|
|
2974
2974
|
}, [r])];
|
|
2975
2975
|
}
|
|
2976
2976
|
let t2 = "label";
|
|
@@ -3656,7 +3656,7 @@ function Zi(e, t, n = !1) {
|
|
|
3656
3656
|
}
|
|
3657
3657
|
var Do = ((e) => (e[e.Left = 0] = "Left", e[e.Right = 2] = "Right", e))(Do || {});
|
|
3658
3658
|
function ws(e) {
|
|
3659
|
-
let t =
|
|
3659
|
+
let t = X(null), n = de((i) => {
|
|
3660
3660
|
t.current = i.pointerType, !Ka(i.currentTarget) && i.pointerType === "mouse" && i.button === Do.Left && (i.preventDefault(), e(i));
|
|
3661
3661
|
}), r = de((i) => {
|
|
3662
3662
|
t.current !== "mouse" && (Ka(i.currentTarget) || e(i));
|
|
@@ -3777,7 +3777,7 @@ var nd;
|
|
|
3777
3777
|
function E2() {
|
|
3778
3778
|
if (nd) return Ei;
|
|
3779
3779
|
nd = 1;
|
|
3780
|
-
var e =
|
|
3780
|
+
var e = M;
|
|
3781
3781
|
function t(l, s) {
|
|
3782
3782
|
return l === s && (l !== 0 || 1 / l === 1 / s) || l !== l && s !== s;
|
|
3783
3783
|
}
|
|
@@ -3793,15 +3793,15 @@ function E2() {
|
|
|
3793
3793
|
function v(y) {
|
|
3794
3794
|
if (!w) {
|
|
3795
3795
|
if (w = !0, E = y, y = m(y), u !== void 0 && c.hasValue) {
|
|
3796
|
-
var
|
|
3797
|
-
if (u(
|
|
3798
|
-
return b =
|
|
3796
|
+
var O = c.value;
|
|
3797
|
+
if (u(O, y))
|
|
3798
|
+
return b = O;
|
|
3799
3799
|
}
|
|
3800
3800
|
return b = y;
|
|
3801
3801
|
}
|
|
3802
|
-
if (
|
|
3803
|
-
var
|
|
3804
|
-
return u !== void 0 && u(
|
|
3802
|
+
if (O = b, n(E, y)) return O;
|
|
3803
|
+
var D = m(y);
|
|
3804
|
+
return u !== void 0 && u(O, D) ? (E = y, O) : (E = y, b = D);
|
|
3805
3805
|
}
|
|
3806
3806
|
var w = !1, E, b, x = p === void 0 ? null : p;
|
|
3807
3807
|
return [
|
|
@@ -3841,7 +3841,7 @@ function S2() {
|
|
|
3841
3841
|
return l === s && (l !== 0 || 1 / l === 1 / s) || l !== l && s !== s;
|
|
3842
3842
|
}
|
|
3843
3843
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
3844
|
-
var t =
|
|
3844
|
+
var t = M, n = typeof Object.is == "function" ? Object.is : e, r = t.useSyncExternalStore, i = t.useRef, o = t.useEffect, a = t.useMemo, d = t.useDebugValue;
|
|
3845
3845
|
Si.useSyncExternalStoreWithSelector = function(l, s, p, m, u) {
|
|
3846
3846
|
var f = i(null);
|
|
3847
3847
|
if (f.current === null) {
|
|
@@ -3853,16 +3853,16 @@ function S2() {
|
|
|
3853
3853
|
function v(y) {
|
|
3854
3854
|
if (!w) {
|
|
3855
3855
|
if (w = !0, E = y, y = m(y), u !== void 0 && c.hasValue) {
|
|
3856
|
-
var
|
|
3857
|
-
if (u(
|
|
3858
|
-
return b =
|
|
3856
|
+
var O = c.value;
|
|
3857
|
+
if (u(O, y))
|
|
3858
|
+
return b = O;
|
|
3859
3859
|
}
|
|
3860
3860
|
return b = y;
|
|
3861
3861
|
}
|
|
3862
|
-
if (
|
|
3863
|
-
return
|
|
3864
|
-
var
|
|
3865
|
-
return u !== void 0 && u(
|
|
3862
|
+
if (O = b, n(E, y))
|
|
3863
|
+
return O;
|
|
3864
|
+
var D = m(y);
|
|
3865
|
+
return u !== void 0 && u(O, D) ? (E = y, O) : (E = y, b = D);
|
|
3866
3866
|
}
|
|
3867
3867
|
var w = !1, E, b, x = p === void 0 ? null : p;
|
|
3868
3868
|
return [
|
|
@@ -4068,7 +4068,7 @@ function As(e, t, n) {
|
|
|
4068
4068
|
})(t);
|
|
4069
4069
|
for (let m of p) if (m !== null && (m.contains(s) || d.composed && d.composedPath().includes(m))) return;
|
|
4070
4070
|
return !Is(s, Wo.Loose) && s.tabIndex !== -1 && d.preventDefault(), r.current(d, s);
|
|
4071
|
-
}, [r, t]), o =
|
|
4071
|
+
}, [r, t]), o = X(null);
|
|
4072
4072
|
vn(e, "pointerdown", (d) => {
|
|
4073
4073
|
var l, s;
|
|
4074
4074
|
eo() || (o.current = ((s = (l = d.composedPath) == null ? void 0 : l.call(d)) == null ? void 0 : s[0]) || d.target);
|
|
@@ -4077,7 +4077,7 @@ function As(e, t, n) {
|
|
|
4077
4077
|
let l = o.current;
|
|
4078
4078
|
return o.current = null, i(d, () => l);
|
|
4079
4079
|
}, !0);
|
|
4080
|
-
let a =
|
|
4080
|
+
let a = X({ x: 0, y: 0 });
|
|
4081
4081
|
vn(e, "touchstart", (d) => {
|
|
4082
4082
|
a.current.x = d.touches[0].clientX, a.current.y = d.touches[0].clientY;
|
|
4083
4083
|
}, !0), vn(e, "touchend", (d) => {
|
|
@@ -4091,7 +4091,7 @@ function zn(...e) {
|
|
|
4091
4091
|
var B2 = ((e) => (e[e.Ignore = 0] = "Ignore", e[e.Select = 1] = "Select", e[e.Close = 2] = "Close", e))(B2 || {});
|
|
4092
4092
|
const At = { Ignore: { kind: 0 }, Select: (e) => ({ kind: 1, target: e }), Close: { kind: 2 } }, W2 = 200, ld = 5;
|
|
4093
4093
|
function Rs(e, { trigger: t, action: n, close: r, select: i }) {
|
|
4094
|
-
let o =
|
|
4094
|
+
let o = X(null), a = X(null), d = X(null);
|
|
4095
4095
|
vn(e && t !== null, "pointerdown", (l) => {
|
|
4096
4096
|
cs(l?.target) && t != null && t.contains(l.target) && (a.current = l.x, d.current = l.y, o.current = l.timeStamp);
|
|
4097
4097
|
}), vn(e && t !== null, "pointerup", (l) => {
|
|
@@ -4124,7 +4124,7 @@ function V2(e, t, n, r) {
|
|
|
4124
4124
|
}, [e, t, r]);
|
|
4125
4125
|
}
|
|
4126
4126
|
function Fs(e) {
|
|
4127
|
-
let t =
|
|
4127
|
+
let t = X({ value: "", selectionStart: null, selectionEnd: null });
|
|
4128
4128
|
return V2(e, "blur", (n) => {
|
|
4129
4129
|
let r = n.target;
|
|
4130
4130
|
Wr(r) && (t.current = { value: r.value, selectionStart: r.selectionStart, selectionEnd: r.selectionEnd });
|
|
@@ -4270,7 +4270,7 @@ function ud(e) {
|
|
|
4270
4270
|
return [e.screenX, e.screenY];
|
|
4271
4271
|
}
|
|
4272
4272
|
function Ls() {
|
|
4273
|
-
let e =
|
|
4273
|
+
let e = X([-1, -1]);
|
|
4274
4274
|
return { wasMoved(t) {
|
|
4275
4275
|
let n = ud(t);
|
|
4276
4276
|
return e.current[0] === n[0] && e.current[1] === n[1] ? !1 : (e.current = n, !0);
|
|
@@ -4294,7 +4294,7 @@ function Uo(e) {
|
|
|
4294
4294
|
return t;
|
|
4295
4295
|
}
|
|
4296
4296
|
function Ho(e, t, n, r) {
|
|
4297
|
-
let [i, o] = oe(n), { hasFlag: a, addFlag: d, removeFlag: l } = Y2(e && i ? 3 : 0), s =
|
|
4297
|
+
let [i, o] = oe(n), { hasFlag: a, addFlag: d, removeFlag: l } = Y2(e && i ? 3 : 0), s = X(!1), p = X(!1), m = Zt();
|
|
4298
4298
|
return Pe(() => {
|
|
4299
4299
|
var u;
|
|
4300
4300
|
if (e) {
|
|
@@ -4347,7 +4347,7 @@ function e3(e) {
|
|
|
4347
4347
|
return ((n = (t = e.getAnimations) == null ? void 0 : t.call(e)) != null ? n : []).some((r) => r instanceof CSSTransition && r.playState !== "finished");
|
|
4348
4348
|
}
|
|
4349
4349
|
function t3(e, { container: t, accept: n, walk: r }) {
|
|
4350
|
-
let i =
|
|
4350
|
+
let i = X(n), o = X(r);
|
|
4351
4351
|
he(() => {
|
|
4352
4352
|
i.current = n, o.current = r;
|
|
4353
4353
|
}, [n, r]), Pe(() => {
|
|
@@ -4359,7 +4359,7 @@ function t3(e, { container: t, accept: n, walk: r }) {
|
|
|
4359
4359
|
}, [t, e, i, o]);
|
|
4360
4360
|
}
|
|
4361
4361
|
function pd(e, t) {
|
|
4362
|
-
let n =
|
|
4362
|
+
let n = X([]), r = de(e);
|
|
4363
4363
|
he(() => {
|
|
4364
4364
|
let i = [...n.current];
|
|
4365
4365
|
for (let [o, a] of t.entries()) if (n.current[o] !== a) {
|
|
@@ -4719,7 +4719,7 @@ const v3 = 50, g3 = async (e, t, n) => {
|
|
|
4719
4719
|
x: b,
|
|
4720
4720
|
y: x,
|
|
4721
4721
|
data: y,
|
|
4722
|
-
reset:
|
|
4722
|
+
reset: O
|
|
4723
4723
|
} = await E({
|
|
4724
4724
|
x: p,
|
|
4725
4725
|
y: m,
|
|
@@ -4737,11 +4737,11 @@ const v3 = 50, g3 = async (e, t, n) => {
|
|
|
4737
4737
|
p = b ?? p, m = x ?? m, c[w] = {
|
|
4738
4738
|
...c[w],
|
|
4739
4739
|
...y
|
|
4740
|
-
},
|
|
4740
|
+
}, O && f < v3 && (f++, typeof O == "object" && (O.placement && (u = O.placement), O.rects && (s = O.rects === !0 ? await a.getElementRects({
|
|
4741
4741
|
reference: e,
|
|
4742
4742
|
floating: t,
|
|
4743
4743
|
strategy: i
|
|
4744
|
-
}) :
|
|
4744
|
+
}) : O.rects), {
|
|
4745
4745
|
x: p,
|
|
4746
4746
|
y: m
|
|
4747
4747
|
} = bd(s, u, l)), h = -1);
|
|
@@ -4777,57 +4777,57 @@ const v3 = 50, g3 = async (e, t, n) => {
|
|
|
4777
4777
|
} = Nn(e, t);
|
|
4778
4778
|
if ((n = o.arrow) != null && n.alignmentOffset)
|
|
4779
4779
|
return {};
|
|
4780
|
-
const w = qt(i), E = Rt(d), b = qt(d) === d, x = await (l.isRTL == null ? void 0 : l.isRTL(s.floating)), y = u || (b || !h ? [Ur(d)] : s3(d)),
|
|
4781
|
-
!u &&
|
|
4782
|
-
const
|
|
4780
|
+
const w = qt(i), E = Rt(d), b = qt(d) === d, x = await (l.isRTL == null ? void 0 : l.isRTL(s.floating)), y = u || (b || !h ? [Ur(d)] : s3(d)), O = c !== "none";
|
|
4781
|
+
!u && O && y.push(...p3(d, h, c, x));
|
|
4782
|
+
const D = [d, ...y], K = await l.detectOverflow(t, v), F = [];
|
|
4783
4783
|
let _ = ((r = o.flip) == null ? void 0 : r.overflows) || [];
|
|
4784
|
-
if (p && F.push(
|
|
4785
|
-
const
|
|
4786
|
-
F.push(
|
|
4784
|
+
if (p && F.push(K[w]), m) {
|
|
4785
|
+
const Z = l3(i, a, x);
|
|
4786
|
+
F.push(K[Z[0]], K[Z[1]]);
|
|
4787
4787
|
}
|
|
4788
4788
|
if (_ = [..._, {
|
|
4789
4789
|
placement: i,
|
|
4790
4790
|
overflows: F
|
|
4791
|
-
}], !F.every((
|
|
4792
|
-
var
|
|
4793
|
-
const
|
|
4791
|
+
}], !F.every((Z) => Z <= 0)) {
|
|
4792
|
+
var U, j;
|
|
4793
|
+
const Z = (((U = o.flip) == null ? void 0 : U.index) || 0) + 1, H = D[Z];
|
|
4794
4794
|
if (H && (!(m === "alignment" ? E !== Rt(H) : !1) || // We leave the current main axis only if every placement on that axis
|
|
4795
4795
|
// overflows the main axis.
|
|
4796
|
-
_.every((
|
|
4796
|
+
_.every((ee) => Rt(ee.placement) === E ? ee.overflows[0] > 0 : !0)))
|
|
4797
4797
|
return {
|
|
4798
4798
|
data: {
|
|
4799
|
-
index:
|
|
4799
|
+
index: Z,
|
|
4800
4800
|
overflows: _
|
|
4801
4801
|
},
|
|
4802
4802
|
reset: {
|
|
4803
4803
|
placement: H
|
|
4804
4804
|
}
|
|
4805
4805
|
};
|
|
4806
|
-
let
|
|
4807
|
-
if (!
|
|
4806
|
+
let Q = (j = _.filter((re) => re.overflows[0] <= 0).sort((re, ee) => re.overflows[1] - ee.overflows[1])[0]) == null ? void 0 : j.placement;
|
|
4807
|
+
if (!Q)
|
|
4808
4808
|
switch (f) {
|
|
4809
4809
|
case "bestFit": {
|
|
4810
|
-
var
|
|
4811
|
-
const re = (
|
|
4812
|
-
if (
|
|
4813
|
-
const
|
|
4814
|
-
return
|
|
4810
|
+
var z;
|
|
4811
|
+
const re = (z = _.filter((ee) => {
|
|
4812
|
+
if (O) {
|
|
4813
|
+
const J = Rt(ee.placement);
|
|
4814
|
+
return J === E || // Create a bias to the `y` side axis due to horizontal
|
|
4815
4815
|
// reading directions favoring greater width.
|
|
4816
|
-
|
|
4816
|
+
J === "y";
|
|
4817
4817
|
}
|
|
4818
4818
|
return !0;
|
|
4819
|
-
}).map((
|
|
4820
|
-
re && (
|
|
4819
|
+
}).map((ee) => [ee.placement, ee.overflows.filter((J) => J > 0).reduce((J, N) => J + N, 0)]).sort((ee, J) => ee[1] - J[1])[0]) == null ? void 0 : z[0];
|
|
4820
|
+
re && (Q = re);
|
|
4821
4821
|
break;
|
|
4822
4822
|
}
|
|
4823
4823
|
case "initialPlacement":
|
|
4824
|
-
|
|
4824
|
+
Q = d;
|
|
4825
4825
|
break;
|
|
4826
4826
|
}
|
|
4827
|
-
if (i !==
|
|
4827
|
+
if (i !== Q)
|
|
4828
4828
|
return {
|
|
4829
4829
|
reset: {
|
|
4830
|
-
placement:
|
|
4830
|
+
placement: Q
|
|
4831
4831
|
}
|
|
4832
4832
|
};
|
|
4833
4833
|
}
|
|
@@ -4962,16 +4962,16 @@ const w3 = function(e) {
|
|
|
4962
4962
|
} = o.floating;
|
|
4963
4963
|
let v, w;
|
|
4964
4964
|
m === "top" || m === "bottom" ? (v = m, w = u === (await (a.isRTL == null ? void 0 : a.isRTL(d.floating)) ? "start" : "end") ? "left" : "right") : (w = m, v = u === "end" ? "top" : "bottom");
|
|
4965
|
-
const E = h - p.top - p.bottom, b = c - p.left - p.right, x = ln(h - p[v], E), y = ln(c - p[w], b),
|
|
4966
|
-
let
|
|
4967
|
-
if ((n = t.middlewareData.shift) != null && n.enabled.x && (
|
|
4968
|
-
const _ = Ve(p.left, 0),
|
|
4969
|
-
f ?
|
|
4965
|
+
const E = h - p.top - p.bottom, b = c - p.left - p.right, x = ln(h - p[v], E), y = ln(c - p[w], b), O = !t.middlewareData.shift;
|
|
4966
|
+
let D = x, K = y;
|
|
4967
|
+
if ((n = t.middlewareData.shift) != null && n.enabled.x && (K = b), (r = t.middlewareData.shift) != null && r.enabled.y && (D = E), O && !u) {
|
|
4968
|
+
const _ = Ve(p.left, 0), U = Ve(p.right, 0), j = Ve(p.top, 0), z = Ve(p.bottom, 0);
|
|
4969
|
+
f ? K = c - 2 * (_ !== 0 || U !== 0 ? _ + U : Ve(p.left, p.right)) : D = h - 2 * (j !== 0 || z !== 0 ? j + z : Ve(p.top, p.bottom));
|
|
4970
4970
|
}
|
|
4971
4971
|
await l({
|
|
4972
4972
|
...t,
|
|
4973
|
-
availableWidth:
|
|
4974
|
-
availableHeight:
|
|
4973
|
+
availableWidth: K,
|
|
4974
|
+
availableHeight: D
|
|
4975
4975
|
});
|
|
4976
4976
|
const F = await a.getDimensions(d.floating);
|
|
4977
4977
|
return c !== F.width || h !== F.height ? {
|
|
@@ -5296,16 +5296,16 @@ function D3(e, t) {
|
|
|
5296
5296
|
threshold: Ve(0, ln(1, l)) || 1
|
|
5297
5297
|
};
|
|
5298
5298
|
let x = !0;
|
|
5299
|
-
function y(
|
|
5300
|
-
const
|
|
5301
|
-
if (
|
|
5299
|
+
function y(O) {
|
|
5300
|
+
const D = O[0].intersectionRatio;
|
|
5301
|
+
if (D !== l) {
|
|
5302
5302
|
if (!x)
|
|
5303
5303
|
return a();
|
|
5304
|
-
|
|
5304
|
+
D ? a(!1, D) : r = setTimeout(() => {
|
|
5305
5305
|
a(!1, 1e-7);
|
|
5306
5306
|
}, 1e3);
|
|
5307
5307
|
}
|
|
5308
|
-
|
|
5308
|
+
D === 1 && !Ys(s, e.getBoundingClientRect()) && a(), x = !1;
|
|
5309
5309
|
}
|
|
5310
5310
|
try {
|
|
5311
5311
|
n = new IntersectionObserver(y, {
|
|
@@ -5437,84 +5437,84 @@ function z3(e) {
|
|
|
5437
5437
|
isPositioned: !1
|
|
5438
5438
|
}), [u, f] = ne.useState(r);
|
|
5439
5439
|
Gr(u, r) || f(r);
|
|
5440
|
-
const [c, h] = ne.useState(null), [v, w] = ne.useState(null), E = ne.useCallback((
|
|
5441
|
-
|
|
5442
|
-
}, []), b = ne.useCallback((
|
|
5443
|
-
|
|
5444
|
-
}, []), x = o || c, y = a || v,
|
|
5445
|
-
if (!
|
|
5440
|
+
const [c, h] = ne.useState(null), [v, w] = ne.useState(null), E = ne.useCallback((ee) => {
|
|
5441
|
+
ee !== O.current && (O.current = ee, h(ee));
|
|
5442
|
+
}, []), b = ne.useCallback((ee) => {
|
|
5443
|
+
ee !== D.current && (D.current = ee, w(ee));
|
|
5444
|
+
}, []), x = o || c, y = a || v, O = ne.useRef(null), D = ne.useRef(null), K = ne.useRef(p), F = l != null, _ = Ni(l), U = Ni(i), j = Ni(s), z = ne.useCallback(() => {
|
|
5445
|
+
if (!O.current || !D.current)
|
|
5446
5446
|
return;
|
|
5447
|
-
const
|
|
5447
|
+
const ee = {
|
|
5448
5448
|
placement: t,
|
|
5449
5449
|
strategy: n,
|
|
5450
5450
|
middleware: u
|
|
5451
5451
|
};
|
|
5452
|
-
|
|
5452
|
+
U.current && (ee.platform = U.current), H3(O.current, D.current, ee).then((J) => {
|
|
5453
5453
|
const N = {
|
|
5454
|
-
...
|
|
5454
|
+
...J,
|
|
5455
5455
|
// The floating element's position may be recomputed while it's closed
|
|
5456
5456
|
// but still mounted (such as when transitioning out). To ensure
|
|
5457
5457
|
// `isPositioned` will be `false` initially on the next open, avoid
|
|
5458
5458
|
// setting it to `true` when `open === false` (must be specified).
|
|
5459
|
-
isPositioned:
|
|
5459
|
+
isPositioned: j.current !== !1
|
|
5460
5460
|
};
|
|
5461
|
-
|
|
5461
|
+
Z.current && !Gr(K.current, N) && (K.current = N, Lr.flushSync(() => {
|
|
5462
5462
|
m(N);
|
|
5463
5463
|
}));
|
|
5464
5464
|
});
|
|
5465
|
-
}, [u, t, n,
|
|
5465
|
+
}, [u, t, n, U, j]);
|
|
5466
5466
|
Fr(() => {
|
|
5467
|
-
s === !1 &&
|
|
5468
|
-
...
|
|
5467
|
+
s === !1 && K.current.isPositioned && (K.current.isPositioned = !1, m((ee) => ({
|
|
5468
|
+
...ee,
|
|
5469
5469
|
isPositioned: !1
|
|
5470
5470
|
})));
|
|
5471
5471
|
}, [s]);
|
|
5472
|
-
const
|
|
5473
|
-
Fr(() => (
|
|
5474
|
-
|
|
5472
|
+
const Z = ne.useRef(!1);
|
|
5473
|
+
Fr(() => (Z.current = !0, () => {
|
|
5474
|
+
Z.current = !1;
|
|
5475
5475
|
}), []), Fr(() => {
|
|
5476
|
-
if (x && (
|
|
5476
|
+
if (x && (O.current = x), y && (D.current = y), x && y) {
|
|
5477
5477
|
if (_.current)
|
|
5478
|
-
return _.current(x, y,
|
|
5479
|
-
|
|
5478
|
+
return _.current(x, y, z);
|
|
5479
|
+
z();
|
|
5480
5480
|
}
|
|
5481
|
-
}, [x, y,
|
|
5481
|
+
}, [x, y, z, _, F]);
|
|
5482
5482
|
const H = ne.useMemo(() => ({
|
|
5483
|
-
reference:
|
|
5484
|
-
floating:
|
|
5483
|
+
reference: O,
|
|
5484
|
+
floating: D,
|
|
5485
5485
|
setReference: E,
|
|
5486
5486
|
setFloating: b
|
|
5487
|
-
}), [E, b]),
|
|
5487
|
+
}), [E, b]), Q = ne.useMemo(() => ({
|
|
5488
5488
|
reference: x,
|
|
5489
5489
|
floating: y
|
|
5490
5490
|
}), [x, y]), re = ne.useMemo(() => {
|
|
5491
|
-
const
|
|
5491
|
+
const ee = {
|
|
5492
5492
|
position: n,
|
|
5493
5493
|
left: 0,
|
|
5494
5494
|
top: 0
|
|
5495
5495
|
};
|
|
5496
|
-
if (!
|
|
5497
|
-
return
|
|
5498
|
-
const
|
|
5496
|
+
if (!Q.floating)
|
|
5497
|
+
return ee;
|
|
5498
|
+
const J = xd(Q.floating, p.x), N = xd(Q.floating, p.y);
|
|
5499
5499
|
return d ? {
|
|
5500
|
-
...
|
|
5501
|
-
transform: "translate(" +
|
|
5502
|
-
...Xs(
|
|
5500
|
+
...ee,
|
|
5501
|
+
transform: "translate(" + J + "px, " + N + "px)",
|
|
5502
|
+
...Xs(Q.floating) >= 1.5 && {
|
|
5503
5503
|
willChange: "transform"
|
|
5504
5504
|
}
|
|
5505
5505
|
} : {
|
|
5506
5506
|
position: n,
|
|
5507
|
-
left:
|
|
5507
|
+
left: J,
|
|
5508
5508
|
top: N
|
|
5509
5509
|
};
|
|
5510
|
-
}, [n, d,
|
|
5510
|
+
}, [n, d, Q.floating, p.x, p.y]);
|
|
5511
5511
|
return ne.useMemo(() => ({
|
|
5512
5512
|
...p,
|
|
5513
|
-
update:
|
|
5513
|
+
update: z,
|
|
5514
5514
|
refs: H,
|
|
5515
|
-
elements:
|
|
5515
|
+
elements: Q,
|
|
5516
5516
|
floatingStyles: re
|
|
5517
|
-
}), [p,
|
|
5517
|
+
}), [p, z, H, Q, re]);
|
|
5518
5518
|
}
|
|
5519
5519
|
const Zs = (e, t) => {
|
|
5520
5520
|
const n = B3(e);
|
|
@@ -5809,16 +5809,16 @@ const h9 = (e) => ({
|
|
|
5809
5809
|
}, x = await Ti(Pd(b, c.scrollHeight + h + u.clientTop), p), y = await Ti(b, {
|
|
5810
5810
|
...p,
|
|
5811
5811
|
elementContext: "reference"
|
|
5812
|
-
}),
|
|
5813
|
-
if (c.style.maxHeight = _ + "px", c.scrollTop =
|
|
5814
|
-
const
|
|
5815
|
-
Lr.flushSync(() => i(
|
|
5812
|
+
}), O = Ve(0, x.top), D = b.y + O, _ = (c.scrollHeight > c.clientHeight ? (U) => U : Yn)(Ve(0, c.scrollHeight + (v && E || w ? h * 2 : 0) - O - Ve(0, x.bottom)));
|
|
5813
|
+
if (c.style.maxHeight = _ + "px", c.scrollTop = O, i) {
|
|
5814
|
+
const U = c.offsetHeight < f.offsetHeight * ln(d, n.current.length) - 1 || y.top >= -l || y.bottom >= -l;
|
|
5815
|
+
Lr.flushSync(() => i(U));
|
|
5816
5816
|
}
|
|
5817
5817
|
return r && (r.current = await Ti(Pd({
|
|
5818
5818
|
...b,
|
|
5819
|
-
y:
|
|
5819
|
+
y: D
|
|
5820
5820
|
}, c.offsetHeight + h + u.clientTop), p)), {
|
|
5821
|
-
y:
|
|
5821
|
+
y: D
|
|
5822
5822
|
};
|
|
5823
5823
|
}
|
|
5824
5824
|
});
|
|
@@ -5839,7 +5839,7 @@ function m9(e, t) {
|
|
|
5839
5839
|
return;
|
|
5840
5840
|
const v = h.deltaY, w = o.current.top >= -0.5, E = o.current.bottom >= -0.5, b = c.scrollHeight - c.clientHeight, x = v < 0 ? -1 : 1, y = v < 0 ? "max" : "min";
|
|
5841
5841
|
c.scrollHeight <= c.clientHeight || (!w && v > 0 || !E && v < 0 ? (h.preventDefault(), Lr.flushSync(() => {
|
|
5842
|
-
l((
|
|
5842
|
+
l((O) => O + Math[y](v, b * x));
|
|
5843
5843
|
})) : /firefox/i.test(a3()) && (c.scrollTop += v));
|
|
5844
5844
|
}
|
|
5845
5845
|
const c = a?.current || r.floating;
|
|
@@ -5912,38 +5912,38 @@ function ru(e = null) {
|
|
|
5912
5912
|
}
|
|
5913
5913
|
let Td = 4;
|
|
5914
5914
|
function iu({ children: e, enabled: t = !0 }) {
|
|
5915
|
-
let [n, r] = oe(null), [i, o] = oe(0), a =
|
|
5915
|
+
let [n, r] = oe(null), [i, o] = oe(0), a = X(null), [d, l] = oe(null);
|
|
5916
5916
|
g9(d);
|
|
5917
5917
|
let s = t && n !== null && d !== null, { to: p = "bottom", gap: m = 0, offset: u = 0, padding: f = 0, inner: c } = b9(n, d), [h, v = "center"] = p.split(" ");
|
|
5918
5918
|
Pe(() => {
|
|
5919
5919
|
s && o(0);
|
|
5920
5920
|
}, [s]);
|
|
5921
|
-
let { refs: w, floatingStyles: E, context: b } = f9({ open: s, placement: h === "selection" ? v === "center" ? "bottom" : `bottom-${v}` : v === "center" ? `${h}` : `${h}-${v}`, strategy: "absolute", transform: !1, middleware: [Zs({ mainAxis: h === "selection" ? 0 : m, crossAxis: u }), q3({ padding: f }), h !== "selection" && Y3({ padding: f }), h === "selection" && c ? h9({ ...c, padding: f, overflowRef: a, offset: i, minItemsVisible: Td, referenceOverflowThreshold: f, onFallbackChange(
|
|
5922
|
-
var
|
|
5923
|
-
if (!
|
|
5924
|
-
let
|
|
5925
|
-
if (!
|
|
5926
|
-
let H = parseFloat(getComputedStyle(
|
|
5927
|
-
for (let
|
|
5928
|
-
let N =
|
|
5929
|
-
if (N >=
|
|
5921
|
+
let { refs: w, floatingStyles: E, context: b } = f9({ open: s, placement: h === "selection" ? v === "center" ? "bottom" : `bottom-${v}` : v === "center" ? `${h}` : `${h}-${v}`, strategy: "absolute", transform: !1, middleware: [Zs({ mainAxis: h === "selection" ? 0 : m, crossAxis: u }), q3({ padding: f }), h !== "selection" && Y3({ padding: f }), h === "selection" && c ? h9({ ...c, padding: f, overflowRef: a, offset: i, minItemsVisible: Td, referenceOverflowThreshold: f, onFallbackChange(U) {
|
|
5922
|
+
var j, z;
|
|
5923
|
+
if (!U) return;
|
|
5924
|
+
let Z = b.elements.floating;
|
|
5925
|
+
if (!Z) return;
|
|
5926
|
+
let H = parseFloat(getComputedStyle(Z).scrollPaddingBottom) || 0, Q = Math.min(Td, Z.childElementCount), re = 0, ee = 0;
|
|
5927
|
+
for (let J of (z = (j = b.elements.floating) == null ? void 0 : j.childNodes) != null ? z : []) if (Tt(J)) {
|
|
5928
|
+
let N = J.offsetTop, C = N + J.clientHeight + H, T = Z.scrollTop, L = T + Z.clientHeight;
|
|
5929
|
+
if (N >= T && C <= L) Q--;
|
|
5930
5930
|
else {
|
|
5931
|
-
|
|
5931
|
+
ee = Math.max(0, Math.min(C, L) - Math.max(N, T)), re = J.clientHeight;
|
|
5932
5932
|
break;
|
|
5933
5933
|
}
|
|
5934
5934
|
}
|
|
5935
|
-
|
|
5936
|
-
let N = re *
|
|
5937
|
-
return
|
|
5935
|
+
Q >= 1 && o((J) => {
|
|
5936
|
+
let N = re * Q - ee + H;
|
|
5937
|
+
return J >= N ? J : N;
|
|
5938
5938
|
});
|
|
5939
|
-
} }) : null, X3({ padding: f, apply({ availableWidth:
|
|
5940
|
-
Object.assign(
|
|
5939
|
+
} }) : null, X3({ padding: f, apply({ availableWidth: U, availableHeight: j, elements: z }) {
|
|
5940
|
+
Object.assign(z.floating.style, { overflow: "auto", maxWidth: `${U}px`, maxHeight: `min(var(--anchor-max-height, 100vh), ${j}px)` });
|
|
5941
5941
|
} })].filter(Boolean), whileElementsMounted: j3 }), [x = h, y = v] = b.placement.split("-");
|
|
5942
5942
|
h === "selection" && (x = "selection");
|
|
5943
|
-
let
|
|
5944
|
-
l(
|
|
5943
|
+
let O = _e(() => ({ anchor: [x, y].filter(Boolean).join(" ") }), [x, y]), D = m9(b, { overflowRef: a, onChange: o }), { getReferenceProps: K, getFloatingProps: F } = p9([D]), _ = de((U) => {
|
|
5944
|
+
l(U), w.setFloating(U);
|
|
5945
5945
|
});
|
|
5946
|
-
return ne.createElement(qo.Provider, { value: r }, ne.createElement(In.Provider, { value: { setFloating: _, setReference: w.setReference, styles: E, getReferenceProps:
|
|
5946
|
+
return ne.createElement(qo.Provider, { value: r }, ne.createElement(In.Provider, { value: { setFloating: _, setReference: w.setReference, styles: E, getReferenceProps: K, getFloatingProps: F, slot: O } }, e));
|
|
5947
5947
|
}
|
|
5948
5948
|
function g9(e) {
|
|
5949
5949
|
Pe(() => {
|
|
@@ -6018,9 +6018,9 @@ function Nd(e, t) {
|
|
|
6018
6018
|
}
|
|
6019
6019
|
function $9({ children: e, freeze: t }, n) {
|
|
6020
6020
|
let r = Kr(t, e);
|
|
6021
|
-
return Oo(r) ? Ul(r, { ref: n }) :
|
|
6021
|
+
return Oo(r) ? Ul(r, { ref: n }) : M.createElement(M.Fragment, null, r);
|
|
6022
6022
|
}
|
|
6023
|
-
const y9 =
|
|
6023
|
+
const y9 = M.forwardRef($9);
|
|
6024
6024
|
function Kr(e, t) {
|
|
6025
6025
|
let [n, r] = oe(t);
|
|
6026
6026
|
return !e && n !== t && r(t), e ? n : t;
|
|
@@ -6032,7 +6032,7 @@ function li() {
|
|
|
6032
6032
|
return Ie(Yo);
|
|
6033
6033
|
}
|
|
6034
6034
|
function Xo({ value: e, children: t }) {
|
|
6035
|
-
return
|
|
6035
|
+
return M.createElement(Yo.Provider, { value: e }, t);
|
|
6036
6036
|
}
|
|
6037
6037
|
function w9(e) {
|
|
6038
6038
|
function t() {
|
|
@@ -6086,7 +6086,7 @@ function gn(e, t) {
|
|
|
6086
6086
|
}
|
|
6087
6087
|
}
|
|
6088
6088
|
function Zo(e) {
|
|
6089
|
-
let t = de(e), n =
|
|
6089
|
+
let t = de(e), n = X(!1);
|
|
6090
6090
|
he(() => (n.current = !1, () => {
|
|
6091
6091
|
n.current = !0, ts(() => {
|
|
6092
6092
|
n.current && t();
|
|
@@ -6115,24 +6115,24 @@ function S9(e) {
|
|
|
6115
6115
|
}, [n, i, t]), r;
|
|
6116
6116
|
}
|
|
6117
6117
|
let au = lt, O9 = Le(function(e, t) {
|
|
6118
|
-
let { ownerDocument: n = null, ...r } = e, i =
|
|
6118
|
+
let { ownerDocument: n = null, ...r } = e, i = X(null), o = Ke(Zf((u) => {
|
|
6119
6119
|
i.current = u;
|
|
6120
6120
|
}), t), a = zn(i.current), d = n ?? a, l = S9(d), s = Ie(I9), p = Zt(), m = Be();
|
|
6121
6121
|
return Zo(() => {
|
|
6122
6122
|
var u;
|
|
6123
6123
|
l && l.childNodes.length <= 0 && ((u = l.parentElement) == null || u.removeChild(l));
|
|
6124
|
-
}), l ? Pn(
|
|
6124
|
+
}), l ? Pn(M.createElement("div", { "data-headlessui-portal": "", ref: (u) => {
|
|
6125
6125
|
p.dispose(), s && u && p.add(s.register(u));
|
|
6126
6126
|
} }, m({ ourProps: { ref: o }, theirProps: r, slot: {}, defaultTag: au, name: "Portal" })), l) : null;
|
|
6127
6127
|
});
|
|
6128
6128
|
function P9(e, t) {
|
|
6129
6129
|
let n = Ke(t), { enabled: r = !0, ownerDocument: i, ...o } = e, a = Be();
|
|
6130
|
-
return r ?
|
|
6130
|
+
return r ? M.createElement(O9, { ...o, ownerDocument: i, ref: n }) : a({ ourProps: { ref: n }, theirProps: o, slot: {}, defaultTag: au, name: "Portal" });
|
|
6131
6131
|
}
|
|
6132
6132
|
let T9 = lt, du = Me(null);
|
|
6133
6133
|
function N9(e, t) {
|
|
6134
6134
|
let { target: n, ...r } = e, i = { ref: Ke(t) }, o = Be();
|
|
6135
|
-
return
|
|
6135
|
+
return M.createElement(du.Provider, { value: n }, o({ ourProps: i, theirProps: r, defaultTag: T9, name: "Popover.Group" }));
|
|
6136
6136
|
}
|
|
6137
6137
|
let I9 = Me(null), _9 = Le(P9), A9 = Le(N9), lu = Object.assign(_9, { Group: A9 });
|
|
6138
6138
|
const Ft = { Idle: { kind: "Idle" }, Tracked: (e) => ({ kind: "Tracked", position: e }), Moved: { kind: "Moved" } };
|
|
@@ -6340,204 +6340,204 @@ function L9(e) {
|
|
|
6340
6340
|
s((f) => f + 1);
|
|
6341
6341
|
}, [r]);
|
|
6342
6342
|
let p = d.getVirtualItems(), m = xe(t, (f) => f.activationTrigger === Pt.Pointer), u = xe(t, t.selectors.activeOptionIndex);
|
|
6343
|
-
return p.length === 0 ? null :
|
|
6343
|
+
return p.length === 0 ? null : M.createElement(hu.Provider, { value: d }, M.createElement("div", { style: { position: "relative", width: "100%", height: `${d.getTotalSize()}px` }, ref: (f) => {
|
|
6344
6344
|
f && (m || u !== null && r.length > u && d.scrollToIndex(u));
|
|
6345
6345
|
} }, p.map((f) => {
|
|
6346
6346
|
var c;
|
|
6347
|
-
return
|
|
6347
|
+
return M.createElement(lt, { key: f.key }, M.cloneElement((c = e.children) == null ? void 0 : c.call(e, { ...e.slot, option: r[f.index] }), { key: `${l}-${f.key}`, "data-index": f.index, "aria-setsize": r.length, "aria-posinset": f.index + 1, style: { position: "absolute", top: 0, left: 0, transform: `translateY(${f.start}px)`, overflowAnchor: "none" } }));
|
|
6348
6348
|
})));
|
|
6349
6349
|
}
|
|
6350
6350
|
let D9 = lt;
|
|
6351
6351
|
function j9(e, t) {
|
|
6352
|
-
let n = st(), r = ti(), { value: i, defaultValue: o, onChange: a, form: d, name: l, by: s, invalid: p = !1, disabled: m = r || !1, onClose: u, __demoMode: f = !1, multiple: c = !1, immediate: h = !1, virtual: v = null, nullable: w, ...E } = e, b = os(o), [x = c ? [] : void 0, y] = is(i, a, b),
|
|
6352
|
+
let n = st(), r = ti(), { value: i, defaultValue: o, onChange: a, form: d, name: l, by: s, invalid: p = !1, disabled: m = r || !1, onClose: u, __demoMode: f = !1, multiple: c = !1, immediate: h = !1, virtual: v = null, nullable: w, ...E } = e, b = os(o), [x = c ? [] : void 0, y] = is(i, a, b), O = pu({ id: n, virtual: v, __demoMode: f }), D = X({ static: !1, hold: !1 }), K = ys(s), F = de((q) => v ? s === null ? v.options.indexOf(q) : v.options.findIndex((ie) => K(ie, q)) : O.state.options.findIndex((ie) => K(ie.dataRef.current.value, q))), _ = pe((q) => je(z.mode, { [tt.Multi]: () => x.some((ie) => K(ie, q)), [tt.Single]: () => K(x, q) }), [x]), U = xe(O, (q) => q.virtual), j = de(() => u?.()), z = _e(() => ({ __demoMode: f, immediate: h, optionsPropsRef: D, value: x, defaultValue: b, disabled: m, invalid: p, mode: c ? tt.Multi : tt.Single, virtual: v ? U : null, onChange: y, isSelected: _, calculateIndex: F, compare: K, onClose: j }), [f, h, D, x, b, m, p, c, v, U, y, _, F, K, j]);
|
|
6353
6353
|
Pe(() => {
|
|
6354
|
-
var
|
|
6355
|
-
v &&
|
|
6354
|
+
var q;
|
|
6355
|
+
v && O.send({ type: uu.UpdateVirtualConfiguration, options: v.options, disabled: (q = v.disabled) != null ? q : null });
|
|
6356
6356
|
}, [v, v?.options, v?.disabled]), Pe(() => {
|
|
6357
|
-
|
|
6358
|
-
}, [
|
|
6359
|
-
let [
|
|
6360
|
-
As(
|
|
6361
|
-
let N = xe(
|
|
6357
|
+
O.state.dataRef.current = z;
|
|
6358
|
+
}, [z]);
|
|
6359
|
+
let [Z, H, Q, re] = xe(O, (q) => [q.comboboxState, q.buttonElement, q.inputElement, q.optionsElement]), ee = vr.get(null), J = xe(ee, pe((q) => ee.selectors.isTop(q, n), [ee, n]));
|
|
6360
|
+
As(J, [H, Q, re], () => O.actions.closeCombobox());
|
|
6361
|
+
let N = xe(O, O.selectors.activeOptionIndex), C = xe(O, O.selectors.activeOption), T = rt({ open: Z === be.Open, disabled: m, invalid: p, activeIndex: N, activeOption: C, value: x }), [L, W] = gs(), k = t === null ? {} : { ref: t }, R = pe(() => {
|
|
6362
6362
|
if (b !== void 0) return y?.(b);
|
|
6363
|
-
}, [y, b]),
|
|
6364
|
-
return
|
|
6363
|
+
}, [y, b]), V = Be();
|
|
6364
|
+
return M.createElement(W, { value: L, props: { htmlFor: Q?.id }, slot: { open: Z === be.Open, disabled: m } }, M.createElement(iu, null, M.createElement(Zn.Provider, { value: z }, M.createElement(fu.Provider, { value: O }, M.createElement(Xo, { value: je(Z, { [be.Open]: Ye.Open, [be.Closed]: Ye.Closed }) }, l != null && M.createElement(us, { disabled: m, data: x != null ? { [l]: x } : {}, form: d, onReset: R }), V({ ourProps: k, theirProps: E, slot: T, defaultTag: D9, name: "Combobox" }))))));
|
|
6365
6365
|
}
|
|
6366
6366
|
let B9 = "input";
|
|
6367
6367
|
function W9(e, t) {
|
|
6368
6368
|
var n, r;
|
|
6369
|
-
let i = $r("Combobox.Input"), o = _n("Combobox.Input"), a = st(), d = Mo(), { id: l = d || `headlessui-combobox-input-${a}`, onChange: s, displayValue: p, disabled: m = o.disabled || !1, autoFocus: u = !1, type: f = "text", ...c } = e, h =
|
|
6369
|
+
let i = $r("Combobox.Input"), o = _n("Combobox.Input"), a = st(), d = Mo(), { id: l = d || `headlessui-combobox-input-${a}`, onChange: s, displayValue: p, disabled: m = o.disabled || !1, autoFocus: u = !1, type: f = "text", ...c } = e, h = X(null), v = Ke(h, t, tu(), i.actions.setInputElement), [w, E] = xe(i, (T) => [T.comboboxState, T.isTyping]), b = Zt(), x = de(() => {
|
|
6370
6370
|
i.actions.onChange(null), i.state.optionsElement && (i.state.optionsElement.scrollTop = 0), i.actions.goToOption({ focus: me.Nothing });
|
|
6371
6371
|
}), y = _e(() => {
|
|
6372
|
-
var
|
|
6373
|
-
return typeof p == "function" && o.value !== void 0 ? (
|
|
6372
|
+
var T;
|
|
6373
|
+
return typeof p == "function" && o.value !== void 0 ? (T = p(o.value)) != null ? T : "" : typeof o.value == "string" ? o.value : "";
|
|
6374
6374
|
}, [o.value, p]);
|
|
6375
|
-
pd(([
|
|
6375
|
+
pd(([T, L], [W, k]) => {
|
|
6376
6376
|
if (i.state.isTyping) return;
|
|
6377
6377
|
let R = h.current;
|
|
6378
|
-
R && ((
|
|
6378
|
+
R && ((k === be.Open && L === be.Closed || T !== W) && (R.value = T), requestAnimationFrame(() => {
|
|
6379
6379
|
if (i.state.isTyping || !R || Fo(R)) return;
|
|
6380
|
-
let { selectionStart:
|
|
6381
|
-
Math.abs((
|
|
6380
|
+
let { selectionStart: V, selectionEnd: q } = R;
|
|
6381
|
+
Math.abs((q ?? 0) - (V ?? 0)) === 0 && V === 0 && R.setSelectionRange(R.value.length, R.value.length);
|
|
6382
6382
|
}));
|
|
6383
|
-
}, [y, w, E]), pd(([
|
|
6384
|
-
if (
|
|
6383
|
+
}, [y, w, E]), pd(([T], [L]) => {
|
|
6384
|
+
if (T === be.Open && L === be.Closed) {
|
|
6385
6385
|
if (i.state.isTyping) return;
|
|
6386
6386
|
let W = h.current;
|
|
6387
6387
|
if (!W) return;
|
|
6388
|
-
let
|
|
6389
|
-
W.value = "", W.value =
|
|
6388
|
+
let k = W.value, { selectionStart: R, selectionEnd: V, selectionDirection: q } = W;
|
|
6389
|
+
W.value = "", W.value = k, q !== null ? W.setSelectionRange(R, V, q) : W.setSelectionRange(R, V);
|
|
6390
6390
|
}
|
|
6391
6391
|
}, [w]);
|
|
6392
|
-
let
|
|
6393
|
-
|
|
6394
|
-
}),
|
|
6392
|
+
let O = X(!1), D = de(() => {
|
|
6393
|
+
O.current = !0;
|
|
6394
|
+
}), K = de(() => {
|
|
6395
6395
|
b.nextFrame(() => {
|
|
6396
|
-
|
|
6396
|
+
O.current = !1;
|
|
6397
6397
|
});
|
|
6398
|
-
}), F = de((
|
|
6399
|
-
switch (i.actions.setIsTyping(!0),
|
|
6398
|
+
}), F = de((T) => {
|
|
6399
|
+
switch (i.actions.setIsTyping(!0), T.key) {
|
|
6400
6400
|
case we.Enter:
|
|
6401
|
-
if (i.state.comboboxState !== be.Open ||
|
|
6402
|
-
if (
|
|
6401
|
+
if (i.state.comboboxState !== be.Open || O.current) return;
|
|
6402
|
+
if (T.preventDefault(), T.stopPropagation(), i.selectors.activeOptionIndex(i.state) === null) {
|
|
6403
6403
|
i.actions.closeCombobox();
|
|
6404
6404
|
return;
|
|
6405
6405
|
}
|
|
6406
6406
|
i.actions.selectActiveOption(), o.mode === tt.Single && i.actions.closeCombobox();
|
|
6407
6407
|
break;
|
|
6408
6408
|
case we.ArrowDown:
|
|
6409
|
-
return
|
|
6409
|
+
return T.preventDefault(), T.stopPropagation(), je(i.state.comboboxState, { [be.Open]: () => i.actions.goToOption({ focus: me.Next }), [be.Closed]: () => i.actions.openCombobox() });
|
|
6410
6410
|
case we.ArrowUp:
|
|
6411
|
-
return
|
|
6411
|
+
return T.preventDefault(), T.stopPropagation(), je(i.state.comboboxState, { [be.Open]: () => i.actions.goToOption({ focus: me.Previous }), [be.Closed]: () => {
|
|
6412
6412
|
vt(() => i.actions.openCombobox()), o.value || i.actions.goToOption({ focus: me.Last });
|
|
6413
6413
|
} });
|
|
6414
6414
|
case we.Home:
|
|
6415
|
-
if (i.state.comboboxState === be.Closed ||
|
|
6416
|
-
return
|
|
6415
|
+
if (i.state.comboboxState === be.Closed || T.shiftKey) break;
|
|
6416
|
+
return T.preventDefault(), T.stopPropagation(), i.actions.goToOption({ focus: me.First });
|
|
6417
6417
|
case we.PageUp:
|
|
6418
|
-
return
|
|
6418
|
+
return T.preventDefault(), T.stopPropagation(), i.actions.goToOption({ focus: me.First });
|
|
6419
6419
|
case we.End:
|
|
6420
|
-
if (i.state.comboboxState === be.Closed ||
|
|
6421
|
-
return
|
|
6420
|
+
if (i.state.comboboxState === be.Closed || T.shiftKey) break;
|
|
6421
|
+
return T.preventDefault(), T.stopPropagation(), i.actions.goToOption({ focus: me.Last });
|
|
6422
6422
|
case we.PageDown:
|
|
6423
|
-
return
|
|
6423
|
+
return T.preventDefault(), T.stopPropagation(), i.actions.goToOption({ focus: me.Last });
|
|
6424
6424
|
case we.Escape:
|
|
6425
|
-
return i.state.comboboxState !== be.Open ? void 0 : (
|
|
6425
|
+
return i.state.comboboxState !== be.Open ? void 0 : (T.preventDefault(), i.state.optionsElement && !o.optionsPropsRef.current.static && T.stopPropagation(), o.mode === tt.Single && o.value === null && x(), i.actions.closeCombobox());
|
|
6426
6426
|
case we.Tab:
|
|
6427
6427
|
if (i.actions.setIsTyping(!1), i.state.comboboxState !== be.Open) return;
|
|
6428
6428
|
o.mode === tt.Single && i.state.activationTrigger !== Pt.Focus && i.actions.selectActiveOption(), i.actions.closeCombobox();
|
|
6429
6429
|
break;
|
|
6430
6430
|
}
|
|
6431
|
-
}), _ = de((
|
|
6432
|
-
s?.(
|
|
6433
|
-
}),
|
|
6434
|
-
var
|
|
6435
|
-
let R = (
|
|
6436
|
-
if (!((W = i.state.optionsElement) != null && W.contains(R)) && !((
|
|
6437
|
-
}),
|
|
6438
|
-
var
|
|
6439
|
-
let R = (
|
|
6440
|
-
(W = i.state.buttonElement) != null && W.contains(R) || (
|
|
6431
|
+
}), _ = de((T) => {
|
|
6432
|
+
s?.(T), o.mode === tt.Single && T.target.value === "" && x(), i.actions.openCombobox();
|
|
6433
|
+
}), U = de((T) => {
|
|
6434
|
+
var L, W, k;
|
|
6435
|
+
let R = (L = T.relatedTarget) != null ? L : tn.find((V) => V !== T.currentTarget);
|
|
6436
|
+
if (!((W = i.state.optionsElement) != null && W.contains(R)) && !((k = i.state.buttonElement) != null && k.contains(R)) && i.state.comboboxState === be.Open) return T.preventDefault(), o.mode === tt.Single && o.value === null && x(), i.actions.closeCombobox();
|
|
6437
|
+
}), j = de((T) => {
|
|
6438
|
+
var L, W, k;
|
|
6439
|
+
let R = (L = T.relatedTarget) != null ? L : tn.find((V) => V !== T.currentTarget);
|
|
6440
|
+
(W = i.state.buttonElement) != null && W.contains(R) || (k = i.state.optionsElement) != null && k.contains(R) || o.disabled || o.immediate && i.state.comboboxState !== be.Open && b.microTask(() => {
|
|
6441
6441
|
vt(() => i.actions.openCombobox()), i.actions.setActivationTrigger(Pt.Focus);
|
|
6442
6442
|
});
|
|
6443
|
-
}),
|
|
6443
|
+
}), z = mr(), Z = ms(), { isFocused: H, focusProps: Q } = Ro({ autoFocus: u }), { isHovered: re, hoverProps: ee } = Ao({ isDisabled: m }), J = xe(i, (T) => T.optionsElement), N = rt({ open: w === be.Open, disabled: m, invalid: o.invalid, hover: re, focus: H, autofocus: u }), C = hr({ ref: v, id: l, role: "combobox", type: f, "aria-controls": J?.id, "aria-expanded": w === be.Open, "aria-activedescendant": xe(i, i.selectors.activeDescendantId), "aria-labelledby": z, "aria-describedby": Z, "aria-autocomplete": "list", defaultValue: (r = (n = e.defaultValue) != null ? n : o.defaultValue !== void 0 ? p?.(o.defaultValue) : null) != null ? r : o.defaultValue, disabled: m || void 0, autoFocus: u, onCompositionStart: D, onCompositionEnd: K, onKeyDown: F, onChange: _, onFocus: j, onBlur: U }, Q, ee);
|
|
6444
6444
|
return Be()({ ourProps: C, theirProps: c, slot: N, defaultTag: B9, name: "Combobox.Input" });
|
|
6445
6445
|
}
|
|
6446
6446
|
let V9 = "button";
|
|
6447
6447
|
function U9(e, t) {
|
|
6448
|
-
let n = $r("Combobox.Button"), r = _n("Combobox.Button"), [i, o] = oe(null), a = Ke(t, o, n.actions.setButtonElement), d = st(), { id: l = `headlessui-combobox-button-${d}`, disabled: s = r.disabled || !1, autoFocus: p = !1, ...m } = e, [u, f, c] = xe(n, (
|
|
6449
|
-
Rs(v, { trigger: i, action: pe((
|
|
6450
|
-
if (i != null && i.contains(
|
|
6451
|
-
let
|
|
6452
|
-
return Tt(
|
|
6448
|
+
let n = $r("Combobox.Button"), r = _n("Combobox.Button"), [i, o] = oe(null), a = Ke(t, o, n.actions.setButtonElement), d = st(), { id: l = `headlessui-combobox-button-${d}`, disabled: s = r.disabled || !1, autoFocus: p = !1, ...m } = e, [u, f, c] = xe(n, (j) => [j.comboboxState, j.inputElement, j.optionsElement]), h = Fs(f), v = u === be.Open;
|
|
6449
|
+
Rs(v, { trigger: i, action: pe((j) => {
|
|
6450
|
+
if (i != null && i.contains(j.target) || f != null && f.contains(j.target)) return At.Ignore;
|
|
6451
|
+
let z = j.target.closest('[role="option"]:not([data-disabled])');
|
|
6452
|
+
return Tt(z) ? At.Select(z) : c != null && c.contains(j.target) ? At.Ignore : At.Close;
|
|
6453
6453
|
}, [i, f, c]), close: n.actions.closeCombobox, select: n.actions.selectActiveOption });
|
|
6454
|
-
let w = de((
|
|
6455
|
-
switch (
|
|
6454
|
+
let w = de((j) => {
|
|
6455
|
+
switch (j.key) {
|
|
6456
6456
|
case we.Space:
|
|
6457
6457
|
case we.Enter:
|
|
6458
|
-
|
|
6458
|
+
j.preventDefault(), j.stopPropagation(), n.state.comboboxState === be.Closed && vt(() => n.actions.openCombobox()), h();
|
|
6459
6459
|
return;
|
|
6460
6460
|
case we.ArrowDown:
|
|
6461
|
-
|
|
6461
|
+
j.preventDefault(), j.stopPropagation(), n.state.comboboxState === be.Closed && (vt(() => n.actions.openCombobox()), n.state.dataRef.current.value || n.actions.goToOption({ focus: me.First })), h();
|
|
6462
6462
|
return;
|
|
6463
6463
|
case we.ArrowUp:
|
|
6464
|
-
|
|
6464
|
+
j.preventDefault(), j.stopPropagation(), n.state.comboboxState === be.Closed && (vt(() => n.actions.openCombobox()), n.state.dataRef.current.value || n.actions.goToOption({ focus: me.Last })), h();
|
|
6465
6465
|
return;
|
|
6466
6466
|
case we.Escape:
|
|
6467
6467
|
if (n.state.comboboxState !== be.Open) return;
|
|
6468
|
-
|
|
6468
|
+
j.preventDefault(), n.state.optionsElement && !r.optionsPropsRef.current.static && j.stopPropagation(), vt(() => n.actions.closeCombobox()), h();
|
|
6469
6469
|
return;
|
|
6470
6470
|
default:
|
|
6471
6471
|
return;
|
|
6472
6472
|
}
|
|
6473
6473
|
}), E = ws(() => {
|
|
6474
6474
|
n.state.comboboxState === be.Open ? n.actions.closeCombobox() : n.actions.openCombobox(), h();
|
|
6475
|
-
}), b = mr([l]), { isFocusVisible: x, focusProps: y } = Ro({ autoFocus: p }), { isHovered:
|
|
6476
|
-
return Be()({ ourProps:
|
|
6475
|
+
}), b = mr([l]), { isFocusVisible: x, focusProps: y } = Ro({ autoFocus: p }), { isHovered: O, hoverProps: D } = Ao({ isDisabled: s }), { pressed: K, pressProps: F } = ns({ disabled: s }), _ = rt({ open: u === be.Open, active: K || u === be.Open, disabled: s, invalid: r.invalid, value: r.value, hover: O, focus: x }), U = hr({ ref: a, id: l, type: ks(e, i), tabIndex: -1, "aria-haspopup": "listbox", "aria-controls": c?.id, "aria-expanded": u === be.Open, "aria-labelledby": b, disabled: s || void 0, autoFocus: p, onKeyDown: w }, E, y, D, F);
|
|
6476
|
+
return Be()({ ourProps: U, theirProps: m, slot: _, defaultTag: V9, name: "Combobox.Button" });
|
|
6477
6477
|
}
|
|
6478
6478
|
let H9 = "div", G9 = Cn.RenderStrategy | Cn.Static;
|
|
6479
6479
|
function K9(e, t) {
|
|
6480
6480
|
var n, r, i;
|
|
6481
6481
|
let o = st(), { id: a = `headlessui-combobox-options-${o}`, hold: d = !1, anchor: l, portal: s = !1, modal: p = !0, transition: m = !1, ...u } = e, f = $r("Combobox.Options"), c = _n("Combobox.Options"), h = eu(l);
|
|
6482
6482
|
h && (s = !0);
|
|
6483
|
-
let [v, w] = ru(h), [E, b] = oe(null), x = nu(), y = Ke(t, h ? v : null, f.actions.setOptionsElement, b), [
|
|
6484
|
-
Ts(
|
|
6485
|
-
let
|
|
6486
|
-
Ms(
|
|
6487
|
-
let re = c.__demoMode ? !1 : p &&
|
|
6488
|
-
Ps(re, { allowed: pe(() => [
|
|
6489
|
-
let
|
|
6483
|
+
let [v, w] = ru(h), [E, b] = oe(null), x = nu(), y = Ke(t, h ? v : null, f.actions.setOptionsElement, b), [O, D, K, F, _] = xe(f, (ce) => [ce.comboboxState, ce.inputElement, ce.buttonElement, ce.optionsElement, ce.activationTrigger]), U = zn(D || K), j = zn(F), z = li(), [Z, H] = Ho(m, E, z !== null ? (z & Ye.Open) === Ye.Open : O === be.Open);
|
|
6484
|
+
Ts(Z, D, f.actions.closeCombobox);
|
|
6485
|
+
let Q = c.__demoMode ? !1 : p && O === be.Open;
|
|
6486
|
+
Ms(Q, j);
|
|
6487
|
+
let re = c.__demoMode ? !1 : p && O === be.Open;
|
|
6488
|
+
Ps(re, { allowed: pe(() => [D, K, F], [D, K, F]) });
|
|
6489
|
+
let ee = xe(f, f.selectors.didInputMove) ? !1 : Z;
|
|
6490
6490
|
Pe(() => {
|
|
6491
6491
|
var ce;
|
|
6492
6492
|
c.optionsPropsRef.current.static = (ce = e.static) != null ? ce : !1;
|
|
6493
6493
|
}, [c.optionsPropsRef, e.static]), Pe(() => {
|
|
6494
6494
|
c.optionsPropsRef.current.hold = d;
|
|
6495
|
-
}, [c.optionsPropsRef, d]), t3(
|
|
6495
|
+
}, [c.optionsPropsRef, d]), t3(O === be.Open, { container: F, accept(ce) {
|
|
6496
6496
|
return ce.getAttribute("role") === "option" ? NodeFilter.FILTER_REJECT : ce.hasAttribute("role") ? NodeFilter.FILTER_SKIP : NodeFilter.FILTER_ACCEPT;
|
|
6497
6497
|
}, walk(ce) {
|
|
6498
6498
|
ce.setAttribute("role", "none");
|
|
6499
6499
|
} });
|
|
6500
|
-
let
|
|
6500
|
+
let J = mr([K?.id]), N = rt({ open: O === be.Open, option: void 0 }), C = de(() => {
|
|
6501
6501
|
f.actions.setActivationTrigger(Pt.Pointer);
|
|
6502
|
-
}),
|
|
6502
|
+
}), T = de((ce) => {
|
|
6503
6503
|
ce.preventDefault(), f.actions.setActivationTrigger(Pt.Pointer);
|
|
6504
|
-
}),
|
|
6504
|
+
}), L = hr(h ? x() : {}, { "aria-labelledby": J, role: "listbox", "aria-multiselectable": c.mode === tt.Multi ? !0 : void 0, id: a, ref: y, style: { ...u.style, ...w, "--input-width": Zi(Z, D, !0).width, "--button-width": Zi(Z, K, !0).width }, onWheel: _ === Pt.Pointer ? void 0 : C, onMouseDown: T, ...Uo(H) }), W = Z && O === be.Closed && !e.static, k = Kr(W, (n = c.virtual) == null ? void 0 : n.options), R = Kr(W, c.value), V = pe((ce) => c.compare(R, ce), [c.compare, R]), q = _e(() => {
|
|
6505
6505
|
if (!c.virtual) return c;
|
|
6506
|
-
if (
|
|
6507
|
-
return
|
|
6508
|
-
}, [c,
|
|
6509
|
-
c.virtual && Object.assign(u, { children:
|
|
6510
|
-
let ie = Be(), le = _e(() => c.mode === tt.Multi ? c : { ...c, isSelected:
|
|
6511
|
-
return
|
|
6506
|
+
if (k === void 0) throw new Error("Missing `options` in virtual mode");
|
|
6507
|
+
return k !== c.virtual.options ? { ...c, virtual: { ...c.virtual, options: k } } : c;
|
|
6508
|
+
}, [c, k, (r = c.virtual) == null ? void 0 : r.options]);
|
|
6509
|
+
c.virtual && Object.assign(u, { children: M.createElement(Zn.Provider, { value: q }, M.createElement(L9, { slot: N }, u.children)) });
|
|
6510
|
+
let ie = Be(), le = _e(() => c.mode === tt.Multi ? c : { ...c, isSelected: V }, [c, V]);
|
|
6511
|
+
return M.createElement(lu, { enabled: s ? e.static || Z : !1, ownerDocument: U }, M.createElement(Zn.Provider, { value: le }, ie({ ourProps: L, theirProps: { ...u, children: M.createElement(y9, { freeze: W }, typeof u.children == "function" ? (i = u.children) == null ? void 0 : i.call(u, N) : u.children) }, slot: N, defaultTag: H9, features: G9, visible: ee, name: "Combobox.Options" })));
|
|
6512
6512
|
}
|
|
6513
6513
|
let z9 = "div";
|
|
6514
6514
|
function q9(e, t) {
|
|
6515
6515
|
var n, r, i;
|
|
6516
|
-
let o = _n("Combobox.Option"), a = $r("Combobox.Option"), d = st(), { id: l = `headlessui-combobox-option-${d}`, value: s, disabled: p = (i = (r = (n = o.virtual) == null ? void 0 : n.disabled) == null ? void 0 : r.call(n, s)) != null ? i : !1, order: m = null, ...u } = e, [f] = xe(a, (H) => [H.inputElement]), c = Fs(f), h = xe(a, pe((H) => a.selectors.isActive(H, s, l), [s, l])), v = o.isSelected(s), w =
|
|
6516
|
+
let o = _n("Combobox.Option"), a = $r("Combobox.Option"), d = st(), { id: l = `headlessui-combobox-option-${d}`, value: s, disabled: p = (i = (r = (n = o.virtual) == null ? void 0 : n.disabled) == null ? void 0 : r.call(n, s)) != null ? i : !1, order: m = null, ...u } = e, [f] = xe(a, (H) => [H.inputElement]), c = Fs(f), h = xe(a, pe((H) => a.selectors.isActive(H, s, l), [s, l])), v = o.isSelected(s), w = X(null), E = jt({ disabled: p, value: s, domRef: w, order: m }), b = Ie(hu), x = Ke(t, w, b ? b.measureElement : null), y = de(() => {
|
|
6517
6517
|
a.actions.setIsTyping(!1), a.actions.onChange(s);
|
|
6518
6518
|
});
|
|
6519
6519
|
Pe(() => a.actions.registerOption(l, E), [E, l]);
|
|
6520
|
-
let
|
|
6520
|
+
let O = xe(a, pe((H) => a.selectors.shouldScrollIntoView(H, s, l), [s, l]));
|
|
6521
6521
|
Pe(() => {
|
|
6522
|
-
if (
|
|
6523
|
-
var H,
|
|
6524
|
-
(
|
|
6522
|
+
if (O) return Qe().requestAnimationFrame(() => {
|
|
6523
|
+
var H, Q;
|
|
6524
|
+
(Q = (H = w.current) == null ? void 0 : H.scrollIntoView) == null || Q.call(H, { block: "nearest" });
|
|
6525
6525
|
});
|
|
6526
|
-
}, [
|
|
6527
|
-
let
|
|
6526
|
+
}, [O, w]);
|
|
6527
|
+
let D = de((H) => {
|
|
6528
6528
|
H.preventDefault(), H.button === Do.Left && (p || (y(), eo() || requestAnimationFrame(() => c()), o.mode === tt.Single && a.actions.closeCombobox()));
|
|
6529
|
-
}),
|
|
6529
|
+
}), K = de(() => {
|
|
6530
6530
|
if (p) return a.actions.goToOption({ focus: me.Nothing });
|
|
6531
6531
|
let H = o.calculateIndex(s);
|
|
6532
6532
|
a.actions.goToOption({ focus: me.Specific, idx: H });
|
|
6533
|
-
}), F = Ls(), _ = de((H) => F.update(H)),
|
|
6533
|
+
}), F = Ls(), _ = de((H) => F.update(H)), U = de((H) => {
|
|
6534
6534
|
if (!F.wasMoved(H) || p || h && a.state.activationTrigger === Pt.Pointer) return;
|
|
6535
|
-
let
|
|
6536
|
-
a.actions.goToOption({ focus: me.Specific, idx:
|
|
6537
|
-
}),
|
|
6535
|
+
let Q = o.calculateIndex(s);
|
|
6536
|
+
a.actions.goToOption({ focus: me.Specific, idx: Q }, Pt.Pointer);
|
|
6537
|
+
}), j = de((H) => {
|
|
6538
6538
|
F.wasMoved(H) && (p || h && (o.optionsPropsRef.current.hold || a.state.activationTrigger === Pt.Pointer && a.actions.goToOption({ focus: me.Nothing })));
|
|
6539
|
-
}),
|
|
6540
|
-
return Be()({ ourProps:
|
|
6539
|
+
}), z = rt({ active: h, focus: h, selected: v, disabled: p }), Z = { id: l, ref: x, role: "option", tabIndex: p === !0 ? void 0 : -1, "aria-disabled": p === !0 ? !0 : void 0, "aria-selected": v, disabled: void 0, onMouseDown: D, onFocus: K, onPointerEnter: _, onMouseEnter: _, onPointerMove: U, onMouseMove: U, onPointerLeave: j, onMouseLeave: j };
|
|
6540
|
+
return Be()({ ourProps: Z, theirProps: u, slot: z, defaultTag: z9, name: "Combobox.Option" });
|
|
6541
6541
|
}
|
|
6542
6542
|
let Y9 = Le(j9), mu = Le(U9), vu = Le(W9), X9 = bs, gu = Le(K9), bu = Le(q9), Z9 = Object.assign(Y9, { Input: vu, Button: mu, Label: X9, Options: gu, Option: bu });
|
|
6543
6543
|
function J9() {
|
|
@@ -6552,14 +6552,14 @@ function $u() {
|
|
|
6552
6552
|
}, [t]), ne.useEffect(() => St.handoff(), []), e ? !1 : t;
|
|
6553
6553
|
}
|
|
6554
6554
|
function Q9() {
|
|
6555
|
-
let e =
|
|
6555
|
+
let e = X(!1);
|
|
6556
6556
|
return Pe(() => (e.current = !0, () => {
|
|
6557
6557
|
e.current = !1;
|
|
6558
6558
|
}), []), e;
|
|
6559
6559
|
}
|
|
6560
6560
|
function yu(e) {
|
|
6561
6561
|
var t;
|
|
6562
|
-
return !!(e.enter || e.enterFrom || e.enterTo || e.leave || e.leaveFrom || e.leaveTo) || !Un((t = e.as) != null ? t : xu) ||
|
|
6562
|
+
return !!(e.enter || e.enterFrom || e.enterTo || e.leave || e.leaveFrom || e.leaveTo) || !Un((t = e.as) != null ? t : xu) || M.Children.count(e.children) === 1;
|
|
6563
6563
|
}
|
|
6564
6564
|
let si = Me(null);
|
|
6565
6565
|
si.displayName = "TransitionContext";
|
|
@@ -6580,7 +6580,7 @@ function ci(e) {
|
|
|
6580
6580
|
return "children" in e ? ci(e.children) : e.current.filter(({ el: t }) => t.current !== null).filter(({ state: t }) => t === "visible").length > 0;
|
|
6581
6581
|
}
|
|
6582
6582
|
function wu(e, t) {
|
|
6583
|
-
let n = jt(e), r =
|
|
6583
|
+
let n = jt(e), r = X([]), i = Q9(), o = Zt(), a = de((f, c = Gt.Hidden) => {
|
|
6584
6584
|
let h = r.current.findIndex(({ el: v }) => v === f);
|
|
6585
6585
|
h !== -1 && (je(c, { [Gt.Unmount]() {
|
|
6586
6586
|
r.current.splice(h, 1);
|
|
@@ -6593,7 +6593,7 @@ function wu(e, t) {
|
|
|
6593
6593
|
}), d = de((f) => {
|
|
6594
6594
|
let c = r.current.find(({ el: h }) => h === f);
|
|
6595
6595
|
return c ? c.state !== "visible" && (c.state = "visible") : r.current.push({ el: f, state: "visible" }), () => a(f, Gt.Unmount);
|
|
6596
|
-
}), l =
|
|
6596
|
+
}), l = X([]), s = X(Promise.resolve()), p = X({ enter: [], leave: [] }), m = de((f, c, h) => {
|
|
6597
6597
|
l.current.splice(0), t && (t.chains.current[c] = t.chains.current[c].filter(([v]) => v !== f)), t?.chains.current[c].push([f, new Promise((v) => {
|
|
6598
6598
|
l.current.push(v);
|
|
6599
6599
|
})]), t?.chains.current[c].push([f, new Promise((v) => {
|
|
@@ -6610,50 +6610,50 @@ function wu(e, t) {
|
|
|
6610
6610
|
let xu = lt, Cu = Cn.RenderStrategy;
|
|
6611
6611
|
function r4(e, t) {
|
|
6612
6612
|
var n, r;
|
|
6613
|
-
let { transition: i = !0, beforeEnter: o, afterEnter: a, beforeLeave: d, afterLeave: l, enter: s, enterFrom: p, enterTo: m, entered: u, leave: f, leaveFrom: c, leaveTo: h, ...v } = e, [w, E] = oe(null), b =
|
|
6614
|
-
Pe(() =>
|
|
6615
|
-
if (
|
|
6616
|
-
if (
|
|
6617
|
-
|
|
6613
|
+
let { transition: i = !0, beforeEnter: o, afterEnter: a, beforeLeave: d, afterLeave: l, enter: s, enterFrom: p, enterTo: m, entered: u, leave: f, leaveFrom: c, leaveTo: h, ...v } = e, [w, E] = oe(null), b = X(null), x = yu(e), y = Ke(...x ? [b, t, E] : t === null ? [] : [t]), O = (n = v.unmount) == null || n ? Gt.Unmount : Gt.Hidden, { show: D, appear: K, initial: F } = t4(), [_, U] = oe(D ? "visible" : "hidden"), j = n4(), { register: z, unregister: Z } = j;
|
|
6614
|
+
Pe(() => z(b), [z, b]), Pe(() => {
|
|
6615
|
+
if (O === Gt.Hidden && b.current) {
|
|
6616
|
+
if (D && _ !== "visible") {
|
|
6617
|
+
U("visible");
|
|
6618
6618
|
return;
|
|
6619
6619
|
}
|
|
6620
|
-
return je(_, { hidden: () =>
|
|
6620
|
+
return je(_, { hidden: () => Z(b), visible: () => z(b) });
|
|
6621
6621
|
}
|
|
6622
|
-
}, [_, b,
|
|
6622
|
+
}, [_, b, z, Z, D, O]);
|
|
6623
6623
|
let H = $u();
|
|
6624
6624
|
Pe(() => {
|
|
6625
6625
|
if (x && H && _ === "visible" && b.current === null) throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
|
|
6626
6626
|
}, [b, _, H, x]);
|
|
6627
|
-
let
|
|
6628
|
-
|
|
6629
|
-
},
|
|
6630
|
-
|
|
6631
|
-
let
|
|
6632
|
-
|
|
6627
|
+
let Q = F && !K, re = K && D && F, ee = X(!1), J = wu(() => {
|
|
6628
|
+
ee.current || (U("hidden"), Z(b));
|
|
6629
|
+
}, j), N = de((V) => {
|
|
6630
|
+
ee.current = !0;
|
|
6631
|
+
let q = V ? "enter" : "leave";
|
|
6632
|
+
J.onStart(b, q, (ie) => {
|
|
6633
6633
|
ie === "enter" ? o?.() : ie === "leave" && d?.();
|
|
6634
6634
|
});
|
|
6635
|
-
}), C = de((
|
|
6636
|
-
let
|
|
6637
|
-
|
|
6635
|
+
}), C = de((V) => {
|
|
6636
|
+
let q = V ? "enter" : "leave";
|
|
6637
|
+
ee.current = !1, J.onStop(b, q, (ie) => {
|
|
6638
6638
|
ie === "enter" ? a?.() : ie === "leave" && l?.();
|
|
6639
|
-
}),
|
|
6639
|
+
}), q === "leave" && !ci(J) && (U("hidden"), Z(b));
|
|
6640
6640
|
});
|
|
6641
6641
|
he(() => {
|
|
6642
|
-
x && i || (N(
|
|
6643
|
-
}, [
|
|
6644
|
-
let
|
|
6645
|
-
_ === "visible" && (
|
|
6642
|
+
x && i || (N(D), C(D));
|
|
6643
|
+
}, [D, x, i]);
|
|
6644
|
+
let T = !(!i || !x || !H || Q), [, L] = Ho(T, w, D, { start: N, end: C }), W = Ut({ ref: y, className: ((r = Xi(v.className, re && s, re && p, L.enter && s, L.enter && L.closed && p, L.enter && !L.closed && m, L.leave && f, L.leave && !L.closed && c, L.leave && L.closed && h, !L.transition && D && u)) == null ? void 0 : r.trim()) || void 0, ...Uo(L) }), k = 0;
|
|
6645
|
+
_ === "visible" && (k |= Ye.Open), _ === "hidden" && (k |= Ye.Closed), D && _ === "hidden" && (k |= Ye.Opening), !D && _ === "visible" && (k |= Ye.Closing);
|
|
6646
6646
|
let R = Be();
|
|
6647
|
-
return
|
|
6647
|
+
return M.createElement(ui.Provider, { value: J }, M.createElement(Xo, { value: k }, R({ ourProps: W, theirProps: v, defaultTag: xu, features: Cu, visible: _ === "visible", name: "Transition.Child" })));
|
|
6648
6648
|
}
|
|
6649
6649
|
function i4(e, t) {
|
|
6650
|
-
let { show: n, appear: r = !1, unmount: i = !0, ...o } = e, a =
|
|
6650
|
+
let { show: n, appear: r = !1, unmount: i = !0, ...o } = e, a = X(null), d = yu(e), l = Ke(...d ? [a, t] : t === null ? [] : [t]);
|
|
6651
6651
|
$u();
|
|
6652
6652
|
let s = li();
|
|
6653
6653
|
if (n === void 0 && s !== null && (n = (s & Ye.Open) === Ye.Open), n === void 0) throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");
|
|
6654
6654
|
let [p, m] = oe(n ? "visible" : "hidden"), u = wu(() => {
|
|
6655
6655
|
n || m("hidden");
|
|
6656
|
-
}), [f, c] = oe(!0), h =
|
|
6656
|
+
}), [f, c] = oe(!0), h = X([n]);
|
|
6657
6657
|
Pe(() => {
|
|
6658
6658
|
f !== !1 && h.current[h.current.length - 1] !== n && (h.current.push(n), c(!1));
|
|
6659
6659
|
}, [h, n]);
|
|
@@ -6668,11 +6668,11 @@ function i4(e, t) {
|
|
|
6668
6668
|
var y;
|
|
6669
6669
|
f && c(!1), (y = e.beforeLeave) == null || y.call(e);
|
|
6670
6670
|
}), x = Be();
|
|
6671
|
-
return
|
|
6671
|
+
return M.createElement(ui.Provider, { value: u }, M.createElement(si.Provider, { value: v }, x({ ourProps: { ...w, as: lt, children: M.createElement(Eu, { ref: l, ...w, ...o, beforeEnter: E, beforeLeave: b }) }, theirProps: {}, defaultTag: lt, features: Cu, visible: p === "visible", name: "Transition" })));
|
|
6672
6672
|
}
|
|
6673
6673
|
function o4(e, t) {
|
|
6674
6674
|
let n = Ie(si) !== null, r = li() !== null;
|
|
6675
|
-
return
|
|
6675
|
+
return M.createElement(M.Fragment, null, !n && r ? M.createElement(io, { ref: t, ...e }) : M.createElement(Eu, { ref: t, ...e }));
|
|
6676
6676
|
}
|
|
6677
6677
|
let io = Le(i4), Eu = Le(r4), a4 = Le(o4), Su = Object.assign(io, { Child: a4, Root: io }), _d = /([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;
|
|
6678
6678
|
function Ad(e) {
|
|
@@ -6702,7 +6702,7 @@ function d4(e) {
|
|
|
6702
6702
|
return Ad(e).trim();
|
|
6703
6703
|
}
|
|
6704
6704
|
function l4(e) {
|
|
6705
|
-
let t =
|
|
6705
|
+
let t = X(""), n = X("");
|
|
6706
6706
|
return de(() => {
|
|
6707
6707
|
let r = e.current;
|
|
6708
6708
|
if (!r) return "";
|
|
@@ -6897,26 +6897,26 @@ let f4 = lt;
|
|
|
6897
6897
|
function p4(e, t) {
|
|
6898
6898
|
let n = st(), r = ti(), { value: i, defaultValue: o, form: a, name: d, onChange: l, by: s, invalid: p = !1, disabled: m = r || !1, horizontal: u = !1, multiple: f = !1, __demoMode: c = !1, ...h } = e;
|
|
6899
6899
|
const v = u ? "horizontal" : "vertical";
|
|
6900
|
-
let w = Ke(t), E = os(o), [b = f ? [] : void 0, x] = is(i, l, E), y = Tu({ id: n, __demoMode: c }),
|
|
6900
|
+
let w = Ke(t), E = os(o), [b = f ? [] : void 0, x] = is(i, l, E), y = Tu({ id: n, __demoMode: c }), O = X({ static: !1, hold: !1 }), D = X(/* @__PURE__ */ new Map()), K = ys(s), F = pe((T) => je(_.mode, { [Kt.Multi]: () => b.some((L) => K(L, T)), [Kt.Single]: () => K(b, T) }), [b]), _ = rt({ value: b, disabled: m, invalid: p, mode: f ? Kt.Multi : Kt.Single, orientation: v, onChange: x, compare: K, isSelected: F, optionsPropsRef: O, listRef: D });
|
|
6901
6901
|
Pe(() => {
|
|
6902
6902
|
y.state.dataRef.current = _;
|
|
6903
6903
|
}, [_]);
|
|
6904
|
-
let
|
|
6905
|
-
As(
|
|
6906
|
-
y.send({ type: Ou.CloseListbox }), Is(
|
|
6904
|
+
let U = xe(y, (T) => T.listboxState), j = vr.get(null), z = xe(j, pe((T) => j.selectors.isTop(T, n), [j, n])), [Z, H] = xe(y, (T) => [T.buttonElement, T.optionsElement]);
|
|
6905
|
+
As(z, [Z, H], (T, L) => {
|
|
6906
|
+
y.send({ type: Ou.CloseListbox }), Is(L, Wo.Loose) || (T.preventDefault(), Z?.focus());
|
|
6907
6907
|
});
|
|
6908
|
-
let
|
|
6908
|
+
let Q = rt({ open: U === Ue.Open, disabled: m, invalid: p, value: b }), [re, ee] = gs({ inherit: !0 }), J = { ref: w }, N = pe(() => {
|
|
6909
6909
|
if (E !== void 0) return x?.(E);
|
|
6910
6910
|
}, [x, E]), C = Be();
|
|
6911
|
-
return
|
|
6911
|
+
return M.createElement(ee, { value: re, props: { htmlFor: Z?.id }, slot: { open: U === Ue.Open, disabled: m } }, M.createElement(iu, null, M.createElement(Pu.Provider, { value: y }, M.createElement(fi.Provider, { value: _ }, M.createElement(Xo, { value: je(U, { [Ue.Open]: Ye.Open, [Ue.Closed]: Ye.Closed }) }, d != null && b != null && M.createElement(us, { disabled: m, data: { [d]: b }, form: a, onReset: N }), C({ ourProps: J, theirProps: h, slot: Q, defaultTag: f4, name: "Listbox" }))))));
|
|
6912
6912
|
}
|
|
6913
6913
|
let h4 = "button";
|
|
6914
6914
|
function m4(e, t) {
|
|
6915
6915
|
let n = st(), r = Mo(), i = yr("Listbox.Button"), o = ea("Listbox.Button"), { id: a = r || `headlessui-listbox-button-${n}`, disabled: d = i.disabled || !1, autoFocus: l = !1, ...s } = e, p = Ke(t, tu(), o.actions.setButtonElement), m = v9(), [u, f, c] = xe(o, (H) => [H.listboxState, H.buttonElement, H.optionsElement]), h = u === Ue.Open;
|
|
6916
6916
|
Rs(h, { trigger: f, action: pe((H) => {
|
|
6917
6917
|
if (f != null && f.contains(H.target)) return At.Ignore;
|
|
6918
|
-
let
|
|
6919
|
-
return Tt(
|
|
6918
|
+
let Q = H.target.closest('[role="option"]:not([data-disabled])');
|
|
6919
|
+
return Tt(Q) ? At.Select(Q) : c != null && c.contains(H.target) ? At.Ignore : At.Close;
|
|
6920
6920
|
}, [f, c]), close: o.actions.closeListbox, select: o.actions.selectActiveOption });
|
|
6921
6921
|
let v = de((H) => {
|
|
6922
6922
|
switch (H.key) {
|
|
@@ -6938,39 +6938,39 @@ function m4(e, t) {
|
|
|
6938
6938
|
break;
|
|
6939
6939
|
}
|
|
6940
6940
|
}), E = ws((H) => {
|
|
6941
|
-
var
|
|
6942
|
-
o.state.listboxState === Ue.Open ? (vt(() => o.actions.closeListbox()), (
|
|
6943
|
-
}), b = de((H) => H.preventDefault()), x = mr([a]), y = ms(), { isFocusVisible:
|
|
6944
|
-
return Be()({ ourProps:
|
|
6941
|
+
var Q;
|
|
6942
|
+
o.state.listboxState === Ue.Open ? (vt(() => o.actions.closeListbox()), (Q = o.state.buttonElement) == null || Q.focus({ preventScroll: !0 })) : (H.preventDefault(), o.actions.openListbox({ focus: me.Nothing }));
|
|
6943
|
+
}), b = de((H) => H.preventDefault()), x = mr([a]), y = ms(), { isFocusVisible: O, focusProps: D } = Ro({ autoFocus: l }), { isHovered: K, hoverProps: F } = Ao({ isDisabled: d }), { pressed: _, pressProps: U } = ns({ disabled: d }), j = rt({ open: u === Ue.Open, active: _ || u === Ue.Open, disabled: d, invalid: i.invalid, value: i.value, hover: K, focus: O, autofocus: l }), z = xe(o, (H) => H.listboxState === Ue.Open), Z = hr(m(), { ref: p, id: a, type: ks(e, f), "aria-haspopup": "listbox", "aria-controls": c?.id, "aria-expanded": z, "aria-labelledby": x, "aria-describedby": y, disabled: d || void 0, autoFocus: l, onKeyDown: v, onKeyUp: w, onKeyPress: b }, E, D, F, U);
|
|
6944
|
+
return Be()({ ourProps: Z, theirProps: s, slot: j, defaultTag: h4, name: "Listbox.Button" });
|
|
6945
6945
|
}
|
|
6946
6946
|
let Nu = Me(!1), v4 = "div", g4 = Cn.RenderStrategy | Cn.Static;
|
|
6947
6947
|
function b4(e, t) {
|
|
6948
6948
|
let n = st(), { id: r = `headlessui-listbox-options-${n}`, anchor: i, portal: o = !1, modal: a = !0, transition: d = !1, ...l } = e, s = eu(i), [p, m] = oe(null);
|
|
6949
6949
|
s && (o = !0);
|
|
6950
|
-
let u = yr("Listbox.Options"), f = ea("Listbox.Options"), [c, h, v, w] = xe(f, (R) => [R.listboxState, R.buttonElement, R.optionsElement, R.__demoMode]), E = zn(h), b = zn(v), x = li(), [y,
|
|
6950
|
+
let u = yr("Listbox.Options"), f = ea("Listbox.Options"), [c, h, v, w] = xe(f, (R) => [R.listboxState, R.buttonElement, R.optionsElement, R.__demoMode]), E = zn(h), b = zn(v), x = li(), [y, O] = Ho(d, p, x !== null ? (x & Ye.Open) === Ye.Open : c === Ue.Open);
|
|
6951
6951
|
Ts(y, h, f.actions.closeListbox);
|
|
6952
|
-
let
|
|
6953
|
-
Ms(
|
|
6954
|
-
let
|
|
6955
|
-
Ps(
|
|
6956
|
-
let F = xe(f, f.selectors.didButtonMove) ? !1 : y, _ = xe(f, f.selectors.hasFrozenValue) && !e.static,
|
|
6957
|
-
var
|
|
6958
|
-
if (s == null || !((
|
|
6959
|
-
let
|
|
6960
|
-
return
|
|
6961
|
-
}),
|
|
6952
|
+
let D = w ? !1 : a && c === Ue.Open;
|
|
6953
|
+
Ms(D, b);
|
|
6954
|
+
let K = w ? !1 : a && c === Ue.Open;
|
|
6955
|
+
Ps(K, { allowed: pe(() => [h, v], [h, v]) });
|
|
6956
|
+
let F = xe(f, f.selectors.didButtonMove) ? !1 : y, _ = xe(f, f.selectors.hasFrozenValue) && !e.static, U = Kr(_, u.value), j = pe((R) => u.compare(U, R), [u.compare, U]), z = xe(f, (R) => {
|
|
6957
|
+
var V;
|
|
6958
|
+
if (s == null || !((V = s?.to) != null && V.includes("selection"))) return null;
|
|
6959
|
+
let q = R.options.findIndex((ie) => j(ie.dataRef.current.value));
|
|
6960
|
+
return q === -1 && (q = 0), q;
|
|
6961
|
+
}), Z = (() => {
|
|
6962
6962
|
if (s == null) return;
|
|
6963
|
-
if (
|
|
6963
|
+
if (z === null) return { ...s, inner: void 0 };
|
|
6964
6964
|
let R = Array.from(u.listRef.current.values());
|
|
6965
|
-
return { ...s, inner: { listRef: { current: R }, index:
|
|
6966
|
-
})(), [H,
|
|
6965
|
+
return { ...s, inner: { listRef: { current: R }, index: z } };
|
|
6966
|
+
})(), [H, Q] = ru(Z), re = nu(), ee = Ke(t, s ? H : null, f.actions.setOptionsElement, m), J = Zt();
|
|
6967
6967
|
he(() => {
|
|
6968
6968
|
let R = v;
|
|
6969
6969
|
R && c === Ue.Open && (Fo(R) || R == null || R.focus({ preventScroll: !0 }));
|
|
6970
6970
|
}, [c, v]);
|
|
6971
6971
|
let N = de((R) => {
|
|
6972
|
-
var
|
|
6973
|
-
switch (
|
|
6972
|
+
var V;
|
|
6973
|
+
switch (J.dispose(), R.key) {
|
|
6974
6974
|
case we.Space:
|
|
6975
6975
|
if (f.state.searchQuery !== "") return R.preventDefault(), R.stopPropagation(), f.actions.search(R.key);
|
|
6976
6976
|
case we.Enter:
|
|
@@ -6987,32 +6987,32 @@ function b4(e, t) {
|
|
|
6987
6987
|
case we.PageDown:
|
|
6988
6988
|
return R.preventDefault(), R.stopPropagation(), f.actions.goToOption({ focus: me.Last });
|
|
6989
6989
|
case we.Escape:
|
|
6990
|
-
R.preventDefault(), R.stopPropagation(), vt(() => f.actions.closeListbox()), (
|
|
6990
|
+
R.preventDefault(), R.stopPropagation(), vt(() => f.actions.closeListbox()), (V = f.state.buttonElement) == null || V.focus({ preventScroll: !0 });
|
|
6991
6991
|
return;
|
|
6992
6992
|
case we.Tab:
|
|
6993
6993
|
R.preventDefault(), R.stopPropagation(), vt(() => f.actions.closeListbox()), M2(f.state.buttonElement, R.shiftKey ? Qi.Previous : Qi.Next);
|
|
6994
6994
|
break;
|
|
6995
6995
|
default:
|
|
6996
|
-
R.key.length === 1 && (f.actions.search(R.key),
|
|
6996
|
+
R.key.length === 1 && (f.actions.search(R.key), J.setTimeout(() => f.actions.clearSearch(), 350));
|
|
6997
6997
|
break;
|
|
6998
6998
|
}
|
|
6999
6999
|
}), C = xe(f, (R) => {
|
|
7000
|
-
var
|
|
7001
|
-
return (
|
|
7002
|
-
}),
|
|
7003
|
-
return
|
|
7000
|
+
var V;
|
|
7001
|
+
return (V = R.buttonElement) == null ? void 0 : V.id;
|
|
7002
|
+
}), T = rt({ open: c === Ue.Open }), L = hr(s ? re() : {}, { id: r, ref: ee, "aria-activedescendant": xe(f, f.selectors.activeDescendantId), "aria-multiselectable": u.mode === Kt.Multi ? !0 : void 0, "aria-labelledby": C, "aria-orientation": u.orientation, onKeyDown: N, role: "listbox", tabIndex: c === Ue.Open ? 0 : void 0, style: { ...l.style, ...Q, "--button-width": Zi(y, h, !0).width }, ...Uo(O) }), W = Be(), k = _e(() => u.mode === Kt.Multi ? u : { ...u, isSelected: j }, [u, j]);
|
|
7003
|
+
return M.createElement(lu, { enabled: o ? e.static || y : !1, ownerDocument: E }, M.createElement(fi.Provider, { value: k }, W({ ourProps: L, theirProps: l, slot: T, defaultTag: v4, features: g4, visible: F, name: "Listbox.Options" })));
|
|
7004
7004
|
}
|
|
7005
7005
|
let $4 = "div";
|
|
7006
7006
|
function y4(e, t) {
|
|
7007
|
-
let n = st(), { id: r = `headlessui-listbox-option-${n}`, disabled: i = !1, value: o, ...a } = e, d = Ie(Nu) === !0, l = yr("Listbox.Option"), s = ea("Listbox.Option"), p = xe(s, (_) => s.selectors.isActive(_, r)), m = l.isSelected(o), u =
|
|
7007
|
+
let n = st(), { id: r = `headlessui-listbox-option-${n}`, disabled: i = !1, value: o, ...a } = e, d = Ie(Nu) === !0, l = yr("Listbox.Option"), s = ea("Listbox.Option"), p = xe(s, (_) => s.selectors.isActive(_, r)), m = l.isSelected(o), u = X(null), f = l4(u), c = jt({ disabled: i, value: o, domRef: u, get textValue() {
|
|
7008
7008
|
return f();
|
|
7009
7009
|
} }), h = Ke(t, u, (_) => {
|
|
7010
7010
|
_ ? l.listRef.current.set(r, _) : l.listRef.current.delete(r);
|
|
7011
7011
|
}), v = xe(s, (_) => s.selectors.shouldScrollIntoView(_, r));
|
|
7012
7012
|
Pe(() => {
|
|
7013
7013
|
if (v) return Qe().requestAnimationFrame(() => {
|
|
7014
|
-
var _,
|
|
7015
|
-
(
|
|
7014
|
+
var _, U;
|
|
7015
|
+
(U = (_ = u.current) == null ? void 0 : _.scrollIntoView) == null || U.call(_, { block: "nearest" });
|
|
7016
7016
|
});
|
|
7017
7017
|
}, [v, u]), Pe(() => {
|
|
7018
7018
|
if (!d) return s.actions.registerOption(r, c), () => s.actions.unregisterOption(r);
|
|
@@ -7025,15 +7025,15 @@ function y4(e, t) {
|
|
|
7025
7025
|
s.actions.goToOption({ focus: me.Specific, id: r });
|
|
7026
7026
|
}), b = Ls(), x = de((_) => b.update(_)), y = de((_) => {
|
|
7027
7027
|
b.wasMoved(_) && (i || p && s.state.activationTrigger === kr.Pointer || s.actions.goToOption({ focus: me.Specific, id: r }, kr.Pointer));
|
|
7028
|
-
}),
|
|
7028
|
+
}), O = de((_) => {
|
|
7029
7029
|
b.wasMoved(_) && (i || p && s.state.activationTrigger === kr.Pointer && s.actions.goToOption({ focus: me.Nothing }));
|
|
7030
|
-
}),
|
|
7031
|
-
return !m && d ? null : F({ ourProps:
|
|
7030
|
+
}), D = rt({ active: p, focus: p, selected: m, disabled: i, selectedOption: m && d }), K = d ? {} : { id: r, ref: h, role: "option", tabIndex: i === !0 ? void 0 : -1, "aria-disabled": i === !0 ? !0 : void 0, "aria-selected": m, disabled: void 0, onClick: w, onFocus: E, onPointerEnter: x, onMouseEnter: x, onPointerMove: y, onMouseMove: y, onPointerLeave: O, onMouseLeave: O }, F = Be();
|
|
7031
|
+
return !m && d ? null : F({ ourProps: K, theirProps: a, slot: D, defaultTag: $4, name: "Listbox.Option" });
|
|
7032
7032
|
}
|
|
7033
7033
|
let w4 = lt;
|
|
7034
7034
|
function x4(e, t) {
|
|
7035
7035
|
let { options: n, placeholder: r, ...i } = e, o = { ref: Ke(t) }, a = yr("ListboxSelectedOption"), d = rt({}), l = a.value === void 0 || a.value === null || a.mode === Kt.Multi && Array.isArray(a.value) && a.value.length === 0, s = Be();
|
|
7036
|
-
return
|
|
7036
|
+
return M.createElement(Nu.Provider, { value: !0 }, s({ ourProps: o, theirProps: { ...i, children: M.createElement(M.Fragment, null, r && l ? r : n) }, slot: d, defaultTag: w4, name: "ListboxSelectedOption" }));
|
|
7037
7037
|
}
|
|
7038
7038
|
let C4 = Le(p4), Iu = Le(m4), E4 = bs, _u = Le(b4), Au = Le(y4), S4 = Le(x4), O4 = Object.assign(C4, { Button: Iu, Label: E4, Options: _u, Option: Au, SelectedOption: S4 });
|
|
7039
7039
|
function P4({
|
|
@@ -7073,7 +7073,7 @@ const Ru = /* @__PURE__ */ ne.forwardRef(P4), T4 = "_select_fcnvh_1", N4 = "_sel
|
|
|
7073
7073
|
leaveTo: B4,
|
|
7074
7074
|
selectOptions: W4
|
|
7075
7075
|
}, V4 = ({ children: e, selected: t, onSelect: n, themeColor: r, placeholder: i }) => {
|
|
7076
|
-
const [o, a] = oe(!1), [d, l] = oe(!1), [s, p] = oe(!1), m =
|
|
7076
|
+
const [o, a] = oe(!1), [d, l] = oe(!1), [s, p] = oe(!1), m = X(null), u = X(null), f = X(null), [c, h] = oe({ left: 0, top: 0 }), [v, w] = oe(!1), E = X(0), b = X(0);
|
|
7077
7077
|
let x = "#333333";
|
|
7078
7078
|
const y = () => {
|
|
7079
7079
|
E.current = window.innerHeight, b.current = document.body.scrollHeight, a(!0);
|
|
@@ -7081,32 +7081,32 @@ const Ru = /* @__PURE__ */ ne.forwardRef(P4), T4 = "_select_fcnvh_1", N4 = "_sel
|
|
|
7081
7081
|
he(() => (y(), window.addEventListener("resize", y), () => {
|
|
7082
7082
|
window.removeEventListener("resize", y);
|
|
7083
7083
|
}), []);
|
|
7084
|
-
const
|
|
7084
|
+
const O = () => b.current - (E.current + window.scrollY), D = () => {
|
|
7085
7085
|
if (m.current) {
|
|
7086
|
-
const
|
|
7086
|
+
const U = m.current.getBoundingClientRect();
|
|
7087
7087
|
w(!1), setTimeout(() => {
|
|
7088
|
-
const
|
|
7089
|
-
if (
|
|
7090
|
-
const H =
|
|
7088
|
+
const j = f?.current?.getBoundingClientRect(), z = O(), Z = E.current - U.bottom;
|
|
7089
|
+
if (j) {
|
|
7090
|
+
const H = j.height, Q = U.top, re = H >= Q + window.scrollY, ee = H >= Q && (re || z >= H || Z >= H) || Q >= H && Z >= H ? U.y + U.height : U.y - H;
|
|
7091
7091
|
h({
|
|
7092
|
-
left:
|
|
7093
|
-
top:
|
|
7092
|
+
left: U.left,
|
|
7093
|
+
top: ee ?? U.top
|
|
7094
7094
|
}), w(!0);
|
|
7095
7095
|
}
|
|
7096
7096
|
}, 0);
|
|
7097
7097
|
}
|
|
7098
7098
|
};
|
|
7099
|
-
if (he(() => (window.addEventListener("scroll",
|
|
7100
|
-
window.removeEventListener("scroll",
|
|
7099
|
+
if (he(() => (window.addEventListener("scroll", D), window.addEventListener("resize", D), () => {
|
|
7100
|
+
window.removeEventListener("scroll", D), window.removeEventListener("resize", D);
|
|
7101
7101
|
}), []), r) {
|
|
7102
7102
|
r = $t.convert3HexTo6(r);
|
|
7103
|
-
const
|
|
7104
|
-
(
|
|
7103
|
+
const U = Lt(r);
|
|
7104
|
+
(U === "dark" || U === "light") && (x = r === "#ffffff" ? "#c8c8c8" : r);
|
|
7105
7105
|
}
|
|
7106
|
-
const
|
|
7107
|
-
n(
|
|
7106
|
+
const K = (U) => {
|
|
7107
|
+
n(U);
|
|
7108
7108
|
}, F = () => p(!0), _ = () => p(!1);
|
|
7109
|
-
return /* @__PURE__ */ I.jsx(O4, { value: t, onChange:
|
|
7109
|
+
return /* @__PURE__ */ I.jsx(O4, { value: t, onChange: K, children: ({ open: U }) => (U !== d && (l(U), U ? D() : w(!1)), /* @__PURE__ */ I.jsxs("div", { className: qe.select, children: [
|
|
7110
7110
|
/* @__PURE__ */ I.jsx("div", { className: qe.selectContainer, ref: m, children: /* @__PURE__ */ I.jsxs(
|
|
7111
7111
|
Iu,
|
|
7112
7112
|
{
|
|
@@ -7114,9 +7114,9 @@ const Ru = /* @__PURE__ */ ne.forwardRef(P4), T4 = "_select_fcnvh_1", N4 = "_sel
|
|
|
7114
7114
|
"data-testid": "select-options",
|
|
7115
7115
|
onFocus: F,
|
|
7116
7116
|
onBlur: _,
|
|
7117
|
-
className: `${qe.selectButton} ${
|
|
7117
|
+
className: `${qe.selectButton} ${U ? qe.open : ""}`,
|
|
7118
7118
|
style: {
|
|
7119
|
-
borderBottomColor: r && (s ||
|
|
7119
|
+
borderBottomColor: r && (s || U) ? x : ""
|
|
7120
7120
|
},
|
|
7121
7121
|
children: [
|
|
7122
7122
|
t ? /* @__PURE__ */ I.jsxs("span", { className: qe.selectValue, children: [
|
|
@@ -7135,7 +7135,7 @@ const Ru = /* @__PURE__ */ ne.forwardRef(P4), T4 = "_select_fcnvh_1", N4 = "_sel
|
|
|
7135
7135
|
}
|
|
7136
7136
|
) }),
|
|
7137
7137
|
o && Pn(
|
|
7138
|
-
|
|
7138
|
+
U && /* @__PURE__ */ I.jsx(
|
|
7139
7139
|
"div",
|
|
7140
7140
|
{
|
|
7141
7141
|
style: {
|
|
@@ -7196,57 +7196,59 @@ const H4 = "_autocomplete_29ukn_1", G4 = "_autocompleteContainer_29ukn_4", K4 =
|
|
|
7196
7196
|
clearSearch: o = !1,
|
|
7197
7197
|
themeColor: a
|
|
7198
7198
|
}) => {
|
|
7199
|
-
const d =
|
|
7200
|
-
let
|
|
7199
|
+
const d = X(null), l = X(null), s = X(null), p = X(null), [m, u] = oe(!1), [f, c] = oe(!1), [h, v] = oe({ top: 0, left: 0 }), [w, E] = oe(!1), b = X(0), x = X(0), y = X(null), O = X(null);
|
|
7200
|
+
let D = {};
|
|
7201
7201
|
he(() => {
|
|
7202
7202
|
d.current && t && (d.current.value = t.label || "");
|
|
7203
7203
|
}, [t]), he(() => {
|
|
7204
7204
|
b.current = window.innerHeight, x.current = document.body.scrollHeight, c(!0);
|
|
7205
7205
|
}, []);
|
|
7206
|
-
const
|
|
7206
|
+
const K = pe(() => {
|
|
7207
7207
|
if (s.current) {
|
|
7208
|
-
const
|
|
7208
|
+
const j = window.visualViewport, z = s.current.getBoundingClientRect();
|
|
7209
7209
|
y.current !== null && cancelAnimationFrame(y.current), y.current = requestAnimationFrame(() => {
|
|
7210
7210
|
y.current = requestAnimationFrame(() => {
|
|
7211
|
-
const
|
|
7212
|
-
let
|
|
7213
|
-
if (
|
|
7214
|
-
const J =
|
|
7211
|
+
const Z = p?.current?.getBoundingClientRect();
|
|
7212
|
+
let H = z.left, Q = z.y + z.height, re = window.innerHeight - z.bottom, ee = document.body.scrollHeight - (window.innerHeight + window.scrollY);
|
|
7213
|
+
if (j && (H = z.left + j.offsetLeft, Q = z.top + z.height + j.offsetTop, re = j.height - (z.bottom - j.offsetTop), ee = document.body.scrollHeight - (j.height + j.pageTop)), Z) {
|
|
7214
|
+
const J = Z.height, N = z.top, C = J >= N + window.scrollY, T = J >= N && (C || ee >= J || re >= J) || N >= J && re >= J ? Q : (j ? z.top + j.offsetTop : z.y) - J;
|
|
7215
7215
|
v({
|
|
7216
|
-
left:
|
|
7217
|
-
top:
|
|
7216
|
+
left: H,
|
|
7217
|
+
top: T ?? (j ? z.top + j.offsetTop : z.top)
|
|
7218
7218
|
}), E(!0);
|
|
7219
7219
|
}
|
|
7220
7220
|
});
|
|
7221
7221
|
});
|
|
7222
7222
|
}
|
|
7223
|
-
}, []),
|
|
7224
|
-
(
|
|
7225
|
-
p.current =
|
|
7223
|
+
}, []), F = pe(
|
|
7224
|
+
(j) => {
|
|
7225
|
+
O.current && (O.current.disconnect(), O.current = null), p.current = j, j && (typeof ResizeObserver < "u" && (O.current = new ResizeObserver(() => {
|
|
7226
|
+
K();
|
|
7227
|
+
}), O.current.observe(j)), K());
|
|
7226
7228
|
},
|
|
7227
|
-
[
|
|
7229
|
+
[K]
|
|
7228
7230
|
);
|
|
7229
|
-
he(() => (window.addEventListener("scroll",
|
|
7230
|
-
window.removeEventListener("scroll",
|
|
7231
|
+
he(() => (window.addEventListener("scroll", K), window.addEventListener("resize", K), () => {
|
|
7232
|
+
window.removeEventListener("scroll", K), window.removeEventListener("resize", K), y.current !== null && cancelAnimationFrame(y.current), O.current && O.current.disconnect();
|
|
7231
7233
|
}), []);
|
|
7232
|
-
const
|
|
7234
|
+
const _ = () => {
|
|
7233
7235
|
u(!0);
|
|
7234
|
-
},
|
|
7236
|
+
}, U = () => {
|
|
7235
7237
|
u(!1);
|
|
7236
7238
|
};
|
|
7237
7239
|
if (a) {
|
|
7238
|
-
const
|
|
7240
|
+
const j = Lt(a);
|
|
7239
7241
|
a = $t.convert3HexTo6(a);
|
|
7240
|
-
let
|
|
7241
|
-
a === "#ffffff" ?
|
|
7242
|
-
borderBottomColor:
|
|
7242
|
+
let z;
|
|
7243
|
+
a === "#ffffff" ? z = "#c8c8c8" : m ? z = a : z = "#333333", (j === "dark" || j === "light") && (D = {
|
|
7244
|
+
borderBottomColor: z
|
|
7243
7245
|
});
|
|
7244
7246
|
}
|
|
7245
|
-
return /* @__PURE__ */ I.jsx(Z9, { value: t, onChange: n, disabled: i, children: ({ open:
|
|
7246
|
-
const
|
|
7247
|
+
return /* @__PURE__ */ I.jsx(Z9, { value: t, onChange: n, disabled: i, children: ({ open: j }) => {
|
|
7248
|
+
const z = () => {
|
|
7247
7249
|
if (d.current) {
|
|
7248
|
-
if (!
|
|
7249
|
-
|
|
7250
|
+
if (!j) {
|
|
7251
|
+
K(), u(!0), t && (d.current.value = t.label || ""), o && (d.current.value = "", r("")), d.current.dispatchEvent(new KeyboardEvent("keydown", { key: "ArrowDown", bubbles: !0 }));
|
|
7250
7252
|
return;
|
|
7251
7253
|
}
|
|
7252
7254
|
d.current.dispatchEvent(new KeyboardEvent("keydown", { key: "Escape", bubbles: !0 })), u(!1);
|
|
@@ -7260,14 +7262,14 @@ const H4 = "_autocomplete_29ukn_1", G4 = "_autocompleteContainer_29ukn_4", K4 =
|
|
|
7260
7262
|
ref: d,
|
|
7261
7263
|
"data-testid": "select-input",
|
|
7262
7264
|
className: mt.autocompleteInput,
|
|
7263
|
-
displayValue: (
|
|
7264
|
-
onChange: (
|
|
7265
|
-
r(
|
|
7265
|
+
displayValue: (Z) => Z?.label || "",
|
|
7266
|
+
onChange: (Z) => {
|
|
7267
|
+
r(Z.target.value), typeof ResizeObserver > "u" && K();
|
|
7266
7268
|
},
|
|
7267
|
-
onClick:
|
|
7268
|
-
onFocus:
|
|
7269
|
-
onBlur:
|
|
7270
|
-
style: { ...
|
|
7269
|
+
onClick: z,
|
|
7270
|
+
onFocus: _,
|
|
7271
|
+
onBlur: U,
|
|
7272
|
+
style: { ...D },
|
|
7271
7273
|
placeholder: "Select your option",
|
|
7272
7274
|
autoComplete: "off"
|
|
7273
7275
|
}
|
|
@@ -7277,12 +7279,12 @@ const H4 = "_autocomplete_29ukn_1", G4 = "_autocompleteContainer_29ukn_4", K4 =
|
|
|
7277
7279
|
{
|
|
7278
7280
|
className: `${mt.chevronDownIcon} ${i ? mt.disable : ""}`,
|
|
7279
7281
|
"aria-hidden": "true",
|
|
7280
|
-
"data-open":
|
|
7282
|
+
"data-open": j ? !0 : void 0
|
|
7281
7283
|
}
|
|
7282
7284
|
) })
|
|
7283
7285
|
] }),
|
|
7284
7286
|
f ? Pn(
|
|
7285
|
-
/* @__PURE__ */ I.jsx(I.Fragment, { children:
|
|
7287
|
+
/* @__PURE__ */ I.jsx(I.Fragment, { children: j && /* @__PURE__ */ I.jsx(
|
|
7286
7288
|
"div",
|
|
7287
7289
|
{
|
|
7288
7290
|
style: {
|
|
@@ -7294,7 +7296,7 @@ const H4 = "_autocomplete_29ukn_1", G4 = "_autocompleteContainer_29ukn_4", K4 =
|
|
|
7294
7296
|
children: /* @__PURE__ */ I.jsx(
|
|
7295
7297
|
"div",
|
|
7296
7298
|
{
|
|
7297
|
-
ref:
|
|
7299
|
+
ref: F,
|
|
7298
7300
|
style: {
|
|
7299
7301
|
position: "absolute",
|
|
7300
7302
|
opacity: w ? 1 : 0,
|
|
@@ -7327,7 +7329,7 @@ e6.displayName = "AutoCompleteOption";
|
|
|
7327
7329
|
const t6 = "_textInputWrapper_gym4n_1", n6 = "_textInput_gym4n_1", kd = {
|
|
7328
7330
|
textInputWrapper: t6,
|
|
7329
7331
|
textInput: n6
|
|
7330
|
-
}, r6 =
|
|
7332
|
+
}, r6 = M.memo(
|
|
7331
7333
|
Yt(
|
|
7332
7334
|
({ themeColor: e = "", style: t = {}, className: n = "", onFocus: r, onBlur: i, ...o }, a) => {
|
|
7333
7335
|
const [d, l] = oe(!1);
|
|
@@ -7382,8 +7384,8 @@ function f6() {
|
|
|
7382
7384
|
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, d = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, s = e ? Symbol.for("react.concurrent_mode") : 60111, p = e ? Symbol.for("react.forward_ref") : 60112, m = e ? Symbol.for("react.suspense") : 60113, u = e ? Symbol.for("react.suspense_list") : 60120, f = e ? Symbol.for("react.memo") : 60115, c = e ? Symbol.for("react.lazy") : 60116, h = e ? Symbol.for("react.block") : 60121, v = e ? Symbol.for("react.fundamental") : 60117, w = e ? Symbol.for("react.responder") : 60118, E = e ? Symbol.for("react.scope") : 60119;
|
|
7383
7385
|
function b(y) {
|
|
7384
7386
|
if (typeof y == "object" && y !== null) {
|
|
7385
|
-
var
|
|
7386
|
-
switch (
|
|
7387
|
+
var O = y.$$typeof;
|
|
7388
|
+
switch (O) {
|
|
7387
7389
|
case t:
|
|
7388
7390
|
switch (y = y.type, y) {
|
|
7389
7391
|
case l:
|
|
@@ -7402,11 +7404,11 @@ function f6() {
|
|
|
7402
7404
|
case a:
|
|
7403
7405
|
return y;
|
|
7404
7406
|
default:
|
|
7405
|
-
return
|
|
7407
|
+
return O;
|
|
7406
7408
|
}
|
|
7407
7409
|
}
|
|
7408
7410
|
case n:
|
|
7409
|
-
return
|
|
7411
|
+
return O;
|
|
7410
7412
|
}
|
|
7411
7413
|
}
|
|
7412
7414
|
}
|
|
@@ -7454,16 +7456,16 @@ var Ld;
|
|
|
7454
7456
|
function p6() {
|
|
7455
7457
|
return Ld || (Ld = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
7456
7458
|
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, d = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, s = e ? Symbol.for("react.concurrent_mode") : 60111, p = e ? Symbol.for("react.forward_ref") : 60112, m = e ? Symbol.for("react.suspense") : 60113, u = e ? Symbol.for("react.suspense_list") : 60120, f = e ? Symbol.for("react.memo") : 60115, c = e ? Symbol.for("react.lazy") : 60116, h = e ? Symbol.for("react.block") : 60121, v = e ? Symbol.for("react.fundamental") : 60117, w = e ? Symbol.for("react.responder") : 60118, E = e ? Symbol.for("react.scope") : 60119;
|
|
7457
|
-
function b(
|
|
7458
|
-
return typeof
|
|
7459
|
-
|
|
7459
|
+
function b(P) {
|
|
7460
|
+
return typeof P == "string" || typeof P == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
7461
|
+
P === r || P === s || P === o || P === i || P === m || P === u || typeof P == "object" && P !== null && (P.$$typeof === c || P.$$typeof === f || P.$$typeof === a || P.$$typeof === d || P.$$typeof === p || P.$$typeof === v || P.$$typeof === w || P.$$typeof === E || P.$$typeof === h);
|
|
7460
7462
|
}
|
|
7461
|
-
function x(
|
|
7462
|
-
if (typeof
|
|
7463
|
-
var ae =
|
|
7463
|
+
function x(P) {
|
|
7464
|
+
if (typeof P == "object" && P !== null) {
|
|
7465
|
+
var ae = P.$$typeof;
|
|
7464
7466
|
switch (ae) {
|
|
7465
7467
|
case t:
|
|
7466
|
-
var Te =
|
|
7468
|
+
var Te = P.type;
|
|
7467
7469
|
switch (Te) {
|
|
7468
7470
|
case l:
|
|
7469
7471
|
case s:
|
|
@@ -7490,47 +7492,47 @@ function p6() {
|
|
|
7490
7492
|
}
|
|
7491
7493
|
}
|
|
7492
7494
|
}
|
|
7493
|
-
var y = l,
|
|
7494
|
-
function
|
|
7495
|
-
return
|
|
7495
|
+
var y = l, O = s, D = d, K = a, F = t, _ = p, U = r, j = c, z = f, Z = n, H = o, Q = i, re = m, ee = !1;
|
|
7496
|
+
function J(P) {
|
|
7497
|
+
return ee || (ee = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), N(P) || x(P) === l;
|
|
7496
7498
|
}
|
|
7497
|
-
function N(
|
|
7498
|
-
return x(
|
|
7499
|
+
function N(P) {
|
|
7500
|
+
return x(P) === s;
|
|
7499
7501
|
}
|
|
7500
|
-
function C(
|
|
7501
|
-
return x(
|
|
7502
|
+
function C(P) {
|
|
7503
|
+
return x(P) === d;
|
|
7502
7504
|
}
|
|
7503
|
-
function P
|
|
7504
|
-
return x(
|
|
7505
|
+
function T(P) {
|
|
7506
|
+
return x(P) === a;
|
|
7505
7507
|
}
|
|
7506
|
-
function
|
|
7507
|
-
return typeof
|
|
7508
|
+
function L(P) {
|
|
7509
|
+
return typeof P == "object" && P !== null && P.$$typeof === t;
|
|
7508
7510
|
}
|
|
7509
|
-
function W(
|
|
7510
|
-
return x(
|
|
7511
|
+
function W(P) {
|
|
7512
|
+
return x(P) === p;
|
|
7511
7513
|
}
|
|
7512
|
-
function
|
|
7513
|
-
return x(
|
|
7514
|
+
function k(P) {
|
|
7515
|
+
return x(P) === r;
|
|
7514
7516
|
}
|
|
7515
|
-
function R(
|
|
7516
|
-
return x(
|
|
7517
|
+
function R(P) {
|
|
7518
|
+
return x(P) === c;
|
|
7517
7519
|
}
|
|
7518
|
-
function
|
|
7519
|
-
return x(
|
|
7520
|
+
function V(P) {
|
|
7521
|
+
return x(P) === f;
|
|
7520
7522
|
}
|
|
7521
|
-
function
|
|
7522
|
-
return x(
|
|
7523
|
+
function q(P) {
|
|
7524
|
+
return x(P) === n;
|
|
7523
7525
|
}
|
|
7524
|
-
function ie(
|
|
7525
|
-
return x(
|
|
7526
|
+
function ie(P) {
|
|
7527
|
+
return x(P) === o;
|
|
7526
7528
|
}
|
|
7527
|
-
function le(
|
|
7528
|
-
return x(
|
|
7529
|
+
function le(P) {
|
|
7530
|
+
return x(P) === i;
|
|
7529
7531
|
}
|
|
7530
|
-
function ce(
|
|
7531
|
-
return x(
|
|
7532
|
+
function ce(P) {
|
|
7533
|
+
return x(P) === m;
|
|
7532
7534
|
}
|
|
7533
|
-
Ee.AsyncMode = y, Ee.ConcurrentMode =
|
|
7535
|
+
Ee.AsyncMode = y, Ee.ConcurrentMode = O, Ee.ContextConsumer = D, Ee.ContextProvider = K, Ee.Element = F, Ee.ForwardRef = _, Ee.Fragment = U, Ee.Lazy = j, Ee.Memo = z, Ee.Portal = Z, Ee.Profiler = H, Ee.StrictMode = Q, Ee.Suspense = re, Ee.isAsyncMode = J, Ee.isConcurrentMode = N, Ee.isContextConsumer = C, Ee.isContextProvider = T, Ee.isElement = L, Ee.isForwardRef = W, Ee.isFragment = k, Ee.isLazy = R, Ee.isMemo = V, Ee.isPortal = q, Ee.isProfiler = ie, Ee.isStrictMode = le, Ee.isSuspense = ce, Ee.isValidElementType = b, Ee.typeOf = x;
|
|
7534
7536
|
})()), Ee;
|
|
7535
7537
|
}
|
|
7536
7538
|
var Dd;
|
|
@@ -7685,13 +7687,13 @@ function v6() {
|
|
|
7685
7687
|
arrayOf: b,
|
|
7686
7688
|
element: x(),
|
|
7687
7689
|
elementType: y(),
|
|
7688
|
-
instanceOf:
|
|
7690
|
+
instanceOf: O,
|
|
7689
7691
|
node: _(),
|
|
7690
|
-
objectOf:
|
|
7691
|
-
oneOf:
|
|
7692
|
+
objectOf: K,
|
|
7693
|
+
oneOf: D,
|
|
7692
7694
|
oneOfType: F,
|
|
7693
|
-
shape:
|
|
7694
|
-
exact:
|
|
7695
|
+
shape: j,
|
|
7696
|
+
exact: z
|
|
7695
7697
|
};
|
|
7696
7698
|
function c(N, C) {
|
|
7697
7699
|
return N === C ? N !== 0 || 1 / N === 1 / C : N !== N && C !== C;
|
|
@@ -7702,34 +7704,34 @@ function v6() {
|
|
|
7702
7704
|
h.prototype = Error.prototype;
|
|
7703
7705
|
function v(N) {
|
|
7704
7706
|
if (process.env.NODE_ENV !== "production")
|
|
7705
|
-
var C = {},
|
|
7706
|
-
function
|
|
7707
|
-
if (
|
|
7707
|
+
var C = {}, T = 0;
|
|
7708
|
+
function L(k, R, V, q, ie, le, ce) {
|
|
7709
|
+
if (q = q || u, le = le || V, ce !== n) {
|
|
7708
7710
|
if (l) {
|
|
7709
|
-
var
|
|
7711
|
+
var P = new Error(
|
|
7710
7712
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
7711
7713
|
);
|
|
7712
|
-
throw
|
|
7714
|
+
throw P.name = "Invariant Violation", P;
|
|
7713
7715
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
7714
|
-
var ae =
|
|
7716
|
+
var ae = q + ":" + V;
|
|
7715
7717
|
!C[ae] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
7716
|
-
|
|
7717
|
-
"You are manually calling a React.PropTypes validation function for the `" + le + "` prop on `" +
|
|
7718
|
-
), C[ae] = !0,
|
|
7718
|
+
T < 3 && (o(
|
|
7719
|
+
"You are manually calling a React.PropTypes validation function for the `" + le + "` prop on `" + q + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
7720
|
+
), C[ae] = !0, T++);
|
|
7719
7721
|
}
|
|
7720
7722
|
}
|
|
7721
|
-
return R[
|
|
7723
|
+
return R[V] == null ? k ? R[V] === null ? new h("The " + ie + " `" + le + "` is marked as required " + ("in `" + q + "`, but its value is `null`.")) : new h("The " + ie + " `" + le + "` is marked as required in " + ("`" + q + "`, but its value is `undefined`.")) : null : N(R, V, q, ie, le);
|
|
7722
7724
|
}
|
|
7723
|
-
var W =
|
|
7724
|
-
return W.isRequired =
|
|
7725
|
+
var W = L.bind(null, !1);
|
|
7726
|
+
return W.isRequired = L.bind(null, !0), W;
|
|
7725
7727
|
}
|
|
7726
7728
|
function w(N) {
|
|
7727
|
-
function C(
|
|
7728
|
-
var
|
|
7729
|
+
function C(T, L, W, k, R, V) {
|
|
7730
|
+
var q = T[L], ie = Q(q);
|
|
7729
7731
|
if (ie !== N) {
|
|
7730
|
-
var le = re(
|
|
7732
|
+
var le = re(q);
|
|
7731
7733
|
return new h(
|
|
7732
|
-
"Invalid " +
|
|
7734
|
+
"Invalid " + k + " `" + R + "` of type " + ("`" + le + "` supplied to `" + W + "`, expected ") + ("`" + N + "`."),
|
|
7733
7735
|
{ expectedType: N }
|
|
7734
7736
|
);
|
|
7735
7737
|
}
|
|
@@ -7741,16 +7743,16 @@ function v6() {
|
|
|
7741
7743
|
return v(a);
|
|
7742
7744
|
}
|
|
7743
7745
|
function b(N) {
|
|
7744
|
-
function C(
|
|
7746
|
+
function C(T, L, W, k, R) {
|
|
7745
7747
|
if (typeof N != "function")
|
|
7746
7748
|
return new h("Property `" + R + "` of component `" + W + "` has invalid PropType notation inside arrayOf.");
|
|
7747
|
-
var
|
|
7748
|
-
if (!Array.isArray(
|
|
7749
|
-
var
|
|
7750
|
-
return new h("Invalid " +
|
|
7749
|
+
var V = T[L];
|
|
7750
|
+
if (!Array.isArray(V)) {
|
|
7751
|
+
var q = Q(V);
|
|
7752
|
+
return new h("Invalid " + k + " `" + R + "` of type " + ("`" + q + "` supplied to `" + W + "`, expected an array."));
|
|
7751
7753
|
}
|
|
7752
|
-
for (var ie = 0; ie <
|
|
7753
|
-
var le = N(
|
|
7754
|
+
for (var ie = 0; ie < V.length; ie++) {
|
|
7755
|
+
var le = N(V, ie, W, k, R + "[" + ie + "]", n);
|
|
7754
7756
|
if (le instanceof Error)
|
|
7755
7757
|
return le;
|
|
7756
7758
|
}
|
|
@@ -7759,64 +7761,64 @@ function v6() {
|
|
|
7759
7761
|
return v(C);
|
|
7760
7762
|
}
|
|
7761
7763
|
function x() {
|
|
7762
|
-
function N(C,
|
|
7763
|
-
var R = C[
|
|
7764
|
+
function N(C, T, L, W, k) {
|
|
7765
|
+
var R = C[T];
|
|
7764
7766
|
if (!d(R)) {
|
|
7765
|
-
var
|
|
7766
|
-
return new h("Invalid " + W + " `" +
|
|
7767
|
+
var V = Q(R);
|
|
7768
|
+
return new h("Invalid " + W + " `" + k + "` of type " + ("`" + V + "` supplied to `" + L + "`, expected a single ReactElement."));
|
|
7767
7769
|
}
|
|
7768
7770
|
return null;
|
|
7769
7771
|
}
|
|
7770
7772
|
return v(N);
|
|
7771
7773
|
}
|
|
7772
7774
|
function y() {
|
|
7773
|
-
function N(C,
|
|
7774
|
-
var R = C[
|
|
7775
|
+
function N(C, T, L, W, k) {
|
|
7776
|
+
var R = C[T];
|
|
7775
7777
|
if (!e.isValidElementType(R)) {
|
|
7776
|
-
var
|
|
7777
|
-
return new h("Invalid " + W + " `" +
|
|
7778
|
+
var V = Q(R);
|
|
7779
|
+
return new h("Invalid " + W + " `" + k + "` of type " + ("`" + V + "` supplied to `" + L + "`, expected a single ReactElement type."));
|
|
7778
7780
|
}
|
|
7779
7781
|
return null;
|
|
7780
7782
|
}
|
|
7781
7783
|
return v(N);
|
|
7782
7784
|
}
|
|
7783
|
-
function
|
|
7784
|
-
function C(
|
|
7785
|
-
if (!(
|
|
7786
|
-
var
|
|
7787
|
-
return new h("Invalid " +
|
|
7785
|
+
function O(N) {
|
|
7786
|
+
function C(T, L, W, k, R) {
|
|
7787
|
+
if (!(T[L] instanceof N)) {
|
|
7788
|
+
var V = N.name || u, q = J(T[L]);
|
|
7789
|
+
return new h("Invalid " + k + " `" + R + "` of type " + ("`" + q + "` supplied to `" + W + "`, expected ") + ("instance of `" + V + "`."));
|
|
7788
7790
|
}
|
|
7789
7791
|
return null;
|
|
7790
7792
|
}
|
|
7791
7793
|
return v(C);
|
|
7792
7794
|
}
|
|
7793
|
-
function
|
|
7795
|
+
function D(N) {
|
|
7794
7796
|
if (!Array.isArray(N))
|
|
7795
7797
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? o(
|
|
7796
7798
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
7797
7799
|
) : o("Invalid argument supplied to oneOf, expected an array.")), a;
|
|
7798
|
-
function C(
|
|
7799
|
-
for (var
|
|
7800
|
-
if (c(
|
|
7800
|
+
function C(T, L, W, k, R) {
|
|
7801
|
+
for (var V = T[L], q = 0; q < N.length; q++)
|
|
7802
|
+
if (c(V, N[q]))
|
|
7801
7803
|
return null;
|
|
7802
|
-
var ie = JSON.stringify(N, function(ce,
|
|
7803
|
-
var ae = re(
|
|
7804
|
-
return ae === "symbol" ? String(
|
|
7804
|
+
var ie = JSON.stringify(N, function(ce, P) {
|
|
7805
|
+
var ae = re(P);
|
|
7806
|
+
return ae === "symbol" ? String(P) : P;
|
|
7805
7807
|
});
|
|
7806
|
-
return new h("Invalid " +
|
|
7808
|
+
return new h("Invalid " + k + " `" + R + "` of value `" + String(V) + "` " + ("supplied to `" + W + "`, expected one of " + ie + "."));
|
|
7807
7809
|
}
|
|
7808
7810
|
return v(C);
|
|
7809
7811
|
}
|
|
7810
|
-
function
|
|
7811
|
-
function C(
|
|
7812
|
+
function K(N) {
|
|
7813
|
+
function C(T, L, W, k, R) {
|
|
7812
7814
|
if (typeof N != "function")
|
|
7813
7815
|
return new h("Property `" + R + "` of component `" + W + "` has invalid PropType notation inside objectOf.");
|
|
7814
|
-
var
|
|
7815
|
-
if (
|
|
7816
|
-
return new h("Invalid " +
|
|
7817
|
-
for (var ie in
|
|
7818
|
-
if (r(
|
|
7819
|
-
var le = N(
|
|
7816
|
+
var V = T[L], q = Q(V);
|
|
7817
|
+
if (q !== "object")
|
|
7818
|
+
return new h("Invalid " + k + " `" + R + "` of type " + ("`" + q + "` supplied to `" + W + "`, expected an object."));
|
|
7819
|
+
for (var ie in V)
|
|
7820
|
+
if (r(V, ie)) {
|
|
7821
|
+
var le = N(V, ie, W, k, R + "." + ie, n);
|
|
7820
7822
|
if (le instanceof Error)
|
|
7821
7823
|
return le;
|
|
7822
7824
|
}
|
|
@@ -7828,45 +7830,45 @@ function v6() {
|
|
|
7828
7830
|
if (!Array.isArray(N))
|
|
7829
7831
|
return process.env.NODE_ENV !== "production" && o("Invalid argument supplied to oneOfType, expected an instance of array."), a;
|
|
7830
7832
|
for (var C = 0; C < N.length; C++) {
|
|
7831
|
-
var
|
|
7832
|
-
if (typeof
|
|
7833
|
+
var T = N[C];
|
|
7834
|
+
if (typeof T != "function")
|
|
7833
7835
|
return o(
|
|
7834
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " +
|
|
7836
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ee(T) + " at index " + C + "."
|
|
7835
7837
|
), a;
|
|
7836
7838
|
}
|
|
7837
|
-
function
|
|
7839
|
+
function L(W, k, R, V, q) {
|
|
7838
7840
|
for (var ie = [], le = 0; le < N.length; le++) {
|
|
7839
|
-
var ce = N[le],
|
|
7840
|
-
if (
|
|
7841
|
+
var ce = N[le], P = ce(W, k, R, V, q, n);
|
|
7842
|
+
if (P == null)
|
|
7841
7843
|
return null;
|
|
7842
|
-
|
|
7844
|
+
P.data && r(P.data, "expectedType") && ie.push(P.data.expectedType);
|
|
7843
7845
|
}
|
|
7844
7846
|
var ae = ie.length > 0 ? ", expected one of type [" + ie.join(", ") + "]" : "";
|
|
7845
|
-
return new h("Invalid " +
|
|
7847
|
+
return new h("Invalid " + V + " `" + q + "` supplied to " + ("`" + R + "`" + ae + "."));
|
|
7846
7848
|
}
|
|
7847
|
-
return v(
|
|
7849
|
+
return v(L);
|
|
7848
7850
|
}
|
|
7849
7851
|
function _() {
|
|
7850
|
-
function N(C,
|
|
7851
|
-
return
|
|
7852
|
+
function N(C, T, L, W, k) {
|
|
7853
|
+
return Z(C[T]) ? null : new h("Invalid " + W + " `" + k + "` supplied to " + ("`" + L + "`, expected a ReactNode."));
|
|
7852
7854
|
}
|
|
7853
7855
|
return v(N);
|
|
7854
7856
|
}
|
|
7855
|
-
function
|
|
7857
|
+
function U(N, C, T, L, W) {
|
|
7856
7858
|
return new h(
|
|
7857
|
-
(N || "React class") + ": " + C + " type `" +
|
|
7859
|
+
(N || "React class") + ": " + C + " type `" + T + "." + L + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + W + "`."
|
|
7858
7860
|
);
|
|
7859
7861
|
}
|
|
7860
|
-
function
|
|
7861
|
-
function C(
|
|
7862
|
-
var
|
|
7863
|
-
if (
|
|
7864
|
-
return new h("Invalid " +
|
|
7862
|
+
function j(N) {
|
|
7863
|
+
function C(T, L, W, k, R) {
|
|
7864
|
+
var V = T[L], q = Q(V);
|
|
7865
|
+
if (q !== "object")
|
|
7866
|
+
return new h("Invalid " + k + " `" + R + "` of type `" + q + "` " + ("supplied to `" + W + "`, expected `object`."));
|
|
7865
7867
|
for (var ie in N) {
|
|
7866
7868
|
var le = N[ie];
|
|
7867
7869
|
if (typeof le != "function")
|
|
7868
|
-
return
|
|
7869
|
-
var ce = le(
|
|
7870
|
+
return U(W, k, R, ie, re(le));
|
|
7871
|
+
var ce = le(V, ie, W, k, R + "." + ie, n);
|
|
7870
7872
|
if (ce)
|
|
7871
7873
|
return ce;
|
|
7872
7874
|
}
|
|
@@ -7874,30 +7876,30 @@ function v6() {
|
|
|
7874
7876
|
}
|
|
7875
7877
|
return v(C);
|
|
7876
7878
|
}
|
|
7877
|
-
function
|
|
7878
|
-
function C(
|
|
7879
|
-
var
|
|
7880
|
-
if (
|
|
7881
|
-
return new h("Invalid " +
|
|
7882
|
-
var ie = t({},
|
|
7879
|
+
function z(N) {
|
|
7880
|
+
function C(T, L, W, k, R) {
|
|
7881
|
+
var V = T[L], q = Q(V);
|
|
7882
|
+
if (q !== "object")
|
|
7883
|
+
return new h("Invalid " + k + " `" + R + "` of type `" + q + "` " + ("supplied to `" + W + "`, expected `object`."));
|
|
7884
|
+
var ie = t({}, T[L], N);
|
|
7883
7885
|
for (var le in ie) {
|
|
7884
7886
|
var ce = N[le];
|
|
7885
7887
|
if (r(N, le) && typeof ce != "function")
|
|
7886
|
-
return
|
|
7888
|
+
return U(W, k, R, le, re(ce));
|
|
7887
7889
|
if (!ce)
|
|
7888
7890
|
return new h(
|
|
7889
|
-
"Invalid " +
|
|
7891
|
+
"Invalid " + k + " `" + R + "` key `" + le + "` supplied to `" + W + "`.\nBad object: " + JSON.stringify(T[L], null, " ") + `
|
|
7890
7892
|
Valid keys: ` + JSON.stringify(Object.keys(N), null, " ")
|
|
7891
7893
|
);
|
|
7892
|
-
var
|
|
7893
|
-
if (
|
|
7894
|
-
return
|
|
7894
|
+
var P = ce(V, le, W, k, R + "." + le, n);
|
|
7895
|
+
if (P)
|
|
7896
|
+
return P;
|
|
7895
7897
|
}
|
|
7896
7898
|
return null;
|
|
7897
7899
|
}
|
|
7898
7900
|
return v(C);
|
|
7899
7901
|
}
|
|
7900
|
-
function
|
|
7902
|
+
function Z(N) {
|
|
7901
7903
|
switch (typeof N) {
|
|
7902
7904
|
case "number":
|
|
7903
7905
|
case "string":
|
|
@@ -7907,20 +7909,20 @@ Valid keys: ` + JSON.stringify(Object.keys(N), null, " ")
|
|
|
7907
7909
|
return !N;
|
|
7908
7910
|
case "object":
|
|
7909
7911
|
if (Array.isArray(N))
|
|
7910
|
-
return N.every(
|
|
7912
|
+
return N.every(Z);
|
|
7911
7913
|
if (N === null || d(N))
|
|
7912
7914
|
return !0;
|
|
7913
7915
|
var C = m(N);
|
|
7914
7916
|
if (C) {
|
|
7915
|
-
var
|
|
7917
|
+
var T = C.call(N), L;
|
|
7916
7918
|
if (C !== N.entries) {
|
|
7917
|
-
for (; !(
|
|
7918
|
-
if (!
|
|
7919
|
+
for (; !(L = T.next()).done; )
|
|
7920
|
+
if (!Z(L.value))
|
|
7919
7921
|
return !1;
|
|
7920
7922
|
} else
|
|
7921
|
-
for (; !(
|
|
7922
|
-
var W =
|
|
7923
|
-
if (W && !
|
|
7923
|
+
for (; !(L = T.next()).done; ) {
|
|
7924
|
+
var W = L.value;
|
|
7925
|
+
if (W && !Z(W[1]))
|
|
7924
7926
|
return !1;
|
|
7925
7927
|
}
|
|
7926
7928
|
} else
|
|
@@ -7933,14 +7935,14 @@ Valid keys: ` + JSON.stringify(Object.keys(N), null, " ")
|
|
|
7933
7935
|
function H(N, C) {
|
|
7934
7936
|
return N === "symbol" ? !0 : C ? C["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && C instanceof Symbol : !1;
|
|
7935
7937
|
}
|
|
7936
|
-
function
|
|
7938
|
+
function Q(N) {
|
|
7937
7939
|
var C = typeof N;
|
|
7938
7940
|
return Array.isArray(N) ? "array" : N instanceof RegExp ? "object" : H(C, N) ? "symbol" : C;
|
|
7939
7941
|
}
|
|
7940
7942
|
function re(N) {
|
|
7941
7943
|
if (typeof N > "u" || N === null)
|
|
7942
7944
|
return "" + N;
|
|
7943
|
-
var C =
|
|
7945
|
+
var C = Q(N);
|
|
7944
7946
|
if (C === "object") {
|
|
7945
7947
|
if (N instanceof Date)
|
|
7946
7948
|
return "date";
|
|
@@ -7949,7 +7951,7 @@ Valid keys: ` + JSON.stringify(Object.keys(N), null, " ")
|
|
|
7949
7951
|
}
|
|
7950
7952
|
return C;
|
|
7951
7953
|
}
|
|
7952
|
-
function
|
|
7954
|
+
function ee(N) {
|
|
7953
7955
|
var C = re(N);
|
|
7954
7956
|
switch (C) {
|
|
7955
7957
|
case "array":
|
|
@@ -7963,7 +7965,7 @@ Valid keys: ` + JSON.stringify(Object.keys(N), null, " ")
|
|
|
7963
7965
|
return C;
|
|
7964
7966
|
}
|
|
7965
7967
|
}
|
|
7966
|
-
function
|
|
7968
|
+
function J(N) {
|
|
7967
7969
|
return !N.constructor || !N.constructor.name ? u : N.constructor.name;
|
|
7968
7970
|
}
|
|
7969
7971
|
return f.checkPropTypes = i, f.resetWarningCache = i.resetWarningCache, f.PropTypes = f, f;
|
|
@@ -8028,7 +8030,7 @@ function b6() {
|
|
|
8028
8030
|
return _r.exports;
|
|
8029
8031
|
}
|
|
8030
8032
|
var $6 = /* @__PURE__ */ b6();
|
|
8031
|
-
const
|
|
8033
|
+
const Y = /* @__PURE__ */ Hl($6);
|
|
8032
8034
|
var ji = { exports: {} };
|
|
8033
8035
|
/*!
|
|
8034
8036
|
Copyright (c) 2018 Jed Watson.
|
|
@@ -8322,7 +8324,7 @@ function U6(e, t) {
|
|
|
8322
8324
|
return n;
|
|
8323
8325
|
}
|
|
8324
8326
|
function H6(e) {
|
|
8325
|
-
var t = e.ref, n = e.parse, r = e.format, i = e.value, o = e.defaultValue, a = e.controlled, d = a === void 0 ? !0 : a, l = e.onChange, s = e.onKeyDown, p = V6(e, B6), m =
|
|
8327
|
+
var t = e.ref, n = e.parse, r = e.format, i = e.value, o = e.defaultValue, a = e.controlled, d = a === void 0 ? !0 : a, l = e.onChange, s = e.onKeyDown, p = V6(e, B6), m = X(), u = pe(function(v) {
|
|
8326
8328
|
m.current = v, t && (typeof t == "function" ? t(v) : t.current = v);
|
|
8327
8329
|
}, [t]), f = pe(function(v) {
|
|
8328
8330
|
return L6(v, m.current, n, r, l);
|
|
@@ -8397,31 +8399,31 @@ function qr(e, t) {
|
|
|
8397
8399
|
onKeyDown: p,
|
|
8398
8400
|
type: u
|
|
8399
8401
|
}, f));
|
|
8400
|
-
return /* @__PURE__ */
|
|
8402
|
+
return /* @__PURE__ */ M.createElement(r, c);
|
|
8401
8403
|
}
|
|
8402
|
-
qr = /* @__PURE__ */
|
|
8404
|
+
qr = /* @__PURE__ */ M.forwardRef(qr);
|
|
8403
8405
|
qr.propTypes = {
|
|
8404
8406
|
// Parses a single characher of `<input/>` text.
|
|
8405
|
-
parse:
|
|
8407
|
+
parse: Y.func.isRequired,
|
|
8406
8408
|
// Formats `value` into `<input/>` text.
|
|
8407
|
-
format:
|
|
8409
|
+
format: Y.func.isRequired,
|
|
8408
8410
|
// Renders `<input/>` by default.
|
|
8409
|
-
inputComponent:
|
|
8411
|
+
inputComponent: Y.elementType,
|
|
8410
8412
|
// `<input/>` `type` attribute.
|
|
8411
|
-
type:
|
|
8413
|
+
type: Y.string,
|
|
8412
8414
|
// Is parsed from <input/> text.
|
|
8413
|
-
value:
|
|
8415
|
+
value: Y.string,
|
|
8414
8416
|
// An initial value for an "uncontrolled" <input/>.
|
|
8415
|
-
defaultValue:
|
|
8417
|
+
defaultValue: Y.string,
|
|
8416
8418
|
// This handler is called each time `<input/>` text is changed.
|
|
8417
|
-
onChange:
|
|
8419
|
+
onChange: Y.func,
|
|
8418
8420
|
// Whether this input should be "controlled" or "uncontrolled".
|
|
8419
8421
|
// The default value is `true` meaning "uncontrolled".
|
|
8420
|
-
controlled:
|
|
8422
|
+
controlled: Y.bool,
|
|
8421
8423
|
// Passthrough
|
|
8422
|
-
onKeyDown:
|
|
8423
|
-
onCut:
|
|
8424
|
-
onPaste:
|
|
8424
|
+
onKeyDown: Y.func,
|
|
8425
|
+
onCut: Y.func,
|
|
8426
|
+
onPaste: Y.func
|
|
8425
8427
|
};
|
|
8426
8428
|
function Qd(e, t) {
|
|
8427
8429
|
e = e.split("-"), t = t.split("-");
|
|
@@ -11643,14 +11645,14 @@ function E7(e) {
|
|
|
11643
11645
|
onKeyDown: i,
|
|
11644
11646
|
inputFormat: a
|
|
11645
11647
|
});
|
|
11646
|
-
return /* @__PURE__ */
|
|
11648
|
+
return /* @__PURE__ */ M.createElement(qr, $o({}, s, {
|
|
11647
11649
|
ref: r,
|
|
11648
11650
|
parse: g7,
|
|
11649
11651
|
format: p,
|
|
11650
11652
|
onKeyDown: m
|
|
11651
11653
|
}));
|
|
11652
11654
|
}
|
|
11653
|
-
return t = /* @__PURE__ */
|
|
11655
|
+
return t = /* @__PURE__ */ M.forwardRef(t), t.propTypes = {
|
|
11654
11656
|
/**
|
|
11655
11657
|
* The parsed phone number.
|
|
11656
11658
|
* "Parsed" not in a sense of "E.164"
|
|
@@ -11658,17 +11660,17 @@ function E7(e) {
|
|
|
11658
11660
|
* digits and possibly a leading plus character".
|
|
11659
11661
|
* Examples: `""`, `"+"`, `"+123"`, `"123"`.
|
|
11660
11662
|
*/
|
|
11661
|
-
value:
|
|
11663
|
+
value: Y.string.isRequired,
|
|
11662
11664
|
/**
|
|
11663
11665
|
* A function of `value: string`.
|
|
11664
11666
|
* Updates the `value` property.
|
|
11665
11667
|
*/
|
|
11666
|
-
onChange:
|
|
11668
|
+
onChange: Y.func.isRequired,
|
|
11667
11669
|
/**
|
|
11668
11670
|
* A function of `event: Event`.
|
|
11669
11671
|
* Handles `keydown` events.
|
|
11670
11672
|
*/
|
|
11671
|
-
onKeyDown:
|
|
11673
|
+
onKeyDown: Y.func,
|
|
11672
11674
|
/**
|
|
11673
11675
|
* A two-letter country code for formatting `value`
|
|
11674
11676
|
* as a national phone number (e.g. `(800) 555 35 35`).
|
|
@@ -11680,15 +11682,15 @@ function E7(e) {
|
|
|
11680
11682
|
* because it only applies when the user inputs a phone number in a national format
|
|
11681
11683
|
* and is completely ignored when the user inputs a phone number in an international format.
|
|
11682
11684
|
*/
|
|
11683
|
-
country:
|
|
11685
|
+
country: Y.string,
|
|
11684
11686
|
/**
|
|
11685
11687
|
* The format that the input field value is being input/output in.
|
|
11686
11688
|
*/
|
|
11687
|
-
inputFormat:
|
|
11689
|
+
inputFormat: Y.oneOf(["INTERNATIONAL", "NATIONAL_PART_OF_INTERNATIONAL", "NATIONAL", "INTERNATIONAL_OR_NATIONAL"]).isRequired,
|
|
11688
11690
|
/**
|
|
11689
11691
|
* `libphonenumber-js` metadata.
|
|
11690
11692
|
*/
|
|
11691
|
-
metadata:
|
|
11693
|
+
metadata: Y.object
|
|
11692
11694
|
}, t;
|
|
11693
11695
|
}
|
|
11694
11696
|
const S7 = E7();
|
|
@@ -11739,14 +11741,14 @@ function N7(e) {
|
|
|
11739
11741
|
onKeyDown: a,
|
|
11740
11742
|
inputFormat: l
|
|
11741
11743
|
});
|
|
11742
|
-
return /* @__PURE__ */
|
|
11744
|
+
return /* @__PURE__ */ M.createElement(u, yo({}, f, {
|
|
11743
11745
|
ref: r,
|
|
11744
11746
|
value: _l(c, i, d, p),
|
|
11745
11747
|
onChange: h,
|
|
11746
11748
|
onKeyDown: v
|
|
11747
11749
|
}));
|
|
11748
11750
|
}
|
|
11749
|
-
return t = /* @__PURE__ */
|
|
11751
|
+
return t = /* @__PURE__ */ M.forwardRef(t), t.propTypes = {
|
|
11750
11752
|
/**
|
|
11751
11753
|
* The parsed phone number.
|
|
11752
11754
|
* "Parsed" not in a sense of "E.164"
|
|
@@ -11754,17 +11756,17 @@ function N7(e) {
|
|
|
11754
11756
|
* digits and possibly a leading plus character".
|
|
11755
11757
|
* Examples: `""`, `"+"`, `"+123"`, `"123"`.
|
|
11756
11758
|
*/
|
|
11757
|
-
value:
|
|
11759
|
+
value: Y.string.isRequired,
|
|
11758
11760
|
/**
|
|
11759
11761
|
* A function of `value: string`.
|
|
11760
11762
|
* Updates the `value` property.
|
|
11761
11763
|
*/
|
|
11762
|
-
onChange:
|
|
11764
|
+
onChange: Y.func.isRequired,
|
|
11763
11765
|
/**
|
|
11764
11766
|
* A function of `event: Event`.
|
|
11765
11767
|
* Handles `keydown` events.
|
|
11766
11768
|
*/
|
|
11767
|
-
onKeyDown:
|
|
11769
|
+
onKeyDown: Y.func,
|
|
11768
11770
|
/**
|
|
11769
11771
|
* A two-letter country code for formatting `value`
|
|
11770
11772
|
* as a national phone number (e.g. `(800) 555 35 35`).
|
|
@@ -11776,19 +11778,19 @@ function N7(e) {
|
|
|
11776
11778
|
* because it only applies when the user inputs a phone number in a national format
|
|
11777
11779
|
* and is completely ignored when the user inputs a phone number in an international format.
|
|
11778
11780
|
*/
|
|
11779
|
-
country:
|
|
11781
|
+
country: Y.string,
|
|
11780
11782
|
/**
|
|
11781
11783
|
* The format that the input field value is being input/output in.
|
|
11782
11784
|
*/
|
|
11783
|
-
inputFormat:
|
|
11785
|
+
inputFormat: Y.oneOf(["INTERNATIONAL", "NATIONAL_PART_OF_INTERNATIONAL", "NATIONAL", "INTERNATIONAL_OR_NATIONAL"]).isRequired,
|
|
11784
11786
|
/**
|
|
11785
11787
|
* `libphonenumber-js` metadata.
|
|
11786
11788
|
*/
|
|
11787
|
-
metadata:
|
|
11789
|
+
metadata: Y.object,
|
|
11788
11790
|
/**
|
|
11789
11791
|
* The `<input/>` component.
|
|
11790
11792
|
*/
|
|
11791
|
-
inputComponent:
|
|
11793
|
+
inputComponent: Y.elementType
|
|
11792
11794
|
}, t;
|
|
11793
11795
|
}
|
|
11794
11796
|
const I7 = N7();
|
|
@@ -11862,14 +11864,14 @@ function d0(e) {
|
|
|
11862
11864
|
}, [n]);
|
|
11863
11865
|
return _e(function() {
|
|
11864
11866
|
return s0(r, t);
|
|
11865
|
-
}, [r, t]), /* @__PURE__ */
|
|
11867
|
+
}, [r, t]), /* @__PURE__ */ M.createElement("select", Zr({}, a, {
|
|
11866
11868
|
disabled: i || o,
|
|
11867
11869
|
readOnly: o,
|
|
11868
11870
|
value: t || "ZZ",
|
|
11869
11871
|
onChange: d
|
|
11870
11872
|
}), r.map(function(l) {
|
|
11871
11873
|
var s = l.value, p = l.label, m = l.divider;
|
|
11872
|
-
return /* @__PURE__ */
|
|
11874
|
+
return /* @__PURE__ */ M.createElement("option", {
|
|
11873
11875
|
key: m ? "|" : s || "ZZ",
|
|
11874
11876
|
value: m ? "|" : s || "ZZ",
|
|
11875
11877
|
disabled: !!m,
|
|
@@ -11882,25 +11884,25 @@ d0.propTypes = {
|
|
|
11882
11884
|
* A two-letter country code.
|
|
11883
11885
|
* Example: "US", "RU", etc.
|
|
11884
11886
|
*/
|
|
11885
|
-
value:
|
|
11887
|
+
value: Y.string,
|
|
11886
11888
|
/**
|
|
11887
11889
|
* A function of `value: string`.
|
|
11888
11890
|
* Updates the `value` property.
|
|
11889
11891
|
*/
|
|
11890
|
-
onChange:
|
|
11892
|
+
onChange: Y.func.isRequired,
|
|
11891
11893
|
// `<select/>` options.
|
|
11892
|
-
options:
|
|
11893
|
-
value:
|
|
11894
|
-
label:
|
|
11895
|
-
divider:
|
|
11894
|
+
options: Y.arrayOf(Y.shape({
|
|
11895
|
+
value: Y.string,
|
|
11896
|
+
label: Y.string,
|
|
11897
|
+
divider: Y.bool
|
|
11896
11898
|
})).isRequired,
|
|
11897
11899
|
// `readonly` attribute doesn't work on a `<select/>`.
|
|
11898
11900
|
// https://github.com/catamphetamine/react-phone-number-input/issues/419#issuecomment-1764384480
|
|
11899
11901
|
// https://www.delftstack.com/howto/html/html-select-readonly/
|
|
11900
11902
|
// To work around that, if `readOnly: true` property is passed
|
|
11901
11903
|
// to this component, it behaves analogous to `disabled: true`.
|
|
11902
|
-
disabled:
|
|
11903
|
-
readOnly:
|
|
11904
|
+
disabled: Y.bool,
|
|
11905
|
+
readOnly: Y.bool
|
|
11904
11906
|
};
|
|
11905
11907
|
var L7 = {
|
|
11906
11908
|
fontSize: "1px",
|
|
@@ -11913,31 +11915,31 @@ function l0(e) {
|
|
|
11913
11915
|
var o = e.arrowComponent, a = o === void 0 ? D7 : o, d = e.unicodeFlags, l = a0(e, R7), s = _e(function() {
|
|
11914
11916
|
return s0(n, t);
|
|
11915
11917
|
}, [n, t]);
|
|
11916
|
-
return /* @__PURE__ */
|
|
11918
|
+
return /* @__PURE__ */ M.createElement("div", {
|
|
11917
11919
|
className: "PhoneInputCountry"
|
|
11918
|
-
}, /* @__PURE__ */
|
|
11920
|
+
}, /* @__PURE__ */ M.createElement(d0, Zr({}, l, {
|
|
11919
11921
|
value: t,
|
|
11920
11922
|
options: n,
|
|
11921
11923
|
className: zr("PhoneInputCountrySelect", r)
|
|
11922
|
-
})), s && (d && t ? /* @__PURE__ */
|
|
11924
|
+
})), s && (d && t ? /* @__PURE__ */ M.createElement("div", {
|
|
11923
11925
|
className: "PhoneInputCountryIconUnicode"
|
|
11924
|
-
}, _7(t)) : /* @__PURE__ */
|
|
11926
|
+
}, _7(t)) : /* @__PURE__ */ M.createElement(i, {
|
|
11925
11927
|
"aria-hidden": !0,
|
|
11926
11928
|
country: t,
|
|
11927
11929
|
label: s.label,
|
|
11928
11930
|
aspectRatio: d ? 1 : void 0
|
|
11929
|
-
})), /* @__PURE__ */
|
|
11931
|
+
})), /* @__PURE__ */ M.createElement(a, null));
|
|
11930
11932
|
}
|
|
11931
11933
|
l0.propTypes = {
|
|
11932
11934
|
// Country flag component.
|
|
11933
|
-
iconComponent:
|
|
11935
|
+
iconComponent: Y.elementType,
|
|
11934
11936
|
// Select arrow component.
|
|
11935
|
-
arrowComponent:
|
|
11937
|
+
arrowComponent: Y.elementType,
|
|
11936
11938
|
// Set to `true` to render Unicode flag icons instead of SVG images.
|
|
11937
|
-
unicodeFlags:
|
|
11939
|
+
unicodeFlags: Y.bool
|
|
11938
11940
|
};
|
|
11939
11941
|
function D7() {
|
|
11940
|
-
return /* @__PURE__ */
|
|
11942
|
+
return /* @__PURE__ */ M.createElement("div", {
|
|
11941
11943
|
className: "PhoneInputCountrySelectArrow"
|
|
11942
11944
|
});
|
|
11943
11945
|
}
|
|
@@ -11983,7 +11985,7 @@ function da(e) {
|
|
|
11983
11985
|
var t = e.country, n = e.countryName, r = e.flags, i = e.flagUrl, o = W7(e, B7);
|
|
11984
11986
|
return r && r[t] ? r[t]({
|
|
11985
11987
|
title: n
|
|
11986
|
-
}) : /* @__PURE__ */
|
|
11988
|
+
}) : /* @__PURE__ */ M.createElement("img", wo({}, o, {
|
|
11987
11989
|
alt: n,
|
|
11988
11990
|
role: n ? void 0 : "presentation",
|
|
11989
11991
|
src: i.replace("{XX}", t).replace("{xx}", t.toLowerCase())
|
|
@@ -11992,9 +11994,9 @@ function da(e) {
|
|
|
11992
11994
|
da.propTypes = {
|
|
11993
11995
|
// The country to be selected by default.
|
|
11994
11996
|
// Two-letter country code ("ISO 3166-1 alpha-2").
|
|
11995
|
-
country:
|
|
11997
|
+
country: Y.string.isRequired,
|
|
11996
11998
|
// Will be HTML `title` attribute of the `<img/>`.
|
|
11997
|
-
countryName:
|
|
11999
|
+
countryName: Y.string.isRequired,
|
|
11998
12000
|
// Country flag icon components.
|
|
11999
12001
|
// By default flag icons are inserted as `<img/>`s
|
|
12000
12002
|
// with their `src` pointed to `country-flag-icons` gitlab pages website.
|
|
@@ -12002,10 +12004,10 @@ da.propTypes = {
|
|
|
12002
12004
|
// where having a large (3 megabyte) `<svg/>` flags
|
|
12003
12005
|
// bundle is more appropriate.
|
|
12004
12006
|
// `import flags from 'react-phone-number-input/flags'`.
|
|
12005
|
-
flags:
|
|
12007
|
+
flags: Y.objectOf(Y.elementType),
|
|
12006
12008
|
// A URL for a country flag icon.
|
|
12007
12009
|
// By default it points to `country-flag-icons` gitlab pages website.
|
|
12008
|
-
flagUrl:
|
|
12010
|
+
flagUrl: Y.string.isRequired
|
|
12009
12011
|
};
|
|
12010
12012
|
var U7 = ["aspectRatio"], H7 = ["title"], G7 = ["title"];
|
|
12011
12013
|
function Jr() {
|
|
@@ -12037,45 +12039,45 @@ function K7(e, t) {
|
|
|
12037
12039
|
}
|
|
12038
12040
|
function gi(e) {
|
|
12039
12041
|
var t = e.aspectRatio, n = la(e, U7);
|
|
12040
|
-
return t === 1 ? /* @__PURE__ */
|
|
12042
|
+
return t === 1 ? /* @__PURE__ */ M.createElement(c0, n) : /* @__PURE__ */ M.createElement(u0, n);
|
|
12041
12043
|
}
|
|
12042
12044
|
gi.propTypes = {
|
|
12043
|
-
title:
|
|
12044
|
-
aspectRatio:
|
|
12045
|
+
title: Y.string.isRequired,
|
|
12046
|
+
aspectRatio: Y.number
|
|
12045
12047
|
};
|
|
12046
12048
|
function u0(e) {
|
|
12047
12049
|
var t = e.title, n = la(e, H7);
|
|
12048
|
-
return /* @__PURE__ */
|
|
12050
|
+
return /* @__PURE__ */ M.createElement("svg", Jr({}, n, {
|
|
12049
12051
|
xmlns: "http://www.w3.org/2000/svg",
|
|
12050
12052
|
viewBox: "0 0 75 50"
|
|
12051
|
-
}), /* @__PURE__ */
|
|
12053
|
+
}), /* @__PURE__ */ M.createElement("title", null, t), /* @__PURE__ */ M.createElement("g", {
|
|
12052
12054
|
className: "PhoneInputInternationalIconGlobe",
|
|
12053
12055
|
stroke: "currentColor",
|
|
12054
12056
|
fill: "none",
|
|
12055
12057
|
strokeWidth: "2",
|
|
12056
12058
|
strokeMiterlimit: "10"
|
|
12057
|
-
}, /* @__PURE__ */
|
|
12059
|
+
}, /* @__PURE__ */ M.createElement("path", {
|
|
12058
12060
|
strokeLinecap: "round",
|
|
12059
12061
|
d: "M47.2,36.1C48.1,36,49,36,50,36c7.4,0,14,1.7,18.5,4.3"
|
|
12060
|
-
}), /* @__PURE__ */
|
|
12062
|
+
}), /* @__PURE__ */ M.createElement("path", {
|
|
12061
12063
|
d: "M68.6,9.6C64.2,12.3,57.5,14,50,14c-7.4,0-14-1.7-18.5-4.3"
|
|
12062
|
-
}), /* @__PURE__ */
|
|
12064
|
+
}), /* @__PURE__ */ M.createElement("line", {
|
|
12063
12065
|
x1: "26",
|
|
12064
12066
|
y1: "25",
|
|
12065
12067
|
x2: "74",
|
|
12066
12068
|
y2: "25"
|
|
12067
|
-
}), /* @__PURE__ */
|
|
12069
|
+
}), /* @__PURE__ */ M.createElement("line", {
|
|
12068
12070
|
x1: "50",
|
|
12069
12071
|
y1: "1",
|
|
12070
12072
|
x2: "50",
|
|
12071
12073
|
y2: "49"
|
|
12072
|
-
}), /* @__PURE__ */
|
|
12074
|
+
}), /* @__PURE__ */ M.createElement("path", {
|
|
12073
12075
|
strokeLinecap: "round",
|
|
12074
12076
|
d: "M46.3,48.7c1.2,0.2,2.5,0.3,3.7,0.3c13.3,0,24-10.7,24-24S63.3,1,50,1S26,11.7,26,25c0,2,0.3,3.9,0.7,5.8"
|
|
12075
|
-
}), /* @__PURE__ */
|
|
12077
|
+
}), /* @__PURE__ */ M.createElement("path", {
|
|
12076
12078
|
strokeLinecap: "round",
|
|
12077
12079
|
d: "M46.8,48.2c1,0.6,2.1,0.8,3.2,0.8c6.6,0,12-10.7,12-24S56.6,1,50,1S38,11.7,38,25c0,1.4,0.1,2.7,0.2,4c0,0.1,0,0.2,0,0.2"
|
|
12078
|
-
})), /* @__PURE__ */
|
|
12080
|
+
})), /* @__PURE__ */ M.createElement("path", {
|
|
12079
12081
|
className: "PhoneInputInternationalIconPhone",
|
|
12080
12082
|
stroke: "none",
|
|
12081
12083
|
fill: "currentColor",
|
|
@@ -12083,38 +12085,38 @@ function u0(e) {
|
|
|
12083
12085
|
}));
|
|
12084
12086
|
}
|
|
12085
12087
|
u0.propTypes = {
|
|
12086
|
-
title:
|
|
12088
|
+
title: Y.string.isRequired
|
|
12087
12089
|
};
|
|
12088
12090
|
function c0(e) {
|
|
12089
12091
|
var t = e.title, n = la(e, G7);
|
|
12090
|
-
return /* @__PURE__ */
|
|
12092
|
+
return /* @__PURE__ */ M.createElement("svg", Jr({}, n, {
|
|
12091
12093
|
xmlns: "http://www.w3.org/2000/svg",
|
|
12092
12094
|
viewBox: "0 0 50 50"
|
|
12093
|
-
}), /* @__PURE__ */
|
|
12095
|
+
}), /* @__PURE__ */ M.createElement("title", null, t), /* @__PURE__ */ M.createElement("g", {
|
|
12094
12096
|
className: "PhoneInputInternationalIconGlobe",
|
|
12095
12097
|
stroke: "currentColor",
|
|
12096
12098
|
fill: "none",
|
|
12097
12099
|
strokeWidth: "2",
|
|
12098
12100
|
strokeLinecap: "round"
|
|
12099
|
-
}, /* @__PURE__ */
|
|
12101
|
+
}, /* @__PURE__ */ M.createElement("path", {
|
|
12100
12102
|
d: "M8.45,13A21.44,21.44,0,1,1,37.08,41.56"
|
|
12101
|
-
}), /* @__PURE__ */
|
|
12103
|
+
}), /* @__PURE__ */ M.createElement("path", {
|
|
12102
12104
|
d: "M19.36,35.47a36.9,36.9,0,0,1-2.28-13.24C17.08,10.39,21.88.85,27.8.85s10.72,9.54,10.72,21.38c0,6.48-1.44,12.28-3.71,16.21"
|
|
12103
|
-
}), /* @__PURE__ */
|
|
12105
|
+
}), /* @__PURE__ */ M.createElement("path", {
|
|
12104
12106
|
d: "M17.41,33.4A39,39,0,0,1,27.8,32.06c6.62,0,12.55,1.5,16.48,3.86"
|
|
12105
|
-
}), /* @__PURE__ */
|
|
12107
|
+
}), /* @__PURE__ */ M.createElement("path", {
|
|
12106
12108
|
d: "M44.29,8.53c-3.93,2.37-9.86,3.88-16.49,3.88S15.25,10.9,11.31,8.54"
|
|
12107
|
-
}), /* @__PURE__ */
|
|
12109
|
+
}), /* @__PURE__ */ M.createElement("line", {
|
|
12108
12110
|
x1: "27.8",
|
|
12109
12111
|
y1: "0.85",
|
|
12110
12112
|
x2: "27.8",
|
|
12111
12113
|
y2: "34.61"
|
|
12112
|
-
}), /* @__PURE__ */
|
|
12114
|
+
}), /* @__PURE__ */ M.createElement("line", {
|
|
12113
12115
|
x1: "15.2",
|
|
12114
12116
|
y1: "22.23",
|
|
12115
12117
|
x2: "49.15",
|
|
12116
12118
|
y2: "22.23"
|
|
12117
|
-
})), /* @__PURE__ */
|
|
12119
|
+
})), /* @__PURE__ */ M.createElement("path", {
|
|
12118
12120
|
className: "PhoneInputInternationalIconPhone",
|
|
12119
12121
|
stroke: "transparent",
|
|
12120
12122
|
fill: "currentColor",
|
|
@@ -12122,7 +12124,7 @@ function c0(e) {
|
|
|
12122
12124
|
}));
|
|
12123
12125
|
}
|
|
12124
12126
|
c0.propTypes = {
|
|
12125
|
-
title:
|
|
12127
|
+
title: Y.string.isRequired
|
|
12126
12128
|
};
|
|
12127
12129
|
function z7(e) {
|
|
12128
12130
|
if (e.length < 2 || e[0] !== "+")
|
|
@@ -12240,27 +12242,27 @@ function h0(e) {
|
|
|
12240
12242
|
var t = e.flags, n = e.flagUrl, r = e.flagComponent, i = e.internationalIcon;
|
|
12241
12243
|
function o(a) {
|
|
12242
12244
|
var d = a.country, l = a.label, s = a.aspectRatio, p = Q7(a, J7), m = i === gi ? s : void 0;
|
|
12243
|
-
return /* @__PURE__ */
|
|
12245
|
+
return /* @__PURE__ */ M.createElement("div", xo({}, p, {
|
|
12244
12246
|
className: zr("PhoneInputCountryIcon", {
|
|
12245
12247
|
"PhoneInputCountryIcon--square": m === 1,
|
|
12246
12248
|
"PhoneInputCountryIcon--border": d
|
|
12247
12249
|
})
|
|
12248
|
-
}), d ? /* @__PURE__ */
|
|
12250
|
+
}), d ? /* @__PURE__ */ M.createElement(r, {
|
|
12249
12251
|
country: d,
|
|
12250
12252
|
countryName: l,
|
|
12251
12253
|
flags: t,
|
|
12252
12254
|
flagUrl: n,
|
|
12253
12255
|
className: "PhoneInputCountryIconImg"
|
|
12254
|
-
}) : /* @__PURE__ */
|
|
12256
|
+
}) : /* @__PURE__ */ M.createElement(i, {
|
|
12255
12257
|
title: l,
|
|
12256
12258
|
aspectRatio: m,
|
|
12257
12259
|
className: "PhoneInputCountryIconImg"
|
|
12258
12260
|
}));
|
|
12259
12261
|
}
|
|
12260
12262
|
return o.propTypes = {
|
|
12261
|
-
country:
|
|
12262
|
-
label:
|
|
12263
|
-
aspectRatio:
|
|
12263
|
+
country: Y.string,
|
|
12264
|
+
label: Y.string.isRequired,
|
|
12265
|
+
aspectRatio: Y.number
|
|
12264
12266
|
}, o;
|
|
12265
12267
|
}
|
|
12266
12268
|
h0({
|
|
@@ -12304,10 +12306,10 @@ function rh(e, t) {
|
|
|
12304
12306
|
function ih(e, t) {
|
|
12305
12307
|
typeof e == "function" ? e(t) : e.current = t;
|
|
12306
12308
|
}
|
|
12307
|
-
var m0 =
|
|
12308
|
-
country_calling_codes:
|
|
12309
|
-
countries:
|
|
12310
|
-
}), v0 =
|
|
12309
|
+
var m0 = Y.shape({
|
|
12310
|
+
country_calling_codes: Y.object.isRequired,
|
|
12311
|
+
countries: Y.object.isRequired
|
|
12312
|
+
}), v0 = Y.objectOf(Y.string);
|
|
12311
12313
|
function kt(e, t) {
|
|
12312
12314
|
var n = "+" + Wt(e, t);
|
|
12313
12315
|
return n;
|
|
@@ -12543,8 +12545,8 @@ function gh(e, t) {
|
|
|
12543
12545
|
function bh(e, t, n) {
|
|
12544
12546
|
var r = e.metadata, i = e.countries, o = e.defaultCountry, a = e.value, d = e.reset, l = e.international, s = e.displayInitialValueAsLocalNumber, p = e.initialValueFormat, m = t.defaultCountry, u = t.value, f = t.reset;
|
|
12545
12547
|
n.country;
|
|
12546
|
-
var c = n.value, h = n.hasUserSelectedACountry, v = n.latestCountrySelectedByUser, w = function(
|
|
12547
|
-
return y0(Rr(Rr({},
|
|
12548
|
+
var c = n.value, h = n.hasUserSelectedACountry, v = n.latestCountrySelectedByUser, w = function(U) {
|
|
12549
|
+
return y0(Rr(Rr({}, U), {}, {
|
|
12548
12550
|
international: l,
|
|
12549
12551
|
useNationalFormat: s || p === "national",
|
|
12550
12552
|
metadata: r
|
|
@@ -12590,37 +12592,37 @@ function bh(e, t, n) {
|
|
|
12590
12592
|
};
|
|
12591
12593
|
}
|
|
12592
12594
|
if (!Dl(a, u) && !Dl(a, c)) {
|
|
12593
|
-
var y,
|
|
12595
|
+
var y, O;
|
|
12594
12596
|
if (a) {
|
|
12595
12597
|
a && f0(a), y = g0(a, r);
|
|
12596
|
-
var
|
|
12597
|
-
y && y.country ? (!
|
|
12598
|
+
var D = p0(i, r);
|
|
12599
|
+
y && y.country ? (!D || D.indexOf(y.country) >= 0) && (O = y.country) : (O = b0(a, {
|
|
12598
12600
|
country: void 0,
|
|
12599
|
-
countries:
|
|
12601
|
+
countries: D,
|
|
12600
12602
|
metadata: r
|
|
12601
|
-
}),
|
|
12603
|
+
}), O || o && a.indexOf(kt(o, r)) === 0 && (O = o));
|
|
12602
12604
|
}
|
|
12603
|
-
var
|
|
12605
|
+
var K;
|
|
12604
12606
|
if (a) {
|
|
12605
12607
|
if (v) {
|
|
12606
|
-
var F =
|
|
12607
|
-
F ?
|
|
12608
|
+
var F = O ? v === O : yn(a, v, r);
|
|
12609
|
+
F ? O || (O = v) : K = {
|
|
12608
12610
|
latestCountrySelectedByUser: void 0
|
|
12609
12611
|
};
|
|
12610
12612
|
}
|
|
12611
12613
|
} else
|
|
12612
|
-
|
|
12614
|
+
K = {
|
|
12613
12615
|
latestCountrySelectedByUser: void 0,
|
|
12614
12616
|
hasUserSelectedACountry: void 0
|
|
12615
12617
|
};
|
|
12616
|
-
return Rr(Rr({},
|
|
12618
|
+
return Rr(Rr({}, K), {}, {
|
|
12617
12619
|
phoneDigits: w({
|
|
12618
12620
|
phoneNumber: y,
|
|
12619
12621
|
value: a,
|
|
12620
12622
|
defaultCountry: o
|
|
12621
12623
|
}),
|
|
12622
12624
|
value: a,
|
|
12623
|
-
country: a ?
|
|
12625
|
+
country: a ? O : o
|
|
12624
12626
|
});
|
|
12625
12627
|
}
|
|
12626
12628
|
}
|
|
@@ -12763,8 +12765,8 @@ var Nh = /* @__PURE__ */ (function(e) {
|
|
|
12763
12765
|
var w = r.props.metadata;
|
|
12764
12766
|
return bi(v, w);
|
|
12765
12767
|
}), pt(r, "onCountryChange", function(v) {
|
|
12766
|
-
var w = r.props, E = w.international, b = w.metadata, x = w.onChange, y = w.focusInputOnCountrySelection,
|
|
12767
|
-
prevCountry:
|
|
12768
|
+
var w = r.props, E = w.international, b = w.metadata, x = w.onChange, y = w.focusInputOnCountrySelection, O = r.state, D = O.phoneDigits, K = O.country, F = lh(D, {
|
|
12769
|
+
prevCountry: K,
|
|
12768
12770
|
newCountry: v,
|
|
12769
12771
|
metadata: b,
|
|
12770
12772
|
// Convert the phone number to "national" format
|
|
@@ -12781,12 +12783,12 @@ var Nh = /* @__PURE__ */ (function(e) {
|
|
|
12781
12783
|
x(_);
|
|
12782
12784
|
});
|
|
12783
12785
|
}), pt(r, "onChange", function(v) {
|
|
12784
|
-
var w = r.props, E = w.defaultCountry, b = w.onChange, x = w.addInternationalOption, y = w.international,
|
|
12785
|
-
prevPhoneDigits:
|
|
12786
|
-
country:
|
|
12786
|
+
var w = r.props, E = w.defaultCountry, b = w.onChange, x = w.addInternationalOption, y = w.international, O = w.limitMaxLength, D = w.countryCallingCodeEditable, K = w.metadata, F = r.state, _ = F.countries, U = F.phoneDigits, j = F.country, z = F.latestCountrySelectedByUser, Z = ch(v, {
|
|
12787
|
+
prevPhoneDigits: U,
|
|
12788
|
+
country: j,
|
|
12787
12789
|
countryRequired: !x,
|
|
12788
12790
|
defaultCountry: E,
|
|
12789
|
-
latestCountrySelectedByUser:
|
|
12791
|
+
latestCountrySelectedByUser: z,
|
|
12790
12792
|
getAnyCountry: function() {
|
|
12791
12793
|
return r.getFirstSupportedCountry({
|
|
12792
12794
|
countries: _
|
|
@@ -12794,16 +12796,16 @@ var Nh = /* @__PURE__ */ (function(e) {
|
|
|
12794
12796
|
},
|
|
12795
12797
|
countries: _,
|
|
12796
12798
|
international: y,
|
|
12797
|
-
limitMaxLength:
|
|
12798
|
-
countryCallingCodeEditable:
|
|
12799
|
-
metadata:
|
|
12800
|
-
}), H =
|
|
12799
|
+
limitMaxLength: O,
|
|
12800
|
+
countryCallingCodeEditable: D,
|
|
12801
|
+
metadata: K
|
|
12802
|
+
}), H = Z.phoneDigits, Q = Z.country, re = Z.value, ee = {
|
|
12801
12803
|
phoneDigits: H,
|
|
12802
12804
|
value: re,
|
|
12803
|
-
country:
|
|
12805
|
+
country: Q
|
|
12804
12806
|
};
|
|
12805
|
-
|
|
12806
|
-
|
|
12807
|
+
z && re && !yn(re, z, K) && (ee.latestCountrySelectedByUser = void 0), D === !1 && !re && H === r.state.phoneDigits && (ee.forceRerender = {}), r.setState(
|
|
12808
|
+
ee,
|
|
12807
12809
|
// Update the new `value` property.
|
|
12808
12810
|
// Doing it after the `state` has been updated
|
|
12809
12811
|
// because `onChange()` will trigger `getDerivedStateFromProps()`
|
|
@@ -12841,7 +12843,7 @@ var Nh = /* @__PURE__ */ (function(e) {
|
|
|
12841
12843
|
var E = w.onBlur;
|
|
12842
12844
|
E && E(v);
|
|
12843
12845
|
}
|
|
12844
|
-
}), r.inputRef = /* @__PURE__ */
|
|
12846
|
+
}), r.inputRef = /* @__PURE__ */ M.createRef();
|
|
12845
12847
|
var i = r.props, o = i.value;
|
|
12846
12848
|
i.labels;
|
|
12847
12849
|
var a = i.international, d = i.addInternationalOption, l = i.displayInitialValueAsLocalNumber, s = i.initialValueFormat, p = i.metadata, m = r.props, u = m.defaultCountry, f = m.countries;
|
|
@@ -12951,29 +12953,29 @@ var Nh = /* @__PURE__ */ (function(e) {
|
|
|
12951
12953
|
r.flags, r.flagComponent, r.flagUrl, r.addInternationalOption, r.internationalIcon, r.displayInitialValueAsLocalNumber, r.initialValueFormat, r.onCountryChange, r.limitMaxLength, r.countryCallingCodeEditable, r.focusInputOnCountrySelection, r.reset;
|
|
12952
12954
|
var E = r.metadata, b = r.international;
|
|
12953
12955
|
r.locales;
|
|
12954
|
-
var x = yh(r, $h), y = this.state,
|
|
12955
|
-
countries:
|
|
12956
|
+
var x = yh(r, $h), y = this.state, O = y.country, D = y.countries, K = y.phoneDigits, F = y.isFocused, _ = u ? S7 : I7, U = this.getCountrySelectOptions({
|
|
12957
|
+
countries: D
|
|
12956
12958
|
});
|
|
12957
|
-
return /* @__PURE__ */
|
|
12959
|
+
return /* @__PURE__ */ M.createElement(h, wn({
|
|
12958
12960
|
style: l,
|
|
12959
12961
|
className: zr(s, "PhoneInput", {
|
|
12960
12962
|
"PhoneInput--focus": F,
|
|
12961
12963
|
"PhoneInput--disabled": o,
|
|
12962
12964
|
"PhoneInput--readOnly": a
|
|
12963
12965
|
})
|
|
12964
|
-
}, v), /* @__PURE__ */
|
|
12966
|
+
}, v), /* @__PURE__ */ M.createElement(f, wn({
|
|
12965
12967
|
name: i ? "".concat(i, "Country") : void 0,
|
|
12966
12968
|
"aria-label": w.country
|
|
12967
12969
|
}, c, {
|
|
12968
|
-
value:
|
|
12969
|
-
options:
|
|
12970
|
+
value: O,
|
|
12971
|
+
options: U,
|
|
12970
12972
|
onChange: this.onCountryChange,
|
|
12971
12973
|
onFocus: this.onCountryFocus,
|
|
12972
12974
|
onBlur: this.onCountryBlur,
|
|
12973
12975
|
disabled: o || c && c.disabled,
|
|
12974
12976
|
readOnly: a || c && c.readOnly,
|
|
12975
12977
|
iconComponent: this.CountryIcon
|
|
12976
|
-
})), /* @__PURE__ */
|
|
12978
|
+
})), /* @__PURE__ */ M.createElement(_, wn({
|
|
12977
12979
|
ref: this.setInputRef,
|
|
12978
12980
|
type: "tel",
|
|
12979
12981
|
autoComplete: d
|
|
@@ -12983,8 +12985,8 @@ var Nh = /* @__PURE__ */ (function(e) {
|
|
|
12983
12985
|
withCountryCallingCode: b ? !0 : void 0,
|
|
12984
12986
|
name: i,
|
|
12985
12987
|
metadata: E,
|
|
12986
|
-
country:
|
|
12987
|
-
value:
|
|
12988
|
+
country: O,
|
|
12989
|
+
value: K || "",
|
|
12988
12990
|
onChange: this.onChange,
|
|
12989
12991
|
onFocus: this.onFocus,
|
|
12990
12992
|
onBlur: this.onBlur,
|
|
@@ -13010,8 +13012,8 @@ var Nh = /* @__PURE__ */ (function(e) {
|
|
|
13010
13012
|
}
|
|
13011
13013
|
)
|
|
13012
13014
|
}]);
|
|
13013
|
-
})(
|
|
13014
|
-
return /* @__PURE__ */
|
|
13015
|
+
})(M.PureComponent), E0 = /* @__PURE__ */ M.forwardRef(function(e, t) {
|
|
13016
|
+
return /* @__PURE__ */ M.createElement(Nh, wn({}, Ih(e), {
|
|
13015
13017
|
inputRef: t
|
|
13016
13018
|
}));
|
|
13017
13019
|
});
|
|
@@ -13025,7 +13027,7 @@ E0.propTypes = {
|
|
|
13025
13027
|
*
|
|
13026
13028
|
* Any "falsy" value like `undefined`, `null` or an empty string `""` is treated like "empty".
|
|
13027
13029
|
*/
|
|
13028
|
-
value:
|
|
13030
|
+
value: Y.string,
|
|
13029
13031
|
/**
|
|
13030
13032
|
* A function of `value: string?`.
|
|
13031
13033
|
*
|
|
@@ -13033,27 +13035,27 @@ E0.propTypes = {
|
|
|
13033
13035
|
*
|
|
13034
13036
|
* If the user erases the input value, the argument is `undefined`.
|
|
13035
13037
|
*/
|
|
13036
|
-
onChange:
|
|
13038
|
+
onChange: Y.func.isRequired,
|
|
13037
13039
|
/**
|
|
13038
13040
|
* Toggles the `--focus` CSS class.
|
|
13039
13041
|
* @ignore
|
|
13040
13042
|
*/
|
|
13041
|
-
onFocus:
|
|
13043
|
+
onFocus: Y.func,
|
|
13042
13044
|
/**
|
|
13043
13045
|
* `onBlur` is usually passed by `redux-form`.
|
|
13044
13046
|
* @ignore
|
|
13045
13047
|
*/
|
|
13046
|
-
onBlur:
|
|
13048
|
+
onBlur: Y.func,
|
|
13047
13049
|
/**
|
|
13048
13050
|
* Set to `true` to mark both the phone number `<input/>`
|
|
13049
13051
|
* and the country `<select/>` as `disabled`.
|
|
13050
13052
|
*/
|
|
13051
|
-
disabled:
|
|
13053
|
+
disabled: Y.bool,
|
|
13052
13054
|
/**
|
|
13053
13055
|
* Set to `true` to mark both the phone number `<input/>`
|
|
13054
13056
|
* and the country `<select/>` as `readonly`.
|
|
13055
13057
|
*/
|
|
13056
|
-
readOnly:
|
|
13058
|
+
readOnly: Y.bool,
|
|
13057
13059
|
/**
|
|
13058
13060
|
* Sets `autoComplete` property for phone number `<input/>`.
|
|
13059
13061
|
*
|
|
@@ -13075,7 +13077,7 @@ E0.propTypes = {
|
|
|
13075
13077
|
* what was submitted previously".
|
|
13076
13078
|
*/
|
|
13077
13079
|
// (is `"tel"` by default)
|
|
13078
|
-
autoComplete:
|
|
13080
|
+
autoComplete: Y.string,
|
|
13079
13081
|
/**
|
|
13080
13082
|
* Set to `"national"` to show the initial `value` in
|
|
13081
13083
|
* "national" format rather than "international".
|
|
@@ -13096,10 +13098,10 @@ E0.propTypes = {
|
|
|
13096
13098
|
* Future people won't be using "national" format, only "international".
|
|
13097
13099
|
*/
|
|
13098
13100
|
// (is `undefined` by default)
|
|
13099
|
-
initialValueFormat:
|
|
13101
|
+
initialValueFormat: Y.oneOf(["national"]),
|
|
13100
13102
|
// `displayInitialValueAsLocalNumber` property has been
|
|
13101
13103
|
// superceded by `initialValueFormat` property.
|
|
13102
|
-
displayInitialValueAsLocalNumber:
|
|
13104
|
+
displayInitialValueAsLocalNumber: Y.bool,
|
|
13103
13105
|
/**
|
|
13104
13106
|
* The country to be selected by default.
|
|
13105
13107
|
* For example, can be set after a GeoIP lookup.
|
|
@@ -13107,7 +13109,7 @@ E0.propTypes = {
|
|
|
13107
13109
|
* Example: `"US"`.
|
|
13108
13110
|
*/
|
|
13109
13111
|
// A two-letter country code ("ISO 3166-1 alpha-2").
|
|
13110
|
-
defaultCountry:
|
|
13112
|
+
defaultCountry: Y.string,
|
|
13111
13113
|
/**
|
|
13112
13114
|
* If specified, only these countries will be available for selection.
|
|
13113
13115
|
*
|
|
@@ -13115,7 +13117,7 @@ E0.propTypes = {
|
|
|
13115
13117
|
*
|
|
13116
13118
|
* `["RU", "UA", "KZ"]`
|
|
13117
13119
|
*/
|
|
13118
|
-
countries:
|
|
13120
|
+
countries: Y.arrayOf(Y.string),
|
|
13119
13121
|
/**
|
|
13120
13122
|
* Custom country `<select/>` option names.
|
|
13121
13123
|
* Also some labels like "ext" and country `<select/>` `aria-label`.
|
|
@@ -13140,7 +13142,7 @@ E0.propTypes = {
|
|
|
13140
13142
|
* and can be either a Unicode BCP 47 locale identifier or an array of such locale identifiers.
|
|
13141
13143
|
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument
|
|
13142
13144
|
*/
|
|
13143
|
-
locales:
|
|
13145
|
+
locales: Y.oneOfType([Y.string, Y.arrayOf(Y.string)]),
|
|
13144
13146
|
/*
|
|
13145
13147
|
* Custom country `<select/>` options sorting function.
|
|
13146
13148
|
* The default one uses `a.localeCompare(b)`, and,
|
|
@@ -13163,7 +13165,7 @@ E0.propTypes = {
|
|
|
13163
13165
|
* one should check the `CHANGELOG.md` every time before updating this library,
|
|
13164
13166
|
* otherwise there's a possibility that some new country flag would be missing.
|
|
13165
13167
|
*/
|
|
13166
|
-
flagUrl:
|
|
13168
|
+
flagUrl: Y.string,
|
|
13167
13169
|
/**
|
|
13168
13170
|
* Custom country flag icon components.
|
|
13169
13171
|
* These flags will be used instead of the default ones.
|
|
@@ -13186,7 +13188,7 @@ E0.propTypes = {
|
|
|
13186
13188
|
*
|
|
13187
13189
|
* `<PhoneInput flags={flags} .../>`
|
|
13188
13190
|
*/
|
|
13189
|
-
flags:
|
|
13191
|
+
flags: Y.objectOf(Y.elementType),
|
|
13190
13192
|
/**
|
|
13191
13193
|
* Country flag icon component.
|
|
13192
13194
|
*
|
|
@@ -13197,11 +13199,11 @@ E0.propTypes = {
|
|
|
13197
13199
|
* * `flagUrl: string` — The `flagUrl` property (see above).
|
|
13198
13200
|
* * `flags: object` — The `flags` property (see above).
|
|
13199
13201
|
*/
|
|
13200
|
-
flagComponent:
|
|
13202
|
+
flagComponent: Y.elementType,
|
|
13201
13203
|
/**
|
|
13202
13204
|
* Set to `false` to remove the "International" option from country `<select/>`.
|
|
13203
13205
|
*/
|
|
13204
|
-
addInternationalOption:
|
|
13206
|
+
addInternationalOption: Y.bool,
|
|
13205
13207
|
/**
|
|
13206
13208
|
* "International" icon component.
|
|
13207
13209
|
* Should have the same aspect ratio.
|
|
@@ -13210,7 +13212,7 @@ E0.propTypes = {
|
|
|
13210
13212
|
*
|
|
13211
13213
|
* * `title: string` — "International" country option label.
|
|
13212
13214
|
*/
|
|
13213
|
-
internationalIcon:
|
|
13215
|
+
internationalIcon: Y.elementType,
|
|
13214
13216
|
/**
|
|
13215
13217
|
* Can be used to place some countries on top of the list of country `<select/>` options.
|
|
13216
13218
|
*
|
|
@@ -13223,15 +13225,15 @@ E0.propTypes = {
|
|
|
13223
13225
|
*
|
|
13224
13226
|
* `["US", "CA", "AU", "|", "..."]`
|
|
13225
13227
|
*/
|
|
13226
|
-
countryOptionsOrder:
|
|
13228
|
+
countryOptionsOrder: Y.arrayOf(Y.string),
|
|
13227
13229
|
/**
|
|
13228
13230
|
* `<Phone/>` component CSS style object.
|
|
13229
13231
|
*/
|
|
13230
|
-
style:
|
|
13232
|
+
style: Y.object,
|
|
13231
13233
|
/**
|
|
13232
13234
|
* `<Phone/>` component CSS class.
|
|
13233
13235
|
*/
|
|
13234
|
-
className:
|
|
13236
|
+
className: Y.string,
|
|
13235
13237
|
/**
|
|
13236
13238
|
* Country `<select/>` component.
|
|
13237
13239
|
*
|
|
@@ -13249,13 +13251,13 @@ E0.propTypes = {
|
|
|
13249
13251
|
* * `tabIndex: (number|string)?` — HTML `tabIndex` attribute.
|
|
13250
13252
|
* * `className: string` — CSS class name.
|
|
13251
13253
|
*/
|
|
13252
|
-
countrySelectComponent:
|
|
13254
|
+
countrySelectComponent: Y.elementType,
|
|
13253
13255
|
/**
|
|
13254
13256
|
* Country `<select/>` component props.
|
|
13255
13257
|
* Along with the usual DOM properties such as `aria-label` and `tabIndex`,
|
|
13256
13258
|
* some custom properties are supported, such as `arrowComponent` and `unicodeFlags`.
|
|
13257
13259
|
*/
|
|
13258
|
-
countrySelectProps:
|
|
13260
|
+
countrySelectProps: Y.object,
|
|
13259
13261
|
/**
|
|
13260
13262
|
* Phone number `<input/>` component.
|
|
13261
13263
|
*
|
|
@@ -13269,11 +13271,11 @@ E0.propTypes = {
|
|
|
13269
13271
|
*
|
|
13270
13272
|
* Must also either use `React.forwardRef()` to "forward" `ref` to the `<input/>` or implement `.focus()` method.
|
|
13271
13273
|
*/
|
|
13272
|
-
inputComponent:
|
|
13274
|
+
inputComponent: Y.elementType,
|
|
13273
13275
|
/**
|
|
13274
13276
|
* Phone number `<input/>` component props.
|
|
13275
13277
|
*/
|
|
13276
|
-
numberInputProps:
|
|
13278
|
+
numberInputProps: Y.object,
|
|
13277
13279
|
/**
|
|
13278
13280
|
* Wrapping `<div/>` component.
|
|
13279
13281
|
*
|
|
@@ -13282,11 +13284,11 @@ E0.propTypes = {
|
|
|
13282
13284
|
* * `style: object` — A component CSS style object.
|
|
13283
13285
|
* * `className: string` — Classes to attach to the component, typically changes when component focuses or blurs.
|
|
13284
13286
|
*/
|
|
13285
|
-
containerComponent:
|
|
13287
|
+
containerComponent: Y.elementType,
|
|
13286
13288
|
/**
|
|
13287
13289
|
* Wrapping `<div/>` component props.
|
|
13288
13290
|
*/
|
|
13289
|
-
containerComponentProps:
|
|
13291
|
+
containerComponentProps: Y.object,
|
|
13290
13292
|
/**
|
|
13291
13293
|
* When the user attempts to insert a digit somewhere in the middle of a phone number,
|
|
13292
13294
|
* the caret position is moved right before the next available digit skipping
|
|
@@ -13299,25 +13301,25 @@ E0.propTypes = {
|
|
|
13299
13301
|
* with caret position during phone number input.
|
|
13300
13302
|
*/
|
|
13301
13303
|
// Is `true` by default.
|
|
13302
|
-
smartCaret:
|
|
13304
|
+
smartCaret: Y.bool,
|
|
13303
13305
|
/**
|
|
13304
13306
|
* Set to `true` to force "international" phone number format.
|
|
13305
13307
|
* Set to `false` to force "national" phone number format.
|
|
13306
13308
|
* By default it's `undefined` meaning that it doesn't enforce any phone number format:
|
|
13307
13309
|
* the user can input their phone number in either "national" or "international" format.
|
|
13308
13310
|
*/
|
|
13309
|
-
international:
|
|
13311
|
+
international: Y.bool,
|
|
13310
13312
|
/**
|
|
13311
13313
|
* If set to `true`, the phone number input will get trimmed
|
|
13312
13314
|
* if it exceeds the maximum length for the country.
|
|
13313
13315
|
*/
|
|
13314
|
-
limitMaxLength:
|
|
13316
|
+
limitMaxLength: Y.bool,
|
|
13315
13317
|
/**
|
|
13316
13318
|
* If set to `false`, and `international` is `true`, then
|
|
13317
13319
|
* users won't be able to erase the "country calling part"
|
|
13318
13320
|
* of a phone number in the `<input/>`.
|
|
13319
13321
|
*/
|
|
13320
|
-
countryCallingCodeEditable:
|
|
13322
|
+
countryCallingCodeEditable: Y.bool,
|
|
13321
13323
|
/**
|
|
13322
13324
|
* `libphonenumber-js` metadata.
|
|
13323
13325
|
*
|
|
@@ -13337,7 +13339,7 @@ E0.propTypes = {
|
|
|
13337
13339
|
// therefore reducing "conversion" (that's a marketing term).
|
|
13338
13340
|
// Assuming that the phone number's country is the user's country
|
|
13339
13341
|
// is not 100% correct but in most cases I guess it's valid.
|
|
13340
|
-
onCountryChange:
|
|
13342
|
+
onCountryChange: Y.func,
|
|
13341
13343
|
/**
|
|
13342
13344
|
* If set to `false`, will not focus the `<input/>` component
|
|
13343
13345
|
* when the user selects a country from the list of countries.
|
|
@@ -13347,7 +13349,7 @@ E0.propTypes = {
|
|
|
13347
13349
|
* does not automatically cause a change of context unless the user
|
|
13348
13350
|
* has been advised of the behaviour before using the component."
|
|
13349
13351
|
*/
|
|
13350
|
-
focusInputOnCountrySelection:
|
|
13352
|
+
focusInputOnCountrySelection: Y.bool
|
|
13351
13353
|
};
|
|
13352
13354
|
var Wl = {
|
|
13353
13355
|
/**
|
|
@@ -13392,7 +13394,7 @@ var Wl = {
|
|
|
13392
13394
|
* would be "stuck", if not using this `reset` property.
|
|
13393
13395
|
*/
|
|
13394
13396
|
// https://github.com/catamphetamine/react-phone-number-input/issues/300
|
|
13395
|
-
reset:
|
|
13397
|
+
reset: Y.any,
|
|
13396
13398
|
/**
|
|
13397
13399
|
*
|
|
13398
13400
|
*/
|
|
@@ -13727,9 +13729,9 @@ function Fh(e, t) {
|
|
|
13727
13729
|
return n;
|
|
13728
13730
|
}
|
|
13729
13731
|
function S0(e) {
|
|
13730
|
-
var t = /* @__PURE__ */
|
|
13732
|
+
var t = /* @__PURE__ */ M.forwardRef(function(n, r) {
|
|
13731
13733
|
var i = n.metadata, o = i === void 0 ? e : i, a = n.labels, d = a === void 0 ? mn : a, l = Rh(n, Ah);
|
|
13732
|
-
return /* @__PURE__ */
|
|
13734
|
+
return /* @__PURE__ */ M.createElement(E0, Eo({}, l, {
|
|
13733
13735
|
ref: r,
|
|
13734
13736
|
metadata: o,
|
|
13735
13737
|
labels: d
|
|
@@ -13768,7 +13770,7 @@ const am = ({
|
|
|
13768
13770
|
countryCodeFromURL: s = "",
|
|
13769
13771
|
additionalClassName: p = ""
|
|
13770
13772
|
}) => {
|
|
13771
|
-
const [m, u] = oe(o), c =
|
|
13773
|
+
const [m, u] = oe(o), c = X(
|
|
13772
13774
|
e && e !== "001" ? e : "US"
|
|
13773
13775
|
);
|
|
13774
13776
|
he(() => {
|
|
@@ -13786,39 +13788,39 @@ const am = ({
|
|
|
13786
13788
|
}), y = (F) => {
|
|
13787
13789
|
c.current = F;
|
|
13788
13790
|
const _ = E(F);
|
|
13789
|
-
x(_),
|
|
13790
|
-
},
|
|
13791
|
+
x(_), K(O.current);
|
|
13792
|
+
}, O = X(l ?? ""), D = (F) => {
|
|
13791
13793
|
const _ = F.trim();
|
|
13792
13794
|
if (_ && c.current) {
|
|
13793
13795
|
if (/^(\d)\1*$/.test(F.trim())) return !1;
|
|
13794
|
-
const
|
|
13796
|
+
const z = `+${Hi(
|
|
13795
13797
|
c.current
|
|
13796
13798
|
)}${_}`;
|
|
13797
|
-
return kh(
|
|
13799
|
+
return kh(z);
|
|
13798
13800
|
}
|
|
13799
13801
|
return !0;
|
|
13800
|
-
},
|
|
13802
|
+
}, K = (F, _ = !1) => {
|
|
13801
13803
|
if (!a) {
|
|
13802
|
-
const
|
|
13804
|
+
const z = {
|
|
13803
13805
|
phoneNumber: F,
|
|
13804
13806
|
countryCode: c.current,
|
|
13805
13807
|
error: void 0,
|
|
13806
13808
|
id: d,
|
|
13807
13809
|
initialConsentChecked: _
|
|
13808
13810
|
};
|
|
13809
|
-
r(
|
|
13811
|
+
r(z);
|
|
13810
13812
|
}
|
|
13811
13813
|
F = F.trim();
|
|
13812
|
-
const
|
|
13813
|
-
u(!(!m &&
|
|
13814
|
-
const
|
|
13814
|
+
const U = F ? D(F) ? void 0 : "invalid" : t ? "required" : void 0;
|
|
13815
|
+
u(!(!m && U !== void 0));
|
|
13816
|
+
const j = {
|
|
13815
13817
|
phoneNumber: F,
|
|
13816
13818
|
countryCode: c.current,
|
|
13817
|
-
error:
|
|
13819
|
+
error: U,
|
|
13818
13820
|
id: d,
|
|
13819
13821
|
initialConsentChecked: _
|
|
13820
13822
|
};
|
|
13821
|
-
r(
|
|
13823
|
+
r(j);
|
|
13822
13824
|
};
|
|
13823
13825
|
return /* @__PURE__ */ I.jsx(I.Fragment, { children: /* @__PURE__ */ I.jsxs("div", { className: `${Vt.phoneWrapper} ${p?.trim() || ""}`, "data-testid": "phone-wrapper", children: [
|
|
13824
13826
|
/* @__PURE__ */ I.jsx("div", { className: `${Vt.countryCode} ouiCountryCode`, children: /* @__PURE__ */ I.jsx(V4, { selected: b, onSelect: y, "data-testid": "phone-select", themeColor: n, children: /* @__PURE__ */ I.jsx("div", { className: `${Vt.phonNumberList} ouiPhonNumberList`, children: /* @__PURE__ */ I.jsx(U4, { setQuery: () => {
|
|
@@ -13847,10 +13849,10 @@ const am = ({
|
|
|
13847
13849
|
id: d,
|
|
13848
13850
|
value: l ?? "",
|
|
13849
13851
|
onBlur: (F) => {
|
|
13850
|
-
|
|
13852
|
+
O.current = F.target.value.trim();
|
|
13851
13853
|
},
|
|
13852
13854
|
onChange: (F) => {
|
|
13853
|
-
|
|
13855
|
+
O.current = F.target.value, K(O.current);
|
|
13854
13856
|
},
|
|
13855
13857
|
"data-testid": "phone-input",
|
|
13856
13858
|
themeColor: n
|