@oncehub/ui-react 1.4.24-beta.1.3 → 1.4.24-beta.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/phone/phone.d.ts +1 -0
- package/dist/ui-react.es.js +1013 -1012
- package/dist/ui-react.es.js.map +1 -1
- package/dist/ui-react.umd.js +18 -18
- package/dist/ui-react.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/ui-react.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode("*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.tw-relative{position:relative}.tw-block{display:block}.tw-flex{display:flex}.tw-h-20{height:5rem}.tw-cursor-default{cursor:default}.tw-select-none{user-select:none}.tw-items-center{align-items:center}.tw-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tw-bg-\\[\\#EEEEEE\\]{--tw-bg-opacity: 1;background-color:rgb(238 238 238 / var(--tw-bg-opacity))}.tw-py-2{padding-top:.5rem;padding-bottom:.5rem}.tw-pl-4{padding-left:1rem}.tw-pr-4{padding-right:1rem}.tw-font-medium{font-weight:500}.tw-font-normal{font-weight:400}.tw-text-\\[\\#333333\\]{--tw-text-opacity: 1;color:rgb(51 51 51 / var(--tw-text-opacity))}._button_1q2ge_1{box-sizing:border-box;display:flex;cursor:pointer;align-items:center;justify-content:center;border-width:1px;border-style:solid;text-align:center;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}._button_1q2ge_1:hover{text-decoration-line:underline}._button_1q2ge_1:focus{text-decoration-line:underline}._button_1q2ge_1:disabled{cursor:default}._button_1q2ge_1:hover:disabled{text-decoration-line:none}._primary_1q2ge_5{border-color:transparent;--tw-bg-opacity: 1;background-color:rgb(0 107 177 / var(--tw-bg-opacity));font-weight:500;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity));outline-color:#006bb1}._primary_1q2ge_5:focus{outline-width:2px;outline-offset:3px}._primary_1q2ge_5:disabled{--tw-border-opacity: 1;border-color:rgb(200 200 200 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(200 200 200 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._secondary_1q2ge_12{--tw-border-opacity: 1;border-color:rgb(0 107 177 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));font-weight:400;--tw-text-opacity: 1;color:rgb(0 107 177 / var(--tw-text-opacity))}._secondary_1q2ge_12:hover{border-color:transparent;outline-style:solid;outline-width:2px;outline-offset:-2px;outline-color:#006bb1}._secondary_1q2ge_12:focus{border-color:transparent;outline-style:solid;outline-width:2px;outline-offset:-2px;outline-color:#006bb1}._secondary_1q2ge_12:disabled{--tw-border-opacity: 1;border-color:rgb(200 200 200 / var(--tw-border-opacity));--tw-text-opacity: 1;color:rgb(200 200 200 / var(--tw-text-opacity))}._secondary_1q2ge_12:disabled:hover{outline-width:0px}._secondary_1q2ge_12:disabled:focus{outline-width:0px}._small_1q2ge_19{min-height:35px;min-width:70px;padding:4px 22px;font-size:.875rem;line-height:1.25rem;line-height:22px}._small_1q2ge_19._rounded_1q2ge_22{border-radius:18px}._medium_1q2ge_26{min-height:40px;min-width:74px;padding:7px 22px;font-size:.875rem;line-height:1.25rem;line-height:22px}._medium_1q2ge_26._rounded_1q2ge_22{border-radius:20px}._large_1q2ge_33{min-height:44px;min-width:94px;padding-left:1.5rem;padding-right:1.5rem;padding-top:8px;padding-bottom:8px;font-size:1rem;line-height:1.5rem;line-height:24px}._large_1q2ge_33._rounded_1q2ge_22{border-radius:22px}._squared_1q2ge_40{border-radius:.25rem}._checkboxLayout_bt7qx_1{display:inline-flex;width:100%;align-items:center;white-space:nowrap;vertical-align:middle}._checkboxLayout_bt7qx_1 ._checkboxLabel_bt7qx_4{display:flex;width:100%;cursor:pointer;align-items:baseline;gap:.5rem;font-size:.875rem;line-height:1.25rem;line-height:22px;letter-spacing:0;--tw-text-opacity: 1;color:rgb(51 51 51 / var(--tw-text-opacity))}._checkboxLayout_bt7qx_1 ._checkboxLabel_bt7qx_4>span{white-space:normal;font-size:.875rem;line-height:1.25rem;line-height:22px;letter-spacing:0;--tw-text-opacity: 1;color:rgb(51 51 51 / var(--tw-text-opacity))}._checkboxLayout_bt7qx_1 ._checkboxLabel_bt7qx_4 ._checkboxInnerContainer_bt7qx_10{position:relative;top:2px;display:inline-block;height:1rem;width:1rem;flex-shrink:0;cursor:pointer;white-space:nowrap;border-width:0px;vertical-align:middle;line-height:0;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);outline-width:0px}._checkboxLayout_bt7qx_1 ._checkboxLabel_bt7qx_4 ._checkboxInnerContainer_bt7qx_10 ._checkboxInput_bt7qx_13{position:absolute;bottom:0;left:0;height:0px;width:0px;appearance:none;border-width:0px;padding:0;opacity:0;outline-width:0px}._checkboxLayout_bt7qx_1 ._checkboxLabel_bt7qx_4 ._checkboxInnerContainer_bt7qx_10 ._checkboxInput_bt7qx_13:checked+._checkboxFrame_bt7qx_16{--tw-border-opacity: 1;border-color:rgb(0 107 177 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(0 107 177 / var(--tw-bg-opacity))}._checkboxLayout_bt7qx_1 ._checkboxLabel_bt7qx_4 ._checkboxInnerContainer_bt7qx_10 ._checkboxInput_bt7qx_13:checked+._checkboxFrame_bt7qx_16 ._checkboxCheckMark_bt7qx_19{opacity:1}._checkboxLayout_bt7qx_1 ._checkboxLabel_bt7qx_4 ._checkboxInnerContainer_bt7qx_10 ._checkboxInput_bt7qx_13:checked+._checkboxFrame_bt7qx_16 ._checkboxCheckMark_bt7qx_19 ._checkboxCheckMarkPath_bt7qx_22{animation:.18s linear 0ms _checkboxUncheckedChecked_bt7qx_1;stroke-dashoffset:0}._checkboxLayout_bt7qx_1 ._checkboxLabel_bt7qx_4 ._checkboxInnerContainer_bt7qx_10 ._checkboxInput_bt7qx_13:disabled+._checkboxFrame_bt7qx_16{--tw-border-opacity: 1;border-color:rgb(228 228 228 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(249 249 249 / var(--tw-bg-opacity))}._checkboxLayout_bt7qx_1 ._checkboxLabel_bt7qx_4 ._checkboxInnerContainer_bt7qx_10 ._checkboxFrame_bt7qx_16{position:absolute;inset:0;box-sizing:border-box;border-radius:3px;border-width:1px;border-style:solid;--tw-border-opacity: 1;border-color:rgb(156 156 156 / var(--tw-border-opacity));background-color:transparent}._checkboxLayout_bt7qx_1 ._checkboxLabel_bt7qx_4 ._checkboxInnerContainer_bt7qx_10 ._checkboxFrame_bt7qx_16 ._checkboxCheckMark_bt7qx_19{position:absolute;inset:0;width:100%}._checkboxLayout_bt7qx_1 ._checkboxLabel_bt7qx_4 ._checkboxInnerContainer_bt7qx_10 ._checkboxFrame_bt7qx_16 ._checkboxCheckMark_bt7qx_19 ._checkboxCheckMarkPath_bt7qx_22{stroke-width:3px;stroke-dashoffset:23;stroke-dasharray:23}._checkboxLayout_bt7qx_1 ._checkboxLabel_bt7qx_4 ._checkboxInnerContainer_bt7qx_10:focus-visible ._checkboxFrame_bt7qx_16{outline-style:solid;outline-width:2px;outline-offset:-1px;outline-color:#006bb1}._checkboxLayout_bt7qx_1 ._checkboxLabel_bt7qx_4 ._visuallyHidden_bt7qx_43{position:absolute;width:0px;height:0px;margin:0;padding:0;overflow:hidden;clip:rect(0,0,0,0);border:0}._checkboxLayout_bt7qx_1._checkboxDisabled_bt7qx_53{pointer-events:none;cursor:default}._checkboxLayout_bt7qx_1._checkboxDisabled_bt7qx_53 ._checkboxLabel_bt7qx_4 ._checkboxInnerContainer_bt7qx_10 ._checkboxFrame_bt7qx_16{--tw-border-opacity: 1;border-color:rgb(228 228 228 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(249 249 249 / var(--tw-bg-opacity))}._checkboxLayout_bt7qx_1._medium_bt7qx_59 ._checkboxLabel_bt7qx_4>span{width:calc(100% - 24px);font-size:.875rem;line-height:1.25rem}._checkboxLayout_bt7qx_1._medium_bt7qx_59 ._checkboxLabel_bt7qx_4 ._checkboxInnerContainer_bt7qx_10{height:1rem;width:1rem}._checkboxLayout_bt7qx_1._large_bt7qx_65 ._checkboxLabel_bt7qx_4>span{width:calc(100% - 27px);font-size:1rem;line-height:1.5rem}._checkboxLayout_bt7qx_1._large_bt7qx_65 ._checkboxLabel_bt7qx_4 ._checkboxInnerContainer_bt7qx_10{top:4px;height:1.25rem;width:1.25rem}@keyframes _checkboxUncheckedChecked_bt7qx_1{0%,50%{stroke-dashoffset:23}50%{animation-timing-function:cubic-bezier(0,0,.2,.1)}to{stroke-dashoffset:0}}._textInputWrapper_1i9m6_1{width:100%}._textInputWrapper_1i9m6_1 ._textInput_1i9m6_1{box-sizing:border-box;display:block;height:2.5rem;max-height:225px;width:100%;resize:none;border-width:0px;border-bottom-width:1px;--tw-border-opacity: 1;border-color:rgb(51 51 51 / var(--tw-border-opacity));padding-left:10px;padding-right:10px;padding-bottom:.5rem;padding-top:7px;font-size:1rem;line-height:1.5rem;--tw-text-opacity: 1;color:rgb(51 51 51 / var(--tw-text-opacity));outline:2px solid transparent;outline-offset:2px}._textInputWrapper_1i9m6_1 ._textInput_1i9m6_1:focus{border-bottom-width:2px;--tw-border-opacity: 1;border-color:rgb(0 107 177 / var(--tw-border-opacity));padding-bottom:7px}._multiSelectContainer_lh9wi_1,._multiSelectContainer_lh9wi_1 ._listOptionsWrap_lh9wi_4{position:relative;width:100%}._multiSelectContainer_lh9wi_1 ._listOptionsWrap_lh9wi_4 ._selectedValuesWrap_lh9wi_7{position:relative;height:2.5rem;width:100%}._multiSelectContainer_lh9wi_1 ._listOptionsWrap_lh9wi_4 ._selectedValuesWrap_lh9wi_7 ._selectedValues_lh9wi_7{box-sizing:border-box;display:block;height:100%;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-width:0px;border-bottom-width:1px;border-style:solid;--tw-border-opacity: 1;border-bottom-color:rgb(51 51 51 / var(--tw-border-opacity));padding-bottom:.5rem;padding-left:10px;padding-right:2.75rem;padding-top:.5rem;font-size:1rem;line-height:1rem;--tw-text-opacity: 1;color:rgb(51 51 51 / var(--tw-text-opacity))}._multiSelectContainer_lh9wi_1 ._listOptionsWrap_lh9wi_4 ._selectedValuesWrap_lh9wi_7 ._selectedValues_lh9wi_7::placeholder{--tw-placeholder-opacity: 1;color:rgb(102 102 102 / var(--tw-placeholder-opacity))}._multiSelectContainer_lh9wi_1 ._listOptionsWrap_lh9wi_4 ._selectedValuesWrap_lh9wi_7 ._selectedValues_lh9wi_7:focus-within{outline:2px solid transparent;outline-offset:2px}._multiSelectContainer_lh9wi_1 ._listOptionsWrap_lh9wi_4 ._selectedValuesWrap_lh9wi_7 ._selectedValues_lh9wi_7:focus{border-bottom-width:2px;--tw-border-opacity: 1;border-color:rgb(0 107 177 / var(--tw-border-opacity));padding-bottom:7px}._multiSelectContainer_lh9wi_1 ._listOptionsWrap_lh9wi_4 ._selectedValuesWrap_lh9wi_7 ._selectedValues_lh9wi_7:focus-visible{outline:2px solid transparent;outline-offset:2px}._multiSelectContainer_lh9wi_1 ._listOptionsWrap_lh9wi_4 ._selectedValuesWrap_lh9wi_7 ._selectedValues_lh9wi_7._focused_lh9wi_13{border-bottom-width:2px;--tw-border-opacity: 1;border-color:rgb(0 107 177 / var(--tw-border-opacity));padding-bottom:7px;outline:2px solid transparent;outline-offset:2px}._multiSelectContainer_lh9wi_1 ._listOptionsWrap_lh9wi_4 ._selectedValuesWrap_lh9wi_7 ._selectedValues_lh9wi_7._placeholder_lh9wi_16{--tw-text-opacity: 1;color:rgb(102 102 102 / var(--tw-text-opacity))}._multiSelectContainer_lh9wi_1 ._listOptionsWrap_lh9wi_4 ._selectedValuesWrap_lh9wi_7 ._dropDownIcon_lh9wi_19{position:absolute;right:.5rem;top:50%;display:flex;height:100%;width:1.75rem;--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));cursor:pointer;align-items:center;justify-content:center}._optionsListContainer_lh9wi_23{position:absolute;z-index:10;margin-top:0;max-height:293px;width:100%;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));padding-bottom:4rem;font-size:.875rem;line-height:1.25rem;line-height:22px;--tw-shadow: 0 1px 6px 0 rgba(0,0,0,.5);--tw-shadow-colored: 0 1px 6px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}._optionsListContainer_lh9wi_23:focus{outline:2px solid transparent;outline-offset:2px}._optionsListContainer_lh9wi_23._top_lh9wi_26{transform:translateY(calc(-100% - 40px))}._optionsListContainer_lh9wi_23 ._optionsListWrap_lh9wi_29{max-height:225px;overflow:auto;padding-top:1rem;padding-bottom:1rem}._optionsListContainer_lh9wi_23 ._optionsListWrap_lh9wi_29 ._searchInputWrap_lh9wi_32{margin-bottom:.5rem;height:2.5rem;padding-left:10px;padding-right:10px}._optionsListContainer_lh9wi_23 ._optionsListWrap_lh9wi_29 ._searchInputWrap_lh9wi_32 ._searchInput_lh9wi_32{box-sizing:border-box;height:100%;width:100%;padding-top:.5rem;padding-bottom:.5rem;padding-left:10px;outline-style:solid;outline-width:1px;outline-offset:-2px;outline-color:#c8c8c8}._optionsListContainer_lh9wi_23 ._optionsListWrap_lh9wi_29 ul{margin:0;padding:0}._optionsListContainer_lh9wi_23 ._optionsListWrap_lh9wi_29 ._optionsList_lh9wi_23{box-sizing:border-box;display:flex;list-style-type:none;align-items:flex-start;gap:.5rem;padding-left:10px;padding-right:10px;padding-top:.5rem;padding-bottom:.5rem}._optionsListContainer_lh9wi_23 ._optionsListWrap_lh9wi_29 ._optionsList_lh9wi_23 span{word-break:break-word;display:block;width:calc(100% - 22px);overflow-wrap:break-word;font-size:.875rem;line-height:1.25rem;line-height:22px}._optionsListContainer_lh9wi_23 ._optionsListWrap_lh9wi_29 ._optionsList_lh9wi_23:hover,._optionsListContainer_lh9wi_23 ._optionsListWrap_lh9wi_29 ._optionsList_lh9wi_23._focused_lh9wi_13{--tw-bg-opacity: 1;background-color:rgb(238 238 238 / var(--tw-bg-opacity))}._optionsListContainer_lh9wi_23 ._btnContainer_lh9wi_54{position:absolute;left:0;right:0;box-sizing:border-box;display:flex;height:64px;width:100%;align-items:center;justify-content:flex-end;border-width:0px;border-top-width:1px;border-style:solid;--tw-border-opacity: 1;border-top-color:rgb(200 200 200 / var(--tw-border-opacity));padding-left:18px;padding-right:18px}._optionsListContainer_lh9wi_23 ._btnContainer_lh9wi_54 ._hiddenButton_lh9wi_57{position:absolute;left:-9999px;height:0px;width:0px;opacity:0}._optionsListContainer_lh9wi_23 ::-webkit-scrollbar{width:6px}._optionsListContainer_lh9wi_23 ::-webkit-scrollbar-thumb{background-color:#a9a9a9;border-radius:6px}._announcement_lh9wi_70{pointer-events:none;height:0px;overflow:hidden;opacity:0}._pseudoCheckbox_z8j4c_1{position:relative;top:3px;box-sizing:border-box;height:1rem;width:1rem;border-radius:3px;border-width:1px;border-style:solid;--tw-border-opacity: 1;border-color:rgb(156 156 156 / var(--tw-border-opacity))}._pseudoCheckbox_z8j4c_1 ._checkboxCheckMark_z8j4c_4{position:absolute;inset:0;width:100%}._pseudoCheckbox_z8j4c_1 ._checkboxCheckMark_z8j4c_4 ._checkboxCheckMarkPath_z8j4c_7{stroke-width:3px;stroke-dashoffset:23;stroke-dasharray:23}._pseudoCheckbox_z8j4c_1._checked_z8j4c_12{--tw-border-opacity: 1;border-color:rgb(0 107 177 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(0 107 177 / var(--tw-bg-opacity))}._pseudoCheckbox_z8j4c_1._checked_z8j4c_12 ._checkboxCheckMark_z8j4c_4{opacity:1}._pseudoCheckbox_z8j4c_1._checked_z8j4c_12 ._checkboxCheckMark_z8j4c_4 ._checkboxCheckMarkPath_z8j4c_7{animation:.18s linear 0ms _checkboxUncheckedChecked_z8j4c_1;stroke-dashoffset:0}._pseudoCheckbox_z8j4c_1._checkboxDisabled_z8j4c_22{pointer-events:none;cursor:default;--tw-border-opacity: 1;border-color:rgb(228 228 228 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(249 249 249 / var(--tw-bg-opacity))}@keyframes _checkboxUncheckedChecked_z8j4c_1{0%,50%{stroke-dashoffset:23}50%{animation-timing-function:cubic-bezier(0,0,.2,.1)}to{stroke-dashoffset:0}}._multiSelectContainer_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_ukkym_1{display:flex;max-width:380px;align-items:center;justify-content:space-between;gap:.75rem}._phoneWrapper_ukkym_1 ._countryCode_ukkym_4{height:2.5rem;width:100%;max-width:110px}._phoneWrapper_ukkym_1 ._countryCode_ukkym_4 button{height:2.5rem;background-color:transparent;padding-left:10px;font-weight:400;background:transparent!important}._phoneWrapper_ukkym_1 ._phoneInputWrap_ukkym_11{width:100%}._phoneWrapper_ukkym_1 ._phoneInputWrap_ukkym_11 ._phoneInput_ukkym_11{box-sizing:border-box;height:2.5rem;width:100%;border-width:0px;border-bottom-width:1px;--tw-border-opacity: 1;border-color:rgb(51 51 51 / var(--tw-border-opacity));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_ukkym_1 ._phoneInputWrap_ukkym_11 ._phoneInput_ukkym_11::placeholder{--tw-placeholder-opacity: 1;color:rgb(102 102 102 / var(--tw-placeholder-opacity))}._phoneWrapper_ukkym_1 ._phoneInputWrap_ukkym_11 ._phoneInput_ukkym_11{outline:2px solid transparent;outline-offset:2px}._phoneWrapper_ukkym_1 ._phoneInputWrap_ukkym_11 ._phoneInput_ukkym_11:focus{border-bottom-width:2px;--tw-border-opacity: 1;border-color:rgb(0 107 177 / var(--tw-border-opacity))}._phoneWrapper_ukkym_1 ._phoneInputWrap_ukkym_11 ._phoneInput_ukkym_11._serverError_ukkym_17:focus{--tw-border-opacity: 1;border-bottom-color:rgb(245 77 77 / var(--tw-border-opacity))}._phonNumberList_ukkym_21{min-width:286px}._phonNumberList_ukkym_21 ul{width:auto}._phonNumberList_ukkym_21 ul li{position:relative;cursor:default;user-select:none;padding-left:10px;padding-right:10px;padding-top:.5rem;padding-bottom:.5rem}._phonNumberList_ukkym_21 ul li._active_ukkym_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_ukkym_21 ul li ._countryListText_ukkym_33{display:flex;align-items:center}._phonNumberList_ukkym_21 ul li ._countryListText_ukkym_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 k, { 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 = k, 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,54 +47,54 @@ 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 = k, 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 I = c && h[c] || h[$];
|
|
55
|
+
return typeof I == "function" ? I : null;
|
|
56
56
|
}
|
|
57
57
|
var b = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
58
|
-
function
|
|
58
|
+
function E(h) {
|
|
59
59
|
{
|
|
60
|
-
for (var
|
|
61
|
-
|
|
62
|
-
|
|
60
|
+
for (var I = arguments.length, j = new Array(I > 1 ? I - 1 : 0), J = 1; J < I; J++)
|
|
61
|
+
j[J - 1] = arguments[J];
|
|
62
|
+
y("error", h, j);
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function y(h, I, j) {
|
|
66
66
|
{
|
|
67
67
|
var J = b.ReactDebugCurrentFrame, $e = J.getStackAddendum();
|
|
68
|
-
$e !== "" && (
|
|
69
|
-
var Ce =
|
|
68
|
+
$e !== "" && (I += "%s", j = j.concat([$e]));
|
|
69
|
+
var Ce = j.map(function(se) {
|
|
70
70
|
return String(se);
|
|
71
71
|
});
|
|
72
|
-
Ce.unshift("Warning: " +
|
|
72
|
+
Ce.unshift("Warning: " + I), Function.prototype.apply.call(console[h], console, Ce);
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
-
var
|
|
76
|
-
|
|
77
|
-
function
|
|
78
|
-
return !!(typeof h == "string" || typeof h == "function" || h === r || h === a ||
|
|
75
|
+
var O = !1, w = !1, S = !1, G = !1, B = !1, C;
|
|
76
|
+
C = Symbol.for("react.module.reference");
|
|
77
|
+
function L(h) {
|
|
78
|
+
return !!(typeof h == "string" || typeof h == "function" || h === r || h === a || B || h === i || h === s || h === v || G || h === p || O || w || S || 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 === C || h.getModuleId !== void 0));
|
|
83
83
|
}
|
|
84
|
-
function ne(h,
|
|
84
|
+
function ne(h, I, j) {
|
|
85
85
|
var J = h.displayName;
|
|
86
86
|
if (J)
|
|
87
87
|
return J;
|
|
88
|
-
var $e =
|
|
89
|
-
return $e !== "" ?
|
|
88
|
+
var $e = I.displayName || I.name || "";
|
|
89
|
+
return $e !== "" ? j + "(" + $e + ")" : j;
|
|
90
90
|
}
|
|
91
91
|
function ie(h) {
|
|
92
92
|
return h.displayName || "Context";
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function N(h) {
|
|
95
95
|
if (h == null)
|
|
96
96
|
return null;
|
|
97
|
-
if (typeof h.tag == "number" &&
|
|
97
|
+
if (typeof h.tag == "number" && E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof h == "function")
|
|
98
98
|
return h.displayName || h.name || null;
|
|
99
99
|
if (typeof h == "string")
|
|
100
100
|
return h;
|
|
@@ -115,20 +115,20 @@ function N0() {
|
|
|
115
115
|
if (typeof h == "object")
|
|
116
116
|
switch (h.$$typeof) {
|
|
117
117
|
case o:
|
|
118
|
-
var
|
|
119
|
-
return ie(
|
|
118
|
+
var I = h;
|
|
119
|
+
return ie(I) + ".Consumer";
|
|
120
120
|
case d:
|
|
121
|
-
var
|
|
122
|
-
return ie(
|
|
121
|
+
var j = h;
|
|
122
|
+
return ie(j._context) + ".Provider";
|
|
123
123
|
case u:
|
|
124
124
|
return ne(h, h.render, "ForwardRef");
|
|
125
125
|
case m:
|
|
126
126
|
var J = h.displayName || null;
|
|
127
|
-
return J !== null ? J :
|
|
127
|
+
return J !== null ? J : N(h.type) || "Memo";
|
|
128
128
|
case l: {
|
|
129
129
|
var $e = h, Ce = $e._payload, se = $e._init;
|
|
130
130
|
try {
|
|
131
|
-
return
|
|
131
|
+
return N(se(Ce));
|
|
132
132
|
} catch {
|
|
133
133
|
return null;
|
|
134
134
|
}
|
|
@@ -136,18 +136,18 @@ function N0() {
|
|
|
136
136
|
}
|
|
137
137
|
return null;
|
|
138
138
|
}
|
|
139
|
-
var Z = Object.assign, ae = 0, de,
|
|
140
|
-
function
|
|
139
|
+
var Z = Object.assign, ae = 0, de, K, ce, ue, x, R, W;
|
|
140
|
+
function U() {
|
|
141
141
|
}
|
|
142
|
-
|
|
143
|
-
function
|
|
142
|
+
U.__reactDisabledLog = !0;
|
|
143
|
+
function P() {
|
|
144
144
|
{
|
|
145
145
|
if (ae === 0) {
|
|
146
|
-
de = console.log,
|
|
146
|
+
de = console.log, K = console.info, ce = console.warn, ue = console.error, x = console.group, R = console.groupCollapsed, W = console.groupEnd;
|
|
147
147
|
var h = {
|
|
148
148
|
configurable: !0,
|
|
149
149
|
enumerable: !0,
|
|
150
|
-
value:
|
|
150
|
+
value: U,
|
|
151
151
|
writable: !0
|
|
152
152
|
};
|
|
153
153
|
Object.defineProperties(console, {
|
|
@@ -163,7 +163,7 @@ function N0() {
|
|
|
163
163
|
ae++;
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
|
-
function
|
|
166
|
+
function A() {
|
|
167
167
|
{
|
|
168
168
|
if (ae--, ae === 0) {
|
|
169
169
|
var h = {
|
|
@@ -176,7 +176,7 @@ function N0() {
|
|
|
176
176
|
value: de
|
|
177
177
|
}),
|
|
178
178
|
info: Z({}, h, {
|
|
179
|
-
value:
|
|
179
|
+
value: K
|
|
180
180
|
}),
|
|
181
181
|
warn: Z({}, h, {
|
|
182
182
|
value: ce
|
|
@@ -185,31 +185,31 @@ function N0() {
|
|
|
185
185
|
value: ue
|
|
186
186
|
}),
|
|
187
187
|
group: Z({}, h, {
|
|
188
|
-
value:
|
|
188
|
+
value: x
|
|
189
189
|
}),
|
|
190
190
|
groupCollapsed: Z({}, h, {
|
|
191
|
-
value:
|
|
191
|
+
value: R
|
|
192
192
|
}),
|
|
193
193
|
groupEnd: Z({}, h, {
|
|
194
194
|
value: W
|
|
195
195
|
})
|
|
196
196
|
});
|
|
197
197
|
}
|
|
198
|
-
ae < 0 &&
|
|
198
|
+
ae < 0 && E("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 F = b.ReactCurrentDispatcher, H;
|
|
202
|
+
function Y(h, I, j) {
|
|
203
203
|
{
|
|
204
|
-
if (
|
|
204
|
+
if (H === void 0)
|
|
205
205
|
try {
|
|
206
206
|
throw Error();
|
|
207
207
|
} catch ($e) {
|
|
208
208
|
var J = $e.stack.trim().match(/\n( *(at )?)/);
|
|
209
|
-
|
|
209
|
+
H = J && J[1] || "";
|
|
210
210
|
}
|
|
211
211
|
return `
|
|
212
|
-
` +
|
|
212
|
+
` + H + h;
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
215
|
var te = !1, ee;
|
|
@@ -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, I) {
|
|
221
221
|
if (!h || te)
|
|
222
222
|
return "";
|
|
223
223
|
{
|
|
224
|
-
var
|
|
225
|
-
if (
|
|
226
|
-
return
|
|
224
|
+
var j = ee.get(h);
|
|
225
|
+
if (j !== void 0)
|
|
226
|
+
return j;
|
|
227
227
|
}
|
|
228
228
|
var J;
|
|
229
229
|
te = !0;
|
|
230
230
|
var $e = Error.prepareStackTrace;
|
|
231
231
|
Error.prepareStackTrace = void 0;
|
|
232
232
|
var Ce;
|
|
233
|
-
Ce =
|
|
233
|
+
Ce = F.current, F.current = null, P();
|
|
234
234
|
try {
|
|
235
|
-
if (
|
|
235
|
+
if (I) {
|
|
236
236
|
var se = function() {
|
|
237
237
|
throw Error();
|
|
238
238
|
};
|
|
@@ -283,19 +283,19 @@ function N0() {
|
|
|
283
283
|
}
|
|
284
284
|
}
|
|
285
285
|
} finally {
|
|
286
|
-
te = !1,
|
|
286
|
+
te = !1, F.current = Ce, A(), 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
|
|
291
|
+
function q(h, I, j) {
|
|
292
292
|
return g(h, !1);
|
|
293
293
|
}
|
|
294
294
|
function ye(h) {
|
|
295
|
-
var
|
|
296
|
-
return !!(
|
|
295
|
+
var I = h.prototype;
|
|
296
|
+
return !!(I && I.isReactComponent);
|
|
297
297
|
}
|
|
298
|
-
function xe(h,
|
|
298
|
+
function xe(h, I, j) {
|
|
299
299
|
if (h == null)
|
|
300
300
|
return "";
|
|
301
301
|
if (typeof h == "function")
|
|
@@ -311,13 +311,13 @@ function N0() {
|
|
|
311
311
|
if (typeof h == "object")
|
|
312
312
|
switch (h.$$typeof) {
|
|
313
313
|
case u:
|
|
314
|
-
return
|
|
314
|
+
return q(h.render);
|
|
315
315
|
case m:
|
|
316
|
-
return xe(h.type,
|
|
316
|
+
return xe(h.type, I, j);
|
|
317
317
|
case l: {
|
|
318
318
|
var J = h, $e = J._payload, Ce = J._init;
|
|
319
319
|
try {
|
|
320
|
-
return xe(Ce($e),
|
|
320
|
+
return xe(Ce($e), I, j);
|
|
321
321
|
} catch {
|
|
322
322
|
}
|
|
323
323
|
}
|
|
@@ -327,12 +327,12 @@ 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 I = h._owner, j = xe(h.type, h._source, I ? I.type : null);
|
|
331
|
+
dt.setExtraStackFrame(j);
|
|
332
332
|
} else
|
|
333
333
|
dt.setExtraStackFrame(null);
|
|
334
334
|
}
|
|
335
|
-
function It(h,
|
|
335
|
+
function It(h, I, j, J, $e) {
|
|
336
336
|
{
|
|
337
337
|
var Ce = Function.call.bind(Le);
|
|
338
338
|
for (var se in h)
|
|
@@ -340,14 +340,14 @@ function N0() {
|
|
|
340
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") + ": " + j + " 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
|
-
oe = h[se](
|
|
346
|
+
oe = h[se](I, se, J, j, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
347
347
|
} catch (Se) {
|
|
348
348
|
oe = Se;
|
|
349
349
|
}
|
|
350
|
-
oe && !(oe instanceof Error) && (De($e),
|
|
350
|
+
oe && !(oe instanceof Error) && (De($e), E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", J || "React class", j, se, typeof oe), De(null)), oe instanceof Error && !(oe.message in Ve) && (Ve[oe.message] = !0, De($e), E("Failed %s type: %s", j, oe.message), De(null));
|
|
351
351
|
}
|
|
352
352
|
}
|
|
353
353
|
}
|
|
@@ -357,8 +357,8 @@ function N0() {
|
|
|
357
357
|
}
|
|
358
358
|
function wt(h) {
|
|
359
359
|
{
|
|
360
|
-
var
|
|
361
|
-
return
|
|
360
|
+
var I = typeof Symbol == "function" && Symbol.toStringTag, j = I && h[Symbol.toStringTag] || h.constructor.name || "Object";
|
|
361
|
+
return j;
|
|
362
362
|
}
|
|
363
363
|
}
|
|
364
364
|
function Ft(h) {
|
|
@@ -373,7 +373,7 @@ function N0() {
|
|
|
373
373
|
}
|
|
374
374
|
function fe(h) {
|
|
375
375
|
if (Ft(h))
|
|
376
|
-
return
|
|
376
|
+
return E("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,56 +384,56 @@ function N0() {
|
|
|
384
384
|
le = {};
|
|
385
385
|
function X(h) {
|
|
386
386
|
if (Le.call(h, "ref")) {
|
|
387
|
-
var
|
|
388
|
-
if (
|
|
387
|
+
var I = Object.getOwnPropertyDescriptor(h, "ref").get;
|
|
388
|
+
if (I && I.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 I = Object.getOwnPropertyDescriptor(h, "key").get;
|
|
396
|
+
if (I && I.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, I) {
|
|
402
|
+
if (typeof h.ref == "string" && z.current && I && z.current.stateNode !== I) {
|
|
403
|
+
var j = N(z.current.type);
|
|
404
|
+
le[j] || (E('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', N(z.current.type), h.ref), le[j] = !0);
|
|
405
405
|
}
|
|
406
406
|
}
|
|
407
|
-
function fn(h,
|
|
407
|
+
function fn(h, I) {
|
|
408
408
|
{
|
|
409
|
-
var
|
|
410
|
-
et || (et = !0,
|
|
409
|
+
var j = function() {
|
|
410
|
+
et || (et = !0, E("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", I));
|
|
411
411
|
};
|
|
412
|
-
|
|
413
|
-
get:
|
|
412
|
+
j.isReactWarning = !0, Object.defineProperty(h, "key", {
|
|
413
|
+
get: j,
|
|
414
414
|
configurable: !0
|
|
415
415
|
});
|
|
416
416
|
}
|
|
417
417
|
}
|
|
418
|
-
function c0(h,
|
|
418
|
+
function c0(h, I) {
|
|
419
419
|
{
|
|
420
|
-
var
|
|
421
|
-
Ke || (Ke = !0,
|
|
420
|
+
var j = function() {
|
|
421
|
+
Ke || (Ke = !0, E("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", I));
|
|
422
422
|
};
|
|
423
|
-
|
|
424
|
-
get:
|
|
423
|
+
j.isReactWarning = !0, Object.defineProperty(h, "ref", {
|
|
424
|
+
get: j,
|
|
425
425
|
configurable: !0
|
|
426
426
|
});
|
|
427
427
|
}
|
|
428
428
|
}
|
|
429
|
-
var f0 = function(h,
|
|
429
|
+
var f0 = function(h, I, j, J, $e, Ce, se) {
|
|
430
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: I,
|
|
436
|
+
ref: j,
|
|
437
437
|
props: se,
|
|
438
438
|
// Record the component responsible for creating this element.
|
|
439
439
|
_owner: Ce
|
|
@@ -455,12 +455,12 @@ function N0() {
|
|
|
455
455
|
value: $e
|
|
456
456
|
}), Object.freeze && (Object.freeze(oe.props), Object.freeze(oe)), oe;
|
|
457
457
|
};
|
|
458
|
-
function p0(h,
|
|
458
|
+
function p0(h, I, j, J, $e) {
|
|
459
459
|
{
|
|
460
460
|
var Ce, se = {}, oe = null, Be = null;
|
|
461
|
-
|
|
462
|
-
for (Ce in
|
|
463
|
-
Le.call(
|
|
461
|
+
j !== void 0 && (fe(j), oe = "" + j), Ze(I) && (fe(I.key), oe = "" + I.key), X(I) && (Be = I.ref, zt(I, $e));
|
|
462
|
+
for (Ce in I)
|
|
463
|
+
Le.call(I, Ce) && !we.hasOwnProperty(Ce) && (se[Ce] = I[Ce]);
|
|
464
464
|
if (h && h.defaultProps) {
|
|
465
465
|
var Se = h.defaultProps;
|
|
466
466
|
for (Ce in Se)
|
|
@@ -476,8 +476,8 @@ function N0() {
|
|
|
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 I = h._owner, j = xe(h.type, h._source, I ? I.type : null);
|
|
480
|
+
oi.setExtraStackFrame(j);
|
|
481
481
|
} else
|
|
482
482
|
oi.setExtraStackFrame(null);
|
|
483
483
|
}
|
|
@@ -489,7 +489,7 @@ function N0() {
|
|
|
489
489
|
function ui() {
|
|
490
490
|
{
|
|
491
491
|
if (Kn.current) {
|
|
492
|
-
var h =
|
|
492
|
+
var h = N(Kn.current.type);
|
|
493
493
|
if (h)
|
|
494
494
|
return `
|
|
495
495
|
|
|
@@ -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 I = h.fileName.replace(/^.*[\\\/]/, ""), j = h.lineNumber;
|
|
505
505
|
return `
|
|
506
506
|
|
|
507
|
-
Check your code at ` +
|
|
507
|
+
Check your code at ` + I + ":" + j + ".";
|
|
508
508
|
}
|
|
509
509
|
return "";
|
|
510
510
|
}
|
|
@@ -512,37 +512,37 @@ Check your code at ` + _ + ":" + L + ".";
|
|
|
512
512
|
var li = {};
|
|
513
513
|
function v0(h) {
|
|
514
514
|
{
|
|
515
|
-
var
|
|
516
|
-
if (!
|
|
517
|
-
var
|
|
518
|
-
|
|
515
|
+
var I = ui();
|
|
516
|
+
if (!I) {
|
|
517
|
+
var j = typeof h == "string" ? h : h.displayName || h.name;
|
|
518
|
+
j && (I = `
|
|
519
519
|
|
|
520
|
-
Check the top-level render call using <` +
|
|
520
|
+
Check the top-level render call using <` + j + ">.");
|
|
521
521
|
}
|
|
522
|
-
return
|
|
522
|
+
return I;
|
|
523
523
|
}
|
|
524
524
|
}
|
|
525
|
-
function si(h,
|
|
525
|
+
function si(h, I) {
|
|
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 j = v0(I);
|
|
531
|
+
if (li[j])
|
|
532
532
|
return;
|
|
533
|
-
li[
|
|
533
|
+
li[j] = !0;
|
|
534
534
|
var J = "";
|
|
535
|
-
h && h._owner && h._owner !== Kn.current && (J = " It was passed a child from " +
|
|
535
|
+
h && h._owner && h._owner !== Kn.current && (J = " It was passed a child from " + N(h._owner.type) + "."), kt(h), E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', j, J), kt(null);
|
|
536
536
|
}
|
|
537
537
|
}
|
|
538
|
-
function ci(h,
|
|
538
|
+
function ci(h, I) {
|
|
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 j = 0; j < h.length; j++) {
|
|
544
|
+
var J = h[j];
|
|
545
|
+
Yn(J) && si(J, I);
|
|
546
546
|
}
|
|
547
547
|
else if (Yn(h))
|
|
548
548
|
h._store && (h._store.validated = !0);
|
|
@@ -550,63 +550,63 @@ Check the top-level render call using <` + L + ">.");
|
|
|
550
550
|
var $e = f(h);
|
|
551
551
|
if (typeof $e == "function" && $e !== h.entries)
|
|
552
552
|
for (var Ce = $e.call(h), se; !(se = Ce.next()).done; )
|
|
553
|
-
Yn(se.value) && si(se.value,
|
|
553
|
+
Yn(se.value) && si(se.value, I);
|
|
554
554
|
}
|
|
555
555
|
}
|
|
556
556
|
}
|
|
557
557
|
function h0(h) {
|
|
558
558
|
{
|
|
559
|
-
var
|
|
560
|
-
if (
|
|
559
|
+
var I = h.type;
|
|
560
|
+
if (I == null || typeof I == "string")
|
|
561
561
|
return;
|
|
562
|
-
var
|
|
563
|
-
if (typeof
|
|
564
|
-
|
|
565
|
-
else if (typeof
|
|
562
|
+
var j;
|
|
563
|
+
if (typeof I == "function")
|
|
564
|
+
j = I.propTypes;
|
|
565
|
+
else if (typeof I == "object" && (I.$$typeof === u || // Note: Memo only checks outer props here.
|
|
566
566
|
// Inner props are checked in the reconciler.
|
|
567
|
-
|
|
568
|
-
|
|
567
|
+
I.$$typeof === m))
|
|
568
|
+
j = I.propTypes;
|
|
569
569
|
else
|
|
570
570
|
return;
|
|
571
|
-
if (
|
|
572
|
-
var J =
|
|
573
|
-
It(
|
|
574
|
-
} else if (
|
|
571
|
+
if (j) {
|
|
572
|
+
var J = N(I);
|
|
573
|
+
It(j, h.props, "prop", J, h);
|
|
574
|
+
} else if (I.PropTypes !== void 0 && !qn) {
|
|
575
575
|
qn = !0;
|
|
576
|
-
var $e =
|
|
577
|
-
|
|
576
|
+
var $e = N(I);
|
|
577
|
+
E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", $e || "Unknown");
|
|
578
578
|
}
|
|
579
|
-
typeof
|
|
579
|
+
typeof I.getDefaultProps == "function" && !I.getDefaultProps.isReactClassApproved && E("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 I = Object.keys(h.props), j = 0; j < I.length; j++) {
|
|
585
|
+
var J = I[j];
|
|
586
586
|
if (J !== "children" && J !== "key") {
|
|
587
|
-
kt(h),
|
|
587
|
+
kt(h), E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", J), kt(null);
|
|
588
588
|
break;
|
|
589
589
|
}
|
|
590
590
|
}
|
|
591
|
-
h.ref !== null && (kt(h),
|
|
591
|
+
h.ref !== null && (kt(h), E("Invalid attribute `ref` supplied to `React.Fragment`."), kt(null));
|
|
592
592
|
}
|
|
593
593
|
}
|
|
594
|
-
function fi(h,
|
|
594
|
+
function fi(h, I, j, J, $e, Ce) {
|
|
595
595
|
{
|
|
596
|
-
var se =
|
|
596
|
+
var se = L(h);
|
|
597
597
|
if (!se) {
|
|
598
598
|
var oe = "";
|
|
599
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
600
|
var Be = $0($e);
|
|
601
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 = "<" + (
|
|
603
|
+
h === null ? Se = "null" : Me(h) ? Se = "array" : h !== void 0 && h.$$typeof === t ? (Se = "<" + (N(h.type) || "Unknown") + " />", oe = " Did you accidentally export a JSX literal instead of a component?") : Se = typeof h, E("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, I, j, $e, Ce);
|
|
606
606
|
if (Te == null)
|
|
607
607
|
return Te;
|
|
608
608
|
if (se) {
|
|
609
|
-
var Xe =
|
|
609
|
+
var Xe = I.children;
|
|
610
610
|
if (Xe !== void 0)
|
|
611
611
|
if (J)
|
|
612
612
|
if (Me(Xe)) {
|
|
@@ -614,25 +614,25 @@ Check the top-level render call using <` + L + ">.");
|
|
|
614
614
|
ci(Xe[jt], h);
|
|
615
615
|
Object.freeze && Object.freeze(Xe);
|
|
616
616
|
} else
|
|
617
|
-
|
|
617
|
+
E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
618
618
|
else
|
|
619
619
|
ci(Xe, h);
|
|
620
620
|
}
|
|
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, I, j) {
|
|
625
|
+
return fi(h, I, j, !0);
|
|
626
626
|
}
|
|
627
|
-
function g0(h,
|
|
628
|
-
return fi(h,
|
|
627
|
+
function g0(h, I, j) {
|
|
628
|
+
return fi(h, I, j, !1);
|
|
629
629
|
}
|
|
630
630
|
var y0 = g0, w0 = b0;
|
|
631
631
|
Xt.Fragment = r, Xt.jsx = y0, Xt.jsxs = w0;
|
|
632
632
|
}()), Xt;
|
|
633
633
|
}
|
|
634
634
|
process.env.NODE_ENV === "production" ? fr.exports = E0() : fr.exports = N0();
|
|
635
|
-
var
|
|
635
|
+
var T = fr.exports;
|
|
636
636
|
const T0 = "_button_1q2ge_1", I0 = "_primary_1q2ge_5", _0 = "_secondary_1q2ge_12", A0 = "_small_1q2ge_19", R0 = "_rounded_1q2ge_22", F0 = "_medium_1q2ge_26", k0 = "_large_1q2ge_33", j0 = "_squared_1q2ge_40", pn = {
|
|
637
637
|
button: T0,
|
|
638
638
|
primary: I0,
|
|
@@ -684,7 +684,7 @@ const Za = Pt(
|
|
|
684
684
|
}
|
|
685
685
|
}
|
|
686
686
|
const m = [pn.button, pn[t], pn[n], pn[r], a].filter(Boolean).join(" ");
|
|
687
|
-
return /* @__PURE__ */
|
|
687
|
+
return /* @__PURE__ */ T.jsx(
|
|
688
688
|
"button",
|
|
689
689
|
{
|
|
690
690
|
disabled: o,
|
|
@@ -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 O = Et(t);
|
|
732
|
+
if (t = ct.convert3HexTo6(t), O === "dark" || O === "light") {
|
|
733
|
+
switch (O) {
|
|
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 w = a ? "#f9f9f9" : l ? t : "#ffffff";
|
|
745
745
|
$ = a ? "#e4e4e4" : t == "#ffffff" ? "#333333" : t, l && (c = {
|
|
746
|
-
backgroundColor:
|
|
746
|
+
backgroundColor: w,
|
|
747
747
|
borderColor: $,
|
|
748
748
|
outlineColor: $
|
|
749
749
|
});
|
|
750
750
|
}
|
|
751
751
|
}
|
|
752
|
-
const b = a ? ot.checkboxDisabled : "",
|
|
753
|
-
|
|
752
|
+
const b = a ? ot.checkboxDisabled : "", E = [ot.checkboxLayout, ot[n], b, d].filter(Boolean).join(" "), y = (O) => {
|
|
753
|
+
O.key != "Enter" && (O.preventDefault(), o?.(O.target.checked), p(!l));
|
|
754
754
|
};
|
|
755
|
-
return /* @__PURE__ */
|
|
756
|
-
/* @__PURE__ */
|
|
755
|
+
return /* @__PURE__ */ T.jsx(T.Fragment, { children: /* @__PURE__ */ T.jsx("div", { className: E, "data-testid": "checkbox", children: /* @__PURE__ */ T.jsxs("label", { className: ot.checkboxLabel, htmlFor: r, onClick: (O) => y(O), children: [
|
|
756
|
+
/* @__PURE__ */ T.jsxs(
|
|
757
757
|
"div",
|
|
758
758
|
{
|
|
759
759
|
className: ot.checkboxInnerContainer,
|
|
760
760
|
tabIndex: s || a ? -1 : 0,
|
|
761
|
-
onKeyPress: (
|
|
761
|
+
onKeyPress: (O) => y(O),
|
|
762
762
|
"data-testid": "checkbox-inner-container",
|
|
763
763
|
children: [
|
|
764
|
-
/* @__PURE__ */
|
|
764
|
+
/* @__PURE__ */ T.jsx(
|
|
765
765
|
"input",
|
|
766
766
|
{
|
|
767
767
|
className: ot.checkboxInput,
|
|
768
|
-
onChange: (
|
|
768
|
+
onChange: (O) => y(O),
|
|
769
769
|
type: "checkbox",
|
|
770
770
|
checked: l,
|
|
771
771
|
disabled: a,
|
|
@@ -776,13 +776,13 @@ const L0 = "_checkboxLayout_bt7qx_1", D0 = "_checkboxLabel_bt7qx_4", M0 = "_chec
|
|
|
776
776
|
"data-testid": "checkbox-input"
|
|
777
777
|
}
|
|
778
778
|
),
|
|
779
|
-
/* @__PURE__ */
|
|
779
|
+
/* @__PURE__ */ T.jsx(
|
|
780
780
|
"div",
|
|
781
781
|
{
|
|
782
782
|
className: ot.checkboxFrame,
|
|
783
783
|
style: { ...c, ...u },
|
|
784
784
|
"data-testid": "checkbox-frame",
|
|
785
|
-
children: /* @__PURE__ */
|
|
785
|
+
children: /* @__PURE__ */ T.jsx(
|
|
786
786
|
"svg",
|
|
787
787
|
{
|
|
788
788
|
version: "1.1",
|
|
@@ -790,7 +790,7 @@ const L0 = "_checkboxLayout_bt7qx_1", D0 = "_checkboxLabel_bt7qx_4", M0 = "_chec
|
|
|
790
790
|
className: ot.checkboxCheckMark,
|
|
791
791
|
viewBox: "0 0 24 24",
|
|
792
792
|
"data-testid": "check-mark-svg",
|
|
793
|
-
children: /* @__PURE__ */
|
|
793
|
+
children: /* @__PURE__ */ T.jsx(
|
|
794
794
|
"path",
|
|
795
795
|
{
|
|
796
796
|
className: ot.checkboxCheckMarkPath,
|
|
@@ -806,8 +806,8 @@ const L0 = "_checkboxLayout_bt7qx_1", D0 = "_checkboxLabel_bt7qx_4", M0 = "_chec
|
|
|
806
806
|
]
|
|
807
807
|
}
|
|
808
808
|
),
|
|
809
|
-
e && /* @__PURE__ */
|
|
810
|
-
/* @__PURE__ */
|
|
809
|
+
e && /* @__PURE__ */ T.jsx("span", { "data-testid": "checkbox-label", children: e }),
|
|
810
|
+
/* @__PURE__ */ T.jsx("div", { className: ot.visuallyHidden, "aria-live": "polite", "aria-atomic": "true", children: l ? "Checked" : "Unchecked" })
|
|
811
811
|
] }) }) });
|
|
812
812
|
}
|
|
813
813
|
);
|
|
@@ -819,7 +819,7 @@ 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",
|
|
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", E = "console", y = "mobile", O = "tablet", w = "smarttv", S = "wearable", G = "embedded", B = 500, C = "Amazon", L = "Apple", ne = "ASUS", ie = "BlackBerry", N = "Browser", Z = "Chrome", ae = "Edge", de = "Firefox", K = "Google", ce = "Huawei", ue = "LG", x = "Microsoft", R = "Motorola", W = "Opera", U = "Samsung", P = "Sharp", A = "Sony", F = "Xiaomi", H = "Zebra", Y = "Facebook", te = "Chromium OS", ee = "Mac OS", Ne = function(re, fe) {
|
|
823
823
|
var z = {};
|
|
824
824
|
for (var we in re)
|
|
825
825
|
fe[we] && fe[we].length % 2 === 0 ? z[we] = fe[we].concat(re[we]) : z[we] = re[we];
|
|
@@ -828,7 +828,7 @@ var M = {}, pr = { exports: {} };
|
|
|
828
828
|
for (var fe = {}, z = 0; z < re.length; z++)
|
|
829
829
|
fe[re[z].toUpperCase()] = re[z];
|
|
830
830
|
return fe;
|
|
831
|
-
},
|
|
831
|
+
}, q = function(re, fe) {
|
|
832
832
|
return typeof re === v ? ye(fe).indexOf(ye(re)) !== -1 : !1;
|
|
833
833
|
}, ye = function(re) {
|
|
834
834
|
return re.toLowerCase();
|
|
@@ -836,7 +836,7 @@ var M = {}, pr = { exports: {} };
|
|
|
836
836
|
return typeof re === v ? re.replace(/[^\d\.]/g, a).split(".")[0] : r;
|
|
837
837
|
}, Le = function(re, fe) {
|
|
838
838
|
if (typeof re === v)
|
|
839
|
-
return re = re.replace(/^\s\s*/, a), typeof fe === u ? re : re.substring(0,
|
|
839
|
+
return re = re.replace(/^\s\s*/, a), typeof fe === u ? re : re.substring(0, B);
|
|
840
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];
|
|
@@ -850,12 +850,12 @@ var M = {}, pr = { exports: {} };
|
|
|
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 (
|
|
853
|
+
if (q(fe[z][we], re))
|
|
854
854
|
return z === d ? r : z;
|
|
855
|
-
} else if (
|
|
855
|
+
} else if (q(fe[z], re))
|
|
856
856
|
return z === d ? r : z;
|
|
857
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) {
|
|
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" + N]], [/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 " + N]], [/(avast|avg)\/([\w\.]+)/i], [[p, /(.+)/, "$1 Secure " + N], 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 " + N]], [/fxios\/([-\w\.]+)/i], [f, [p, de]], [/\bqihu|(qi?ho?o?|360)browser/i], [[p, "360 " + N]], [/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i], [[p, /(.+)/, "$1 " + N], 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 " + N]], [/(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, [$, 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, y]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [l, [$, L], [c, y]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [l, [$, L], [c, O]], [/(macintosh);/i], [l, [$, L]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [l, [$, P], [c, y]], [/\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, y]], [/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i, /\b; (\w+) build\/hm\1/i, /\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i, /\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i, /oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i, /\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i], [[l, /_/g, " "], [$, F], [c, y]], [/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, y]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [l, [$, "Vivo"], [c, y]], [/\b(rmx[1-3]\d{3})(?: bui|;|\))/i], [l, [$, "Realme"], [c, y]], [/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i, /\bmot(?:orola)?[- ](\w*)/i, /((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i], [l, [$, R], [c, y]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [l, [$, R], [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, y]], [/(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, y]], [/(pixel c)\b/i], [l, [$, K], [c, O]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [l, [$, K], [c, y]], [/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i], [l, [$, A], [c, y]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[l, "Xperia Tablet"], [$, A], [c, O]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [l, [$, "OnePlus"], [c, y]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [l, [$, C], [c, O]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[l, /(.+)/g, "Fire Phone $1"], [$, C], [c, y]], [/(playbook);[-\w\),; ]+(rim)/i], [l, $, [c, O]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [l, [$, ie], [c, y]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [l, [$, ne], [c, O]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [l, [$, ne], [c, y]], [/(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, y]], [/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, y]], [/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i], [l, [$, "Ulefone"], [c, y]], [/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i, /(hp) ([\w ]+\w)/i, /(asus)-?(\w+)/i, /(microsoft); (lumia[\w ]+)/i, /(lenovo)[-_ ]?([-\w]+)/i, /(jolla)/i, /(oppo) ?([\w ]+) bui/i], [$, l, [c, y]], [/(kobo)\s(ereader|touch)/i, /(archos) (gamepad2?)/i, /(hp).+(touchpad(?!.+tablet)|tablet)/i, /(kindle)\/([\w\.]+)/i, /(nook)[\w ]+build\/(\w+)/i, /(dell) (strea[kpr\d ]*[\dko])/i, /(le[- ]+pan)[- ]+(\w{1,9}) bui/i, /(trinity)[- ]*(t\d{3}) bui/i, /(gigaset)[- ]+(q\w{1,9}) bui/i, /(vodafone) ([\w ]+)(?:\)| bui)/i], [$, l, [c, O]], [/(surface duo)/i], [l, [$, x], [c, O]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [l, [$, "Fairphone"], [c, y]], [/(u304aa)/i], [l, [$, "AT&T"], [c, y]], [/\bsie-(\w*)/i], [l, [$, "Siemens"], [c, y]], [/\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, y]], [/\b(gen\d{3}) b.+49h/i], [l, [$, "Swiss"], [c, y]], [/\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, y]], [/\b(lvtel\-)?(v1[12]) b/i], [[$, "LvTel"], l, [c, y]], [/\b(ph-1) /i], [l, [$, "Essential"], [c, y]], [/\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, y]], [/(kin\.[onetw]{3})/i], [[l, /\./g, " "], [$, x], [c, y]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [l, [$, H], [c, O]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [l, [$, H], [c, y]], [/smart-tv.+(samsung)/i], [$, [c, w]], [/hbbtv.+maple;(\d+)/i], [[l, /^/, "SmartTV"], [$, U], [c, w]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[$, ue], [c, w]], [/(apple) ?tv/i], [$, [l, L + " TV"], [c, w]], [/crkey/i], [[l, Z + "cast"], [$, K], [c, w]], [/droid.+aft(\w+)( bui|\))/i], [l, [$, C], [c, w]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [l, [$, P], [c, w]], [/(bravia[\w ]+)( bui|\))/i], [l, [$, A], [c, w]], [/(mitv-\w{5}) bui/i], [l, [$, F], [c, w]], [/Hbbtv.*(technisat) (.*);/i], [$, l, [c, w]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[$, Le], [l, Le], [c, w]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[c, w]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [$, l, [c, E]], [/droid.+; (shield) bui/i], [l, [$, "Nvidia"], [c, E]], [/(playstation [345portablevi]+)/i], [l, [$, A], [c, E]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [l, [$, x], [c, E]], [/((pebble))app/i], [$, l, [c, S]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [l, [$, L], [c, S]], [/droid.+; (glass) \d/i], [l, [$, K], [c, S]], [/droid.+; (wt63?0{2,3})\)/i], [l, [$, H], [c, S]], [/(quest( 2| pro)?)/i], [l, [$, Y], [c, S]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [$, [c, G]], [/(aeobc)\b/i], [l, [$, C], [c, G]], [/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i], [l, [c, y]], [/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, y]], [/(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
859
|
if (typeof re === s && (fe = re, re = r), !(this instanceof Me))
|
|
860
860
|
return new Me(re, fe).getResult();
|
|
861
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;
|
|
@@ -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] =
|
|
870
|
+
return X[$] = r, X[l] = r, X[c] = r, Ve.call(X, we, Ke.device), le && !X[c] && et && et.mobile && (X[c] = y), le && X[l] == "Macintosh" && z && typeof z.standalone !== u && z.maxTouchPoints && z.maxTouchPoints > 2 && (X[l] = "iPad", X[c] = O), 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,10 +879,10 @@ 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 > B ? Le(X, B) : 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,
|
|
885
|
+
Me.VERSION = i, Me.BROWSER = g([p, f, m]), Me.CPU = g([b]), Me.DEVICE = g([l, $, c, E, y, w, O, S, G]), 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();
|
|
@@ -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 = k, 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,27 +1612,27 @@ M.useDeviceData = zd;
|
|
|
1612
1612
|
M.useDeviceSelectors = vl;
|
|
1613
1613
|
M.useMobileOrientation = $l;
|
|
1614
1614
|
M.withOrientationChange = pl;
|
|
1615
|
-
const Cf =
|
|
1615
|
+
const Cf = k.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
1619
|
e = ct.convert3HexTo6(e), pe(() => {
|
|
1620
1620
|
v(hl);
|
|
1621
1621
|
}, []);
|
|
1622
|
-
const p = (
|
|
1623
|
-
!s &&
|
|
1624
|
-
}, c = (
|
|
1625
|
-
i?.(
|
|
1622
|
+
const p = (y) => {
|
|
1623
|
+
!s && y.key === "Enter" && !y.shiftKey && t && (y.preventDefault(), t());
|
|
1624
|
+
}, c = (y) => {
|
|
1625
|
+
i?.(y), y.target.style.height = "40px", y.target.style.height = 2 + y.target.scrollHeight + "px";
|
|
1626
1626
|
};
|
|
1627
1627
|
let $ = {};
|
|
1628
1628
|
const f = [hi.textInput, r].filter(Boolean).join(" "), b = () => {
|
|
1629
1629
|
l(!0);
|
|
1630
|
-
},
|
|
1630
|
+
}, E = () => {
|
|
1631
1631
|
l(!1);
|
|
1632
1632
|
};
|
|
1633
1633
|
return $ = {
|
|
1634
1634
|
borderBottomColor: m ? e !== "#ffffff" ? e : "#c8c8c8" : ""
|
|
1635
|
-
}, /* @__PURE__ */
|
|
1635
|
+
}, /* @__PURE__ */ T.jsx("div", { className: hi.textInputWrapper, children: /* @__PURE__ */ T.jsx(
|
|
1636
1636
|
"textarea",
|
|
1637
1637
|
{
|
|
1638
1638
|
"data-testid": "textbox-input",
|
|
@@ -1640,8 +1640,8 @@ const Cf = j.memo(
|
|
|
1640
1640
|
className: f,
|
|
1641
1641
|
style: { ...$, ...n },
|
|
1642
1642
|
onFocus: b,
|
|
1643
|
-
onBlur:
|
|
1644
|
-
onInput: (
|
|
1643
|
+
onBlur: E,
|
|
1644
|
+
onInput: (y) => c(y),
|
|
1645
1645
|
onKeyDown: p,
|
|
1646
1646
|
...o
|
|
1647
1647
|
}
|
|
@@ -1684,7 +1684,7 @@ const Cf = j.memo(
|
|
|
1684
1684
|
outlineColor: s
|
|
1685
1685
|
})) : a = "#9b9b9b";
|
|
1686
1686
|
}
|
|
1687
|
-
return /* @__PURE__ */
|
|
1687
|
+
return /* @__PURE__ */ T.jsx(
|
|
1688
1688
|
"div",
|
|
1689
1689
|
{
|
|
1690
1690
|
style: r,
|
|
@@ -1694,7 +1694,7 @@ const Cf = j.memo(
|
|
|
1694
1694
|
"aria-hidden": "true",
|
|
1695
1695
|
tabIndex: -1,
|
|
1696
1696
|
"data-testid": "checkbox-input",
|
|
1697
|
-
children: /* @__PURE__ */
|
|
1697
|
+
children: /* @__PURE__ */ T.jsx("svg", { version: "1.1", focusable: "false", className: Jt.checkboxCheckMark, viewBox: "0 0 24 24", children: /* @__PURE__ */ T.jsx(
|
|
1698
1698
|
"path",
|
|
1699
1699
|
{
|
|
1700
1700
|
className: Jt.checkboxCheckMarkPath,
|
|
@@ -1716,58 +1716,58 @@ 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),
|
|
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), E = D(null), y = D(null), O = D(null), w = D(null), [S, G] = be(-1), B = D(0), C = D(0), [L, ne] = be(!1);
|
|
1720
1720
|
let ie = {};
|
|
1721
|
-
const [
|
|
1721
|
+
const [N, Z] = be({ left: 0, top: 0 }), [ae, de] = be(null), K = 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
|
-
const g = (
|
|
1728
|
-
b.current && !b.current.contains(
|
|
1727
|
+
const g = (q) => {
|
|
1728
|
+
b.current && !b.current.contains(q.target) && (p(!1), m(""), ue());
|
|
1729
1729
|
};
|
|
1730
1730
|
return document.addEventListener("mousedown", g), () => {
|
|
1731
1731
|
document.removeEventListener("mousedown", g);
|
|
1732
1732
|
};
|
|
1733
1733
|
}, []);
|
|
1734
|
-
const
|
|
1735
|
-
|
|
1734
|
+
const x = () => {
|
|
1735
|
+
B.current = window.innerHeight, C.current = document.body.scrollHeight, ne(!0);
|
|
1736
1736
|
};
|
|
1737
|
-
pe(() => (
|
|
1738
|
-
window.addEventListener("resize",
|
|
1737
|
+
pe(() => (x(), window.addEventListener("resize", x), () => {
|
|
1738
|
+
window.addEventListener("resize", x);
|
|
1739
1739
|
}), []);
|
|
1740
|
-
const
|
|
1741
|
-
const
|
|
1742
|
-
|
|
1743
|
-
|
|
1740
|
+
const R = (g) => {
|
|
1741
|
+
const q = document.getElementById("announcement");
|
|
1742
|
+
q && (q.textContent = g, q.setAttribute("aria-live", "assertive"), setTimeout(() => {
|
|
1743
|
+
q.textContent = "", q.setAttribute("aria-live", "off");
|
|
1744
1744
|
}, 1e3));
|
|
1745
1745
|
};
|
|
1746
1746
|
pe(() => {
|
|
1747
|
-
const g = e.filter((
|
|
1747
|
+
const g = e.filter((q) => q.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
|
-
const
|
|
1752
|
-
return
|
|
1753
|
-
}).filter((g) => g !== "").join(", ") : "Select your option",
|
|
1754
|
-
const
|
|
1755
|
-
if (
|
|
1751
|
+
const q = e.find((ye) => ye.value === g);
|
|
1752
|
+
return q?.label !== null ? q?.label : "";
|
|
1753
|
+
}).filter((g) => g !== "").join(", ") : "Select your option", U = (g) => {
|
|
1754
|
+
const q = e.find((ye) => ye.value === g);
|
|
1755
|
+
if (q && !q.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), R(`${q?.label} ${xe.includes(g) ? "selected" : "not selected"}`));
|
|
1758
1758
|
}
|
|
1759
|
-
},
|
|
1760
|
-
|
|
1761
|
-
|
|
1759
|
+
}, P = (g) => {
|
|
1760
|
+
F(), p(g), setTimeout(() => {
|
|
1761
|
+
E.current ? E.current?.focus() : y.current?.focus(), R("use up and down arrow keys to navigate");
|
|
1762
1762
|
}, 0);
|
|
1763
|
-
},
|
|
1763
|
+
}, A = () => C.current - (B.current + window.scrollY), F = () => {
|
|
1764
1764
|
if (f.current) {
|
|
1765
1765
|
const g = f.current.getBoundingClientRect();
|
|
1766
1766
|
setTimeout(() => {
|
|
1767
|
-
const
|
|
1767
|
+
const q = b?.current?.getBoundingClientRect(), ye = A(), xe = B.current - g.bottom;
|
|
1768
1768
|
let Le;
|
|
1769
|
-
if (
|
|
1770
|
-
const Ve = g.height, dt = g.top, De =
|
|
1769
|
+
if (q) {
|
|
1770
|
+
const Ve = g.height, dt = g.top, De = q.height, It = De > dt + window.scrollY;
|
|
1771
1771
|
dt < De && (It || It && xe < De || ye > De || xe > De) || dt > De && xe > De ? Le = g.y + Ve : Le = g.y - De, Z({
|
|
1772
1772
|
left: g.left,
|
|
1773
1773
|
top: Le ?? g.top
|
|
@@ -1776,39 +1776,39 @@ const Of = ({
|
|
|
1776
1776
|
}, 0);
|
|
1777
1777
|
}
|
|
1778
1778
|
};
|
|
1779
|
-
pe(() => (window.addEventListener("scroll",
|
|
1780
|
-
window.removeEventListener("scroll",
|
|
1779
|
+
pe(() => (window.addEventListener("scroll", F), window.addEventListener("resize", F), () => {
|
|
1780
|
+
window.removeEventListener("scroll", F), window.removeEventListener("resize", F);
|
|
1781
1781
|
}), [l]);
|
|
1782
|
-
const
|
|
1783
|
-
g.preventDefault(), g.key === "Shift" ?
|
|
1784
|
-
|
|
1785
|
-
}, 0),
|
|
1782
|
+
const H = (g) => {
|
|
1783
|
+
g.preventDefault(), g.key === "Shift" ? K.current = !0 : g.shiftKey && K.current && g.key === "Tab" || g.key === "Tab" ? (setTimeout(() => {
|
|
1784
|
+
E.current ? E.current?.focus() : y.current?.focus();
|
|
1785
|
+
}, 0), K.current = !1) : g.key === "Escape" || g.key === "Enter" || g.key === "Space" || g.key === " " ? (P(!1), ue()) : K.current = !1;
|
|
1786
1786
|
}, Y = (g) => {
|
|
1787
|
-
const { key:
|
|
1788
|
-
if (
|
|
1787
|
+
const { key: q } = g;
|
|
1788
|
+
if (q === "Tab" || g.shiftKey && q === "Tab")
|
|
1789
1789
|
setTimeout(() => {
|
|
1790
|
-
|
|
1790
|
+
O.current?.focus();
|
|
1791
1791
|
}, 0);
|
|
1792
|
-
else if (
|
|
1792
|
+
else if (q === "ArrowDown" || q === "ArrowUp") {
|
|
1793
1793
|
g.preventDefault(), setTimeout(() => {
|
|
1794
|
-
|
|
1794
|
+
y.current?.focus();
|
|
1795
1795
|
}, 0);
|
|
1796
|
-
let ye =
|
|
1797
|
-
if (
|
|
1798
|
-
const xe =
|
|
1799
|
-
|
|
1796
|
+
let ye = S;
|
|
1797
|
+
if (q === "ArrowDown" ? ye = Math.min(S + 1, o.current.length - 1) : q === "ArrowUp" && (ye = Math.max(S - 1, 0)), S === 0 && g.key === "ArrowUp" ? ye = o.current.length - 1 : S === o.current.length - 1 && g.key === "ArrowDown" && (ye = 0), G(ye), w.current && ye >= 0) {
|
|
1798
|
+
const xe = w.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
|
+
R(Ve), xe && xe.scrollIntoView({
|
|
1800
1800
|
block: "nearest",
|
|
1801
1801
|
inline: "nearest"
|
|
1802
1802
|
});
|
|
1803
1803
|
}
|
|
1804
1804
|
} else
|
|
1805
|
-
|
|
1805
|
+
q === "Enter" || q === "Space" || q === " " ? S !== -1 && U(o.current[S].value) : q === "Escape" && (P(!1), ue());
|
|
1806
1806
|
};
|
|
1807
1807
|
pe(() => {
|
|
1808
1808
|
ae && clearTimeout(ae);
|
|
1809
1809
|
const g = setTimeout(() => {
|
|
1810
|
-
const
|
|
1811
|
-
l &&
|
|
1810
|
+
const q = o.current.length ? `${o.current.length} results are available, use up and down arrow keys to navigate` : "No results available";
|
|
1811
|
+
l && R(q);
|
|
1812
1812
|
}, 500);
|
|
1813
1813
|
de(g);
|
|
1814
1814
|
}, [v]);
|
|
@@ -1831,18 +1831,18 @@ const Of = ({
|
|
|
1831
1831
|
const Ne = () => {
|
|
1832
1832
|
p(!1);
|
|
1833
1833
|
};
|
|
1834
|
-
return /* @__PURE__ */
|
|
1835
|
-
/* @__PURE__ */
|
|
1836
|
-
/* @__PURE__ */
|
|
1834
|
+
return /* @__PURE__ */ T.jsx("div", { className: Ae.multiSelectContainer, children: /* @__PURE__ */ T.jsxs("div", { className: Ae.listOptionsWrap, children: [
|
|
1835
|
+
/* @__PURE__ */ T.jsxs("div", { className: `${a} ${Ae.selectedValuesWrap}`, ref: f, children: [
|
|
1836
|
+
/* @__PURE__ */ T.jsx(
|
|
1837
1837
|
"div",
|
|
1838
1838
|
{
|
|
1839
1839
|
className: `${Ae.selectedValues} ${l ? Ae.focused : ""} ${u.length === 0 ? Ae.placeholder : ""}`,
|
|
1840
1840
|
ref: ce,
|
|
1841
1841
|
onFocus: te,
|
|
1842
1842
|
onBlur: ee,
|
|
1843
|
-
onClick: () =>
|
|
1843
|
+
onClick: () => P(!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(), P(!l));
|
|
1846
1846
|
},
|
|
1847
1847
|
tabIndex: 0,
|
|
1848
1848
|
"data-testid": "selected-input",
|
|
@@ -1855,13 +1855,13 @@ const Of = ({
|
|
|
1855
1855
|
children: W
|
|
1856
1856
|
}
|
|
1857
1857
|
),
|
|
1858
|
-
/* @__PURE__ */
|
|
1858
|
+
/* @__PURE__ */ T.jsx(
|
|
1859
1859
|
"span",
|
|
1860
1860
|
{
|
|
1861
1861
|
className: Ae.dropDownIcon,
|
|
1862
|
-
onClick: () =>
|
|
1862
|
+
onClick: () => P(!l),
|
|
1863
1863
|
"data-testid": "arrow-button",
|
|
1864
|
-
children: /* @__PURE__ */
|
|
1864
|
+
children: /* @__PURE__ */ T.jsx("svg", { width: "12px", height: "7px", viewBox: "0 0 12 7", version: "1.1", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ T.jsx("g", { stroke: "none", strokeWidth: "1", fill: "none", fillRule: "evenodd", children: /* @__PURE__ */ T.jsx("g", { transform: "translate(-2360.000000, -295.000000)", fill: "#666666", children: /* @__PURE__ */ T.jsx("g", { transform: "translate(2006.000000, 248.000000)", children: /* @__PURE__ */ T.jsx(
|
|
1865
1865
|
"path",
|
|
1866
1866
|
{
|
|
1867
1867
|
d: "M358.027356,44.3431458 L358.027146,50.6581458 L364.343146,50.6589352 L364.343146,52.3431458 L358.027146,52.3421458 L358.027356,52.3431458 L356.343146,52.3431458 L356.343146,44.3431458 L358.027356,44.3431458 Z",
|
|
@@ -1871,9 +1871,9 @@ const Of = ({
|
|
|
1871
1871
|
}
|
|
1872
1872
|
)
|
|
1873
1873
|
] }),
|
|
1874
|
-
/* @__PURE__ */
|
|
1875
|
-
|
|
1876
|
-
/* @__PURE__ */
|
|
1874
|
+
/* @__PURE__ */ T.jsx("div", { id: "announcement", "aria-live": "assertive", role: "alert", className: Ae.announcement }),
|
|
1875
|
+
L ? Mr(
|
|
1876
|
+
/* @__PURE__ */ T.jsx(T.Fragment, { children: l && f && /* @__PURE__ */ T.jsx(
|
|
1877
1877
|
"div",
|
|
1878
1878
|
{
|
|
1879
1879
|
onClick: Ne,
|
|
@@ -1883,25 +1883,25 @@ const Of = ({
|
|
|
1883
1883
|
backgroundColor: "rgba(255,255,255,0)",
|
|
1884
1884
|
zIndex: 1e3
|
|
1885
1885
|
},
|
|
1886
|
-
children: /* @__PURE__ */
|
|
1886
|
+
children: /* @__PURE__ */ T.jsxs(
|
|
1887
1887
|
"div",
|
|
1888
1888
|
{
|
|
1889
1889
|
className: `${Ae.optionsListContainer}`,
|
|
1890
1890
|
ref: b,
|
|
1891
1891
|
onClick: (g) => g.stopPropagation(),
|
|
1892
1892
|
style: {
|
|
1893
|
-
opacity:
|
|
1893
|
+
opacity: N.left ? 1 : 0,
|
|
1894
1894
|
width: f.current ? f.current.clientWidth : "auto",
|
|
1895
|
-
left:
|
|
1896
|
-
top:
|
|
1895
|
+
left: N.left,
|
|
1896
|
+
top: N.top
|
|
1897
1897
|
},
|
|
1898
1898
|
children: [
|
|
1899
|
-
/* @__PURE__ */
|
|
1900
|
-
e.length >= 6 && /* @__PURE__ */
|
|
1899
|
+
/* @__PURE__ */ T.jsxs("div", { className: Ae.optionsListWrap, children: [
|
|
1900
|
+
e.length >= 6 && /* @__PURE__ */ T.jsx("div", { className: Ae.searchInputWrap, children: /* @__PURE__ */ T.jsx(
|
|
1901
1901
|
"input",
|
|
1902
1902
|
{
|
|
1903
1903
|
type: "text",
|
|
1904
|
-
ref:
|
|
1904
|
+
ref: E,
|
|
1905
1905
|
placeholder: "Type to filter",
|
|
1906
1906
|
className: Ae.searchInput,
|
|
1907
1907
|
value: v,
|
|
@@ -1912,17 +1912,17 @@ const Of = ({
|
|
|
1912
1912
|
}
|
|
1913
1913
|
}
|
|
1914
1914
|
) }),
|
|
1915
|
-
/* @__PURE__ */
|
|
1915
|
+
/* @__PURE__ */ T.jsx("ul", { ref: w, role: "listbox", children: o.current.map((g, q) => (
|
|
1916
1916
|
// eslint-disable-next-line jsx-a11y/role-supports-aria-props
|
|
1917
|
-
/* @__PURE__ */
|
|
1917
|
+
/* @__PURE__ */ T.jsxs(
|
|
1918
1918
|
"li",
|
|
1919
1919
|
{
|
|
1920
|
-
className: `${Ae.optionsList} ${
|
|
1921
|
-
onClick: () =>
|
|
1922
|
-
"aria-selected":
|
|
1920
|
+
className: `${Ae.optionsList} ${q === S ? Ae.focused : ""}`,
|
|
1921
|
+
onClick: () => U(g.value),
|
|
1922
|
+
"aria-selected": q === S,
|
|
1923
1923
|
role: "option",
|
|
1924
1924
|
children: [
|
|
1925
|
-
/* @__PURE__ */
|
|
1925
|
+
/* @__PURE__ */ T.jsx(
|
|
1926
1926
|
Zd,
|
|
1927
1927
|
{
|
|
1928
1928
|
themeColor: i,
|
|
@@ -1930,25 +1930,25 @@ const Of = ({
|
|
|
1930
1930
|
disabled: g.disable || r !== void 0 && u.length >= r && !u.includes(g.value)
|
|
1931
1931
|
}
|
|
1932
1932
|
),
|
|
1933
|
-
/* @__PURE__ */
|
|
1933
|
+
/* @__PURE__ */ T.jsx("span", { children: g.label })
|
|
1934
1934
|
]
|
|
1935
1935
|
},
|
|
1936
1936
|
g.value
|
|
1937
1937
|
)
|
|
1938
1938
|
)) })
|
|
1939
1939
|
] }),
|
|
1940
|
-
/* @__PURE__ */
|
|
1941
|
-
/* @__PURE__ */
|
|
1940
|
+
/* @__PURE__ */ T.jsxs("div", { className: Ae.btnContainer, children: [
|
|
1941
|
+
/* @__PURE__ */ T.jsx(
|
|
1942
1942
|
"input",
|
|
1943
1943
|
{
|
|
1944
|
-
ref:
|
|
1944
|
+
ref: y,
|
|
1945
1945
|
onKeyDown: (g) => {
|
|
1946
1946
|
Y(g);
|
|
1947
1947
|
},
|
|
1948
1948
|
className: Ae.hiddenButton
|
|
1949
1949
|
}
|
|
1950
1950
|
),
|
|
1951
|
-
/* @__PURE__ */
|
|
1951
|
+
/* @__PURE__ */ T.jsx(
|
|
1952
1952
|
Za,
|
|
1953
1953
|
{
|
|
1954
1954
|
themeColor: i,
|
|
@@ -1959,9 +1959,9 @@ const Of = ({
|
|
|
1959
1959
|
},
|
|
1960
1960
|
"data-testid": "done-button",
|
|
1961
1961
|
onKeyDown: (g) => {
|
|
1962
|
-
|
|
1962
|
+
H(g);
|
|
1963
1963
|
},
|
|
1964
|
-
ref:
|
|
1964
|
+
ref: O,
|
|
1965
1965
|
children: "Done"
|
|
1966
1966
|
}
|
|
1967
1967
|
)
|
|
@@ -1992,12 +1992,12 @@ 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((O) => O.value === c);
|
|
1996
1996
|
if (!$ || $.disable)
|
|
1997
1997
|
return;
|
|
1998
1998
|
v.current[c]?.click();
|
|
1999
|
-
const
|
|
2000
|
-
(r === void 0 ||
|
|
1999
|
+
const E = u.includes(c) ? u.filter((O) => O !== c) : [...u, c];
|
|
2000
|
+
(r === void 0 || E.length <= r) && (s(E), n(E));
|
|
2001
2001
|
};
|
|
2002
2002
|
if (i) {
|
|
2003
2003
|
l = Et(i), i = ct.convert3HexTo6(i);
|
|
@@ -2008,7 +2008,7 @@ const Of = ({
|
|
|
2008
2008
|
color: i === "#ffffff" || l === "light" ? "#333333" : i
|
|
2009
2009
|
});
|
|
2010
2010
|
}
|
|
2011
|
-
return /* @__PURE__ */
|
|
2011
|
+
return /* @__PURE__ */ T.jsx("div", { className: $n.multiSelectContainer, role: "group", children: /* @__PURE__ */ T.jsx("ul", { className: $n.quickOptionsWrap, id: o, children: e.map((c) => /* @__PURE__ */ T.jsx(
|
|
2012
2012
|
"li",
|
|
2013
2013
|
{
|
|
2014
2014
|
style: { ...m, ...d },
|
|
@@ -2019,7 +2019,7 @@ const Of = ({
|
|
|
2019
2019
|
($.key === " " || $.code === "Space") && ($.preventDefault(), p(c.value));
|
|
2020
2020
|
},
|
|
2021
2021
|
"data-testid": "option-box",
|
|
2022
|
-
children: /* @__PURE__ */
|
|
2022
|
+
children: /* @__PURE__ */ T.jsx(
|
|
2023
2023
|
Xa,
|
|
2024
2024
|
{
|
|
2025
2025
|
id: c.value,
|
|
@@ -2031,7 +2031,7 @@ const Of = ({
|
|
|
2031
2031
|
},
|
|
2032
2032
|
checked: u.includes(c.value),
|
|
2033
2033
|
disabled: c.disable || r !== void 0 && u.length >= r && !u.includes(c.value),
|
|
2034
|
-
children: /* @__PURE__ */
|
|
2034
|
+
children: /* @__PURE__ */ T.jsx(
|
|
2035
2035
|
"span",
|
|
2036
2036
|
{
|
|
2037
2037
|
style: {
|
|
@@ -2091,7 +2091,7 @@ const Of = ({
|
|
|
2091
2091
|
borderTopColor: $
|
|
2092
2092
|
});
|
|
2093
2093
|
}
|
|
2094
|
-
return /* @__PURE__ */
|
|
2094
|
+
return /* @__PURE__ */ T.jsx("div", { className: ut.singleSelectWrapper, children: /* @__PURE__ */ T.jsx("div", { className: ut.quickOption, children: /* @__PURE__ */ T.jsx("ul", { className: ut.quickOption, role: "radiogroup", id: o, children: e.map((c) => /* @__PURE__ */ T.jsxs(
|
|
2095
2095
|
"li",
|
|
2096
2096
|
{
|
|
2097
2097
|
tabIndex: c.disable ? -1 : 0,
|
|
@@ -2106,9 +2106,9 @@ const Of = ({
|
|
|
2106
2106
|
"aria-checked": u?.value === c.value,
|
|
2107
2107
|
children: [
|
|
2108
2108
|
c.label,
|
|
2109
|
-
u?.value === c.value && !c.disable && /* @__PURE__ */
|
|
2110
|
-
d && /* @__PURE__ */
|
|
2111
|
-
!d && /* @__PURE__ */
|
|
2109
|
+
u?.value === c.value && !c.disable && /* @__PURE__ */ T.jsxs("div", { className: ut.triangle, style: { ...m }, children: [
|
|
2110
|
+
d && /* @__PURE__ */ T.jsx("div", { className: ut.loader, style: { borderRightColor: r ?? "#006bb1" } }),
|
|
2111
|
+
!d && /* @__PURE__ */ T.jsx("div", { className: ut.checkmarkWrap, children: /* @__PURE__ */ T.jsx(
|
|
2112
2112
|
"svg",
|
|
2113
2113
|
{
|
|
2114
2114
|
className: ut.checkmark,
|
|
@@ -2117,7 +2117,7 @@ const Of = ({
|
|
|
2117
2117
|
height: "9",
|
|
2118
2118
|
viewBox: "0 0 11 9",
|
|
2119
2119
|
fill: "none",
|
|
2120
|
-
children: /* @__PURE__ */
|
|
2120
|
+
children: /* @__PURE__ */ T.jsx(
|
|
2121
2121
|
"path",
|
|
2122
2122
|
{
|
|
2123
2123
|
className: ut.checkmarkCheck,
|
|
@@ -2138,7 +2138,7 @@ const Of = ({
|
|
|
2138
2138
|
}, r1 = Pt(
|
|
2139
2139
|
({ children: e, className: t = "", style: n = {}, ...r }, i) => {
|
|
2140
2140
|
const a = [n1.scrollbarContainer, t].filter(Boolean).join(" ");
|
|
2141
|
-
return /* @__PURE__ */
|
|
2141
|
+
return /* @__PURE__ */ T.jsx(T.Fragment, { children: /* @__PURE__ */ T.jsx("div", { ref: i, style: { ...n }, className: a, ...r, children: e }) });
|
|
2142
2142
|
}
|
|
2143
2143
|
);
|
|
2144
2144
|
r1.displayName = "Scrollbar";
|
|
@@ -2234,7 +2234,7 @@ function mt() {
|
|
|
2234
2234
|
}
|
|
2235
2235
|
let V = function(e) {
|
|
2236
2236
|
let t = it(e);
|
|
2237
|
-
return
|
|
2237
|
+
return k.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 = k.useId) != null ? wi : function() {
|
|
2252
|
+
let e = Vr(), [t, n] = k.useState(e ? () => _t.nextId() : null);
|
|
2253
2253
|
return Ee(() => {
|
|
2254
2254
|
t === null && n(_t.nextId());
|
|
2255
2255
|
}, [t]), t != null ? "" + t : void 0;
|
|
@@ -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 k.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) {
|
|
@@ -2668,108 +2668,108 @@ 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 = (P, A) => P === A, 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), E = D({ static: !1, hold: !1 }), y = D(null), O = D(null), w = D(null), S = D(null), G = V(typeof o == "string" ? (P, A) => {
|
|
2672
|
+
let F = o;
|
|
2673
|
+
return P?.[F] === A?.[F];
|
|
2674
|
+
} : o), B = Ye((P) => Pe(C.mode, { 1: () => p.some((A) => G(A, P)), 0: () => G(p, P) }), [p]), C = Ie(() => ({ ...$, optionsPropsRef: E, labelRef: y, inputRef: O, buttonRef: w, optionsRef: S, 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 P = $.options.findIndex((A) => !A.dataRef.current.disabled);
|
|
2677
|
+
if (P !== -1)
|
|
2678
|
+
return P;
|
|
2679
2679
|
}
|
|
2680
2680
|
return $.activeOptionIndex;
|
|
2681
|
-
}, compare:
|
|
2681
|
+
}, compare: G, isSelected: B, nullable: v, __demoMode: s }), [p, r, u, m, v, s, $]), L = D(C.activeOptionIndex !== null ? C.options[C.activeOptionIndex] : null);
|
|
2682
2682
|
pe(() => {
|
|
2683
|
-
let
|
|
2684
|
-
|
|
2683
|
+
let P = C.activeOptionIndex !== null ? C.options[C.activeOptionIndex] : null;
|
|
2684
|
+
L.current !== P && (L.current = P);
|
|
2685
2685
|
}), Ee(() => {
|
|
2686
|
-
$.dataRef.current =
|
|
2687
|
-
}, [
|
|
2688
|
-
let ne = Ie(() => ({ open:
|
|
2689
|
-
let
|
|
2690
|
-
|
|
2691
|
-
}),
|
|
2692
|
-
if (
|
|
2693
|
-
let { dataRef:
|
|
2694
|
-
ue(
|
|
2686
|
+
$.dataRef.current = C;
|
|
2687
|
+
}, [C]), Qd([C.buttonRef, C.inputRef, C.optionsRef], () => x.closeCombobox(), C.comboboxState === 0);
|
|
2688
|
+
let ne = Ie(() => ({ open: C.comboboxState === 0, disabled: u, activeIndex: C.activeOptionIndex, activeOption: C.activeOptionIndex === null ? null : C.options[C.activeOptionIndex].dataRef.current.value, value: p }), [C, u, p]), ie = V((P) => {
|
|
2689
|
+
let A = C.options.find((F) => F.id === P);
|
|
2690
|
+
A && ue(A.dataRef.current.value);
|
|
2691
|
+
}), N = V(() => {
|
|
2692
|
+
if (C.activeOptionIndex !== null) {
|
|
2693
|
+
let { dataRef: P, id: A } = C.options[C.activeOptionIndex];
|
|
2694
|
+
ue(P.current.value), x.goToOption(ge.Specific, A);
|
|
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
|
-
}), de = V((
|
|
2701
|
-
var
|
|
2702
|
-
((
|
|
2703
|
-
})), ce = V((
|
|
2704
|
-
return c?.(
|
|
2700
|
+
}), de = V((P, A, F) => (b.current = !1, P === ge.Specific ? f({ type: 2, focus: ge.Specific, id: A, trigger: F }) : f({ type: 2, focus: P, trigger: F }))), K = V((P, A) => (f({ type: 3, id: P, dataRef: A }), () => {
|
|
2701
|
+
var F;
|
|
2702
|
+
((F = L.current) == null ? void 0 : F.id) === P && (b.current = !0), f({ type: 4, id: P });
|
|
2703
|
+
})), ce = V((P) => (f({ type: 5, id: P }), () => f({ type: 5, id: null }))), ue = V((P) => Pe(C.mode, { 0() {
|
|
2704
|
+
return c?.(P);
|
|
2705
2705
|
}, 1() {
|
|
2706
|
-
let
|
|
2707
|
-
return
|
|
2708
|
-
} })),
|
|
2706
|
+
let A = C.value.slice(), F = A.findIndex((H) => G(H, P));
|
|
2707
|
+
return F === -1 ? A.push(P) : A.splice(F, 1), c?.(A);
|
|
2708
|
+
} })), x = Ie(() => ({ onChange: ue, registerOption: K, registerLabel: ce, goToOption: de, closeCombobox: ae, openCombobox: Z, selectActiveOption: N, selectOption: ie }), []), R = t === null ? {} : { ref: t }, W = D(null), U = mt();
|
|
2709
2709
|
return pe(() => {
|
|
2710
|
-
W.current && r !== void 0 &&
|
|
2710
|
+
W.current && r !== void 0 && U.addEventListener(W.current, "reset", () => {
|
|
2711
2711
|
c?.(r);
|
|
2712
2712
|
});
|
|
2713
|
-
}, [W, c]),
|
|
2713
|
+
}, [W, c]), k.createElement(zr.Provider, { value: x }, k.createElement(Zr.Provider, { value: C }, k.createElement(Yr, { value: Pe(C.comboboxState, { 0: Re.Open, 1: Re.Closed }) }, d != null && p != null && Hr({ [d]: p }).map(([P, A], F) => k.createElement(oo, { features: Kr.Hidden, ref: F === 0 ? (H) => {
|
|
2714
2714
|
var Y;
|
|
2715
|
-
W.current = (Y =
|
|
2716
|
-
} : void 0, ...Pn({ key:
|
|
2715
|
+
W.current = (Y = H?.closest("form")) != null ? Y : null;
|
|
2716
|
+
} : void 0, ...Pn({ key: P, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: a, name: P, value: A }) })), He({ ourProps: R, theirProps: l, slot: ne, defaultTag: _1, name: "Combobox" }))));
|
|
2717
2717
|
}
|
|
2718
2718
|
let R1 = "input";
|
|
2719
2719
|
function F1(e, t) {
|
|
2720
2720
|
var n, r, i, a;
|
|
2721
|
-
let d = gt(), { id: o = `headlessui-combobox-input-${d}`, onChange: u, displayValue: s, type: v = "text", ...m } = e, l = qt("Combobox.Input"), p = un("Combobox.Input"), c = Qe(l.inputRef, t), $ = x1(l.inputRef), f = D(!1), b = mt(),
|
|
2721
|
+
let d = gt(), { id: o = `headlessui-combobox-input-${d}`, onChange: u, displayValue: s, type: v = "text", ...m } = e, l = qt("Combobox.Input"), p = un("Combobox.Input"), c = Qe(l.inputRef, t), $ = x1(l.inputRef), f = D(!1), b = mt(), E = V(() => {
|
|
2722
2722
|
p.onChange(null), l.optionsRef.current && (l.optionsRef.current.scrollTop = 0), p.goToOption(ge.Nothing);
|
|
2723
|
-
}),
|
|
2724
|
-
var
|
|
2725
|
-
return typeof s == "function" && l.value !== void 0 ? (
|
|
2723
|
+
}), y = function() {
|
|
2724
|
+
var N;
|
|
2725
|
+
return typeof s == "function" && l.value !== void 0 ? (N = s(l.value)) != null ? N : "" : typeof l.value == "string" ? l.value : "";
|
|
2726
2726
|
}();
|
|
2727
|
-
xi(([
|
|
2727
|
+
xi(([N, Z], [ae, de]) => {
|
|
2728
2728
|
if (f.current)
|
|
2729
2729
|
return;
|
|
2730
|
-
let
|
|
2731
|
-
|
|
2732
|
-
if (f.current || !
|
|
2730
|
+
let K = l.inputRef.current;
|
|
2731
|
+
K && ((de === 0 && Z === 1 || N !== ae) && (K.value = N), requestAnimationFrame(() => {
|
|
2732
|
+
if (f.current || !K || $?.activeElement !== K)
|
|
2733
2733
|
return;
|
|
2734
|
-
let { selectionStart: ce, selectionEnd: ue } =
|
|
2735
|
-
Math.abs((ue ?? 0) - (ce ?? 0)) === 0 && ce === 0 &&
|
|
2734
|
+
let { selectionStart: ce, selectionEnd: ue } = K;
|
|
2735
|
+
Math.abs((ue ?? 0) - (ce ?? 0)) === 0 && ce === 0 && K.setSelectionRange(K.value.length, K.value.length);
|
|
2736
2736
|
}));
|
|
2737
|
-
}, [
|
|
2738
|
-
if (
|
|
2737
|
+
}, [y, l.comboboxState, $]), xi(([N], [Z]) => {
|
|
2738
|
+
if (N === 0 && Z === 1) {
|
|
2739
2739
|
if (f.current)
|
|
2740
2740
|
return;
|
|
2741
2741
|
let ae = l.inputRef.current;
|
|
2742
2742
|
if (!ae)
|
|
2743
2743
|
return;
|
|
2744
|
-
let de = ae.value, { selectionStart:
|
|
2745
|
-
ae.value = "", ae.value = de, ue !== null ? ae.setSelectionRange(
|
|
2744
|
+
let de = ae.value, { selectionStart: K, selectionEnd: ce, selectionDirection: ue } = ae;
|
|
2745
|
+
ae.value = "", ae.value = de, ue !== null ? ae.setSelectionRange(K, ce, ue) : ae.setSelectionRange(K, ce);
|
|
2746
2746
|
}
|
|
2747
2747
|
}, [l.comboboxState]);
|
|
2748
|
-
let
|
|
2749
|
-
|
|
2750
|
-
}),
|
|
2748
|
+
let O = D(!1), w = V(() => {
|
|
2749
|
+
O.current = !0;
|
|
2750
|
+
}), S = V(() => {
|
|
2751
2751
|
b.nextFrame(() => {
|
|
2752
|
-
|
|
2752
|
+
O.current = !1;
|
|
2753
2753
|
});
|
|
2754
|
-
}),
|
|
2755
|
-
switch (f.current = !0,
|
|
2754
|
+
}), G = V((N) => {
|
|
2755
|
+
switch (f.current = !0, N.key) {
|
|
2756
2756
|
case me.Enter:
|
|
2757
|
-
if (f.current = !1, l.comboboxState !== 0 ||
|
|
2757
|
+
if (f.current = !1, l.comboboxState !== 0 || O.current)
|
|
2758
2758
|
return;
|
|
2759
|
-
if (
|
|
2759
|
+
if (N.preventDefault(), N.stopPropagation(), l.activeOptionIndex === null) {
|
|
2760
2760
|
p.closeCombobox();
|
|
2761
2761
|
return;
|
|
2762
2762
|
}
|
|
2763
2763
|
p.selectActiveOption(), l.mode === 0 && p.closeCombobox();
|
|
2764
2764
|
break;
|
|
2765
2765
|
case me.ArrowDown:
|
|
2766
|
-
return f.current = !1,
|
|
2766
|
+
return f.current = !1, N.preventDefault(), N.stopPropagation(), Pe(l.comboboxState, { 0: () => {
|
|
2767
2767
|
p.goToOption(ge.Next);
|
|
2768
2768
|
}, 1: () => {
|
|
2769
2769
|
p.openCombobox();
|
|
2770
2770
|
} });
|
|
2771
2771
|
case me.ArrowUp:
|
|
2772
|
-
return f.current = !1,
|
|
2772
|
+
return f.current = !1, N.preventDefault(), N.stopPropagation(), Pe(l.comboboxState, { 0: () => {
|
|
2773
2773
|
p.goToOption(ge.Previous);
|
|
2774
2774
|
}, 1: () => {
|
|
2775
2775
|
p.openCombobox(), b.nextFrame(() => {
|
|
@@ -2777,33 +2777,33 @@ function F1(e, t) {
|
|
|
2777
2777
|
});
|
|
2778
2778
|
} });
|
|
2779
2779
|
case me.Home:
|
|
2780
|
-
if (
|
|
2780
|
+
if (N.shiftKey)
|
|
2781
2781
|
break;
|
|
2782
|
-
return f.current = !1,
|
|
2782
|
+
return f.current = !1, N.preventDefault(), N.stopPropagation(), p.goToOption(ge.First);
|
|
2783
2783
|
case me.PageUp:
|
|
2784
|
-
return f.current = !1,
|
|
2784
|
+
return f.current = !1, N.preventDefault(), N.stopPropagation(), p.goToOption(ge.First);
|
|
2785
2785
|
case me.End:
|
|
2786
|
-
if (
|
|
2786
|
+
if (N.shiftKey)
|
|
2787
2787
|
break;
|
|
2788
|
-
return f.current = !1,
|
|
2788
|
+
return f.current = !1, N.preventDefault(), N.stopPropagation(), p.goToOption(ge.Last);
|
|
2789
2789
|
case me.PageDown:
|
|
2790
|
-
return f.current = !1,
|
|
2790
|
+
return f.current = !1, N.preventDefault(), N.stopPropagation(), p.goToOption(ge.Last);
|
|
2791
2791
|
case me.Escape:
|
|
2792
|
-
return f.current = !1, l.comboboxState !== 0 ? void 0 : (
|
|
2792
|
+
return f.current = !1, l.comboboxState !== 0 ? void 0 : (N.preventDefault(), l.optionsRef.current && !l.optionsPropsRef.current.static && N.stopPropagation(), l.nullable && l.mode === 0 && l.value === null && E(), p.closeCombobox());
|
|
2793
2793
|
case me.Tab:
|
|
2794
2794
|
if (f.current = !1, l.comboboxState !== 0)
|
|
2795
2795
|
return;
|
|
2796
2796
|
l.mode === 0 && p.selectActiveOption(), p.closeCombobox();
|
|
2797
2797
|
break;
|
|
2798
2798
|
}
|
|
2799
|
-
}),
|
|
2800
|
-
u?.(
|
|
2801
|
-
}),
|
|
2799
|
+
}), B = V((N) => {
|
|
2800
|
+
u?.(N), l.nullable && l.mode === 0 && N.target.value === "" && E(), p.openCombobox();
|
|
2801
|
+
}), C = V(() => {
|
|
2802
2802
|
f.current = !1;
|
|
2803
|
-
}),
|
|
2803
|
+
}), L = on(() => {
|
|
2804
2804
|
if (l.labelId)
|
|
2805
2805
|
return [l.labelId].join(" ");
|
|
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":
|
|
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": L, "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: w, onCompositionEnd: S, onKeyDown: G, onChange: B, onBlur: C };
|
|
2807
2807
|
return He({ ourProps: ie, theirProps: m, slot: ne, defaultTag: R1, name: "Combobox.Input" });
|
|
2808
2808
|
}
|
|
2809
2809
|
let k1 = "button";
|
|
@@ -2882,36 +2882,36 @@ function V1(e, t) {
|
|
|
2882
2882
|
Ee(() => {
|
|
2883
2883
|
if (!s.__demoMode)
|
|
2884
2884
|
return;
|
|
2885
|
-
let
|
|
2886
|
-
return
|
|
2885
|
+
let C = st();
|
|
2886
|
+
return C.requestAnimationFrame(() => {
|
|
2887
2887
|
b.current = !0;
|
|
2888
|
-
}),
|
|
2888
|
+
}), C.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
|
|
2895
|
-
(ne = (
|
|
2896
|
-
}),
|
|
2892
|
+
let C = st();
|
|
2893
|
+
return C.requestAnimationFrame(() => {
|
|
2894
|
+
var L, ne;
|
|
2895
|
+
(ne = (L = p.current) == null ? void 0 : L.scrollIntoView) == null || ne.call(L, { block: "nearest" });
|
|
2896
|
+
}), C.dispose;
|
|
2897
2897
|
}, [p, m, s.comboboxState, s.activationTrigger, s.activeOptionIndex]);
|
|
2898
|
-
let
|
|
2898
|
+
let E = V((C) => {
|
|
2899
2899
|
if (d)
|
|
2900
|
-
return
|
|
2900
|
+
return C.preventDefault();
|
|
2901
2901
|
f(), s.mode === 0 && v.closeCombobox(), O1() || requestAnimationFrame(() => {
|
|
2902
|
-
var
|
|
2903
|
-
return (
|
|
2902
|
+
var L;
|
|
2903
|
+
return (L = s.inputRef.current) == null ? void 0 : L.focus();
|
|
2904
2904
|
});
|
|
2905
|
-
}),
|
|
2905
|
+
}), y = V(() => {
|
|
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:
|
|
2909
|
+
}), O = lo(), w = V((C) => O.update(C)), S = V((C) => {
|
|
2910
|
+
O.wasMoved(C) && (d || m || v.goToOption(ge.Specific, a, 0));
|
|
2911
|
+
}), G = V((C) => {
|
|
2912
|
+
O.wasMoved(C) && (d || m && (s.optionsPropsRef.current.hold || v.goToOption(ge.Nothing)));
|
|
2913
|
+
}), B = 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: E, onFocus: y, onPointerEnter: w, onMouseEnter: w, onPointerMove: S, onMouseMove: S, onPointerLeave: G, onMouseLeave: G }, theirProps: u, slot: B, 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 = (P, A) => P === A, 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 }),
|
|
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 }), E = D({ static: !1, hold: !1 }), y = D(null), O = D(null), w = D(null), S = V(typeof o == "string" ? (P, A) => {
|
|
3032
|
+
let F = o;
|
|
3033
|
+
return P?.[F] === A?.[F];
|
|
3034
|
+
} : o), G = Ye((P) => Pe(B.mode, { 1: () => c.some((A) => S(A, P)), 0: () => S(c, P) }), [c]), B = Ie(() => ({ ...f, value: c, disabled: u, mode: v ? 1 : 0, orientation: l, compare: S, isSelected: G, optionsPropsRef: E, labelRef: y, buttonRef: O, optionsRef: w }), [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
|
-
|
|
3036
|
+
f.dataRef.current = B;
|
|
3037
|
+
}, [B]), Qd([B.buttonRef, B.optionsRef], (P, A) => {
|
|
3038
|
+
var F;
|
|
3039
|
+
b({ type: 1 }), Xd(A, Gr.Loose) || (P.preventDefault(), (F = B.buttonRef.current) == null || F.focus());
|
|
3040
|
+
}, B.listboxState === 0);
|
|
3041
|
+
let C = Ie(() => ({ open: B.listboxState === 0, disabled: u, value: c }), [B, u, c]), L = V((P) => {
|
|
3042
|
+
let A = B.options.find((F) => F.id === P);
|
|
3043
|
+
A && K(A.dataRef.current.value);
|
|
3044
3044
|
}), ne = V(() => {
|
|
3045
|
-
if (
|
|
3046
|
-
let { dataRef:
|
|
3047
|
-
|
|
3045
|
+
if (B.activeOptionIndex !== null) {
|
|
3046
|
+
let { dataRef: P, id: A } = B.options[B.activeOptionIndex];
|
|
3047
|
+
K(P.current.value), b({ type: 2, focus: ge.Specific, id: A });
|
|
3048
3048
|
}
|
|
3049
|
-
}), ie = V(() => b({ type: 0 })),
|
|
3050
|
-
return $?.(
|
|
3049
|
+
}), ie = V(() => b({ type: 0 })), N = V(() => b({ type: 1 })), Z = V((P, A, F) => P === ge.Specific ? b({ type: 2, focus: ge.Specific, id: A, trigger: F }) : b({ type: 2, focus: P, trigger: F })), ae = V((P, A) => (b({ type: 5, id: P, dataRef: A }), () => b({ type: 6, id: P }))), de = V((P) => (b({ type: 7, id: P }), () => b({ type: 7, id: null }))), K = V((P) => Pe(B.mode, { 0() {
|
|
3050
|
+
return $?.(P);
|
|
3051
3051
|
}, 1() {
|
|
3052
|
-
let
|
|
3053
|
-
return
|
|
3054
|
-
} })), ce = V((
|
|
3052
|
+
let A = B.value.slice(), F = A.findIndex((H) => S(H, P));
|
|
3053
|
+
return F === -1 ? A.push(P) : A.splice(F, 1), $?.(A);
|
|
3054
|
+
} })), ce = V((P) => b({ type: 3, value: P })), ue = V(() => b({ type: 4 })), x = Ie(() => ({ onChange: K, registerOption: ae, registerLabel: de, goToOption: Z, closeListbox: N, openListbox: ie, selectActiveOption: ne, selectOption: L, search: ce, clearSearch: ue }), []), R = { ref: p }, W = D(null), U = mt();
|
|
3055
3055
|
return pe(() => {
|
|
3056
|
-
W.current && r !== void 0 &&
|
|
3056
|
+
W.current && r !== void 0 && U.addEventListener(W.current, "reset", () => {
|
|
3057
3057
|
$?.(r);
|
|
3058
3058
|
});
|
|
3059
|
-
}, [W, $]),
|
|
3059
|
+
}, [W, $]), k.createElement(Jr.Provider, { value: x }, k.createElement(Qr.Provider, { value: B }, k.createElement(Yr, { value: Pe(B.listboxState, { 0: Re.Open, 1: Re.Closed }) }, a != null && c != null && Hr({ [a]: c }).map(([P, A], F) => k.createElement(oo, { features: Kr.Hidden, ref: F === 0 ? (H) => {
|
|
3060
3060
|
var Y;
|
|
3061
|
-
W.current = (Y =
|
|
3062
|
-
} : void 0, ...Pn({ key:
|
|
3061
|
+
W.current = (Y = H?.closest("form")) != null ? Y : null;
|
|
3062
|
+
} : void 0, ...Pn({ key: P, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: i, name: P, value: A }) })), He({ ourProps: R, theirProps: m, slot: C, defaultTag: is, name: "Listbox" }))));
|
|
3063
3063
|
}
|
|
3064
3064
|
let ds = "button";
|
|
3065
3065
|
function os(e, t) {
|
|
@@ -3114,8 +3114,8 @@ function fs(e, t) {
|
|
|
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
|
-
let
|
|
3118
|
-
|
|
3117
|
+
let E = d.optionsRef.current;
|
|
3118
|
+
E && d.listboxState === 0 && E !== ((b = kn(E)) == null ? void 0 : b.activeElement) && E.focus({ preventScroll: !0 });
|
|
3119
3119
|
}, [d.listboxState, d.optionsRef]);
|
|
3120
3120
|
let p = V((b) => {
|
|
3121
3121
|
switch (v.dispose(), b.key) {
|
|
@@ -3124,12 +3124,12 @@ function fs(e, t) {
|
|
|
3124
3124
|
return b.preventDefault(), b.stopPropagation(), o.search(b.key);
|
|
3125
3125
|
case me.Enter:
|
|
3126
3126
|
if (b.preventDefault(), b.stopPropagation(), d.activeOptionIndex !== null) {
|
|
3127
|
-
let { dataRef:
|
|
3128
|
-
o.onChange(
|
|
3127
|
+
let { dataRef: E } = d.options[d.activeOptionIndex];
|
|
3128
|
+
o.onChange(E.current.value);
|
|
3129
3129
|
}
|
|
3130
3130
|
d.mode === 0 && (o.closeListbox(), st().nextFrame(() => {
|
|
3131
|
-
var
|
|
3132
|
-
return (
|
|
3131
|
+
var E;
|
|
3132
|
+
return (E = d.buttonRef.current) == null ? void 0 : E.focus({ preventScroll: !0 });
|
|
3133
3133
|
}));
|
|
3134
3134
|
break;
|
|
3135
3135
|
case Pe(d.orientation, { vertical: me.ArrowDown, horizontal: me.ArrowRight }):
|
|
@@ -3144,8 +3144,8 @@ function fs(e, t) {
|
|
|
3144
3144
|
return b.preventDefault(), b.stopPropagation(), o.goToOption(ge.Last);
|
|
3145
3145
|
case me.Escape:
|
|
3146
3146
|
return b.preventDefault(), b.stopPropagation(), o.closeListbox(), s.nextFrame(() => {
|
|
3147
|
-
var
|
|
3148
|
-
return (
|
|
3147
|
+
var E;
|
|
3148
|
+
return (E = d.buttonRef.current) == null ? void 0 : E.focus({ preventScroll: !0 });
|
|
3149
3149
|
});
|
|
3150
3150
|
case me.Tab:
|
|
3151
3151
|
b.preventDefault(), b.stopPropagation();
|
|
@@ -3155,8 +3155,8 @@ function fs(e, t) {
|
|
|
3155
3155
|
break;
|
|
3156
3156
|
}
|
|
3157
3157
|
}), c = on(() => {
|
|
3158
|
-
var b,
|
|
3159
|
-
return (
|
|
3158
|
+
var b, E, y;
|
|
3159
|
+
return (y = (b = d.labelRef.current) == null ? void 0 : b.id) != null ? y : (E = d.buttonRef.current) == null ? void 0 : E.id;
|
|
3160
3160
|
}, [d.labelRef.current, d.buttonRef.current]), $ = Ie(() => ({ open: d.listboxState === 0 }), [d]), f = { "aria-activedescendant": d.activeOptionIndex === null || (n = d.options[d.activeOptionIndex]) == null ? void 0 : n.id, "aria-multiselectable": d.mode === 1 ? !0 : void 0, "aria-labelledby": c, "aria-orientation": d.orientation, id: i, onKeyDown: p, role: "listbox", tabIndex: 0, ref: u };
|
|
3161
3161
|
return He({ ourProps: f, theirProps: a, slot: $, defaultTag: ss, features: cs, visible: l, name: "Listbox.Options" });
|
|
3162
3162
|
}
|
|
@@ -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 S = st();
|
|
3172
|
+
return S.requestAnimationFrame(() => {
|
|
3173
|
+
var G, B;
|
|
3174
|
+
(B = (G = m.current) == null ? void 0 : G.scrollIntoView) == null || B.call(G, { block: "nearest" });
|
|
3175
|
+
}), S.dispose;
|
|
3176
3176
|
}, [m, s, o.listboxState, o.activationTrigger, o.activeOptionIndex]), Ee(() => u.registerOption(r, p), [p, r]);
|
|
3177
|
-
let $ = V((
|
|
3177
|
+
let $ = V((S) => {
|
|
3178
3178
|
if (i)
|
|
3179
|
-
return
|
|
3179
|
+
return S.preventDefault();
|
|
3180
3180
|
u.onChange(a), o.mode === 0 && (u.closeListbox(), st().nextFrame(() => {
|
|
3181
|
-
var
|
|
3182
|
-
return (
|
|
3181
|
+
var G;
|
|
3182
|
+
return (G = o.buttonRef.current) == null ? void 0 : G.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(),
|
|
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:
|
|
3188
|
+
}), b = lo(), E = V((S) => b.update(S)), y = V((S) => {
|
|
3189
|
+
b.wasMoved(S) && (i || s || u.goToOption(ge.Specific, r, 0));
|
|
3190
|
+
}), O = V((S) => {
|
|
3191
|
+
b.wasMoved(S) && (i || s && u.goToOption(ge.Nothing));
|
|
3192
|
+
}), w = 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: E, onMouseEnter: E, onPointerMove: y, onMouseMove: y, onPointerLeave: O, onMouseLeave: O }, theirProps: d, slot: w, 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) {
|
|
@@ -3303,7 +3303,7 @@ function so(e, t) {
|
|
|
3303
3303
|
u.current.splice(0), t && (t.chains.current[c] = t.chains.current[c].filter(([f]) => f !== p)), t?.chains.current[c].push([p, new Promise((f) => {
|
|
3304
3304
|
u.current.push(f);
|
|
3305
3305
|
})]), t?.chains.current[c].push([p, new Promise((f) => {
|
|
3306
|
-
Promise.all(v.current[c].map(([b,
|
|
3306
|
+
Promise.all(v.current[c].map(([b, E]) => E)).then(() => f());
|
|
3307
3307
|
})]), c === "enter" ? s.current = s.current.then(() => t?.wait.current).then(() => $(c)) : $(c);
|
|
3308
3308
|
}), l = V((p, c, $) => {
|
|
3309
3309
|
Promise.all(v.current[c].splice(0).map(([f, b]) => b)).then(() => {
|
|
@@ -3332,41 +3332,41 @@ function Is(e) {
|
|
|
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),
|
|
3336
|
-
pe(() =>
|
|
3337
|
-
if (
|
|
3338
|
-
if (
|
|
3339
|
-
|
|
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), E = (n = $.unmount) == null || n ? xt.Unmount : xt.Hidden, { show: y, appear: O, initial: w } = Ss(), [S, G] = be(y ? "visible" : "hidden"), B = Es(), { register: C, unregister: L } = B;
|
|
3336
|
+
pe(() => C(f), [C, f]), pe(() => {
|
|
3337
|
+
if (E === xt.Hidden && f.current) {
|
|
3338
|
+
if (y && S !== "visible") {
|
|
3339
|
+
G("visible");
|
|
3340
3340
|
return;
|
|
3341
3341
|
}
|
|
3342
|
-
return Pe(
|
|
3342
|
+
return Pe(S, { hidden: () => L(f), visible: () => C(f) });
|
|
3343
3343
|
}
|
|
3344
|
-
}, [
|
|
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 }),
|
|
3344
|
+
}, [S, f, C, L, y, E]);
|
|
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 }), N = Vr();
|
|
3346
3346
|
pe(() => {
|
|
3347
|
-
if (
|
|
3347
|
+
if (N && S === "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
|
-
|
|
3349
|
+
}, [f, S, N]);
|
|
3350
|
+
let Z = w && !O, ae = O && y && w, de = (() => !N || Z ? "idle" : y ? "enter" : "leave")(), K = ys(0), ce = V((U) => Pe(U, { enter: () => {
|
|
3351
|
+
K.addFlag(Re.Opening), ie.current.beforeEnter();
|
|
3352
3352
|
}, leave: () => {
|
|
3353
|
-
|
|
3353
|
+
K.addFlag(Re.Closing), ie.current.beforeLeave();
|
|
3354
3354
|
}, idle: () => {
|
|
3355
|
-
} })), ue = V((
|
|
3356
|
-
|
|
3355
|
+
} })), ue = V((U) => Pe(U, { enter: () => {
|
|
3356
|
+
K.removeFlag(Re.Opening), ie.current.afterEnter();
|
|
3357
3357
|
}, leave: () => {
|
|
3358
|
-
|
|
3358
|
+
K.removeFlag(Re.Closing), ie.current.afterLeave();
|
|
3359
3359
|
}, idle: () => {
|
|
3360
|
-
} })),
|
|
3361
|
-
|
|
3362
|
-
},
|
|
3363
|
-
xs({ immediate: ae, container: f, classes: ne, direction: de, onStart: it((
|
|
3364
|
-
|
|
3365
|
-
}), onStop: it((
|
|
3366
|
-
|
|
3360
|
+
} })), x = so(() => {
|
|
3361
|
+
G("hidden"), L(f);
|
|
3362
|
+
}, B);
|
|
3363
|
+
xs({ immediate: ae, container: f, classes: ne, direction: de, onStart: it((U) => {
|
|
3364
|
+
x.onStart(f, U, ce);
|
|
3365
|
+
}), onStop: it((U) => {
|
|
3366
|
+
x.onStop(f, U, ue), U === "leave" && !Mn(x) && (G("hidden"), L(f));
|
|
3367
3367
|
}) });
|
|
3368
|
-
let
|
|
3369
|
-
return ae ?
|
|
3368
|
+
let R = $, W = { ref: b };
|
|
3369
|
+
return ae ? R = { ...R, className: xn($.className, ...ne.current.enter, ...ne.current.enterFrom) } : (R.className = xn($.className, (r = f.current) == null ? void 0 : r.className), R.className === "" && delete R.className), k.createElement(Dn.Provider, { value: x }, k.createElement(Yr, { value: Pe(S, { visible: Re.Open, hidden: Re.Closed }) | K.flags }, He({ ourProps: W, theirProps: R, defaultTag: _s, features: co, visible: S === "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);
|
|
@@ -3387,25 +3387,25 @@ function Rs(e, t) {
|
|
|
3387
3387
|
else if (!Mn(m))
|
|
3388
3388
|
v("hidden");
|
|
3389
3389
|
else {
|
|
3390
|
-
let
|
|
3391
|
-
if (!
|
|
3390
|
+
let y = d.current;
|
|
3391
|
+
if (!y)
|
|
3392
3392
|
return;
|
|
3393
|
-
let
|
|
3394
|
-
|
|
3393
|
+
let O = y.getBoundingClientRect();
|
|
3394
|
+
O.x === 0 && O.y === 0 && O.width === 0 && O.height === 0 && v("hidden");
|
|
3395
3395
|
}
|
|
3396
3396
|
}, [n, m]);
|
|
3397
3397
|
let f = { unmount: i }, b = V(() => {
|
|
3398
|
-
var
|
|
3399
|
-
l && p(!1), (
|
|
3400
|
-
}),
|
|
3401
|
-
var
|
|
3402
|
-
l && p(!1), (
|
|
3398
|
+
var y;
|
|
3399
|
+
l && p(!1), (y = e.beforeEnter) == null || y.call(e);
|
|
3400
|
+
}), E = V(() => {
|
|
3401
|
+
var y;
|
|
3402
|
+
l && p(!1), (y = e.beforeLeave) == null || y.call(e);
|
|
3403
3403
|
});
|
|
3404
|
-
return
|
|
3404
|
+
return k.createElement(Dn.Provider, { value: m }, k.createElement(Ln.Provider, { value: $ }, He({ ourProps: { ...f, as: vt, children: k.createElement(fo, { ref: o, ...f, ...a, beforeEnter: b, beforeLeave: E }) }, 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 k.createElement(k.Fragment, null, !n && r ? k.createElement(mr, { ref: t, ...e }) : k.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,74 +3445,74 @@ 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 = (S) => {
|
|
3449
|
+
n(S);
|
|
3450
3450
|
}, b = () => {
|
|
3451
3451
|
a(!0);
|
|
3452
|
-
},
|
|
3452
|
+
}, E = () => {
|
|
3453
3453
|
a(!1);
|
|
3454
3454
|
};
|
|
3455
3455
|
pe(() => {
|
|
3456
|
-
const
|
|
3457
|
-
return
|
|
3458
|
-
|
|
3456
|
+
const S = s.current;
|
|
3457
|
+
return S && (S.addEventListener("focus", b), S.addEventListener("blur", E)), () => {
|
|
3458
|
+
S && (S.removeEventListener("focus", b), S.removeEventListener("blur", E));
|
|
3459
3459
|
};
|
|
3460
|
-
}, [b,
|
|
3461
|
-
const
|
|
3460
|
+
}, [b, E]);
|
|
3461
|
+
const y = () => {
|
|
3462
3462
|
p.current = window.innerHeight, c.current = document.body.scrollHeight, o(!0);
|
|
3463
3463
|
};
|
|
3464
|
-
pe(() => (
|
|
3465
|
-
window.addEventListener("resize",
|
|
3464
|
+
pe(() => (y(), window.addEventListener("resize", y), () => {
|
|
3465
|
+
window.addEventListener("resize", y);
|
|
3466
3466
|
}), []);
|
|
3467
|
-
const
|
|
3467
|
+
const O = () => c.current - (p.current + window.scrollY), w = () => {
|
|
3468
3468
|
if (u.current) {
|
|
3469
|
-
const
|
|
3469
|
+
const S = u.current.getBoundingClientRect();
|
|
3470
3470
|
setTimeout(() => {
|
|
3471
|
-
const
|
|
3472
|
-
let
|
|
3473
|
-
if (
|
|
3474
|
-
const ne =
|
|
3475
|
-
|
|
3476
|
-
left:
|
|
3477
|
-
top:
|
|
3471
|
+
const G = v?.current?.getBoundingClientRect(), B = O(), C = p.current - S.bottom;
|
|
3472
|
+
let L;
|
|
3473
|
+
if (G) {
|
|
3474
|
+
const ne = S.height, ie = S.top, N = G.height, Z = N >= ie + window.scrollY;
|
|
3475
|
+
N >= ie && (Z || Z && C <= N || B >= N || C >= N) || ie >= N && C >= N ? L = S.y + ne : L = S.y - N, l({
|
|
3476
|
+
left: S.left,
|
|
3477
|
+
top: L ?? S.top
|
|
3478
3478
|
});
|
|
3479
3479
|
}
|
|
3480
3480
|
}, 0);
|
|
3481
3481
|
}
|
|
3482
3482
|
};
|
|
3483
|
-
if (pe(() => (window.addEventListener("scroll",
|
|
3484
|
-
window.removeEventListener("scroll",
|
|
3483
|
+
if (pe(() => (window.addEventListener("scroll", w), window.addEventListener("resize", w), () => {
|
|
3484
|
+
window.removeEventListener("scroll", w), window.removeEventListener("resize", w);
|
|
3485
3485
|
}), []), r) {
|
|
3486
3486
|
r = ct.convert3HexTo6(r);
|
|
3487
|
-
const
|
|
3488
|
-
(
|
|
3487
|
+
const S = Et(r);
|
|
3488
|
+
(S === "dark" || S === "light") && ($ = r === "#ffffff" ? "#c8c8c8" : r);
|
|
3489
3489
|
}
|
|
3490
|
-
return /* @__PURE__ */
|
|
3491
|
-
/* @__PURE__ */
|
|
3490
|
+
return /* @__PURE__ */ T.jsx(Sn, { value: t, onChange: f, children: ({ open: S }) => /* @__PURE__ */ T.jsxs("div", { className: qe.select, children: [
|
|
3491
|
+
/* @__PURE__ */ T.jsx("div", { className: qe.selectContainer, ref: u, children: /* @__PURE__ */ T.jsxs(
|
|
3492
3492
|
Sn.Button,
|
|
3493
3493
|
{
|
|
3494
3494
|
"data-testid": "select-options",
|
|
3495
3495
|
ref: s,
|
|
3496
3496
|
onFocus: b,
|
|
3497
|
-
onBlur:
|
|
3498
|
-
onClick:
|
|
3499
|
-
onKeyDown: (
|
|
3500
|
-
(
|
|
3497
|
+
onBlur: E,
|
|
3498
|
+
onClick: w,
|
|
3499
|
+
onKeyDown: (G) => {
|
|
3500
|
+
(G.key === " " || G.code === "Space" || G.code === "Enter") && w();
|
|
3501
3501
|
},
|
|
3502
|
-
style: { borderBottomColor: r && (i ||
|
|
3503
|
-
className: `${qe.selectButton} ${
|
|
3502
|
+
style: { borderBottomColor: r && (i || S) ? $ : "" },
|
|
3503
|
+
className: `${qe.selectButton} ${S ? qe.open : ""}`,
|
|
3504
3504
|
tabIndex: 0,
|
|
3505
3505
|
children: [
|
|
3506
|
-
t && /* @__PURE__ */
|
|
3507
|
-
t.avatar && /* @__PURE__ */
|
|
3508
|
-
/* @__PURE__ */
|
|
3506
|
+
t && /* @__PURE__ */ T.jsxs("span", { className: qe.selectValue, children: [
|
|
3507
|
+
t.avatar && /* @__PURE__ */ T.jsx("img", { src: t.avatar, alt: "", className: qe.seletIcon }),
|
|
3508
|
+
/* @__PURE__ */ T.jsx("span", { className: qe.selectText, children: t.label })
|
|
3509
3509
|
] }),
|
|
3510
|
-
/* @__PURE__ */
|
|
3510
|
+
/* @__PURE__ */ T.jsx("span", { className: qe.chevronDownIconSpan, children: /* @__PURE__ */ T.jsx($o, { className: qe.chevronDownIcon, "aria-hidden": "true" }) })
|
|
3511
3511
|
]
|
|
3512
3512
|
}
|
|
3513
3513
|
) }),
|
|
3514
3514
|
d ? Mr(
|
|
3515
|
-
/* @__PURE__ */
|
|
3515
|
+
/* @__PURE__ */ T.jsx(T.Fragment, { children: S && /* @__PURE__ */ T.jsx(
|
|
3516
3516
|
"div",
|
|
3517
3517
|
{
|
|
3518
3518
|
style: {
|
|
@@ -3521,7 +3521,7 @@ const Ls = $t.forwardRef(js), $o = Ls, Ds = "_select_c79hj_1", Ms = "_selectCont
|
|
|
3521
3521
|
backgroundColor: "rgba(255,255,255,0)",
|
|
3522
3522
|
zIndex: 1e3
|
|
3523
3523
|
},
|
|
3524
|
-
children: /* @__PURE__ */
|
|
3524
|
+
children: /* @__PURE__ */ T.jsx(
|
|
3525
3525
|
"div",
|
|
3526
3526
|
{
|
|
3527
3527
|
ref: v,
|
|
@@ -3540,7 +3540,7 @@ const Ls = $t.forwardRef(js), $o = Ls, Ds = "_select_c79hj_1", Ms = "_selectCont
|
|
|
3540
3540
|
document.body
|
|
3541
3541
|
) : null
|
|
3542
3542
|
] }) });
|
|
3543
|
-
}, Js = ({ children: e, setQuery: t }) => /* @__PURE__ */
|
|
3543
|
+
}, Js = ({ children: e, setQuery: t }) => /* @__PURE__ */ T.jsx(
|
|
3544
3544
|
po,
|
|
3545
3545
|
{
|
|
3546
3546
|
as: vt,
|
|
@@ -3548,9 +3548,9 @@ const Ls = $t.forwardRef(js), $o = Ls, Ds = "_select_c79hj_1", Ms = "_selectCont
|
|
|
3548
3548
|
leaveFrom: qe.leaveFrom,
|
|
3549
3549
|
leaveTo: qe.leaveTo,
|
|
3550
3550
|
afterLeave: () => t(""),
|
|
3551
|
-
children: /* @__PURE__ */
|
|
3551
|
+
children: /* @__PURE__ */ T.jsx(Sn.Options, { className: qe.selectOptions, children: e })
|
|
3552
3552
|
}
|
|
3553
|
-
), vo = Pt((e, t) => /* @__PURE__ */
|
|
3553
|
+
), vo = Pt((e, t) => /* @__PURE__ */ T.jsx(Sn.Option, { ref: t, className: e.className, value: e.value, disabled: e.disable, children: e.children }));
|
|
3554
3554
|
vo.displayName = "SelectOption";
|
|
3555
3555
|
const Qs = "_autocomplete_1uhaj_1", e2 = "_autocompleteContainer_1uhaj_4", t2 = "_disable_1uhaj_7", n2 = "_autocompleteInput_1uhaj_16", r2 = "_autocompleteButton_1uhaj_25", i2 = "_chevronDownIcon_1uhaj_28", a2 = "_leave_1uhaj_35", d2 = "_leaveFrom_1uhaj_39", o2 = "_leaveTo_1uhaj_43", u2 = "_autocompleteOptions_1uhaj_47", rt = {
|
|
3556
3556
|
autocomplete: Qs,
|
|
@@ -3572,90 +3572,90 @@ const Qs = "_autocomplete_1uhaj_1", e2 = "_autocompleteContainer_1uhaj_4", t2 =
|
|
|
3572
3572
|
clearSearch: a = !1,
|
|
3573
3573
|
themeColor: d
|
|
3574
3574
|
}) => {
|
|
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),
|
|
3576
|
-
let
|
|
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), E = D(0);
|
|
3576
|
+
let y = {};
|
|
3577
3577
|
pe(() => {
|
|
3578
3578
|
o.current && t && (o.current.value = t.label || "");
|
|
3579
3579
|
}, [t]);
|
|
3580
|
-
const
|
|
3581
|
-
b.current = window.innerHeight,
|
|
3580
|
+
const O = () => {
|
|
3581
|
+
b.current = window.innerHeight, E.current = document.body.scrollHeight, l(!0);
|
|
3582
3582
|
};
|
|
3583
|
-
pe(() => (
|
|
3584
|
-
window.addEventListener("resize",
|
|
3583
|
+
pe(() => (O(), window.addEventListener("resize", O), () => {
|
|
3584
|
+
window.addEventListener("resize", O);
|
|
3585
3585
|
}), []);
|
|
3586
|
-
const
|
|
3586
|
+
const w = () => E.current - (b.current + window.scrollY), S = () => {
|
|
3587
3587
|
if (p.current) {
|
|
3588
|
-
const
|
|
3588
|
+
const N = p.current.getBoundingClientRect();
|
|
3589
3589
|
setTimeout(() => {
|
|
3590
|
-
const Z = c?.current?.getBoundingClientRect(), ae =
|
|
3591
|
-
let
|
|
3590
|
+
const Z = c?.current?.getBoundingClientRect(), ae = w(), de = b.current - N.bottom;
|
|
3591
|
+
let K;
|
|
3592
3592
|
if (Z) {
|
|
3593
|
-
const ce =
|
|
3594
|
-
ue <
|
|
3595
|
-
left:
|
|
3596
|
-
top:
|
|
3593
|
+
const ce = N.height, ue = N.top, x = Z.height, R = x > ue + window.scrollY;
|
|
3594
|
+
ue < x && (R || R && de < x || ae > x || de > x) || ue > x && de > x ? K = N.y + ce : K = N.y - x, f({
|
|
3595
|
+
left: N.left,
|
|
3596
|
+
top: K ?? N.top
|
|
3597
3597
|
});
|
|
3598
3598
|
}
|
|
3599
3599
|
}, 0);
|
|
3600
3600
|
}
|
|
3601
3601
|
};
|
|
3602
|
-
pe(() => (window.addEventListener("scroll",
|
|
3603
|
-
window.removeEventListener("scroll",
|
|
3602
|
+
pe(() => (window.addEventListener("scroll", S), window.addEventListener("resize", S), () => {
|
|
3603
|
+
window.removeEventListener("scroll", S), window.removeEventListener("resize", S);
|
|
3604
3604
|
}), []);
|
|
3605
|
-
const
|
|
3606
|
-
n(
|
|
3607
|
-
},
|
|
3608
|
-
|
|
3609
|
-
},
|
|
3610
|
-
const
|
|
3611
|
-
|
|
3605
|
+
const G = (N) => {
|
|
3606
|
+
n(N), L();
|
|
3607
|
+
}, B = () => {
|
|
3608
|
+
S(), v(!0), o.current && t && (o.current.value = t.label || ""), o.current && u.current && (a && (o.current.value = "", r("")), u.current.click());
|
|
3609
|
+
}, C = (N) => N?.label, L = () => {
|
|
3610
|
+
const N = o.current;
|
|
3611
|
+
N && N.setSelectionRange(N.value.length, N.value.length);
|
|
3612
3612
|
}, ne = () => {
|
|
3613
3613
|
v(!0);
|
|
3614
3614
|
}, ie = () => {
|
|
3615
3615
|
v(!1);
|
|
3616
3616
|
};
|
|
3617
3617
|
if (pe(() => {
|
|
3618
|
-
const
|
|
3619
|
-
return
|
|
3620
|
-
|
|
3618
|
+
const N = o.current;
|
|
3619
|
+
return N && (N.addEventListener("focus", ne), N.addEventListener("blur", ie)), () => {
|
|
3620
|
+
N && (N.removeEventListener("focus", ne), N.removeEventListener("blur", ie));
|
|
3621
3621
|
};
|
|
3622
3622
|
}, [ne, ie]), d) {
|
|
3623
|
-
const
|
|
3624
|
-
d = ct.convert3HexTo6(d), (
|
|
3623
|
+
const N = Et(d);
|
|
3624
|
+
d = ct.convert3HexTo6(d), (N === "dark" || N === "light") && (y = {
|
|
3625
3625
|
borderBottomColor: d === "#ffffff" ? "#c8c8c8" : s ? d : "#333333"
|
|
3626
3626
|
});
|
|
3627
3627
|
}
|
|
3628
|
-
return /* @__PURE__ */
|
|
3629
|
-
/* @__PURE__ */
|
|
3630
|
-
/* @__PURE__ */
|
|
3628
|
+
return /* @__PURE__ */ T.jsx(en, { value: t, onChange: G, disabled: i, children: ({ open: N }) => /* @__PURE__ */ T.jsxs("div", { className: rt.autocomplete, children: [
|
|
3629
|
+
/* @__PURE__ */ T.jsxs("div", { ref: p, className: `${rt.autocompleteContainer} ${i ? rt.disable : ""}`, children: [
|
|
3630
|
+
/* @__PURE__ */ T.jsx(
|
|
3631
3631
|
en.Input,
|
|
3632
3632
|
{
|
|
3633
3633
|
ref: o,
|
|
3634
3634
|
"data-testid": "select-input",
|
|
3635
3635
|
className: rt.autocompleteInput,
|
|
3636
|
-
displayValue:
|
|
3636
|
+
displayValue: C,
|
|
3637
3637
|
onChange: (Z) => {
|
|
3638
|
-
r(Z.target.value),
|
|
3638
|
+
r(Z.target.value), S();
|
|
3639
3639
|
},
|
|
3640
|
-
onClick:
|
|
3640
|
+
onClick: B,
|
|
3641
3641
|
onFocus: ne,
|
|
3642
3642
|
onBlur: ie,
|
|
3643
3643
|
onKeyDown: (Z) => {
|
|
3644
|
-
(Z.key === " " || Z.code === "Space") &&
|
|
3644
|
+
(Z.key === " " || Z.code === "Space") && S();
|
|
3645
3645
|
},
|
|
3646
|
-
style: { ...
|
|
3646
|
+
style: { ...y },
|
|
3647
3647
|
placeholder: "Select your option",
|
|
3648
3648
|
autoComplete: "off"
|
|
3649
3649
|
}
|
|
3650
3650
|
),
|
|
3651
|
-
/* @__PURE__ */
|
|
3651
|
+
/* @__PURE__ */ T.jsx(
|
|
3652
3652
|
en.Button,
|
|
3653
3653
|
{
|
|
3654
3654
|
className: rt.autocompleteButton,
|
|
3655
3655
|
"data-testid": "select-button",
|
|
3656
3656
|
ref: u,
|
|
3657
|
-
onClick:
|
|
3658
|
-
children: /* @__PURE__ */
|
|
3657
|
+
onClick: S,
|
|
3658
|
+
children: /* @__PURE__ */ T.jsx(
|
|
3659
3659
|
$o,
|
|
3660
3660
|
{
|
|
3661
3661
|
className: `${rt.chevronDownIcon} ${i ? rt.disable : ""}`,
|
|
@@ -3666,7 +3666,7 @@ const Qs = "_autocomplete_1uhaj_1", e2 = "_autocompleteContainer_1uhaj_4", t2 =
|
|
|
3666
3666
|
)
|
|
3667
3667
|
] }),
|
|
3668
3668
|
m ? Mr(
|
|
3669
|
-
/* @__PURE__ */
|
|
3669
|
+
/* @__PURE__ */ T.jsx(T.Fragment, { children: N && /* @__PURE__ */ T.jsx(
|
|
3670
3670
|
"div",
|
|
3671
3671
|
{
|
|
3672
3672
|
style: {
|
|
@@ -3675,7 +3675,7 @@ const Qs = "_autocomplete_1uhaj_1", e2 = "_autocompleteContainer_1uhaj_4", t2 =
|
|
|
3675
3675
|
backgroundColor: "rgba(255,255,255,0)",
|
|
3676
3676
|
zIndex: 1e3
|
|
3677
3677
|
},
|
|
3678
|
-
children: /* @__PURE__ */
|
|
3678
|
+
children: /* @__PURE__ */ T.jsx(
|
|
3679
3679
|
"div",
|
|
3680
3680
|
{
|
|
3681
3681
|
ref: c,
|
|
@@ -3694,7 +3694,7 @@ const Qs = "_autocomplete_1uhaj_1", e2 = "_autocompleteContainer_1uhaj_4", t2 =
|
|
|
3694
3694
|
document.body
|
|
3695
3695
|
) : null
|
|
3696
3696
|
] }) });
|
|
3697
|
-
}, Nf = ({ children: e, setQuery: t }) => /* @__PURE__ */
|
|
3697
|
+
}, Nf = ({ children: e, setQuery: t }) => /* @__PURE__ */ T.jsx(
|
|
3698
3698
|
po,
|
|
3699
3699
|
{
|
|
3700
3700
|
as: vt,
|
|
@@ -3702,14 +3702,14 @@ const Qs = "_autocomplete_1uhaj_1", e2 = "_autocompleteContainer_1uhaj_4", t2 =
|
|
|
3702
3702
|
leaveFrom: rt.leaveFrom,
|
|
3703
3703
|
leaveTo: rt.leaveTo,
|
|
3704
3704
|
afterLeave: () => t(""),
|
|
3705
|
-
children: /* @__PURE__ */
|
|
3705
|
+
children: /* @__PURE__ */ T.jsx(en.Options, { className: rt.autocompleteOptions, children: e })
|
|
3706
3706
|
}
|
|
3707
|
-
), l2 = Pt((e, t) => /* @__PURE__ */
|
|
3707
|
+
), l2 = Pt((e, t) => /* @__PURE__ */ T.jsx(en.Option, { ref: t, className: e.className, value: e.value, disabled: e.disable, children: e.children }));
|
|
3708
3708
|
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 = k.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);
|
|
@@ -3723,7 +3723,7 @@ const s2 = "_textInputWrapper_gym4n_1", c2 = "_textInput_gym4n_1", Ti = {
|
|
|
3723
3723
|
};
|
|
3724
3724
|
return s = {
|
|
3725
3725
|
borderBottomColor: o ? e !== "#ffffff" ? e : "#c8c8c8" : ""
|
|
3726
|
-
}, /* @__PURE__ */
|
|
3726
|
+
}, /* @__PURE__ */ T.jsx("div", { className: Ti.textInputWrapper, children: /* @__PURE__ */ T.jsx(
|
|
3727
3727
|
"input",
|
|
3728
3728
|
{
|
|
3729
3729
|
type: "text",
|
|
@@ -3762,67 +3762,67 @@ function w2() {
|
|
|
3762
3762
|
if (Ii)
|
|
3763
3763
|
return ve;
|
|
3764
3764
|
Ii = 1;
|
|
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,
|
|
3766
|
-
function w
|
|
3767
|
-
if (typeof
|
|
3768
|
-
var
|
|
3769
|
-
switch (
|
|
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, E = e ? Symbol.for("react.scope") : 60119;
|
|
3766
|
+
function y(w) {
|
|
3767
|
+
if (typeof w == "object" && w !== null) {
|
|
3768
|
+
var S = w.$$typeof;
|
|
3769
|
+
switch (S) {
|
|
3770
3770
|
case t:
|
|
3771
|
-
switch (
|
|
3771
|
+
switch (w = w.type, w) {
|
|
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 w;
|
|
3779
3779
|
default:
|
|
3780
|
-
switch (
|
|
3780
|
+
switch (w = w && w.$$typeof, w) {
|
|
3781
3781
|
case o:
|
|
3782
3782
|
case v:
|
|
3783
3783
|
case c:
|
|
3784
3784
|
case p:
|
|
3785
3785
|
case d:
|
|
3786
|
-
return
|
|
3786
|
+
return w;
|
|
3787
3787
|
default:
|
|
3788
|
-
return
|
|
3788
|
+
return S;
|
|
3789
3789
|
}
|
|
3790
3790
|
}
|
|
3791
3791
|
case n:
|
|
3792
|
-
return
|
|
3792
|
+
return S;
|
|
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
|
|
3825
|
-
}, ve.typeOf =
|
|
3796
|
+
function O(w) {
|
|
3797
|
+
return y(w) === 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(w) {
|
|
3800
|
+
return O(w) || y(w) === u;
|
|
3801
|
+
}, ve.isConcurrentMode = O, ve.isContextConsumer = function(w) {
|
|
3802
|
+
return y(w) === o;
|
|
3803
|
+
}, ve.isContextProvider = function(w) {
|
|
3804
|
+
return y(w) === d;
|
|
3805
|
+
}, ve.isElement = function(w) {
|
|
3806
|
+
return typeof w == "object" && w !== null && w.$$typeof === t;
|
|
3807
|
+
}, ve.isForwardRef = function(w) {
|
|
3808
|
+
return y(w) === v;
|
|
3809
|
+
}, ve.isFragment = function(w) {
|
|
3810
|
+
return y(w) === r;
|
|
3811
|
+
}, ve.isLazy = function(w) {
|
|
3812
|
+
return y(w) === c;
|
|
3813
|
+
}, ve.isMemo = function(w) {
|
|
3814
|
+
return y(w) === p;
|
|
3815
|
+
}, ve.isPortal = function(w) {
|
|
3816
|
+
return y(w) === n;
|
|
3817
|
+
}, ve.isProfiler = function(w) {
|
|
3818
|
+
return y(w) === a;
|
|
3819
|
+
}, ve.isStrictMode = function(w) {
|
|
3820
|
+
return y(w) === i;
|
|
3821
|
+
}, ve.isSuspense = function(w) {
|
|
3822
|
+
return y(w) === m;
|
|
3823
|
+
}, ve.isValidElementType = function(w) {
|
|
3824
|
+
return typeof w == "string" || typeof w == "function" || w === r || w === s || w === a || w === i || w === m || w === l || typeof w == "object" && w !== null && (w.$$typeof === c || w.$$typeof === p || w.$$typeof === d || w.$$typeof === o || w.$$typeof === v || w.$$typeof === f || w.$$typeof === b || w.$$typeof === E || w.$$typeof === $);
|
|
3825
|
+
}, ve.typeOf = y, ve;
|
|
3826
3826
|
}
|
|
3827
3827
|
var he = {};
|
|
3828
3828
|
/** @license React v16.13.1
|
|
@@ -3836,15 +3836,15 @@ var he = {};
|
|
|
3836
3836
|
var _i;
|
|
3837
3837
|
function C2() {
|
|
3838
3838
|
return _i || (_i = 1, process.env.NODE_ENV !== "production" && function() {
|
|
3839
|
-
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,
|
|
3840
|
-
function
|
|
3839
|
+
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, E = e ? Symbol.for("react.scope") : 60119;
|
|
3840
|
+
function y(g) {
|
|
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
|
-
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 ===
|
|
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 === E || g.$$typeof === $);
|
|
3843
3843
|
}
|
|
3844
|
-
function
|
|
3844
|
+
function O(g) {
|
|
3845
3845
|
if (typeof g == "object" && g !== null) {
|
|
3846
|
-
var
|
|
3847
|
-
switch (
|
|
3846
|
+
var q = g.$$typeof;
|
|
3847
|
+
switch (q) {
|
|
3848
3848
|
case t:
|
|
3849
3849
|
var ye = g.type;
|
|
3850
3850
|
switch (ye) {
|
|
@@ -3865,55 +3865,55 @@ function C2() {
|
|
|
3865
3865
|
case d:
|
|
3866
3866
|
return xe;
|
|
3867
3867
|
default:
|
|
3868
|
-
return
|
|
3868
|
+
return q;
|
|
3869
3869
|
}
|
|
3870
3870
|
}
|
|
3871
3871
|
case n:
|
|
3872
|
-
return
|
|
3872
|
+
return q;
|
|
3873
3873
|
}
|
|
3874
3874
|
}
|
|
3875
3875
|
}
|
|
3876
|
-
var
|
|
3876
|
+
var w = u, S = s, G = o, B = d, C = t, L = v, ne = r, ie = c, N = p, Z = n, ae = a, de = i, K = 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.")), x(g) || O(g) === u;
|
|
3879
3879
|
}
|
|
3880
|
-
function
|
|
3881
|
-
return
|
|
3880
|
+
function x(g) {
|
|
3881
|
+
return O(g) === s;
|
|
3882
3882
|
}
|
|
3883
|
-
function
|
|
3884
|
-
return
|
|
3883
|
+
function R(g) {
|
|
3884
|
+
return O(g) === o;
|
|
3885
3885
|
}
|
|
3886
3886
|
function W(g) {
|
|
3887
|
-
return
|
|
3887
|
+
return O(g) === d;
|
|
3888
3888
|
}
|
|
3889
|
-
function
|
|
3889
|
+
function U(g) {
|
|
3890
3890
|
return typeof g == "object" && g !== null && g.$$typeof === t;
|
|
3891
3891
|
}
|
|
3892
|
-
function
|
|
3893
|
-
return
|
|
3892
|
+
function P(g) {
|
|
3893
|
+
return O(g) === v;
|
|
3894
3894
|
}
|
|
3895
|
-
function
|
|
3896
|
-
return
|
|
3895
|
+
function A(g) {
|
|
3896
|
+
return O(g) === r;
|
|
3897
3897
|
}
|
|
3898
|
-
function
|
|
3899
|
-
return
|
|
3898
|
+
function F(g) {
|
|
3899
|
+
return O(g) === c;
|
|
3900
3900
|
}
|
|
3901
|
-
function
|
|
3902
|
-
return
|
|
3901
|
+
function H(g) {
|
|
3902
|
+
return O(g) === p;
|
|
3903
3903
|
}
|
|
3904
3904
|
function Y(g) {
|
|
3905
|
-
return
|
|
3905
|
+
return O(g) === n;
|
|
3906
3906
|
}
|
|
3907
3907
|
function te(g) {
|
|
3908
|
-
return
|
|
3908
|
+
return O(g) === a;
|
|
3909
3909
|
}
|
|
3910
3910
|
function ee(g) {
|
|
3911
|
-
return
|
|
3911
|
+
return O(g) === i;
|
|
3912
3912
|
}
|
|
3913
3913
|
function Ne(g) {
|
|
3914
|
-
return
|
|
3914
|
+
return O(g) === m;
|
|
3915
3915
|
}
|
|
3916
|
-
he.AsyncMode =
|
|
3916
|
+
he.AsyncMode = w, he.ConcurrentMode = S, he.ContextConsumer = G, he.ContextProvider = B, he.Element = C, he.ForwardRef = L, he.Fragment = ne, he.Lazy = ie, he.Memo = N, he.Portal = Z, he.Profiler = ae, he.StrictMode = de, he.Suspense = K, he.isAsyncMode = ue, he.isConcurrentMode = x, he.isContextConsumer = R, he.isContextProvider = W, he.isElement = U, he.isForwardRef = P, he.isFragment = A, he.isLazy = F, he.isMemo = H, he.isPortal = Y, he.isProfiler = te, he.isStrictMode = ee, he.isSuspense = Ne, he.isValidElementType = y, he.typeOf = O;
|
|
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(x) {
|
|
4058
|
+
var R = x && (s && x[s] || x[v]);
|
|
4059
|
+
if (typeof R == "function")
|
|
4060
|
+
return R;
|
|
4061
4061
|
}
|
|
4062
4062
|
var l = "<<anonymous>>", p = {
|
|
4063
4063
|
array: b("array"),
|
|
@@ -4068,246 +4068,246 @@ function P2() {
|
|
|
4068
4068
|
object: b("object"),
|
|
4069
4069
|
string: b("string"),
|
|
4070
4070
|
symbol: b("symbol"),
|
|
4071
|
-
any:
|
|
4072
|
-
arrayOf:
|
|
4073
|
-
element:
|
|
4074
|
-
elementType:
|
|
4075
|
-
instanceOf:
|
|
4076
|
-
node:
|
|
4077
|
-
objectOf:
|
|
4078
|
-
oneOf:
|
|
4079
|
-
oneOfType:
|
|
4071
|
+
any: E(),
|
|
4072
|
+
arrayOf: y,
|
|
4073
|
+
element: O(),
|
|
4074
|
+
elementType: w(),
|
|
4075
|
+
instanceOf: S,
|
|
4076
|
+
node: L(),
|
|
4077
|
+
objectOf: B,
|
|
4078
|
+
oneOf: G,
|
|
4079
|
+
oneOfType: C,
|
|
4080
4080
|
shape: ie,
|
|
4081
|
-
exact:
|
|
4081
|
+
exact: N
|
|
4082
4082
|
};
|
|
4083
|
-
function c(
|
|
4084
|
-
return
|
|
4083
|
+
function c(x, R) {
|
|
4084
|
+
return x === R ? x !== 0 || 1 / x === 1 / R : x !== x && R !== R;
|
|
4085
4085
|
}
|
|
4086
|
-
function $(
|
|
4087
|
-
this.message =
|
|
4086
|
+
function $(x, R) {
|
|
4087
|
+
this.message = x, this.data = R && typeof R == "object" ? R : {}, this.stack = "";
|
|
4088
4088
|
}
|
|
4089
4089
|
$.prototype = Error.prototype;
|
|
4090
|
-
function f(
|
|
4090
|
+
function f(x) {
|
|
4091
4091
|
if (process.env.NODE_ENV !== "production")
|
|
4092
|
-
var
|
|
4093
|
-
function
|
|
4094
|
-
if (Y = Y || l, ee = ee ||
|
|
4092
|
+
var R = {}, W = 0;
|
|
4093
|
+
function U(A, F, H, Y, te, ee, Ne) {
|
|
4094
|
+
if (Y = Y || l, ee = ee || H, Ne !== n) {
|
|
4095
4095
|
if (u) {
|
|
4096
4096
|
var g = new Error(
|
|
4097
4097
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
4098
4098
|
);
|
|
4099
4099
|
throw g.name = "Invariant Violation", g;
|
|
4100
4100
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
4101
|
-
var
|
|
4102
|
-
!
|
|
4101
|
+
var q = Y + ":" + H;
|
|
4102
|
+
!R[q] && // 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
|
+
), R[q] = !0, W++);
|
|
4106
4106
|
}
|
|
4107
4107
|
}
|
|
4108
|
-
return
|
|
4108
|
+
return F[H] == null ? A ? F[H] === 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 : x(F, H, Y, te, ee);
|
|
4109
4109
|
}
|
|
4110
|
-
var
|
|
4111
|
-
return
|
|
4112
|
-
}
|
|
4113
|
-
function b(
|
|
4114
|
-
function
|
|
4115
|
-
var Y = W[
|
|
4116
|
-
if (te !==
|
|
4117
|
-
var ee =
|
|
4110
|
+
var P = U.bind(null, !1);
|
|
4111
|
+
return P.isRequired = U.bind(null, !0), P;
|
|
4112
|
+
}
|
|
4113
|
+
function b(x) {
|
|
4114
|
+
function R(W, U, P, A, F, H) {
|
|
4115
|
+
var Y = W[U], te = de(Y);
|
|
4116
|
+
if (te !== x) {
|
|
4117
|
+
var ee = K(Y);
|
|
4118
4118
|
return new $(
|
|
4119
|
-
"Invalid " +
|
|
4120
|
-
{ expectedType:
|
|
4119
|
+
"Invalid " + A + " `" + F + "` of type " + ("`" + ee + "` supplied to `" + P + "`, expected ") + ("`" + x + "`."),
|
|
4120
|
+
{ expectedType: x }
|
|
4121
4121
|
);
|
|
4122
4122
|
}
|
|
4123
4123
|
return null;
|
|
4124
4124
|
}
|
|
4125
|
-
return f(
|
|
4125
|
+
return f(R);
|
|
4126
4126
|
}
|
|
4127
|
-
function
|
|
4127
|
+
function E() {
|
|
4128
4128
|
return f(d);
|
|
4129
4129
|
}
|
|
4130
|
-
function
|
|
4131
|
-
function
|
|
4132
|
-
if (typeof
|
|
4133
|
-
return new $("Property `" +
|
|
4134
|
-
var
|
|
4135
|
-
if (!Array.isArray(
|
|
4136
|
-
var Y = de(
|
|
4137
|
-
return new $("Invalid " +
|
|
4130
|
+
function y(x) {
|
|
4131
|
+
function R(W, U, P, A, F) {
|
|
4132
|
+
if (typeof x != "function")
|
|
4133
|
+
return new $("Property `" + F + "` of component `" + P + "` has invalid PropType notation inside arrayOf.");
|
|
4134
|
+
var H = W[U];
|
|
4135
|
+
if (!Array.isArray(H)) {
|
|
4136
|
+
var Y = de(H);
|
|
4137
|
+
return new $("Invalid " + A + " `" + F + "` of type " + ("`" + Y + "` supplied to `" + P + "`, expected an array."));
|
|
4138
4138
|
}
|
|
4139
|
-
for (var te = 0; te <
|
|
4140
|
-
var ee =
|
|
4139
|
+
for (var te = 0; te < H.length; te++) {
|
|
4140
|
+
var ee = x(H, te, P, A, F + "[" + 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
|
|
4153
|
-
return new $("Invalid " +
|
|
4146
|
+
return f(R);
|
|
4147
|
+
}
|
|
4148
|
+
function O() {
|
|
4149
|
+
function x(R, W, U, P, A) {
|
|
4150
|
+
var F = R[W];
|
|
4151
|
+
if (!o(F)) {
|
|
4152
|
+
var H = de(F);
|
|
4153
|
+
return new $("Invalid " + P + " `" + A + "` of type " + ("`" + H + "` supplied to `" + U + "`, 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
|
|
4164
|
-
return new $("Invalid " +
|
|
4157
|
+
return f(x);
|
|
4158
|
+
}
|
|
4159
|
+
function w() {
|
|
4160
|
+
function x(R, W, U, P, A) {
|
|
4161
|
+
var F = R[W];
|
|
4162
|
+
if (!e.isValidElementType(F)) {
|
|
4163
|
+
var H = de(F);
|
|
4164
|
+
return new $("Invalid " + P + " `" + A + "` of type " + ("`" + H + "` supplied to `" + U + "`, expected a single ReactElement type."));
|
|
4165
4165
|
}
|
|
4166
4166
|
return null;
|
|
4167
4167
|
}
|
|
4168
|
-
return f(
|
|
4168
|
+
return f(x);
|
|
4169
4169
|
}
|
|
4170
|
-
function
|
|
4171
|
-
function
|
|
4172
|
-
if (!(W[
|
|
4173
|
-
var
|
|
4174
|
-
return new $("Invalid " +
|
|
4170
|
+
function S(x) {
|
|
4171
|
+
function R(W, U, P, A, F) {
|
|
4172
|
+
if (!(W[U] instanceof x)) {
|
|
4173
|
+
var H = x.name || l, Y = ue(W[U]);
|
|
4174
|
+
return new $("Invalid " + A + " `" + F + "` of type " + ("`" + Y + "` supplied to `" + P + "`, expected ") + ("instance of `" + H + "`."));
|
|
4175
4175
|
}
|
|
4176
4176
|
return null;
|
|
4177
4177
|
}
|
|
4178
|
-
return f(
|
|
4178
|
+
return f(R);
|
|
4179
4179
|
}
|
|
4180
|
-
function
|
|
4181
|
-
if (!Array.isArray(
|
|
4180
|
+
function G(x) {
|
|
4181
|
+
if (!Array.isArray(x))
|
|
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
|
|
4187
|
-
if (c(
|
|
4185
|
+
function R(W, U, P, A, F) {
|
|
4186
|
+
for (var H = W[U], Y = 0; Y < x.length; Y++)
|
|
4187
|
+
if (c(H, x[Y]))
|
|
4188
4188
|
return null;
|
|
4189
|
-
var te = JSON.stringify(
|
|
4190
|
-
var
|
|
4191
|
-
return
|
|
4189
|
+
var te = JSON.stringify(x, function(Ne, g) {
|
|
4190
|
+
var q = K(g);
|
|
4191
|
+
return q === "symbol" ? String(g) : g;
|
|
4192
4192
|
});
|
|
4193
|
-
return new $("Invalid " +
|
|
4193
|
+
return new $("Invalid " + A + " `" + F + "` of value `" + String(H) + "` " + ("supplied to `" + P + "`, expected one of " + te + "."));
|
|
4194
4194
|
}
|
|
4195
|
-
return f(
|
|
4195
|
+
return f(R);
|
|
4196
4196
|
}
|
|
4197
|
-
function
|
|
4198
|
-
function
|
|
4199
|
-
if (typeof
|
|
4200
|
-
return new $("Property `" +
|
|
4201
|
-
var
|
|
4197
|
+
function B(x) {
|
|
4198
|
+
function R(W, U, P, A, F) {
|
|
4199
|
+
if (typeof x != "function")
|
|
4200
|
+
return new $("Property `" + F + "` of component `" + P + "` has invalid PropType notation inside objectOf.");
|
|
4201
|
+
var H = W[U], Y = de(H);
|
|
4202
4202
|
if (Y !== "object")
|
|
4203
|
-
return new $("Invalid " +
|
|
4204
|
-
for (var te in
|
|
4205
|
-
if (r(
|
|
4206
|
-
var ee =
|
|
4203
|
+
return new $("Invalid " + A + " `" + F + "` of type " + ("`" + Y + "` supplied to `" + P + "`, expected an object."));
|
|
4204
|
+
for (var te in H)
|
|
4205
|
+
if (r(H, te)) {
|
|
4206
|
+
var ee = x(H, te, P, A, F + "." + 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(R);
|
|
4213
4213
|
}
|
|
4214
|
-
function
|
|
4215
|
-
if (!Array.isArray(
|
|
4214
|
+
function C(x) {
|
|
4215
|
+
if (!Array.isArray(x))
|
|
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 R = 0; R < x.length; R++) {
|
|
4218
|
+
var W = x[R];
|
|
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 " + R + "."
|
|
4222
4222
|
), d;
|
|
4223
4223
|
}
|
|
4224
|
-
function
|
|
4225
|
-
for (var te = [], ee = 0; ee <
|
|
4226
|
-
var Ne =
|
|
4224
|
+
function U(P, A, F, H, Y) {
|
|
4225
|
+
for (var te = [], ee = 0; ee < x.length; ee++) {
|
|
4226
|
+
var Ne = x[ee], g = Ne(P, A, F, H, 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
|
-
var
|
|
4232
|
-
return new $("Invalid " +
|
|
4231
|
+
var q = te.length > 0 ? ", expected one of type [" + te.join(", ") + "]" : "";
|
|
4232
|
+
return new $("Invalid " + H + " `" + Y + "` supplied to " + ("`" + F + "`" + q + "."));
|
|
4233
4233
|
}
|
|
4234
|
-
return f(
|
|
4234
|
+
return f(U);
|
|
4235
4235
|
}
|
|
4236
|
-
function
|
|
4237
|
-
function
|
|
4238
|
-
return Z(
|
|
4236
|
+
function L() {
|
|
4237
|
+
function x(R, W, U, P, A) {
|
|
4238
|
+
return Z(R[W]) ? null : new $("Invalid " + P + " `" + A + "` supplied to " + ("`" + U + "`, expected a ReactNode."));
|
|
4239
4239
|
}
|
|
4240
|
-
return f(
|
|
4240
|
+
return f(x);
|
|
4241
4241
|
}
|
|
4242
|
-
function ne(
|
|
4242
|
+
function ne(x, R, W, U, P) {
|
|
4243
4243
|
return new $(
|
|
4244
|
-
(
|
|
4244
|
+
(x || "React class") + ": " + R + " type `" + W + "." + U + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + P + "`."
|
|
4245
4245
|
);
|
|
4246
4246
|
}
|
|
4247
|
-
function ie(
|
|
4248
|
-
function
|
|
4249
|
-
var
|
|
4247
|
+
function ie(x) {
|
|
4248
|
+
function R(W, U, P, A, F) {
|
|
4249
|
+
var H = W[U], Y = de(H);
|
|
4250
4250
|
if (Y !== "object")
|
|
4251
|
-
return new $("Invalid " +
|
|
4252
|
-
for (var te in
|
|
4253
|
-
var ee =
|
|
4251
|
+
return new $("Invalid " + A + " `" + F + "` of type `" + Y + "` " + ("supplied to `" + P + "`, expected `object`."));
|
|
4252
|
+
for (var te in x) {
|
|
4253
|
+
var ee = x[te];
|
|
4254
4254
|
if (typeof ee != "function")
|
|
4255
|
-
return ne(
|
|
4256
|
-
var Ne = ee(
|
|
4255
|
+
return ne(P, A, F, te, K(ee));
|
|
4256
|
+
var Ne = ee(H, te, P, A, F + "." + te, n);
|
|
4257
4257
|
if (Ne)
|
|
4258
4258
|
return Ne;
|
|
4259
4259
|
}
|
|
4260
4260
|
return null;
|
|
4261
4261
|
}
|
|
4262
|
-
return f(
|
|
4262
|
+
return f(R);
|
|
4263
4263
|
}
|
|
4264
|
-
function
|
|
4265
|
-
function
|
|
4266
|
-
var
|
|
4264
|
+
function N(x) {
|
|
4265
|
+
function R(W, U, P, A, F) {
|
|
4266
|
+
var H = W[U], Y = de(H);
|
|
4267
4267
|
if (Y !== "object")
|
|
4268
|
-
return new $("Invalid " +
|
|
4269
|
-
var te = t({}, W[
|
|
4268
|
+
return new $("Invalid " + A + " `" + F + "` of type `" + Y + "` " + ("supplied to `" + P + "`, expected `object`."));
|
|
4269
|
+
var te = t({}, W[U], x);
|
|
4270
4270
|
for (var ee in te) {
|
|
4271
|
-
var Ne =
|
|
4272
|
-
if (r(
|
|
4273
|
-
return ne(
|
|
4271
|
+
var Ne = x[ee];
|
|
4272
|
+
if (r(x, ee) && typeof Ne != "function")
|
|
4273
|
+
return ne(P, A, F, ee, K(Ne));
|
|
4274
4274
|
if (!Ne)
|
|
4275
4275
|
return new $(
|
|
4276
|
-
"Invalid " +
|
|
4277
|
-
Valid keys: ` + JSON.stringify(Object.keys(
|
|
4276
|
+
"Invalid " + A + " `" + F + "` key `" + ee + "` supplied to `" + P + "`.\nBad object: " + JSON.stringify(W[U], null, " ") + `
|
|
4277
|
+
Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
|
|
4278
4278
|
);
|
|
4279
|
-
var g = Ne(
|
|
4279
|
+
var g = Ne(H, ee, P, A, F + "." + ee, n);
|
|
4280
4280
|
if (g)
|
|
4281
4281
|
return g;
|
|
4282
4282
|
}
|
|
4283
4283
|
return null;
|
|
4284
4284
|
}
|
|
4285
|
-
return f(
|
|
4285
|
+
return f(R);
|
|
4286
4286
|
}
|
|
4287
|
-
function Z(
|
|
4288
|
-
switch (typeof
|
|
4287
|
+
function Z(x) {
|
|
4288
|
+
switch (typeof x) {
|
|
4289
4289
|
case "number":
|
|
4290
4290
|
case "string":
|
|
4291
4291
|
case "undefined":
|
|
4292
4292
|
return !0;
|
|
4293
4293
|
case "boolean":
|
|
4294
|
-
return !
|
|
4294
|
+
return !x;
|
|
4295
4295
|
case "object":
|
|
4296
|
-
if (Array.isArray(
|
|
4297
|
-
return
|
|
4298
|
-
if (
|
|
4296
|
+
if (Array.isArray(x))
|
|
4297
|
+
return x.every(Z);
|
|
4298
|
+
if (x === null || o(x))
|
|
4299
4299
|
return !0;
|
|
4300
|
-
var
|
|
4301
|
-
if (
|
|
4302
|
-
var W =
|
|
4303
|
-
if (
|
|
4304
|
-
for (; !(
|
|
4305
|
-
if (!Z(
|
|
4300
|
+
var R = m(x);
|
|
4301
|
+
if (R) {
|
|
4302
|
+
var W = R.call(x), U;
|
|
4303
|
+
if (R !== x.entries) {
|
|
4304
|
+
for (; !(U = W.next()).done; )
|
|
4305
|
+
if (!Z(U.value))
|
|
4306
4306
|
return !1;
|
|
4307
4307
|
} else
|
|
4308
|
-
for (; !(
|
|
4309
|
-
var
|
|
4310
|
-
if (
|
|
4308
|
+
for (; !(U = W.next()).done; ) {
|
|
4309
|
+
var P = U.value;
|
|
4310
|
+
if (P && !Z(P[1]))
|
|
4311
4311
|
return !1;
|
|
4312
4312
|
}
|
|
4313
4313
|
} else
|
|
@@ -4317,41 +4317,41 @@ Valid keys: ` + JSON.stringify(Object.keys(O), null, " ")
|
|
|
4317
4317
|
return !1;
|
|
4318
4318
|
}
|
|
4319
4319
|
}
|
|
4320
|
-
function ae(
|
|
4321
|
-
return
|
|
4320
|
+
function ae(x, R) {
|
|
4321
|
+
return x === "symbol" ? !0 : R ? R["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && R instanceof Symbol : !1;
|
|
4322
4322
|
}
|
|
4323
|
-
function de(
|
|
4324
|
-
var
|
|
4325
|
-
return Array.isArray(
|
|
4323
|
+
function de(x) {
|
|
4324
|
+
var R = typeof x;
|
|
4325
|
+
return Array.isArray(x) ? "array" : x instanceof RegExp ? "object" : ae(R, x) ? "symbol" : R;
|
|
4326
4326
|
}
|
|
4327
|
-
function
|
|
4328
|
-
if (typeof
|
|
4329
|
-
return "" +
|
|
4330
|
-
var
|
|
4331
|
-
if (
|
|
4332
|
-
if (
|
|
4327
|
+
function K(x) {
|
|
4328
|
+
if (typeof x > "u" || x === null)
|
|
4329
|
+
return "" + x;
|
|
4330
|
+
var R = de(x);
|
|
4331
|
+
if (R === "object") {
|
|
4332
|
+
if (x instanceof Date)
|
|
4333
4333
|
return "date";
|
|
4334
|
-
if (
|
|
4334
|
+
if (x instanceof RegExp)
|
|
4335
4335
|
return "regexp";
|
|
4336
4336
|
}
|
|
4337
|
-
return
|
|
4337
|
+
return R;
|
|
4338
4338
|
}
|
|
4339
|
-
function ce(
|
|
4340
|
-
var
|
|
4341
|
-
switch (
|
|
4339
|
+
function ce(x) {
|
|
4340
|
+
var R = K(x);
|
|
4341
|
+
switch (R) {
|
|
4342
4342
|
case "array":
|
|
4343
4343
|
case "object":
|
|
4344
|
-
return "an " +
|
|
4344
|
+
return "an " + R;
|
|
4345
4345
|
case "boolean":
|
|
4346
4346
|
case "date":
|
|
4347
4347
|
case "regexp":
|
|
4348
|
-
return "a " +
|
|
4348
|
+
return "a " + R;
|
|
4349
4349
|
default:
|
|
4350
|
-
return
|
|
4350
|
+
return R;
|
|
4351
4351
|
}
|
|
4352
4352
|
}
|
|
4353
|
-
function ue(
|
|
4354
|
-
return !
|
|
4353
|
+
function ue(x) {
|
|
4354
|
+
return !x.constructor || !x.constructor.name ? l : x.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 _ = /* @__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__ */ k.createElement(r, c);
|
|
4793
4793
|
}
|
|
4794
|
-
Nn = /* @__PURE__ */
|
|
4794
|
+
Nn = /* @__PURE__ */ k.forwardRef(Nn);
|
|
4795
4795
|
Nn.propTypes = {
|
|
4796
4796
|
// Parses a single characher of `<input/>` text.
|
|
4797
|
-
parse:
|
|
4797
|
+
parse: _.func.isRequired,
|
|
4798
4798
|
// Formats `value` into `<input/>` text.
|
|
4799
|
-
format:
|
|
4799
|
+
format: _.func.isRequired,
|
|
4800
4800
|
// Renders `<input/>` by default.
|
|
4801
|
-
inputComponent:
|
|
4801
|
+
inputComponent: _.elementType,
|
|
4802
4802
|
// `<input/>` `type` attribute.
|
|
4803
|
-
type:
|
|
4803
|
+
type: _.string,
|
|
4804
4804
|
// Is parsed from <input/> text.
|
|
4805
|
-
value:
|
|
4805
|
+
value: _.string,
|
|
4806
4806
|
// An initial value for an "uncontrolled" <input/>.
|
|
4807
|
-
defaultValue:
|
|
4807
|
+
defaultValue: _.string,
|
|
4808
4808
|
// This handler is called each time `<input/>` text is changed.
|
|
4809
|
-
onChange:
|
|
4809
|
+
onChange: _.func,
|
|
4810
4810
|
// Whether this input should be "controlled" or "uncontrolled".
|
|
4811
4811
|
// The default value is `true` meaning "uncontrolled".
|
|
4812
|
-
controlled:
|
|
4812
|
+
controlled: _.bool,
|
|
4813
4813
|
// Passthrough
|
|
4814
|
-
onKeyDown:
|
|
4815
|
-
onCut:
|
|
4816
|
-
onPaste:
|
|
4814
|
+
onKeyDown: _.func,
|
|
4815
|
+
onCut: _.func,
|
|
4816
|
+
onPaste: _.func
|
|
4817
4817
|
};
|
|
4818
4818
|
const ac = Nn;
|
|
4819
4819
|
function Hi(e, t) {
|
|
@@ -5608,8 +5608,8 @@ var Lc = ";ext=", Dt = function(t) {
|
|
|
5608
5608
|
return "([".concat(Ue, "]{1,").concat(t, "})");
|
|
5609
5609
|
};
|
|
5610
5610
|
function _o(e) {
|
|
5611
|
-
var t = "20", n = "15", r = "9", i = "6", a = "[ \\t,]*", d = "[:\\..]?[ \\t,-]*", o = "#?", u = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", s = "(?:[xx##~~]|int|int)", v = "[- ]+", m = "[ \\t]*", l = "(?:,{2}|;)", p = Lc + Dt(t), c = a + u + d + Dt(t) + o, $ = a + s + d + Dt(r) + o, f = v + Dt(i) + "#", b = m + l + d + Dt(n) + o,
|
|
5612
|
-
return p + "|" + c + "|" + $ + "|" + f + "|" + b + "|" +
|
|
5611
|
+
var t = "20", n = "15", r = "9", i = "6", a = "[ \\t,]*", d = "[:\\..]?[ \\t,-]*", o = "#?", u = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", s = "(?:[xx##~~]|int|int)", v = "[- ]+", m = "[ \\t]*", l = "(?:,{2}|;)", p = Lc + Dt(t), c = a + u + d + Dt(t) + o, $ = a + s + d + Dt(r) + o, f = v + Dt(i) + "#", b = m + l + d + Dt(n) + o, E = m + "(?:,)+" + d + Dt(r) + o;
|
|
5612
|
+
return p + "|" + c + "|" + $ + "|" + f + "|" + b + "|" + E;
|
|
5613
5613
|
}
|
|
5614
5614
|
var Dc = "[" + Ue + "]{" + ni + "}", Mc = "[" + Vn + "]{0,1}(?:[" + at + "]*[" + Ue + "]){3,}[" + at + Ue + "]*", Bc = new RegExp("^[" + Vn + "]{0,1}(?:[" + at + "]*[" + Ue + "]){1,2}$", "i"), Uc = Mc + // Phone number extensions
|
|
5615
5615
|
"(?:" + _o() + ")?", Wc = new RegExp(
|
|
@@ -7975,14 +7975,14 @@ function a4(e) {
|
|
|
7975
7975
|
onKeyDown: i,
|
|
7976
7976
|
inputFormat: d
|
|
7977
7977
|
});
|
|
7978
|
-
return /* @__PURE__ */
|
|
7978
|
+
return /* @__PURE__ */ k.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__ */ k.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: _.string.isRequired,
|
|
7994
7994
|
/**
|
|
7995
7995
|
* A function of `value: string`.
|
|
7996
7996
|
* Updates the `value` property.
|
|
7997
7997
|
*/
|
|
7998
|
-
onChange:
|
|
7998
|
+
onChange: _.func.isRequired,
|
|
7999
7999
|
/**
|
|
8000
8000
|
* A function of `event: Event`.
|
|
8001
8001
|
* Handles `keydown` events.
|
|
8002
8002
|
*/
|
|
8003
|
-
onKeyDown:
|
|
8003
|
+
onKeyDown: _.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: _.string,
|
|
8016
8016
|
/**
|
|
8017
8017
|
* The format that the input field value is being input/output in.
|
|
8018
8018
|
*/
|
|
8019
|
-
inputFormat:
|
|
8019
|
+
inputFormat: _.oneOf(["INTERNATIONAL", "NATIONAL_PART_OF_INTERNATIONAL", "NATIONAL", "INTERNATIONAL_OR_NATIONAL"]).isRequired,
|
|
8020
8020
|
/**
|
|
8021
8021
|
* `libphonenumber-js` metadata.
|
|
8022
8022
|
*/
|
|
8023
|
-
metadata:
|
|
8023
|
+
metadata: _.object
|
|
8024
8024
|
}, t;
|
|
8025
8025
|
}
|
|
8026
8026
|
const d4 = a4();
|
|
@@ -8063,24 +8063,24 @@ function s4(e) {
|
|
|
8063
8063
|
country: o,
|
|
8064
8064
|
metadata: v
|
|
8065
8065
|
}), $ = Ye(function(b) {
|
|
8066
|
-
var
|
|
8067
|
-
if (
|
|
8068
|
-
var
|
|
8069
|
-
|
|
8066
|
+
var E = Sr(b.target.value);
|
|
8067
|
+
if (E === i) {
|
|
8068
|
+
var y = ja(c, E, o, v);
|
|
8069
|
+
y.indexOf(b.target.value) === 0 && (E = E.slice(0, -1));
|
|
8070
8070
|
}
|
|
8071
|
-
a(
|
|
8071
|
+
a(E);
|
|
8072
8072
|
}, [c, i, a, o, v]), f = Go({
|
|
8073
8073
|
onKeyDown: d,
|
|
8074
8074
|
inputFormat: u
|
|
8075
8075
|
});
|
|
8076
|
-
return /* @__PURE__ */
|
|
8076
|
+
return /* @__PURE__ */ k.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__ */ k.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: _.string.isRequired,
|
|
8092
8092
|
/**
|
|
8093
8093
|
* A function of `value: string`.
|
|
8094
8094
|
* Updates the `value` property.
|
|
8095
8095
|
*/
|
|
8096
|
-
onChange:
|
|
8096
|
+
onChange: _.func.isRequired,
|
|
8097
8097
|
/**
|
|
8098
8098
|
* A function of `event: Event`.
|
|
8099
8099
|
* Handles `keydown` events.
|
|
8100
8100
|
*/
|
|
8101
|
-
onKeyDown:
|
|
8101
|
+
onKeyDown: _.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: _.string,
|
|
8114
8114
|
/**
|
|
8115
8115
|
* The format that the input field value is being input/output in.
|
|
8116
8116
|
*/
|
|
8117
|
-
inputFormat:
|
|
8117
|
+
inputFormat: _.oneOf(["INTERNATIONAL", "NATIONAL_PART_OF_INTERNATIONAL", "NATIONAL", "INTERNATIONAL_OR_NATIONAL"]).isRequired,
|
|
8118
8118
|
/**
|
|
8119
8119
|
* `libphonenumber-js` metadata.
|
|
8120
8120
|
*/
|
|
8121
|
-
metadata:
|
|
8121
|
+
metadata: _.object,
|
|
8122
8122
|
/**
|
|
8123
8123
|
* The `<input/>` component.
|
|
8124
8124
|
*/
|
|
8125
|
-
inputComponent:
|
|
8125
|
+
inputComponent: _.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__ */ k.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__ */ k.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: _.string,
|
|
8227
8227
|
/**
|
|
8228
8228
|
* A function of `value: string`.
|
|
8229
8229
|
* Updates the `value` property.
|
|
8230
8230
|
*/
|
|
8231
|
-
onChange:
|
|
8231
|
+
onChange: _.func.isRequired,
|
|
8232
8232
|
// `<select/>` options.
|
|
8233
|
-
options:
|
|
8234
|
-
value:
|
|
8235
|
-
label:
|
|
8236
|
-
divider:
|
|
8233
|
+
options: _.arrayOf(_.shape({
|
|
8234
|
+
value: _.string,
|
|
8235
|
+
label: _.string,
|
|
8236
|
+
divider: _.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: _.bool,
|
|
8244
|
+
readOnly: _.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__ */ k.createElement("div", {
|
|
8258
8258
|
className: "PhoneInputCountry"
|
|
8259
|
-
}, /* @__PURE__ */
|
|
8259
|
+
}, /* @__PURE__ */ k.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__ */ k.createElement("div", {
|
|
8264
8264
|
className: "PhoneInputCountryIconUnicode"
|
|
8265
|
-
}, f4(t)) : /* @__PURE__ */
|
|
8265
|
+
}, f4(t)) : /* @__PURE__ */ k.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__ */ k.createElement(d, null));
|
|
8271
8271
|
}
|
|
8272
8272
|
qo.propTypes = {
|
|
8273
8273
|
// Country flag component.
|
|
8274
|
-
iconComponent:
|
|
8274
|
+
iconComponent: _.elementType,
|
|
8275
8275
|
// Select arrow component.
|
|
8276
|
-
arrowComponent:
|
|
8276
|
+
arrowComponent: _.elementType,
|
|
8277
8277
|
// Set to `true` to render Unicode flag icons instead of SVG images.
|
|
8278
|
-
unicodeFlags:
|
|
8278
|
+
unicodeFlags: _.bool
|
|
8279
8279
|
};
|
|
8280
8280
|
function g4() {
|
|
8281
|
-
return /* @__PURE__ */
|
|
8281
|
+
return /* @__PURE__ */ k.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__ */ k.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: _.string.isRequired,
|
|
8339
8339
|
// Will be HTML `title` attribute of the `<img/>`.
|
|
8340
|
-
countryName:
|
|
8340
|
+
countryName: _.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: _.objectOf(_.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: _.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__ */ k.createElement(Zo, n) : /* @__PURE__ */ k.createElement(zo, n);
|
|
8386
8386
|
}
|
|
8387
8387
|
Gn.propTypes = {
|
|
8388
|
-
title:
|
|
8389
|
-
aspectRatio:
|
|
8388
|
+
title: _.string.isRequired,
|
|
8389
|
+
aspectRatio: _.number
|
|
8390
8390
|
};
|
|
8391
8391
|
function zo(e) {
|
|
8392
8392
|
var t = e.title, n = ai(e, P4);
|
|
8393
|
-
return /* @__PURE__ */
|
|
8393
|
+
return /* @__PURE__ */ k.createElement("svg", An({}, n, {
|
|
8394
8394
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8395
8395
|
viewBox: "0 0 75 50"
|
|
8396
|
-
}), /* @__PURE__ */
|
|
8396
|
+
}), /* @__PURE__ */ k.createElement("title", null, t), /* @__PURE__ */ k.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__ */ k.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__ */ k.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__ */ k.createElement("line", {
|
|
8408
8408
|
x1: "26",
|
|
8409
8409
|
y1: "25",
|
|
8410
8410
|
x2: "74",
|
|
8411
8411
|
y2: "25"
|
|
8412
|
-
}), /* @__PURE__ */
|
|
8412
|
+
}), /* @__PURE__ */ k.createElement("line", {
|
|
8413
8413
|
x1: "50",
|
|
8414
8414
|
y1: "1",
|
|
8415
8415
|
x2: "50",
|
|
8416
8416
|
y2: "49"
|
|
8417
|
-
}), /* @__PURE__ */
|
|
8417
|
+
}), /* @__PURE__ */ k.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__ */ k.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__ */ k.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: _.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__ */ k.createElement("svg", An({}, n, {
|
|
8436
8436
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8437
8437
|
viewBox: "0 0 50 50"
|
|
8438
|
-
}), /* @__PURE__ */
|
|
8438
|
+
}), /* @__PURE__ */ k.createElement("title", null, t), /* @__PURE__ */ k.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__ */ k.createElement("path", {
|
|
8445
8445
|
d: "M8.45,13A21.44,21.44,0,1,1,37.08,41.56"
|
|
8446
|
-
}), /* @__PURE__ */
|
|
8446
|
+
}), /* @__PURE__ */ k.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__ */ k.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__ */ k.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__ */ k.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__ */ k.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__ */ k.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: _.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__ */ k.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__ */ k.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__ */ k.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: _.string,
|
|
8615
|
+
label: _.string.isRequired,
|
|
8616
|
+
aspectRatio: _.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 = _.shape({
|
|
8666
|
+
country_calling_codes: _.object.isRequired,
|
|
8667
|
+
countries: _.object.isRequired
|
|
8668
|
+
}), t0 = _.objectOf(_.string);
|
|
8669
8669
|
function ht(e, t) {
|
|
8670
8670
|
var n = "+" + yt(e, t);
|
|
8671
8671
|
return n;
|
|
@@ -8922,7 +8922,7 @@ function Q4(e, t, n) {
|
|
|
8922
8922
|
hasUserSelectedACountry: void 0
|
|
8923
8923
|
};
|
|
8924
8924
|
if (a !== m) {
|
|
8925
|
-
var
|
|
8925
|
+
var E = !a || Hn(a, r), y = (
|
|
8926
8926
|
// By default, "no value has been entered" means `value` is `undefined`.
|
|
8927
8927
|
!c || // When `international` is `true`, and some country has been pre-selected,
|
|
8928
8928
|
// then the `<input/>` contains a pre-filled value of `+${countryCallingCode}${leadingDigits}`,
|
|
@@ -8932,8 +8932,8 @@ function Q4(e, t, n) {
|
|
|
8932
8932
|
value: void 0,
|
|
8933
8933
|
defaultCountry: m
|
|
8934
8934
|
})
|
|
8935
|
-
),
|
|
8936
|
-
if (!$ &&
|
|
8935
|
+
), O = !d && y;
|
|
8936
|
+
if (!$ && E && O)
|
|
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 w, S;
|
|
8954
8954
|
if (d) {
|
|
8955
|
-
d && Xo(d),
|
|
8956
|
-
var
|
|
8957
|
-
|
|
8955
|
+
d && Xo(d), w = n0(d, r);
|
|
8956
|
+
var G = Jo(i, r);
|
|
8957
|
+
w && w.country ? (!G || G.indexOf(w.country) >= 0) && (S = w.country) : (S = r0(d, {
|
|
8958
8958
|
country: void 0,
|
|
8959
|
-
countries:
|
|
8959
|
+
countries: G,
|
|
8960
8960
|
metadata: r
|
|
8961
|
-
}),
|
|
8961
|
+
}), S || a && d.indexOf(ht(a, r)) === 0 && (S = a));
|
|
8962
8962
|
}
|
|
8963
|
-
var
|
|
8963
|
+
var B;
|
|
8964
8964
|
if (d) {
|
|
8965
8965
|
if (f) {
|
|
8966
|
-
var
|
|
8967
|
-
|
|
8966
|
+
var C = S ? f === S : Wt(d, f, r);
|
|
8967
|
+
C ? S || (S = f) : B = {
|
|
8968
8968
|
latestCountrySelectedByUser: void 0
|
|
8969
8969
|
};
|
|
8970
8970
|
}
|
|
8971
8971
|
} else
|
|
8972
|
-
|
|
8972
|
+
B = {
|
|
8973
8973
|
latestCountrySelectedByUser: void 0,
|
|
8974
8974
|
hasUserSelectedACountry: void 0
|
|
8975
8975
|
};
|
|
8976
|
-
return bn(bn({},
|
|
8976
|
+
return bn(bn({}, B), {}, {
|
|
8977
8977
|
phoneDigits: b({
|
|
8978
|
-
phoneNumber:
|
|
8978
|
+
phoneNumber: w,
|
|
8979
8979
|
value: d,
|
|
8980
8980
|
defaultCountry: a
|
|
8981
8981
|
}),
|
|
8982
8982
|
value: d,
|
|
8983
|
-
country: d ?
|
|
8983
|
+
country: d ? S : a
|
|
8984
8984
|
});
|
|
8985
8985
|
}
|
|
8986
8986
|
}
|
|
@@ -9127,53 +9127,53 @@ 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,
|
|
9131
|
-
prevCountry:
|
|
9130
|
+
var b = r.props, E = b.international, y = b.metadata, O = b.onChange, w = b.focusInputOnCountrySelection, S = r.state, G = S.phoneDigits, B = S.country, C = V4(G, {
|
|
9131
|
+
prevCountry: B,
|
|
9132
9132
|
newCountry: f,
|
|
9133
|
-
metadata:
|
|
9133
|
+
metadata: y,
|
|
9134
9134
|
// Convert the phone number to "national" format
|
|
9135
9135
|
// when the user changes the selected country by hand.
|
|
9136
|
-
useNationalFormat: !
|
|
9137
|
-
}),
|
|
9138
|
-
|
|
9136
|
+
useNationalFormat: !E
|
|
9137
|
+
}), L = Bt(C, f, y);
|
|
9138
|
+
w && r.inputRef.current.focus(), r.setState({
|
|
9139
9139
|
country: f,
|
|
9140
9140
|
latestCountrySelectedByUser: f,
|
|
9141
9141
|
hasUserSelectedACountry: !0,
|
|
9142
|
-
phoneDigits:
|
|
9143
|
-
value:
|
|
9142
|
+
phoneDigits: C,
|
|
9143
|
+
value: L
|
|
9144
9144
|
}, function() {
|
|
9145
|
-
|
|
9145
|
+
O(L);
|
|
9146
9146
|
});
|
|
9147
9147
|
}), tt(r, "onChange", function(f) {
|
|
9148
|
-
var b = r.props,
|
|
9148
|
+
var b = r.props, E = b.defaultCountry, y = b.onChange, O = b.addInternationalOption, w = b.international, S = b.limitMaxLength, G = b.countryCallingCodeEditable, B = b.metadata, C = r.state, L = C.countries, ne = C.phoneDigits, ie = C.country, N = C.latestCountrySelectedByUser, Z = K4(f, {
|
|
9149
9149
|
prevPhoneDigits: ne,
|
|
9150
9150
|
country: ie,
|
|
9151
|
-
countryRequired: !
|
|
9152
|
-
defaultCountry:
|
|
9153
|
-
latestCountrySelectedByUser:
|
|
9151
|
+
countryRequired: !O,
|
|
9152
|
+
defaultCountry: E,
|
|
9153
|
+
latestCountrySelectedByUser: N,
|
|
9154
9154
|
getAnyCountry: function() {
|
|
9155
9155
|
return r.getFirstSupportedCountry({
|
|
9156
|
-
countries:
|
|
9156
|
+
countries: L
|
|
9157
9157
|
});
|
|
9158
9158
|
},
|
|
9159
|
-
countries:
|
|
9160
|
-
international:
|
|
9161
|
-
limitMaxLength:
|
|
9162
|
-
countryCallingCodeEditable:
|
|
9163
|
-
metadata:
|
|
9164
|
-
}), ae = Z.phoneDigits, de = Z.country,
|
|
9159
|
+
countries: L,
|
|
9160
|
+
international: w,
|
|
9161
|
+
limitMaxLength: S,
|
|
9162
|
+
countryCallingCodeEditable: G,
|
|
9163
|
+
metadata: B
|
|
9164
|
+
}), ae = Z.phoneDigits, de = Z.country, K = Z.value, ce = {
|
|
9165
9165
|
phoneDigits: ae,
|
|
9166
|
-
value:
|
|
9166
|
+
value: K,
|
|
9167
9167
|
country: de
|
|
9168
9168
|
};
|
|
9169
|
-
|
|
9169
|
+
N && K && !Wt(K, N, B) && (ce.latestCountrySelectedByUser = void 0), G === !1 && !K && 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
|
|
9173
9173
|
// because `onChange()` will trigger `getDerivedStateFromProps()`
|
|
9174
9174
|
// with the new `value` which will be compared to `state.value` there.
|
|
9175
9175
|
function() {
|
|
9176
|
-
return
|
|
9176
|
+
return y(K);
|
|
9177
9177
|
}
|
|
9178
9178
|
);
|
|
9179
9179
|
}), tt(r, "_onFocus", function() {
|
|
@@ -9195,17 +9195,17 @@ var cf = /* @__PURE__ */ function(e) {
|
|
|
9195
9195
|
r._onFocus();
|
|
9196
9196
|
var b = r.props.countrySelectProps;
|
|
9197
9197
|
if (b) {
|
|
9198
|
-
var
|
|
9199
|
-
|
|
9198
|
+
var E = b.onFocus;
|
|
9199
|
+
E && E(f);
|
|
9200
9200
|
}
|
|
9201
9201
|
}), tt(r, "onCountryBlur", function(f) {
|
|
9202
9202
|
r._onBlur();
|
|
9203
9203
|
var b = r.props.countrySelectProps;
|
|
9204
9204
|
if (b) {
|
|
9205
|
-
var
|
|
9206
|
-
|
|
9205
|
+
var E = b.onBlur;
|
|
9206
|
+
E && E(f);
|
|
9207
9207
|
}
|
|
9208
|
-
}), r.inputRef = /* @__PURE__ */
|
|
9208
|
+
}), r.inputRef = /* @__PURE__ */ k.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;
|
|
@@ -9313,23 +9313,23 @@ var cf = /* @__PURE__ */ function(e) {
|
|
|
9313
9313
|
r.defaultCountry, r.countries, r.countryOptionsOrder;
|
|
9314
9314
|
var b = r.labels;
|
|
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
|
-
var
|
|
9316
|
+
var E = r.metadata, y = r.international;
|
|
9317
9317
|
r.locales;
|
|
9318
|
-
var
|
|
9319
|
-
countries:
|
|
9318
|
+
var O = tf(r, ef), w = this.state, S = w.country, G = w.countries, B = w.phoneDigits, C = w.isFocused, L = l ? d4 : c4, ne = this.getCountrySelectOptions({
|
|
9319
|
+
countries: G
|
|
9320
9320
|
});
|
|
9321
|
-
return /* @__PURE__ */
|
|
9321
|
+
return /* @__PURE__ */ k.createElement($, Vt({
|
|
9322
9322
|
style: u,
|
|
9323
9323
|
className: En(s, "PhoneInput", {
|
|
9324
|
-
"PhoneInput--focus":
|
|
9324
|
+
"PhoneInput--focus": C,
|
|
9325
9325
|
"PhoneInput--disabled": a,
|
|
9326
9326
|
"PhoneInput--readOnly": d
|
|
9327
9327
|
})
|
|
9328
|
-
}, f), /* @__PURE__ */
|
|
9328
|
+
}, f), /* @__PURE__ */ k.createElement(p, Vt({
|
|
9329
9329
|
name: i ? "".concat(i, "Country") : void 0,
|
|
9330
9330
|
"aria-label": b.country
|
|
9331
9331
|
}, c, {
|
|
9332
|
-
value:
|
|
9332
|
+
value: S,
|
|
9333
9333
|
options: ne,
|
|
9334
9334
|
onChange: this.onCountryChange,
|
|
9335
9335
|
onFocus: this.onCountryFocus,
|
|
@@ -9337,25 +9337,25 @@ var cf = /* @__PURE__ */ function(e) {
|
|
|
9337
9337
|
disabled: a || c && c.disabled,
|
|
9338
9338
|
readOnly: d || c && c.readOnly,
|
|
9339
9339
|
iconComponent: this.CountryIcon
|
|
9340
|
-
})), /* @__PURE__ */
|
|
9340
|
+
})), /* @__PURE__ */ k.createElement(L, Vt({
|
|
9341
9341
|
ref: this.setInputRef,
|
|
9342
9342
|
type: "tel",
|
|
9343
9343
|
autoComplete: o
|
|
9344
|
-
}, m,
|
|
9345
|
-
inputFormat:
|
|
9346
|
-
international:
|
|
9347
|
-
withCountryCallingCode:
|
|
9344
|
+
}, m, O, {
|
|
9345
|
+
inputFormat: y === !0 ? "INTERNATIONAL" : y === !1 ? "NATIONAL" : "INTERNATIONAL_OR_NATIONAL",
|
|
9346
|
+
international: y ? !0 : void 0,
|
|
9347
|
+
withCountryCallingCode: y ? !0 : void 0,
|
|
9348
9348
|
name: i,
|
|
9349
|
-
metadata:
|
|
9350
|
-
country:
|
|
9351
|
-
value:
|
|
9349
|
+
metadata: E,
|
|
9350
|
+
country: S,
|
|
9351
|
+
value: B || "",
|
|
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, O.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
|
+
}(k.PureComponent), l0 = /* @__PURE__ */ k.forwardRef(function(e, t) {
|
|
9378
|
+
return /* @__PURE__ */ k.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: _.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: _.func.isRequired,
|
|
9401
9401
|
/**
|
|
9402
9402
|
* Toggles the `--focus` CSS class.
|
|
9403
9403
|
* @ignore
|
|
9404
9404
|
*/
|
|
9405
|
-
onFocus:
|
|
9405
|
+
onFocus: _.func,
|
|
9406
9406
|
/**
|
|
9407
9407
|
* `onBlur` is usually passed by `redux-form`.
|
|
9408
9408
|
* @ignore
|
|
9409
9409
|
*/
|
|
9410
|
-
onBlur:
|
|
9410
|
+
onBlur: _.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: _.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: _.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: _.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: _.oneOf(["national"]),
|
|
9464
9464
|
// `displayInitialValueAsLocalNumber` property has been
|
|
9465
9465
|
// superceded by `initialValueFormat` property.
|
|
9466
|
-
displayInitialValueAsLocalNumber:
|
|
9466
|
+
displayInitialValueAsLocalNumber: _.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: _.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: _.arrayOf(_.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: _.oneOfType([_.string, _.arrayOf(_.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: _.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: _.objectOf(_.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: _.elementType,
|
|
9565
9565
|
/**
|
|
9566
9566
|
* Set to `false` to remove the "International" option from country `<select/>`.
|
|
9567
9567
|
*/
|
|
9568
|
-
addInternationalOption:
|
|
9568
|
+
addInternationalOption: _.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: _.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: _.arrayOf(_.string),
|
|
9591
9591
|
/**
|
|
9592
9592
|
* `<Phone/>` component CSS style object.
|
|
9593
9593
|
*/
|
|
9594
|
-
style:
|
|
9594
|
+
style: _.object,
|
|
9595
9595
|
/**
|
|
9596
9596
|
* `<Phone/>` component CSS class.
|
|
9597
9597
|
*/
|
|
9598
|
-
className:
|
|
9598
|
+
className: _.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: _.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: _.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: _.elementType,
|
|
9637
9637
|
/**
|
|
9638
9638
|
* Phone number `<input/>` component props.
|
|
9639
9639
|
*/
|
|
9640
|
-
numberInputProps:
|
|
9640
|
+
numberInputProps: _.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: _.elementType,
|
|
9650
9650
|
/**
|
|
9651
9651
|
* Wrapping `<div/>` component props.
|
|
9652
9652
|
*/
|
|
9653
|
-
containerComponentProps:
|
|
9653
|
+
containerComponentProps: _.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: _.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: _.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: _.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: _.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: _.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: _.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: _.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__ */ k.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__ */ k.createElement(pf, Dr({}, u, {
|
|
10100
10100
|
ref: r,
|
|
10101
10101
|
metadata: a,
|
|
10102
10102
|
labels: o
|
|
@@ -10132,90 +10132,91 @@ const Tf = ({
|
|
|
10132
10132
|
validate: d = !0,
|
|
10133
10133
|
id: o = "",
|
|
10134
10134
|
phoneNumberValue: u = "",
|
|
10135
|
-
countryCodeFromURL: s = ""
|
|
10135
|
+
countryCodeFromURL: s = "",
|
|
10136
|
+
additionalClassName: v = ""
|
|
10136
10137
|
}) => {
|
|
10137
|
-
const [
|
|
10138
|
+
const [m, l] = be(a), c = D(
|
|
10138
10139
|
e && e !== "001" ? e : "US"
|
|
10139
10140
|
);
|
|
10140
10141
|
pe(() => {
|
|
10141
10142
|
if (s) {
|
|
10142
|
-
const
|
|
10143
|
-
|
|
10143
|
+
const C = E(s);
|
|
10144
|
+
C && (O(C), c.current = s);
|
|
10144
10145
|
}
|
|
10145
10146
|
}, [s]);
|
|
10146
|
-
const
|
|
10147
|
-
label:
|
|
10148
|
-
value:
|
|
10149
|
-
})),
|
|
10150
|
-
const
|
|
10151
|
-
return
|
|
10152
|
-
}),
|
|
10153
|
-
|
|
10154
|
-
const
|
|
10155
|
-
|
|
10156
|
-
},
|
|
10157
|
-
const
|
|
10158
|
-
if (
|
|
10159
|
-
if (/^(\d)\1*$/.test(
|
|
10147
|
+
const $ = (C, L) => JSON.stringify(C) === JSON.stringify(L), f = (C, L) => Mt[C] < Mt[L] ? -1 : Mt[C] > Mt[L] ? 1 : 0, b = gf().sort(f).map((C) => ({
|
|
10148
|
+
label: C + " +" + cr(C),
|
|
10149
|
+
value: C
|
|
10150
|
+
})), E = (C) => b.find((L) => L.value == C), [y, O] = be(() => {
|
|
10151
|
+
const C = E(c.current);
|
|
10152
|
+
return C || null;
|
|
10153
|
+
}), w = (C) => {
|
|
10154
|
+
c.current = C;
|
|
10155
|
+
const L = E(C);
|
|
10156
|
+
O(L), B(S.current);
|
|
10157
|
+
}, S = D(u ?? ""), G = (C) => {
|
|
10158
|
+
const L = C.trim();
|
|
10159
|
+
if (L && c.current) {
|
|
10160
|
+
if (/^(\d)\1*$/.test(C.trim()))
|
|
10160
10161
|
return !1;
|
|
10161
|
-
const
|
|
10162
|
-
|
|
10163
|
-
)}${
|
|
10164
|
-
return bf(
|
|
10162
|
+
const N = `+${cr(
|
|
10163
|
+
c.current
|
|
10164
|
+
)}${L}`;
|
|
10165
|
+
return bf(N);
|
|
10165
10166
|
}
|
|
10166
10167
|
return !0;
|
|
10167
|
-
},
|
|
10168
|
+
}, B = (C) => {
|
|
10168
10169
|
if (!d) {
|
|
10169
|
-
const
|
|
10170
|
-
phoneNumber:
|
|
10171
|
-
countryCode:
|
|
10170
|
+
const ie = {
|
|
10171
|
+
phoneNumber: C,
|
|
10172
|
+
countryCode: c.current,
|
|
10172
10173
|
error: void 0,
|
|
10173
10174
|
id: o
|
|
10174
10175
|
};
|
|
10175
|
-
r(
|
|
10176
|
-
}
|
|
10177
|
-
|
|
10178
|
-
const
|
|
10179
|
-
|
|
10180
|
-
const
|
|
10181
|
-
phoneNumber:
|
|
10182
|
-
countryCode:
|
|
10183
|
-
error:
|
|
10176
|
+
r(ie);
|
|
10177
|
+
}
|
|
10178
|
+
C = C.trim();
|
|
10179
|
+
const L = C ? G(C) ? void 0 : "invalid" : t ? "required" : void 0;
|
|
10180
|
+
l(!(!m && L !== void 0));
|
|
10181
|
+
const ne = {
|
|
10182
|
+
phoneNumber: C,
|
|
10183
|
+
countryCode: c.current,
|
|
10184
|
+
error: L,
|
|
10184
10185
|
id: o
|
|
10185
10186
|
};
|
|
10186
|
-
r(
|
|
10187
|
+
r(ne);
|
|
10187
10188
|
};
|
|
10188
|
-
return /* @__PURE__ */
|
|
10189
|
-
/* @__PURE__ */
|
|
10190
|
-
}, "data-testid": "phone-select-options", children:
|
|
10189
|
+
return /* @__PURE__ */ T.jsx(T.Fragment, { children: /* @__PURE__ */ T.jsxs("div", { className: `${Ot.phoneWrapper} ${v?.trim() || ""}`, "data-testid": "phone-wrapper", children: [
|
|
10190
|
+
/* @__PURE__ */ T.jsx("div", { className: Ot.countryCode, children: /* @__PURE__ */ T.jsx(Xs, { selected: y, onSelect: w, "data-testid": "phone-select", themeColor: n, children: /* @__PURE__ */ T.jsx("div", { className: Ot.phonNumberList, children: /* @__PURE__ */ T.jsx(Js, { setQuery: () => {
|
|
10191
|
+
}, "data-testid": "phone-select-options", children: b.map((C) => /* @__PURE__ */ T.jsx(
|
|
10191
10192
|
vo,
|
|
10192
10193
|
{
|
|
10193
10194
|
disable: !1,
|
|
10194
|
-
value:
|
|
10195
|
-
className: ({ active:
|
|
10196
|
-
"data-testid": `phone-select-option-${
|
|
10197
|
-
children: /* @__PURE__ */
|
|
10198
|
-
Mt[
|
|
10195
|
+
value: C.value,
|
|
10196
|
+
className: ({ active: L }) => `${L || $(y, C) ? Ot.active : ""}`,
|
|
10197
|
+
"data-testid": `phone-select-option-${C.value}`,
|
|
10198
|
+
children: /* @__PURE__ */ T.jsx("div", { className: Ot.countryListText, children: /* @__PURE__ */ T.jsxs("span", { children: [
|
|
10199
|
+
Mt[C.value],
|
|
10199
10200
|
" +",
|
|
10200
|
-
cr(
|
|
10201
|
+
cr(C.value)
|
|
10201
10202
|
] }) })
|
|
10202
10203
|
},
|
|
10203
|
-
|
|
10204
|
+
C.value
|
|
10204
10205
|
)) }) }) }) }),
|
|
10205
|
-
/* @__PURE__ */
|
|
10206
|
+
/* @__PURE__ */ T.jsx("div", { className: Ot.phoneInputWrap, children: /* @__PURE__ */ T.jsx(
|
|
10206
10207
|
f2,
|
|
10207
10208
|
{
|
|
10208
10209
|
type: "text",
|
|
10209
10210
|
"aria-labelledby": "phone-number",
|
|
10210
10211
|
placeholder: i,
|
|
10211
|
-
className: `${Ot.phoneInput} ${
|
|
10212
|
+
className: `${Ot.phoneInput} ${m && d ? Ot.serverError : ""}`,
|
|
10212
10213
|
id: o,
|
|
10213
10214
|
value: u ?? "",
|
|
10214
|
-
onBlur: (
|
|
10215
|
-
|
|
10215
|
+
onBlur: (C) => {
|
|
10216
|
+
S.current = C.target.value.trim();
|
|
10216
10217
|
},
|
|
10217
|
-
onChange: (
|
|
10218
|
-
|
|
10218
|
+
onChange: (C) => {
|
|
10219
|
+
S.current = C.target.value, B(S.current);
|
|
10219
10220
|
},
|
|
10220
10221
|
"data-testid": "phone-input",
|
|
10221
10222
|
themeColor: n
|