@paynext/sdk 0.0.91 → 0.0.93
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/assets/index.css +1 -1
- package/dist/index.es.js +59 -33
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +21 -17
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/assets/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
._spinner_4n5ur_1{height:100%;width:100%}@keyframes _spin_4n5ur_1{to{transform:rotate(360deg)}}._spinner_4n5ur_1{animation:_spin_4n5ur_1 1s linear infinite;fill:#9ca3af;--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity, 1))}._spinner_4n5ur_1:is(._dark_4n5ur_1 *){--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}._spinnerContainer_4n5ur_5{height:40px;width:40px}._success_4n5ur_9{position:absolute;top:50%;left:50%;height:3.5rem;width:3.5rem;--tw-translate-x: -50%;--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));fill:#0d776e;z-index:3}._successContainer_4n5ur_14{position:relative;display:grid;height:5rem;width:5rem;flex:none;place-items:center;border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(232 250 240 / var(--tw-bg-opacity, 1))}._successContainer_4n5ur_14:is(._dark_4n5ur_1 *){--tw-bg-opacity: 1;background-color:rgb(209 244 224 / var(--tw-bg-opacity, 1))}._successContainer_4n5ur_14{z-index:0;animation:_containerPulse_4n5ur_1 3s ease-in-out infinite}._successContainer_4n5ur_14:before,._successContainer_4n5ur_14:after{content:"";position:absolute;inset:0;border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(209 244 224 / var(--tw-bg-opacity, 1))}._successContainer_4n5ur_14:is(._dark_4n5ur_1 *):before,._successContainer_4n5ur_14:is(._dark_4n5ur_1 *):after{--tw-bg-opacity: 1;background-color:rgb(167 233 193 / var(--tw-bg-opacity, 1))}._successContainer_4n5ur_14:before,._successContainer_4n5ur_14:after{animation:_ripplePulse_4n5ur_1 3s cubic-bezier(.4,0,.6,1) infinite;opacity:0;z-index:1}._successContainer_4n5ur_14:after{animation-delay:.5s}@keyframes _containerPulse_4n5ur_1{0%,to{transform:scale(1)}50%{transform:scale(1.05)}}@keyframes _ripplePulse_4n5ur_1{0%{transform:scale(1);opacity:0}10%{transform:scale(1);opacity:.7}to{transform:scale(1.3);opacity:0}}._container_4n5ur_57{width:30px;height:20px;display:flex;margin:0 1px;align-items:center;justify-content:center}._card_4n5ur_66{width:28px;height:19px;display:flex;margin:0 1px;align-items:center;justify-content:center}._warning_4n5ur_75{width:16px;height:16px;display:flex;align-items:center;justify-content:center}._svg_4n5ur_83{width:100%;height:100%}._srOnly_4n5ur_88{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}._backButton_4n5ur_92{width:30px;height:30px;display:flex;margin:0 1px;align-items:center;justify-content:center;background-color:#f4f4f5;border-radius:8px}._loader_nwq3e_1{position:absolute;height:100%;top:0;left:0;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);z-index:1000;display:flex;width:100%;align-items:center;justify-content:center;border-radius:10px}._checkout_lsspc_1{padding:0 2px;overflow:hidden;z-index:0;position:relative;height:auto;min-height:60px;width:100%;max-width:640px}._hidden_lsspc_8{display:none!important}._formInitial_lsspc_12{opacity:0;transform:translateY(100px)}._btnsInitial_lsspc_17{opacity:0;transform:translateY(-100px)}._buttons_1i8cu_1{display:grid;gap:.5rem}._hidden_1i8cu_5{display:none!important}._applePay_f1ztr_1{display:flex;flex-direction:column;gap:8px}@media (hover: hover){._applePay_f1ztr_1:hover{filter:contrast(.575) brightness(1.2)}}._hidden_f1ztr_28{display:none!important}._googlePay_gmreq_1{display:flex;flex-direction:column;gap:8px}._hidden_gmreq_20{display:none!important}._paypal_1p7d0_1{display:flex;flex-direction:column;gap:8px;height:40px;border-radius:12px;background-color:#ffc439}._hidden_1p7d0_10{display:none}._button_1bl11_1{transition-property:transform,color,background,background-color,border-color,text-decoration-color,fill,stroke,opacity;transition-timing-function:ease;transition-duration:.25s;position:relative;z-index:0;box-sizing:border-box;display:inline-flex;height:2.5rem;width:100%;min-width:5rem;transform:translate3d(var(--tw-translate-x),var(--tw-translate-y),0) 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;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;align-items:center;justify-content:center;overflow:hidden;white-space:nowrap;border-radius:.75rem;border-style:none;--tw-bg-opacity: 1;background-color:rgb(13 118 110 / var(--tw-bg-opacity, 1));padding-left:1rem;padding-right:1rem;font-size:1rem;line-height:1.5rem;font-weight:400;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1));-webkit-font-smoothing:auto;-moz-osx-font-smoothing:auto;outline:2px solid transparent;outline-offset:2px}@media (prefers-reduced-motion: reduce){._button_1bl11_1{transition-property:none}}._button_1bl11_1 span{margin-left:.25rem}@media (hover: hover){._button_1bl11_1:hover{opacity:.7}}._button_1bl11_1:active{transform:scale(.95)}._container_10ziz_2{display:flex;flex-direction:column;gap:.5rem}._venmo_10ziz_8{display:flex;justify-content:center;align-items:center;overflow:hidden;border-radius:12px;height:40px;background-color:#0088f7;width:100%;color:#fff;font-size:16px;text-align:center;cursor:pointer;transition:background-color .3s ease;svg{height:40%}@media (hover: hover){&:hover{background-color:#5683c1}}}._hidden_10ziz_35{display:none}._button_125my_1{cursor:pointer}._button_1lwej_1{margin-top:8px;transition-property:transform,color,background,background-color,border-color,text-decoration-color,fill,stroke,opacity;transition-timing-function:ease;transition-duration:.25s;position:relative;z-index:0;box-sizing:border-box;display:inline-flex;height:2.5rem;width:100%;min-width:5rem;transform:translate3d(var(--tw-translate-x),var(--tw-translate-y),0) 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;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;align-items:center;justify-content:center;overflow:hidden;white-space:nowrap;border-radius:.75rem;border-style:none;--tw-bg-opacity: 1;background-color:rgb(13 118 110 / var(--tw-bg-opacity, 1));padding-left:1rem;padding-right:1rem;font-size:.875rem;line-height:1.25rem;font-weight:400;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1));-webkit-font-smoothing:auto;-moz-osx-font-smoothing:auto;outline:2px solid transparent;outline-offset:2px}@media (prefers-reduced-motion: reduce){._button_1lwej_1{transition-property:none}}._button_1lwej_1 span{margin-left:.25rem}._disabled_1lwej_18{opacity:.7}@media (hover: hover){._button_1lwej_1:hover{opacity:.7}}._press_1lwej_28:active{transform:scale(.95)}._hidden_1lwej_32{display:none!important}._spinner_1lwej_36{width:24px;height:24px}._cardForm_ydw03_1{position:relative;display:grid;min-height:250px;gap:.75rem;padding-top:0}._hidden_ydw03_5{display:none!important}._topOffset_ydw03_9{margin-top:.5rem}._wrapper_1gvzd_1{position:relative}._inputContainer_1gvzd_5{background-color:transparent;border-color:#e0e0e0;box-shadow:0 0 0 1px #e0e0e0,0 2px 4px #00000012,0 1px 1.5px #0000000d;transition:box-shadow .2s ease-in-out;box-sizing:border-box;display:flex;height:40px;width:100%;cursor:text;align-items:center;justify-content:space-between;border-radius:.75rem;border-width:1px;border-style:solid;padding-left:.75rem;padding-right:.75rem}._inputContainer_1gvzd_5::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}._inputContainer_1gvzd_5:-ms-input-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}._inputContainer_1gvzd_5::placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}@media (min-width: 640px){._inputContainer_1gvzd_5{font-size:.875rem;line-height:1.25rem}}._inputFocus_1gvzd_13{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity, 1))}@media (hover: hover){._inputContainer_1gvzd_5:hover{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity, 1))}}._inputContainer_1gvzd_5:focus-within:not(._errorInput_1gvzd_23):not(._disabled_1gvzd_23){box-shadow:0 0 0 2px color-mix(in srgb,var(--input-focus-shadow-color, #5A67D8) 30%,transparent)}._input_1gvzd_5{background-color:transparent;display:block;height:100%;width:100%;border-style:none;font-size:1rem;font-weight:400;outline:2px solid transparent;outline-offset:2px}._endContent_1gvzd_32{display:flex}._errorInput_1gvzd_23{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity, 1));--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}._errorInput_1gvzd_23:hover{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity, 1));--tw-ring-opacity: 1;--tw-ring-color: rgb(220 38 38 / var(--tw-ring-opacity, 1))}._errorInput_1gvzd_23:focus{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity, 1));--tw-ring-opacity: 1;--tw-ring-color: rgb(220 38 38 / var(--tw-ring-opacity, 1))}._label_1gvzd_40{margin-bottom:2px;display:flex;align-items:flex-end;justify-content:space-between;padding-left:1px;padding-right:.5rem;font-size:.75rem;line-height:1rem;font-weight:400}._labelError_1gvzd_44{font-size:.6875rem;--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}._disabled_1gvzd_23{border-style:none;--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}._disabledInput_1gvzd_52{opacity:1;-webkit-appearance:none!important;-webkit-text-fill-color:#9ca3af!important;--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}._hidden_1gvzd_59{display:none!important}._wrapper_1dxfo_1{position:relative}._inputContainer_1dxfo_5{background-color:transparent;border-color:#e0e0e0;box-shadow:0 0 0 1px #e0e0e0,0 2px 4px #00000012,0 1px 1.5px #0000000d;transition:box-shadow .2s ease-in-out;box-sizing:border-box;display:flex;height:40px;width:100%;cursor:text;align-items:center;justify-content:space-between;border-radius:.75rem;border-width:1px;border-style:solid;padding-left:.75rem;padding-right:.75rem}._inputContainer_1dxfo_5::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}._inputContainer_1dxfo_5:-ms-input-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}._inputContainer_1dxfo_5::placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}@media (min-width: 640px){._inputContainer_1dxfo_5{font-size:.875rem;line-height:1.25rem}}._inputFocus_1dxfo_13{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity, 1))}@media (hover: hover){._inputContainer_1dxfo_5:hover{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity, 1))}}._inputContainer_1dxfo_5:focus-within:not(._errorInput_1dxfo_23):not(._disabled_1dxfo_23){box-shadow:0 0 0 2px color-mix(in srgb,var(--input-focus-shadow-color, #5A67D8) 30%,transparent)}._input_1dxfo_5{background-color:transparent;display:block;height:100%;width:100%;border-style:none;font-size:1rem;font-weight:400;outline:2px solid transparent;outline-offset:2px}._endContent_1dxfo_32{display:flex}._errorInput_1dxfo_23{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity, 1));--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}._errorInput_1dxfo_23:hover{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity, 1));--tw-ring-opacity: 1;--tw-ring-color: rgb(220 38 38 / var(--tw-ring-opacity, 1))}._errorInput_1dxfo_23:focus{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity, 1));--tw-ring-opacity: 1;--tw-ring-color: rgb(220 38 38 / var(--tw-ring-opacity, 1))}._error_1dxfo_23{margin-top:.25rem;margin-bottom:0;padding-left:.25rem;font-size:.75rem;line-height:1rem;font-weight:400;--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}._label_1dxfo_44{margin-bottom:2px;display:flex;align-items:flex-end;justify-content:space-between;padding-left:1px;padding-right:.5rem;font-size:.75rem;line-height:1rem;font-weight:400}._labelError_1dxfo_48{font-size:.6875rem;--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}._disabled_1dxfo_23{border-style:none;--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}._disabledInput_1dxfo_56{opacity:1;-webkit-appearance:none!important;-webkit-text-fill-color:#9ca3af!important;--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}._hidden_1dxfo_63{display:none!important}._wrapper_27yo3_1{position:relative}._inputContainer_27yo3_5{background-color:transparent;border-color:#e0e0e0;box-shadow:0 0 0 1px #e0e0e0,0 2px 4px #00000012,0 1px 1.5px #0000000d;transition:box-shadow .2s ease-in-out;box-sizing:border-box;display:flex;height:40px;width:100%;cursor:text;align-items:center;justify-content:space-between;border-radius:.75rem;border-width:1px;border-style:solid;padding-left:.75rem;padding-right:.75rem}._inputContainer_27yo3_5::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}._inputContainer_27yo3_5:-ms-input-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}._inputContainer_27yo3_5::placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}@media (min-width: 640px){._inputContainer_27yo3_5{font-size:.875rem;line-height:1.25rem}}._inputFocus_27yo3_13{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity, 1))}@media (hover: hover){._inputContainer_27yo3_5:hover{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity, 1))}}._inputContainer_27yo3_5:focus-within:not(._errorInput_27yo3_23):not(._disabled_27yo3_23){box-shadow:0 0 0 2px color-mix(in srgb,var(--input-focus-shadow-color, #5A67D8) 30%,transparent)}._input_27yo3_5{background-color:transparent;display:block;height:100%;width:100%;border-style:none;font-size:1rem;font-weight:400;outline:2px solid transparent;outline-offset:2px}._endContent_27yo3_32{display:flex;align-items:center;justify-content:center}._errorInput_27yo3_23{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity, 1));--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}._errorInput_27yo3_23:hover{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity, 1));--tw-ring-opacity: 1;--tw-ring-color: rgb(220 38 38 / var(--tw-ring-opacity, 1))}._errorInput_27yo3_23:focus{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity, 1));--tw-ring-opacity: 1;--tw-ring-color: rgb(220 38 38 / var(--tw-ring-opacity, 1))}._error_27yo3_23{margin-top:.25rem;margin-bottom:0;padding-left:.25rem;font-size:.75rem;line-height:1rem;font-weight:400;--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}._label_27yo3_44{margin-bottom:2px;display:flex;align-items:flex-end;justify-content:space-between;padding-left:1px;padding-right:.5rem;font-size:.75rem;line-height:1rem;font-weight:400}._labelError_27yo3_48{font-size:.6875rem;--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}._disabled_27yo3_23{border-style:none;--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}._disabledInput_27yo3_56{opacity:1;-webkit-appearance:none!important;-webkit-text-fill-color:#9ca3af!important;--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}._hidden_27yo3_63{display:none!important}._securityContent_27yo3_67{display:grid;grid-column-gap:5px;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,auto))}._container_79xkl_1{display:flex;min-height:292px;width:100%;flex-direction:column;align-items:center;justify-content:center}._title_79xkl_5{margin-top:.5rem;font-weight:300}._container_1e7lb_1{border-radius:12px;margin-top:.5rem;display:flex;width:100%;flex-grow:1;flex-direction:row;align-items:center;justify-content:flex-start;-moz-column-gap:.25rem;column-gap:.25rem;--tw-bg-opacity: 1;background-color:rgb(254 231 239 / var(--tw-bg-opacity, 1));padding:.75rem 1rem}._container_1e7lb_1:is(._dark_1e7lb_1 *){background-color:#fee7ef80;--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}._container_1e7lb_1 svg{width:16px;height:16px}._title_1e7lb_11{padding:0;padding-left:.25rem;font-size:.875rem;line-height:1.25rem;font-weight:300;--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}._title_1e7lb_11:is(._dark_1e7lb_1 *){--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}
|
|
1
|
+
._spinner_4n5ur_1{height:100%;width:100%}@keyframes _spin_4n5ur_1{to{transform:rotate(360deg)}}._spinner_4n5ur_1{animation:_spin_4n5ur_1 1s linear infinite;fill:#9ca3af;--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity, 1))}._spinner_4n5ur_1:is(._dark_4n5ur_1 *){--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}._spinnerContainer_4n5ur_5{height:40px;width:40px}._success_4n5ur_9{position:absolute;top:50%;left:50%;height:3.5rem;width:3.5rem;--tw-translate-x: -50%;--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));fill:#0d776e;z-index:3}._successContainer_4n5ur_14{position:relative;display:grid;height:5rem;width:5rem;flex:none;place-items:center;border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(232 250 240 / var(--tw-bg-opacity, 1))}._successContainer_4n5ur_14:is(._dark_4n5ur_1 *){--tw-bg-opacity: 1;background-color:rgb(209 244 224 / var(--tw-bg-opacity, 1))}._successContainer_4n5ur_14{z-index:0;animation:_containerPulse_4n5ur_1 3s ease-in-out infinite}._successContainer_4n5ur_14:before,._successContainer_4n5ur_14:after{content:"";position:absolute;inset:0;border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(209 244 224 / var(--tw-bg-opacity, 1))}._successContainer_4n5ur_14:is(._dark_4n5ur_1 *):before,._successContainer_4n5ur_14:is(._dark_4n5ur_1 *):after{--tw-bg-opacity: 1;background-color:rgb(167 233 193 / var(--tw-bg-opacity, 1))}._successContainer_4n5ur_14:before,._successContainer_4n5ur_14:after{animation:_ripplePulse_4n5ur_1 3s cubic-bezier(.4,0,.6,1) infinite;opacity:0;z-index:1}._successContainer_4n5ur_14:after{animation-delay:.5s}@keyframes _containerPulse_4n5ur_1{0%,to{transform:scale(1)}50%{transform:scale(1.05)}}@keyframes _ripplePulse_4n5ur_1{0%{transform:scale(1);opacity:0}10%{transform:scale(1);opacity:.7}to{transform:scale(1.3);opacity:0}}._container_4n5ur_57{width:30px;height:20px;display:flex;margin:0 1px;align-items:center;justify-content:center}._card_4n5ur_66{width:28px;height:19px;display:flex;margin:0 1px;align-items:center;justify-content:center}._warning_4n5ur_75{width:16px;height:16px;display:flex;align-items:center;justify-content:center}._svg_4n5ur_83{width:100%;height:100%}._srOnly_4n5ur_88{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}._backButton_4n5ur_92{width:30px;height:30px;display:flex;margin:0 1px;align-items:center;justify-content:center;background-color:#f4f4f5;border-radius:8px}._loader_nwq3e_1{position:absolute;height:100%;top:0;left:0;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);z-index:1000;display:flex;width:100%;align-items:center;justify-content:center;border-radius:10px}._checkout_lsspc_1{padding:0 2px;overflow:hidden;z-index:0;position:relative;height:auto;min-height:60px;width:100%;max-width:640px}._hidden_lsspc_8{display:none!important}._formInitial_lsspc_12{opacity:0;transform:translateY(100px)}._btnsInitial_lsspc_17{opacity:0;transform:translateY(-100px)}._buttons_1i8cu_1{display:grid;gap:.5rem}._hidden_1i8cu_5{display:none!important}._applePay_f1ztr_1{display:flex;flex-direction:column;gap:8px}@media (hover: hover){._applePay_f1ztr_1:hover{filter:contrast(.575) brightness(1.2)}}._hidden_f1ztr_28{display:none!important}._googlePay_1gtmg_1{display:flex;flex-direction:column;gap:8px;border-radius:12px;height:40px;overflow:hidden;background-color:#000}._hidden_1gtmg_11{display:none!important}._paypal_1p7d0_1{display:flex;flex-direction:column;gap:8px;height:40px;border-radius:12px;background-color:#ffc439}._hidden_1p7d0_10{display:none}._button_1bl11_1{transition-property:transform,color,background,background-color,border-color,text-decoration-color,fill,stroke,opacity;transition-timing-function:ease;transition-duration:.25s;position:relative;z-index:0;box-sizing:border-box;display:inline-flex;height:2.5rem;width:100%;min-width:5rem;transform:translate3d(var(--tw-translate-x),var(--tw-translate-y),0) 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;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;align-items:center;justify-content:center;overflow:hidden;white-space:nowrap;border-radius:.75rem;border-style:none;--tw-bg-opacity: 1;background-color:rgb(13 118 110 / var(--tw-bg-opacity, 1));padding-left:1rem;padding-right:1rem;font-size:1rem;line-height:1.5rem;font-weight:400;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1));-webkit-font-smoothing:auto;-moz-osx-font-smoothing:auto;outline:2px solid transparent;outline-offset:2px}@media (prefers-reduced-motion: reduce){._button_1bl11_1{transition-property:none}}._button_1bl11_1 span{margin-left:.25rem}@media (hover: hover){._button_1bl11_1:hover{opacity:.7}}._button_1bl11_1:active{transform:scale(.95)}._container_10ziz_2{display:flex;flex-direction:column;gap:.5rem}._venmo_10ziz_8{display:flex;justify-content:center;align-items:center;overflow:hidden;border-radius:12px;height:40px;background-color:#0088f7;width:100%;color:#fff;font-size:16px;text-align:center;cursor:pointer;transition:background-color .3s ease;svg{height:40%}@media (hover: hover){&:hover{background-color:#5683c1}}}._hidden_10ziz_35{display:none}._button_125my_1{cursor:pointer}._button_1lwej_1{margin-top:8px;transition-property:transform,color,background,background-color,border-color,text-decoration-color,fill,stroke,opacity;transition-timing-function:ease;transition-duration:.25s;position:relative;z-index:0;box-sizing:border-box;display:inline-flex;height:2.5rem;width:100%;min-width:5rem;transform:translate3d(var(--tw-translate-x),var(--tw-translate-y),0) 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;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;align-items:center;justify-content:center;overflow:hidden;white-space:nowrap;border-radius:.75rem;border-style:none;--tw-bg-opacity: 1;background-color:rgb(13 118 110 / var(--tw-bg-opacity, 1));padding-left:1rem;padding-right:1rem;font-size:.875rem;line-height:1.25rem;font-weight:400;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1));-webkit-font-smoothing:auto;-moz-osx-font-smoothing:auto;outline:2px solid transparent;outline-offset:2px}@media (prefers-reduced-motion: reduce){._button_1lwej_1{transition-property:none}}._button_1lwej_1 span{margin-left:.25rem}._disabled_1lwej_18{opacity:.7}@media (hover: hover){._button_1lwej_1:hover{opacity:.7}}._press_1lwej_28:active{transform:scale(.95)}._hidden_1lwej_32{display:none!important}._spinner_1lwej_36{width:24px;height:24px}._cardForm_ydw03_1{position:relative;display:grid;min-height:250px;gap:.75rem;padding-top:0}._hidden_ydw03_5{display:none!important}._topOffset_ydw03_9{margin-top:.5rem}._wrapper_1gvzd_1{position:relative}._inputContainer_1gvzd_5{background-color:transparent;border-color:#e0e0e0;box-shadow:0 0 0 1px #e0e0e0,0 2px 4px #00000012,0 1px 1.5px #0000000d;transition:box-shadow .2s ease-in-out;box-sizing:border-box;display:flex;height:40px;width:100%;cursor:text;align-items:center;justify-content:space-between;border-radius:.75rem;border-width:1px;border-style:solid;padding-left:.75rem;padding-right:.75rem}._inputContainer_1gvzd_5::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}._inputContainer_1gvzd_5:-ms-input-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}._inputContainer_1gvzd_5::placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}@media (min-width: 640px){._inputContainer_1gvzd_5{font-size:.875rem;line-height:1.25rem}}._inputFocus_1gvzd_13{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity, 1))}@media (hover: hover){._inputContainer_1gvzd_5:hover{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity, 1))}}._inputContainer_1gvzd_5:focus-within:not(._errorInput_1gvzd_23):not(._disabled_1gvzd_23){box-shadow:0 0 0 2px color-mix(in srgb,var(--input-focus-shadow-color, #5A67D8) 30%,transparent)}._input_1gvzd_5{background-color:transparent;display:block;height:100%;width:100%;border-style:none;font-size:1rem;font-weight:400;outline:2px solid transparent;outline-offset:2px}._endContent_1gvzd_32{display:flex}._errorInput_1gvzd_23{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity, 1));--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}._errorInput_1gvzd_23:hover{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity, 1));--tw-ring-opacity: 1;--tw-ring-color: rgb(220 38 38 / var(--tw-ring-opacity, 1))}._errorInput_1gvzd_23:focus{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity, 1));--tw-ring-opacity: 1;--tw-ring-color: rgb(220 38 38 / var(--tw-ring-opacity, 1))}._label_1gvzd_40{margin-bottom:2px;display:flex;align-items:flex-end;justify-content:space-between;padding-left:1px;padding-right:.5rem;font-size:.75rem;line-height:1rem;font-weight:400}._labelError_1gvzd_44{font-size:.6875rem;--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}._disabled_1gvzd_23{border-style:none;--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}._disabledInput_1gvzd_52{opacity:1;-webkit-appearance:none!important;-webkit-text-fill-color:#9ca3af!important;--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}._hidden_1gvzd_59{display:none!important}._wrapper_1dxfo_1{position:relative}._inputContainer_1dxfo_5{background-color:transparent;border-color:#e0e0e0;box-shadow:0 0 0 1px #e0e0e0,0 2px 4px #00000012,0 1px 1.5px #0000000d;transition:box-shadow .2s ease-in-out;box-sizing:border-box;display:flex;height:40px;width:100%;cursor:text;align-items:center;justify-content:space-between;border-radius:.75rem;border-width:1px;border-style:solid;padding-left:.75rem;padding-right:.75rem}._inputContainer_1dxfo_5::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}._inputContainer_1dxfo_5:-ms-input-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}._inputContainer_1dxfo_5::placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}@media (min-width: 640px){._inputContainer_1dxfo_5{font-size:.875rem;line-height:1.25rem}}._inputFocus_1dxfo_13{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity, 1))}@media (hover: hover){._inputContainer_1dxfo_5:hover{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity, 1))}}._inputContainer_1dxfo_5:focus-within:not(._errorInput_1dxfo_23):not(._disabled_1dxfo_23){box-shadow:0 0 0 2px color-mix(in srgb,var(--input-focus-shadow-color, #5A67D8) 30%,transparent)}._input_1dxfo_5{background-color:transparent;display:block;height:100%;width:100%;border-style:none;font-size:1rem;font-weight:400;outline:2px solid transparent;outline-offset:2px}._endContent_1dxfo_32{display:flex}._errorInput_1dxfo_23{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity, 1));--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}._errorInput_1dxfo_23:hover{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity, 1));--tw-ring-opacity: 1;--tw-ring-color: rgb(220 38 38 / var(--tw-ring-opacity, 1))}._errorInput_1dxfo_23:focus{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity, 1));--tw-ring-opacity: 1;--tw-ring-color: rgb(220 38 38 / var(--tw-ring-opacity, 1))}._error_1dxfo_23{margin-top:.25rem;margin-bottom:0;padding-left:.25rem;font-size:.75rem;line-height:1rem;font-weight:400;--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}._label_1dxfo_44{margin-bottom:2px;display:flex;align-items:flex-end;justify-content:space-between;padding-left:1px;padding-right:.5rem;font-size:.75rem;line-height:1rem;font-weight:400}._labelError_1dxfo_48{font-size:.6875rem;--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}._disabled_1dxfo_23{border-style:none;--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}._disabledInput_1dxfo_56{opacity:1;-webkit-appearance:none!important;-webkit-text-fill-color:#9ca3af!important;--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}._hidden_1dxfo_63{display:none!important}._wrapper_27yo3_1{position:relative}._inputContainer_27yo3_5{background-color:transparent;border-color:#e0e0e0;box-shadow:0 0 0 1px #e0e0e0,0 2px 4px #00000012,0 1px 1.5px #0000000d;transition:box-shadow .2s ease-in-out;box-sizing:border-box;display:flex;height:40px;width:100%;cursor:text;align-items:center;justify-content:space-between;border-radius:.75rem;border-width:1px;border-style:solid;padding-left:.75rem;padding-right:.75rem}._inputContainer_27yo3_5::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}._inputContainer_27yo3_5:-ms-input-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}._inputContainer_27yo3_5::placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}@media (min-width: 640px){._inputContainer_27yo3_5{font-size:.875rem;line-height:1.25rem}}._inputFocus_27yo3_13{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity, 1))}@media (hover: hover){._inputContainer_27yo3_5:hover{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity, 1))}}._inputContainer_27yo3_5:focus-within:not(._errorInput_27yo3_23):not(._disabled_27yo3_23){box-shadow:0 0 0 2px color-mix(in srgb,var(--input-focus-shadow-color, #5A67D8) 30%,transparent)}._input_27yo3_5{background-color:transparent;display:block;height:100%;width:100%;border-style:none;font-size:1rem;font-weight:400;outline:2px solid transparent;outline-offset:2px}._endContent_27yo3_32{display:flex;align-items:center;justify-content:center}._errorInput_27yo3_23{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity, 1));--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}._errorInput_27yo3_23:hover{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity, 1));--tw-ring-opacity: 1;--tw-ring-color: rgb(220 38 38 / var(--tw-ring-opacity, 1))}._errorInput_27yo3_23:focus{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity, 1));--tw-ring-opacity: 1;--tw-ring-color: rgb(220 38 38 / var(--tw-ring-opacity, 1))}._error_27yo3_23{margin-top:.25rem;margin-bottom:0;padding-left:.25rem;font-size:.75rem;line-height:1rem;font-weight:400;--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}._label_27yo3_44{margin-bottom:2px;display:flex;align-items:flex-end;justify-content:space-between;padding-left:1px;padding-right:.5rem;font-size:.75rem;line-height:1rem;font-weight:400}._labelError_27yo3_48{font-size:.6875rem;--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}._disabled_27yo3_23{border-style:none;--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}._disabledInput_27yo3_56{opacity:1;-webkit-appearance:none!important;-webkit-text-fill-color:#9ca3af!important;--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}._hidden_27yo3_63{display:none!important}._securityContent_27yo3_67{display:grid;grid-column-gap:5px;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,auto))}._container_79xkl_1{display:flex;min-height:292px;width:100%;flex-direction:column;align-items:center;justify-content:center}._title_79xkl_5{margin-top:.5rem;font-weight:300}._container_1e7lb_1{border-radius:12px;margin-top:.5rem;display:flex;width:100%;flex-grow:1;flex-direction:row;align-items:center;justify-content:flex-start;-moz-column-gap:.25rem;column-gap:.25rem;--tw-bg-opacity: 1;background-color:rgb(254 231 239 / var(--tw-bg-opacity, 1));padding:.75rem 1rem}._container_1e7lb_1:is(._dark_1e7lb_1 *){background-color:#fee7ef80;--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}._container_1e7lb_1 svg{width:16px;height:16px}._title_1e7lb_11{padding:0;padding-left:.25rem;font-size:.875rem;line-height:1.25rem;font-weight:300;--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}._title_1e7lb_11:is(._dark_1e7lb_1 *){--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}
|
package/dist/index.es.js
CHANGED
|
@@ -320,7 +320,7 @@ let Zi = class {
|
|
|
320
320
|
})
|
|
321
321
|
}));
|
|
322
322
|
const p = yield this.apple.availability();
|
|
323
|
-
this.isAvailable = p === "available", console.log("Apple Pay availability", p), this.isAvailable || i == null || i(
|
|
323
|
+
this.isAvailable = p === "available", console.log("Apple Pay availability", p), this.isAvailable || i == null || i("Apple Pay is not supported on this device"), i && this.apple.on("error", i), o && this.apple.on("cancel", o), this.onReady = a;
|
|
324
324
|
});
|
|
325
325
|
}
|
|
326
326
|
render(t) {
|
|
@@ -4239,7 +4239,7 @@ const Jc = [
|
|
|
4239
4239
|
open: { y: 0, opacity: 1, height: "auto" },
|
|
4240
4240
|
close: { y: -15, opacity: 0, height: 0 },
|
|
4241
4241
|
transition: { duration: 0.25, type: "spring", bounce: 0 }
|
|
4242
|
-
}, el = "
|
|
4242
|
+
}, el = "_googlePay_1gtmg_1", tl = "_hidden_1gtmg_11", Rt = {
|
|
4243
4243
|
googlePay: el,
|
|
4244
4244
|
hidden: tl
|
|
4245
4245
|
};
|
|
@@ -4581,25 +4581,44 @@ class vl {
|
|
|
4581
4581
|
logPerformanceMetrics() {
|
|
4582
4582
|
if (this.performanceMetrics.size === 0) return;
|
|
4583
4583
|
const t = [];
|
|
4584
|
-
let e = 0, r = 0;
|
|
4585
|
-
this.performanceMetrics.forEach((
|
|
4584
|
+
let e = 0, r = 0, a = 0, i = 0;
|
|
4585
|
+
this.performanceMetrics.forEach((o, c) => {
|
|
4586
|
+
if (c === "__parallel_total__") {
|
|
4587
|
+
i = o.duration;
|
|
4588
|
+
return;
|
|
4589
|
+
}
|
|
4586
4590
|
t.push({
|
|
4587
|
-
"Payment Method":
|
|
4588
|
-
Status:
|
|
4589
|
-
"Duration (ms)":
|
|
4590
|
-
}), e +=
|
|
4591
|
+
"Payment Method": c,
|
|
4592
|
+
Status: o.status,
|
|
4593
|
+
"Duration (ms)": o.duration.toFixed(2)
|
|
4594
|
+
}), e += o.duration, a = Math.max(a, o.duration), o.status.includes("✓") && r++;
|
|
4591
4595
|
}), console.groupCollapsed(
|
|
4592
4596
|
`%c🚀 Payment Buttons Performance (${r} rendered)`,
|
|
4593
4597
|
"font-weight: bold; font-size: 14px; color: #4CAF50;"
|
|
4594
4598
|
), console.info(
|
|
4595
|
-
`%
|
|
4599
|
+
`%c⚡ Actual parallel execution time: ${i.toFixed(2)}ms`,
|
|
4600
|
+
"font-weight: bold; color: #4CAF50; font-size: 12px;"
|
|
4601
|
+
), console.info(
|
|
4602
|
+
`%c📊 Sum of individual durations: ${e.toFixed(2)}ms`,
|
|
4603
|
+
"font-weight: bold; color: #FF9800;"
|
|
4604
|
+
), console.info(
|
|
4605
|
+
`%c🎯 Longest button init: ${a.toFixed(2)}ms`,
|
|
4596
4606
|
"font-weight: bold; color: #2196F3;"
|
|
4607
|
+
);
|
|
4608
|
+
const s = i > 0 ? (a / i * 100).toFixed(1) : 0;
|
|
4609
|
+
console.info(
|
|
4610
|
+
`%c${i <= a * 1.1 ? "✅" : "⚠️"} Parallelization efficiency: ${s}% ${i <= a * 1.1 ? "(Good!)" : "(Needs optimization)"}`,
|
|
4611
|
+
`font-weight: bold; color: ${i <= a * 1.1 ? "#4CAF50" : "#F44336"};`
|
|
4597
4612
|
), console.table(t), console.info(
|
|
4598
4613
|
`%c📊 Legend:
|
|
4599
4614
|
✓ Rendered - Button successfully initialized and rendered
|
|
4600
4615
|
✗ Not supported - Button not supported on this device/browser
|
|
4601
4616
|
✗ Error - Initialization error occurred
|
|
4602
|
-
Skipped - Button not configured
|
|
4617
|
+
Skipped - Button not configured
|
|
4618
|
+
|
|
4619
|
+
💡 Note:
|
|
4620
|
+
If "Actual parallel execution time" ≈ "Longest button init" → buttons load in parallel ✅
|
|
4621
|
+
If "Actual parallel execution time" ≈ "Sum of durations" → buttons load sequentially ⚠️`,
|
|
4603
4622
|
"color: #666;"
|
|
4604
4623
|
), console.groupEnd();
|
|
4605
4624
|
}
|
|
@@ -4890,7 +4909,7 @@ class vl {
|
|
|
4890
4909
|
});
|
|
4891
4910
|
}
|
|
4892
4911
|
// wait for element visible
|
|
4893
|
-
waitForElementVisible(t, e =
|
|
4912
|
+
waitForElementVisible(t, e = 150) {
|
|
4894
4913
|
return !t || !(t instanceof HTMLElement) ? Promise.resolve() : new Promise((r) => {
|
|
4895
4914
|
const a = performance.now(), i = () => {
|
|
4896
4915
|
const s = t.getBoundingClientRect();
|
|
@@ -4903,38 +4922,45 @@ class vl {
|
|
|
4903
4922
|
// init payment methods
|
|
4904
4923
|
initPaymentMethods() {
|
|
4905
4924
|
return W(this, null, function* () {
|
|
4906
|
-
const t = this.config.state.transaction.getState(), e = ll(Jc, (t == null ? void 0 : t.checkout_config) || [], (
|
|
4907
|
-
let a = e.filter(({ is_active:
|
|
4908
|
-
(r == null ? void 0 : r.variant) === "default" && (a = a.filter(({ type:
|
|
4909
|
-
const i = a.sort((
|
|
4910
|
-
for (const { type:
|
|
4911
|
-
const
|
|
4912
|
-
this.buttons.appendChild(
|
|
4913
|
-
}
|
|
4914
|
-
const o = i.map(({ type:
|
|
4915
|
-
const
|
|
4916
|
-
switch (
|
|
4925
|
+
const t = this.config.state.transaction.getState(), e = ll(Jc, (t == null ? void 0 : t.checkout_config) || [], (h, p) => h.type === p.type), r = this.config.state.checkout.getState();
|
|
4926
|
+
let a = e.filter(({ is_active: h }) => h);
|
|
4927
|
+
(r == null ? void 0 : r.variant) === "default" && (a = a.filter(({ type: h }) => h !== q.CARD)), this.initializeButtonInstances(a), this.buttons.innerHTML = "";
|
|
4928
|
+
const i = a.sort((h, p) => h.order - p.order), s = /* @__PURE__ */ new Map();
|
|
4929
|
+
for (const { type: h } of i) {
|
|
4930
|
+
const p = document.createElement("div");
|
|
4931
|
+
this.buttons.appendChild(p), s.set(h, p);
|
|
4932
|
+
}
|
|
4933
|
+
const o = performance.now(), c = i.map(({ type: h }) => {
|
|
4934
|
+
const p = s.get(h);
|
|
4935
|
+
switch (h) {
|
|
4917
4936
|
case q.APPLE_PAY:
|
|
4918
|
-
return this.initApple(
|
|
4937
|
+
return this.initApple(p);
|
|
4919
4938
|
case q.GOOGLE_PAY:
|
|
4920
|
-
return this.initGoogle(
|
|
4939
|
+
return this.initGoogle(p);
|
|
4921
4940
|
case q.PAYPAL:
|
|
4922
|
-
return this.initPayPal(
|
|
4941
|
+
return this.initPayPal(p);
|
|
4923
4942
|
case q.VENMO:
|
|
4924
|
-
return this.initBraintreeVenmo(
|
|
4943
|
+
return this.initBraintreeVenmo(p);
|
|
4925
4944
|
case q.CARD:
|
|
4926
|
-
return this.initCard(
|
|
4945
|
+
return this.initCard(p);
|
|
4927
4946
|
default:
|
|
4928
4947
|
throw new Error("Unknown button type");
|
|
4929
4948
|
}
|
|
4930
4949
|
});
|
|
4931
|
-
yield Promise.all(
|
|
4932
|
-
const
|
|
4933
|
-
|
|
4934
|
-
|
|
4935
|
-
|
|
4950
|
+
yield Promise.all(c);
|
|
4951
|
+
const l = performance.now(), d = l - o;
|
|
4952
|
+
this.performanceMetrics.set("__parallel_total__", {
|
|
4953
|
+
start: o,
|
|
4954
|
+
end: l,
|
|
4955
|
+
duration: d,
|
|
4956
|
+
status: "Parallel execution"
|
|
4957
|
+
});
|
|
4958
|
+
const u = [];
|
|
4959
|
+
for (const h of s.values()) {
|
|
4960
|
+
const p = h.firstElementChild;
|
|
4961
|
+
p && u.push(this.waitForElementVisible(p));
|
|
4936
4962
|
}
|
|
4937
|
-
yield Promise.all(
|
|
4963
|
+
yield Promise.all(u), this.handleReady();
|
|
4938
4964
|
});
|
|
4939
4965
|
}
|
|
4940
4966
|
// initialize button instances only for active payment methods
|