@oncehub/ui-react 1.4.24-beta.1.0 → 1.4.24-beta.1.1
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode("*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.tw-relative{position:relative}.tw-block{display:block}.tw-flex{display:flex}.tw-h-20{height:5rem}.tw-cursor-default{cursor:default}.tw-select-none{user-select:none}.tw-items-center{align-items:center}.tw-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tw-bg-\\[\\#EEEEEE\\]{--tw-bg-opacity: 1;background-color:rgb(238 238 238 / var(--tw-bg-opacity))}.tw-py-2{padding-top:.5rem;padding-bottom:.5rem}.tw-pl-4{padding-left:1rem}.tw-pr-4{padding-right:1rem}.tw-font-medium{font-weight:500}.tw-font-normal{font-weight:400}.tw-text-\\[\\#333333\\]{--tw-text-opacity: 1;color:rgb(51 51 51 / var(--tw-text-opacity))}._button_1q2ge_1{box-sizing:border-box;display:flex;cursor:pointer;align-items:center;justify-content:center;border-width:1px;border-style:solid;text-align:center;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}._button_1q2ge_1:hover{text-decoration-line:underline}._button_1q2ge_1:focus{text-decoration-line:underline}._button_1q2ge_1:disabled{cursor:default}._button_1q2ge_1:hover:disabled{text-decoration-line:none}._primary_1q2ge_5{border-color:transparent;--tw-bg-opacity: 1;background-color:rgb(0 107 177 / var(--tw-bg-opacity));font-weight:500;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity));outline-color:#006bb1}._primary_1q2ge_5:focus{outline-width:2px;outline-offset:3px}._primary_1q2ge_5:disabled{--tw-border-opacity: 1;border-color:rgb(200 200 200 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(200 200 200 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._secondary_1q2ge_12{--tw-border-opacity: 1;border-color:rgb(0 107 177 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));font-weight:400;--tw-text-opacity: 1;color:rgb(0 107 177 / var(--tw-text-opacity))}._secondary_1q2ge_12:hover{border-color:transparent;outline-style:solid;outline-width:2px;outline-offset:-2px;outline-color:#006bb1}._secondary_1q2ge_12:focus{border-color:transparent;outline-style:solid;outline-width:2px;outline-offset:-2px;outline-color:#006bb1}._secondary_1q2ge_12:disabled{--tw-border-opacity: 1;border-color:rgb(200 200 200 / var(--tw-border-opacity));--tw-text-opacity: 1;color:rgb(200 200 200 / var(--tw-text-opacity))}._secondary_1q2ge_12:disabled:hover{outline-width:0px}._secondary_1q2ge_12:disabled:focus{outline-width:0px}._small_1q2ge_19{min-height:35px;min-width:70px;padding:4px 22px;font-size:.875rem;line-height:1.25rem;line-height:22px}._small_1q2ge_19._rounded_1q2ge_22{border-radius:18px}._medium_1q2ge_26{min-height:40px;min-width:74px;padding:7px 22px;font-size:.875rem;line-height:1.25rem;line-height:22px}._medium_1q2ge_26._rounded_1q2ge_22{border-radius:20px}._large_1q2ge_33{min-height:44px;min-width:94px;padding-left:1.5rem;padding-right:1.5rem;padding-top:8px;padding-bottom:8px;font-size:1rem;line-height:1.5rem;line-height:24px}._large_1q2ge_33._rounded_1q2ge_22{border-radius:22px}._squared_1q2ge_40{border-radius:.25rem}._checkboxLayout_bt7qx_1{display:inline-flex;width:100%;align-items:center;white-space:nowrap;vertical-align:middle}._checkboxLayout_bt7qx_1 ._checkboxLabel_bt7qx_4{display:flex;width:100%;cursor:pointer;align-items:baseline;gap:.5rem;font-size:.875rem;line-height:1.25rem;line-height:22px;letter-spacing:0;--tw-text-opacity: 1;color:rgb(51 51 51 / var(--tw-text-opacity))}._checkboxLayout_bt7qx_1 ._checkboxLabel_bt7qx_4>span{white-space:normal;font-size:.875rem;line-height:1.25rem;line-height:22px;letter-spacing:0;--tw-text-opacity: 1;color:rgb(51 51 51 / var(--tw-text-opacity))}._checkboxLayout_bt7qx_1 ._checkboxLabel_bt7qx_4 ._checkboxInnerContainer_bt7qx_10{position:relative;top:2px;display:inline-block;height:1rem;width:1rem;flex-shrink:0;cursor:pointer;white-space:nowrap;border-width:0px;vertical-align:middle;line-height:0;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);outline-width:0px}._checkboxLayout_bt7qx_1 ._checkboxLabel_bt7qx_4 ._checkboxInnerContainer_bt7qx_10 ._checkboxInput_bt7qx_13{position:absolute;bottom:0;left:0;height:0px;width:0px;appearance:none;border-width:0px;padding:0;opacity:0;outline-width:0px}._checkboxLayout_bt7qx_1 ._checkboxLabel_bt7qx_4 ._checkboxInnerContainer_bt7qx_10 ._checkboxInput_bt7qx_13:checked+._checkboxFrame_bt7qx_16{--tw-border-opacity: 1;border-color:rgb(0 107 177 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(0 107 177 / var(--tw-bg-opacity))}._checkboxLayout_bt7qx_1 ._checkboxLabel_bt7qx_4 ._checkboxInnerContainer_bt7qx_10 ._checkboxInput_bt7qx_13:checked+._checkboxFrame_bt7qx_16 ._checkboxCheckMark_bt7qx_19{opacity:1}._checkboxLayout_bt7qx_1 ._checkboxLabel_bt7qx_4 ._checkboxInnerContainer_bt7qx_10 ._checkboxInput_bt7qx_13:checked+._checkboxFrame_bt7qx_16 ._checkboxCheckMark_bt7qx_19 ._checkboxCheckMarkPath_bt7qx_22{animation:.18s linear 0ms _checkboxUncheckedChecked_bt7qx_1;stroke-dashoffset:0}._checkboxLayout_bt7qx_1 ._checkboxLabel_bt7qx_4 ._checkboxInnerContainer_bt7qx_10 ._checkboxInput_bt7qx_13:disabled+._checkboxFrame_bt7qx_16{--tw-border-opacity: 1;border-color:rgb(228 228 228 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(249 249 249 / var(--tw-bg-opacity))}._checkboxLayout_bt7qx_1 ._checkboxLabel_bt7qx_4 ._checkboxInnerContainer_bt7qx_10 ._checkboxFrame_bt7qx_16{position:absolute;inset:0;box-sizing:border-box;border-radius:3px;border-width:1px;border-style:solid;--tw-border-opacity: 1;border-color:rgb(156 156 156 / var(--tw-border-opacity));background-color:transparent}._checkboxLayout_bt7qx_1 ._checkboxLabel_bt7qx_4 ._checkboxInnerContainer_bt7qx_10 ._checkboxFrame_bt7qx_16 ._checkboxCheckMark_bt7qx_19{position:absolute;inset:0;width:100%}._checkboxLayout_bt7qx_1 ._checkboxLabel_bt7qx_4 ._checkboxInnerContainer_bt7qx_10 ._checkboxFrame_bt7qx_16 ._checkboxCheckMark_bt7qx_19 ._checkboxCheckMarkPath_bt7qx_22{stroke-width:3px;stroke-dashoffset:23;stroke-dasharray:23}._checkboxLayout_bt7qx_1 ._checkboxLabel_bt7qx_4 ._checkboxInnerContainer_bt7qx_10:focus-visible ._checkboxFrame_bt7qx_16{outline-style:solid;outline-width:2px;outline-offset:-1px;outline-color:#006bb1}._checkboxLayout_bt7qx_1 ._checkboxLabel_bt7qx_4 ._visuallyHidden_bt7qx_43{position:absolute;width:0px;height:0px;margin:0;padding:0;overflow:hidden;clip:rect(0,0,0,0);border:0}._checkboxLayout_bt7qx_1._checkboxDisabled_bt7qx_53{pointer-events:none;cursor:default}._checkboxLayout_bt7qx_1._checkboxDisabled_bt7qx_53 ._checkboxLabel_bt7qx_4 ._checkboxInnerContainer_bt7qx_10 ._checkboxFrame_bt7qx_16{--tw-border-opacity: 1;border-color:rgb(228 228 228 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(249 249 249 / var(--tw-bg-opacity))}._checkboxLayout_bt7qx_1._medium_bt7qx_59 ._checkboxLabel_bt7qx_4>span{width:calc(100% - 24px);font-size:.875rem;line-height:1.25rem}._checkboxLayout_bt7qx_1._medium_bt7qx_59 ._checkboxLabel_bt7qx_4 ._checkboxInnerContainer_bt7qx_10{height:1rem;width:1rem}._checkboxLayout_bt7qx_1._large_bt7qx_65 ._checkboxLabel_bt7qx_4>span{width:calc(100% - 27px);font-size:1rem;line-height:1.5rem}._checkboxLayout_bt7qx_1._large_bt7qx_65 ._checkboxLabel_bt7qx_4 ._checkboxInnerContainer_bt7qx_10{top:4px;height:1.25rem;width:1.25rem}@keyframes _checkboxUncheckedChecked_bt7qx_1{0%,50%{stroke-dashoffset:23}50%{animation-timing-function:cubic-bezier(0,0,.2,.1)}to{stroke-dashoffset:0}}._textInputWrapper_1i9m6_1{width:100%}._textInputWrapper_1i9m6_1 ._textInput_1i9m6_1{box-sizing:border-box;display:block;height:2.5rem;max-height:225px;width:100%;resize:none;border-width:0px;border-bottom-width:1px;--tw-border-opacity: 1;border-color:rgb(51 51 51 / var(--tw-border-opacity));padding-left:10px;padding-right:10px;padding-bottom:.5rem;padding-top:7px;font-size:1rem;line-height:1.5rem;--tw-text-opacity: 1;color:rgb(51 51 51 / var(--tw-text-opacity));outline:2px solid transparent;outline-offset:2px}._textInputWrapper_1i9m6_1 ._textInput_1i9m6_1:focus{border-bottom-width:2px;--tw-border-opacity: 1;border-color:rgb(0 107 177 / var(--tw-border-opacity));padding-bottom:7px}._multiSelectContainer_lh9wi_1,._multiSelectContainer_lh9wi_1 ._listOptionsWrap_lh9wi_4{position:relative;width:100%}._multiSelectContainer_lh9wi_1 ._listOptionsWrap_lh9wi_4 ._selectedValuesWrap_lh9wi_7{position:relative;height:2.5rem;width:100%}._multiSelectContainer_lh9wi_1 ._listOptionsWrap_lh9wi_4 ._selectedValuesWrap_lh9wi_7 ._selectedValues_lh9wi_7{box-sizing:border-box;display:block;height:100%;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-width:0px;border-bottom-width:1px;border-style:solid;--tw-border-opacity: 1;border-bottom-color:rgb(51 51 51 / var(--tw-border-opacity));padding-bottom:.5rem;padding-left:10px;padding-right:2.75rem;padding-top:.5rem;font-size:1rem;line-height:1rem;--tw-text-opacity: 1;color:rgb(51 51 51 / var(--tw-text-opacity))}._multiSelectContainer_lh9wi_1 ._listOptionsWrap_lh9wi_4 ._selectedValuesWrap_lh9wi_7 ._selectedValues_lh9wi_7::placeholder{--tw-placeholder-opacity: 1;color:rgb(102 102 102 / var(--tw-placeholder-opacity))}._multiSelectContainer_lh9wi_1 ._listOptionsWrap_lh9wi_4 ._selectedValuesWrap_lh9wi_7 ._selectedValues_lh9wi_7:focus-within{outline:2px solid transparent;outline-offset:2px}._multiSelectContainer_lh9wi_1 ._listOptionsWrap_lh9wi_4 ._selectedValuesWrap_lh9wi_7 ._selectedValues_lh9wi_7:focus{border-bottom-width:2px;--tw-border-opacity: 1;border-color:rgb(0 107 177 / var(--tw-border-opacity));padding-bottom:7px}._multiSelectContainer_lh9wi_1 ._listOptionsWrap_lh9wi_4 ._selectedValuesWrap_lh9wi_7 ._selectedValues_lh9wi_7:focus-visible{outline:2px solid transparent;outline-offset:2px}._multiSelectContainer_lh9wi_1 ._listOptionsWrap_lh9wi_4 ._selectedValuesWrap_lh9wi_7 ._selectedValues_lh9wi_7._focused_lh9wi_13{border-bottom-width:2px;--tw-border-opacity: 1;border-color:rgb(0 107 177 / var(--tw-border-opacity));padding-bottom:7px;outline:2px solid transparent;outline-offset:2px}._multiSelectContainer_lh9wi_1 ._listOptionsWrap_lh9wi_4 ._selectedValuesWrap_lh9wi_7 ._selectedValues_lh9wi_7._placeholder_lh9wi_16{--tw-text-opacity: 1;color:rgb(102 102 102 / var(--tw-text-opacity))}._multiSelectContainer_lh9wi_1 ._listOptionsWrap_lh9wi_4 ._selectedValuesWrap_lh9wi_7 ._dropDownIcon_lh9wi_19{position:absolute;right:.5rem;top:50%;display:flex;height:100%;width:1.75rem;--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));cursor:pointer;align-items:center;justify-content:center}._optionsListContainer_lh9wi_23{position:absolute;z-index:10;margin-top:0;max-height:293px;width:100%;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));padding-bottom:4rem;font-size:.875rem;line-height:1.25rem;line-height:22px;--tw-shadow: 0 1px 6px 0 rgba(0,0,0,.5);--tw-shadow-colored: 0 1px 6px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}._optionsListContainer_lh9wi_23:focus{outline:2px solid transparent;outline-offset:2px}._optionsListContainer_lh9wi_23._top_lh9wi_26{transform:translateY(calc(-100% - 40px))}._optionsListContainer_lh9wi_23 ._optionsListWrap_lh9wi_29{max-height:225px;overflow:auto;padding-top:1rem;padding-bottom:1rem}._optionsListContainer_lh9wi_23 ._optionsListWrap_lh9wi_29 ._searchInputWrap_lh9wi_32{margin-bottom:.5rem;height:2.5rem;padding-left:10px;padding-right:10px}._optionsListContainer_lh9wi_23 ._optionsListWrap_lh9wi_29 ._searchInputWrap_lh9wi_32 ._searchInput_lh9wi_32{box-sizing:border-box;height:100%;width:100%;padding-top:.5rem;padding-bottom:.5rem;padding-left:10px;outline-style:solid;outline-width:1px;outline-offset:-2px;outline-color:#c8c8c8}._optionsListContainer_lh9wi_23 ._optionsListWrap_lh9wi_29 ul{margin:0;padding:0}._optionsListContainer_lh9wi_23 ._optionsListWrap_lh9wi_29 ._optionsList_lh9wi_23{box-sizing:border-box;display:flex;list-style-type:none;align-items:flex-start;gap:.5rem;padding-left:10px;padding-right:10px;padding-top:.5rem;padding-bottom:.5rem}._optionsListContainer_lh9wi_23 ._optionsListWrap_lh9wi_29 ._optionsList_lh9wi_23 span{word-break:break-word;display:block;width:calc(100% - 22px);overflow-wrap:break-word;font-size:.875rem;line-height:1.25rem;line-height:22px}._optionsListContainer_lh9wi_23 ._optionsListWrap_lh9wi_29 ._optionsList_lh9wi_23:hover,._optionsListContainer_lh9wi_23 ._optionsListWrap_lh9wi_29 ._optionsList_lh9wi_23._focused_lh9wi_13{--tw-bg-opacity: 1;background-color:rgb(238 238 238 / var(--tw-bg-opacity))}._optionsListContainer_lh9wi_23 ._btnContainer_lh9wi_54{position:absolute;left:0;right:0;box-sizing:border-box;display:flex;height:64px;width:100%;align-items:center;justify-content:flex-end;border-width:0px;border-top-width:1px;border-style:solid;--tw-border-opacity: 1;border-top-color:rgb(200 200 200 / var(--tw-border-opacity));padding-left:18px;padding-right:18px}._optionsListContainer_lh9wi_23 ._btnContainer_lh9wi_54 ._hiddenButton_lh9wi_57{position:absolute;left:-9999px;height:0px;width:0px;opacity:0}._optionsListContainer_lh9wi_23 ::-webkit-scrollbar{width:6px}._optionsListContainer_lh9wi_23 ::-webkit-scrollbar-thumb{background-color:#a9a9a9;border-radius:6px}._announcement_lh9wi_70{pointer-events:none;height:0px;overflow:hidden;opacity:0}._pseudoCheckbox_z8j4c_1{position:relative;top:3px;box-sizing:border-box;height:1rem;width:1rem;border-radius:3px;border-width:1px;border-style:solid;--tw-border-opacity: 1;border-color:rgb(156 156 156 / var(--tw-border-opacity))}._pseudoCheckbox_z8j4c_1 ._checkboxCheckMark_z8j4c_4{position:absolute;inset:0;width:100%}._pseudoCheckbox_z8j4c_1 ._checkboxCheckMark_z8j4c_4 ._checkboxCheckMarkPath_z8j4c_7{stroke-width:3px;stroke-dashoffset:23;stroke-dasharray:23}._pseudoCheckbox_z8j4c_1._checked_z8j4c_12{--tw-border-opacity: 1;border-color:rgb(0 107 177 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(0 107 177 / var(--tw-bg-opacity))}._pseudoCheckbox_z8j4c_1._checked_z8j4c_12 ._checkboxCheckMark_z8j4c_4{opacity:1}._pseudoCheckbox_z8j4c_1._checked_z8j4c_12 ._checkboxCheckMark_z8j4c_4 ._checkboxCheckMarkPath_z8j4c_7{animation:.18s linear 0ms _checkboxUncheckedChecked_z8j4c_1;stroke-dashoffset:0}._pseudoCheckbox_z8j4c_1._checkboxDisabled_z8j4c_22{pointer-events:none;cursor:default;--tw-border-opacity: 1;border-color:rgb(228 228 228 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(249 249 249 / var(--tw-bg-opacity))}@keyframes _checkboxUncheckedChecked_z8j4c_1{0%,50%{stroke-dashoffset:23}50%{animation-timing-function:cubic-bezier(0,0,.2,.1)}to{stroke-dashoffset:0}}._multiSelectContainer_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));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))}._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))!important;--tw-text-opacity: 1 !important;color:rgb(51 51 51 / var(--tw-text-opacity))!important;text-decoration-line:none!important;outline-width:0px!important}._singleSelectWrapper_1x2o4_1{position:relative}._singleSelectWrapper_1x2o4_1 ._quickOption_1x2o4_4{display:flex;flex-direction:row;flex-wrap:wrap;gap:.75rem}._singleSelectWrapper_1x2o4_1 ._quickOption_1x2o4_4 li{position:relative;box-sizing:border-box;display:inline-flex;min-height:44px;min-width:80px;cursor:pointer;list-style-type:none;align-items:center;word-break:break-all;border-radius:4px;border-width:1px;border-style:solid;--tw-border-opacity: 1;border-color:rgb(0 107 177 / var(--tw-border-opacity));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))}._singleSelectWrapper_1x2o4_1 ._quickOption_1x2o4_4 li:hover,._singleSelectWrapper_1x2o4_1 ._quickOption_1x2o4_4 li:focus-visible,._singleSelectWrapper_1x2o4_1 ._quickOption_1x2o4_4 li._selected_1x2o4_10{outline-style:solid;outline-width:2px;outline-offset:-2px;outline-color:#006bb1}._singleSelectWrapper_1x2o4_1 ._quickOption_1x2o4_4 li:hover,._singleSelectWrapper_1x2o4_1 ._quickOption_1x2o4_4 li:focus-visible{text-decoration-line:underline}._singleSelectWrapper_1x2o4_1 ._quickOption_1x2o4_4 li ._triangle_1x2o4_16{position:absolute;right:0;top:0;display:inline-block;height:0px;width:0px;border-width:11px;border-style:solid;border-bottom-color:transparent;border-left-color:transparent;border-right-color:rgb(0 107 177 / var(--tw-border-opacity));--tw-border-opacity: 1;border-top-color:rgb(0 107 177 / var(--tw-border-opacity))}._singleSelectWrapper_1x2o4_1 ._quickOption_1x2o4_4 li ._triangle_1x2o4_16 ._loader_1x2o4_19{position:absolute;left:0;top:-10px;height:10px;width:10px}@keyframes _tw-spin_1x2o4_1{to{transform:rotate(360deg)}}._singleSelectWrapper_1x2o4_1 ._quickOption_1x2o4_4 li ._triangle_1x2o4_16 ._loader_1x2o4_19{animation:_tw-spin_1x2o4_1 1s linear infinite;border-radius:50%;border-width:2px;border-style:solid;border-color:rgb(255 255 255 / var(--tw-border-opacity));--tw-border-opacity: 1;border-right-color:rgb(0 107 177 / var(--tw-border-opacity))}._singleSelectWrapper_1x2o4_1 ._quickOption_1x2o4_4 li ._triangle_1x2o4_16 ._checkmarkWrap_1x2o4_22{position:absolute;left:-1px;top:-9px}._singleSelectWrapper_1x2o4_1 ._quickOption_1x2o4_4 li ._triangle_1x2o4_16 ._checkmarkWrap_1x2o4_22 ._checkmark_1x2o4_22{display:block;animation:_fill_1x2o4_1 .4s ease-in-out .4s forwards,_scale_1x2o4_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_1x2o4_1 ._quickOption_1x2o4_4 li ._triangle_1x2o4_16 ._checkmarkWrap_1x2o4_22 ._checkmark_1x2o4_22 ._checkmarkCheck_1x2o4_29{transform-origin:50% 50%;animation:_stroke_1x2o4_1 .8s cubic-bezier(.5,0,.45,1) .2s forwards;stroke-dasharray:48;stroke-dashoffset:48}._singleSelectWrapper_1x2o4_1 ._quickOption_1x2o4_4 li._disabled_1x2o4_34{pointer-events:none!important;cursor:default!important;--tw-border-opacity: 1 !important;border-color:rgb(228 228 228 / var(--tw-border-opacity))!important;--tw-text-opacity: 1 !important;color:rgb(51 51 51 / var(--tw-text-opacity))!important;text-decoration-line:none!important;outline-width:0px!important}@keyframes _scale_1x2o4_1{0%,to{transform:none}50%{transform:scale3d(1.1,1.1,1)}}@keyframes _fill_1x2o4_1{to{box-shadow:inset 0 0 0 30px transparent}}@keyframes _stroke_1x2o4_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_c79hj_1,._select_c79hj_1 ._selectContainer_c79hj_4{position:relative}._select_c79hj_1 ._selectContainer_c79hj_4 ._selectButton_c79hj_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));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))}._select_c79hj_1 ._selectContainer_c79hj_4 ._selectButton_c79hj_7:focus{border-bottom-width:2px;border-top-width:2px;--tw-border-opacity: 1;border-bottom-color:rgb(0 107 177 / var(--tw-border-opacity));padding-top:5px;padding-bottom:5px;outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}._select_c79hj_1 ._selectContainer_c79hj_4 ._selectButton_c79hj_7._open_c79hj_13{border-bottom-width:2px;border-top-width:2px;--tw-border-opacity: 1;border-bottom-color:rgb(0 107 177 / var(--tw-border-opacity))}._select_c79hj_1 ._selectContainer_c79hj_4 ._selectButton_c79hj_7 ._selectValue_c79hj_16{display:flex;align-items:center}._select_c79hj_1 ._selectContainer_c79hj_4 ._selectButton_c79hj_7 ._selectValue_c79hj_16 ._seletIcon_c79hj_19{margin-right:.5rem;height:1.25rem;width:1.25rem;flex-shrink:0}._select_c79hj_1 ._selectContainer_c79hj_4 ._selectButton_c79hj_7 ._selectValue_c79hj_16 ._selectText_c79hj_22{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._select_c79hj_1 ._selectContainer_c79hj_4 ._selectButton_c79hj_7 ._chevronDownIconSpan_c79hj_25{pointer-events:none;position:absolute;top:0;bottom:0;right:0;display:flex;align-items:center;padding-right:.5rem}._select_c79hj_1 ._selectContainer_c79hj_4 ._selectButton_c79hj_7 ._chevronDownIconSpan_c79hj_25 ._chevronDownIcon_c79hj_25{height:1.25rem;width:1.25rem;--tw-text-opacity: 1;color:rgb(51 51 51 / var(--tw-text-opacity))}._leave_c79hj_32{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.1s;transition-timing-function:cubic-bezier(.4,0,1,1)}._leaveFrom_c79hj_36{opacity:1}._leaveTo_c79hj_40{opacity:0}._selectOptions_c79hj_44{margin:0;max-height:200px;width:100%;list-style-type:none;overflow:auto;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));padding:10px 0;font-size:1rem;line-height:1.5rem;--tw-shadow: 0 1px 6px 0 rgba(0,0,0,.5);--tw-shadow-colored: 0 1px 6px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}@media (min-width: 640px){._selectOptions_c79hj_44{font-size:.875rem;line-height:1.25rem}}._selectOptions_c79hj_44::-webkit-scrollbar-thumb{border-radius:.375rem;--tw-bg-opacity: 1;background-color:rgb(169 169 169 / var(--tw-bg-opacity))}._selectOptions_c79hj_44::-webkit-scrollbar{width:6px}._selectOptions_c79hj_44:focus{outline:2px solid transparent;outline-offset:2px}._autocomplete_1uhaj_1{position:relative}._autocomplete_1uhaj_1 ._autocompleteContainer_1uhaj_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))}._autocomplete_1uhaj_1 ._autocompleteContainer_1uhaj_4._disable_1uhaj_7{--tw-text-opacity: 1;color:rgb(167 167 167 / var(--tw-text-opacity))}._autocomplete_1uhaj_1 ._autocompleteContainer_1uhaj_4:focus{outline:2px solid transparent;outline-offset:2px}._autocomplete_1uhaj_1 ._autocompleteContainer_1uhaj_4:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(223 223 223 / var(--tw-ring-opacity));--tw-ring-offset-width: 2px;--tw-ring-offset-color: #DFDFDF }._autocomplete_1uhaj_1 ._autocompleteContainer_1uhaj_4 ._autocompleteInput_1uhaj_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));background-color:transparent;padding-bottom:.5rem;padding-left:10px;padding-right:2.5rem;padding-top:.5rem;font-size:1rem;line-height:1.25rem}._autocomplete_1uhaj_1 ._autocompleteContainer_1uhaj_4 ._autocompleteInput_1uhaj_16::placeholder{--tw-placeholder-opacity: 1;color:rgb(102 102 102 / var(--tw-placeholder-opacity))}._autocomplete_1uhaj_1 ._autocompleteContainer_1uhaj_4 ._autocompleteInput_1uhaj_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_1uhaj_1 ._autocompleteContainer_1uhaj_4 ._autocompleteInput_1uhaj_16:focus{border-bottom-width:2px;--tw-border-opacity: 1;border-bottom-color:rgb(0 107 177 / var(--tw-border-opacity));padding-bottom:7px;outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}._autocomplete_1uhaj_1 ._autocompleteContainer_1uhaj_4 ._autocompleteInput_1uhaj_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_1uhaj_1 ._autocompleteContainer_1uhaj_4 ._autocompleteButton_1uhaj_25{position:absolute;top:0;bottom:0;right:0;display:flex;align-items:center;border-width:0px;background-color:transparent;padding-right:.5rem}._autocomplete_1uhaj_1 ._autocompleteContainer_1uhaj_4 ._autocompleteButton_1uhaj_25 ._chevronDownIcon_1uhaj_28{height:1.25rem;width:1.25rem;--tw-text-opacity: 1;color:rgb(51 51 51 / var(--tw-text-opacity))}._autocomplete_1uhaj_1 ._autocompleteContainer_1uhaj_4 ._autocompleteButton_1uhaj_25 ._chevronDownIcon_1uhaj_28._disable_1uhaj_7{--tw-text-opacity: 1;color:rgb(167 167 167 / var(--tw-text-opacity))}._leave_1uhaj_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_1uhaj_39{opacity:1}._leaveTo_1uhaj_43{opacity:0}._autocompleteOptions_1uhaj_47{margin:0;max-height:210px;width:100%;list-style-type:none;overflow:auto;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));padding:10px 0;font-size:1rem;line-height:1.5rem;--tw-shadow: 0 1px 6px 0 rgba(0,0,0,.5);--tw-shadow-colored: 0 1px 6px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}@media (min-width: 640px){._autocompleteOptions_1uhaj_47{font-size:.875rem;line-height:1.25rem}}._autocompleteOptions_1uhaj_47::-webkit-scrollbar-thumb{border-radius:.375rem;--tw-bg-opacity: 1;background-color:rgb(169 169 169 / var(--tw-bg-opacity))}._autocompleteOptions_1uhaj_47::-webkit-scrollbar{width:6px}._autocompleteOptions_1uhaj_47:focus{outline:2px solid transparent;outline-offset:2px}._textInputWrapper_gym4n_1{width:100%}._textInputWrapper_gym4n_1 ._textInput_gym4n_1{display:block;height:2.5rem;width:100%;border-width:0px;border-bottom-width:1px;--tw-border-opacity: 1;border-color:rgb(51 51 51 / var(--tw-border-opacity));padding-left:10px;padding-right:10px;padding-bottom:.5rem;padding-top:7px;font-size:1rem;line-height:1.5rem;--tw-text-opacity: 1;color:rgb(51 51 51 / var(--tw-text-opacity));outline:2px solid transparent;outline-offset:2px}._textInputWrapper_gym4n_1 ._textInput_gym4n_1:focus{border-bottom-width:2px;--tw-border-opacity: 1;border-color:rgb(0 107 177 / var(--tw-border-opacity));padding-bottom:7px}._phoneWrapper_1aktz_1{display:flex;max-width:380px;align-items:center;justify-content:space-between;gap:.75rem}._phoneWrapper_1aktz_1 ._countryCode_1aktz_4{height:2.5rem;width:100%;max-width:110px}._phoneWrapper_1aktz_1 ._countryCode_1aktz_4 button{height:2.5rem;background-color:transparent;padding-left:10px;background:transparent!important}._phoneWrapper_1aktz_1 ._phoneInputWrap_1aktz_11{width:100%}._phoneWrapper_1aktz_1 ._phoneInputWrap_1aktz_11 ._phoneInput_1aktz_11{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));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))}._phoneWrapper_1aktz_1 ._phoneInputWrap_1aktz_11 ._phoneInput_1aktz_11::placeholder{--tw-placeholder-opacity: 1;color:rgb(102 102 102 / var(--tw-placeholder-opacity))}._phoneWrapper_1aktz_1 ._phoneInputWrap_1aktz_11 ._phoneInput_1aktz_11{outline:2px solid transparent;outline-offset:2px}._phoneWrapper_1aktz_1 ._phoneInputWrap_1aktz_11 ._phoneInput_1aktz_11:focus{border-bottom-width:2px;--tw-border-opacity: 1;border-color:rgb(0 107 177 / var(--tw-border-opacity))}._phoneWrapper_1aktz_1 ._phoneInputWrap_1aktz_11 ._phoneInput_1aktz_11._serverError_1aktz_17:focus{--tw-border-opacity: 1;border-bottom-color:rgb(245 77 77 / var(--tw-border-opacity))}._phonNumberList_1aktz_21{min-width:286px}._phonNumberList_1aktz_21 ul{width:auto}._phonNumberList_1aktz_21 ul li{position:relative;cursor:default;user-select:none;padding-left:10px;padding-right:10px;padding-top:.5rem;padding-bottom:.5rem}._phonNumberList_1aktz_21 ul li._active_1aktz_30{--tw-bg-opacity: 1;background-color:rgb(238 238 238 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(51 51 51 / var(--tw-text-opacity))}._phonNumberList_1aktz_21 ul li ._countryListText_1aktz_33{display:flex;align-items:center}._phonNumberList_1aktz_21 ul li ._countryListText_1aktz_33>span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:400}")),document.head.appendChild(t)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
|
|
2
2
|
import * as $t from "react";
|
|
3
|
-
import
|
|
3
|
+
import j, { forwardRef as Pt, useState as be, useEffect as pe, useRef as D, useLayoutEffect as C0, Fragment as vt, isValidElement as O0, cloneElement as x0, createElement as P0, createContext as Rt, useContext as St, useMemo as Ie, useReducer as qa, createRef as Ya, useCallback as Ye } from "react";
|
|
4
4
|
import { createPortal as Mr } from "react-dom";
|
|
5
5
|
var S0 = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
6
6
|
function za(e) {
|
|
@@ -21,7 +21,7 @@ function E0() {
|
|
|
21
21
|
if ($i)
|
|
22
22
|
return Zt;
|
|
23
23
|
$i = 1;
|
|
24
|
-
var e =
|
|
24
|
+
var e = j, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
25
25
|
function d(o, u, s) {
|
|
26
26
|
var v, m = {}, l = null, p = null;
|
|
27
27
|
s !== void 0 && (l = "" + s), u.key !== void 0 && (l = "" + u.key), u.ref !== void 0 && (p = u.ref);
|
|
@@ -47,48 +47,48 @@ var Xt = {};
|
|
|
47
47
|
var vi;
|
|
48
48
|
function N0() {
|
|
49
49
|
return vi || (vi = 1, process.env.NODE_ENV !== "production" && function() {
|
|
50
|
-
var e =
|
|
50
|
+
var e = j, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), d = Symbol.for("react.provider"), o = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), s = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), l = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), c = Symbol.iterator, $ = "@@iterator";
|
|
51
51
|
function f(h) {
|
|
52
52
|
if (h === null || typeof h != "object")
|
|
53
53
|
return null;
|
|
54
|
-
var
|
|
55
|
-
return typeof
|
|
54
|
+
var _ = c && h[c] || h[$];
|
|
55
|
+
return typeof _ == "function" ? _ : null;
|
|
56
56
|
}
|
|
57
57
|
var b = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
58
58
|
function S(h) {
|
|
59
59
|
{
|
|
60
|
-
for (var
|
|
61
|
-
|
|
62
|
-
w("error", h,
|
|
60
|
+
for (var _ = arguments.length, L = new Array(_ > 1 ? _ - 1 : 0), J = 1; J < _; J++)
|
|
61
|
+
L[J - 1] = arguments[J];
|
|
62
|
+
w("error", h, L);
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
function w(h,
|
|
65
|
+
function w(h, _, L) {
|
|
66
66
|
{
|
|
67
|
-
var J = b.ReactDebugCurrentFrame,
|
|
68
|
-
|
|
69
|
-
var Ce =
|
|
67
|
+
var J = b.ReactDebugCurrentFrame, $e = J.getStackAddendum();
|
|
68
|
+
$e !== "" && (_ += "%s", L = L.concat([$e]));
|
|
69
|
+
var Ce = L.map(function(se) {
|
|
70
70
|
return String(se);
|
|
71
71
|
});
|
|
72
|
-
Ce.unshift("Warning: " +
|
|
72
|
+
Ce.unshift("Warning: " + _), Function.prototype.apply.call(console[h], console, Ce);
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
-
var
|
|
76
|
-
|
|
75
|
+
var C = !1, y = !1, P = !1, U = !1, I = !1, T;
|
|
76
|
+
T = Symbol.for("react.module.reference");
|
|
77
77
|
function q(h) {
|
|
78
|
-
return !!(typeof h == "string" || typeof h == "function" || h === r || h === a ||
|
|
78
|
+
return !!(typeof h == "string" || typeof h == "function" || h === r || h === a || I || h === i || h === s || h === v || U || h === p || C || y || P || typeof h == "object" && h !== null && (h.$$typeof === l || h.$$typeof === m || h.$$typeof === d || h.$$typeof === o || h.$$typeof === u || // This needs to include all possible module reference object
|
|
79
79
|
// types supported by any Flight configuration anywhere since
|
|
80
80
|
// we don't know which Flight build this will end up being used
|
|
81
81
|
// with.
|
|
82
|
-
h.$$typeof ===
|
|
82
|
+
h.$$typeof === T || h.getModuleId !== void 0));
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function ne(h, _, L) {
|
|
85
85
|
var J = h.displayName;
|
|
86
86
|
if (J)
|
|
87
87
|
return J;
|
|
88
|
-
var
|
|
89
|
-
return
|
|
88
|
+
var $e = _.displayName || _.name || "";
|
|
89
|
+
return $e !== "" ? L + "(" + $e + ")" : L;
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function ie(h) {
|
|
92
92
|
return h.displayName || "Context";
|
|
93
93
|
}
|
|
94
94
|
function E(h) {
|
|
@@ -115,18 +115,18 @@ function N0() {
|
|
|
115
115
|
if (typeof h == "object")
|
|
116
116
|
switch (h.$$typeof) {
|
|
117
117
|
case o:
|
|
118
|
-
var
|
|
119
|
-
return
|
|
118
|
+
var _ = h;
|
|
119
|
+
return ie(_) + ".Consumer";
|
|
120
120
|
case d:
|
|
121
|
-
var
|
|
122
|
-
return
|
|
121
|
+
var L = h;
|
|
122
|
+
return ie(L._context) + ".Provider";
|
|
123
123
|
case u:
|
|
124
|
-
return
|
|
124
|
+
return ne(h, h.render, "ForwardRef");
|
|
125
125
|
case m:
|
|
126
126
|
var J = h.displayName || null;
|
|
127
127
|
return J !== null ? J : E(h.type) || "Memo";
|
|
128
128
|
case l: {
|
|
129
|
-
var
|
|
129
|
+
var $e = h, Ce = $e._payload, se = $e._init;
|
|
130
130
|
try {
|
|
131
131
|
return E(se(Ce));
|
|
132
132
|
} catch {
|
|
@@ -136,18 +136,18 @@ function N0() {
|
|
|
136
136
|
}
|
|
137
137
|
return null;
|
|
138
138
|
}
|
|
139
|
-
var Z = Object.assign,
|
|
140
|
-
function
|
|
139
|
+
var Z = Object.assign, ae = 0, de, H, ce, ue, O, F, W;
|
|
140
|
+
function B() {
|
|
141
141
|
}
|
|
142
|
-
|
|
143
|
-
function
|
|
142
|
+
B.__reactDisabledLog = !0;
|
|
143
|
+
function x() {
|
|
144
144
|
{
|
|
145
|
-
if (
|
|
146
|
-
|
|
145
|
+
if (ae === 0) {
|
|
146
|
+
de = console.log, H = console.info, ce = console.warn, ue = console.error, O = console.group, F = console.groupCollapsed, W = console.groupEnd;
|
|
147
147
|
var h = {
|
|
148
148
|
configurable: !0,
|
|
149
149
|
enumerable: !0,
|
|
150
|
-
value:
|
|
150
|
+
value: B,
|
|
151
151
|
writable: !0
|
|
152
152
|
};
|
|
153
153
|
Object.defineProperties(console, {
|
|
@@ -160,12 +160,12 @@ function N0() {
|
|
|
160
160
|
groupEnd: h
|
|
161
161
|
});
|
|
162
162
|
}
|
|
163
|
-
|
|
163
|
+
ae++;
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
|
-
function
|
|
166
|
+
function R() {
|
|
167
167
|
{
|
|
168
|
-
if (
|
|
168
|
+
if (ae--, ae === 0) {
|
|
169
169
|
var h = {
|
|
170
170
|
configurable: !0,
|
|
171
171
|
enumerable: !0,
|
|
@@ -173,7 +173,7 @@ function N0() {
|
|
|
173
173
|
};
|
|
174
174
|
Object.defineProperties(console, {
|
|
175
175
|
log: Z({}, h, {
|
|
176
|
-
value:
|
|
176
|
+
value: de
|
|
177
177
|
}),
|
|
178
178
|
info: Z({}, h, {
|
|
179
179
|
value: H
|
|
@@ -185,27 +185,27 @@ function N0() {
|
|
|
185
185
|
value: ue
|
|
186
186
|
}),
|
|
187
187
|
group: Z({}, h, {
|
|
188
|
-
value:
|
|
188
|
+
value: O
|
|
189
189
|
}),
|
|
190
190
|
groupCollapsed: Z({}, h, {
|
|
191
|
-
value:
|
|
191
|
+
value: F
|
|
192
192
|
}),
|
|
193
193
|
groupEnd: Z({}, h, {
|
|
194
194
|
value: W
|
|
195
195
|
})
|
|
196
196
|
});
|
|
197
197
|
}
|
|
198
|
-
|
|
198
|
+
ae < 0 && S("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
|
-
var
|
|
202
|
-
function Y(h,
|
|
201
|
+
var k = b.ReactCurrentDispatcher, G;
|
|
202
|
+
function Y(h, _, L) {
|
|
203
203
|
{
|
|
204
204
|
if (G === void 0)
|
|
205
205
|
try {
|
|
206
206
|
throw Error();
|
|
207
|
-
} catch (
|
|
208
|
-
var J =
|
|
207
|
+
} catch ($e) {
|
|
208
|
+
var J = $e.stack.trim().match(/\n( *(at )?)/);
|
|
209
209
|
G = J && J[1] || "";
|
|
210
210
|
}
|
|
211
211
|
return `
|
|
@@ -217,22 +217,22 @@ function N0() {
|
|
|
217
217
|
var Ne = typeof WeakMap == "function" ? WeakMap : Map;
|
|
218
218
|
ee = new Ne();
|
|
219
219
|
}
|
|
220
|
-
function g(h,
|
|
220
|
+
function g(h, _) {
|
|
221
221
|
if (!h || te)
|
|
222
222
|
return "";
|
|
223
223
|
{
|
|
224
|
-
var
|
|
225
|
-
if (
|
|
226
|
-
return
|
|
224
|
+
var L = ee.get(h);
|
|
225
|
+
if (L !== void 0)
|
|
226
|
+
return L;
|
|
227
227
|
}
|
|
228
228
|
var J;
|
|
229
229
|
te = !0;
|
|
230
|
-
var
|
|
230
|
+
var $e = Error.prepareStackTrace;
|
|
231
231
|
Error.prepareStackTrace = void 0;
|
|
232
232
|
var Ce;
|
|
233
|
-
Ce =
|
|
233
|
+
Ce = k.current, k.current = null, x();
|
|
234
234
|
try {
|
|
235
|
-
if (
|
|
235
|
+
if (_) {
|
|
236
236
|
var se = function() {
|
|
237
237
|
throw Error();
|
|
238
238
|
};
|
|
@@ -265,17 +265,17 @@ function N0() {
|
|
|
265
265
|
}
|
|
266
266
|
} catch (ft) {
|
|
267
267
|
if (ft && J && typeof ft.stack == "string") {
|
|
268
|
-
for (var
|
|
268
|
+
for (var oe = ft.stack.split(`
|
|
269
269
|
`), Be = J.stack.split(`
|
|
270
|
-
`), Se =
|
|
270
|
+
`), Se = oe.length - 1, Te = Be.length - 1; Se >= 1 && Te >= 0 && oe[Se] !== Be[Te]; )
|
|
271
271
|
Te--;
|
|
272
272
|
for (; Se >= 1 && Te >= 0; Se--, Te--)
|
|
273
|
-
if (
|
|
273
|
+
if (oe[Se] !== Be[Te]) {
|
|
274
274
|
if (Se !== 1 || Te !== 1)
|
|
275
275
|
do
|
|
276
|
-
if (Se--, Te--, Te < 0 ||
|
|
276
|
+
if (Se--, Te--, Te < 0 || oe[Se] !== Be[Te]) {
|
|
277
277
|
var Xe = `
|
|
278
|
-
` +
|
|
278
|
+
` + oe[Se].replace(" at new ", " at ");
|
|
279
279
|
return h.displayName && Xe.includes("<anonymous>") && (Xe = Xe.replace("<anonymous>", h.displayName)), typeof h == "function" && ee.set(h, Xe), Xe;
|
|
280
280
|
}
|
|
281
281
|
while (Se >= 1 && Te >= 0);
|
|
@@ -283,19 +283,19 @@ function N0() {
|
|
|
283
283
|
}
|
|
284
284
|
}
|
|
285
285
|
} finally {
|
|
286
|
-
te = !1,
|
|
286
|
+
te = !1, k.current = Ce, R(), Error.prepareStackTrace = $e;
|
|
287
287
|
}
|
|
288
288
|
var jt = h ? h.displayName || h.name : "", pi = jt ? Y(jt) : "";
|
|
289
289
|
return typeof h == "function" && ee.set(h, pi), pi;
|
|
290
290
|
}
|
|
291
|
-
function K(h,
|
|
291
|
+
function K(h, _, L) {
|
|
292
292
|
return g(h, !1);
|
|
293
293
|
}
|
|
294
294
|
function ye(h) {
|
|
295
|
-
var
|
|
296
|
-
return !!(
|
|
295
|
+
var _ = h.prototype;
|
|
296
|
+
return !!(_ && _.isReactComponent);
|
|
297
297
|
}
|
|
298
|
-
function xe(h,
|
|
298
|
+
function xe(h, _, L) {
|
|
299
299
|
if (h == null)
|
|
300
300
|
return "";
|
|
301
301
|
if (typeof h == "function")
|
|
@@ -313,11 +313,11 @@ function N0() {
|
|
|
313
313
|
case u:
|
|
314
314
|
return K(h.render);
|
|
315
315
|
case m:
|
|
316
|
-
return xe(h.type,
|
|
316
|
+
return xe(h.type, _, L);
|
|
317
317
|
case l: {
|
|
318
|
-
var J = h,
|
|
318
|
+
var J = h, $e = J._payload, Ce = J._init;
|
|
319
319
|
try {
|
|
320
|
-
return xe(Ce(
|
|
320
|
+
return xe(Ce($e), _, L);
|
|
321
321
|
} catch {
|
|
322
322
|
}
|
|
323
323
|
}
|
|
@@ -327,27 +327,27 @@ function N0() {
|
|
|
327
327
|
var Le = Object.prototype.hasOwnProperty, Ve = {}, dt = b.ReactDebugCurrentFrame;
|
|
328
328
|
function De(h) {
|
|
329
329
|
if (h) {
|
|
330
|
-
var
|
|
331
|
-
dt.setExtraStackFrame(
|
|
330
|
+
var _ = h._owner, L = xe(h.type, h._source, _ ? _.type : null);
|
|
331
|
+
dt.setExtraStackFrame(L);
|
|
332
332
|
} else
|
|
333
333
|
dt.setExtraStackFrame(null);
|
|
334
334
|
}
|
|
335
|
-
function It(h,
|
|
335
|
+
function It(h, _, L, J, $e) {
|
|
336
336
|
{
|
|
337
337
|
var Ce = Function.call.bind(Le);
|
|
338
338
|
for (var se in h)
|
|
339
339
|
if (Ce(h, se)) {
|
|
340
|
-
var
|
|
340
|
+
var oe = void 0;
|
|
341
341
|
try {
|
|
342
342
|
if (typeof h[se] != "function") {
|
|
343
|
-
var Be = Error((J || "React class") + ": " +
|
|
343
|
+
var Be = Error((J || "React class") + ": " + L + " type `" + se + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof h[se] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
344
344
|
throw Be.name = "Invariant Violation", Be;
|
|
345
345
|
}
|
|
346
|
-
|
|
346
|
+
oe = h[se](_, se, J, L, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
347
347
|
} catch (Se) {
|
|
348
|
-
|
|
348
|
+
oe = Se;
|
|
349
349
|
}
|
|
350
|
-
|
|
350
|
+
oe && !(oe instanceof Error) && (De($e), S("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", J || "React class", L, se, typeof oe), De(null)), oe instanceof Error && !(oe.message in Ve) && (Ve[oe.message] = !0, De($e), S("Failed %s type: %s", L, oe.message), De(null));
|
|
351
351
|
}
|
|
352
352
|
}
|
|
353
353
|
}
|
|
@@ -357,23 +357,23 @@ function N0() {
|
|
|
357
357
|
}
|
|
358
358
|
function wt(h) {
|
|
359
359
|
{
|
|
360
|
-
var
|
|
361
|
-
return
|
|
360
|
+
var _ = typeof Symbol == "function" && Symbol.toStringTag, L = _ && h[Symbol.toStringTag] || h.constructor.name || "Object";
|
|
361
|
+
return L;
|
|
362
362
|
}
|
|
363
363
|
}
|
|
364
364
|
function Ft(h) {
|
|
365
365
|
try {
|
|
366
|
-
return
|
|
366
|
+
return re(h), !1;
|
|
367
367
|
} catch {
|
|
368
368
|
return !0;
|
|
369
369
|
}
|
|
370
370
|
}
|
|
371
|
-
function
|
|
371
|
+
function re(h) {
|
|
372
372
|
return "" + h;
|
|
373
373
|
}
|
|
374
374
|
function fe(h) {
|
|
375
375
|
if (Ft(h))
|
|
376
|
-
return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", wt(h)),
|
|
376
|
+
return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", wt(h)), re(h);
|
|
377
377
|
}
|
|
378
378
|
var z = b.ReactCurrentOwner, we = {
|
|
379
379
|
key: !0,
|
|
@@ -384,100 +384,100 @@ function N0() {
|
|
|
384
384
|
le = {};
|
|
385
385
|
function X(h) {
|
|
386
386
|
if (Le.call(h, "ref")) {
|
|
387
|
-
var
|
|
388
|
-
if (
|
|
387
|
+
var _ = Object.getOwnPropertyDescriptor(h, "ref").get;
|
|
388
|
+
if (_ && _.isReactWarning)
|
|
389
389
|
return !1;
|
|
390
390
|
}
|
|
391
391
|
return h.ref !== void 0;
|
|
392
392
|
}
|
|
393
393
|
function Ze(h) {
|
|
394
394
|
if (Le.call(h, "key")) {
|
|
395
|
-
var
|
|
396
|
-
if (
|
|
395
|
+
var _ = Object.getOwnPropertyDescriptor(h, "key").get;
|
|
396
|
+
if (_ && _.isReactWarning)
|
|
397
397
|
return !1;
|
|
398
398
|
}
|
|
399
399
|
return h.key !== void 0;
|
|
400
400
|
}
|
|
401
|
-
function zt(h,
|
|
402
|
-
if (typeof h.ref == "string" && z.current &&
|
|
403
|
-
var
|
|
404
|
-
le[
|
|
401
|
+
function zt(h, _) {
|
|
402
|
+
if (typeof h.ref == "string" && z.current && _ && z.current.stateNode !== _) {
|
|
403
|
+
var L = E(z.current.type);
|
|
404
|
+
le[L] || (S('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', E(z.current.type), h.ref), le[L] = !0);
|
|
405
405
|
}
|
|
406
406
|
}
|
|
407
|
-
function fn(h,
|
|
407
|
+
function fn(h, _) {
|
|
408
408
|
{
|
|
409
|
-
var
|
|
410
|
-
et || (et = !0, S("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",
|
|
409
|
+
var L = function() {
|
|
410
|
+
et || (et = !0, S("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", _));
|
|
411
411
|
};
|
|
412
|
-
|
|
413
|
-
get:
|
|
412
|
+
L.isReactWarning = !0, Object.defineProperty(h, "key", {
|
|
413
|
+
get: L,
|
|
414
414
|
configurable: !0
|
|
415
415
|
});
|
|
416
416
|
}
|
|
417
417
|
}
|
|
418
|
-
function c0(h,
|
|
418
|
+
function c0(h, _) {
|
|
419
419
|
{
|
|
420
|
-
var
|
|
421
|
-
Ke || (Ke = !0, S("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",
|
|
420
|
+
var L = function() {
|
|
421
|
+
Ke || (Ke = !0, S("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", _));
|
|
422
422
|
};
|
|
423
|
-
|
|
424
|
-
get:
|
|
423
|
+
L.isReactWarning = !0, Object.defineProperty(h, "ref", {
|
|
424
|
+
get: L,
|
|
425
425
|
configurable: !0
|
|
426
426
|
});
|
|
427
427
|
}
|
|
428
428
|
}
|
|
429
|
-
var f0 = function(h,
|
|
430
|
-
var
|
|
429
|
+
var f0 = function(h, _, L, J, $e, Ce, se) {
|
|
430
|
+
var oe = {
|
|
431
431
|
// This tag allows us to uniquely identify this as a React Element
|
|
432
432
|
$$typeof: t,
|
|
433
433
|
// Built-in properties that belong on the element
|
|
434
434
|
type: h,
|
|
435
|
-
key:
|
|
436
|
-
ref:
|
|
435
|
+
key: _,
|
|
436
|
+
ref: L,
|
|
437
437
|
props: se,
|
|
438
438
|
// Record the component responsible for creating this element.
|
|
439
439
|
_owner: Ce
|
|
440
440
|
};
|
|
441
|
-
return
|
|
441
|
+
return oe._store = {}, Object.defineProperty(oe._store, "validated", {
|
|
442
442
|
configurable: !1,
|
|
443
443
|
enumerable: !1,
|
|
444
444
|
writable: !0,
|
|
445
445
|
value: !1
|
|
446
|
-
}), Object.defineProperty(
|
|
446
|
+
}), Object.defineProperty(oe, "_self", {
|
|
447
447
|
configurable: !1,
|
|
448
448
|
enumerable: !1,
|
|
449
449
|
writable: !1,
|
|
450
450
|
value: J
|
|
451
|
-
}), Object.defineProperty(
|
|
451
|
+
}), Object.defineProperty(oe, "_source", {
|
|
452
452
|
configurable: !1,
|
|
453
453
|
enumerable: !1,
|
|
454
454
|
writable: !1,
|
|
455
|
-
value:
|
|
456
|
-
}), Object.freeze && (Object.freeze(
|
|
455
|
+
value: $e
|
|
456
|
+
}), Object.freeze && (Object.freeze(oe.props), Object.freeze(oe)), oe;
|
|
457
457
|
};
|
|
458
|
-
function p0(h,
|
|
458
|
+
function p0(h, _, L, J, $e) {
|
|
459
459
|
{
|
|
460
|
-
var Ce, se = {},
|
|
461
|
-
|
|
462
|
-
for (Ce in
|
|
463
|
-
Le.call(
|
|
460
|
+
var Ce, se = {}, oe = null, Be = null;
|
|
461
|
+
L !== void 0 && (fe(L), oe = "" + L), Ze(_) && (fe(_.key), oe = "" + _.key), X(_) && (Be = _.ref, zt(_, $e));
|
|
462
|
+
for (Ce in _)
|
|
463
|
+
Le.call(_, Ce) && !we.hasOwnProperty(Ce) && (se[Ce] = _[Ce]);
|
|
464
464
|
if (h && h.defaultProps) {
|
|
465
465
|
var Se = h.defaultProps;
|
|
466
466
|
for (Ce in Se)
|
|
467
467
|
se[Ce] === void 0 && (se[Ce] = Se[Ce]);
|
|
468
468
|
}
|
|
469
|
-
if (
|
|
469
|
+
if (oe || Be) {
|
|
470
470
|
var Te = typeof h == "function" ? h.displayName || h.name || "Unknown" : h;
|
|
471
|
-
|
|
471
|
+
oe && fn(se, Te), Be && c0(se, Te);
|
|
472
472
|
}
|
|
473
|
-
return f0(h,
|
|
473
|
+
return f0(h, oe, Be, $e, J, z.current, se);
|
|
474
474
|
}
|
|
475
475
|
}
|
|
476
476
|
var Kn = b.ReactCurrentOwner, oi = b.ReactDebugCurrentFrame;
|
|
477
477
|
function kt(h) {
|
|
478
478
|
if (h) {
|
|
479
|
-
var
|
|
480
|
-
oi.setExtraStackFrame(
|
|
479
|
+
var _ = h._owner, L = xe(h.type, h._source, _ ? _.type : null);
|
|
480
|
+
oi.setExtraStackFrame(L);
|
|
481
481
|
} else
|
|
482
482
|
oi.setExtraStackFrame(null);
|
|
483
483
|
}
|
|
@@ -501,10 +501,10 @@ Check the render method of \`` + h + "`.";
|
|
|
501
501
|
function $0(h) {
|
|
502
502
|
{
|
|
503
503
|
if (h !== void 0) {
|
|
504
|
-
var
|
|
504
|
+
var _ = h.fileName.replace(/^.*[\\\/]/, ""), L = h.lineNumber;
|
|
505
505
|
return `
|
|
506
506
|
|
|
507
|
-
Check your code at ` +
|
|
507
|
+
Check your code at ` + _ + ":" + L + ".";
|
|
508
508
|
}
|
|
509
509
|
return "";
|
|
510
510
|
}
|
|
@@ -512,77 +512,77 @@ Check your code at ` + T + ":" + j + ".";
|
|
|
512
512
|
var li = {};
|
|
513
513
|
function v0(h) {
|
|
514
514
|
{
|
|
515
|
-
var
|
|
516
|
-
if (!
|
|
517
|
-
var
|
|
518
|
-
|
|
515
|
+
var _ = ui();
|
|
516
|
+
if (!_) {
|
|
517
|
+
var L = typeof h == "string" ? h : h.displayName || h.name;
|
|
518
|
+
L && (_ = `
|
|
519
519
|
|
|
520
|
-
Check the top-level render call using <` +
|
|
520
|
+
Check the top-level render call using <` + L + ">.");
|
|
521
521
|
}
|
|
522
|
-
return
|
|
522
|
+
return _;
|
|
523
523
|
}
|
|
524
524
|
}
|
|
525
|
-
function si(h,
|
|
525
|
+
function si(h, _) {
|
|
526
526
|
{
|
|
527
527
|
if (!h._store || h._store.validated || h.key != null)
|
|
528
528
|
return;
|
|
529
529
|
h._store.validated = !0;
|
|
530
|
-
var
|
|
531
|
-
if (li[
|
|
530
|
+
var L = v0(_);
|
|
531
|
+
if (li[L])
|
|
532
532
|
return;
|
|
533
|
-
li[
|
|
533
|
+
li[L] = !0;
|
|
534
534
|
var J = "";
|
|
535
|
-
h && h._owner && h._owner !== Kn.current && (J = " It was passed a child from " + E(h._owner.type) + "."), kt(h), S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',
|
|
535
|
+
h && h._owner && h._owner !== Kn.current && (J = " It was passed a child from " + E(h._owner.type) + "."), kt(h), S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', L, J), kt(null);
|
|
536
536
|
}
|
|
537
537
|
}
|
|
538
|
-
function ci(h,
|
|
538
|
+
function ci(h, _) {
|
|
539
539
|
{
|
|
540
540
|
if (typeof h != "object")
|
|
541
541
|
return;
|
|
542
542
|
if (Me(h))
|
|
543
|
-
for (var
|
|
544
|
-
var J = h[
|
|
545
|
-
Yn(J) && si(J,
|
|
543
|
+
for (var L = 0; L < h.length; L++) {
|
|
544
|
+
var J = h[L];
|
|
545
|
+
Yn(J) && si(J, _);
|
|
546
546
|
}
|
|
547
547
|
else if (Yn(h))
|
|
548
548
|
h._store && (h._store.validated = !0);
|
|
549
549
|
else if (h) {
|
|
550
|
-
var
|
|
551
|
-
if (typeof
|
|
552
|
-
for (var Ce =
|
|
553
|
-
Yn(se.value) && si(se.value,
|
|
550
|
+
var $e = f(h);
|
|
551
|
+
if (typeof $e == "function" && $e !== h.entries)
|
|
552
|
+
for (var Ce = $e.call(h), se; !(se = Ce.next()).done; )
|
|
553
|
+
Yn(se.value) && si(se.value, _);
|
|
554
554
|
}
|
|
555
555
|
}
|
|
556
556
|
}
|
|
557
557
|
function h0(h) {
|
|
558
558
|
{
|
|
559
|
-
var
|
|
560
|
-
if (
|
|
559
|
+
var _ = h.type;
|
|
560
|
+
if (_ == null || typeof _ == "string")
|
|
561
561
|
return;
|
|
562
|
-
var
|
|
563
|
-
if (typeof
|
|
564
|
-
|
|
565
|
-
else if (typeof
|
|
562
|
+
var L;
|
|
563
|
+
if (typeof _ == "function")
|
|
564
|
+
L = _.propTypes;
|
|
565
|
+
else if (typeof _ == "object" && (_.$$typeof === u || // Note: Memo only checks outer props here.
|
|
566
566
|
// Inner props are checked in the reconciler.
|
|
567
|
-
|
|
568
|
-
|
|
567
|
+
_.$$typeof === m))
|
|
568
|
+
L = _.propTypes;
|
|
569
569
|
else
|
|
570
570
|
return;
|
|
571
|
-
if (
|
|
572
|
-
var J = E(
|
|
573
|
-
It(
|
|
574
|
-
} else if (
|
|
571
|
+
if (L) {
|
|
572
|
+
var J = E(_);
|
|
573
|
+
It(L, h.props, "prop", J, h);
|
|
574
|
+
} else if (_.PropTypes !== void 0 && !qn) {
|
|
575
575
|
qn = !0;
|
|
576
|
-
var
|
|
577
|
-
S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",
|
|
576
|
+
var $e = E(_);
|
|
577
|
+
S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", $e || "Unknown");
|
|
578
578
|
}
|
|
579
|
-
typeof
|
|
579
|
+
typeof _.getDefaultProps == "function" && !_.getDefaultProps.isReactClassApproved && S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
580
580
|
}
|
|
581
581
|
}
|
|
582
582
|
function m0(h) {
|
|
583
583
|
{
|
|
584
|
-
for (var
|
|
585
|
-
var J =
|
|
584
|
+
for (var _ = Object.keys(h.props), L = 0; L < _.length; L++) {
|
|
585
|
+
var J = _[L];
|
|
586
586
|
if (J !== "children" && J !== "key") {
|
|
587
587
|
kt(h), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", J), kt(null);
|
|
588
588
|
break;
|
|
@@ -591,22 +591,22 @@ Check the top-level render call using <` + j + ">.");
|
|
|
591
591
|
h.ref !== null && (kt(h), S("Invalid attribute `ref` supplied to `React.Fragment`."), kt(null));
|
|
592
592
|
}
|
|
593
593
|
}
|
|
594
|
-
function fi(h,
|
|
594
|
+
function fi(h, _, L, J, $e, Ce) {
|
|
595
595
|
{
|
|
596
596
|
var se = q(h);
|
|
597
597
|
if (!se) {
|
|
598
|
-
var
|
|
599
|
-
(h === void 0 || typeof h == "object" && h !== null && Object.keys(h).length === 0) && (
|
|
600
|
-
var Be = $0(
|
|
601
|
-
Be ?
|
|
598
|
+
var oe = "";
|
|
599
|
+
(h === void 0 || typeof h == "object" && h !== null && Object.keys(h).length === 0) && (oe += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
600
|
+
var Be = $0($e);
|
|
601
|
+
Be ? oe += Be : oe += ui();
|
|
602
602
|
var Se;
|
|
603
|
-
h === null ? Se = "null" : Me(h) ? Se = "array" : h !== void 0 && h.$$typeof === t ? (Se = "<" + (E(h.type) || "Unknown") + " />",
|
|
603
|
+
h === null ? Se = "null" : Me(h) ? Se = "array" : h !== void 0 && h.$$typeof === t ? (Se = "<" + (E(h.type) || "Unknown") + " />", oe = " Did you accidentally export a JSX literal instead of a component?") : Se = typeof h, S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Se, oe);
|
|
604
604
|
}
|
|
605
|
-
var Te = p0(h,
|
|
605
|
+
var Te = p0(h, _, L, $e, Ce);
|
|
606
606
|
if (Te == null)
|
|
607
607
|
return Te;
|
|
608
608
|
if (se) {
|
|
609
|
-
var Xe =
|
|
609
|
+
var Xe = _.children;
|
|
610
610
|
if (Xe !== void 0)
|
|
611
611
|
if (J)
|
|
612
612
|
if (Me(Xe)) {
|
|
@@ -621,11 +621,11 @@ Check the top-level render call using <` + j + ">.");
|
|
|
621
621
|
return h === r ? m0(Te) : h0(Te), Te;
|
|
622
622
|
}
|
|
623
623
|
}
|
|
624
|
-
function b0(h,
|
|
625
|
-
return fi(h,
|
|
624
|
+
function b0(h, _, L) {
|
|
625
|
+
return fi(h, _, L, !0);
|
|
626
626
|
}
|
|
627
|
-
function g0(h,
|
|
628
|
-
return fi(h,
|
|
627
|
+
function g0(h, _, L) {
|
|
628
|
+
return fi(h, _, L, !1);
|
|
629
629
|
}
|
|
630
630
|
var y0 = g0, w0 = b0;
|
|
631
631
|
Xt.Fragment = r, Xt.jsx = y0, Xt.jsxs = w0;
|
|
@@ -728,9 +728,9 @@ const L0 = "_checkboxLayout_bt7qx_1", D0 = "_checkboxLabel_bt7qx_4", M0 = "_chec
|
|
|
728
728
|
const [l, p] = be(i);
|
|
729
729
|
let c = {}, $, f = a ? "#9b9b9b" : "#ffffff";
|
|
730
730
|
if (t) {
|
|
731
|
-
const
|
|
732
|
-
if (t = ct.convert3HexTo6(t),
|
|
733
|
-
switch (
|
|
731
|
+
const C = Et(t);
|
|
732
|
+
if (t = ct.convert3HexTo6(t), C === "dark" || C === "light") {
|
|
733
|
+
switch (C) {
|
|
734
734
|
case "dark":
|
|
735
735
|
f = a ? l ? "#9b9b9b" : "#f9f9f9" : "#ffffff";
|
|
736
736
|
break;
|
|
@@ -741,31 +741,31 @@ const L0 = "_checkboxLayout_bt7qx_1", D0 = "_checkboxLabel_bt7qx_4", M0 = "_chec
|
|
|
741
741
|
f = "#9b9b9b";
|
|
742
742
|
break;
|
|
743
743
|
}
|
|
744
|
-
const
|
|
744
|
+
const y = a ? "#f9f9f9" : l ? t : "#ffffff";
|
|
745
745
|
$ = a ? "#e4e4e4" : t == "#ffffff" ? "#333333" : t, l && (c = {
|
|
746
|
-
backgroundColor:
|
|
746
|
+
backgroundColor: y,
|
|
747
747
|
borderColor: $,
|
|
748
748
|
outlineColor: $
|
|
749
749
|
});
|
|
750
750
|
}
|
|
751
751
|
}
|
|
752
|
-
const b = a ? ot.checkboxDisabled : "", S = [ot.checkboxLayout, ot[n], b, d].filter(Boolean).join(" "), w = (
|
|
753
|
-
|
|
752
|
+
const b = a ? ot.checkboxDisabled : "", S = [ot.checkboxLayout, ot[n], b, d].filter(Boolean).join(" "), w = (C) => {
|
|
753
|
+
C.key != "Enter" && (C.preventDefault(), o?.(C.target.checked), p(!l));
|
|
754
754
|
};
|
|
755
|
-
return /* @__PURE__ */ N.jsx(N.Fragment, { children: /* @__PURE__ */ N.jsx("div", { className: S, "data-testid": "checkbox", children: /* @__PURE__ */ N.jsxs("label", { className: ot.checkboxLabel, htmlFor: r, onClick: (
|
|
755
|
+
return /* @__PURE__ */ N.jsx(N.Fragment, { children: /* @__PURE__ */ N.jsx("div", { className: S, "data-testid": "checkbox", children: /* @__PURE__ */ N.jsxs("label", { className: ot.checkboxLabel, htmlFor: r, onClick: (C) => w(C), children: [
|
|
756
756
|
/* @__PURE__ */ N.jsxs(
|
|
757
757
|
"div",
|
|
758
758
|
{
|
|
759
759
|
className: ot.checkboxInnerContainer,
|
|
760
760
|
tabIndex: s || a ? -1 : 0,
|
|
761
|
-
onKeyPress: (
|
|
761
|
+
onKeyPress: (C) => w(C),
|
|
762
762
|
"data-testid": "checkbox-inner-container",
|
|
763
763
|
children: [
|
|
764
764
|
/* @__PURE__ */ N.jsx(
|
|
765
765
|
"input",
|
|
766
766
|
{
|
|
767
767
|
className: ot.checkboxInput,
|
|
768
|
-
onChange: (
|
|
768
|
+
onChange: (C) => w(C),
|
|
769
769
|
type: "checkbox",
|
|
770
770
|
checked: l,
|
|
771
771
|
disabled: a,
|
|
@@ -819,46 +819,46 @@ const Z0 = "_textInputWrapper_1i9m6_1", X0 = "_textInput_1i9m6_1", hi = {
|
|
|
819
819
|
var M = {}, pr = { exports: {} };
|
|
820
820
|
(function(e, t) {
|
|
821
821
|
(function(n, r) {
|
|
822
|
-
var i = "1.0.37", a = "", d = "?", o = "function", u = "undefined", s = "object", v = "string", m = "major", l = "model", p = "name", c = "type", $ = "vendor", f = "version", b = "architecture", S = "console", w = "mobile",
|
|
822
|
+
var i = "1.0.37", a = "", d = "?", o = "function", u = "undefined", s = "object", v = "string", m = "major", l = "model", p = "name", c = "type", $ = "vendor", f = "version", b = "architecture", S = "console", w = "mobile", C = "tablet", y = "smarttv", P = "wearable", U = "embedded", I = 500, T = "Amazon", q = "Apple", ne = "ASUS", ie = "BlackBerry", E = "Browser", Z = "Chrome", ae = "Edge", de = "Firefox", H = "Google", ce = "Huawei", ue = "LG", O = "Microsoft", F = "Motorola", W = "Opera", B = "Samsung", x = "Sharp", R = "Sony", k = "Xiaomi", G = "Zebra", Y = "Facebook", te = "Chromium OS", ee = "Mac OS", Ne = function(re, fe) {
|
|
823
823
|
var z = {};
|
|
824
|
-
for (var we in
|
|
825
|
-
fe[we] && fe[we].length % 2 === 0 ? z[we] = fe[we].concat(
|
|
824
|
+
for (var we in re)
|
|
825
|
+
fe[we] && fe[we].length % 2 === 0 ? z[we] = fe[we].concat(re[we]) : z[we] = re[we];
|
|
826
826
|
return z;
|
|
827
|
-
}, g = function(
|
|
828
|
-
for (var fe = {}, z = 0; z <
|
|
829
|
-
fe[
|
|
827
|
+
}, g = function(re) {
|
|
828
|
+
for (var fe = {}, z = 0; z < re.length; z++)
|
|
829
|
+
fe[re[z].toUpperCase()] = re[z];
|
|
830
830
|
return fe;
|
|
831
|
-
}, K = function(
|
|
832
|
-
return typeof
|
|
833
|
-
}, ye = function(
|
|
834
|
-
return
|
|
835
|
-
}, xe = function(
|
|
836
|
-
return typeof
|
|
837
|
-
}, Le = function(
|
|
838
|
-
if (typeof
|
|
839
|
-
return
|
|
840
|
-
}, Ve = function(
|
|
831
|
+
}, K = function(re, fe) {
|
|
832
|
+
return typeof re === v ? ye(fe).indexOf(ye(re)) !== -1 : !1;
|
|
833
|
+
}, ye = function(re) {
|
|
834
|
+
return re.toLowerCase();
|
|
835
|
+
}, xe = function(re) {
|
|
836
|
+
return typeof re === v ? re.replace(/[^\d\.]/g, a).split(".")[0] : r;
|
|
837
|
+
}, Le = function(re, fe) {
|
|
838
|
+
if (typeof re === v)
|
|
839
|
+
return re = re.replace(/^\s\s*/, a), typeof fe === u ? re : re.substring(0, I);
|
|
840
|
+
}, Ve = function(re, fe) {
|
|
841
841
|
for (var z = 0, we, et, Ke, le, X, Ze; z < fe.length && !X; ) {
|
|
842
842
|
var zt = fe[z], fn = fe[z + 1];
|
|
843
843
|
for (we = et = 0; we < zt.length && !X && zt[we]; )
|
|
844
|
-
if (X = zt[we++].exec(
|
|
844
|
+
if (X = zt[we++].exec(re), X)
|
|
845
845
|
for (Ke = 0; Ke < fn.length; Ke++)
|
|
846
846
|
Ze = X[++et], le = fn[Ke], typeof le === s && le.length > 0 ? le.length === 2 ? typeof le[1] == o ? this[le[0]] = le[1].call(this, Ze) : this[le[0]] = le[1] : le.length === 3 ? typeof le[1] === o && !(le[1].exec && le[1].test) ? this[le[0]] = Ze ? le[1].call(this, Ze, le[2]) : r : this[le[0]] = Ze ? Ze.replace(le[1], le[2]) : r : le.length === 4 && (this[le[0]] = Ze ? le[3].call(this, Ze.replace(le[1], le[2])) : r) : this[le] = Ze || r;
|
|
847
847
|
z += 2;
|
|
848
848
|
}
|
|
849
|
-
}, dt = function(
|
|
849
|
+
}, dt = function(re, fe) {
|
|
850
850
|
for (var z in fe)
|
|
851
851
|
if (typeof fe[z] === s && fe[z].length > 0) {
|
|
852
852
|
for (var we = 0; we < fe[z].length; we++)
|
|
853
|
-
if (K(fe[z][we],
|
|
853
|
+
if (K(fe[z][we], re))
|
|
854
854
|
return z === d ? r : z;
|
|
855
|
-
} else if (K(fe[z],
|
|
855
|
+
} else if (K(fe[z], re))
|
|
856
856
|
return z === d ? r : z;
|
|
857
|
-
return
|
|
858
|
-
}, De = { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }, It = { 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" }, cn = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [f, [p, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [f, [p, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [p, f], [/opios[\/ ]+([\w\.]+)/i], [f, [p, W + " Mini"]], [/\bopr\/([\w\.]+)/i], [f, [p, W]], [/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i], [f, [p, "Baidu"]], [/(kindle)\/([\w\.]+)/i, /(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i, /(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i, /(?:ms|\()(ie) ([\w\.]+)/i, /(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i, /(heytap|ovi)browser\/([\d\.]+)/i, /(weibo)__([\d\.]+)/i], [p, f], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [f, [p, "UC" + E]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i, /micromessenger\/([\w\.]+)/i], [f, [p, "WeChat"]], [/konqueror\/([\w\.]+)/i], [f, [p, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [f, [p, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [f, [p, "Yandex"]], [/slbrowser\/([\w\.]+)/i], [f, [p, "Smart Lenovo " + E]], [/(avast|avg)\/([\w\.]+)/i], [[p, /(.+)/, "$1 Secure " + E], f], [/\bfocus\/([\w\.]+)/i], [f, [p, ae + " Focus"]], [/\bopt\/([\w\.]+)/i], [f, [p, W + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [f, [p, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [f, [p, "Dolphin"]], [/coast\/([\w\.]+)/i], [f, [p, W + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [f, [p, "MIUI " + E]], [/fxios\/([-\w\.]+)/i], [f, [p, ae]], [/\bqihu|(qi?ho?o?|360)browser/i], [[p, "360 " + E]], [/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i], [[p, /(.+)/, "$1 " + E], f], [/samsungbrowser\/([\w\.]+)/i], [f, [p, U + " Internet"]], [/(comodo_dragon)\/([\w\.]+)/i], [[p, /_/g, " "], f], [/metasr[\/ ]?([\d\.]+)/i], [f, [p, "Sogou Explorer"]], [/(sogou)mo\w+\/([\d\.]+)/i], [[p, "Sogou Mobile"], f], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i], [p, f], [/(lbbrowser)/i, /\[(linkedin)app\]/i], [p], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[p, Y], f], [/(Klarna)\/([\w\.]+)/i, /(kakao(?:talk|story))[\/ ]([\w\.]+)/i, /(naver)\(.*?(\d+\.[\w\.]+).*\)/i, /safari (line)\/([\w\.]+)/i, /\b(line)\/([\w\.]+)\/iab/i, /(alipay)client\/([\w\.]+)/i, /(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i], [p, f], [/\bgsa\/([\w\.]+) .*safari\//i], [f, [p, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [f, [p, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [f, [p, Z + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[p, Z + " WebView"], f], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [f, [p, "Android " + E]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [p, f], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [f, [p, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [f, p], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [p, [f, dt, De]], [/(webkit|khtml)\/([\w\.]+)/i], [p, f], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[p, "Netscape"], f], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [f, [p, ae + " Reality"]], [/ekiohf.+(flow)\/([\w\.]+)/i, /(swiftfox)/i, /(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i, /(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i, /(firefox)\/([\w\.]+)/i, /(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i, /(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i, /(links) \(([\w\.]+)/i, /panasonic;(viera)/i], [p, f], [/(cobalt)\/([\w\.]+)/i], [p, [f, /master.|lts./, ""]]], cpu: [[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i], [[b, "amd64"]], [/(ia32(?=;))/i], [[b, ye]], [/((?:i[346]|x)86)[;\)]/i], [[b, "ia32"]], [/\b(aarch64|arm(v?8e?l?|_?64))\b/i], [[b, "arm64"]], [/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i], [[b, "armhf"]], [/windows (ce|mobile); ppc;/i], [[b, "arm"]], [/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i], [[b, /ower/, a, ye]], [/(sun4\w)[;\)]/i], [[b, "sparc"]], [/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i], [[b, ye]]], device: [[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i], [l, [$, U], [c, O]], [/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]([-\w]+)/i, /sec-(sgh\w+)/i], [l, [$, U], [c, w]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [l, [$, q], [c, w]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [l, [$, q], [c, O]], [/(macintosh);/i], [l, [$, q]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [l, [$, P], [c, w]], [/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i], [l, [$, ce], [c, O]], [/(?:huawei|honor)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [l, [$, ce], [c, w]], [/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i, /\b; (\w+) build\/hm\1/i, /\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i, /\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i, /oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i, /\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i], [[l, /_/g, " "], [$, F], [c, w]], [/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i, /\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i], [[l, /_/g, " "], [$, F], [c, O]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [l, [$, "OPPO"], [c, w]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [l, [$, "Vivo"], [c, w]], [/\b(rmx[1-3]\d{3})(?: bui|;|\))/i], [l, [$, "Realme"], [c, w]], [/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i, /\bmot(?:orola)?[- ](\w*)/i, /((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i], [l, [$, A], [c, w]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [l, [$, A], [c, O]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [l, [$, ue], [c, O]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i, /\blg-?([\d\w]+) bui/i], [l, [$, ue], [c, w]], [/(ideatab[-\w ]+)/i, /lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i], [l, [$, "Lenovo"], [c, O]], [/(?:maemo|nokia).*(n900|lumia \d+)/i, /nokia[-_ ]?([-\w\.]*)/i], [[l, /_/g, " "], [$, "Nokia"], [c, w]], [/(pixel c)\b/i], [l, [$, H], [c, O]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [l, [$, H], [c, w]], [/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i], [l, [$, _], [c, w]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[l, "Xperia Tablet"], [$, _], [c, O]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [l, [$, "OnePlus"], [c, w]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [l, [$, R], [c, O]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[l, /(.+)/g, "Fire Phone $1"], [$, R], [c, w]], [/(playbook);[-\w\),; ]+(rim)/i], [l, $, [c, O]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [l, [$, oe], [c, w]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [l, [$, re], [c, O]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [l, [$, re], [c, w]], [/(nexus 9)/i], [l, [$, "HTC"], [c, O]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [$, [l, /_/g, " "], [c, w]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [l, [$, "Acer"], [c, O]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [l, [$, "Meizu"], [c, w]], [/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i], [l, [$, "Ulefone"], [c, w]], [/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i, /(hp) ([\w ]+\w)/i, /(asus)-?(\w+)/i, /(microsoft); (lumia[\w ]+)/i, /(lenovo)[-_ ]?([-\w]+)/i, /(jolla)/i, /(oppo) ?([\w ]+) bui/i], [$, l, [c, w]], [/(kobo)\s(ereader|touch)/i, /(archos) (gamepad2?)/i, /(hp).+(touchpad(?!.+tablet)|tablet)/i, /(kindle)\/([\w\.]+)/i, /(nook)[\w ]+build\/(\w+)/i, /(dell) (strea[kpr\d ]*[\dko])/i, /(le[- ]+pan)[- ]+(\w{1,9}) bui/i, /(trinity)[- ]*(t\d{3}) bui/i, /(gigaset)[- ]+(q\w{1,9}) bui/i, /(vodafone) ([\w ]+)(?:\)| bui)/i], [$, l, [c, O]], [/(surface duo)/i], [l, [$, x], [c, O]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [l, [$, "Fairphone"], [c, w]], [/(u304aa)/i], [l, [$, "AT&T"], [c, w]], [/\bsie-(\w*)/i], [l, [$, "Siemens"], [c, w]], [/\b(rct\w+) b/i], [l, [$, "RCA"], [c, O]], [/\b(venue[\d ]{2,7}) b/i], [l, [$, "Dell"], [c, O]], [/\b(q(?:mv|ta)\w+) b/i], [l, [$, "Verizon"], [c, O]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [l, [$, "Barnes & Noble"], [c, O]], [/\b(tm\d{3}\w+) b/i], [l, [$, "NuVision"], [c, O]], [/\b(k88) b/i], [l, [$, "ZTE"], [c, O]], [/\b(nx\d{3}j) b/i], [l, [$, "ZTE"], [c, w]], [/\b(gen\d{3}) b.+49h/i], [l, [$, "Swiss"], [c, w]], [/\b(zur\d{3}) b/i], [l, [$, "Swiss"], [c, O]], [/\b((zeki)?tb.*\b) b/i], [l, [$, "Zeki"], [c, O]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[$, "Dragon Touch"], l, [c, O]], [/\b(ns-?\w{0,9}) b/i], [l, [$, "Insignia"], [c, O]], [/\b((nxa|next)-?\w{0,9}) b/i], [l, [$, "NextBook"], [c, O]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[$, "Voice"], l, [c, w]], [/\b(lvtel\-)?(v1[12]) b/i], [[$, "LvTel"], l, [c, w]], [/\b(ph-1) /i], [l, [$, "Essential"], [c, w]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [l, [$, "Envizen"], [c, O]], [/\b(trio[-\w\. ]+) b/i], [l, [$, "MachSpeed"], [c, O]], [/\btu_(1491) b/i], [l, [$, "Rotor"], [c, O]], [/(shield[\w ]+) b/i], [l, [$, "Nvidia"], [c, O]], [/(sprint) (\w+)/i], [$, l, [c, w]], [/(kin\.[onetw]{3})/i], [[l, /\./g, " "], [$, x], [c, w]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [l, [$, G], [c, O]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [l, [$, G], [c, w]], [/smart-tv.+(samsung)/i], [$, [c, C]], [/hbbtv.+maple;(\d+)/i], [[l, /^/, "SmartTV"], [$, U], [c, C]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[$, ue], [c, C]], [/(apple) ?tv/i], [$, [l, q + " TV"], [c, C]], [/crkey/i], [[l, Z + "cast"], [$, H], [c, C]], [/droid.+aft(\w+)( bui|\))/i], [l, [$, R], [c, C]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [l, [$, P], [c, C]], [/(bravia[\w ]+)( bui|\))/i], [l, [$, _], [c, C]], [/(mitv-\w{5}) bui/i], [l, [$, F], [c, C]], [/Hbbtv.*(technisat) (.*);/i], [$, l, [c, C]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[$, Le], [l, Le], [c, C]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[c, C]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [$, l, [c, S]], [/droid.+; (shield) bui/i], [l, [$, "Nvidia"], [c, S]], [/(playstation [345portablevi]+)/i], [l, [$, _], [c, S]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [l, [$, x], [c, S]], [/((pebble))app/i], [$, l, [c, y]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [l, [$, q], [c, y]], [/droid.+; (glass) \d/i], [l, [$, H], [c, y]], [/droid.+; (wt63?0{2,3})\)/i], [l, [$, G], [c, y]], [/(quest( 2| pro)?)/i], [l, [$, Y], [c, y]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [$, [c, L]], [/(aeobc)\b/i], [l, [$, R], [c, L]], [/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i], [l, [c, w]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [l, [c, O]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[c, O]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[c, w]], [/(android[-\w\. ]{0,9});.+buil/i], [l, [$, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [f, [p, ie + "HTML"]], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [f, [p, "Blink"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i, /ekioh(flow)\/([\w\.]+)/i, /(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, /(icab)[\/ ]([23]\.[\d\.]+)/i, /\b(libweb)/i], [p, f], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [f, p]], os: [[/microsoft (windows) (vista|xp)/i], [p, f], [/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i], [p, [f, dt, It]], [/windows nt 6\.2; (arm)/i, /windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i, /(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[f, dt, It], [p, "Windows"]], [/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i, /(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[f, /_/g, "."], [p, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[p, ee], [f, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [f, p], [/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i, /(blackberry)\w*\/([\w\.]*)/i, /(tizen|kaios)[\/ ]([\w\.]+)/i, /\((series40);/i], [p, f], [/\(bb(10);/i], [f, [p, oe]], [/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i], [f, [p, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [f, [p, ae + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [f, [p, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [f, [p, "watchOS"]], [/crkey\/([\d\.]+)/i], [f, [p, Z + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[p, te], f], [/panasonic;(viera)/i, /(netrange)mmh/i, /(nettv)\/(\d+\.[\w\.]+)/i, /(nintendo|playstation) ([wids345portablevuch]+)/i, /(xbox); +xbox ([^\);]+)/i, /\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i, /(mint)[\/\(\) ]?(\w*)/i, /(mageia|vectorlinux)[; ]/i, /([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i, /(hurd|linux) ?([\w\.]*)/i, /(gnu) ?([\w\.]*)/i, /\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i, /(haiku) (\w+)/i], [p, f], [/(sunos) ?([\w\.\d]*)/i], [[p, "Solaris"], f], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [p, f]] }, Me = function(ne, fe) {
|
|
859
|
-
if (typeof
|
|
860
|
-
return new Me(
|
|
861
|
-
var z = typeof n !== u && n.navigator ? n.navigator : r, we =
|
|
857
|
+
return re;
|
|
858
|
+
}, De = { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }, It = { 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" }, cn = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [f, [p, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [f, [p, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [p, f], [/opios[\/ ]+([\w\.]+)/i], [f, [p, W + " Mini"]], [/\bopr\/([\w\.]+)/i], [f, [p, W]], [/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i], [f, [p, "Baidu"]], [/(kindle)\/([\w\.]+)/i, /(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i, /(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i, /(?:ms|\()(ie) ([\w\.]+)/i, /(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i, /(heytap|ovi)browser\/([\d\.]+)/i, /(weibo)__([\d\.]+)/i], [p, f], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [f, [p, "UC" + E]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i, /micromessenger\/([\w\.]+)/i], [f, [p, "WeChat"]], [/konqueror\/([\w\.]+)/i], [f, [p, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [f, [p, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [f, [p, "Yandex"]], [/slbrowser\/([\w\.]+)/i], [f, [p, "Smart Lenovo " + E]], [/(avast|avg)\/([\w\.]+)/i], [[p, /(.+)/, "$1 Secure " + E], f], [/\bfocus\/([\w\.]+)/i], [f, [p, de + " Focus"]], [/\bopt\/([\w\.]+)/i], [f, [p, W + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [f, [p, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [f, [p, "Dolphin"]], [/coast\/([\w\.]+)/i], [f, [p, W + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [f, [p, "MIUI " + E]], [/fxios\/([-\w\.]+)/i], [f, [p, de]], [/\bqihu|(qi?ho?o?|360)browser/i], [[p, "360 " + E]], [/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i], [[p, /(.+)/, "$1 " + E], f], [/samsungbrowser\/([\w\.]+)/i], [f, [p, B + " Internet"]], [/(comodo_dragon)\/([\w\.]+)/i], [[p, /_/g, " "], f], [/metasr[\/ ]?([\d\.]+)/i], [f, [p, "Sogou Explorer"]], [/(sogou)mo\w+\/([\d\.]+)/i], [[p, "Sogou Mobile"], f], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i], [p, f], [/(lbbrowser)/i, /\[(linkedin)app\]/i], [p], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[p, Y], f], [/(Klarna)\/([\w\.]+)/i, /(kakao(?:talk|story))[\/ ]([\w\.]+)/i, /(naver)\(.*?(\d+\.[\w\.]+).*\)/i, /safari (line)\/([\w\.]+)/i, /\b(line)\/([\w\.]+)\/iab/i, /(alipay)client\/([\w\.]+)/i, /(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i], [p, f], [/\bgsa\/([\w\.]+) .*safari\//i], [f, [p, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [f, [p, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [f, [p, Z + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[p, Z + " WebView"], f], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [f, [p, "Android " + E]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [p, f], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [f, [p, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [f, p], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [p, [f, dt, De]], [/(webkit|khtml)\/([\w\.]+)/i], [p, f], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[p, "Netscape"], f], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [f, [p, de + " Reality"]], [/ekiohf.+(flow)\/([\w\.]+)/i, /(swiftfox)/i, /(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i, /(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i, /(firefox)\/([\w\.]+)/i, /(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i, /(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i, /(links) \(([\w\.]+)/i, /panasonic;(viera)/i], [p, f], [/(cobalt)\/([\w\.]+)/i], [p, [f, /master.|lts./, ""]]], cpu: [[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i], [[b, "amd64"]], [/(ia32(?=;))/i], [[b, ye]], [/((?:i[346]|x)86)[;\)]/i], [[b, "ia32"]], [/\b(aarch64|arm(v?8e?l?|_?64))\b/i], [[b, "arm64"]], [/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i], [[b, "armhf"]], [/windows (ce|mobile); ppc;/i], [[b, "arm"]], [/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i], [[b, /ower/, a, ye]], [/(sun4\w)[;\)]/i], [[b, "sparc"]], [/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i], [[b, ye]]], device: [[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i], [l, [$, B], [c, C]], [/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]([-\w]+)/i, /sec-(sgh\w+)/i], [l, [$, B], [c, w]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [l, [$, q], [c, w]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [l, [$, q], [c, C]], [/(macintosh);/i], [l, [$, q]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [l, [$, x], [c, w]], [/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i], [l, [$, ce], [c, C]], [/(?:huawei|honor)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [l, [$, ce], [c, w]], [/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i, /\b; (\w+) build\/hm\1/i, /\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i, /\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i, /oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i, /\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i], [[l, /_/g, " "], [$, k], [c, w]], [/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i, /\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i], [[l, /_/g, " "], [$, k], [c, C]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [l, [$, "OPPO"], [c, w]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [l, [$, "Vivo"], [c, w]], [/\b(rmx[1-3]\d{3})(?: bui|;|\))/i], [l, [$, "Realme"], [c, w]], [/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i, /\bmot(?:orola)?[- ](\w*)/i, /((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i], [l, [$, F], [c, w]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [l, [$, F], [c, C]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [l, [$, ue], [c, C]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i, /\blg-?([\d\w]+) bui/i], [l, [$, ue], [c, w]], [/(ideatab[-\w ]+)/i, /lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i], [l, [$, "Lenovo"], [c, C]], [/(?:maemo|nokia).*(n900|lumia \d+)/i, /nokia[-_ ]?([-\w\.]*)/i], [[l, /_/g, " "], [$, "Nokia"], [c, w]], [/(pixel c)\b/i], [l, [$, H], [c, C]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [l, [$, H], [c, w]], [/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i], [l, [$, R], [c, w]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[l, "Xperia Tablet"], [$, R], [c, C]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [l, [$, "OnePlus"], [c, w]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [l, [$, T], [c, C]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[l, /(.+)/g, "Fire Phone $1"], [$, T], [c, w]], [/(playbook);[-\w\),; ]+(rim)/i], [l, $, [c, C]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [l, [$, ie], [c, w]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [l, [$, ne], [c, C]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [l, [$, ne], [c, w]], [/(nexus 9)/i], [l, [$, "HTC"], [c, C]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [$, [l, /_/g, " "], [c, w]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [l, [$, "Acer"], [c, C]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [l, [$, "Meizu"], [c, w]], [/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i], [l, [$, "Ulefone"], [c, w]], [/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i, /(hp) ([\w ]+\w)/i, /(asus)-?(\w+)/i, /(microsoft); (lumia[\w ]+)/i, /(lenovo)[-_ ]?([-\w]+)/i, /(jolla)/i, /(oppo) ?([\w ]+) bui/i], [$, l, [c, w]], [/(kobo)\s(ereader|touch)/i, /(archos) (gamepad2?)/i, /(hp).+(touchpad(?!.+tablet)|tablet)/i, /(kindle)\/([\w\.]+)/i, /(nook)[\w ]+build\/(\w+)/i, /(dell) (strea[kpr\d ]*[\dko])/i, /(le[- ]+pan)[- ]+(\w{1,9}) bui/i, /(trinity)[- ]*(t\d{3}) bui/i, /(gigaset)[- ]+(q\w{1,9}) bui/i, /(vodafone) ([\w ]+)(?:\)| bui)/i], [$, l, [c, C]], [/(surface duo)/i], [l, [$, O], [c, C]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [l, [$, "Fairphone"], [c, w]], [/(u304aa)/i], [l, [$, "AT&T"], [c, w]], [/\bsie-(\w*)/i], [l, [$, "Siemens"], [c, w]], [/\b(rct\w+) b/i], [l, [$, "RCA"], [c, C]], [/\b(venue[\d ]{2,7}) b/i], [l, [$, "Dell"], [c, C]], [/\b(q(?:mv|ta)\w+) b/i], [l, [$, "Verizon"], [c, C]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [l, [$, "Barnes & Noble"], [c, C]], [/\b(tm\d{3}\w+) b/i], [l, [$, "NuVision"], [c, C]], [/\b(k88) b/i], [l, [$, "ZTE"], [c, C]], [/\b(nx\d{3}j) b/i], [l, [$, "ZTE"], [c, w]], [/\b(gen\d{3}) b.+49h/i], [l, [$, "Swiss"], [c, w]], [/\b(zur\d{3}) b/i], [l, [$, "Swiss"], [c, C]], [/\b((zeki)?tb.*\b) b/i], [l, [$, "Zeki"], [c, C]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[$, "Dragon Touch"], l, [c, C]], [/\b(ns-?\w{0,9}) b/i], [l, [$, "Insignia"], [c, C]], [/\b((nxa|next)-?\w{0,9}) b/i], [l, [$, "NextBook"], [c, C]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[$, "Voice"], l, [c, w]], [/\b(lvtel\-)?(v1[12]) b/i], [[$, "LvTel"], l, [c, w]], [/\b(ph-1) /i], [l, [$, "Essential"], [c, w]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [l, [$, "Envizen"], [c, C]], [/\b(trio[-\w\. ]+) b/i], [l, [$, "MachSpeed"], [c, C]], [/\btu_(1491) b/i], [l, [$, "Rotor"], [c, C]], [/(shield[\w ]+) b/i], [l, [$, "Nvidia"], [c, C]], [/(sprint) (\w+)/i], [$, l, [c, w]], [/(kin\.[onetw]{3})/i], [[l, /\./g, " "], [$, O], [c, w]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [l, [$, G], [c, C]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [l, [$, G], [c, w]], [/smart-tv.+(samsung)/i], [$, [c, y]], [/hbbtv.+maple;(\d+)/i], [[l, /^/, "SmartTV"], [$, B], [c, y]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[$, ue], [c, y]], [/(apple) ?tv/i], [$, [l, q + " TV"], [c, y]], [/crkey/i], [[l, Z + "cast"], [$, H], [c, y]], [/droid.+aft(\w+)( bui|\))/i], [l, [$, T], [c, y]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [l, [$, x], [c, y]], [/(bravia[\w ]+)( bui|\))/i], [l, [$, R], [c, y]], [/(mitv-\w{5}) bui/i], [l, [$, k], [c, y]], [/Hbbtv.*(technisat) (.*);/i], [$, l, [c, y]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[$, Le], [l, Le], [c, y]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[c, y]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [$, l, [c, S]], [/droid.+; (shield) bui/i], [l, [$, "Nvidia"], [c, S]], [/(playstation [345portablevi]+)/i], [l, [$, R], [c, S]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [l, [$, O], [c, S]], [/((pebble))app/i], [$, l, [c, P]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [l, [$, q], [c, P]], [/droid.+; (glass) \d/i], [l, [$, H], [c, P]], [/droid.+; (wt63?0{2,3})\)/i], [l, [$, G], [c, P]], [/(quest( 2| pro)?)/i], [l, [$, Y], [c, P]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [$, [c, U]], [/(aeobc)\b/i], [l, [$, T], [c, U]], [/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i], [l, [c, w]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [l, [c, C]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[c, C]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[c, w]], [/(android[-\w\. ]{0,9});.+buil/i], [l, [$, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [f, [p, ae + "HTML"]], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [f, [p, "Blink"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i, /ekioh(flow)\/([\w\.]+)/i, /(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, /(icab)[\/ ]([23]\.[\d\.]+)/i, /\b(libweb)/i], [p, f], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [f, p]], os: [[/microsoft (windows) (vista|xp)/i], [p, f], [/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i], [p, [f, dt, It]], [/windows nt 6\.2; (arm)/i, /windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i, /(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[f, dt, It], [p, "Windows"]], [/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i, /(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[f, /_/g, "."], [p, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[p, ee], [f, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [f, p], [/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i, /(blackberry)\w*\/([\w\.]*)/i, /(tizen|kaios)[\/ ]([\w\.]+)/i, /\((series40);/i], [p, f], [/\(bb(10);/i], [f, [p, ie]], [/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i], [f, [p, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [f, [p, de + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [f, [p, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [f, [p, "watchOS"]], [/crkey\/([\d\.]+)/i], [f, [p, Z + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[p, te], f], [/panasonic;(viera)/i, /(netrange)mmh/i, /(nettv)\/(\d+\.[\w\.]+)/i, /(nintendo|playstation) ([wids345portablevuch]+)/i, /(xbox); +xbox ([^\);]+)/i, /\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i, /(mint)[\/\(\) ]?(\w*)/i, /(mageia|vectorlinux)[; ]/i, /([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i, /(hurd|linux) ?([\w\.]*)/i, /(gnu) ?([\w\.]*)/i, /\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i, /(haiku) (\w+)/i], [p, f], [/(sunos) ?([\w\.\d]*)/i], [[p, "Solaris"], f], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [p, f]] }, Me = function(re, fe) {
|
|
859
|
+
if (typeof re === s && (fe = re, re = r), !(this instanceof Me))
|
|
860
|
+
return new Me(re, fe).getResult();
|
|
861
|
+
var z = typeof n !== u && n.navigator ? n.navigator : r, we = re || (z && z.userAgent ? z.userAgent : a), et = z && z.userAgentData ? z.userAgentData : r, Ke = fe ? Ne(cn, fe) : cn, le = z && z.userAgent == we;
|
|
862
862
|
return this.getBrowser = function() {
|
|
863
863
|
var X = {};
|
|
864
864
|
return X[p] = r, X[f] = r, Ve.call(X, we, Ke.browser), X[m] = xe(X[f]), le && z && z.brave && typeof z.brave.isBrave == o && (X[p] = "Brave"), X;
|
|
@@ -867,7 +867,7 @@ var M = {}, pr = { exports: {} };
|
|
|
867
867
|
return X[b] = r, Ve.call(X, we, Ke.cpu), X;
|
|
868
868
|
}, this.getDevice = function() {
|
|
869
869
|
var X = {};
|
|
870
|
-
return X[$] = r, X[l] = r, X[c] = r, Ve.call(X, we, Ke.device), le && !X[c] && et && et.mobile && (X[c] = w), le && X[l] == "Macintosh" && z && typeof z.standalone !== u && z.maxTouchPoints && z.maxTouchPoints > 2 && (X[l] = "iPad", X[c] =
|
|
870
|
+
return X[$] = r, X[l] = r, X[c] = r, Ve.call(X, we, Ke.device), le && !X[c] && et && et.mobile && (X[c] = w), le && X[l] == "Macintosh" && z && typeof z.standalone !== u && z.maxTouchPoints && z.maxTouchPoints > 2 && (X[l] = "iPad", X[c] = C), X;
|
|
871
871
|
}, this.getEngine = function() {
|
|
872
872
|
var X = {};
|
|
873
873
|
return X[p] = r, X[f] = r, Ve.call(X, we, Ke.engine), X;
|
|
@@ -879,17 +879,17 @@ var M = {}, pr = { exports: {} };
|
|
|
879
879
|
}, this.getUA = function() {
|
|
880
880
|
return we;
|
|
881
881
|
}, this.setUA = function(X) {
|
|
882
|
-
return we = typeof X === v && X.length >
|
|
882
|
+
return we = typeof X === v && X.length > I ? Le(X, I) : X, this;
|
|
883
883
|
}, this.setUA(we), this;
|
|
884
884
|
};
|
|
885
|
-
Me.VERSION = i, Me.BROWSER = g([p, f, m]), Me.CPU = g([b]), Me.DEVICE = g([l, $, c, S, w,
|
|
885
|
+
Me.VERSION = i, Me.BROWSER = g([p, f, m]), Me.CPU = g([b]), Me.DEVICE = g([l, $, c, S, w, y, C, P, U]), Me.ENGINE = Me.OS = g([p, f]), e.exports && (t = e.exports = Me), t.UAParser = Me;
|
|
886
886
|
var wt = typeof n !== u && (n.jQuery || n.Zepto);
|
|
887
887
|
if (wt && !wt.ua) {
|
|
888
888
|
var Ft = new Me();
|
|
889
889
|
wt.ua = Ft.getResult(), wt.ua.get = function() {
|
|
890
890
|
return Ft.getUA();
|
|
891
|
-
}, wt.ua.set = function(
|
|
892
|
-
Ft.setUA(
|
|
891
|
+
}, wt.ua.set = function(re) {
|
|
892
|
+
Ft.setUA(re);
|
|
893
893
|
var fe = Ft.getResult();
|
|
894
894
|
for (var z in fe)
|
|
895
895
|
wt.ua[z] = fe[z];
|
|
@@ -902,7 +902,7 @@ Object.defineProperty(M, "__esModule", { value: !0 });
|
|
|
902
902
|
function Q0(e) {
|
|
903
903
|
return e && typeof e == "object" && "default" in e ? e.default : e;
|
|
904
904
|
}
|
|
905
|
-
var ke =
|
|
905
|
+
var ke = j, Oe = Q0(ke), Ja = J0, Nt = new Ja(), je = Nt.getBrowser(), eu = Nt.getCPU(), ze = Nt.getDevice(), Br = Nt.getEngine(), Tt = Nt.getOS(), an = Nt.getUA(), Qa = function(t) {
|
|
906
906
|
return Nt.setUA(t);
|
|
907
907
|
}, dn = function(t) {
|
|
908
908
|
if (!t) {
|
|
@@ -1612,11 +1612,11 @@ M.useDeviceData = zd;
|
|
|
1612
1612
|
M.useDeviceSelectors = vl;
|
|
1613
1613
|
M.useMobileOrientation = $l;
|
|
1614
1614
|
M.withOrientationChange = pl;
|
|
1615
|
-
const Cf =
|
|
1615
|
+
const Cf = j.memo(
|
|
1616
1616
|
Pt(
|
|
1617
1617
|
({ themeColor: e = "", onSubmit: t, style: n = {}, className: r = "", onInput: i, onFocus: a, onBlur: d, ...o }, u) => {
|
|
1618
1618
|
const [s, v] = be(!0), [m, l] = be(!1);
|
|
1619
|
-
e = ct.convert3HexTo6(e),
|
|
1619
|
+
e = ct.convert3HexTo6(e), pe(() => {
|
|
1620
1620
|
v(hl);
|
|
1621
1621
|
}, []);
|
|
1622
1622
|
const p = (w) => {
|
|
@@ -1716,14 +1716,14 @@ const Of = ({
|
|
|
1716
1716
|
className: a = "",
|
|
1717
1717
|
style: d = {}
|
|
1718
1718
|
}) => {
|
|
1719
|
-
const o = D(e), [u, s] = be(t), [v, m] = be(""), [l, p] = be(!1), [c, $] = be(!1), f = D(null), b = D(null), S = D(null), w = D(null),
|
|
1720
|
-
let
|
|
1721
|
-
const [E, Z] = be({ left: 0, top: 0 }), [
|
|
1719
|
+
const o = D(e), [u, s] = be(t), [v, m] = be(""), [l, p] = be(!1), [c, $] = be(!1), f = D(null), b = D(null), S = D(null), w = D(null), C = D(null), y = D(null), [P, U] = be(-1), I = D(0), T = D(0), [q, ne] = be(!1);
|
|
1720
|
+
let ie = {};
|
|
1721
|
+
const [E, Z] = be({ left: 0, top: 0 }), [ae, de] = be(null), H = D(!1), ce = D(null), ue = () => {
|
|
1722
1722
|
setTimeout(() => {
|
|
1723
1723
|
(f.current?.children[0]).focus();
|
|
1724
1724
|
}, 0);
|
|
1725
1725
|
};
|
|
1726
|
-
|
|
1726
|
+
pe(() => {
|
|
1727
1727
|
const g = (K) => {
|
|
1728
1728
|
b.current && !b.current.contains(K.target) && (p(!1), m(""), ue());
|
|
1729
1729
|
};
|
|
@@ -1731,40 +1731,40 @@ const Of = ({
|
|
|
1731
1731
|
document.removeEventListener("mousedown", g);
|
|
1732
1732
|
};
|
|
1733
1733
|
}, []);
|
|
1734
|
-
const
|
|
1735
|
-
|
|
1734
|
+
const O = () => {
|
|
1735
|
+
I.current = window.innerHeight, T.current = document.body.scrollHeight, ne(!0);
|
|
1736
1736
|
};
|
|
1737
|
-
|
|
1738
|
-
window.addEventListener("resize",
|
|
1737
|
+
pe(() => (O(), window.addEventListener("resize", O), () => {
|
|
1738
|
+
window.addEventListener("resize", O);
|
|
1739
1739
|
}), []);
|
|
1740
|
-
const
|
|
1740
|
+
const F = (g) => {
|
|
1741
1741
|
const K = document.getElementById("announcement");
|
|
1742
1742
|
K && (K.textContent = g, K.setAttribute("aria-live", "assertive"), setTimeout(() => {
|
|
1743
1743
|
K.textContent = "", K.setAttribute("aria-live", "off");
|
|
1744
1744
|
}, 1e3));
|
|
1745
1745
|
};
|
|
1746
|
-
|
|
1746
|
+
pe(() => {
|
|
1747
1747
|
const g = e.filter((K) => K.label.toLowerCase().includes(v.toLowerCase()));
|
|
1748
1748
|
o.current = g;
|
|
1749
1749
|
}, [e, v]);
|
|
1750
1750
|
const W = u.length > 0 ? u.map((g) => {
|
|
1751
1751
|
const K = e.find((ye) => ye.value === g);
|
|
1752
1752
|
return K?.label !== null ? K?.label : "";
|
|
1753
|
-
}).filter((g) => g !== "").join(", ") : "Select your option",
|
|
1753
|
+
}).filter((g) => g !== "").join(", ") : "Select your option", B = (g) => {
|
|
1754
1754
|
const K = e.find((ye) => ye.value === g);
|
|
1755
1755
|
if (K && !K.disable && (r === void 0 || u.length <= r)) {
|
|
1756
1756
|
const xe = u.includes(g) ? u.filter((Ve) => Ve !== g) : [...u, g];
|
|
1757
|
-
(r === void 0 || xe.length <= r) && l && (s(xe), n(xe),
|
|
1757
|
+
(r === void 0 || xe.length <= r) && l && (s(xe), n(xe), F(`${K?.label} ${xe.includes(g) ? "selected" : "not selected"}`));
|
|
1758
1758
|
}
|
|
1759
|
-
},
|
|
1760
|
-
|
|
1761
|
-
S.current ? S.current?.focus() : w.current?.focus(),
|
|
1759
|
+
}, x = (g) => {
|
|
1760
|
+
k(), p(g), setTimeout(() => {
|
|
1761
|
+
S.current ? S.current?.focus() : w.current?.focus(), F("use up and down arrow keys to navigate");
|
|
1762
1762
|
}, 0);
|
|
1763
|
-
},
|
|
1763
|
+
}, R = () => T.current - (I.current + window.scrollY), k = () => {
|
|
1764
1764
|
if (f.current) {
|
|
1765
1765
|
const g = f.current.getBoundingClientRect();
|
|
1766
1766
|
setTimeout(() => {
|
|
1767
|
-
const K = b?.current?.getBoundingClientRect(), ye =
|
|
1767
|
+
const K = b?.current?.getBoundingClientRect(), ye = R(), xe = I.current - g.bottom;
|
|
1768
1768
|
let Le;
|
|
1769
1769
|
if (K) {
|
|
1770
1770
|
const Ve = g.height, dt = g.top, De = K.height, It = De > dt + window.scrollY;
|
|
@@ -1776,55 +1776,55 @@ const Of = ({
|
|
|
1776
1776
|
}, 0);
|
|
1777
1777
|
}
|
|
1778
1778
|
};
|
|
1779
|
-
|
|
1780
|
-
window.removeEventListener("scroll",
|
|
1779
|
+
pe(() => (window.addEventListener("scroll", k), window.addEventListener("resize", k), () => {
|
|
1780
|
+
window.removeEventListener("scroll", k), window.removeEventListener("resize", k);
|
|
1781
1781
|
}), [l]);
|
|
1782
1782
|
const G = (g) => {
|
|
1783
1783
|
g.preventDefault(), g.key === "Shift" ? H.current = !0 : g.shiftKey && H.current && g.key === "Tab" || g.key === "Tab" ? (setTimeout(() => {
|
|
1784
1784
|
S.current ? S.current?.focus() : w.current?.focus();
|
|
1785
|
-
}, 0), H.current = !1) : g.key === "Escape" || g.key === "Enter" || g.key === "Space" || g.key === " " ? (
|
|
1785
|
+
}, 0), H.current = !1) : g.key === "Escape" || g.key === "Enter" || g.key === "Space" || g.key === " " ? (x(!1), ue()) : H.current = !1;
|
|
1786
1786
|
}, Y = (g) => {
|
|
1787
1787
|
const { key: K } = g;
|
|
1788
1788
|
if (K === "Tab" || g.shiftKey && K === "Tab")
|
|
1789
1789
|
setTimeout(() => {
|
|
1790
|
-
|
|
1790
|
+
C.current?.focus();
|
|
1791
1791
|
}, 0);
|
|
1792
1792
|
else if (K === "ArrowDown" || K === "ArrowUp") {
|
|
1793
1793
|
g.preventDefault(), setTimeout(() => {
|
|
1794
1794
|
w.current?.focus();
|
|
1795
1795
|
}, 0);
|
|
1796
|
-
let ye =
|
|
1797
|
-
if (K === "ArrowDown" ? ye = Math.min(
|
|
1798
|
-
const xe =
|
|
1799
|
-
|
|
1796
|
+
let ye = P;
|
|
1797
|
+
if (K === "ArrowDown" ? ye = Math.min(P + 1, o.current.length - 1) : K === "ArrowUp" && (ye = Math.max(P - 1, 0)), P === 0 && g.key === "ArrowUp" ? ye = o.current.length - 1 : P === o.current.length - 1 && g.key === "ArrowDown" && (ye = 0), U(ye), y.current && ye >= 0) {
|
|
1798
|
+
const xe = y.current.querySelectorAll(`.${Ae.optionsList}`)[ye], Le = xe.children[0].getAttribute("aria-checked"), Ve = `${xe.textContent} ${Le === "true" ? "selected" : "not selected"} ${ye + 1} out of ${o.current.length}`;
|
|
1799
|
+
F(Ve), xe && xe.scrollIntoView({
|
|
1800
1800
|
block: "nearest",
|
|
1801
1801
|
inline: "nearest"
|
|
1802
1802
|
});
|
|
1803
1803
|
}
|
|
1804
1804
|
} else
|
|
1805
|
-
K === "Enter" || K === "Space" || K === " " ?
|
|
1805
|
+
K === "Enter" || K === "Space" || K === " " ? P !== -1 && B(o.current[P].value) : K === "Escape" && (x(!1), ue());
|
|
1806
1806
|
};
|
|
1807
|
-
|
|
1808
|
-
|
|
1807
|
+
pe(() => {
|
|
1808
|
+
ae && clearTimeout(ae);
|
|
1809
1809
|
const g = setTimeout(() => {
|
|
1810
1810
|
const K = o.current.length ? `${o.current.length} results are available, use up and down arrow keys to navigate` : "No results available";
|
|
1811
|
-
l &&
|
|
1811
|
+
l && F(K);
|
|
1812
1812
|
}, 500);
|
|
1813
|
-
|
|
1813
|
+
de(g);
|
|
1814
1814
|
}, [v]);
|
|
1815
1815
|
const te = () => {
|
|
1816
1816
|
$(!0);
|
|
1817
1817
|
}, ee = () => {
|
|
1818
1818
|
$(!1);
|
|
1819
1819
|
};
|
|
1820
|
-
if (
|
|
1820
|
+
if (pe(() => {
|
|
1821
1821
|
const g = ce.current;
|
|
1822
1822
|
return g && (g.addEventListener("focus", te), g.addEventListener("blur", ee)), () => {
|
|
1823
1823
|
g && (g.removeEventListener("focus", te), g.removeEventListener("blur", ee));
|
|
1824
1824
|
};
|
|
1825
1825
|
}, [te, ee]), i) {
|
|
1826
1826
|
const g = Et(i);
|
|
1827
|
-
i = ct.convert3HexTo6(i), (g === "dark" || g === "light") && (
|
|
1827
|
+
i = ct.convert3HexTo6(i), (g === "dark" || g === "light") && (ie = {
|
|
1828
1828
|
borderBottomColor: i === "#ffffff" ? "#c8c8c8" : c || l ? i : "#333333"
|
|
1829
1829
|
});
|
|
1830
1830
|
}
|
|
@@ -1840,13 +1840,13 @@ const Of = ({
|
|
|
1840
1840
|
ref: ce,
|
|
1841
1841
|
onFocus: te,
|
|
1842
1842
|
onBlur: ee,
|
|
1843
|
-
onClick: () =>
|
|
1843
|
+
onClick: () => x(!l),
|
|
1844
1844
|
onKeyPress: (g) => {
|
|
1845
|
-
(g.key === " " || g.code === "Space" || g.code === "Enter") && (g.preventDefault(),
|
|
1845
|
+
(g.key === " " || g.code === "Space" || g.code === "Enter") && (g.preventDefault(), x(!l));
|
|
1846
1846
|
},
|
|
1847
1847
|
tabIndex: 0,
|
|
1848
1848
|
"data-testid": "selected-input",
|
|
1849
|
-
style: { ...
|
|
1849
|
+
style: { ...ie, ...d },
|
|
1850
1850
|
"aria-expanded": l,
|
|
1851
1851
|
"aria-haspopup": "listbox",
|
|
1852
1852
|
"aria-multiselectable": "true",
|
|
@@ -1859,7 +1859,7 @@ const Of = ({
|
|
|
1859
1859
|
"span",
|
|
1860
1860
|
{
|
|
1861
1861
|
className: Ae.dropDownIcon,
|
|
1862
|
-
onClick: () =>
|
|
1862
|
+
onClick: () => x(!l),
|
|
1863
1863
|
"data-testid": "arrow-button",
|
|
1864
1864
|
children: /* @__PURE__ */ N.jsx("svg", { width: "12px", height: "7px", viewBox: "0 0 12 7", version: "1.1", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ N.jsx("g", { stroke: "none", strokeWidth: "1", fill: "none", fillRule: "evenodd", children: /* @__PURE__ */ N.jsx("g", { transform: "translate(-2360.000000, -295.000000)", fill: "#666666", children: /* @__PURE__ */ N.jsx("g", { transform: "translate(2006.000000, 248.000000)", children: /* @__PURE__ */ N.jsx(
|
|
1865
1865
|
"path",
|
|
@@ -1912,14 +1912,14 @@ const Of = ({
|
|
|
1912
1912
|
}
|
|
1913
1913
|
}
|
|
1914
1914
|
) }),
|
|
1915
|
-
/* @__PURE__ */ N.jsx("ul", { ref:
|
|
1915
|
+
/* @__PURE__ */ N.jsx("ul", { ref: y, role: "listbox", children: o.current.map((g, K) => (
|
|
1916
1916
|
// eslint-disable-next-line jsx-a11y/role-supports-aria-props
|
|
1917
1917
|
/* @__PURE__ */ N.jsxs(
|
|
1918
1918
|
"li",
|
|
1919
1919
|
{
|
|
1920
|
-
className: `${Ae.optionsList} ${K ===
|
|
1921
|
-
onClick: () =>
|
|
1922
|
-
"aria-selected": K ===
|
|
1920
|
+
className: `${Ae.optionsList} ${K === P ? Ae.focused : ""}`,
|
|
1921
|
+
onClick: () => B(g.value),
|
|
1922
|
+
"aria-selected": K === P,
|
|
1923
1923
|
role: "option",
|
|
1924
1924
|
children: [
|
|
1925
1925
|
/* @__PURE__ */ N.jsx(
|
|
@@ -1961,7 +1961,7 @@ const Of = ({
|
|
|
1961
1961
|
onKeyDown: (g) => {
|
|
1962
1962
|
G(g);
|
|
1963
1963
|
},
|
|
1964
|
-
ref:
|
|
1964
|
+
ref: C,
|
|
1965
1965
|
children: "Done"
|
|
1966
1966
|
}
|
|
1967
1967
|
)
|
|
@@ -1992,11 +1992,11 @@ const Of = ({
|
|
|
1992
1992
|
const [u, s] = be(t), v = D({});
|
|
1993
1993
|
let m = {}, l;
|
|
1994
1994
|
const p = (c) => {
|
|
1995
|
-
const $ = e.find((
|
|
1995
|
+
const $ = e.find((C) => C.value === c);
|
|
1996
1996
|
if (!$ || $.disable)
|
|
1997
1997
|
return;
|
|
1998
1998
|
v.current[c]?.click();
|
|
1999
|
-
const S = u.includes(c) ? u.filter((
|
|
1999
|
+
const S = u.includes(c) ? u.filter((C) => C !== c) : [...u, c];
|
|
2000
2000
|
(r === void 0 || S.length <= r) && (s(S), n(S));
|
|
2001
2001
|
};
|
|
2002
2002
|
if (i) {
|
|
@@ -2172,7 +2172,7 @@ let d1 = class {
|
|
|
2172
2172
|
return this.handoffState === "complete";
|
|
2173
2173
|
}
|
|
2174
2174
|
}, _t = new d1(), Ee = (e, t) => {
|
|
2175
|
-
_t.isServer ?
|
|
2175
|
+
_t.isServer ? pe(e, t) : C0(e, t);
|
|
2176
2176
|
};
|
|
2177
2177
|
function it(e) {
|
|
2178
2178
|
let t = D(e);
|
|
@@ -2230,11 +2230,11 @@ function st() {
|
|
|
2230
2230
|
}
|
|
2231
2231
|
function mt() {
|
|
2232
2232
|
let [e] = be(st);
|
|
2233
|
-
return
|
|
2233
|
+
return pe(() => () => e.dispose(), [e]), e;
|
|
2234
2234
|
}
|
|
2235
2235
|
let V = function(e) {
|
|
2236
2236
|
let t = it(e);
|
|
2237
|
-
return
|
|
2237
|
+
return j.useCallback((...n) => t.current(...n), [t]);
|
|
2238
2238
|
};
|
|
2239
2239
|
function u1() {
|
|
2240
2240
|
let e = typeof document > "u";
|
|
@@ -2248,8 +2248,8 @@ function Vr() {
|
|
|
2248
2248
|
}, [t]), $t.useEffect(() => _t.handoff(), []), e ? !1 : t;
|
|
2249
2249
|
}
|
|
2250
2250
|
var wi;
|
|
2251
|
-
let gt = (wi =
|
|
2252
|
-
let e = Vr(), [t, n] =
|
|
2251
|
+
let gt = (wi = j.useId) != null ? wi : function() {
|
|
2252
|
+
let e = Vr(), [t, n] = j.useState(e ? () => _t.nextId() : null);
|
|
2253
2253
|
return Ee(() => {
|
|
2254
2254
|
t === null && n(_t.nextId());
|
|
2255
2255
|
}, [t]), t != null ? "" + t : void 0;
|
|
@@ -2298,7 +2298,7 @@ function Jd(e, t = (n) => n) {
|
|
|
2298
2298
|
}
|
|
2299
2299
|
function vn(e, t, n) {
|
|
2300
2300
|
let r = it(t);
|
|
2301
|
-
|
|
2301
|
+
pe(() => {
|
|
2302
2302
|
function i(a) {
|
|
2303
2303
|
r.current(a);
|
|
2304
2304
|
}
|
|
@@ -2307,7 +2307,7 @@ function vn(e, t, n) {
|
|
|
2307
2307
|
}
|
|
2308
2308
|
function p1(e, t, n) {
|
|
2309
2309
|
let r = it(t);
|
|
2310
|
-
|
|
2310
|
+
pe(() => {
|
|
2311
2311
|
function i(a) {
|
|
2312
2312
|
r.current(a);
|
|
2313
2313
|
}
|
|
@@ -2316,7 +2316,7 @@ function p1(e, t, n) {
|
|
|
2316
2316
|
}
|
|
2317
2317
|
function Qd(e, t, n = !0) {
|
|
2318
2318
|
let r = D(!1);
|
|
2319
|
-
|
|
2319
|
+
pe(() => {
|
|
2320
2320
|
requestAnimationFrame(() => {
|
|
2321
2321
|
r.current = n;
|
|
2322
2322
|
});
|
|
@@ -2369,7 +2369,7 @@ function eo(e, t) {
|
|
|
2369
2369
|
let $1 = Symbol();
|
|
2370
2370
|
function Qe(...e) {
|
|
2371
2371
|
let t = D(e);
|
|
2372
|
-
|
|
2372
|
+
pe(() => {
|
|
2373
2373
|
t.current = e;
|
|
2374
2374
|
}, [e]);
|
|
2375
2375
|
let n = V((r) => {
|
|
@@ -2380,7 +2380,7 @@ function Qe(...e) {
|
|
|
2380
2380
|
}
|
|
2381
2381
|
function v1({ container: e, accept: t, walk: n, enabled: r = !0 }) {
|
|
2382
2382
|
let i = D(t), a = D(n);
|
|
2383
|
-
|
|
2383
|
+
pe(() => {
|
|
2384
2384
|
i.current = t, a.current = n;
|
|
2385
2385
|
}, [t, n]), Ee(() => {
|
|
2386
2386
|
if (!e || !r)
|
|
@@ -2560,7 +2560,7 @@ function jn() {
|
|
|
2560
2560
|
return St(qr);
|
|
2561
2561
|
}
|
|
2562
2562
|
function Yr({ value: e, children: t }) {
|
|
2563
|
-
return
|
|
2563
|
+
return j.createElement(qr.Provider, { value: e }, t);
|
|
2564
2564
|
}
|
|
2565
2565
|
var me = ((e) => (e.Space = " ", e.Enter = "Enter", e.Escape = "Escape", e.Backspace = "Backspace", e.Delete = "Delete", e.ArrowLeft = "ArrowLeft", e.ArrowUp = "ArrowUp", e.ArrowRight = "ArrowRight", e.ArrowDown = "ArrowDown", e.Home = "Home", e.End = "End", e.PageUp = "PageUp", e.PageDown = "PageDown", e.Tab = "Tab", e))(me || {});
|
|
2566
2566
|
function uo(e, t, n) {
|
|
@@ -2569,7 +2569,7 @@ function uo(e, t, n) {
|
|
|
2569
2569
|
}
|
|
2570
2570
|
function xi(e, t) {
|
|
2571
2571
|
let n = D([]), r = V(e);
|
|
2572
|
-
|
|
2572
|
+
pe(() => {
|
|
2573
2573
|
let i = [...n.current];
|
|
2574
2574
|
for (let [a, d] of t.entries())
|
|
2575
2575
|
if (n.current[a] !== d) {
|
|
@@ -2668,52 +2668,52 @@ function I1(e, t) {
|
|
|
2668
2668
|
}
|
|
2669
2669
|
let _1 = vt;
|
|
2670
2670
|
function A1(e, t) {
|
|
2671
|
-
let { value: n, defaultValue: r, onChange: i, form: a, name: d, by: o = (
|
|
2672
|
-
let
|
|
2673
|
-
return
|
|
2674
|
-
} : o),
|
|
2671
|
+
let { value: n, defaultValue: r, onChange: i, form: a, name: d, by: o = (x, R) => x === R, disabled: u = !1, __demoMode: s = !1, nullable: v = !1, multiple: m = !1, ...l } = e, [p = m ? [] : void 0, c] = uo(n, i, r), [$, f] = qa(I1, { dataRef: Ya(), comboboxState: s ? 0 : 1, options: [], activeOptionIndex: null, activationTrigger: 1, labelId: null }), b = D(!1), S = D({ static: !1, hold: !1 }), w = D(null), C = D(null), y = D(null), P = D(null), U = V(typeof o == "string" ? (x, R) => {
|
|
2672
|
+
let k = o;
|
|
2673
|
+
return x?.[k] === R?.[k];
|
|
2674
|
+
} : o), I = Ye((x) => Pe(T.mode, { 1: () => p.some((R) => U(R, x)), 0: () => U(p, x) }), [p]), T = Ie(() => ({ ...$, optionsPropsRef: S, labelRef: w, inputRef: C, buttonRef: y, optionsRef: P, value: p, defaultValue: r, disabled: u, mode: m ? 1 : 0, get activeOptionIndex() {
|
|
2675
2675
|
if (b.current && $.activeOptionIndex === null && $.options.length > 0) {
|
|
2676
|
-
let
|
|
2677
|
-
if (
|
|
2678
|
-
return
|
|
2676
|
+
let x = $.options.findIndex((R) => !R.dataRef.current.disabled);
|
|
2677
|
+
if (x !== -1)
|
|
2678
|
+
return x;
|
|
2679
2679
|
}
|
|
2680
2680
|
return $.activeOptionIndex;
|
|
2681
|
-
}, compare:
|
|
2682
|
-
|
|
2683
|
-
let
|
|
2684
|
-
q.current !==
|
|
2681
|
+
}, compare: U, isSelected: I, nullable: v, __demoMode: s }), [p, r, u, m, v, s, $]), q = D(T.activeOptionIndex !== null ? T.options[T.activeOptionIndex] : null);
|
|
2682
|
+
pe(() => {
|
|
2683
|
+
let x = T.activeOptionIndex !== null ? T.options[T.activeOptionIndex] : null;
|
|
2684
|
+
q.current !== x && (q.current = x);
|
|
2685
2685
|
}), Ee(() => {
|
|
2686
|
-
$.dataRef.current =
|
|
2687
|
-
}, [
|
|
2688
|
-
let
|
|
2689
|
-
let
|
|
2690
|
-
|
|
2686
|
+
$.dataRef.current = T;
|
|
2687
|
+
}, [T]), Qd([T.buttonRef, T.inputRef, T.optionsRef], () => O.closeCombobox(), T.comboboxState === 0);
|
|
2688
|
+
let ne = Ie(() => ({ open: T.comboboxState === 0, disabled: u, activeIndex: T.activeOptionIndex, activeOption: T.activeOptionIndex === null ? null : T.options[T.activeOptionIndex].dataRef.current.value, value: p }), [T, u, p]), ie = V((x) => {
|
|
2689
|
+
let R = T.options.find((k) => k.id === x);
|
|
2690
|
+
R && ue(R.dataRef.current.value);
|
|
2691
2691
|
}), E = V(() => {
|
|
2692
|
-
if (
|
|
2693
|
-
let { dataRef:
|
|
2694
|
-
ue(
|
|
2692
|
+
if (T.activeOptionIndex !== null) {
|
|
2693
|
+
let { dataRef: x, id: R } = T.options[T.activeOptionIndex];
|
|
2694
|
+
ue(x.current.value), O.goToOption(ge.Specific, R);
|
|
2695
2695
|
}
|
|
2696
2696
|
}), Z = V(() => {
|
|
2697
2697
|
f({ type: 0 }), b.current = !0;
|
|
2698
|
-
}),
|
|
2698
|
+
}), ae = V(() => {
|
|
2699
2699
|
f({ type: 1 }), b.current = !1;
|
|
2700
|
-
}),
|
|
2701
|
-
var
|
|
2702
|
-
((
|
|
2703
|
-
})), ce = V((
|
|
2704
|
-
return c?.(
|
|
2700
|
+
}), de = V((x, R, k) => (b.current = !1, x === ge.Specific ? f({ type: 2, focus: ge.Specific, id: R, trigger: k }) : f({ type: 2, focus: x, trigger: k }))), H = V((x, R) => (f({ type: 3, id: x, dataRef: R }), () => {
|
|
2701
|
+
var k;
|
|
2702
|
+
((k = q.current) == null ? void 0 : k.id) === x && (b.current = !0), f({ type: 4, id: x });
|
|
2703
|
+
})), ce = V((x) => (f({ type: 5, id: x }), () => f({ type: 5, id: null }))), ue = V((x) => Pe(T.mode, { 0() {
|
|
2704
|
+
return c?.(x);
|
|
2705
2705
|
}, 1() {
|
|
2706
|
-
let
|
|
2707
|
-
return
|
|
2708
|
-
} })),
|
|
2709
|
-
return
|
|
2710
|
-
W.current && r !== void 0 &&
|
|
2706
|
+
let R = T.value.slice(), k = R.findIndex((G) => U(G, x));
|
|
2707
|
+
return k === -1 ? R.push(x) : R.splice(k, 1), c?.(R);
|
|
2708
|
+
} })), O = Ie(() => ({ onChange: ue, registerOption: H, registerLabel: ce, goToOption: de, closeCombobox: ae, openCombobox: Z, selectActiveOption: E, selectOption: ie }), []), F = t === null ? {} : { ref: t }, W = D(null), B = mt();
|
|
2709
|
+
return pe(() => {
|
|
2710
|
+
W.current && r !== void 0 && B.addEventListener(W.current, "reset", () => {
|
|
2711
2711
|
c?.(r);
|
|
2712
2712
|
});
|
|
2713
|
-
}, [W, c]),
|
|
2713
|
+
}, [W, c]), j.createElement(zr.Provider, { value: O }, j.createElement(Zr.Provider, { value: T }, j.createElement(Yr, { value: Pe(T.comboboxState, { 0: Re.Open, 1: Re.Closed }) }, d != null && p != null && Hr({ [d]: p }).map(([x, R], k) => j.createElement(oo, { features: Kr.Hidden, ref: k === 0 ? (G) => {
|
|
2714
2714
|
var Y;
|
|
2715
2715
|
W.current = (Y = G?.closest("form")) != null ? Y : null;
|
|
2716
|
-
} : void 0, ...Pn({ key:
|
|
2716
|
+
} : void 0, ...Pn({ key: x, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: a, name: x, value: R }) })), He({ ourProps: F, theirProps: l, slot: ne, defaultTag: _1, name: "Combobox" }))));
|
|
2717
2717
|
}
|
|
2718
2718
|
let R1 = "input";
|
|
2719
2719
|
function F1(e, t) {
|
|
@@ -2724,11 +2724,11 @@ function F1(e, t) {
|
|
|
2724
2724
|
var E;
|
|
2725
2725
|
return typeof s == "function" && l.value !== void 0 ? (E = s(l.value)) != null ? E : "" : typeof l.value == "string" ? l.value : "";
|
|
2726
2726
|
}();
|
|
2727
|
-
xi(([E, Z], [
|
|
2727
|
+
xi(([E, Z], [ae, de]) => {
|
|
2728
2728
|
if (f.current)
|
|
2729
2729
|
return;
|
|
2730
2730
|
let H = l.inputRef.current;
|
|
2731
|
-
H && ((
|
|
2731
|
+
H && ((de === 0 && Z === 1 || E !== ae) && (H.value = E), requestAnimationFrame(() => {
|
|
2732
2732
|
if (f.current || !H || $?.activeElement !== H)
|
|
2733
2733
|
return;
|
|
2734
2734
|
let { selectionStart: ce, selectionEnd: ue } = H;
|
|
@@ -2738,23 +2738,23 @@ function F1(e, t) {
|
|
|
2738
2738
|
if (E === 0 && Z === 1) {
|
|
2739
2739
|
if (f.current)
|
|
2740
2740
|
return;
|
|
2741
|
-
let
|
|
2742
|
-
if (!
|
|
2741
|
+
let ae = l.inputRef.current;
|
|
2742
|
+
if (!ae)
|
|
2743
2743
|
return;
|
|
2744
|
-
let
|
|
2745
|
-
|
|
2744
|
+
let de = ae.value, { selectionStart: H, selectionEnd: ce, selectionDirection: ue } = ae;
|
|
2745
|
+
ae.value = "", ae.value = de, ue !== null ? ae.setSelectionRange(H, ce, ue) : ae.setSelectionRange(H, ce);
|
|
2746
2746
|
}
|
|
2747
2747
|
}, [l.comboboxState]);
|
|
2748
|
-
let
|
|
2749
|
-
|
|
2750
|
-
}),
|
|
2748
|
+
let C = D(!1), y = V(() => {
|
|
2749
|
+
C.current = !0;
|
|
2750
|
+
}), P = V(() => {
|
|
2751
2751
|
b.nextFrame(() => {
|
|
2752
|
-
|
|
2752
|
+
C.current = !1;
|
|
2753
2753
|
});
|
|
2754
|
-
}),
|
|
2754
|
+
}), U = V((E) => {
|
|
2755
2755
|
switch (f.current = !0, E.key) {
|
|
2756
2756
|
case me.Enter:
|
|
2757
|
-
if (f.current = !1, l.comboboxState !== 0 ||
|
|
2757
|
+
if (f.current = !1, l.comboboxState !== 0 || C.current)
|
|
2758
2758
|
return;
|
|
2759
2759
|
if (E.preventDefault(), E.stopPropagation(), l.activeOptionIndex === null) {
|
|
2760
2760
|
p.closeCombobox();
|
|
@@ -2796,15 +2796,15 @@ function F1(e, t) {
|
|
|
2796
2796
|
l.mode === 0 && p.selectActiveOption(), p.closeCombobox();
|
|
2797
2797
|
break;
|
|
2798
2798
|
}
|
|
2799
|
-
}),
|
|
2799
|
+
}), I = V((E) => {
|
|
2800
2800
|
u?.(E), l.nullable && l.mode === 0 && E.target.value === "" && S(), p.openCombobox();
|
|
2801
|
-
}),
|
|
2801
|
+
}), T = V(() => {
|
|
2802
2802
|
f.current = !1;
|
|
2803
2803
|
}), q = on(() => {
|
|
2804
2804
|
if (l.labelId)
|
|
2805
2805
|
return [l.labelId].join(" ");
|
|
2806
|
-
}, [l.labelId]),
|
|
2807
|
-
return He({ ourProps:
|
|
2806
|
+
}, [l.labelId]), ne = Ie(() => ({ open: l.comboboxState === 0, disabled: l.disabled }), [l]), ie = { ref: c, id: o, role: "combobox", type: v, "aria-controls": (n = l.optionsRef.current) == null ? void 0 : n.id, "aria-expanded": l.comboboxState === 0, "aria-activedescendant": l.activeOptionIndex === null || (r = l.options[l.activeOptionIndex]) == null ? void 0 : r.id, "aria-labelledby": q, "aria-autocomplete": "list", defaultValue: (a = (i = e.defaultValue) != null ? i : l.defaultValue !== void 0 ? s?.(l.defaultValue) : null) != null ? a : l.defaultValue, disabled: l.disabled, onCompositionStart: y, onCompositionEnd: P, onKeyDown: U, onChange: I, onBlur: T };
|
|
2807
|
+
return He({ ourProps: ie, theirProps: m, slot: ne, defaultTag: R1, name: "Combobox.Input" });
|
|
2808
2808
|
}
|
|
2809
2809
|
let k1 = "button";
|
|
2810
2810
|
function j1(e, t) {
|
|
@@ -2882,22 +2882,22 @@ function V1(e, t) {
|
|
|
2882
2882
|
Ee(() => {
|
|
2883
2883
|
if (!s.__demoMode)
|
|
2884
2884
|
return;
|
|
2885
|
-
let
|
|
2886
|
-
return
|
|
2885
|
+
let T = st();
|
|
2886
|
+
return T.requestAnimationFrame(() => {
|
|
2887
2887
|
b.current = !0;
|
|
2888
|
-
}),
|
|
2888
|
+
}), T.dispose;
|
|
2889
2889
|
}, []), Ee(() => {
|
|
2890
2890
|
if (s.comboboxState !== 0 || !m || !b.current || s.activationTrigger === 0)
|
|
2891
2891
|
return;
|
|
2892
|
-
let
|
|
2893
|
-
return
|
|
2894
|
-
var q,
|
|
2895
|
-
(
|
|
2896
|
-
}),
|
|
2892
|
+
let T = st();
|
|
2893
|
+
return T.requestAnimationFrame(() => {
|
|
2894
|
+
var q, ne;
|
|
2895
|
+
(ne = (q = p.current) == null ? void 0 : q.scrollIntoView) == null || ne.call(q, { block: "nearest" });
|
|
2896
|
+
}), T.dispose;
|
|
2897
2897
|
}, [p, m, s.comboboxState, s.activationTrigger, s.activeOptionIndex]);
|
|
2898
|
-
let S = V((
|
|
2898
|
+
let S = V((T) => {
|
|
2899
2899
|
if (d)
|
|
2900
|
-
return
|
|
2900
|
+
return T.preventDefault();
|
|
2901
2901
|
f(), s.mode === 0 && v.closeCombobox(), O1() || requestAnimationFrame(() => {
|
|
2902
2902
|
var q;
|
|
2903
2903
|
return (q = s.inputRef.current) == null ? void 0 : q.focus();
|
|
@@ -2906,12 +2906,12 @@ function V1(e, t) {
|
|
|
2906
2906
|
if (d)
|
|
2907
2907
|
return v.goToOption(ge.Nothing);
|
|
2908
2908
|
v.goToOption(ge.Specific, a);
|
|
2909
|
-
}),
|
|
2910
|
-
|
|
2911
|
-
}),
|
|
2912
|
-
|
|
2913
|
-
}),
|
|
2914
|
-
return He({ ourProps: { id: a, ref: $, role: "option", tabIndex: d === !0 ? void 0 : -1, "aria-disabled": d === !0 ? !0 : void 0, "aria-selected": l, disabled: void 0, onClick: S, onFocus: w, onPointerEnter:
|
|
2909
|
+
}), C = lo(), y = V((T) => C.update(T)), P = V((T) => {
|
|
2910
|
+
C.wasMoved(T) && (d || m || v.goToOption(ge.Specific, a, 0));
|
|
2911
|
+
}), U = V((T) => {
|
|
2912
|
+
C.wasMoved(T) && (d || m && (s.optionsPropsRef.current.hold || v.goToOption(ge.Nothing)));
|
|
2913
|
+
}), I = Ie(() => ({ active: m, selected: l, disabled: d }), [m, l, d]);
|
|
2914
|
+
return He({ ourProps: { id: a, ref: $, role: "option", tabIndex: d === !0 ? void 0 : -1, "aria-disabled": d === !0 ? !0 : void 0, "aria-selected": l, disabled: void 0, onClick: S, onFocus: w, onPointerEnter: y, onMouseEnter: y, onPointerMove: P, onMouseMove: P, onPointerLeave: U, onMouseLeave: U }, theirProps: u, slot: I, defaultTag: W1, name: "Combobox.Option" });
|
|
2915
2915
|
}
|
|
2916
2916
|
let G1 = We(A1), H1 = We(j1), K1 = We(F1), q1 = We(D1), Y1 = We(U1), z1 = We(V1), en = Object.assign(G1, { Input: K1, Button: H1, Label: q1, Options: Y1, Option: z1 });
|
|
2917
2917
|
function Xr() {
|
|
@@ -3026,40 +3026,40 @@ function rs(e, t) {
|
|
|
3026
3026
|
}
|
|
3027
3027
|
let is = vt;
|
|
3028
3028
|
function as(e, t) {
|
|
3029
|
-
let { value: n, defaultValue: r, form: i, name: a, onChange: d, by: o = (
|
|
3029
|
+
let { value: n, defaultValue: r, form: i, name: a, onChange: d, by: o = (x, R) => x === R, disabled: u = !1, horizontal: s = !1, multiple: v = !1, ...m } = e;
|
|
3030
3030
|
const l = s ? "horizontal" : "vertical";
|
|
3031
|
-
let p = Qe(t), [c = v ? [] : void 0, $] = uo(n, d, r), [f, b] = qa(rs, { dataRef: Ya(), listboxState: 1, options: [], searchQuery: "", labelId: null, activeOptionIndex: null, activationTrigger: 1 }), S = D({ static: !1, hold: !1 }), w = D(null),
|
|
3032
|
-
let
|
|
3033
|
-
return
|
|
3034
|
-
} : o),
|
|
3031
|
+
let p = Qe(t), [c = v ? [] : void 0, $] = uo(n, d, r), [f, b] = qa(rs, { dataRef: Ya(), listboxState: 1, options: [], searchQuery: "", labelId: null, activeOptionIndex: null, activationTrigger: 1 }), S = D({ static: !1, hold: !1 }), w = D(null), C = D(null), y = D(null), P = V(typeof o == "string" ? (x, R) => {
|
|
3032
|
+
let k = o;
|
|
3033
|
+
return x?.[k] === R?.[k];
|
|
3034
|
+
} : o), U = Ye((x) => Pe(I.mode, { 1: () => c.some((R) => P(R, x)), 0: () => P(c, x) }), [c]), I = Ie(() => ({ ...f, value: c, disabled: u, mode: v ? 1 : 0, orientation: l, compare: P, isSelected: U, optionsPropsRef: S, labelRef: w, buttonRef: C, optionsRef: y }), [c, u, v, f]);
|
|
3035
3035
|
Ee(() => {
|
|
3036
|
-
f.dataRef.current =
|
|
3037
|
-
}, [
|
|
3038
|
-
var
|
|
3039
|
-
b({ type: 1 }), Xd(
|
|
3040
|
-
},
|
|
3041
|
-
let
|
|
3042
|
-
let
|
|
3043
|
-
|
|
3044
|
-
}),
|
|
3045
|
-
if (
|
|
3046
|
-
let { dataRef:
|
|
3047
|
-
H(
|
|
3048
|
-
}
|
|
3049
|
-
}),
|
|
3050
|
-
return $?.(
|
|
3036
|
+
f.dataRef.current = I;
|
|
3037
|
+
}, [I]), Qd([I.buttonRef, I.optionsRef], (x, R) => {
|
|
3038
|
+
var k;
|
|
3039
|
+
b({ type: 1 }), Xd(R, Gr.Loose) || (x.preventDefault(), (k = I.buttonRef.current) == null || k.focus());
|
|
3040
|
+
}, I.listboxState === 0);
|
|
3041
|
+
let T = Ie(() => ({ open: I.listboxState === 0, disabled: u, value: c }), [I, u, c]), q = V((x) => {
|
|
3042
|
+
let R = I.options.find((k) => k.id === x);
|
|
3043
|
+
R && H(R.dataRef.current.value);
|
|
3044
|
+
}), ne = V(() => {
|
|
3045
|
+
if (I.activeOptionIndex !== null) {
|
|
3046
|
+
let { dataRef: x, id: R } = I.options[I.activeOptionIndex];
|
|
3047
|
+
H(x.current.value), b({ type: 2, focus: ge.Specific, id: R });
|
|
3048
|
+
}
|
|
3049
|
+
}), ie = V(() => b({ type: 0 })), E = V(() => b({ type: 1 })), Z = V((x, R, k) => x === ge.Specific ? b({ type: 2, focus: ge.Specific, id: R, trigger: k }) : b({ type: 2, focus: x, trigger: k })), ae = V((x, R) => (b({ type: 5, id: x, dataRef: R }), () => b({ type: 6, id: x }))), de = V((x) => (b({ type: 7, id: x }), () => b({ type: 7, id: null }))), H = V((x) => Pe(I.mode, { 0() {
|
|
3050
|
+
return $?.(x);
|
|
3051
3051
|
}, 1() {
|
|
3052
|
-
let
|
|
3053
|
-
return
|
|
3054
|
-
} })), ce = V((
|
|
3055
|
-
return
|
|
3056
|
-
W.current && r !== void 0 &&
|
|
3052
|
+
let R = I.value.slice(), k = R.findIndex((G) => P(G, x));
|
|
3053
|
+
return k === -1 ? R.push(x) : R.splice(k, 1), $?.(R);
|
|
3054
|
+
} })), ce = V((x) => b({ type: 3, value: x })), ue = V(() => b({ type: 4 })), O = Ie(() => ({ onChange: H, registerOption: ae, registerLabel: de, goToOption: Z, closeListbox: E, openListbox: ie, selectActiveOption: ne, selectOption: q, search: ce, clearSearch: ue }), []), F = { ref: p }, W = D(null), B = mt();
|
|
3055
|
+
return pe(() => {
|
|
3056
|
+
W.current && r !== void 0 && B.addEventListener(W.current, "reset", () => {
|
|
3057
3057
|
$?.(r);
|
|
3058
3058
|
});
|
|
3059
|
-
}, [W, $]),
|
|
3059
|
+
}, [W, $]), j.createElement(Jr.Provider, { value: O }, j.createElement(Qr.Provider, { value: I }, j.createElement(Yr, { value: Pe(I.listboxState, { 0: Re.Open, 1: Re.Closed }) }, a != null && c != null && Hr({ [a]: c }).map(([x, R], k) => j.createElement(oo, { features: Kr.Hidden, ref: k === 0 ? (G) => {
|
|
3060
3060
|
var Y;
|
|
3061
3061
|
W.current = (Y = G?.closest("form")) != null ? Y : null;
|
|
3062
|
-
} : void 0, ...Pn({ key:
|
|
3062
|
+
} : void 0, ...Pn({ key: x, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: i, name: x, value: R }) })), He({ ourProps: F, theirProps: m, slot: T, defaultTag: is, name: "Listbox" }))));
|
|
3063
3063
|
}
|
|
3064
3064
|
let ds = "button";
|
|
3065
3065
|
function os(e, t) {
|
|
@@ -3112,7 +3112,7 @@ let ss = "ul", cs = Gt.RenderStrategy | Gt.Static;
|
|
|
3112
3112
|
function fs(e, t) {
|
|
3113
3113
|
var n;
|
|
3114
3114
|
let r = gt(), { id: i = `headlessui-listbox-options-${r}`, ...a } = e, d = sn("Listbox.Options"), o = ln("Listbox.Options"), u = Qe(d.optionsRef, t), s = mt(), v = mt(), m = jn(), l = (() => m !== null ? (m & Re.Open) === Re.Open : d.listboxState === 0)();
|
|
3115
|
-
|
|
3115
|
+
pe(() => {
|
|
3116
3116
|
var b;
|
|
3117
3117
|
let S = d.optionsRef.current;
|
|
3118
3118
|
S && d.listboxState === 0 && S !== ((b = kn(S)) == null ? void 0 : b.activeElement) && S.focus({ preventScroll: !0 });
|
|
@@ -3168,29 +3168,29 @@ function $s(e, t) {
|
|
|
3168
3168
|
Ee(() => {
|
|
3169
3169
|
if (o.listboxState !== 0 || !s || o.activationTrigger === 0)
|
|
3170
3170
|
return;
|
|
3171
|
-
let
|
|
3172
|
-
return
|
|
3173
|
-
var
|
|
3174
|
-
(
|
|
3175
|
-
}),
|
|
3171
|
+
let P = st();
|
|
3172
|
+
return P.requestAnimationFrame(() => {
|
|
3173
|
+
var U, I;
|
|
3174
|
+
(I = (U = m.current) == null ? void 0 : U.scrollIntoView) == null || I.call(U, { block: "nearest" });
|
|
3175
|
+
}), P.dispose;
|
|
3176
3176
|
}, [m, s, o.listboxState, o.activationTrigger, o.activeOptionIndex]), Ee(() => u.registerOption(r, p), [p, r]);
|
|
3177
|
-
let $ = V((
|
|
3177
|
+
let $ = V((P) => {
|
|
3178
3178
|
if (i)
|
|
3179
|
-
return
|
|
3179
|
+
return P.preventDefault();
|
|
3180
3180
|
u.onChange(a), o.mode === 0 && (u.closeListbox(), st().nextFrame(() => {
|
|
3181
|
-
var
|
|
3182
|
-
return (
|
|
3181
|
+
var U;
|
|
3182
|
+
return (U = o.buttonRef.current) == null ? void 0 : U.focus({ preventScroll: !0 });
|
|
3183
3183
|
}));
|
|
3184
3184
|
}), f = V(() => {
|
|
3185
3185
|
if (i)
|
|
3186
3186
|
return u.goToOption(ge.Nothing);
|
|
3187
3187
|
u.goToOption(ge.Specific, r);
|
|
3188
|
-
}), b = lo(), S = V((
|
|
3189
|
-
b.wasMoved(
|
|
3190
|
-
}),
|
|
3191
|
-
b.wasMoved(
|
|
3192
|
-
}),
|
|
3193
|
-
return He({ ourProps: { id: r, ref: c, role: "option", tabIndex: i === !0 ? void 0 : -1, "aria-disabled": i === !0 ? !0 : void 0, "aria-selected": v, disabled: void 0, onClick: $, onFocus: f, onPointerEnter: S, onMouseEnter: S, onPointerMove: w, onMouseMove: w, onPointerLeave:
|
|
3188
|
+
}), b = lo(), S = V((P) => b.update(P)), w = V((P) => {
|
|
3189
|
+
b.wasMoved(P) && (i || s || u.goToOption(ge.Specific, r, 0));
|
|
3190
|
+
}), C = V((P) => {
|
|
3191
|
+
b.wasMoved(P) && (i || s && u.goToOption(ge.Nothing));
|
|
3192
|
+
}), y = Ie(() => ({ active: s, selected: v, disabled: i }), [s, v, i]);
|
|
3193
|
+
return He({ ourProps: { id: r, ref: c, role: "option", tabIndex: i === !0 ? void 0 : -1, "aria-disabled": i === !0 ? !0 : void 0, "aria-selected": v, disabled: void 0, onClick: $, onFocus: f, onPointerEnter: S, onMouseEnter: S, onPointerMove: w, onMouseMove: w, onPointerLeave: C, onMouseLeave: C }, theirProps: d, slot: y, defaultTag: ps, name: "Listbox.Option" });
|
|
3194
3194
|
}
|
|
3195
3195
|
let vs = We(as), hs = We(os), ms = We(ls), bs = We(fs), gs = We($s), Sn = Object.assign(vs, { Button: hs, Label: ms, Options: bs, Option: gs });
|
|
3196
3196
|
function ys(e = 0) {
|
|
@@ -3325,48 +3325,48 @@ function Ni(e) {
|
|
|
3325
3325
|
}
|
|
3326
3326
|
function Is(e) {
|
|
3327
3327
|
let t = D(Ni(e));
|
|
3328
|
-
return
|
|
3328
|
+
return pe(() => {
|
|
3329
3329
|
t.current = Ni(e);
|
|
3330
3330
|
}, [e]), t;
|
|
3331
3331
|
}
|
|
3332
3332
|
let _s = "div", co = Gt.RenderStrategy;
|
|
3333
3333
|
function As(e, t) {
|
|
3334
3334
|
var n, r;
|
|
3335
|
-
let { beforeEnter: i, afterEnter: a, beforeLeave: d, afterLeave: o, enter: u, enterFrom: s, enterTo: v, entered: m, leave: l, leaveFrom: p, leaveTo: c, ...$ } = e, f = D(null), b = Qe(f, t), S = (n = $.unmount) == null || n ? xt.Unmount : xt.Hidden, { show: w, appear:
|
|
3336
|
-
|
|
3335
|
+
let { beforeEnter: i, afterEnter: a, beforeLeave: d, afterLeave: o, enter: u, enterFrom: s, enterTo: v, entered: m, leave: l, leaveFrom: p, leaveTo: c, ...$ } = e, f = D(null), b = Qe(f, t), S = (n = $.unmount) == null || n ? xt.Unmount : xt.Hidden, { show: w, appear: C, initial: y } = Ss(), [P, U] = be(w ? "visible" : "hidden"), I = Es(), { register: T, unregister: q } = I;
|
|
3336
|
+
pe(() => T(f), [T, f]), pe(() => {
|
|
3337
3337
|
if (S === xt.Hidden && f.current) {
|
|
3338
|
-
if (w &&
|
|
3339
|
-
|
|
3338
|
+
if (w && P !== "visible") {
|
|
3339
|
+
U("visible");
|
|
3340
3340
|
return;
|
|
3341
3341
|
}
|
|
3342
|
-
return Pe(
|
|
3342
|
+
return Pe(P, { hidden: () => q(f), visible: () => T(f) });
|
|
3343
3343
|
}
|
|
3344
|
-
}, [
|
|
3345
|
-
let
|
|
3346
|
-
|
|
3347
|
-
if (E &&
|
|
3344
|
+
}, [P, f, T, q, w, S]);
|
|
3345
|
+
let ne = it({ base: Ct($.className), enter: Ct(u), enterFrom: Ct(s), enterTo: Ct(v), entered: Ct(m), leave: Ct(l), leaveFrom: Ct(p), leaveTo: Ct(c) }), ie = Is({ beforeEnter: i, afterEnter: a, beforeLeave: d, afterLeave: o }), E = Vr();
|
|
3346
|
+
pe(() => {
|
|
3347
|
+
if (E && P === "visible" && f.current === null)
|
|
3348
3348
|
throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
|
|
3349
|
-
}, [f,
|
|
3350
|
-
let Z =
|
|
3351
|
-
H.addFlag(Re.Opening),
|
|
3349
|
+
}, [f, P, E]);
|
|
3350
|
+
let Z = y && !C, ae = C && w && y, de = (() => !E || Z ? "idle" : w ? "enter" : "leave")(), H = ys(0), ce = V((B) => Pe(B, { enter: () => {
|
|
3351
|
+
H.addFlag(Re.Opening), ie.current.beforeEnter();
|
|
3352
3352
|
}, leave: () => {
|
|
3353
|
-
H.addFlag(Re.Closing),
|
|
3353
|
+
H.addFlag(Re.Closing), ie.current.beforeLeave();
|
|
3354
3354
|
}, idle: () => {
|
|
3355
|
-
} })), ue = V((
|
|
3356
|
-
H.removeFlag(Re.Opening),
|
|
3355
|
+
} })), ue = V((B) => Pe(B, { enter: () => {
|
|
3356
|
+
H.removeFlag(Re.Opening), ie.current.afterEnter();
|
|
3357
3357
|
}, leave: () => {
|
|
3358
|
-
H.removeFlag(Re.Closing),
|
|
3358
|
+
H.removeFlag(Re.Closing), ie.current.afterLeave();
|
|
3359
3359
|
}, idle: () => {
|
|
3360
|
-
} })),
|
|
3361
|
-
|
|
3362
|
-
},
|
|
3363
|
-
xs({ immediate:
|
|
3364
|
-
|
|
3365
|
-
}), onStop: it((
|
|
3366
|
-
|
|
3360
|
+
} })), O = so(() => {
|
|
3361
|
+
U("hidden"), q(f);
|
|
3362
|
+
}, I);
|
|
3363
|
+
xs({ immediate: ae, container: f, classes: ne, direction: de, onStart: it((B) => {
|
|
3364
|
+
O.onStart(f, B, ce);
|
|
3365
|
+
}), onStop: it((B) => {
|
|
3366
|
+
O.onStop(f, B, ue), B === "leave" && !Mn(O) && (U("hidden"), q(f));
|
|
3367
3367
|
}) });
|
|
3368
|
-
let
|
|
3369
|
-
return
|
|
3368
|
+
let F = $, W = { ref: b };
|
|
3369
|
+
return ae ? F = { ...F, className: xn($.className, ...ne.current.enter, ...ne.current.enterFrom) } : (F.className = xn($.className, (r = f.current) == null ? void 0 : r.className), F.className === "" && delete F.className), j.createElement(Dn.Provider, { value: O }, j.createElement(Yr, { value: Pe(P, { visible: Re.Open, hidden: Re.Closed }) | H.flags }, He({ ourProps: W, theirProps: F, defaultTag: _s, features: co, visible: P === "visible", name: "Transition.Child" })));
|
|
3370
3370
|
}
|
|
3371
3371
|
function Rs(e, t) {
|
|
3372
3372
|
let { show: n, appear: r = !1, unmount: i = !0, ...a } = e, d = D(null), o = Qe(d, t);
|
|
@@ -3381,7 +3381,7 @@ function Rs(e, t) {
|
|
|
3381
3381
|
l !== !1 && c.current[c.current.length - 1] !== n && (c.current.push(n), p(!1));
|
|
3382
3382
|
}, [c, n]);
|
|
3383
3383
|
let $ = Ie(() => ({ show: n, appear: r, initial: l }), [n, r, l]);
|
|
3384
|
-
|
|
3384
|
+
pe(() => {
|
|
3385
3385
|
if (n)
|
|
3386
3386
|
v("visible");
|
|
3387
3387
|
else if (!Mn(m))
|
|
@@ -3390,8 +3390,8 @@ function Rs(e, t) {
|
|
|
3390
3390
|
let w = d.current;
|
|
3391
3391
|
if (!w)
|
|
3392
3392
|
return;
|
|
3393
|
-
let
|
|
3394
|
-
|
|
3393
|
+
let C = w.getBoundingClientRect();
|
|
3394
|
+
C.x === 0 && C.y === 0 && C.width === 0 && C.height === 0 && v("hidden");
|
|
3395
3395
|
}
|
|
3396
3396
|
}, [n, m]);
|
|
3397
3397
|
let f = { unmount: i }, b = V(() => {
|
|
@@ -3401,11 +3401,11 @@ function Rs(e, t) {
|
|
|
3401
3401
|
var w;
|
|
3402
3402
|
l && p(!1), (w = e.beforeLeave) == null || w.call(e);
|
|
3403
3403
|
});
|
|
3404
|
-
return
|
|
3404
|
+
return j.createElement(Dn.Provider, { value: m }, j.createElement(Ln.Provider, { value: $ }, He({ ourProps: { ...f, as: vt, children: j.createElement(fo, { ref: o, ...f, ...a, beforeEnter: b, beforeLeave: S }) }, theirProps: {}, defaultTag: vt, features: co, visible: s === "visible", name: "Transition" })));
|
|
3405
3405
|
}
|
|
3406
3406
|
function Fs(e, t) {
|
|
3407
3407
|
let n = St(Ln) !== null, r = jn() !== null;
|
|
3408
|
-
return
|
|
3408
|
+
return j.createElement(j.Fragment, null, !n && r ? j.createElement(mr, { ref: t, ...e }) : j.createElement(fo, { ref: t, ...e }));
|
|
3409
3409
|
}
|
|
3410
3410
|
let mr = We(Rs), fo = We(As), ks = We(Fs), po = Object.assign(mr, { Child: ks, Root: mr });
|
|
3411
3411
|
function js({
|
|
@@ -3445,49 +3445,49 @@ const Ls = $t.forwardRef(js), $o = Ls, Ds = "_select_c79hj_1", Ms = "_selectCont
|
|
|
3445
3445
|
}, Xs = ({ children: e, selected: t, onSelect: n, themeColor: r }) => {
|
|
3446
3446
|
const [i, a] = be(!1), [d, o] = be(!1), u = D(null), s = D(null), v = D(null), [m, l] = be({ left: 0, top: 0 }), p = D(0), c = D(0);
|
|
3447
3447
|
let $ = "#333333";
|
|
3448
|
-
const f = (
|
|
3449
|
-
n(
|
|
3448
|
+
const f = (P) => {
|
|
3449
|
+
n(P);
|
|
3450
3450
|
}, b = () => {
|
|
3451
3451
|
a(!0);
|
|
3452
3452
|
}, S = () => {
|
|
3453
3453
|
a(!1);
|
|
3454
3454
|
};
|
|
3455
|
-
|
|
3456
|
-
const
|
|
3457
|
-
return
|
|
3458
|
-
|
|
3455
|
+
pe(() => {
|
|
3456
|
+
const P = s.current;
|
|
3457
|
+
return P && (P.addEventListener("focus", b), P.addEventListener("blur", S)), () => {
|
|
3458
|
+
P && (P.removeEventListener("focus", b), P.removeEventListener("blur", S));
|
|
3459
3459
|
};
|
|
3460
3460
|
}, [b, S]);
|
|
3461
3461
|
const w = () => {
|
|
3462
3462
|
p.current = window.innerHeight, c.current = document.body.scrollHeight, o(!0);
|
|
3463
3463
|
};
|
|
3464
|
-
|
|
3464
|
+
pe(() => (w(), window.addEventListener("resize", w), () => {
|
|
3465
3465
|
window.addEventListener("resize", w);
|
|
3466
3466
|
}), []);
|
|
3467
|
-
const
|
|
3467
|
+
const C = () => c.current - (p.current + window.scrollY), y = () => {
|
|
3468
3468
|
if (u.current) {
|
|
3469
|
-
const
|
|
3469
|
+
const P = u.current.getBoundingClientRect();
|
|
3470
3470
|
setTimeout(() => {
|
|
3471
|
-
const
|
|
3471
|
+
const U = v?.current?.getBoundingClientRect(), I = C(), T = p.current - P.bottom;
|
|
3472
3472
|
let q;
|
|
3473
|
-
if (
|
|
3474
|
-
const
|
|
3475
|
-
E >=
|
|
3476
|
-
left:
|
|
3477
|
-
top: q ??
|
|
3473
|
+
if (U) {
|
|
3474
|
+
const ne = P.height, ie = P.top, E = U.height, Z = E >= ie + window.scrollY;
|
|
3475
|
+
E >= ie && (Z || Z && T <= E || I >= E || T >= E) || ie >= E && T >= E ? q = P.y + ne : q = P.y - E, l({
|
|
3476
|
+
left: P.left,
|
|
3477
|
+
top: q ?? P.top
|
|
3478
3478
|
});
|
|
3479
3479
|
}
|
|
3480
3480
|
}, 0);
|
|
3481
3481
|
}
|
|
3482
3482
|
};
|
|
3483
|
-
if (
|
|
3484
|
-
window.removeEventListener("scroll",
|
|
3483
|
+
if (pe(() => (window.addEventListener("scroll", y), window.addEventListener("resize", y), () => {
|
|
3484
|
+
window.removeEventListener("scroll", y), window.removeEventListener("resize", y);
|
|
3485
3485
|
}), []), r) {
|
|
3486
3486
|
r = ct.convert3HexTo6(r);
|
|
3487
|
-
const
|
|
3488
|
-
(
|
|
3487
|
+
const P = Et(r);
|
|
3488
|
+
(P === "dark" || P === "light") && ($ = r === "#ffffff" ? "#c8c8c8" : r);
|
|
3489
3489
|
}
|
|
3490
|
-
return /* @__PURE__ */ N.jsx(Sn, { value: t, onChange: f, children: ({ open:
|
|
3490
|
+
return /* @__PURE__ */ N.jsx(Sn, { value: t, onChange: f, children: ({ open: P }) => /* @__PURE__ */ N.jsxs("div", { className: qe.select, children: [
|
|
3491
3491
|
/* @__PURE__ */ N.jsx("div", { className: qe.selectContainer, ref: u, children: /* @__PURE__ */ N.jsxs(
|
|
3492
3492
|
Sn.Button,
|
|
3493
3493
|
{
|
|
@@ -3495,12 +3495,12 @@ const Ls = $t.forwardRef(js), $o = Ls, Ds = "_select_c79hj_1", Ms = "_selectCont
|
|
|
3495
3495
|
ref: s,
|
|
3496
3496
|
onFocus: b,
|
|
3497
3497
|
onBlur: S,
|
|
3498
|
-
onClick:
|
|
3499
|
-
onKeyDown: (
|
|
3500
|
-
(
|
|
3498
|
+
onClick: y,
|
|
3499
|
+
onKeyDown: (U) => {
|
|
3500
|
+
(U.key === " " || U.code === "Space" || U.code === "Enter") && y();
|
|
3501
3501
|
},
|
|
3502
|
-
style: { borderBottomColor: r && (i ||
|
|
3503
|
-
className: `${qe.selectButton} ${
|
|
3502
|
+
style: { borderBottomColor: r && (i || P) ? $ : "" },
|
|
3503
|
+
className: `${qe.selectButton} ${P ? qe.open : ""}`,
|
|
3504
3504
|
tabIndex: 0,
|
|
3505
3505
|
children: [
|
|
3506
3506
|
t && /* @__PURE__ */ N.jsxs("span", { className: qe.selectValue, children: [
|
|
@@ -3512,7 +3512,7 @@ const Ls = $t.forwardRef(js), $o = Ls, Ds = "_select_c79hj_1", Ms = "_selectCont
|
|
|
3512
3512
|
}
|
|
3513
3513
|
) }),
|
|
3514
3514
|
d ? Mr(
|
|
3515
|
-
/* @__PURE__ */ N.jsx(N.Fragment, { children:
|
|
3515
|
+
/* @__PURE__ */ N.jsx(N.Fragment, { children: P && /* @__PURE__ */ N.jsx(
|
|
3516
3516
|
"div",
|
|
3517
3517
|
{
|
|
3518
3518
|
style: {
|
|
@@ -3574,24 +3574,24 @@ const Qs = "_autocomplete_1uhaj_1", e2 = "_autocompleteContainer_1uhaj_4", t2 =
|
|
|
3574
3574
|
}) => {
|
|
3575
3575
|
const o = D(null), u = D(null), [s, v] = be(!1), [m, l] = be(!1), p = D(null), c = D(null), [$, f] = be({ left: 0, top: 0 }), b = D(0), S = D(0);
|
|
3576
3576
|
let w = {};
|
|
3577
|
-
|
|
3577
|
+
pe(() => {
|
|
3578
3578
|
o.current && t && (o.current.value = t.label || "");
|
|
3579
3579
|
}, [t]);
|
|
3580
|
-
const
|
|
3580
|
+
const C = () => {
|
|
3581
3581
|
b.current = window.innerHeight, S.current = document.body.scrollHeight, l(!0);
|
|
3582
3582
|
};
|
|
3583
|
-
|
|
3584
|
-
window.addEventListener("resize",
|
|
3583
|
+
pe(() => (C(), window.addEventListener("resize", C), () => {
|
|
3584
|
+
window.addEventListener("resize", C);
|
|
3585
3585
|
}), []);
|
|
3586
|
-
const
|
|
3586
|
+
const y = () => S.current - (b.current + window.scrollY), P = () => {
|
|
3587
3587
|
if (p.current) {
|
|
3588
3588
|
const E = p.current.getBoundingClientRect();
|
|
3589
3589
|
setTimeout(() => {
|
|
3590
|
-
const Z = c?.current?.getBoundingClientRect(),
|
|
3590
|
+
const Z = c?.current?.getBoundingClientRect(), ae = y(), de = b.current - E.bottom;
|
|
3591
3591
|
let H;
|
|
3592
3592
|
if (Z) {
|
|
3593
|
-
const ce = E.height, ue = E.top,
|
|
3594
|
-
ue <
|
|
3593
|
+
const ce = E.height, ue = E.top, O = Z.height, F = O > ue + window.scrollY;
|
|
3594
|
+
ue < O && (F || F && de < O || ae > O || de > O) || ue > O && de > O ? H = E.y + ce : H = E.y - O, f({
|
|
3595
3595
|
left: E.left,
|
|
3596
3596
|
top: H ?? E.top
|
|
3597
3597
|
});
|
|
@@ -3599,33 +3599,33 @@ const Qs = "_autocomplete_1uhaj_1", e2 = "_autocompleteContainer_1uhaj_4", t2 =
|
|
|
3599
3599
|
}, 0);
|
|
3600
3600
|
}
|
|
3601
3601
|
};
|
|
3602
|
-
|
|
3603
|
-
window.removeEventListener("scroll",
|
|
3602
|
+
pe(() => (window.addEventListener("scroll", P), window.addEventListener("resize", P), () => {
|
|
3603
|
+
window.removeEventListener("scroll", P), window.removeEventListener("resize", P);
|
|
3604
3604
|
}), []);
|
|
3605
|
-
const
|
|
3605
|
+
const U = (E) => {
|
|
3606
3606
|
n(E), q();
|
|
3607
|
-
},
|
|
3608
|
-
|
|
3609
|
-
},
|
|
3607
|
+
}, I = () => {
|
|
3608
|
+
P(), v(!0), o.current && t && (o.current.value = t.label || ""), o.current && u.current && (a && (o.current.value = "", r("")), u.current.click());
|
|
3609
|
+
}, T = (E) => E?.label, q = () => {
|
|
3610
3610
|
const E = o.current;
|
|
3611
3611
|
E && E.setSelectionRange(E.value.length, E.value.length);
|
|
3612
|
-
},
|
|
3612
|
+
}, ne = () => {
|
|
3613
3613
|
v(!0);
|
|
3614
|
-
},
|
|
3614
|
+
}, ie = () => {
|
|
3615
3615
|
v(!1);
|
|
3616
3616
|
};
|
|
3617
|
-
if (
|
|
3617
|
+
if (pe(() => {
|
|
3618
3618
|
const E = o.current;
|
|
3619
|
-
return E && (E.addEventListener("focus",
|
|
3620
|
-
E && (E.removeEventListener("focus",
|
|
3619
|
+
return E && (E.addEventListener("focus", ne), E.addEventListener("blur", ie)), () => {
|
|
3620
|
+
E && (E.removeEventListener("focus", ne), E.removeEventListener("blur", ie));
|
|
3621
3621
|
};
|
|
3622
|
-
}, [
|
|
3622
|
+
}, [ne, ie]), d) {
|
|
3623
3623
|
const E = Et(d);
|
|
3624
3624
|
d = ct.convert3HexTo6(d), (E === "dark" || E === "light") && (w = {
|
|
3625
3625
|
borderBottomColor: d === "#ffffff" ? "#c8c8c8" : s ? d : "#333333"
|
|
3626
3626
|
});
|
|
3627
3627
|
}
|
|
3628
|
-
return /* @__PURE__ */ N.jsx(en, { value: t, onChange:
|
|
3628
|
+
return /* @__PURE__ */ N.jsx(en, { value: t, onChange: U, disabled: i, children: ({ open: E }) => /* @__PURE__ */ N.jsxs("div", { className: rt.autocomplete, children: [
|
|
3629
3629
|
/* @__PURE__ */ N.jsxs("div", { ref: p, className: `${rt.autocompleteContainer} ${i ? rt.disable : ""}`, children: [
|
|
3630
3630
|
/* @__PURE__ */ N.jsx(
|
|
3631
3631
|
en.Input,
|
|
@@ -3633,15 +3633,15 @@ const Qs = "_autocomplete_1uhaj_1", e2 = "_autocompleteContainer_1uhaj_4", t2 =
|
|
|
3633
3633
|
ref: o,
|
|
3634
3634
|
"data-testid": "select-input",
|
|
3635
3635
|
className: rt.autocompleteInput,
|
|
3636
|
-
displayValue:
|
|
3636
|
+
displayValue: T,
|
|
3637
3637
|
onChange: (Z) => {
|
|
3638
|
-
r(Z.target.value),
|
|
3638
|
+
r(Z.target.value), P();
|
|
3639
3639
|
},
|
|
3640
|
-
onClick:
|
|
3641
|
-
onFocus:
|
|
3642
|
-
onBlur:
|
|
3640
|
+
onClick: I,
|
|
3641
|
+
onFocus: ne,
|
|
3642
|
+
onBlur: ie,
|
|
3643
3643
|
onKeyDown: (Z) => {
|
|
3644
|
-
(Z.key === " " || Z.code === "Space") &&
|
|
3644
|
+
(Z.key === " " || Z.code === "Space") && P();
|
|
3645
3645
|
},
|
|
3646
3646
|
style: { ...w },
|
|
3647
3647
|
placeholder: "Select your option",
|
|
@@ -3654,7 +3654,7 @@ const Qs = "_autocomplete_1uhaj_1", e2 = "_autocompleteContainer_1uhaj_4", t2 =
|
|
|
3654
3654
|
className: rt.autocompleteButton,
|
|
3655
3655
|
"data-testid": "select-button",
|
|
3656
3656
|
ref: u,
|
|
3657
|
-
onClick:
|
|
3657
|
+
onClick: P,
|
|
3658
3658
|
children: /* @__PURE__ */ N.jsx(
|
|
3659
3659
|
$o,
|
|
3660
3660
|
{
|
|
@@ -3709,7 +3709,7 @@ l2.displayName = "AutoCompleteOption";
|
|
|
3709
3709
|
const s2 = "_textInputWrapper_gym4n_1", c2 = "_textInput_gym4n_1", Ti = {
|
|
3710
3710
|
textInputWrapper: s2,
|
|
3711
3711
|
textInput: c2
|
|
3712
|
-
}, f2 =
|
|
3712
|
+
}, f2 = j.memo(
|
|
3713
3713
|
Pt(
|
|
3714
3714
|
({ themeColor: e = "", style: t = {}, className: n = "", onFocus: r, onBlur: i, ...a }, d) => {
|
|
3715
3715
|
const [o, u] = be(!1);
|
|
@@ -3763,65 +3763,65 @@ function w2() {
|
|
|
3763
3763
|
return ve;
|
|
3764
3764
|
Ii = 1;
|
|
3765
3765
|
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, a = e ? Symbol.for("react.profiler") : 60114, d = e ? Symbol.for("react.provider") : 60109, o = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, s = e ? Symbol.for("react.concurrent_mode") : 60111, v = e ? Symbol.for("react.forward_ref") : 60112, m = e ? Symbol.for("react.suspense") : 60113, l = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, c = e ? Symbol.for("react.lazy") : 60116, $ = e ? Symbol.for("react.block") : 60121, f = e ? Symbol.for("react.fundamental") : 60117, b = e ? Symbol.for("react.responder") : 60118, S = e ? Symbol.for("react.scope") : 60119;
|
|
3766
|
-
function w(
|
|
3767
|
-
if (typeof
|
|
3768
|
-
var
|
|
3769
|
-
switch (
|
|
3766
|
+
function w(y) {
|
|
3767
|
+
if (typeof y == "object" && y !== null) {
|
|
3768
|
+
var P = y.$$typeof;
|
|
3769
|
+
switch (P) {
|
|
3770
3770
|
case t:
|
|
3771
|
-
switch (
|
|
3771
|
+
switch (y = y.type, y) {
|
|
3772
3772
|
case u:
|
|
3773
3773
|
case s:
|
|
3774
3774
|
case r:
|
|
3775
3775
|
case a:
|
|
3776
3776
|
case i:
|
|
3777
3777
|
case m:
|
|
3778
|
-
return
|
|
3778
|
+
return y;
|
|
3779
3779
|
default:
|
|
3780
|
-
switch (
|
|
3780
|
+
switch (y = y && y.$$typeof, y) {
|
|
3781
3781
|
case o:
|
|
3782
3782
|
case v:
|
|
3783
3783
|
case c:
|
|
3784
3784
|
case p:
|
|
3785
3785
|
case d:
|
|
3786
|
-
return C;
|
|
3787
|
-
default:
|
|
3788
3786
|
return y;
|
|
3787
|
+
default:
|
|
3788
|
+
return P;
|
|
3789
3789
|
}
|
|
3790
3790
|
}
|
|
3791
3791
|
case n:
|
|
3792
|
-
return
|
|
3792
|
+
return P;
|
|
3793
3793
|
}
|
|
3794
3794
|
}
|
|
3795
3795
|
}
|
|
3796
|
-
function
|
|
3797
|
-
return w(
|
|
3798
|
-
}
|
|
3799
|
-
return ve.AsyncMode = u, ve.ConcurrentMode = s, ve.ContextConsumer = o, ve.ContextProvider = d, ve.Element = t, ve.ForwardRef = v, ve.Fragment = r, ve.Lazy = c, ve.Memo = p, ve.Portal = n, ve.Profiler = a, ve.StrictMode = i, ve.Suspense = m, ve.isAsyncMode = function(
|
|
3800
|
-
return
|
|
3801
|
-
}, ve.isConcurrentMode =
|
|
3802
|
-
return w(
|
|
3803
|
-
}, ve.isContextProvider = function(
|
|
3804
|
-
return w(
|
|
3805
|
-
}, ve.isElement = function(
|
|
3806
|
-
return typeof
|
|
3807
|
-
}, ve.isForwardRef = function(
|
|
3808
|
-
return w(
|
|
3809
|
-
}, ve.isFragment = function(
|
|
3810
|
-
return w(
|
|
3811
|
-
}, ve.isLazy = function(
|
|
3812
|
-
return w(
|
|
3813
|
-
}, ve.isMemo = function(
|
|
3814
|
-
return w(
|
|
3815
|
-
}, ve.isPortal = function(
|
|
3816
|
-
return w(
|
|
3817
|
-
}, ve.isProfiler = function(
|
|
3818
|
-
return w(
|
|
3819
|
-
}, ve.isStrictMode = function(
|
|
3820
|
-
return w(
|
|
3821
|
-
}, ve.isSuspense = function(
|
|
3822
|
-
return w(
|
|
3823
|
-
}, ve.isValidElementType = function(
|
|
3824
|
-
return typeof
|
|
3796
|
+
function C(y) {
|
|
3797
|
+
return w(y) === s;
|
|
3798
|
+
}
|
|
3799
|
+
return ve.AsyncMode = u, ve.ConcurrentMode = s, ve.ContextConsumer = o, ve.ContextProvider = d, ve.Element = t, ve.ForwardRef = v, ve.Fragment = r, ve.Lazy = c, ve.Memo = p, ve.Portal = n, ve.Profiler = a, ve.StrictMode = i, ve.Suspense = m, ve.isAsyncMode = function(y) {
|
|
3800
|
+
return C(y) || w(y) === u;
|
|
3801
|
+
}, ve.isConcurrentMode = C, ve.isContextConsumer = function(y) {
|
|
3802
|
+
return w(y) === o;
|
|
3803
|
+
}, ve.isContextProvider = function(y) {
|
|
3804
|
+
return w(y) === d;
|
|
3805
|
+
}, ve.isElement = function(y) {
|
|
3806
|
+
return typeof y == "object" && y !== null && y.$$typeof === t;
|
|
3807
|
+
}, ve.isForwardRef = function(y) {
|
|
3808
|
+
return w(y) === v;
|
|
3809
|
+
}, ve.isFragment = function(y) {
|
|
3810
|
+
return w(y) === r;
|
|
3811
|
+
}, ve.isLazy = function(y) {
|
|
3812
|
+
return w(y) === c;
|
|
3813
|
+
}, ve.isMemo = function(y) {
|
|
3814
|
+
return w(y) === p;
|
|
3815
|
+
}, ve.isPortal = function(y) {
|
|
3816
|
+
return w(y) === n;
|
|
3817
|
+
}, ve.isProfiler = function(y) {
|
|
3818
|
+
return w(y) === a;
|
|
3819
|
+
}, ve.isStrictMode = function(y) {
|
|
3820
|
+
return w(y) === i;
|
|
3821
|
+
}, ve.isSuspense = function(y) {
|
|
3822
|
+
return w(y) === m;
|
|
3823
|
+
}, ve.isValidElementType = function(y) {
|
|
3824
|
+
return typeof y == "string" || typeof y == "function" || y === r || y === s || y === a || y === i || y === m || y === l || typeof y == "object" && y !== null && (y.$$typeof === c || y.$$typeof === p || y.$$typeof === d || y.$$typeof === o || y.$$typeof === v || y.$$typeof === f || y.$$typeof === b || y.$$typeof === S || y.$$typeof === $);
|
|
3825
3825
|
}, ve.typeOf = w, ve;
|
|
3826
3826
|
}
|
|
3827
3827
|
var he = {};
|
|
@@ -3841,7 +3841,7 @@ function C2() {
|
|
|
3841
3841
|
return typeof g == "string" || typeof g == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
3842
3842
|
g === r || g === s || g === a || g === i || g === m || g === l || typeof g == "object" && g !== null && (g.$$typeof === c || g.$$typeof === p || g.$$typeof === d || g.$$typeof === o || g.$$typeof === v || g.$$typeof === f || g.$$typeof === b || g.$$typeof === S || g.$$typeof === $);
|
|
3843
3843
|
}
|
|
3844
|
-
function
|
|
3844
|
+
function C(g) {
|
|
3845
3845
|
if (typeof g == "object" && g !== null) {
|
|
3846
3846
|
var K = g.$$typeof;
|
|
3847
3847
|
switch (K) {
|
|
@@ -3873,47 +3873,47 @@ function C2() {
|
|
|
3873
3873
|
}
|
|
3874
3874
|
}
|
|
3875
3875
|
}
|
|
3876
|
-
var
|
|
3876
|
+
var y = u, P = s, U = o, I = d, T = t, q = v, ne = r, ie = c, E = p, Z = n, ae = a, de = i, H = m, ce = !1;
|
|
3877
3877
|
function ue(g) {
|
|
3878
|
-
return ce || (ce = !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.")),
|
|
3878
|
+
return ce || (ce = !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.")), O(g) || C(g) === u;
|
|
3879
3879
|
}
|
|
3880
|
-
function
|
|
3881
|
-
return
|
|
3880
|
+
function O(g) {
|
|
3881
|
+
return C(g) === s;
|
|
3882
3882
|
}
|
|
3883
|
-
function
|
|
3884
|
-
return
|
|
3883
|
+
function F(g) {
|
|
3884
|
+
return C(g) === o;
|
|
3885
3885
|
}
|
|
3886
3886
|
function W(g) {
|
|
3887
|
-
return
|
|
3887
|
+
return C(g) === d;
|
|
3888
3888
|
}
|
|
3889
|
-
function
|
|
3889
|
+
function B(g) {
|
|
3890
3890
|
return typeof g == "object" && g !== null && g.$$typeof === t;
|
|
3891
3891
|
}
|
|
3892
|
-
function
|
|
3893
|
-
return
|
|
3892
|
+
function x(g) {
|
|
3893
|
+
return C(g) === v;
|
|
3894
3894
|
}
|
|
3895
|
-
function
|
|
3896
|
-
return
|
|
3895
|
+
function R(g) {
|
|
3896
|
+
return C(g) === r;
|
|
3897
3897
|
}
|
|
3898
|
-
function
|
|
3899
|
-
return
|
|
3898
|
+
function k(g) {
|
|
3899
|
+
return C(g) === c;
|
|
3900
3900
|
}
|
|
3901
3901
|
function G(g) {
|
|
3902
|
-
return
|
|
3902
|
+
return C(g) === p;
|
|
3903
3903
|
}
|
|
3904
3904
|
function Y(g) {
|
|
3905
|
-
return
|
|
3905
|
+
return C(g) === n;
|
|
3906
3906
|
}
|
|
3907
3907
|
function te(g) {
|
|
3908
|
-
return
|
|
3908
|
+
return C(g) === a;
|
|
3909
3909
|
}
|
|
3910
3910
|
function ee(g) {
|
|
3911
|
-
return
|
|
3911
|
+
return C(g) === i;
|
|
3912
3912
|
}
|
|
3913
3913
|
function Ne(g) {
|
|
3914
|
-
return
|
|
3914
|
+
return C(g) === m;
|
|
3915
3915
|
}
|
|
3916
|
-
he.AsyncMode =
|
|
3916
|
+
he.AsyncMode = y, he.ConcurrentMode = P, he.ContextConsumer = U, he.ContextProvider = I, he.Element = T, he.ForwardRef = q, he.Fragment = ne, he.Lazy = ie, he.Memo = E, he.Portal = Z, he.Profiler = ae, he.StrictMode = de, he.Suspense = H, he.isAsyncMode = ue, he.isConcurrentMode = O, he.isContextConsumer = F, he.isContextProvider = W, he.isElement = B, he.isForwardRef = x, he.isFragment = R, he.isLazy = k, he.isMemo = G, he.isPortal = Y, he.isProfiler = te, he.isStrictMode = ee, he.isSuspense = Ne, he.isValidElementType = w, he.typeOf = C;
|
|
3917
3917
|
}()), he;
|
|
3918
3918
|
}
|
|
3919
3919
|
var Ai;
|
|
@@ -4054,10 +4054,10 @@ function P2() {
|
|
|
4054
4054
|
}
|
|
4055
4055
|
return ar = function(o, u) {
|
|
4056
4056
|
var s = typeof Symbol == "function" && Symbol.iterator, v = "@@iterator";
|
|
4057
|
-
function m(
|
|
4058
|
-
var
|
|
4059
|
-
if (typeof
|
|
4060
|
-
return
|
|
4057
|
+
function m(O) {
|
|
4058
|
+
var F = O && (s && O[s] || O[v]);
|
|
4059
|
+
if (typeof F == "function")
|
|
4060
|
+
return F;
|
|
4061
4061
|
}
|
|
4062
4062
|
var l = "<<anonymous>>", p = {
|
|
4063
4063
|
array: b("array"),
|
|
@@ -4070,27 +4070,27 @@ function P2() {
|
|
|
4070
4070
|
symbol: b("symbol"),
|
|
4071
4071
|
any: S(),
|
|
4072
4072
|
arrayOf: w,
|
|
4073
|
-
element:
|
|
4074
|
-
elementType:
|
|
4075
|
-
instanceOf:
|
|
4073
|
+
element: C(),
|
|
4074
|
+
elementType: y(),
|
|
4075
|
+
instanceOf: P,
|
|
4076
4076
|
node: q(),
|
|
4077
|
-
objectOf:
|
|
4078
|
-
oneOf:
|
|
4079
|
-
oneOfType:
|
|
4080
|
-
shape:
|
|
4077
|
+
objectOf: I,
|
|
4078
|
+
oneOf: U,
|
|
4079
|
+
oneOfType: T,
|
|
4080
|
+
shape: ie,
|
|
4081
4081
|
exact: E
|
|
4082
4082
|
};
|
|
4083
|
-
function c(
|
|
4084
|
-
return
|
|
4083
|
+
function c(O, F) {
|
|
4084
|
+
return O === F ? O !== 0 || 1 / O === 1 / F : O !== O && F !== F;
|
|
4085
4085
|
}
|
|
4086
|
-
function $(
|
|
4087
|
-
this.message =
|
|
4086
|
+
function $(O, F) {
|
|
4087
|
+
this.message = O, this.data = F && typeof F == "object" ? F : {}, this.stack = "";
|
|
4088
4088
|
}
|
|
4089
4089
|
$.prototype = Error.prototype;
|
|
4090
|
-
function f(
|
|
4090
|
+
function f(O) {
|
|
4091
4091
|
if (process.env.NODE_ENV !== "production")
|
|
4092
|
-
var
|
|
4093
|
-
function
|
|
4092
|
+
var F = {}, W = 0;
|
|
4093
|
+
function B(R, k, G, Y, te, ee, Ne) {
|
|
4094
4094
|
if (Y = Y || l, ee = ee || G, Ne !== n) {
|
|
4095
4095
|
if (u) {
|
|
4096
4096
|
var g = new Error(
|
|
@@ -4099,215 +4099,215 @@ function P2() {
|
|
|
4099
4099
|
throw g.name = "Invariant Violation", g;
|
|
4100
4100
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
4101
4101
|
var K = Y + ":" + G;
|
|
4102
|
-
!
|
|
4102
|
+
!F[K] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
4103
4103
|
W < 3 && (a(
|
|
4104
4104
|
"You are manually calling a React.PropTypes validation function for the `" + ee + "` prop on `" + Y + "`. 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."
|
|
4105
|
-
),
|
|
4105
|
+
), F[K] = !0, W++);
|
|
4106
4106
|
}
|
|
4107
4107
|
}
|
|
4108
|
-
return
|
|
4108
|
+
return k[G] == null ? R ? k[G] === null ? new $("The " + te + " `" + ee + "` is marked as required " + ("in `" + Y + "`, but its value is `null`.")) : new $("The " + te + " `" + ee + "` is marked as required in " + ("`" + Y + "`, but its value is `undefined`.")) : null : O(k, G, Y, te, ee);
|
|
4109
4109
|
}
|
|
4110
|
-
var
|
|
4111
|
-
return
|
|
4110
|
+
var x = B.bind(null, !1);
|
|
4111
|
+
return x.isRequired = B.bind(null, !0), x;
|
|
4112
4112
|
}
|
|
4113
|
-
function b(
|
|
4114
|
-
function
|
|
4115
|
-
var Y = W[
|
|
4116
|
-
if (te !==
|
|
4113
|
+
function b(O) {
|
|
4114
|
+
function F(W, B, x, R, k, G) {
|
|
4115
|
+
var Y = W[B], te = de(Y);
|
|
4116
|
+
if (te !== O) {
|
|
4117
4117
|
var ee = H(Y);
|
|
4118
4118
|
return new $(
|
|
4119
|
-
"Invalid " +
|
|
4120
|
-
{ expectedType:
|
|
4119
|
+
"Invalid " + R + " `" + k + "` of type " + ("`" + ee + "` supplied to `" + x + "`, expected ") + ("`" + O + "`."),
|
|
4120
|
+
{ expectedType: O }
|
|
4121
4121
|
);
|
|
4122
4122
|
}
|
|
4123
4123
|
return null;
|
|
4124
4124
|
}
|
|
4125
|
-
return f(
|
|
4125
|
+
return f(F);
|
|
4126
4126
|
}
|
|
4127
4127
|
function S() {
|
|
4128
4128
|
return f(d);
|
|
4129
4129
|
}
|
|
4130
|
-
function w(
|
|
4131
|
-
function
|
|
4132
|
-
if (typeof
|
|
4133
|
-
return new $("Property `" +
|
|
4134
|
-
var G = W[
|
|
4130
|
+
function w(O) {
|
|
4131
|
+
function F(W, B, x, R, k) {
|
|
4132
|
+
if (typeof O != "function")
|
|
4133
|
+
return new $("Property `" + k + "` of component `" + x + "` has invalid PropType notation inside arrayOf.");
|
|
4134
|
+
var G = W[B];
|
|
4135
4135
|
if (!Array.isArray(G)) {
|
|
4136
|
-
var Y =
|
|
4137
|
-
return new $("Invalid " +
|
|
4136
|
+
var Y = de(G);
|
|
4137
|
+
return new $("Invalid " + R + " `" + k + "` of type " + ("`" + Y + "` supplied to `" + x + "`, expected an array."));
|
|
4138
4138
|
}
|
|
4139
4139
|
for (var te = 0; te < G.length; te++) {
|
|
4140
|
-
var ee =
|
|
4140
|
+
var ee = O(G, te, x, R, k + "[" + te + "]", n);
|
|
4141
4141
|
if (ee instanceof Error)
|
|
4142
4142
|
return ee;
|
|
4143
4143
|
}
|
|
4144
4144
|
return null;
|
|
4145
4145
|
}
|
|
4146
|
-
return f(
|
|
4147
|
-
}
|
|
4148
|
-
function
|
|
4149
|
-
function
|
|
4150
|
-
var
|
|
4151
|
-
if (!o(
|
|
4152
|
-
var G =
|
|
4153
|
-
return new $("Invalid " +
|
|
4146
|
+
return f(F);
|
|
4147
|
+
}
|
|
4148
|
+
function C() {
|
|
4149
|
+
function O(F, W, B, x, R) {
|
|
4150
|
+
var k = F[W];
|
|
4151
|
+
if (!o(k)) {
|
|
4152
|
+
var G = de(k);
|
|
4153
|
+
return new $("Invalid " + x + " `" + R + "` of type " + ("`" + G + "` supplied to `" + B + "`, expected a single ReactElement."));
|
|
4154
4154
|
}
|
|
4155
4155
|
return null;
|
|
4156
4156
|
}
|
|
4157
|
-
return f(
|
|
4158
|
-
}
|
|
4159
|
-
function
|
|
4160
|
-
function
|
|
4161
|
-
var
|
|
4162
|
-
if (!e.isValidElementType(
|
|
4163
|
-
var G =
|
|
4164
|
-
return new $("Invalid " +
|
|
4157
|
+
return f(O);
|
|
4158
|
+
}
|
|
4159
|
+
function y() {
|
|
4160
|
+
function O(F, W, B, x, R) {
|
|
4161
|
+
var k = F[W];
|
|
4162
|
+
if (!e.isValidElementType(k)) {
|
|
4163
|
+
var G = de(k);
|
|
4164
|
+
return new $("Invalid " + x + " `" + R + "` of type " + ("`" + G + "` supplied to `" + B + "`, expected a single ReactElement type."));
|
|
4165
4165
|
}
|
|
4166
4166
|
return null;
|
|
4167
4167
|
}
|
|
4168
|
-
return f(
|
|
4168
|
+
return f(O);
|
|
4169
4169
|
}
|
|
4170
|
-
function
|
|
4171
|
-
function
|
|
4172
|
-
if (!(W[
|
|
4173
|
-
var G =
|
|
4174
|
-
return new $("Invalid " +
|
|
4170
|
+
function P(O) {
|
|
4171
|
+
function F(W, B, x, R, k) {
|
|
4172
|
+
if (!(W[B] instanceof O)) {
|
|
4173
|
+
var G = O.name || l, Y = ue(W[B]);
|
|
4174
|
+
return new $("Invalid " + R + " `" + k + "` of type " + ("`" + Y + "` supplied to `" + x + "`, expected ") + ("instance of `" + G + "`."));
|
|
4175
4175
|
}
|
|
4176
4176
|
return null;
|
|
4177
4177
|
}
|
|
4178
|
-
return f(
|
|
4178
|
+
return f(F);
|
|
4179
4179
|
}
|
|
4180
|
-
function
|
|
4181
|
-
if (!Array.isArray(
|
|
4180
|
+
function U(O) {
|
|
4181
|
+
if (!Array.isArray(O))
|
|
4182
4182
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
|
|
4183
4183
|
"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])."
|
|
4184
4184
|
) : a("Invalid argument supplied to oneOf, expected an array.")), d;
|
|
4185
|
-
function
|
|
4186
|
-
for (var G = W[
|
|
4187
|
-
if (c(G,
|
|
4185
|
+
function F(W, B, x, R, k) {
|
|
4186
|
+
for (var G = W[B], Y = 0; Y < O.length; Y++)
|
|
4187
|
+
if (c(G, O[Y]))
|
|
4188
4188
|
return null;
|
|
4189
|
-
var te = JSON.stringify(
|
|
4189
|
+
var te = JSON.stringify(O, function(Ne, g) {
|
|
4190
4190
|
var K = H(g);
|
|
4191
4191
|
return K === "symbol" ? String(g) : g;
|
|
4192
4192
|
});
|
|
4193
|
-
return new $("Invalid " +
|
|
4193
|
+
return new $("Invalid " + R + " `" + k + "` of value `" + String(G) + "` " + ("supplied to `" + x + "`, expected one of " + te + "."));
|
|
4194
4194
|
}
|
|
4195
|
-
return f(
|
|
4195
|
+
return f(F);
|
|
4196
4196
|
}
|
|
4197
|
-
function
|
|
4198
|
-
function
|
|
4199
|
-
if (typeof
|
|
4200
|
-
return new $("Property `" +
|
|
4201
|
-
var G = W[
|
|
4197
|
+
function I(O) {
|
|
4198
|
+
function F(W, B, x, R, k) {
|
|
4199
|
+
if (typeof O != "function")
|
|
4200
|
+
return new $("Property `" + k + "` of component `" + x + "` has invalid PropType notation inside objectOf.");
|
|
4201
|
+
var G = W[B], Y = de(G);
|
|
4202
4202
|
if (Y !== "object")
|
|
4203
|
-
return new $("Invalid " +
|
|
4203
|
+
return new $("Invalid " + R + " `" + k + "` of type " + ("`" + Y + "` supplied to `" + x + "`, expected an object."));
|
|
4204
4204
|
for (var te in G)
|
|
4205
4205
|
if (r(G, te)) {
|
|
4206
|
-
var ee =
|
|
4206
|
+
var ee = O(G, te, x, R, k + "." + te, n);
|
|
4207
4207
|
if (ee instanceof Error)
|
|
4208
4208
|
return ee;
|
|
4209
4209
|
}
|
|
4210
4210
|
return null;
|
|
4211
4211
|
}
|
|
4212
|
-
return f(
|
|
4212
|
+
return f(F);
|
|
4213
4213
|
}
|
|
4214
|
-
function
|
|
4215
|
-
if (!Array.isArray(
|
|
4214
|
+
function T(O) {
|
|
4215
|
+
if (!Array.isArray(O))
|
|
4216
4216
|
return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), d;
|
|
4217
|
-
for (var
|
|
4218
|
-
var W =
|
|
4217
|
+
for (var F = 0; F < O.length; F++) {
|
|
4218
|
+
var W = O[F];
|
|
4219
4219
|
if (typeof W != "function")
|
|
4220
4220
|
return a(
|
|
4221
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ce(W) + " at index " +
|
|
4221
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ce(W) + " at index " + F + "."
|
|
4222
4222
|
), d;
|
|
4223
4223
|
}
|
|
4224
|
-
function
|
|
4225
|
-
for (var te = [], ee = 0; ee <
|
|
4226
|
-
var Ne =
|
|
4224
|
+
function B(x, R, k, G, Y) {
|
|
4225
|
+
for (var te = [], ee = 0; ee < O.length; ee++) {
|
|
4226
|
+
var Ne = O[ee], g = Ne(x, R, k, G, Y, n);
|
|
4227
4227
|
if (g == null)
|
|
4228
4228
|
return null;
|
|
4229
4229
|
g.data && r(g.data, "expectedType") && te.push(g.data.expectedType);
|
|
4230
4230
|
}
|
|
4231
4231
|
var K = te.length > 0 ? ", expected one of type [" + te.join(", ") + "]" : "";
|
|
4232
|
-
return new $("Invalid " + G + " `" + Y + "` supplied to " + ("`" +
|
|
4232
|
+
return new $("Invalid " + G + " `" + Y + "` supplied to " + ("`" + k + "`" + K + "."));
|
|
4233
4233
|
}
|
|
4234
|
-
return f(
|
|
4234
|
+
return f(B);
|
|
4235
4235
|
}
|
|
4236
4236
|
function q() {
|
|
4237
|
-
function
|
|
4238
|
-
return Z(
|
|
4237
|
+
function O(F, W, B, x, R) {
|
|
4238
|
+
return Z(F[W]) ? null : new $("Invalid " + x + " `" + R + "` supplied to " + ("`" + B + "`, expected a ReactNode."));
|
|
4239
4239
|
}
|
|
4240
|
-
return f(
|
|
4240
|
+
return f(O);
|
|
4241
4241
|
}
|
|
4242
|
-
function
|
|
4242
|
+
function ne(O, F, W, B, x) {
|
|
4243
4243
|
return new $(
|
|
4244
|
-
(
|
|
4244
|
+
(O || "React class") + ": " + F + " type `" + W + "." + B + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + x + "`."
|
|
4245
4245
|
);
|
|
4246
4246
|
}
|
|
4247
|
-
function
|
|
4248
|
-
function
|
|
4249
|
-
var G = W[
|
|
4247
|
+
function ie(O) {
|
|
4248
|
+
function F(W, B, x, R, k) {
|
|
4249
|
+
var G = W[B], Y = de(G);
|
|
4250
4250
|
if (Y !== "object")
|
|
4251
|
-
return new $("Invalid " +
|
|
4252
|
-
for (var te in
|
|
4253
|
-
var ee =
|
|
4251
|
+
return new $("Invalid " + R + " `" + k + "` of type `" + Y + "` " + ("supplied to `" + x + "`, expected `object`."));
|
|
4252
|
+
for (var te in O) {
|
|
4253
|
+
var ee = O[te];
|
|
4254
4254
|
if (typeof ee != "function")
|
|
4255
|
-
return
|
|
4256
|
-
var Ne = ee(G, te,
|
|
4255
|
+
return ne(x, R, k, te, H(ee));
|
|
4256
|
+
var Ne = ee(G, te, x, R, k + "." + te, n);
|
|
4257
4257
|
if (Ne)
|
|
4258
4258
|
return Ne;
|
|
4259
4259
|
}
|
|
4260
4260
|
return null;
|
|
4261
4261
|
}
|
|
4262
|
-
return f(
|
|
4262
|
+
return f(F);
|
|
4263
4263
|
}
|
|
4264
|
-
function E(
|
|
4265
|
-
function
|
|
4266
|
-
var G = W[
|
|
4264
|
+
function E(O) {
|
|
4265
|
+
function F(W, B, x, R, k) {
|
|
4266
|
+
var G = W[B], Y = de(G);
|
|
4267
4267
|
if (Y !== "object")
|
|
4268
|
-
return new $("Invalid " +
|
|
4269
|
-
var te = t({}, W[
|
|
4268
|
+
return new $("Invalid " + R + " `" + k + "` of type `" + Y + "` " + ("supplied to `" + x + "`, expected `object`."));
|
|
4269
|
+
var te = t({}, W[B], O);
|
|
4270
4270
|
for (var ee in te) {
|
|
4271
|
-
var Ne =
|
|
4272
|
-
if (r(
|
|
4273
|
-
return
|
|
4271
|
+
var Ne = O[ee];
|
|
4272
|
+
if (r(O, ee) && typeof Ne != "function")
|
|
4273
|
+
return ne(x, R, k, ee, H(Ne));
|
|
4274
4274
|
if (!Ne)
|
|
4275
4275
|
return new $(
|
|
4276
|
-
"Invalid " +
|
|
4277
|
-
Valid keys: ` + JSON.stringify(Object.keys(
|
|
4276
|
+
"Invalid " + R + " `" + k + "` key `" + ee + "` supplied to `" + x + "`.\nBad object: " + JSON.stringify(W[B], null, " ") + `
|
|
4277
|
+
Valid keys: ` + JSON.stringify(Object.keys(O), null, " ")
|
|
4278
4278
|
);
|
|
4279
|
-
var g = Ne(G, ee,
|
|
4279
|
+
var g = Ne(G, ee, x, R, k + "." + ee, n);
|
|
4280
4280
|
if (g)
|
|
4281
4281
|
return g;
|
|
4282
4282
|
}
|
|
4283
4283
|
return null;
|
|
4284
4284
|
}
|
|
4285
|
-
return f(
|
|
4285
|
+
return f(F);
|
|
4286
4286
|
}
|
|
4287
|
-
function Z(
|
|
4288
|
-
switch (typeof
|
|
4287
|
+
function Z(O) {
|
|
4288
|
+
switch (typeof O) {
|
|
4289
4289
|
case "number":
|
|
4290
4290
|
case "string":
|
|
4291
4291
|
case "undefined":
|
|
4292
4292
|
return !0;
|
|
4293
4293
|
case "boolean":
|
|
4294
|
-
return !
|
|
4294
|
+
return !O;
|
|
4295
4295
|
case "object":
|
|
4296
|
-
if (Array.isArray(
|
|
4297
|
-
return
|
|
4298
|
-
if (
|
|
4296
|
+
if (Array.isArray(O))
|
|
4297
|
+
return O.every(Z);
|
|
4298
|
+
if (O === null || o(O))
|
|
4299
4299
|
return !0;
|
|
4300
|
-
var
|
|
4301
|
-
if (
|
|
4302
|
-
var W =
|
|
4303
|
-
if (
|
|
4304
|
-
for (; !(
|
|
4305
|
-
if (!Z(
|
|
4300
|
+
var F = m(O);
|
|
4301
|
+
if (F) {
|
|
4302
|
+
var W = F.call(O), B;
|
|
4303
|
+
if (F !== O.entries) {
|
|
4304
|
+
for (; !(B = W.next()).done; )
|
|
4305
|
+
if (!Z(B.value))
|
|
4306
4306
|
return !1;
|
|
4307
4307
|
} else
|
|
4308
|
-
for (; !(
|
|
4309
|
-
var
|
|
4310
|
-
if (
|
|
4308
|
+
for (; !(B = W.next()).done; ) {
|
|
4309
|
+
var x = B.value;
|
|
4310
|
+
if (x && !Z(x[1]))
|
|
4311
4311
|
return !1;
|
|
4312
4312
|
}
|
|
4313
4313
|
} else
|
|
@@ -4317,41 +4317,41 @@ Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
|
|
|
4317
4317
|
return !1;
|
|
4318
4318
|
}
|
|
4319
4319
|
}
|
|
4320
|
-
function
|
|
4321
|
-
return
|
|
4320
|
+
function ae(O, F) {
|
|
4321
|
+
return O === "symbol" ? !0 : F ? F["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && F instanceof Symbol : !1;
|
|
4322
4322
|
}
|
|
4323
|
-
function
|
|
4324
|
-
var
|
|
4325
|
-
return Array.isArray(
|
|
4323
|
+
function de(O) {
|
|
4324
|
+
var F = typeof O;
|
|
4325
|
+
return Array.isArray(O) ? "array" : O instanceof RegExp ? "object" : ae(F, O) ? "symbol" : F;
|
|
4326
4326
|
}
|
|
4327
|
-
function H(
|
|
4328
|
-
if (typeof
|
|
4329
|
-
return "" +
|
|
4330
|
-
var
|
|
4331
|
-
if (
|
|
4332
|
-
if (
|
|
4327
|
+
function H(O) {
|
|
4328
|
+
if (typeof O > "u" || O === null)
|
|
4329
|
+
return "" + O;
|
|
4330
|
+
var F = de(O);
|
|
4331
|
+
if (F === "object") {
|
|
4332
|
+
if (O instanceof Date)
|
|
4333
4333
|
return "date";
|
|
4334
|
-
if (
|
|
4334
|
+
if (O instanceof RegExp)
|
|
4335
4335
|
return "regexp";
|
|
4336
4336
|
}
|
|
4337
|
-
return
|
|
4337
|
+
return F;
|
|
4338
4338
|
}
|
|
4339
|
-
function ce(
|
|
4340
|
-
var
|
|
4341
|
-
switch (
|
|
4339
|
+
function ce(O) {
|
|
4340
|
+
var F = H(O);
|
|
4341
|
+
switch (F) {
|
|
4342
4342
|
case "array":
|
|
4343
4343
|
case "object":
|
|
4344
|
-
return "an " +
|
|
4344
|
+
return "an " + F;
|
|
4345
4345
|
case "boolean":
|
|
4346
4346
|
case "date":
|
|
4347
4347
|
case "regexp":
|
|
4348
|
-
return "a " +
|
|
4348
|
+
return "a " + F;
|
|
4349
4349
|
default:
|
|
4350
|
-
return
|
|
4350
|
+
return F;
|
|
4351
4351
|
}
|
|
4352
4352
|
}
|
|
4353
|
-
function ue(
|
|
4354
|
-
return !
|
|
4353
|
+
function ue(O) {
|
|
4354
|
+
return !O.constructor || !O.constructor.name ? l : O.constructor.name;
|
|
4355
4355
|
}
|
|
4356
4356
|
return p.checkPropTypes = i, p.resetWarningCache = i.resetWarningCache, p.PropTypes = p, p;
|
|
4357
4357
|
}, ar;
|
|
@@ -4411,7 +4411,7 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
4411
4411
|
} else
|
|
4412
4412
|
br.exports = S2()();
|
|
4413
4413
|
var T2 = br.exports;
|
|
4414
|
-
const
|
|
4414
|
+
const A = /* @__PURE__ */ za(T2);
|
|
4415
4415
|
var go = { exports: {} };
|
|
4416
4416
|
/*!
|
|
4417
4417
|
Copyright (c) 2018 Jed Watson.
|
|
@@ -4789,31 +4789,31 @@ function Nn(e, t) {
|
|
|
4789
4789
|
onKeyDown: v,
|
|
4790
4790
|
type: l
|
|
4791
4791
|
}, p));
|
|
4792
|
-
return /* @__PURE__ */
|
|
4792
|
+
return /* @__PURE__ */ j.createElement(r, c);
|
|
4793
4793
|
}
|
|
4794
|
-
Nn = /* @__PURE__ */
|
|
4794
|
+
Nn = /* @__PURE__ */ j.forwardRef(Nn);
|
|
4795
4795
|
Nn.propTypes = {
|
|
4796
4796
|
// Parses a single characher of `<input/>` text.
|
|
4797
|
-
parse:
|
|
4797
|
+
parse: A.func.isRequired,
|
|
4798
4798
|
// Formats `value` into `<input/>` text.
|
|
4799
|
-
format:
|
|
4799
|
+
format: A.func.isRequired,
|
|
4800
4800
|
// Renders `<input/>` by default.
|
|
4801
|
-
inputComponent:
|
|
4801
|
+
inputComponent: A.elementType,
|
|
4802
4802
|
// `<input/>` `type` attribute.
|
|
4803
|
-
type:
|
|
4803
|
+
type: A.string,
|
|
4804
4804
|
// Is parsed from <input/> text.
|
|
4805
|
-
value:
|
|
4805
|
+
value: A.string,
|
|
4806
4806
|
// An initial value for an "uncontrolled" <input/>.
|
|
4807
|
-
defaultValue:
|
|
4807
|
+
defaultValue: A.string,
|
|
4808
4808
|
// This handler is called each time `<input/>` text is changed.
|
|
4809
|
-
onChange:
|
|
4809
|
+
onChange: A.func,
|
|
4810
4810
|
// Whether this input should be "controlled" or "uncontrolled".
|
|
4811
4811
|
// The default value is `true` meaning "uncontrolled".
|
|
4812
|
-
controlled:
|
|
4812
|
+
controlled: A.bool,
|
|
4813
4813
|
// Passthrough
|
|
4814
|
-
onKeyDown:
|
|
4815
|
-
onCut:
|
|
4816
|
-
onPaste:
|
|
4814
|
+
onKeyDown: A.func,
|
|
4815
|
+
onCut: A.func,
|
|
4816
|
+
onPaste: A.func
|
|
4817
4817
|
};
|
|
4818
4818
|
const ac = Nn;
|
|
4819
4819
|
function Hi(e, t) {
|
|
@@ -7975,14 +7975,14 @@ function a4(e) {
|
|
|
7975
7975
|
onKeyDown: i,
|
|
7976
7976
|
inputFormat: d
|
|
7977
7977
|
});
|
|
7978
|
-
return /* @__PURE__ */
|
|
7978
|
+
return /* @__PURE__ */ j.createElement(ac, Rr({}, s, {
|
|
7979
7979
|
ref: r,
|
|
7980
7980
|
parse: J9,
|
|
7981
7981
|
format: v,
|
|
7982
7982
|
onKeyDown: m
|
|
7983
7983
|
}));
|
|
7984
7984
|
}
|
|
7985
|
-
return t = /* @__PURE__ */
|
|
7985
|
+
return t = /* @__PURE__ */ j.forwardRef(t), t.propTypes = {
|
|
7986
7986
|
/**
|
|
7987
7987
|
* The parsed phone number.
|
|
7988
7988
|
* "Parsed" not in a sense of "E.164"
|
|
@@ -7990,17 +7990,17 @@ function a4(e) {
|
|
|
7990
7990
|
* digits and possibly a leading plus character".
|
|
7991
7991
|
* Examples: `""`, `"+"`, `"+123"`, `"123"`.
|
|
7992
7992
|
*/
|
|
7993
|
-
value:
|
|
7993
|
+
value: A.string.isRequired,
|
|
7994
7994
|
/**
|
|
7995
7995
|
* A function of `value: string`.
|
|
7996
7996
|
* Updates the `value` property.
|
|
7997
7997
|
*/
|
|
7998
|
-
onChange:
|
|
7998
|
+
onChange: A.func.isRequired,
|
|
7999
7999
|
/**
|
|
8000
8000
|
* A function of `event: Event`.
|
|
8001
8001
|
* Handles `keydown` events.
|
|
8002
8002
|
*/
|
|
8003
|
-
onKeyDown:
|
|
8003
|
+
onKeyDown: A.func,
|
|
8004
8004
|
/**
|
|
8005
8005
|
* A two-letter country code for formatting `value`
|
|
8006
8006
|
* as a national phone number (e.g. `(800) 555 35 35`).
|
|
@@ -8012,15 +8012,15 @@ function a4(e) {
|
|
|
8012
8012
|
* because it only applies when the user inputs a phone number in a national format
|
|
8013
8013
|
* and is completely ignored when the user inputs a phone number in an international format.
|
|
8014
8014
|
*/
|
|
8015
|
-
country:
|
|
8015
|
+
country: A.string,
|
|
8016
8016
|
/**
|
|
8017
8017
|
* The format that the input field value is being input/output in.
|
|
8018
8018
|
*/
|
|
8019
|
-
inputFormat:
|
|
8019
|
+
inputFormat: A.oneOf(["INTERNATIONAL", "NATIONAL_PART_OF_INTERNATIONAL", "NATIONAL", "INTERNATIONAL_OR_NATIONAL"]).isRequired,
|
|
8020
8020
|
/**
|
|
8021
8021
|
* `libphonenumber-js` metadata.
|
|
8022
8022
|
*/
|
|
8023
|
-
metadata:
|
|
8023
|
+
metadata: A.object
|
|
8024
8024
|
}, t;
|
|
8025
8025
|
}
|
|
8026
8026
|
const d4 = a4();
|
|
@@ -8073,14 +8073,14 @@ function s4(e) {
|
|
|
8073
8073
|
onKeyDown: d,
|
|
8074
8074
|
inputFormat: u
|
|
8075
8075
|
});
|
|
8076
|
-
return /* @__PURE__ */
|
|
8076
|
+
return /* @__PURE__ */ j.createElement(l, Fr({}, p, {
|
|
8077
8077
|
ref: r,
|
|
8078
8078
|
value: ja(c, i, o, v),
|
|
8079
8079
|
onChange: $,
|
|
8080
8080
|
onKeyDown: f
|
|
8081
8081
|
}));
|
|
8082
8082
|
}
|
|
8083
|
-
return t = /* @__PURE__ */
|
|
8083
|
+
return t = /* @__PURE__ */ j.forwardRef(t), t.propTypes = {
|
|
8084
8084
|
/**
|
|
8085
8085
|
* The parsed phone number.
|
|
8086
8086
|
* "Parsed" not in a sense of "E.164"
|
|
@@ -8088,17 +8088,17 @@ function s4(e) {
|
|
|
8088
8088
|
* digits and possibly a leading plus character".
|
|
8089
8089
|
* Examples: `""`, `"+"`, `"+123"`, `"123"`.
|
|
8090
8090
|
*/
|
|
8091
|
-
value:
|
|
8091
|
+
value: A.string.isRequired,
|
|
8092
8092
|
/**
|
|
8093
8093
|
* A function of `value: string`.
|
|
8094
8094
|
* Updates the `value` property.
|
|
8095
8095
|
*/
|
|
8096
|
-
onChange:
|
|
8096
|
+
onChange: A.func.isRequired,
|
|
8097
8097
|
/**
|
|
8098
8098
|
* A function of `event: Event`.
|
|
8099
8099
|
* Handles `keydown` events.
|
|
8100
8100
|
*/
|
|
8101
|
-
onKeyDown:
|
|
8101
|
+
onKeyDown: A.func,
|
|
8102
8102
|
/**
|
|
8103
8103
|
* A two-letter country code for formatting `value`
|
|
8104
8104
|
* as a national phone number (e.g. `(800) 555 35 35`).
|
|
@@ -8110,19 +8110,19 @@ function s4(e) {
|
|
|
8110
8110
|
* because it only applies when the user inputs a phone number in a national format
|
|
8111
8111
|
* and is completely ignored when the user inputs a phone number in an international format.
|
|
8112
8112
|
*/
|
|
8113
|
-
country:
|
|
8113
|
+
country: A.string,
|
|
8114
8114
|
/**
|
|
8115
8115
|
* The format that the input field value is being input/output in.
|
|
8116
8116
|
*/
|
|
8117
|
-
inputFormat:
|
|
8117
|
+
inputFormat: A.oneOf(["INTERNATIONAL", "NATIONAL_PART_OF_INTERNATIONAL", "NATIONAL", "INTERNATIONAL_OR_NATIONAL"]).isRequired,
|
|
8118
8118
|
/**
|
|
8119
8119
|
* `libphonenumber-js` metadata.
|
|
8120
8120
|
*/
|
|
8121
|
-
metadata:
|
|
8121
|
+
metadata: A.object,
|
|
8122
8122
|
/**
|
|
8123
8123
|
* The `<input/>` component.
|
|
8124
8124
|
*/
|
|
8125
|
-
inputComponent:
|
|
8125
|
+
inputComponent: A.elementType
|
|
8126
8126
|
}, t;
|
|
8127
8127
|
}
|
|
8128
8128
|
const c4 = s4();
|
|
@@ -8203,14 +8203,14 @@ function Ko(e) {
|
|
|
8203
8203
|
}, [n]);
|
|
8204
8204
|
return Ie(function() {
|
|
8205
8205
|
return Yo(r, t);
|
|
8206
|
-
}, [r, t]), /* @__PURE__ */
|
|
8206
|
+
}, [r, t]), /* @__PURE__ */ j.createElement("select", _n({}, d, {
|
|
8207
8207
|
disabled: i || a,
|
|
8208
8208
|
readOnly: a,
|
|
8209
8209
|
value: t || "ZZ",
|
|
8210
8210
|
onChange: o
|
|
8211
8211
|
}), r.map(function(u) {
|
|
8212
8212
|
var s = u.value, v = u.label, m = u.divider;
|
|
8213
|
-
return /* @__PURE__ */
|
|
8213
|
+
return /* @__PURE__ */ j.createElement("option", {
|
|
8214
8214
|
key: m ? "|" : s || "ZZ",
|
|
8215
8215
|
value: m ? "|" : s || "ZZ",
|
|
8216
8216
|
disabled: !!m,
|
|
@@ -8223,25 +8223,25 @@ Ko.propTypes = {
|
|
|
8223
8223
|
* A two-letter country code.
|
|
8224
8224
|
* Example: "US", "RU", etc.
|
|
8225
8225
|
*/
|
|
8226
|
-
value:
|
|
8226
|
+
value: A.string,
|
|
8227
8227
|
/**
|
|
8228
8228
|
* A function of `value: string`.
|
|
8229
8229
|
* Updates the `value` property.
|
|
8230
8230
|
*/
|
|
8231
|
-
onChange:
|
|
8231
|
+
onChange: A.func.isRequired,
|
|
8232
8232
|
// `<select/>` options.
|
|
8233
|
-
options:
|
|
8234
|
-
value:
|
|
8235
|
-
label:
|
|
8236
|
-
divider:
|
|
8233
|
+
options: A.arrayOf(A.shape({
|
|
8234
|
+
value: A.string,
|
|
8235
|
+
label: A.string,
|
|
8236
|
+
divider: A.bool
|
|
8237
8237
|
})).isRequired,
|
|
8238
8238
|
// `readonly` attribute doesn't work on a `<select/>`.
|
|
8239
8239
|
// https://github.com/catamphetamine/react-phone-number-input/issues/419#issuecomment-1764384480
|
|
8240
8240
|
// https://www.delftstack.com/howto/html/html-select-readonly/
|
|
8241
8241
|
// To work around that, if `readOnly: true` property is passed
|
|
8242
8242
|
// to this component, it behaves analogous to `disabled: true`.
|
|
8243
|
-
disabled:
|
|
8244
|
-
readOnly:
|
|
8243
|
+
disabled: A.bool,
|
|
8244
|
+
readOnly: A.bool
|
|
8245
8245
|
};
|
|
8246
8246
|
var b4 = {
|
|
8247
8247
|
fontSize: "1px",
|
|
@@ -8254,31 +8254,31 @@ function qo(e) {
|
|
|
8254
8254
|
var a = e.arrowComponent, d = a === void 0 ? g4 : a, o = e.unicodeFlags, u = Ho(e, $4), s = Ie(function() {
|
|
8255
8255
|
return Yo(n, t);
|
|
8256
8256
|
}, [n, t]);
|
|
8257
|
-
return /* @__PURE__ */
|
|
8257
|
+
return /* @__PURE__ */ j.createElement("div", {
|
|
8258
8258
|
className: "PhoneInputCountry"
|
|
8259
|
-
}, /* @__PURE__ */
|
|
8259
|
+
}, /* @__PURE__ */ j.createElement(Ko, _n({}, u, {
|
|
8260
8260
|
value: t,
|
|
8261
8261
|
options: n,
|
|
8262
8262
|
className: En("PhoneInputCountrySelect", r)
|
|
8263
|
-
})), s && (o && t ? /* @__PURE__ */
|
|
8263
|
+
})), s && (o && t ? /* @__PURE__ */ j.createElement("div", {
|
|
8264
8264
|
className: "PhoneInputCountryIconUnicode"
|
|
8265
|
-
}, f4(t)) : /* @__PURE__ */
|
|
8265
|
+
}, f4(t)) : /* @__PURE__ */ j.createElement(i, {
|
|
8266
8266
|
"aria-hidden": !0,
|
|
8267
8267
|
country: t,
|
|
8268
8268
|
label: s.label,
|
|
8269
8269
|
aspectRatio: o ? 1 : void 0
|
|
8270
|
-
})), /* @__PURE__ */
|
|
8270
|
+
})), /* @__PURE__ */ j.createElement(d, null));
|
|
8271
8271
|
}
|
|
8272
8272
|
qo.propTypes = {
|
|
8273
8273
|
// Country flag component.
|
|
8274
|
-
iconComponent:
|
|
8274
|
+
iconComponent: A.elementType,
|
|
8275
8275
|
// Select arrow component.
|
|
8276
|
-
arrowComponent:
|
|
8276
|
+
arrowComponent: A.elementType,
|
|
8277
8277
|
// Set to `true` to render Unicode flag icons instead of SVG images.
|
|
8278
|
-
unicodeFlags:
|
|
8278
|
+
unicodeFlags: A.bool
|
|
8279
8279
|
};
|
|
8280
8280
|
function g4() {
|
|
8281
|
-
return /* @__PURE__ */
|
|
8281
|
+
return /* @__PURE__ */ j.createElement("div", {
|
|
8282
8282
|
className: "PhoneInputCountrySelectArrow"
|
|
8283
8283
|
});
|
|
8284
8284
|
}
|
|
@@ -8326,7 +8326,7 @@ function ii(e) {
|
|
|
8326
8326
|
var t = e.country, n = e.countryName, r = e.flags, i = e.flagUrl, a = C4(e, w4);
|
|
8327
8327
|
return r && r[t] ? r[t]({
|
|
8328
8328
|
title: n
|
|
8329
|
-
}) : /* @__PURE__ */
|
|
8329
|
+
}) : /* @__PURE__ */ j.createElement("img", kr({}, a, {
|
|
8330
8330
|
alt: n,
|
|
8331
8331
|
role: n ? void 0 : "presentation",
|
|
8332
8332
|
src: i.replace("{XX}", t).replace("{xx}", t.toLowerCase())
|
|
@@ -8335,9 +8335,9 @@ function ii(e) {
|
|
|
8335
8335
|
ii.propTypes = {
|
|
8336
8336
|
// The country to be selected by default.
|
|
8337
8337
|
// Two-letter country code ("ISO 3166-1 alpha-2").
|
|
8338
|
-
country:
|
|
8338
|
+
country: A.string.isRequired,
|
|
8339
8339
|
// Will be HTML `title` attribute of the `<img/>`.
|
|
8340
|
-
countryName:
|
|
8340
|
+
countryName: A.string.isRequired,
|
|
8341
8341
|
// Country flag icon components.
|
|
8342
8342
|
// By default flag icons are inserted as `<img/>`s
|
|
8343
8343
|
// with their `src` pointed to `country-flag-icons` gitlab pages website.
|
|
@@ -8345,10 +8345,10 @@ ii.propTypes = {
|
|
|
8345
8345
|
// where having a large (3 megabyte) `<svg/>` flags
|
|
8346
8346
|
// bundle is more appropriate.
|
|
8347
8347
|
// `import flags from 'react-phone-number-input/flags'`.
|
|
8348
|
-
flags:
|
|
8348
|
+
flags: A.objectOf(A.elementType),
|
|
8349
8349
|
// A URL for a country flag icon.
|
|
8350
8350
|
// By default it points to `country-flag-icons` gitlab pages website.
|
|
8351
|
-
flagUrl:
|
|
8351
|
+
flagUrl: A.string.isRequired
|
|
8352
8352
|
};
|
|
8353
8353
|
var x4 = ["aspectRatio"], P4 = ["title"], S4 = ["title"];
|
|
8354
8354
|
function An() {
|
|
@@ -8382,45 +8382,45 @@ function E4(e, t) {
|
|
|
8382
8382
|
}
|
|
8383
8383
|
function Gn(e) {
|
|
8384
8384
|
var t = e.aspectRatio, n = ai(e, x4);
|
|
8385
|
-
return t === 1 ? /* @__PURE__ */
|
|
8385
|
+
return t === 1 ? /* @__PURE__ */ j.createElement(Zo, n) : /* @__PURE__ */ j.createElement(zo, n);
|
|
8386
8386
|
}
|
|
8387
8387
|
Gn.propTypes = {
|
|
8388
|
-
title:
|
|
8389
|
-
aspectRatio:
|
|
8388
|
+
title: A.string.isRequired,
|
|
8389
|
+
aspectRatio: A.number
|
|
8390
8390
|
};
|
|
8391
8391
|
function zo(e) {
|
|
8392
8392
|
var t = e.title, n = ai(e, P4);
|
|
8393
|
-
return /* @__PURE__ */
|
|
8393
|
+
return /* @__PURE__ */ j.createElement("svg", An({}, n, {
|
|
8394
8394
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8395
8395
|
viewBox: "0 0 75 50"
|
|
8396
|
-
}), /* @__PURE__ */
|
|
8396
|
+
}), /* @__PURE__ */ j.createElement("title", null, t), /* @__PURE__ */ j.createElement("g", {
|
|
8397
8397
|
className: "PhoneInputInternationalIconGlobe",
|
|
8398
8398
|
stroke: "currentColor",
|
|
8399
8399
|
fill: "none",
|
|
8400
8400
|
strokeWidth: "2",
|
|
8401
8401
|
strokeMiterlimit: "10"
|
|
8402
|
-
}, /* @__PURE__ */
|
|
8402
|
+
}, /* @__PURE__ */ j.createElement("path", {
|
|
8403
8403
|
strokeLinecap: "round",
|
|
8404
8404
|
d: "M47.2,36.1C48.1,36,49,36,50,36c7.4,0,14,1.7,18.5,4.3"
|
|
8405
|
-
}), /* @__PURE__ */
|
|
8405
|
+
}), /* @__PURE__ */ j.createElement("path", {
|
|
8406
8406
|
d: "M68.6,9.6C64.2,12.3,57.5,14,50,14c-7.4,0-14-1.7-18.5-4.3"
|
|
8407
|
-
}), /* @__PURE__ */
|
|
8407
|
+
}), /* @__PURE__ */ j.createElement("line", {
|
|
8408
8408
|
x1: "26",
|
|
8409
8409
|
y1: "25",
|
|
8410
8410
|
x2: "74",
|
|
8411
8411
|
y2: "25"
|
|
8412
|
-
}), /* @__PURE__ */
|
|
8412
|
+
}), /* @__PURE__ */ j.createElement("line", {
|
|
8413
8413
|
x1: "50",
|
|
8414
8414
|
y1: "1",
|
|
8415
8415
|
x2: "50",
|
|
8416
8416
|
y2: "49"
|
|
8417
|
-
}), /* @__PURE__ */
|
|
8417
|
+
}), /* @__PURE__ */ j.createElement("path", {
|
|
8418
8418
|
strokeLinecap: "round",
|
|
8419
8419
|
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"
|
|
8420
|
-
}), /* @__PURE__ */
|
|
8420
|
+
}), /* @__PURE__ */ j.createElement("path", {
|
|
8421
8421
|
strokeLinecap: "round",
|
|
8422
8422
|
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"
|
|
8423
|
-
})), /* @__PURE__ */
|
|
8423
|
+
})), /* @__PURE__ */ j.createElement("path", {
|
|
8424
8424
|
className: "PhoneInputInternationalIconPhone",
|
|
8425
8425
|
stroke: "none",
|
|
8426
8426
|
fill: "currentColor",
|
|
@@ -8428,38 +8428,38 @@ function zo(e) {
|
|
|
8428
8428
|
}));
|
|
8429
8429
|
}
|
|
8430
8430
|
zo.propTypes = {
|
|
8431
|
-
title:
|
|
8431
|
+
title: A.string.isRequired
|
|
8432
8432
|
};
|
|
8433
8433
|
function Zo(e) {
|
|
8434
8434
|
var t = e.title, n = ai(e, S4);
|
|
8435
|
-
return /* @__PURE__ */
|
|
8435
|
+
return /* @__PURE__ */ j.createElement("svg", An({}, n, {
|
|
8436
8436
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8437
8437
|
viewBox: "0 0 50 50"
|
|
8438
|
-
}), /* @__PURE__ */
|
|
8438
|
+
}), /* @__PURE__ */ j.createElement("title", null, t), /* @__PURE__ */ j.createElement("g", {
|
|
8439
8439
|
className: "PhoneInputInternationalIconGlobe",
|
|
8440
8440
|
stroke: "currentColor",
|
|
8441
8441
|
fill: "none",
|
|
8442
8442
|
strokeWidth: "2",
|
|
8443
8443
|
strokeLinecap: "round"
|
|
8444
|
-
}, /* @__PURE__ */
|
|
8444
|
+
}, /* @__PURE__ */ j.createElement("path", {
|
|
8445
8445
|
d: "M8.45,13A21.44,21.44,0,1,1,37.08,41.56"
|
|
8446
|
-
}), /* @__PURE__ */
|
|
8446
|
+
}), /* @__PURE__ */ j.createElement("path", {
|
|
8447
8447
|
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"
|
|
8448
|
-
}), /* @__PURE__ */
|
|
8448
|
+
}), /* @__PURE__ */ j.createElement("path", {
|
|
8449
8449
|
d: "M17.41,33.4A39,39,0,0,1,27.8,32.06c6.62,0,12.55,1.5,16.48,3.86"
|
|
8450
|
-
}), /* @__PURE__ */
|
|
8450
|
+
}), /* @__PURE__ */ j.createElement("path", {
|
|
8451
8451
|
d: "M44.29,8.53c-3.93,2.37-9.86,3.88-16.49,3.88S15.25,10.9,11.31,8.54"
|
|
8452
|
-
}), /* @__PURE__ */
|
|
8452
|
+
}), /* @__PURE__ */ j.createElement("line", {
|
|
8453
8453
|
x1: "27.8",
|
|
8454
8454
|
y1: "0.85",
|
|
8455
8455
|
x2: "27.8",
|
|
8456
8456
|
y2: "34.61"
|
|
8457
|
-
}), /* @__PURE__ */
|
|
8457
|
+
}), /* @__PURE__ */ j.createElement("line", {
|
|
8458
8458
|
x1: "15.2",
|
|
8459
8459
|
y1: "22.23",
|
|
8460
8460
|
x2: "49.15",
|
|
8461
8461
|
y2: "22.23"
|
|
8462
|
-
})), /* @__PURE__ */
|
|
8462
|
+
})), /* @__PURE__ */ j.createElement("path", {
|
|
8463
8463
|
className: "PhoneInputInternationalIconPhone",
|
|
8464
8464
|
stroke: "transparent",
|
|
8465
8465
|
fill: "currentColor",
|
|
@@ -8467,7 +8467,7 @@ function Zo(e) {
|
|
|
8467
8467
|
}));
|
|
8468
8468
|
}
|
|
8469
8469
|
Zo.propTypes = {
|
|
8470
|
-
title:
|
|
8470
|
+
title: A.string.isRequired
|
|
8471
8471
|
};
|
|
8472
8472
|
function N4(e) {
|
|
8473
8473
|
if (e.length < 2 || e[0] !== "+")
|
|
@@ -8593,27 +8593,27 @@ function Qo(e) {
|
|
|
8593
8593
|
var t = e.flags, n = e.flagUrl, r = e.flagComponent, i = e.internationalIcon;
|
|
8594
8594
|
function a(d) {
|
|
8595
8595
|
var o = d.country, u = d.label, s = d.aspectRatio, v = F4(d, R4), m = i === Gn ? s : void 0;
|
|
8596
|
-
return /* @__PURE__ */
|
|
8596
|
+
return /* @__PURE__ */ j.createElement("div", jr({}, v, {
|
|
8597
8597
|
className: En("PhoneInputCountryIcon", {
|
|
8598
8598
|
"PhoneInputCountryIcon--square": m === 1,
|
|
8599
8599
|
"PhoneInputCountryIcon--border": o
|
|
8600
8600
|
})
|
|
8601
|
-
}), o ? /* @__PURE__ */
|
|
8601
|
+
}), o ? /* @__PURE__ */ j.createElement(r, {
|
|
8602
8602
|
country: o,
|
|
8603
8603
|
countryName: u,
|
|
8604
8604
|
flags: t,
|
|
8605
8605
|
flagUrl: n,
|
|
8606
8606
|
className: "PhoneInputCountryIconImg"
|
|
8607
|
-
}) : /* @__PURE__ */
|
|
8607
|
+
}) : /* @__PURE__ */ j.createElement(i, {
|
|
8608
8608
|
title: u,
|
|
8609
8609
|
aspectRatio: m,
|
|
8610
8610
|
className: "PhoneInputCountryIconImg"
|
|
8611
8611
|
}));
|
|
8612
8612
|
}
|
|
8613
8613
|
return a.propTypes = {
|
|
8614
|
-
country:
|
|
8615
|
-
label:
|
|
8616
|
-
aspectRatio:
|
|
8614
|
+
country: A.string,
|
|
8615
|
+
label: A.string.isRequired,
|
|
8616
|
+
aspectRatio: A.number
|
|
8617
8617
|
}, a;
|
|
8618
8618
|
}
|
|
8619
8619
|
Qo({
|
|
@@ -8662,10 +8662,10 @@ function D4(e, t) {
|
|
|
8662
8662
|
function M4(e, t) {
|
|
8663
8663
|
typeof e == "function" ? e(t) : e.current = t;
|
|
8664
8664
|
}
|
|
8665
|
-
var e0 =
|
|
8666
|
-
country_calling_codes:
|
|
8667
|
-
countries:
|
|
8668
|
-
}), t0 =
|
|
8665
|
+
var e0 = A.shape({
|
|
8666
|
+
country_calling_codes: A.object.isRequired,
|
|
8667
|
+
countries: A.object.isRequired
|
|
8668
|
+
}), t0 = A.objectOf(A.string);
|
|
8669
8669
|
function ht(e, t) {
|
|
8670
8670
|
var n = "+" + yt(e, t);
|
|
8671
8671
|
return n;
|
|
@@ -8903,8 +8903,8 @@ function J4(e, t) {
|
|
|
8903
8903
|
function Q4(e, t, n) {
|
|
8904
8904
|
var r = e.metadata, i = e.countries, a = e.defaultCountry, d = e.value, o = e.reset, u = e.international, s = e.displayInitialValueAsLocalNumber, v = e.initialValueFormat, m = t.defaultCountry, l = t.value, p = t.reset;
|
|
8905
8905
|
n.country;
|
|
8906
|
-
var c = n.value, $ = n.hasUserSelectedACountry, f = n.latestCountrySelectedByUser, b = function(
|
|
8907
|
-
return a0(bn(bn({},
|
|
8906
|
+
var c = n.value, $ = n.hasUserSelectedACountry, f = n.latestCountrySelectedByUser, b = function(ne) {
|
|
8907
|
+
return a0(bn(bn({}, ne), {}, {
|
|
8908
8908
|
international: u,
|
|
8909
8909
|
useNationalFormat: s || v === "national",
|
|
8910
8910
|
metadata: r
|
|
@@ -8932,8 +8932,8 @@ function Q4(e, t, n) {
|
|
|
8932
8932
|
value: void 0,
|
|
8933
8933
|
defaultCountry: m
|
|
8934
8934
|
})
|
|
8935
|
-
),
|
|
8936
|
-
if (!$ && S &&
|
|
8935
|
+
), C = !d && w;
|
|
8936
|
+
if (!$ && S && C)
|
|
8937
8937
|
return {
|
|
8938
8938
|
country: a,
|
|
8939
8939
|
// If `phoneDigits` is empty, then automatically select the new `country`
|
|
@@ -8950,37 +8950,37 @@ function Q4(e, t, n) {
|
|
|
8950
8950
|
};
|
|
8951
8951
|
}
|
|
8952
8952
|
if (!Va(d, l) && !Va(d, c)) {
|
|
8953
|
-
var
|
|
8953
|
+
var y, P;
|
|
8954
8954
|
if (d) {
|
|
8955
|
-
d && Xo(d),
|
|
8956
|
-
var
|
|
8957
|
-
|
|
8955
|
+
d && Xo(d), y = n0(d, r);
|
|
8956
|
+
var U = Jo(i, r);
|
|
8957
|
+
y && y.country ? (!U || U.indexOf(y.country) >= 0) && (P = y.country) : (P = r0(d, {
|
|
8958
8958
|
country: void 0,
|
|
8959
|
-
countries:
|
|
8959
|
+
countries: U,
|
|
8960
8960
|
metadata: r
|
|
8961
|
-
}),
|
|
8961
|
+
}), P || a && d.indexOf(ht(a, r)) === 0 && (P = a));
|
|
8962
8962
|
}
|
|
8963
|
-
var
|
|
8963
|
+
var I;
|
|
8964
8964
|
if (d) {
|
|
8965
8965
|
if (f) {
|
|
8966
|
-
var
|
|
8967
|
-
|
|
8966
|
+
var T = P ? f === P : Wt(d, f, r);
|
|
8967
|
+
T ? P || (P = f) : I = {
|
|
8968
8968
|
latestCountrySelectedByUser: void 0
|
|
8969
8969
|
};
|
|
8970
8970
|
}
|
|
8971
8971
|
} else
|
|
8972
|
-
|
|
8972
|
+
I = {
|
|
8973
8973
|
latestCountrySelectedByUser: void 0,
|
|
8974
8974
|
hasUserSelectedACountry: void 0
|
|
8975
8975
|
};
|
|
8976
|
-
return bn(bn({},
|
|
8976
|
+
return bn(bn({}, I), {}, {
|
|
8977
8977
|
phoneDigits: b({
|
|
8978
|
-
phoneNumber:
|
|
8978
|
+
phoneNumber: y,
|
|
8979
8979
|
value: d,
|
|
8980
8980
|
defaultCountry: a
|
|
8981
8981
|
}),
|
|
8982
8982
|
value: d,
|
|
8983
|
-
country: d ?
|
|
8983
|
+
country: d ? P : a
|
|
8984
8984
|
});
|
|
8985
8985
|
}
|
|
8986
8986
|
}
|
|
@@ -9127,28 +9127,28 @@ var cf = /* @__PURE__ */ function(e) {
|
|
|
9127
9127
|
var b = r.props.metadata;
|
|
9128
9128
|
return Hn(f, b);
|
|
9129
9129
|
}), tt(r, "onCountryChange", function(f) {
|
|
9130
|
-
var b = r.props, S = b.international, w = b.metadata,
|
|
9131
|
-
prevCountry:
|
|
9130
|
+
var b = r.props, S = b.international, w = b.metadata, C = b.onChange, y = b.focusInputOnCountrySelection, P = r.state, U = P.phoneDigits, I = P.country, T = V4(U, {
|
|
9131
|
+
prevCountry: I,
|
|
9132
9132
|
newCountry: f,
|
|
9133
9133
|
metadata: w,
|
|
9134
9134
|
// Convert the phone number to "national" format
|
|
9135
9135
|
// when the user changes the selected country by hand.
|
|
9136
9136
|
useNationalFormat: !S
|
|
9137
|
-
}), q = Bt(
|
|
9138
|
-
|
|
9137
|
+
}), q = Bt(T, f, w);
|
|
9138
|
+
y && r.inputRef.current.focus(), r.setState({
|
|
9139
9139
|
country: f,
|
|
9140
9140
|
latestCountrySelectedByUser: f,
|
|
9141
9141
|
hasUserSelectedACountry: !0,
|
|
9142
|
-
phoneDigits:
|
|
9142
|
+
phoneDigits: T,
|
|
9143
9143
|
value: q
|
|
9144
9144
|
}, function() {
|
|
9145
|
-
|
|
9145
|
+
C(q);
|
|
9146
9146
|
});
|
|
9147
9147
|
}), tt(r, "onChange", function(f) {
|
|
9148
|
-
var b = r.props, S = b.defaultCountry, w = b.onChange,
|
|
9149
|
-
prevPhoneDigits:
|
|
9150
|
-
country:
|
|
9151
|
-
countryRequired: !
|
|
9148
|
+
var b = r.props, S = b.defaultCountry, w = b.onChange, C = b.addInternationalOption, y = b.international, P = b.limitMaxLength, U = b.countryCallingCodeEditable, I = b.metadata, T = r.state, q = T.countries, ne = T.phoneDigits, ie = T.country, E = T.latestCountrySelectedByUser, Z = K4(f, {
|
|
9149
|
+
prevPhoneDigits: ne,
|
|
9150
|
+
country: ie,
|
|
9151
|
+
countryRequired: !C,
|
|
9152
9152
|
defaultCountry: S,
|
|
9153
9153
|
latestCountrySelectedByUser: E,
|
|
9154
9154
|
getAnyCountry: function() {
|
|
@@ -9157,16 +9157,16 @@ var cf = /* @__PURE__ */ function(e) {
|
|
|
9157
9157
|
});
|
|
9158
9158
|
},
|
|
9159
9159
|
countries: q,
|
|
9160
|
-
international:
|
|
9161
|
-
limitMaxLength:
|
|
9162
|
-
countryCallingCodeEditable:
|
|
9163
|
-
metadata:
|
|
9164
|
-
}),
|
|
9165
|
-
phoneDigits:
|
|
9160
|
+
international: y,
|
|
9161
|
+
limitMaxLength: P,
|
|
9162
|
+
countryCallingCodeEditable: U,
|
|
9163
|
+
metadata: I
|
|
9164
|
+
}), ae = Z.phoneDigits, de = Z.country, H = Z.value, ce = {
|
|
9165
|
+
phoneDigits: ae,
|
|
9166
9166
|
value: H,
|
|
9167
|
-
country:
|
|
9167
|
+
country: de
|
|
9168
9168
|
};
|
|
9169
|
-
E && H && !Wt(H, E,
|
|
9169
|
+
E && H && !Wt(H, E, I) && (ce.latestCountrySelectedByUser = void 0), U === !1 && !H && ae === r.state.phoneDigits && (ce.forceRerender = {}), r.setState(
|
|
9170
9170
|
ce,
|
|
9171
9171
|
// Update the new `value` property.
|
|
9172
9172
|
// Doing it after the `state` has been updated
|
|
@@ -9205,7 +9205,7 @@ var cf = /* @__PURE__ */ function(e) {
|
|
|
9205
9205
|
var S = b.onBlur;
|
|
9206
9206
|
S && S(f);
|
|
9207
9207
|
}
|
|
9208
|
-
}), r.inputRef = /* @__PURE__ */
|
|
9208
|
+
}), r.inputRef = /* @__PURE__ */ j.createRef();
|
|
9209
9209
|
var i = r.props, a = i.value;
|
|
9210
9210
|
i.labels;
|
|
9211
9211
|
var d = i.international, o = i.addInternationalOption, u = i.displayInitialValueAsLocalNumber, s = i.initialValueFormat, v = i.metadata, m = r.props, l = m.defaultCountry, p = m.countries;
|
|
@@ -9315,47 +9315,47 @@ var cf = /* @__PURE__ */ function(e) {
|
|
|
9315
9315
|
r.flags, r.flagComponent, r.flagUrl, r.addInternationalOption, r.internationalIcon, r.displayInitialValueAsLocalNumber, r.initialValueFormat, r.onCountryChange, r.limitMaxLength, r.countryCallingCodeEditable, r.focusInputOnCountrySelection, r.reset;
|
|
9316
9316
|
var S = r.metadata, w = r.international;
|
|
9317
9317
|
r.locales;
|
|
9318
|
-
var
|
|
9319
|
-
countries:
|
|
9318
|
+
var C = tf(r, ef), y = this.state, P = y.country, U = y.countries, I = y.phoneDigits, T = y.isFocused, q = l ? d4 : c4, ne = this.getCountrySelectOptions({
|
|
9319
|
+
countries: U
|
|
9320
9320
|
});
|
|
9321
|
-
return /* @__PURE__ */
|
|
9321
|
+
return /* @__PURE__ */ j.createElement($, Vt({
|
|
9322
9322
|
style: u,
|
|
9323
9323
|
className: En(s, "PhoneInput", {
|
|
9324
|
-
"PhoneInput--focus":
|
|
9324
|
+
"PhoneInput--focus": T,
|
|
9325
9325
|
"PhoneInput--disabled": a,
|
|
9326
9326
|
"PhoneInput--readOnly": d
|
|
9327
9327
|
})
|
|
9328
|
-
}, f), /* @__PURE__ */
|
|
9328
|
+
}, f), /* @__PURE__ */ j.createElement(p, Vt({
|
|
9329
9329
|
name: i ? "".concat(i, "Country") : void 0,
|
|
9330
9330
|
"aria-label": b.country
|
|
9331
9331
|
}, c, {
|
|
9332
|
-
value:
|
|
9333
|
-
options:
|
|
9332
|
+
value: P,
|
|
9333
|
+
options: ne,
|
|
9334
9334
|
onChange: this.onCountryChange,
|
|
9335
9335
|
onFocus: this.onCountryFocus,
|
|
9336
9336
|
onBlur: this.onCountryBlur,
|
|
9337
9337
|
disabled: a || c && c.disabled,
|
|
9338
9338
|
readOnly: d || c && c.readOnly,
|
|
9339
9339
|
iconComponent: this.CountryIcon
|
|
9340
|
-
})), /* @__PURE__ */
|
|
9340
|
+
})), /* @__PURE__ */ j.createElement(q, Vt({
|
|
9341
9341
|
ref: this.setInputRef,
|
|
9342
9342
|
type: "tel",
|
|
9343
9343
|
autoComplete: o
|
|
9344
|
-
}, m,
|
|
9344
|
+
}, m, C, {
|
|
9345
9345
|
inputFormat: w === !0 ? "INTERNATIONAL" : w === !1 ? "NATIONAL" : "INTERNATIONAL_OR_NATIONAL",
|
|
9346
9346
|
international: w ? !0 : void 0,
|
|
9347
9347
|
withCountryCallingCode: w ? !0 : void 0,
|
|
9348
9348
|
name: i,
|
|
9349
9349
|
metadata: S,
|
|
9350
|
-
country:
|
|
9351
|
-
value:
|
|
9350
|
+
country: P,
|
|
9351
|
+
value: I || "",
|
|
9352
9352
|
onChange: this.onChange,
|
|
9353
9353
|
onFocus: this.onFocus,
|
|
9354
9354
|
onBlur: this.onBlur,
|
|
9355
9355
|
disabled: a,
|
|
9356
9356
|
readOnly: d,
|
|
9357
9357
|
inputComponent: v,
|
|
9358
|
-
className: En("PhoneInputInput", m && m.className,
|
|
9358
|
+
className: En("PhoneInputInput", m && m.className, C.className)
|
|
9359
9359
|
})));
|
|
9360
9360
|
}
|
|
9361
9361
|
}], [{
|
|
@@ -9374,8 +9374,8 @@ var cf = /* @__PURE__ */ function(e) {
|
|
|
9374
9374
|
}
|
|
9375
9375
|
)
|
|
9376
9376
|
}]);
|
|
9377
|
-
}(
|
|
9378
|
-
return /* @__PURE__ */
|
|
9377
|
+
}(j.PureComponent), l0 = /* @__PURE__ */ j.forwardRef(function(e, t) {
|
|
9378
|
+
return /* @__PURE__ */ j.createElement(cf, Vt({}, ff(e), {
|
|
9379
9379
|
inputRef: t
|
|
9380
9380
|
}));
|
|
9381
9381
|
});
|
|
@@ -9389,7 +9389,7 @@ l0.propTypes = {
|
|
|
9389
9389
|
*
|
|
9390
9390
|
* Any "falsy" value like `undefined`, `null` or an empty string `""` is treated like "empty".
|
|
9391
9391
|
*/
|
|
9392
|
-
value:
|
|
9392
|
+
value: A.string,
|
|
9393
9393
|
/**
|
|
9394
9394
|
* A function of `value: string?`.
|
|
9395
9395
|
*
|
|
@@ -9397,27 +9397,27 @@ l0.propTypes = {
|
|
|
9397
9397
|
*
|
|
9398
9398
|
* If the user erases the input value, the argument is `undefined`.
|
|
9399
9399
|
*/
|
|
9400
|
-
onChange:
|
|
9400
|
+
onChange: A.func.isRequired,
|
|
9401
9401
|
/**
|
|
9402
9402
|
* Toggles the `--focus` CSS class.
|
|
9403
9403
|
* @ignore
|
|
9404
9404
|
*/
|
|
9405
|
-
onFocus:
|
|
9405
|
+
onFocus: A.func,
|
|
9406
9406
|
/**
|
|
9407
9407
|
* `onBlur` is usually passed by `redux-form`.
|
|
9408
9408
|
* @ignore
|
|
9409
9409
|
*/
|
|
9410
|
-
onBlur:
|
|
9410
|
+
onBlur: A.func,
|
|
9411
9411
|
/**
|
|
9412
9412
|
* Set to `true` to mark both the phone number `<input/>`
|
|
9413
9413
|
* and the country `<select/>` as `disabled`.
|
|
9414
9414
|
*/
|
|
9415
|
-
disabled:
|
|
9415
|
+
disabled: A.bool,
|
|
9416
9416
|
/**
|
|
9417
9417
|
* Set to `true` to mark both the phone number `<input/>`
|
|
9418
9418
|
* and the country `<select/>` as `readonly`.
|
|
9419
9419
|
*/
|
|
9420
|
-
readOnly:
|
|
9420
|
+
readOnly: A.bool,
|
|
9421
9421
|
/**
|
|
9422
9422
|
* Sets `autoComplete` property for phone number `<input/>`.
|
|
9423
9423
|
*
|
|
@@ -9439,7 +9439,7 @@ l0.propTypes = {
|
|
|
9439
9439
|
* what was submitted previously".
|
|
9440
9440
|
*/
|
|
9441
9441
|
// (is `"tel"` by default)
|
|
9442
|
-
autoComplete:
|
|
9442
|
+
autoComplete: A.string,
|
|
9443
9443
|
/**
|
|
9444
9444
|
* Set to `"national"` to show the initial `value` in
|
|
9445
9445
|
* "national" format rather than "international".
|
|
@@ -9460,10 +9460,10 @@ l0.propTypes = {
|
|
|
9460
9460
|
* Future people won't be using "national" format, only "international".
|
|
9461
9461
|
*/
|
|
9462
9462
|
// (is `undefined` by default)
|
|
9463
|
-
initialValueFormat:
|
|
9463
|
+
initialValueFormat: A.oneOf(["national"]),
|
|
9464
9464
|
// `displayInitialValueAsLocalNumber` property has been
|
|
9465
9465
|
// superceded by `initialValueFormat` property.
|
|
9466
|
-
displayInitialValueAsLocalNumber:
|
|
9466
|
+
displayInitialValueAsLocalNumber: A.bool,
|
|
9467
9467
|
/**
|
|
9468
9468
|
* The country to be selected by default.
|
|
9469
9469
|
* For example, can be set after a GeoIP lookup.
|
|
@@ -9471,7 +9471,7 @@ l0.propTypes = {
|
|
|
9471
9471
|
* Example: `"US"`.
|
|
9472
9472
|
*/
|
|
9473
9473
|
// A two-letter country code ("ISO 3166-1 alpha-2").
|
|
9474
|
-
defaultCountry:
|
|
9474
|
+
defaultCountry: A.string,
|
|
9475
9475
|
/**
|
|
9476
9476
|
* If specified, only these countries will be available for selection.
|
|
9477
9477
|
*
|
|
@@ -9479,7 +9479,7 @@ l0.propTypes = {
|
|
|
9479
9479
|
*
|
|
9480
9480
|
* `["RU", "UA", "KZ"]`
|
|
9481
9481
|
*/
|
|
9482
|
-
countries:
|
|
9482
|
+
countries: A.arrayOf(A.string),
|
|
9483
9483
|
/**
|
|
9484
9484
|
* Custom country `<select/>` option names.
|
|
9485
9485
|
* Also some labels like "ext" and country `<select/>` `aria-label`.
|
|
@@ -9504,7 +9504,7 @@ l0.propTypes = {
|
|
|
9504
9504
|
* and can be either a Unicode BCP 47 locale identifier or an array of such locale identifiers.
|
|
9505
9505
|
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument
|
|
9506
9506
|
*/
|
|
9507
|
-
locales:
|
|
9507
|
+
locales: A.oneOfType([A.string, A.arrayOf(A.string)]),
|
|
9508
9508
|
/*
|
|
9509
9509
|
* Custom country `<select/>` options sorting function.
|
|
9510
9510
|
* The default one uses `a.localeCompare(b)`, and,
|
|
@@ -9527,7 +9527,7 @@ l0.propTypes = {
|
|
|
9527
9527
|
* one should check the `CHANGELOG.md` every time before updating this library,
|
|
9528
9528
|
* otherwise there's a possibility that some new country flag would be missing.
|
|
9529
9529
|
*/
|
|
9530
|
-
flagUrl:
|
|
9530
|
+
flagUrl: A.string,
|
|
9531
9531
|
/**
|
|
9532
9532
|
* Custom country flag icon components.
|
|
9533
9533
|
* These flags will be used instead of the default ones.
|
|
@@ -9550,7 +9550,7 @@ l0.propTypes = {
|
|
|
9550
9550
|
*
|
|
9551
9551
|
* `<PhoneInput flags={flags} .../>`
|
|
9552
9552
|
*/
|
|
9553
|
-
flags:
|
|
9553
|
+
flags: A.objectOf(A.elementType),
|
|
9554
9554
|
/**
|
|
9555
9555
|
* Country flag icon component.
|
|
9556
9556
|
*
|
|
@@ -9561,11 +9561,11 @@ l0.propTypes = {
|
|
|
9561
9561
|
* * `flagUrl: string` — The `flagUrl` property (see above).
|
|
9562
9562
|
* * `flags: object` — The `flags` property (see above).
|
|
9563
9563
|
*/
|
|
9564
|
-
flagComponent:
|
|
9564
|
+
flagComponent: A.elementType,
|
|
9565
9565
|
/**
|
|
9566
9566
|
* Set to `false` to remove the "International" option from country `<select/>`.
|
|
9567
9567
|
*/
|
|
9568
|
-
addInternationalOption:
|
|
9568
|
+
addInternationalOption: A.bool,
|
|
9569
9569
|
/**
|
|
9570
9570
|
* "International" icon component.
|
|
9571
9571
|
* Should have the same aspect ratio.
|
|
@@ -9574,7 +9574,7 @@ l0.propTypes = {
|
|
|
9574
9574
|
*
|
|
9575
9575
|
* * `title: string` — "International" country option label.
|
|
9576
9576
|
*/
|
|
9577
|
-
internationalIcon:
|
|
9577
|
+
internationalIcon: A.elementType,
|
|
9578
9578
|
/**
|
|
9579
9579
|
* Can be used to place some countries on top of the list of country `<select/>` options.
|
|
9580
9580
|
*
|
|
@@ -9587,15 +9587,15 @@ l0.propTypes = {
|
|
|
9587
9587
|
*
|
|
9588
9588
|
* `["US", "CA", "AU", "|", "..."]`
|
|
9589
9589
|
*/
|
|
9590
|
-
countryOptionsOrder:
|
|
9590
|
+
countryOptionsOrder: A.arrayOf(A.string),
|
|
9591
9591
|
/**
|
|
9592
9592
|
* `<Phone/>` component CSS style object.
|
|
9593
9593
|
*/
|
|
9594
|
-
style:
|
|
9594
|
+
style: A.object,
|
|
9595
9595
|
/**
|
|
9596
9596
|
* `<Phone/>` component CSS class.
|
|
9597
9597
|
*/
|
|
9598
|
-
className:
|
|
9598
|
+
className: A.string,
|
|
9599
9599
|
/**
|
|
9600
9600
|
* Country `<select/>` component.
|
|
9601
9601
|
*
|
|
@@ -9613,13 +9613,13 @@ l0.propTypes = {
|
|
|
9613
9613
|
* * `tabIndex: (number|string)?` — HTML `tabIndex` attribute.
|
|
9614
9614
|
* * `className: string` — CSS class name.
|
|
9615
9615
|
*/
|
|
9616
|
-
countrySelectComponent:
|
|
9616
|
+
countrySelectComponent: A.elementType,
|
|
9617
9617
|
/**
|
|
9618
9618
|
* Country `<select/>` component props.
|
|
9619
9619
|
* Along with the usual DOM properties such as `aria-label` and `tabIndex`,
|
|
9620
9620
|
* some custom properties are supported, such as `arrowComponent` and `unicodeFlags`.
|
|
9621
9621
|
*/
|
|
9622
|
-
countrySelectProps:
|
|
9622
|
+
countrySelectProps: A.object,
|
|
9623
9623
|
/**
|
|
9624
9624
|
* Phone number `<input/>` component.
|
|
9625
9625
|
*
|
|
@@ -9633,11 +9633,11 @@ l0.propTypes = {
|
|
|
9633
9633
|
*
|
|
9634
9634
|
* Must also either use `React.forwardRef()` to "forward" `ref` to the `<input/>` or implement `.focus()` method.
|
|
9635
9635
|
*/
|
|
9636
|
-
inputComponent:
|
|
9636
|
+
inputComponent: A.elementType,
|
|
9637
9637
|
/**
|
|
9638
9638
|
* Phone number `<input/>` component props.
|
|
9639
9639
|
*/
|
|
9640
|
-
numberInputProps:
|
|
9640
|
+
numberInputProps: A.object,
|
|
9641
9641
|
/**
|
|
9642
9642
|
* Wrapping `<div/>` component.
|
|
9643
9643
|
*
|
|
@@ -9646,11 +9646,11 @@ l0.propTypes = {
|
|
|
9646
9646
|
* * `style: object` — A component CSS style object.
|
|
9647
9647
|
* * `className: string` — Classes to attach to the component, typically changes when component focuses or blurs.
|
|
9648
9648
|
*/
|
|
9649
|
-
containerComponent:
|
|
9649
|
+
containerComponent: A.elementType,
|
|
9650
9650
|
/**
|
|
9651
9651
|
* Wrapping `<div/>` component props.
|
|
9652
9652
|
*/
|
|
9653
|
-
containerComponentProps:
|
|
9653
|
+
containerComponentProps: A.object,
|
|
9654
9654
|
/**
|
|
9655
9655
|
* When the user attempts to insert a digit somewhere in the middle of a phone number,
|
|
9656
9656
|
* the caret position is moved right before the next available digit skipping
|
|
@@ -9663,25 +9663,25 @@ l0.propTypes = {
|
|
|
9663
9663
|
* with caret position during phone number input.
|
|
9664
9664
|
*/
|
|
9665
9665
|
// Is `true` by default.
|
|
9666
|
-
smartCaret:
|
|
9666
|
+
smartCaret: A.bool,
|
|
9667
9667
|
/**
|
|
9668
9668
|
* Set to `true` to force "international" phone number format.
|
|
9669
9669
|
* Set to `false` to force "national" phone number format.
|
|
9670
9670
|
* By default it's `undefined` meaning that it doesn't enforce any phone number format:
|
|
9671
9671
|
* the user can input their phone number in either "national" or "international" format.
|
|
9672
9672
|
*/
|
|
9673
|
-
international:
|
|
9673
|
+
international: A.bool,
|
|
9674
9674
|
/**
|
|
9675
9675
|
* If set to `true`, the phone number input will get trimmed
|
|
9676
9676
|
* if it exceeds the maximum length for the country.
|
|
9677
9677
|
*/
|
|
9678
|
-
limitMaxLength:
|
|
9678
|
+
limitMaxLength: A.bool,
|
|
9679
9679
|
/**
|
|
9680
9680
|
* If set to `false`, and `international` is `true`, then
|
|
9681
9681
|
* users won't be able to erase the "country calling part"
|
|
9682
9682
|
* of a phone number in the `<input/>`.
|
|
9683
9683
|
*/
|
|
9684
|
-
countryCallingCodeEditable:
|
|
9684
|
+
countryCallingCodeEditable: A.bool,
|
|
9685
9685
|
/**
|
|
9686
9686
|
* `libphonenumber-js` metadata.
|
|
9687
9687
|
*
|
|
@@ -9701,7 +9701,7 @@ l0.propTypes = {
|
|
|
9701
9701
|
// therefore reducing "conversion" (that's a marketing term).
|
|
9702
9702
|
// Assuming that the phone number's country is the user's country
|
|
9703
9703
|
// is not 100% correct but in most cases I guess it's valid.
|
|
9704
|
-
onCountryChange:
|
|
9704
|
+
onCountryChange: A.func,
|
|
9705
9705
|
/**
|
|
9706
9706
|
* If set to `false`, will not focus the `<input/>` component
|
|
9707
9707
|
* when the user selects a country from the list of countries.
|
|
@@ -9711,7 +9711,7 @@ l0.propTypes = {
|
|
|
9711
9711
|
* does not automatically cause a change of context unless the user
|
|
9712
9712
|
* has been advised of the behaviour before using the component."
|
|
9713
9713
|
*/
|
|
9714
|
-
focusInputOnCountrySelection:
|
|
9714
|
+
focusInputOnCountrySelection: A.bool
|
|
9715
9715
|
};
|
|
9716
9716
|
var Ka = {
|
|
9717
9717
|
/**
|
|
@@ -9756,7 +9756,7 @@ var Ka = {
|
|
|
9756
9756
|
* would be "stuck", if not using this `reset` property.
|
|
9757
9757
|
*/
|
|
9758
9758
|
// https://github.com/catamphetamine/react-phone-number-input/issues/300
|
|
9759
|
-
reset:
|
|
9759
|
+
reset: A.any,
|
|
9760
9760
|
/**
|
|
9761
9761
|
*
|
|
9762
9762
|
*/
|
|
@@ -10094,9 +10094,9 @@ function mf(e, t) {
|
|
|
10094
10094
|
return n;
|
|
10095
10095
|
}
|
|
10096
10096
|
function s0(e) {
|
|
10097
|
-
var t = /* @__PURE__ */
|
|
10097
|
+
var t = /* @__PURE__ */ j.forwardRef(function(n, r) {
|
|
10098
10098
|
var i = n.metadata, a = i === void 0 ? e : i, d = n.labels, o = d === void 0 ? Mt : d, u = hf(n, vf);
|
|
10099
|
-
return /* @__PURE__ */
|
|
10099
|
+
return /* @__PURE__ */ j.createElement(pf, Dr({}, u, {
|
|
10100
10100
|
ref: r,
|
|
10101
10101
|
metadata: a,
|
|
10102
10102
|
labels: o
|
|
@@ -10130,66 +10130,77 @@ const Tf = ({
|
|
|
10130
10130
|
placeholder: i = "",
|
|
10131
10131
|
error: a = !1,
|
|
10132
10132
|
validate: d = !0,
|
|
10133
|
-
id: o = ""
|
|
10133
|
+
id: o = "",
|
|
10134
|
+
phoneNumberValue: u = "",
|
|
10135
|
+
countryCodeFromURL: s = ""
|
|
10134
10136
|
}) => {
|
|
10135
|
-
const [
|
|
10137
|
+
const [v, m] = be(a), p = D(
|
|
10136
10138
|
e && e !== "001" ? e : "US"
|
|
10137
|
-
)
|
|
10138
|
-
|
|
10139
|
-
|
|
10140
|
-
|
|
10141
|
-
|
|
10142
|
-
|
|
10143
|
-
}
|
|
10144
|
-
|
|
10145
|
-
|
|
10146
|
-
|
|
10147
|
-
},
|
|
10148
|
-
const
|
|
10149
|
-
|
|
10150
|
-
|
|
10139
|
+
);
|
|
10140
|
+
pe(() => {
|
|
10141
|
+
if (s) {
|
|
10142
|
+
const I = b(s);
|
|
10143
|
+
I && (w(I), p.current = s);
|
|
10144
|
+
}
|
|
10145
|
+
}, [s]);
|
|
10146
|
+
const c = (I, T) => JSON.stringify(I) === JSON.stringify(T), $ = (I, T) => Mt[I] < Mt[T] ? -1 : Mt[I] > Mt[T] ? 1 : 0, f = gf().sort($).map((I) => ({
|
|
10147
|
+
label: I + " +" + cr(I),
|
|
10148
|
+
value: I
|
|
10149
|
+
})), b = (I) => f.find((T) => T.value == I), [S, w] = be(() => {
|
|
10150
|
+
const I = b(p.current);
|
|
10151
|
+
return I || null;
|
|
10152
|
+
}), C = (I) => {
|
|
10153
|
+
p.current = I;
|
|
10154
|
+
const T = b(I);
|
|
10155
|
+
w(T), U(y.current);
|
|
10156
|
+
}, y = D(u ?? ""), P = (I) => {
|
|
10157
|
+
const T = I.trim();
|
|
10158
|
+
if (T && p.current) {
|
|
10159
|
+
if (/^(\d)\1*$/.test(I.trim()))
|
|
10151
10160
|
return !1;
|
|
10152
|
-
const
|
|
10153
|
-
|
|
10154
|
-
)}${
|
|
10155
|
-
return bf(
|
|
10161
|
+
const ie = `+${cr(
|
|
10162
|
+
p.current
|
|
10163
|
+
)}${T}`;
|
|
10164
|
+
return bf(ie);
|
|
10156
10165
|
}
|
|
10157
10166
|
return !0;
|
|
10158
|
-
},
|
|
10167
|
+
}, U = (I) => {
|
|
10159
10168
|
if (!d) {
|
|
10160
|
-
const
|
|
10161
|
-
phoneNumber:
|
|
10162
|
-
countryCode:
|
|
10163
|
-
error: void 0
|
|
10169
|
+
const ne = {
|
|
10170
|
+
phoneNumber: I,
|
|
10171
|
+
countryCode: p.current,
|
|
10172
|
+
error: void 0,
|
|
10173
|
+
id: o
|
|
10164
10174
|
};
|
|
10165
|
-
r(
|
|
10166
|
-
}
|
|
10167
|
-
|
|
10168
|
-
const
|
|
10169
|
-
|
|
10170
|
-
const
|
|
10171
|
-
phoneNumber:
|
|
10172
|
-
countryCode:
|
|
10173
|
-
error:
|
|
10175
|
+
r(ne);
|
|
10176
|
+
}
|
|
10177
|
+
I = I.trim();
|
|
10178
|
+
const T = I ? P(I) ? void 0 : "invalid" : t ? "required" : void 0;
|
|
10179
|
+
m(!(!v && T !== void 0));
|
|
10180
|
+
const q = {
|
|
10181
|
+
phoneNumber: I,
|
|
10182
|
+
countryCode: p.current,
|
|
10183
|
+
error: T,
|
|
10184
|
+
id: o
|
|
10174
10185
|
};
|
|
10175
|
-
r(
|
|
10186
|
+
r(q);
|
|
10176
10187
|
};
|
|
10177
10188
|
return /* @__PURE__ */ N.jsx(N.Fragment, { children: /* @__PURE__ */ N.jsxs("div", { className: Ot.phoneWrapper, "data-testid": "phone-wrapper", children: [
|
|
10178
|
-
/* @__PURE__ */ N.jsx("div", { className: Ot.countryCode, children: /* @__PURE__ */ N.jsx(Xs, { selected:
|
|
10179
|
-
}, "data-testid": "phone-select-options", children:
|
|
10189
|
+
/* @__PURE__ */ N.jsx("div", { className: Ot.countryCode, children: /* @__PURE__ */ N.jsx(Xs, { selected: S, onSelect: C, "data-testid": "phone-select", themeColor: n, children: /* @__PURE__ */ N.jsx("div", { className: Ot.phonNumberList, children: /* @__PURE__ */ N.jsx(Js, { setQuery: () => {
|
|
10190
|
+
}, "data-testid": "phone-select-options", children: f.map((I) => /* @__PURE__ */ N.jsx(
|
|
10180
10191
|
vo,
|
|
10181
10192
|
{
|
|
10182
10193
|
disable: !1,
|
|
10183
|
-
value:
|
|
10184
|
-
className: ({ active:
|
|
10185
|
-
"data-testid": `phone-select-option-${
|
|
10194
|
+
value: I.value,
|
|
10195
|
+
className: ({ active: T }) => `${T || c(S, I) ? Ot.active : ""}`,
|
|
10196
|
+
"data-testid": `phone-select-option-${I.value}`,
|
|
10186
10197
|
children: /* @__PURE__ */ N.jsx("div", { className: Ot.countryListText, children: /* @__PURE__ */ N.jsxs("span", { children: [
|
|
10187
|
-
Mt[
|
|
10198
|
+
Mt[I.value],
|
|
10188
10199
|
" +",
|
|
10189
|
-
cr(
|
|
10200
|
+
cr(I.value)
|
|
10190
10201
|
] }) })
|
|
10191
10202
|
},
|
|
10192
|
-
|
|
10203
|
+
I.value
|
|
10193
10204
|
)) }) }) }) }),
|
|
10194
10205
|
/* @__PURE__ */ N.jsx("div", { className: Ot.phoneInputWrap, children: /* @__PURE__ */ N.jsx(
|
|
10195
10206
|
f2,
|
|
@@ -10197,13 +10208,14 @@ const Tf = ({
|
|
|
10197
10208
|
type: "text",
|
|
10198
10209
|
"aria-labelledby": "phone-number",
|
|
10199
10210
|
placeholder: i,
|
|
10200
|
-
className: `${Ot.phoneInput} ${
|
|
10211
|
+
className: `${Ot.phoneInput} ${v && d ? Ot.serverError : ""}`,
|
|
10201
10212
|
id: o,
|
|
10202
|
-
|
|
10203
|
-
|
|
10213
|
+
value: u ?? "",
|
|
10214
|
+
onBlur: (I) => {
|
|
10215
|
+
y.current = I.target.value.trim();
|
|
10204
10216
|
},
|
|
10205
|
-
onChange: (
|
|
10206
|
-
|
|
10217
|
+
onChange: (I) => {
|
|
10218
|
+
y.current = I.target.value, U(y.current);
|
|
10207
10219
|
},
|
|
10208
10220
|
"data-testid": "phone-input",
|
|
10209
10221
|
themeColor: n
|