@astropay/payments-lib 2.0.13 → 2.0.14
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/astropay-payments-lib.es.js +1 -1
- package/dist/astropay-payments-lib.umd.js +12 -10
- package/dist/{main-BVnNYhE7.js → main-BRkwwMvM.js} +529 -457
- package/dist/{profiler-C-52WBjg.js → profiler-CWivq4Uv.js} +1 -1
- package/dist/{startRecording-D_v25im6.js → startRecording-BQ4eVzwy.js} +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var Ma = Object.defineProperty;
|
|
2
2
|
var Ua = (ee, re, te) => re in ee ? Ma(ee, re, { enumerable: !0, configurable: !0, writable: !0, value: te }) : ee[re] = te;
|
|
3
|
-
var
|
|
3
|
+
var we = (ee, re, te) => Ua(ee, typeof re != "symbol" ? re + "" : re, te);
|
|
4
4
|
const FONT_SIZES = {
|
|
5
5
|
xxsm: 10,
|
|
6
6
|
xsm: 12,
|
|
@@ -640,11 +640,11 @@ const NON_BREAKING_SPACE = " ", toCamelCase$1 = (ee) => ee.toLowerCase().replac
|
|
|
640
640
|
}
|
|
641
641
|
// #endregion
|
|
642
642
|
};
|
|
643
|
-
|
|
643
|
+
we(Li, "currentTheme", "light"), we(Li, "styles", LIGHT_THEME);
|
|
644
644
|
let ThemeManager = Li;
|
|
645
645
|
class Component {
|
|
646
646
|
constructor({ tag: re, elementId: te, styles: ne }) {
|
|
647
|
-
|
|
647
|
+
we(this, "element");
|
|
648
648
|
if (this.element = document.createElement(re), te && this.element.setAttribute("id", te), ne) {
|
|
649
649
|
const ie = ThemeManager.getStyles(), oe = ne(ie);
|
|
650
650
|
this.element.className = oe;
|
|
@@ -1605,8 +1605,9 @@ const getCardTabsStyles = (ee) => css`
|
|
|
1605
1605
|
}
|
|
1606
1606
|
|
|
1607
1607
|
&.is-disabled {
|
|
1608
|
-
cursor:
|
|
1608
|
+
cursor: not-allowed;
|
|
1609
1609
|
pointer-events: none;
|
|
1610
|
+
opacity: 0.4;
|
|
1610
1611
|
}
|
|
1611
1612
|
}
|
|
1612
1613
|
|
|
@@ -1648,19 +1649,20 @@ const getCardTabsStyles = (ee) => css`
|
|
|
1648
1649
|
}
|
|
1649
1650
|
|
|
1650
1651
|
&.is-disabled {
|
|
1651
|
-
cursor:
|
|
1652
|
+
cursor: not-allowed;
|
|
1652
1653
|
pointer-events: none;
|
|
1654
|
+
opacity: 0.4;
|
|
1653
1655
|
}
|
|
1654
1656
|
}
|
|
1655
1657
|
`;
|
|
1656
1658
|
class CardTabs extends Component {
|
|
1657
1659
|
constructor({ tabs: te, defaultActiveTab: ne = 0, hideHeader: ie = !1, variant: oe = "underline" }) {
|
|
1658
1660
|
super({ tag: "div", styles: (se) => getCardTabsStyles(se) });
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1661
|
+
we(this, "tabs");
|
|
1662
|
+
we(this, "activeIndex");
|
|
1663
|
+
we(this, "isSingleTab");
|
|
1664
|
+
we(this, "tabButtons", []);
|
|
1665
|
+
we(this, "contentWrapper");
|
|
1664
1666
|
if (this.tabs = te, this.isSingleTab = te.length === 1, this.activeIndex = this.isSingleTab ? 0 : Math.min(ne, te.length - 1), !ie) {
|
|
1665
1667
|
const se = oe === "segmented", ae = document.createElement("div");
|
|
1666
1668
|
ae.classList.add(se ? "card-tabs-segmented" : "card-tabs-header"), this.tabButtons = te.map((ue, ce) => {
|
|
@@ -1682,6 +1684,16 @@ class CardTabs extends Component {
|
|
|
1682
1684
|
switchToTab(te) {
|
|
1683
1685
|
this.handleTabClick(te);
|
|
1684
1686
|
}
|
|
1687
|
+
lock() {
|
|
1688
|
+
this.tabButtons.forEach((te, ne) => {
|
|
1689
|
+
ne !== this.activeIndex && te.classList.add("is-disabled");
|
|
1690
|
+
});
|
|
1691
|
+
}
|
|
1692
|
+
unlock() {
|
|
1693
|
+
this.tabButtons.forEach((te) => {
|
|
1694
|
+
te.classList.remove("is-disabled");
|
|
1695
|
+
});
|
|
1696
|
+
}
|
|
1685
1697
|
destroy() {
|
|
1686
1698
|
var te, ne;
|
|
1687
1699
|
(ne = (te = this.tabs[this.activeIndex]) == null ? void 0 : te.onClose) == null || ne.call(te), super.destroy();
|
|
@@ -2153,8 +2165,8 @@ class Translator extends EventEmitter {
|
|
|
2153
2165
|
}) : "", Te = ve && !te.ordinal && te.count === 0, Se = Te && te[`defaultValue${this.options.pluralSeparator}zero`] || te[`defaultValue${_e}`] || te[`defaultValue${Ce}`] || te.defaultValue;
|
|
2154
2166
|
let Re = fe;
|
|
2155
2167
|
ye && !fe && be && (Re = Se);
|
|
2156
|
-
const
|
|
2157
|
-
if (ye && Re &&
|
|
2168
|
+
const Ae = shouldHandleAsObject(Re), xe = Object.prototype.toString.apply(Re);
|
|
2169
|
+
if (ye && Re && Ae && ge.indexOf(xe) < 0 && !(isString$2(me) && Array.isArray(Re))) {
|
|
2158
2170
|
if (!te.returnObjects && !this.options.returnObjects) {
|
|
2159
2171
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
2160
2172
|
const Pe = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(he, Re, {
|
|
@@ -2285,10 +2297,10 @@ class Translator extends EventEmitter {
|
|
|
2285
2297
|
else {
|
|
2286
2298
|
let Se;
|
|
2287
2299
|
fe && (Se = this.pluralResolver.getSuffix(be, te.count, te));
|
|
2288
|
-
const Re = `${this.options.pluralSeparator}zero`,
|
|
2289
|
-
if (fe && (_e.push(le + Se), te.ordinal && Se.indexOf(
|
|
2290
|
-
const
|
|
2291
|
-
_e.push(
|
|
2300
|
+
const Re = `${this.options.pluralSeparator}zero`, Ae = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
|
2301
|
+
if (fe && (_e.push(le + Se), te.ordinal && Se.indexOf(Ae) === 0 && _e.push(le + Se.replace(Ae, this.options.pluralSeparator)), he && _e.push(le + Re)), pe) {
|
|
2302
|
+
const xe = `${le}${this.options.contextSeparator}${te.context}`;
|
|
2303
|
+
_e.push(xe), fe && (_e.push(xe + Se), te.ordinal && Se.indexOf(Ae) === 0 && _e.push(xe + Se.replace(Ae, this.options.pluralSeparator)), he && _e.push(xe + Re));
|
|
2292
2304
|
}
|
|
2293
2305
|
}
|
|
2294
2306
|
let Ce;
|
|
@@ -3179,11 +3191,11 @@ instance.setDefaultNamespace;
|
|
|
3179
3191
|
instance.hasLoadedNamespace;
|
|
3180
3192
|
instance.loadNamespaces;
|
|
3181
3193
|
instance.loadLanguages;
|
|
3182
|
-
const translation$2 = { additional_information: "Additional information", almost_done: "Almost done...", already_paid: "Already paid?", astro_express_checkout: "Express checkout", check_payment_status: "Check payment status", checkout_method: "Checkout method", or: "OR", email: "E-mail", enter_country_code: "Please enter a country or code", enter_your_email: "Enter your e-mail", enter_your_document_number: "Enter your document number", enter_your_document_type: "Select a document type", enter_your_first_name: "Enter your first name", enter_your_last_name: "Enter your last name", enter_your_phone: "Enter your phone number", continue: "Continue", copied: "Copied!", copy_payment_link: "Copy payment link", document_number: "Document number", document_type: "Document type", do_not_close_window: "Please do not close this window.", didnt_receive: "Didn't receive it?", first_name: "First name", generic_error: "An error occurred. Please try again.", hold_on: "Hold on!", invalid_field: "Invalid field", last_name: "Last name", loading_wait: "Loading, please wait...", pay_amount: "Pay {{amount}}", payment_amount: "Payment amount", push_notification_sent: "We sent a push notification to your app", qr_code: "QR code", required_field: "Required Field", scan_qr_copy_link: "Scan the QR code or copy the link.", select: "Select", select_item: "Select an item", time_up: "Time's up!", try_again: "Try again", waiting_confirmation: "Waiting for confirmation...", card_holder_label: "Cardholder name", card_holder_placeholder: "Full name as on card", card_number: "Card number", card_exp_date: "Expiration date", card_tokenization_error: "We couldn't process your card. Please check your details and try again." }, en$1 = {
|
|
3194
|
+
const translation$2 = { additional_information: "Additional information", almost_done: "Almost done...", already_paid: "Already paid?", astro_express_checkout: "Express checkout", check_payment_status: "Check payment status", checkout_method: "Checkout method", or: "OR", email: "E-mail", enter_country_code: "Please enter a country or code", enter_your_email: "Enter your e-mail", enter_your_document_number: "Enter your document number", enter_your_document_type: "Select a document type", enter_your_first_name: "Enter your first name", enter_your_last_name: "Enter your last name", enter_your_phone: "Enter your phone number", continue: "Continue", copied: "Copied!", copy_payment_link: "Copy payment link", document_number: "Document number", document_type: "Document type", do_not_close_window: "Please do not close this window.", didnt_receive: "Didn't receive it?", first_name: "First name", generic_error: "An error occurred. Please try again.", hold_on: "Hold on!", invalid_field: "Invalid field", last_name: "Last name", loading_wait: "Loading, please wait...", pay_amount: "Pay {{amount}}", payment_amount: "Payment amount", push_notification_sent: "We sent a push notification to your app", qr_code: "QR code", required_field: "Required Field", scan_qr_copy_link: "Scan the QR code or copy the link.", select: "Select", select_item: "Select an item", time_up: "Time's up!", try_again: "Try again", waiting_confirmation: "Waiting for confirmation...", card_holder_label: "Cardholder name", card_holder_placeholder: "Full name as on card", card_number: "Card number", card_exp_date: "Expiration date", card_tokenization_error: "We couldn't process your card payment. Please check your details and try again.", payment_processing: "Processing your payment...", payment_still_processing: "This is taking a bit longer than usual, please hold on..." }, en$1 = {
|
|
3183
3195
|
translation: translation$2
|
|
3184
|
-
}, translation$1 = { additional_information: "Información adicional", almost_done: "Casi listo...", already_paid: "Ya pagaste?", astro_express_checkout: "Pago express", check_payment_status: "Ver estado del pago", checkout_method: "Método de pago", or: "O", email: "Correo electrónico", enter_country_code: "Introduce el país o código del país", enter_your_email: "Ingrese su correo electrónico", enter_your_document_number: "Ingrese su número de documento", enter_your_document_type: "Seleccione un tipo de documento", enter_your_first_name: "Ingrese su nombre", enter_your_last_name: "Ingrese su apellido", enter_your_phone: "Introduzca su número de teléfono", continue: "Continuar", copied: "Copiado!", copy_payment_link: "Copiar enlace de pago", document_number: "Número de documento", document_type: "Tipo de documento", do_not_close_window: "Por favor, no cierres esta ventana.", didnt_receive: "No lo recibiste?", first_name: "Nombre", generic_error: "Ocurrió un error. Por favor, inténtelo de nuevo.", hold_on: "¡Un instante...!", invalid_field: "Campo inválido", last_name: "Apellido", loading_wait: "Cargando, aguantá un toque...", pay_amount: "Pagar {{amount}}", payment_amount: "Monto a pagar", push_notification_sent: "Enviamos una notificación push a tu app", qr_code: "código QR", required_field: "Campo Requerido", scan_qr_copy_link: "Escaneá el código QR o copiá el enlace.", select: "Seleccionar", select_item: "Selecciona una opción", time_up: "Se acabó el tiempo!", try_again: "Inténtalo de nuevo", waiting_confirmation: "Esperando confirmación...", card_holder_label: "Nombre del titular", card_holder_placeholder: "Nombre completo en la tarjeta", card_number: "Número de tarjeta", card_exp_date: "Fecha de vencimiento", card_tokenization_error: "No pudimos procesar tu tarjeta. Verificá los datos y volvé a intentarlo." }, es = {
|
|
3196
|
+
}, translation$1 = { additional_information: "Información adicional", almost_done: "Casi listo...", already_paid: "Ya pagaste?", astro_express_checkout: "Pago express", check_payment_status: "Ver estado del pago", checkout_method: "Método de pago", or: "O", email: "Correo electrónico", enter_country_code: "Introduce el país o código del país", enter_your_email: "Ingrese su correo electrónico", enter_your_document_number: "Ingrese su número de documento", enter_your_document_type: "Seleccione un tipo de documento", enter_your_first_name: "Ingrese su nombre", enter_your_last_name: "Ingrese su apellido", enter_your_phone: "Introduzca su número de teléfono", continue: "Continuar", copied: "Copiado!", copy_payment_link: "Copiar enlace de pago", document_number: "Número de documento", document_type: "Tipo de documento", do_not_close_window: "Por favor, no cierres esta ventana.", didnt_receive: "No lo recibiste?", first_name: "Nombre", generic_error: "Ocurrió un error. Por favor, inténtelo de nuevo.", hold_on: "¡Un instante...!", invalid_field: "Campo inválido", last_name: "Apellido", loading_wait: "Cargando, aguantá un toque...", pay_amount: "Pagar {{amount}}", payment_amount: "Monto a pagar", push_notification_sent: "Enviamos una notificación push a tu app", qr_code: "código QR", required_field: "Campo Requerido", scan_qr_copy_link: "Escaneá el código QR o copiá el enlace.", select: "Seleccionar", select_item: "Selecciona una opción", time_up: "Se acabó el tiempo!", try_again: "Inténtalo de nuevo", waiting_confirmation: "Esperando confirmación...", card_holder_label: "Nombre del titular", card_holder_placeholder: "Nombre completo en la tarjeta", card_number: "Número de tarjeta", card_exp_date: "Fecha de vencimiento", card_tokenization_error: "No pudimos procesar tu pago con tarjeta. Verificá los datos y volvé a intentarlo.", payment_processing: "Procesando tu pago...", payment_still_processing: "Está tardando un poco más de lo habitual, estamos verificando su estado." }, es = {
|
|
3185
3197
|
translation: translation$1
|
|
3186
|
-
}, translation = { additional_information: "Informações adicionais", almost_done: "Finalizando...", already_paid: "Já pagou?", astro_express_checkout: "Pagamento expresso", check_payment_status: "Verificar status do pagamento", checkout_method: "Método de pagamento", or: "OU", email: "E-mail", enter_country_code: "Informe um país ou código", enter_your_email: "Digite seu e-mail", enter_your_document_number: "Digite seu número de documento", enter_your_document_type: "Selecione um tipo de documento", enter_your_first_name: "Digite seu primeiro nome", enter_your_last_name: "Digite seu sobrenome", enter_your_phone: "Digite seu número de telefone", continue: "Continuar", copied: "Copiado!", copy_payment_link: "Copiar link de pagamento", document_number: "Número do documento", document_type: "Tipo de documento", do_not_close_window: "Por favor, não feche esta janela.", didnt_receive: "Não recebeu?", first_name: "Primeiro nome", generic_error: "Ocorreu um erro. Por favor, tente novamente.", hold_on: "Só um instante!", invalid_field: "Campo inválido", last_name: "Sobrenome", loading_wait: "Carregando, por favor aguarde...", pay_amount: "Pagar {{amount}}", payment_amount: "Valor do pagamento", push_notification_sent: "Enviamos uma notificação push para seu app", qr_code: "QR code", required_field: "Campo Obrigatório", scan_qr_copy_link: "Escaneie o QR code ou copie o link.", select: "Selecione", select_item: "Selecione um item", time_up: "Tempo esgotado!", try_again: "Tente novamente", waiting_confirmation: "Aguardando confirmação...", card_holder_label: "Nome do titular", card_holder_placeholder: "Nome completo no cartão", card_number: "Número do cartão", card_exp_date: "Data de validade", card_tokenization_error: "Não foi possível processar o
|
|
3198
|
+
}, translation = { additional_information: "Informações adicionais", almost_done: "Finalizando...", already_paid: "Já pagou?", astro_express_checkout: "Pagamento expresso", check_payment_status: "Verificar status do pagamento", checkout_method: "Método de pagamento", or: "OU", email: "E-mail", enter_country_code: "Informe um país ou código", enter_your_email: "Digite seu e-mail", enter_your_document_number: "Digite seu número de documento", enter_your_document_type: "Selecione um tipo de documento", enter_your_first_name: "Digite seu primeiro nome", enter_your_last_name: "Digite seu sobrenome", enter_your_phone: "Digite seu número de telefone", continue: "Continuar", copied: "Copiado!", copy_payment_link: "Copiar link de pagamento", document_number: "Número do documento", document_type: "Tipo de documento", do_not_close_window: "Por favor, não feche esta janela.", didnt_receive: "Não recebeu?", first_name: "Primeiro nome", generic_error: "Ocorreu um erro. Por favor, tente novamente.", hold_on: "Só um instante!", invalid_field: "Campo inválido", last_name: "Sobrenome", loading_wait: "Carregando, por favor aguarde...", pay_amount: "Pagar {{amount}}", payment_amount: "Valor do pagamento", push_notification_sent: "Enviamos uma notificação push para seu app", qr_code: "QR code", required_field: "Campo Obrigatório", scan_qr_copy_link: "Escaneie o QR code ou copie o link.", select: "Selecione", select_item: "Selecione um item", time_up: "Tempo esgotado!", try_again: "Tente novamente", waiting_confirmation: "Aguardando confirmação...", card_holder_label: "Nome do titular", card_holder_placeholder: "Nome completo no cartão", card_number: "Número do cartão", card_exp_date: "Data de validade", card_tokenization_error: "Não foi possível processar seu pagamento com o cartão. Verifique os dados e tente novamente.", payment_processing: "Processando seu pagamento...", payment_still_processing: "Está demorando um pouco mais que o usual, por favor aguarde..." }, pt$1 = {
|
|
3187
3199
|
translation
|
|
3188
3200
|
}, LOCAL_TRANSLATIONS = {
|
|
3189
3201
|
en: en$1,
|
|
@@ -3234,7 +3246,7 @@ class LoadingSuccess extends Component {
|
|
|
3234
3246
|
const RUNTIME_CONFIG = {
|
|
3235
3247
|
test: {
|
|
3236
3248
|
NAME: "@astropay/payments-lib",
|
|
3237
|
-
VERSION: "2.0.
|
|
3249
|
+
VERSION: "2.0.14",
|
|
3238
3250
|
MODE: "test",
|
|
3239
3251
|
API_BASE_URL: "https://partners-api-tst.astropay.com/api",
|
|
3240
3252
|
RESOURCES_BUCKET: "https://rs-tst.astropay.com",
|
|
@@ -3244,7 +3256,7 @@ const RUNTIME_CONFIG = {
|
|
|
3244
3256
|
},
|
|
3245
3257
|
sandbox: {
|
|
3246
3258
|
NAME: "@astropay/payments-lib",
|
|
3247
|
-
VERSION: "2.0.
|
|
3259
|
+
VERSION: "2.0.14",
|
|
3248
3260
|
MODE: "staging",
|
|
3249
3261
|
API_BASE_URL: "https://partners-api-sandbox.astropay.com/api",
|
|
3250
3262
|
RESOURCES_BUCKET: "https://rs-tst.astropay.com",
|
|
@@ -3254,7 +3266,7 @@ const RUNTIME_CONFIG = {
|
|
|
3254
3266
|
},
|
|
3255
3267
|
production: {
|
|
3256
3268
|
NAME: "@astropay/payments-lib",
|
|
3257
|
-
VERSION: "2.0.
|
|
3269
|
+
VERSION: "2.0.14",
|
|
3258
3270
|
MODE: "production",
|
|
3259
3271
|
API_BASE_URL: "https://partners-api.astropay.com/api",
|
|
3260
3272
|
RESOURCES_BUCKET: "https://rs.astropay.com",
|
|
@@ -3288,7 +3300,7 @@ const Di = class Di {
|
|
|
3288
3300
|
return Di.currencyMode;
|
|
3289
3301
|
}
|
|
3290
3302
|
};
|
|
3291
|
-
|
|
3303
|
+
we(Di, "environment"), we(Di, "currencyMode");
|
|
3292
3304
|
let AstroPayConfig = Di;
|
|
3293
3305
|
const ConsoleApiName = {
|
|
3294
3306
|
log: "log",
|
|
@@ -3836,8 +3848,8 @@ function startSessionStore(ee, re, te, ne) {
|
|
|
3836
3848
|
function ye(Se) {
|
|
3837
3849
|
if (isSessionInNotStartedState(Se))
|
|
3838
3850
|
return !1;
|
|
3839
|
-
const { trackingType: Re, isTracked:
|
|
3840
|
-
Se[te] = Re, delete Se.isExpired,
|
|
3851
|
+
const { trackingType: Re, isTracked: Ae } = ne(Se[te]);
|
|
3852
|
+
Se[te] = Re, delete Se.isExpired, Ae && !Se.id && (Se.id = generateUUID(), Se.created = String(dateNow()));
|
|
3841
3853
|
}
|
|
3842
3854
|
function ve() {
|
|
3843
3855
|
return le[te] !== void 0;
|
|
@@ -8294,7 +8306,7 @@ function newView(ee, re, te, ne, ie, oe, se = clocksNow(), ae) {
|
|
|
8294
8306
|
ee.notify(1, _e), ee.notify(2, _e);
|
|
8295
8307
|
const { throttled: Ce, cancel: Te } = throttle$2(fr, THROTTLE_VIEW_UPDATE_PERIOD, {
|
|
8296
8308
|
leading: !1
|
|
8297
|
-
}), { setLoadEvent: Se, setViewEnd: Re, stop:
|
|
8309
|
+
}), { setLoadEvent: Se, setViewEnd: Re, stop: Ae, stopINPTracking: xe, getCommonViewMetrics: Pe } = trackCommonViewMetrics(ee, re, te, ne, hr, oe, se), { stop: De, initialViewMetrics: Fe } = oe === "initial_load" ? trackInitialViewMetrics(ne, Se, hr) : { stop: noop$2, initialViewMetrics: {} }, { stop: Ue, eventCounts: He } = trackViewEventCounts(ee, ue, hr), je = setInterval$1(fr, SESSION_KEEP_ALIVE_INTERVAL), lr = ee.subscribe(11, (dr) => {
|
|
8298
8310
|
dr.reason === PageExitReason.UNLOADING && fr();
|
|
8299
8311
|
});
|
|
8300
8312
|
fr(), pe.changeObservable.subscribe(hr);
|
|
@@ -8341,12 +8353,12 @@ function newView(ee, re, te, ne, ie, oe, se = clocksNow(), ae) {
|
|
|
8341
8353
|
stopObservable: ce,
|
|
8342
8354
|
end(dr = {}) {
|
|
8343
8355
|
var Qe, Bt;
|
|
8344
|
-
fe || (fe = (Qe = dr.endClocks) !== null && Qe !== void 0 ? Qe : clocksNow(), ge = (Bt = dr.sessionIsActive) !== null && Bt !== void 0 ? Bt : !0, ee.notify(5, { endClocks: fe }), ee.notify(6, { endClocks: fe }), clearInterval$1(je), Re(fe.relative),
|
|
8356
|
+
fe || (fe = (Qe = dr.endClocks) !== null && Qe !== void 0 ? Qe : clocksNow(), ge = (Bt = dr.sessionIsActive) !== null && Bt !== void 0 ? Bt : !0, ee.notify(5, { endClocks: fe }), ee.notify(6, { endClocks: fe }), clearInterval$1(je), Re(fe.relative), Ae(), lr.unsubscribe(), fr(), setTimeout$1(() => {
|
|
8345
8357
|
this.stop();
|
|
8346
8358
|
}, KEEP_TRACKING_AFTER_VIEW_DELAY));
|
|
8347
8359
|
},
|
|
8348
8360
|
stop() {
|
|
8349
|
-
De(), Ue(),
|
|
8361
|
+
De(), Ue(), xe(), ce.notify();
|
|
8350
8362
|
},
|
|
8351
8363
|
addTiming(dr, Qe) {
|
|
8352
8364
|
if (fe)
|
|
@@ -9122,7 +9134,7 @@ function startRum(ee, re, te, ne, ie, oe, se) {
|
|
|
9122
9134
|
}
|
|
9123
9135
|
const ge = createDOMMutationObservable(), me = createLocationChangeObservable(ee, location), ye = startPageStateHistory(ce, ee), ve = startViewHistory(ue), be = startUrlContexts(ue, ce, me, location), _e = startFeatureFlagContexts(ue, ce, ee), { observable: Ce, stop: Te } = createWindowOpenObservable();
|
|
9124
9136
|
ae.push(Te);
|
|
9125
|
-
const Se = startGlobalContext(ee), Re = startUserContext(ee),
|
|
9137
|
+
const Se = startGlobalContext(ee), Re = startUserContext(ee), Ae = startAccountContext(ee), xe = () => buildCommonContext(Se, Re, Ae, re), { actionContexts: Pe, addAction: De, stop: Fe } = startRumEventCollection(ue, ce, ee, pe, ye, ge, Ce, be, ve, xe, de);
|
|
9126
9138
|
ae.push(Fe), drainPreStartTelemetry();
|
|
9127
9139
|
const { addTiming: Ue, startView: He, setViewName: je, setViewContext: lr, setViewContextProperty: Ge, getViewContext: hr, stop: fr } = startViewCollection(ue, ce, ee, location, ge, Ce, me, re, ve, ne);
|
|
9128
9140
|
ae.push(fr);
|
|
@@ -9134,7 +9146,7 @@ function startRum(ee, re, te, ne, ie, oe, se) {
|
|
|
9134
9146
|
} else
|
|
9135
9147
|
startLongTaskCollection(ue, ee);
|
|
9136
9148
|
const { addError: Qe } = startErrorCollection(ue, ee);
|
|
9137
|
-
startRequestCollection(ue, ee, pe,
|
|
9149
|
+
startRequestCollection(ue, ee, pe, xe);
|
|
9138
9150
|
const Bt = startVitalCollection(ue, ye, se), Cr = startInternalContext(ee.applicationId, pe, ve, Pe, be);
|
|
9139
9151
|
return ae.push(() => te.stop()), {
|
|
9140
9152
|
addAction: De,
|
|
@@ -9156,7 +9168,7 @@ function startRum(ee, re, te, ne, ie, oe, se) {
|
|
|
9156
9168
|
addDurationVital: Bt.addDurationVital,
|
|
9157
9169
|
globalContext: Se,
|
|
9158
9170
|
userContext: Re,
|
|
9159
|
-
accountContext:
|
|
9171
|
+
accountContext: Ae,
|
|
9160
9172
|
stop: () => {
|
|
9161
9173
|
ae.forEach(($e) => $e());
|
|
9162
9174
|
}
|
|
@@ -9533,7 +9545,7 @@ async function lazyLoadRecorder(ee = importRecorder) {
|
|
|
9533
9545
|
async function importRecorder() {
|
|
9534
9546
|
return (await import(
|
|
9535
9547
|
/* webpackChunkName: "recorder" */
|
|
9536
|
-
"./startRecording-
|
|
9548
|
+
"./startRecording-BQ4eVzwy.js"
|
|
9537
9549
|
)).startRecording;
|
|
9538
9550
|
}
|
|
9539
9551
|
function isProfilingSupported() {
|
|
@@ -9553,7 +9565,7 @@ async function lazyLoadProfiler(ee = importProfiler) {
|
|
|
9553
9565
|
async function importProfiler() {
|
|
9554
9566
|
return (await import(
|
|
9555
9567
|
/* webpackChunkName: "profiler" */
|
|
9556
|
-
"./profiler-
|
|
9568
|
+
"./profiler-CWivq4Uv.js"
|
|
9557
9569
|
)).createRumProfiler;
|
|
9558
9570
|
}
|
|
9559
9571
|
function makeProfilerApi() {
|
|
@@ -9619,7 +9631,7 @@ const Vi = class Vi {
|
|
|
9619
9631
|
return !!(re.type === "view" && ((te = re.view.name) != null && te.startsWith("ap_cl_")) || re.type === "action" && typeof ((ne = re.action.target) == null ? void 0 : ne.name) == "string" && re.action.target.name.startsWith("ap_cl_") || re.type === "error" && ((ie = re.error) == null ? void 0 : ie.source) === "custom");
|
|
9620
9632
|
}
|
|
9621
9633
|
};
|
|
9622
|
-
|
|
9634
|
+
we(Vi, "isInitialized", !1);
|
|
9623
9635
|
let DatadogTracker = Vi;
|
|
9624
9636
|
class DataDogTracker {
|
|
9625
9637
|
static init(re) {
|
|
@@ -9642,7 +9654,7 @@ class DataDogTracker {
|
|
|
9642
9654
|
this.trackers.forEach((re) => re.destroy()), this.trackers = [], this.initialized = !1;
|
|
9643
9655
|
}
|
|
9644
9656
|
}
|
|
9645
|
-
|
|
9657
|
+
we(DataDogTracker, "initialized", !1), we(DataDogTracker, "trackers", []);
|
|
9646
9658
|
const getResultScreenStyles = () => css`
|
|
9647
9659
|
display: flex;
|
|
9648
9660
|
flex-direction: column;
|
|
@@ -11715,16 +11727,16 @@ class Button extends Component {
|
|
|
11715
11727
|
tag: "button",
|
|
11716
11728
|
styles: (pe) => getButtonStyles(pe, he)
|
|
11717
11729
|
});
|
|
11718
|
-
|
|
11719
|
-
|
|
11720
|
-
|
|
11721
|
-
|
|
11722
|
-
|
|
11723
|
-
|
|
11724
|
-
|
|
11725
|
-
|
|
11726
|
-
|
|
11727
|
-
|
|
11730
|
+
we(this, "isLoading");
|
|
11731
|
+
we(this, "isDisabled");
|
|
11732
|
+
we(this, "iconLeft");
|
|
11733
|
+
we(this, "iconRight");
|
|
11734
|
+
we(this, "originalText");
|
|
11735
|
+
we(this, "originalIconLeft");
|
|
11736
|
+
we(this, "originalIconRight");
|
|
11737
|
+
we(this, "variant");
|
|
11738
|
+
we(this, "copyText");
|
|
11739
|
+
we(this, "onClick");
|
|
11728
11740
|
this.isLoading = ae, this.isDisabled = ue, this.onClick = le, this.copyText = de, this.element.disabled = ue, this.originalText = te, this.originalIconLeft = oe, this.originalIconRight = se, this.variant = ie, this.updateContent({
|
|
11729
11741
|
text: te,
|
|
11730
11742
|
iconLeft: oe,
|
|
@@ -11946,21 +11958,21 @@ class SelectDropdown extends Component {
|
|
|
11946
11958
|
tag: "div",
|
|
11947
11959
|
styles: (ce) => getSelectDropdownStyles(ce, { disabled: ie, maxWidth: oe })
|
|
11948
11960
|
});
|
|
11949
|
-
|
|
11950
|
-
|
|
11951
|
-
|
|
11952
|
-
|
|
11953
|
-
|
|
11954
|
-
|
|
11955
|
-
|
|
11956
|
-
|
|
11957
|
-
|
|
11958
|
-
|
|
11959
|
-
|
|
11960
|
-
|
|
11961
|
-
|
|
11962
|
-
|
|
11963
|
-
|
|
11961
|
+
we(this, "selectContainer");
|
|
11962
|
+
we(this, "displayContent");
|
|
11963
|
+
we(this, "selectedDisplay");
|
|
11964
|
+
we(this, "dropdownIcon");
|
|
11965
|
+
we(this, "optionsList");
|
|
11966
|
+
we(this, "isOpen", !1);
|
|
11967
|
+
we(this, "blurTimeout", null);
|
|
11968
|
+
we(this, "selectedOption", null);
|
|
11969
|
+
we(this, "highlightedIndex", -1);
|
|
11970
|
+
we(this, "options");
|
|
11971
|
+
we(this, "onChange");
|
|
11972
|
+
we(this, "disabled");
|
|
11973
|
+
we(this, "boundHandleClick");
|
|
11974
|
+
we(this, "boundHandleKeyDown");
|
|
11975
|
+
we(this, "boundHandleClickOutside");
|
|
11964
11976
|
this.options = ne, this.onChange = se, this.disabled = ie, this.selectContainer = document.createElement("div"), this.selectContainer.classList.add("select-dropdown-container"), ie && this.selectContainer.classList.add("disabled"), this.selectContainer.tabIndex = ie ? -1 : 0, this.displayContent = document.createElement("div"), this.displayContent.classList.add("display-content");
|
|
11965
11977
|
const ae = new Typography({
|
|
11966
11978
|
text: te,
|
|
@@ -12276,27 +12288,27 @@ class InputSelect extends Component {
|
|
|
12276
12288
|
tag: "div",
|
|
12277
12289
|
styles: (ge) => getSelectStyles(ge, { error: ue, disabled: ce, maxWidth: le })
|
|
12278
12290
|
});
|
|
12279
|
-
|
|
12280
|
-
|
|
12281
|
-
|
|
12282
|
-
|
|
12283
|
-
|
|
12284
|
-
|
|
12285
|
-
|
|
12286
|
-
|
|
12287
|
-
|
|
12288
|
-
|
|
12289
|
-
|
|
12290
|
-
|
|
12291
|
-
|
|
12292
|
-
|
|
12293
|
-
|
|
12294
|
-
|
|
12295
|
-
|
|
12296
|
-
|
|
12297
|
-
|
|
12298
|
-
|
|
12299
|
-
|
|
12291
|
+
we(this, "selectContainer");
|
|
12292
|
+
we(this, "inputElement");
|
|
12293
|
+
we(this, "dropdownIcon");
|
|
12294
|
+
we(this, "optionsList");
|
|
12295
|
+
we(this, "helperTextElement", null);
|
|
12296
|
+
we(this, "labelElement", null);
|
|
12297
|
+
we(this, "isOpen", !1);
|
|
12298
|
+
we(this, "filteredOptions", []);
|
|
12299
|
+
we(this, "selectedValue", null);
|
|
12300
|
+
we(this, "highlightedIndex", -1);
|
|
12301
|
+
we(this, "currentErrorState");
|
|
12302
|
+
we(this, "currentDisabledState");
|
|
12303
|
+
we(this, "currentHelperText");
|
|
12304
|
+
we(this, "name");
|
|
12305
|
+
we(this, "label");
|
|
12306
|
+
we(this, "options");
|
|
12307
|
+
we(this, "emptyMessage");
|
|
12308
|
+
we(this, "showValue");
|
|
12309
|
+
we(this, "validateOn");
|
|
12310
|
+
we(this, "maxWidth");
|
|
12311
|
+
we(this, "onChange");
|
|
12300
12312
|
this.name = te, this.label = ne, this.options = ie, this.emptyMessage = ae, this.showValue = de, this.currentErrorState = ue, this.currentDisabledState = ce, this.currentHelperText = oe, this.validateOn = fe, this.maxWidth = le, this.onChange = he, ne && this.renderLabel(), this.selectContainer = document.createElement("div"), this.selectContainer.classList.add("select-input-container"), this.element.append(this.selectContainer), this.inputElement = document.createElement("input"), this.inputElement.classList.add("select-input-field"), this.inputElement.name = te, this.inputElement.id = te, this.inputElement.autocomplete = "off", this.inputElement.disabled = ce, se && (this.inputElement.placeholder = se), this.selectContainer.append(this.inputElement), this.dropdownIcon = document.createElement("span"), this.dropdownIcon.classList.add("dropdown-icon-wrapper");
|
|
12301
12313
|
const pe = new Icon({ name: "arrow_down_line", size: 24 }).element;
|
|
12302
12314
|
this.dropdownIcon.appendChild(pe), this.selectContainer.appendChild(this.dropdownIcon), this.optionsList = document.createElement("ul"), this.optionsList.classList.add("select-options-list"), this.selectContainer.append(this.optionsList), this.renderOptions(ie), this.selectContainer.addEventListener("click", (ge) => {
|
|
@@ -12565,19 +12577,19 @@ class InputText extends Component {
|
|
|
12565
12577
|
tag: "div",
|
|
12566
12578
|
styles: (me) => getInputTextStyles(me, { error: ae, disabled: ue })
|
|
12567
12579
|
});
|
|
12568
|
-
|
|
12569
|
-
|
|
12570
|
-
|
|
12571
|
-
|
|
12572
|
-
|
|
12573
|
-
|
|
12574
|
-
|
|
12575
|
-
|
|
12576
|
-
|
|
12577
|
-
|
|
12578
|
-
|
|
12579
|
-
|
|
12580
|
-
|
|
12580
|
+
we(this, "inputElement");
|
|
12581
|
+
we(this, "helperTextElement", null);
|
|
12582
|
+
we(this, "labelElement", null);
|
|
12583
|
+
we(this, "currentErrorState");
|
|
12584
|
+
we(this, "currentDisabledState");
|
|
12585
|
+
we(this, "name");
|
|
12586
|
+
we(this, "label");
|
|
12587
|
+
we(this, "currentHelperText");
|
|
12588
|
+
we(this, "validationRegex");
|
|
12589
|
+
we(this, "validateOn");
|
|
12590
|
+
we(this, "mask");
|
|
12591
|
+
we(this, "onChange");
|
|
12592
|
+
we(this, "onBlur");
|
|
12581
12593
|
this.currentErrorState = ae, this.currentDisabledState = ue, this.name = te, this.label = ne, this.currentHelperText = ie, this.validateOn = le, this.validationRegex = ce, this.mask = de, this.onChange = pe, this.onBlur = ge, ne && this.renderLabel(), this.inputElement = document.createElement("input"), this.inputElement.type = oe === "number" ? "number" : "text", this.inputElement.inputMode = oe, this.inputElement.name = te, this.inputElement.id = te, this.inputElement.autocomplete = "off", this.inputElement.disabled = ue, se && (this.inputElement.placeholder = se), fe && (this.inputElement.maxLength = fe), he && (this.inputElement.minLength = he), this.inputElement.classList.add("input-field"), this.element.append(this.inputElement), ["number", "tel"].includes(oe) && this.inputElement.addEventListener("input", this.handleNumericInput.bind(this)), this.inputElement.addEventListener("input", this.handleInputChange.bind(this)), this.inputElement.addEventListener("blur", this.handleInputBlur.bind(this)), ie && this.renderHelperText(ie);
|
|
12582
12594
|
}
|
|
12583
12595
|
// #region Private
|
|
@@ -12688,10 +12700,10 @@ class FormTemplate extends Component {
|
|
|
12688
12700
|
tag: "div",
|
|
12689
12701
|
styles: () => getFormTemplateStyles()
|
|
12690
12702
|
});
|
|
12691
|
-
|
|
12692
|
-
|
|
12703
|
+
we(this, "componentProps");
|
|
12704
|
+
we(this, "dynamicInputs", {});
|
|
12693
12705
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
12694
|
-
|
|
12706
|
+
we(this, "onValidationChange", () => {
|
|
12695
12707
|
});
|
|
12696
12708
|
if (this.componentProps = te, te.title) {
|
|
12697
12709
|
const ne = new Typography({
|
|
@@ -12964,9 +12976,9 @@ class PaymentSummary extends Component {
|
|
|
12964
12976
|
tag: "div",
|
|
12965
12977
|
styles: (ie) => getPaymentSummaryStyles(ie)
|
|
12966
12978
|
});
|
|
12967
|
-
|
|
12968
|
-
|
|
12969
|
-
|
|
12979
|
+
we(this, "amount");
|
|
12980
|
+
we(this, "currency");
|
|
12981
|
+
we(this, "valueContainer");
|
|
12970
12982
|
this.amount = te.amount, this.currency = te.currency;
|
|
12971
12983
|
const ne = new Typography({
|
|
12972
12984
|
text: AstroPayI18n.translate("payment_amount"),
|
|
@@ -15066,12 +15078,12 @@ var buildResult = function(ee, re, te) {
|
|
|
15066
15078
|
return Se.type === "destination";
|
|
15067
15079
|
}), this.loggerProvider.log("Timeline.apply: Final event before destinations, event: ".concat(JSON.stringify(ne))), ye = me.map(function(Se) {
|
|
15068
15080
|
var Re = __assign$1({}, ne);
|
|
15069
|
-
return Se.execute(Re).catch(function(
|
|
15070
|
-
return buildResult(Re, 0, String(
|
|
15081
|
+
return Se.execute(Re).catch(function(Ae) {
|
|
15082
|
+
return buildResult(Re, 0, String(Ae));
|
|
15071
15083
|
});
|
|
15072
15084
|
}), Promise.all(ye).then(function(Se) {
|
|
15073
|
-
var Re = __read$1(Se, 1),
|
|
15074
|
-
oe(
|
|
15085
|
+
var Re = __read$1(Se, 1), Ae = Re[0], xe = Ae || buildResult(ne, 100, "Event not tracked, no destination plugins on the instance");
|
|
15086
|
+
oe(xe);
|
|
15075
15087
|
}), [
|
|
15076
15088
|
2
|
|
15077
15089
|
/*return*/
|
|
@@ -16941,11 +16953,11 @@ var IdentityStoreImpl = (
|
|
|
16941
16953
|
var te, ne, ie, oe, se, ae, ue, ce, le, de, fe, he, pe, ge, me, ye, ve, be, _e, Ce, Te, Se;
|
|
16942
16954
|
if (typeof re != "object")
|
|
16943
16955
|
return null;
|
|
16944
|
-
var Re = re.code || 0,
|
|
16945
|
-
switch (
|
|
16956
|
+
var Re = re.code || 0, Ae = this.buildStatus(Re);
|
|
16957
|
+
switch (Ae) {
|
|
16946
16958
|
case Status.Success:
|
|
16947
16959
|
return {
|
|
16948
|
-
status:
|
|
16960
|
+
status: Ae,
|
|
16949
16961
|
statusCode: Re,
|
|
16950
16962
|
body: {
|
|
16951
16963
|
eventsIngested: (te = re.events_ingested) !== null && te !== void 0 ? te : 0,
|
|
@@ -16955,7 +16967,7 @@ var IdentityStoreImpl = (
|
|
|
16955
16967
|
};
|
|
16956
16968
|
case Status.Invalid:
|
|
16957
16969
|
return {
|
|
16958
|
-
status:
|
|
16970
|
+
status: Ae,
|
|
16959
16971
|
statusCode: Re,
|
|
16960
16972
|
body: {
|
|
16961
16973
|
error: (oe = re.error) !== null && oe !== void 0 ? oe : "",
|
|
@@ -16973,7 +16985,7 @@ var IdentityStoreImpl = (
|
|
|
16973
16985
|
};
|
|
16974
16986
|
case Status.PayloadTooLarge:
|
|
16975
16987
|
return {
|
|
16976
|
-
status:
|
|
16988
|
+
status: Ae,
|
|
16977
16989
|
statusCode: Re,
|
|
16978
16990
|
body: {
|
|
16979
16991
|
error: (me = re.error) !== null && me !== void 0 ? me : ""
|
|
@@ -16981,7 +16993,7 @@ var IdentityStoreImpl = (
|
|
|
16981
16993
|
};
|
|
16982
16994
|
case Status.RateLimit:
|
|
16983
16995
|
return {
|
|
16984
|
-
status:
|
|
16996
|
+
status: Ae,
|
|
16985
16997
|
statusCode: Re,
|
|
16986
16998
|
body: {
|
|
16987
16999
|
error: (ye = re.error) !== null && ye !== void 0 ? ye : "",
|
|
@@ -16996,7 +17008,7 @@ var IdentityStoreImpl = (
|
|
|
16996
17008
|
case Status.Timeout:
|
|
16997
17009
|
default:
|
|
16998
17010
|
return {
|
|
16999
|
-
status:
|
|
17011
|
+
status: Ae,
|
|
17000
17012
|
statusCode: Re
|
|
17001
17013
|
};
|
|
17002
17014
|
}
|
|
@@ -18169,20 +18181,20 @@ var NetworkEventCallback = (
|
|
|
18169
18181
|
/** @class */
|
|
18170
18182
|
(function(ee) {
|
|
18171
18183
|
__extends(re, ee);
|
|
18172
|
-
function re(te, ne, ie, oe, se, ae, ue, ce, le, de, fe, he, pe, ge, me, ye, ve, be, _e, Ce, Te, Se, Re,
|
|
18184
|
+
function re(te, ne, ie, oe, se, ae, ue, ce, le, de, fe, he, pe, ge, me, ye, ve, be, _e, Ce, Te, Se, Re, Ae, xe, Pe, De, Fe, Ue, He, je, lr, Ge, hr, fr, dr, Qe, Bt, Cr, $e) {
|
|
18173
18185
|
ie === void 0 && (ie = new MemoryStorage()), oe === void 0 && (oe = {
|
|
18174
18186
|
domain: "",
|
|
18175
18187
|
expiration: 365,
|
|
18176
18188
|
sameSite: "Lax",
|
|
18177
18189
|
secure: !1,
|
|
18178
18190
|
upgrade: !0
|
|
18179
|
-
}), ce === void 0 && (ce = 1e3), le === void 0 && (le = 5), de === void 0 && (de = 30), fe === void 0 && (fe = DEFAULT_IDENTITY_STORAGE), ye === void 0 && (ye = new Logger()), ve === void 0 && (ve = LogLevel.Warn), _e === void 0 && (_e = !1), Ce === void 0 && (Ce = !1), Re === void 0 && (Re = ""),
|
|
18191
|
+
}), ce === void 0 && (ce = 1e3), le === void 0 && (le = 5), de === void 0 && (de = 30), fe === void 0 && (fe = DEFAULT_IDENTITY_STORAGE), ye === void 0 && (ye = new Logger()), ve === void 0 && (ve = LogLevel.Warn), _e === void 0 && (_e = !1), Ce === void 0 && (Ce = !1), Re === void 0 && (Re = ""), Ae === void 0 && (Ae = DEFAULT_SERVER_ZONE), Pe === void 0 && (Pe = 1800 * 1e3), De === void 0 && (De = new LocalStorage({ loggerProvider: ye })), Fe === void 0 && (Fe = {
|
|
18180
18192
|
ipAddress: !0,
|
|
18181
18193
|
language: !0,
|
|
18182
18194
|
platform: !0
|
|
18183
18195
|
}), Ue === void 0 && (Ue = "fetch"), He === void 0 && (He = !1), je === void 0 && (je = !0), Qe === void 0 && (Qe = !0), Bt === void 0 && (Bt = 0);
|
|
18184
18196
|
var ke = ee.call(this, { apiKey: te, storageProvider: De, transportProvider: createTransport(Ue) }) || this;
|
|
18185
|
-
return ke.apiKey = te, ke.appVersion = ne, ke.cookieOptions = oe, ke.defaultTracking = se, ke.autocapture = ae, ke.flushIntervalMillis = ce, ke.flushMaxRetries = le, ke.flushQueueSize = de, ke.identityStorage = fe, ke.ingestionMetadata = he, ke.instanceName = pe, ke.loggerProvider = ye, ke.logLevel = ve, ke.minIdLength = be, ke.offline = _e, ke.partnerId = Te, ke.plan = Se, ke.serverUrl = Re, ke.serverZone =
|
|
18197
|
+
return ke.apiKey = te, ke.appVersion = ne, ke.cookieOptions = oe, ke.defaultTracking = se, ke.autocapture = ae, ke.flushIntervalMillis = ce, ke.flushMaxRetries = le, ke.flushQueueSize = de, ke.identityStorage = fe, ke.ingestionMetadata = he, ke.instanceName = pe, ke.loggerProvider = ye, ke.logLevel = ve, ke.minIdLength = be, ke.offline = _e, ke.partnerId = Te, ke.plan = Se, ke.serverUrl = Re, ke.serverZone = Ae, ke.sessionTimeout = Pe, ke.storageProvider = De, ke.trackingOptions = Fe, ke.transport = Ue, ke.useBatch = He, ke.fetchRemoteConfig = je, ke.networkTrackingOptions = fr, ke.identify = dr, ke.enableDiagnostics = Qe, ke.diagnosticsSampleRate = Bt, ke.diagnosticsClient = Cr, ke.remoteConfig = $e, ke.version = VERSION$3, ke._optOut = !1, ke._cookieStorage = ie, ke.deviceId = ue, ke.lastEventId = ge, ke.lastEventTime = me, ke.optOut = Ce, ke.sessionId = xe, ke.pageCounter = Ge, ke.userId = lr, ke.debugLogsEnabled = hr, ke.loggerProvider.enable(hr ? LogLevel.Debug : ke.logLevel), ke.networkTrackingOptions = fr, ke.identify = dr, ke.enableDiagnostics = Qe, ke.diagnosticsSampleRate = Bt, ke.diagnosticsClient = Cr, je && (ke.remoteConfig || (ke.remoteConfig = {
|
|
18186
18198
|
fetchRemoteConfig: je
|
|
18187
18199
|
}), ke.remoteConfig.fetchRemoteConfig || (ke.remoteConfig.fetchRemoteConfig = je)), ke;
|
|
18188
18200
|
}
|
|
@@ -18280,13 +18292,13 @@ var NetworkEventCallback = (
|
|
|
18280
18292
|
})(Config)
|
|
18281
18293
|
), useBrowserConfig = function(ee, re, te) {
|
|
18282
18294
|
return re === void 0 && (re = {}), __awaiter(void 0, void 0, void 0, function() {
|
|
18283
|
-
var ne, ie, oe, se, ae, ue, ce, le, de, fe, he, pe, ge, me, ye, ve, be, _e, Ce, Te, Se, Re,
|
|
18295
|
+
var ne, ie, oe, se, ae, ue, ce, le, de, fe, he, pe, ge, me, ye, ve, be, _e, Ce, Te, Se, Re, Ae, xe, Pe, De, Fe, Ue, He, je, lr, Ge, hr, fr, dr, Qe, Bt, Cr, $e, ke, We, mr, ur, Sr, jr;
|
|
18284
18296
|
return __generator(this, function(Fr) {
|
|
18285
18297
|
switch (Fr.label) {
|
|
18286
18298
|
case 0:
|
|
18287
18299
|
return ne = re.identityStorage || DEFAULT_IDENTITY_STORAGE, Se = {}, ne === DEFAULT_IDENTITY_STORAGE ? [3, 1] : (oe = "", [3, 5]);
|
|
18288
18300
|
case 1:
|
|
18289
|
-
return (
|
|
18301
|
+
return (Ae = (Re = re.cookieOptions) === null || Re === void 0 ? void 0 : Re.domain) !== null && Ae !== void 0 ? (se = Ae, [3, 4]) : [3, 2];
|
|
18290
18302
|
case 2:
|
|
18291
18303
|
return [4, getTopLevelDomain()];
|
|
18292
18304
|
case 3:
|
|
@@ -18294,7 +18306,7 @@ var NetworkEventCallback = (
|
|
|
18294
18306
|
case 4:
|
|
18295
18307
|
oe = se, Fr.label = 5;
|
|
18296
18308
|
case 5:
|
|
18297
|
-
return ie = __assign$1.apply(void 0, [(Se.domain = oe, Se.expiration = 365, Se.sameSite = "Lax", Se.secure = !1, Se.upgrade = !0, Se), re.cookieOptions]), ae = createCookieStorage(re.identityStorage, ie), [4, parseLegacyCookies(ee, ae, (Pe = (
|
|
18309
|
+
return ie = __assign$1.apply(void 0, [(Se.domain = oe, Se.expiration = 365, Se.sameSite = "Lax", Se.secure = !1, Se.upgrade = !0, Se), re.cookieOptions]), ae = createCookieStorage(re.identityStorage, ie), [4, parseLegacyCookies(ee, ae, (Pe = (xe = re.cookieOptions) === null || xe === void 0 ? void 0 : xe.upgrade) !== null && Pe !== void 0 ? Pe : !0)];
|
|
18298
18310
|
case 6:
|
|
18299
18311
|
return ue = Fr.sent(), [4, ae.get(getCookieName(ee))];
|
|
18300
18312
|
case 7:
|
|
@@ -18469,8 +18481,8 @@ var NetworkEventCallback = (
|
|
|
18469
18481
|
case 0:
|
|
18470
18482
|
return re = ve, oe = ye, ne = ye.loggerProvider, ne.log("Installing @amplitude/plugin-page-view-tracking-browser"), ie = !0, te && (te.addEventListener("popstate", ge), te.history.pushState = new Proxy(te.history.pushState, {
|
|
18471
18483
|
apply: function(Te, Se, Re) {
|
|
18472
|
-
var
|
|
18473
|
-
Te.apply(Se, [
|
|
18484
|
+
var Ae = __read$1(Re, 3), xe = Ae[0], Pe = Ae[1], De = Ae[2];
|
|
18485
|
+
Te.apply(Se, [xe, Pe, De]), ie && pe();
|
|
18474
18486
|
}
|
|
18475
18487
|
})), fe() ? (ne.log("Tracking page view event"), _e = (be = re).track, [4, de()]) : [3, 2];
|
|
18476
18488
|
case 1:
|
|
@@ -18785,13 +18797,13 @@ function translateRemoteConfigToLocal(ee) {
|
|
|
18785
18797
|
var be = ve.value;
|
|
18786
18798
|
try {
|
|
18787
18799
|
for (var _e = (oe = void 0, __values$1(["responseHeaders", "requestHeaders"])), Ce = _e.next(); !Ce.done; Ce = _e.next()) {
|
|
18788
|
-
var Te = Ce.value, Se = (le = be[Te]) !== null && le !== void 0 ? le : {}, Re = Se.captureSafeHeaders,
|
|
18789
|
-
if (!(!Re && !
|
|
18790
|
-
if (
|
|
18800
|
+
var Te = Ce.value, Se = (le = be[Te]) !== null && le !== void 0 ? le : {}, Re = Se.captureSafeHeaders, Ae = Se.allowlist;
|
|
18801
|
+
if (!(!Re && !Ae)) {
|
|
18802
|
+
if (Ae !== void 0 && !Array.isArray(Ae)) {
|
|
18791
18803
|
delete be[Te];
|
|
18792
18804
|
continue;
|
|
18793
18805
|
}
|
|
18794
|
-
be[Te] = __spreadArray(__spreadArray([], __read$1(Re ? SAFE_HEADERS : []), !1), __read$1(
|
|
18806
|
+
be[Te] = __spreadArray(__spreadArray([], __read$1(Re ? SAFE_HEADERS : []), !1), __read$1(Ae ?? []), !1);
|
|
18795
18807
|
}
|
|
18796
18808
|
}
|
|
18797
18809
|
} catch (Pe) {
|
|
@@ -18815,8 +18827,8 @@ function translateRemoteConfigToLocal(ee) {
|
|
|
18815
18827
|
}
|
|
18816
18828
|
} catch {
|
|
18817
18829
|
}
|
|
18818
|
-
var
|
|
18819
|
-
|
|
18830
|
+
var xe = (de = ee.autocapture) === null || de === void 0 ? void 0 : de.frustrationInteractions;
|
|
18831
|
+
xe && (xe.rageClick && (xe.rageClicks = xe.rageClick, delete xe.rageClick), xe.deadClick && (xe.deadClicks = xe.deadClick, delete xe.deadClick));
|
|
18820
18832
|
}
|
|
18821
18833
|
}
|
|
18822
18834
|
function mergeUrls(ee, re, te) {
|
|
@@ -20302,15 +20314,15 @@ var getDataSource = function(ee, re) {
|
|
|
20302
20314
|
for (var be = getAncestors(fe), _e = /* @__PURE__ */ new Map(), Ce = be.length - 1; Ce >= 0; Ce--) {
|
|
20303
20315
|
var Te = be[Ce];
|
|
20304
20316
|
if (Te) {
|
|
20305
|
-
var Se = parseAttributesToMask(Te.getAttribute(DATA_AMP_MASK_ATTRIBUTES)), Re = Ce === be.length - 1 ? [] : (ge = _e.get(be[Ce + 1])) !== null && ge !== void 0 ? ge : /* @__PURE__ */ new Set(),
|
|
20306
|
-
_e.set(Te,
|
|
20317
|
+
var Se = parseAttributesToMask(Te.getAttribute(DATA_AMP_MASK_ATTRIBUTES)), Re = Ce === be.length - 1 ? [] : (ge = _e.get(be[Ce + 1])) !== null && ge !== void 0 ? ge : /* @__PURE__ */ new Set(), Ae = new Set(__spreadArray(__spreadArray([], __read$1(Re), !1), __read$1(Se), !1));
|
|
20318
|
+
_e.set(Te, Ae);
|
|
20307
20319
|
}
|
|
20308
20320
|
}
|
|
20309
20321
|
ve = be.map(function(He) {
|
|
20310
20322
|
var je;
|
|
20311
20323
|
return getElementProperties(He, (je = _e.get(He)) !== null && je !== void 0 ? je : /* @__PURE__ */ new Set());
|
|
20312
20324
|
});
|
|
20313
|
-
var
|
|
20325
|
+
var xe = function(He) {
|
|
20314
20326
|
He != null && He.attrs && Object.entries(He.attrs).forEach(function(je) {
|
|
20315
20327
|
var lr = __read$1(je, 2), Ge = lr[0], hr = lr[1];
|
|
20316
20328
|
He.attrs && (He.attrs[Ge] = oe.replaceSensitiveString(hr));
|
|
@@ -20319,7 +20331,7 @@ var getDataSource = function(ee, re) {
|
|
|
20319
20331
|
try {
|
|
20320
20332
|
for (var Pe = __values$1(ve), De = Pe.next(); !De.done; De = Pe.next()) {
|
|
20321
20333
|
var Fe = De.value;
|
|
20322
|
-
|
|
20334
|
+
xe(Fe);
|
|
20323
20335
|
}
|
|
20324
20336
|
} catch (He) {
|
|
20325
20337
|
he = { error: He };
|
|
@@ -20344,8 +20356,8 @@ var getDataSource = function(ee, re) {
|
|
|
20344
20356
|
}
|
|
20345
20357
|
return pe ? oe.getText(pe) : oe.getNearestLabel(he);
|
|
20346
20358
|
}, this.getEventProperties = function(fe, he, pe) {
|
|
20347
|
-
var ge, me, ye, ve, be = (ye = (me = he == null ? void 0 : he.tagName) === null || me === void 0 ? void 0 : me.toLowerCase) === null || ye === void 0 ? void 0 : ye.call(me), _e = typeof he.getBoundingClientRect == "function" ? he.getBoundingClientRect() : { left: null, top: null }, Ce = oe.getHierarchy(he), Te = (ve = Ce[0]) === null || ve === void 0 ? void 0 : ve.attrs, Se = oe.getNearestLabel(he), Re = extractPrefixedAttributes(Te ?? {}, pe),
|
|
20348
|
-
return
|
|
20359
|
+
var ge, me, ye, ve, be = (ye = (me = he == null ? void 0 : he.tagName) === null || me === void 0 ? void 0 : me.toLowerCase) === null || ye === void 0 ? void 0 : ye.call(me), _e = typeof he.getBoundingClientRect == "function" ? he.getBoundingClientRect() : { left: null, top: null }, Ce = oe.getHierarchy(he), Te = (ve = Ce[0]) === null || ve === void 0 ? void 0 : ve.attrs, Se = oe.getNearestLabel(he), Re = extractPrefixedAttributes(Te ?? {}, pe), Ae = (ge = {}, ge[AMPLITUDE_EVENT_PROP_ELEMENT_HIERARCHY] = Ce, ge[AMPLITUDE_EVENT_PROP_ELEMENT_TAG] = be, ge[AMPLITUDE_EVENT_PROP_ELEMENT_TEXT] = oe.getText(he), ge[AMPLITUDE_EVENT_PROP_ELEMENT_POSITION_LEFT] = _e.left == null ? null : Math.round(_e.left), ge[AMPLITUDE_EVENT_PROP_ELEMENT_POSITION_TOP] = _e.top == null ? null : Math.round(_e.top), ge[AMPLITUDE_EVENT_PROP_ELEMENT_ATTRIBUTES] = Re, ge[AMPLITUDE_EVENT_PROP_ELEMENT_PARENT_LABEL] = Se, ge[AMPLITUDE_EVENT_PROP_PAGE_URL] = getDecodeURI(window.location.href.split("?")[0]), ge[AMPLITUDE_EVENT_PROP_PAGE_TITLE] = getPageTitle(oe.replaceSensitiveString), ge[AMPLITUDE_EVENT_PROP_VIEWPORT_HEIGHT] = window.innerHeight, ge[AMPLITUDE_EVENT_PROP_VIEWPORT_WIDTH] = window.innerWidth, ge);
|
|
20360
|
+
return Ae[AMPLITUDE_EVENT_PROP_ELEMENT_ID] = he.getAttribute("id") || "", Ae[AMPLITUDE_EVENT_PROP_ELEMENT_CLASS] = he.getAttribute("class"), Ae[AMPLITUDE_EVENT_PROP_ELEMENT_ARIA_LABEL] = Te == null ? void 0 : Te["aria-label"], be === "a" && fe === "click" && he instanceof HTMLAnchorElement && (Ae[AMPLITUDE_EVENT_PROP_ELEMENT_HREF] = oe.replaceSensitiveString(he.href)), removeEmptyProperties(Ae);
|
|
20349
20361
|
}, this.addAdditionalEventProperties = function(fe, he, pe, ge, me) {
|
|
20350
20362
|
me === void 0 && (me = !1);
|
|
20351
20363
|
var ye = {
|
|
@@ -20749,17 +20761,17 @@ var autocapturePlugin = function(ee, re) {
|
|
|
20749
20761
|
enabled: !0,
|
|
20750
20762
|
messenger: new WindowMessenger()
|
|
20751
20763
|
} : fe;
|
|
20752
|
-
ee.cssSelectorAllowlist = (te = ee.cssSelectorAllowlist) !== null && te !== void 0 ? te : DEFAULT_CSS_SELECTOR_ALLOWLIST, ee.actionClickAllowlist = (ne = ee.actionClickAllowlist) !== null && ne !== void 0 ? ne : DEFAULT_ACTION_CLICK_ALLOWLIST, ee.debounceTime = (ie = ee.debounceTime) !== null && ie !== void 0 ? ie : 0, ee.pageUrlExcludelist = (oe = ee.pageUrlExcludelist) === null || oe === void 0 ? void 0 : oe.reduce(function(
|
|
20753
|
-
if (typeof Pe == "string" &&
|
|
20764
|
+
ee.cssSelectorAllowlist = (te = ee.cssSelectorAllowlist) !== null && te !== void 0 ? te : DEFAULT_CSS_SELECTOR_ALLOWLIST, ee.actionClickAllowlist = (ne = ee.actionClickAllowlist) !== null && ne !== void 0 ? ne : DEFAULT_ACTION_CLICK_ALLOWLIST, ee.debounceTime = (ie = ee.debounceTime) !== null && ie !== void 0 ? ie : 0, ee.pageUrlExcludelist = (oe = ee.pageUrlExcludelist) === null || oe === void 0 ? void 0 : oe.reduce(function(xe, Pe) {
|
|
20765
|
+
if (typeof Pe == "string" && xe.push(Pe), Pe instanceof RegExp && xe.push(Pe), typeof Pe == "object" && Pe !== null && "pattern" in Pe)
|
|
20754
20766
|
try {
|
|
20755
|
-
|
|
20767
|
+
xe.push(new RegExp(Pe.pattern));
|
|
20756
20768
|
} catch (De) {
|
|
20757
|
-
return console.warn("Invalid regex pattern: ".concat(Pe.pattern), De),
|
|
20769
|
+
return console.warn("Invalid regex pattern: ".concat(Pe.pattern), De), xe;
|
|
20758
20770
|
}
|
|
20759
|
-
return
|
|
20771
|
+
return xe;
|
|
20760
20772
|
}, []);
|
|
20761
20773
|
var pe = PLUGIN_NAME$2, ge = "enrichment", me = [], ye = new DataExtractor(ee, re), ve = function() {
|
|
20762
|
-
var
|
|
20774
|
+
var xe, Pe = createClickObservable().pipe(map(function(He) {
|
|
20763
20775
|
return ye.addAdditionalEventProperties(He, "click", ee.cssSelectorAllowlist, de);
|
|
20764
20776
|
}), share()), De = fromEvent(document, "change", { capture: !0 }).pipe(map(function(He) {
|
|
20765
20777
|
return ye.addAdditionalEventProperties(He, "change", ee.cssSelectorAllowlist, de);
|
|
@@ -20770,21 +20782,21 @@ var autocapturePlugin = function(ee, re) {
|
|
|
20770
20782
|
var Ue = createMutationObservable().pipe(map(function(He) {
|
|
20771
20783
|
return ye.addAdditionalEventProperties(He, "mutation", ee.cssSelectorAllowlist, de);
|
|
20772
20784
|
}), share());
|
|
20773
|
-
return
|
|
20774
|
-
|
|
20775
|
-
}, be = groupLabeledEventIdsByEventType(Object.values((ae = (se = ee.pageActions) === null || se === void 0 ? void 0 : se.labeledEvents) !== null && ae !== void 0 ? ae : {})), _e = createLabeledEventToTriggerMap((ce = (ue = ee.pageActions) === null || ue === void 0 ? void 0 : ue.triggers) !== null && ce !== void 0 ? ce : []), Ce = createTriggerEvaluator(be, _e, ye, ee), Te = function(
|
|
20785
|
+
return xe = {}, xe[ObservablesEnum$1.ClickObservable] = Pe, xe[ObservablesEnum$1.ChangeObservable] = De, // [ObservablesEnum.ErrorObservable]: errorObservable,
|
|
20786
|
+
xe[ObservablesEnum$1.NavigateObservable] = Fe, xe[ObservablesEnum$1.MutationObservable] = Ue, xe;
|
|
20787
|
+
}, be = groupLabeledEventIdsByEventType(Object.values((ae = (se = ee.pageActions) === null || se === void 0 ? void 0 : se.labeledEvents) !== null && ae !== void 0 ? ae : {})), _e = createLabeledEventToTriggerMap((ce = (ue = ee.pageActions) === null || ue === void 0 ? void 0 : ue.triggers) !== null && ce !== void 0 ? ce : []), Ce = createTriggerEvaluator(be, _e, ye, ee), Te = function(xe) {
|
|
20776
20788
|
var Pe, De;
|
|
20777
|
-
|
|
20778
|
-
}, Se = function(
|
|
20789
|
+
xe && (ee.pageActions = __assign$1(__assign$1({}, ee.pageActions), xe), be = groupLabeledEventIdsByEventType(Object.values((Pe = ee.pageActions.labeledEvents) !== null && Pe !== void 0 ? Pe : {})), _e = createLabeledEventToTriggerMap((De = ee.pageActions.triggers) !== null && De !== void 0 ? De : []), Ce.update(be, _e, ee));
|
|
20790
|
+
}, Se = function(xe, Pe) {
|
|
20779
20791
|
return __awaiter(void 0, void 0, void 0, function() {
|
|
20780
20792
|
var De, Fe, Ue, He, je, lr, Ge, hr, fr, dr;
|
|
20781
20793
|
return __generator(this, function(Qe) {
|
|
20782
20794
|
return typeof document > "u" ? [
|
|
20783
20795
|
2
|
|
20784
20796
|
/*return*/
|
|
20785
|
-
] : (
|
|
20797
|
+
] : (xe.fetchRemoteConfig && (xe.remoteConfigClient ? xe.remoteConfigClient.subscribe("analyticsSDK.pageActions", "all", function(Bt) {
|
|
20786
20798
|
Te(Bt);
|
|
20787
|
-
}) :
|
|
20799
|
+
}) : xe.loggerProvider.debug("Remote config client is not provided, skipping remote config fetch")), De = createShouldTrackEvent(ee, ee.cssSelectorAllowlist), Fe = createShouldTrackEvent(ee, ee.actionClickAllowlist), Ue = ve(), He = trackClicks({
|
|
20788
20800
|
allObservables: Ue,
|
|
20789
20801
|
options: ee,
|
|
20790
20802
|
amplitude: Pe,
|
|
@@ -20811,30 +20823,30 @@ var autocapturePlugin = function(ee, re) {
|
|
|
20811
20823
|
amplitude: Pe,
|
|
20812
20824
|
shouldTrackEvent: De,
|
|
20813
20825
|
shouldTrackActionClick: Fe
|
|
20814
|
-
}), me.push(lr), (fr =
|
|
20826
|
+
}), me.push(lr), (fr = xe == null ? void 0 : xe.loggerProvider) === null || fr === void 0 || fr.log("".concat(pe, " has been successfully added.")), window.opener && he.enabled && (Ge = ee.cssSelectorAllowlist, hr = ee.actionClickAllowlist, (dr = he.messenger) === null || dr === void 0 || dr.setup(__assign$1(__assign$1({ dataExtractor: ye, logger: xe == null ? void 0 : xe.loggerProvider }, (xe == null ? void 0 : xe.serverZone) && { endpoint: AMPLITUDE_ORIGINS_MAP[xe.serverZone] }), { isElementSelectable: createShouldTrackEvent(ee, __spreadArray(__spreadArray([], __read$1(Ge), !1), __read$1(hr), !1)), cssSelectorAllowlist: Ge, actionClickAllowlist: hr }))), [
|
|
20815
20827
|
2
|
|
20816
20828
|
/*return*/
|
|
20817
20829
|
]);
|
|
20818
20830
|
});
|
|
20819
20831
|
});
|
|
20820
|
-
}, Re = function(
|
|
20832
|
+
}, Re = function(xe) {
|
|
20821
20833
|
return __awaiter(void 0, void 0, void 0, function() {
|
|
20822
20834
|
return __generator(this, function(Pe) {
|
|
20823
|
-
return [2,
|
|
20835
|
+
return [2, xe];
|
|
20824
20836
|
});
|
|
20825
20837
|
});
|
|
20826
|
-
},
|
|
20838
|
+
}, Ae = function() {
|
|
20827
20839
|
return __awaiter(void 0, void 0, void 0, function() {
|
|
20828
|
-
var
|
|
20840
|
+
var xe, Pe, De, Fe, Ue;
|
|
20829
20841
|
return __generator(this, function(He) {
|
|
20830
20842
|
try {
|
|
20831
|
-
for (
|
|
20843
|
+
for (xe = __values$1(me), Pe = xe.next(); !Pe.done; Pe = xe.next())
|
|
20832
20844
|
De = Pe.value, De.unsubscribe();
|
|
20833
20845
|
} catch (je) {
|
|
20834
20846
|
Fe = { error: je };
|
|
20835
20847
|
} finally {
|
|
20836
20848
|
try {
|
|
20837
|
-
Pe && !Pe.done && (Ue =
|
|
20849
|
+
Pe && !Pe.done && (Ue = xe.return) && Ue.call(xe);
|
|
20838
20850
|
} finally {
|
|
20839
20851
|
if (Fe) throw Fe.error;
|
|
20840
20852
|
}
|
|
@@ -20851,7 +20863,7 @@ var autocapturePlugin = function(ee, re) {
|
|
|
20851
20863
|
type: ge,
|
|
20852
20864
|
setup: Se,
|
|
20853
20865
|
execute: Re,
|
|
20854
|
-
teardown:
|
|
20866
|
+
teardown: Ae
|
|
20855
20867
|
};
|
|
20856
20868
|
}, DEAD_CLICK_TIMEOUT = 3e3;
|
|
20857
20869
|
function trackDeadClick(ee) {
|
|
@@ -20950,8 +20962,8 @@ var frustrationPlugin = function(ee) {
|
|
|
20950
20962
|
return ve = {}, ve[ObservablesEnum$1.ClickObservable] = be, ve[ObservablesEnum$1.ChangeObservable] = new Observable(), ve[ObservablesEnum$1.NavigateObservable] = _e, ve[ObservablesEnum$1.MutationObservable] = Ce, ve;
|
|
20951
20963
|
}, ge = function(ve, be) {
|
|
20952
20964
|
return __awaiter(void 0, void 0, void 0, function() {
|
|
20953
|
-
var _e, Ce, Te, Se, Re,
|
|
20954
|
-
return __generator(this, function(
|
|
20965
|
+
var _e, Ce, Te, Se, Re, Ae;
|
|
20966
|
+
return __generator(this, function(xe) {
|
|
20955
20967
|
return typeof document > "u" ? [
|
|
20956
20968
|
2
|
|
20957
20969
|
/*return*/
|
|
@@ -20966,7 +20978,7 @@ var frustrationPlugin = function(ee) {
|
|
|
20966
20978
|
return fe.getEventProperties(Pe, De, de);
|
|
20967
20979
|
},
|
|
20968
20980
|
shouldTrackDeadClick: Ce
|
|
20969
|
-
}), ue.push(Re), (
|
|
20981
|
+
}), ue.push(Re), (Ae = ve == null ? void 0 : ve.loggerProvider) === null || Ae === void 0 || Ae.log("".concat(se, " has been successfully added.")), [
|
|
20970
20982
|
2
|
|
20971
20983
|
/*return*/
|
|
20972
20984
|
]);
|
|
@@ -21272,9 +21284,9 @@ function a(ee, re) {
|
|
|
21272
21284
|
}
|
|
21273
21285
|
class d {
|
|
21274
21286
|
constructor() {
|
|
21275
|
-
|
|
21276
|
-
|
|
21277
|
-
|
|
21287
|
+
we(this, "t");
|
|
21288
|
+
we(this, "i", 0);
|
|
21289
|
+
we(this, "o", []);
|
|
21278
21290
|
}
|
|
21279
21291
|
h(re) {
|
|
21280
21292
|
var ie;
|
|
@@ -21363,10 +21375,10 @@ const C = () => w ? P : performance.interactionCount ?? 0, I = () => {
|
|
|
21363
21375
|
let F = 0;
|
|
21364
21376
|
class k {
|
|
21365
21377
|
constructor() {
|
|
21366
|
-
|
|
21367
|
-
|
|
21368
|
-
|
|
21369
|
-
|
|
21378
|
+
we(this, "u", []);
|
|
21379
|
+
we(this, "l", /* @__PURE__ */ new Map());
|
|
21380
|
+
we(this, "m");
|
|
21381
|
+
we(this, "p");
|
|
21370
21382
|
}
|
|
21371
21383
|
v() {
|
|
21372
21384
|
F = C(), this.u.length = 0, this.l.clear();
|
|
@@ -21416,7 +21428,7 @@ const A = (ee) => {
|
|
|
21416
21428
|
};
|
|
21417
21429
|
class N {
|
|
21418
21430
|
constructor() {
|
|
21419
|
-
|
|
21431
|
+
we(this, "m");
|
|
21420
21432
|
}
|
|
21421
21433
|
h(re) {
|
|
21422
21434
|
var te;
|
|
@@ -22024,51 +22036,51 @@ const ApiKey = {
|
|
|
22024
22036
|
};
|
|
22025
22037
|
class AstroPayPaymentCardClicked {
|
|
22026
22038
|
constructor(re) {
|
|
22027
|
-
|
|
22039
|
+
we(this, "event_type", "AstroPay Payment Card Clicked");
|
|
22028
22040
|
this.event_properties = re, this.event_properties = re;
|
|
22029
22041
|
}
|
|
22030
22042
|
}
|
|
22031
22043
|
class AstroPayPaymentClicked {
|
|
22032
22044
|
constructor(re) {
|
|
22033
|
-
|
|
22045
|
+
we(this, "event_type", "AstroPay Payment Clicked");
|
|
22034
22046
|
this.event_properties = re, this.event_properties = re;
|
|
22035
22047
|
}
|
|
22036
22048
|
}
|
|
22037
22049
|
class AstroPayPaymentImpression {
|
|
22038
22050
|
constructor(re) {
|
|
22039
|
-
|
|
22051
|
+
we(this, "event_type", "AstroPay Payment Impression");
|
|
22040
22052
|
this.event_properties = re, this.event_properties = re;
|
|
22041
22053
|
}
|
|
22042
22054
|
}
|
|
22043
22055
|
class AstroPayPaymentLinkCopied {
|
|
22044
22056
|
constructor(re) {
|
|
22045
|
-
|
|
22057
|
+
we(this, "event_type", "AstroPay Payment Link Copied");
|
|
22046
22058
|
this.event_properties = re, this.event_properties = re;
|
|
22047
22059
|
}
|
|
22048
22060
|
}
|
|
22049
22061
|
class AstroPayPaymentPhoneNumberEntered {
|
|
22050
22062
|
constructor(re) {
|
|
22051
|
-
|
|
22063
|
+
we(this, "event_type", "AstroPay Payment Phone Number Entered");
|
|
22052
22064
|
this.event_properties = re, this.event_properties = re;
|
|
22053
22065
|
}
|
|
22054
22066
|
}
|
|
22055
22067
|
class AstroPayPaymentStarted {
|
|
22056
22068
|
constructor(re) {
|
|
22057
|
-
|
|
22069
|
+
we(this, "event_type", "AstroPay Payment Started");
|
|
22058
22070
|
this.event_properties = re, this.event_properties = re;
|
|
22059
22071
|
}
|
|
22060
22072
|
}
|
|
22061
22073
|
class AstroPayPaymentUserIdentified {
|
|
22062
22074
|
constructor(re) {
|
|
22063
|
-
|
|
22075
|
+
we(this, "event_type", "AstroPay Payment User Identified");
|
|
22064
22076
|
this.event_properties = re, this.event_properties = re;
|
|
22065
22077
|
}
|
|
22066
22078
|
}
|
|
22067
22079
|
const getVoidPromiseResult = () => ({ promise: Promise.resolve() });
|
|
22068
22080
|
class Ampli {
|
|
22069
22081
|
constructor() {
|
|
22070
|
-
|
|
22071
|
-
|
|
22082
|
+
we(this, "disabled", !1);
|
|
22083
|
+
we(this, "amplitude");
|
|
22072
22084
|
}
|
|
22073
22085
|
get client() {
|
|
22074
22086
|
return this.isInitializedAndEnabled(), this.amplitude;
|
|
@@ -22228,15 +22240,15 @@ class Ampli {
|
|
|
22228
22240
|
const ampli = new Ampli();
|
|
22229
22241
|
class AmplitudeTracker {
|
|
22230
22242
|
}
|
|
22231
|
-
|
|
22243
|
+
we(AmplitudeTracker, "init", () => {
|
|
22232
22244
|
const te = AstroPayConfig.getEnvironment() === "production";
|
|
22233
22245
|
ampli.load({
|
|
22234
22246
|
environment: te ? "production" : "development",
|
|
22235
22247
|
client: { apiKey: te ? ApiKey.production : ApiKey.development }
|
|
22236
22248
|
});
|
|
22237
|
-
}),
|
|
22249
|
+
}), we(AmplitudeTracker, "trackEvent", (re, te, ne) => {
|
|
22238
22250
|
typeof re == "string" ? ampli.client.track(re, te, ne) : ampli.track(re);
|
|
22239
|
-
}),
|
|
22251
|
+
}), we(AmplitudeTracker, "cleanData", () => {
|
|
22240
22252
|
ampli.client.reset();
|
|
22241
22253
|
});
|
|
22242
22254
|
function getDefaultExportFromCjs(ee) {
|
|
@@ -22300,8 +22312,8 @@ function requireSingularSdk() {
|
|
|
22300
22312
|
return ge.prototype = pe.prototype, ge;
|
|
22301
22313
|
};
|
|
22302
22314
|
ee.exports = function(pe, ge) {
|
|
22303
|
-
var me, ye, ve, be, _e, Ce, Te, Se, Re,
|
|
22304
|
-
for (be in ge) ye = !(me = ue(
|
|
22315
|
+
var me, ye, ve, be, _e, Ce, Te, Se, Re, Ae = pe.target, xe = pe.global, Pe = pe.stat, De = pe.proto, Fe = xe ? ne : Pe ? ne[Ae] : (ne[Ae] || {}).prototype, Ue = xe ? ce : ce[Ae] || de(ce, Ae, {})[Ae], He = Ue.prototype;
|
|
22316
|
+
for (be in ge) ye = !(me = ue(xe ? be : Ae + (Pe ? "." : "#") + be, pe.forced)) && Fe && fe(Fe, be), Ce = Ue[be], ye && (Te = pe.dontCallGetSet ? (Re = ae(Fe, be)) && Re.value : Fe[be]), _e = ye && Te ? Te : ge[be], ye && typeof Ce == typeof _e || (Se = pe.bind && ye ? le(_e, ne) : pe.wrap && ye ? he(_e) : De && se(_e) ? oe(_e) : _e, (pe.sham || _e && _e.sham || Ce && Ce.sham) && de(Se, "sham", !0), de(Ue, be, Se), De && (fe(ce, ve = Ae + "Prototype") || de(ce, ve, {}), de(ce[ve], be, _e), pe.real && He && (me || !He[be]) && de(He, be, _e)));
|
|
22305
22317
|
};
|
|
22306
22318
|
}, function(ee, re) {
|
|
22307
22319
|
ee.exports = function(te, ne) {
|
|
@@ -22782,7 +22794,7 @@ function requireSingularSdk() {
|
|
|
22782
22794
|
this.stopped = me, this.result = ye;
|
|
22783
22795
|
}, ge = pe.prototype;
|
|
22784
22796
|
ee.exports = function(me, ye, ve) {
|
|
22785
|
-
var be, _e, Ce, Te, Se, Re,
|
|
22797
|
+
var be, _e, Ce, Te, Se, Re, Ae, xe = ve && ve.that, Pe = !(!ve || !ve.AS_ENTRIES), De = !(!ve || !ve.IS_RECORD), Fe = !(!ve || !ve.IS_ITERATOR), Ue = !(!ve || !ve.INTERRUPTED), He = ne(ye, xe), je = function(Ge) {
|
|
22786
22798
|
return be && fe(be, "normal", Ge), new pe(!0, Ge);
|
|
22787
22799
|
}, lr = function(Ge) {
|
|
22788
22800
|
return Pe ? (oe(Ge), Ue ? He(Ge[0], Ge[1], je) : He(Ge[0], Ge[1])) : Ue ? He(Ge, je) : He(Ge);
|
|
@@ -22797,9 +22809,9 @@ function requireSingularSdk() {
|
|
|
22797
22809
|
}
|
|
22798
22810
|
be = le(me, _e);
|
|
22799
22811
|
}
|
|
22800
|
-
for (Re = De ? me.next : be.next; !(
|
|
22812
|
+
for (Re = De ? me.next : be.next; !(Ae = ie(Re, be)).done; ) {
|
|
22801
22813
|
try {
|
|
22802
|
-
Se = lr(
|
|
22814
|
+
Se = lr(Ae.value);
|
|
22803
22815
|
} catch (Ge) {
|
|
22804
22816
|
fe(be, "throw", Ge);
|
|
22805
22817
|
}
|
|
@@ -22926,7 +22938,7 @@ function requireSingularSdk() {
|
|
|
22926
22938
|
var ne = te(46), ie = te(6), oe = te(104), se = te(36), ae = te(52), ue = te(133), ce = ie([].push), le = function(de) {
|
|
22927
22939
|
var fe = de == 1, he = de == 2, pe = de == 3, ge = de == 4, me = de == 6, ye = de == 7, ve = de == 5 || me;
|
|
22928
22940
|
return function(be, _e, Ce, Te) {
|
|
22929
|
-
for (var Se, Re,
|
|
22941
|
+
for (var Se, Re, Ae = se(be), xe = oe(Ae), Pe = ne(_e, Ce), De = ae(xe), Fe = 0, Ue = Te || ue, He = fe ? Ue(be, De) : he || ye ? Ue(be, 0) : void 0; De > Fe; Fe++) if ((ve || Fe in xe) && (Re = Pe(Se = xe[Fe], Fe, Ae), de)) if (fe) He[Fe] = Re;
|
|
22930
22942
|
else if (Re) switch (de) {
|
|
22931
22943
|
case 3:
|
|
22932
22944
|
return !0;
|
|
@@ -23148,10 +23160,10 @@ function requireSingularSdk() {
|
|
|
23148
23160
|
return be !== void 0 ? !!be : oe(ve);
|
|
23149
23161
|
};
|
|
23150
23162
|
ne({ target: "Array", proto: !0, arity: 1, forced: !me || !fe("concat") }, { concat: function(ve) {
|
|
23151
|
-
var be, _e, Ce, Te, Se, Re = ae(this),
|
|
23152
|
-
for (be = -1, Ce = arguments.length; be < Ce; be++) if (ye(Se = be === -1 ? Re : arguments[be])) for (Te = ue(Se), ce(
|
|
23153
|
-
else ce(
|
|
23154
|
-
return
|
|
23163
|
+
var be, _e, Ce, Te, Se, Re = ae(this), Ae = de(Re, 0), xe = 0;
|
|
23164
|
+
for (be = -1, Ce = arguments.length; be < Ce; be++) if (ye(Se = be === -1 ? Re : arguments[be])) for (Te = ue(Se), ce(xe + Te), _e = 0; _e < Te; _e++, xe++) _e in Se && le(Ae, xe, Se[_e]);
|
|
23165
|
+
else ce(xe + 1), le(Ae, xe++, Se);
|
|
23166
|
+
return Ae.length = xe, Ae;
|
|
23155
23167
|
} });
|
|
23156
23168
|
}, function(ee, re, te) {
|
|
23157
23169
|
var ne = te(110), ie = Math.min;
|
|
@@ -23196,9 +23208,9 @@ function requireSingularSdk() {
|
|
|
23196
23208
|
var ne = te(1), ie = te(24), oe = te(66), se = te(14), ae = te(6), ue = te(5), ce = te(56), le = te(10), de = te(17), fe = te(85), he = te(74), pe = te(55), ge = ie("JSON", "stringify"), me = ae(/./.exec), ye = ae("".charAt), ve = ae("".charCodeAt), be = ae("".replace), _e = ae(1 .toString), Ce = /[\uD800-\uDFFF]/g, Te = /^[\uD800-\uDBFF]$/, Se = /^[\uDC00-\uDFFF]$/, Re = !pe || ue((function() {
|
|
23197
23209
|
var De = ie("Symbol")();
|
|
23198
23210
|
return ge([De]) != "[null]" || ge({ a: De }) != "{}" || ge(Object(De)) != "{}";
|
|
23199
|
-
})),
|
|
23211
|
+
})), Ae = ue((function() {
|
|
23200
23212
|
return ge("\uDF06\uD834") !== '"\\udf06\\ud834"' || ge("\uDEAD") !== '"\\udead"';
|
|
23201
|
-
})),
|
|
23213
|
+
})), xe = function(De, Fe) {
|
|
23202
23214
|
var Ue = he(arguments), He = Fe;
|
|
23203
23215
|
if ((de(Fe) || De !== void 0) && !fe(De)) return ce(Fe) || (Fe = function(je, lr) {
|
|
23204
23216
|
if (le(He) && (lr = se(He, this, je, lr)), !fe(lr)) return lr;
|
|
@@ -23207,9 +23219,9 @@ function requireSingularSdk() {
|
|
|
23207
23219
|
var He = ye(Ue, Fe - 1), je = ye(Ue, Fe + 1);
|
|
23208
23220
|
return me(Te, De) && !me(Se, je) || me(Se, De) && !me(Te, He) ? "\\u" + _e(ve(De, 0), 16) : De;
|
|
23209
23221
|
};
|
|
23210
|
-
ge && ne({ target: "JSON", stat: !0, arity: 3, forced: Re ||
|
|
23211
|
-
var He = he(arguments), je = oe(Re ?
|
|
23212
|
-
return
|
|
23222
|
+
ge && ne({ target: "JSON", stat: !0, arity: 3, forced: Re || Ae }, { stringify: function(De, Fe, Ue) {
|
|
23223
|
+
var He = he(arguments), je = oe(Re ? xe : ge, null, He);
|
|
23224
|
+
return Ae && typeof je == "string" ? be(je, Ce, Pe) : je;
|
|
23213
23225
|
} });
|
|
23214
23226
|
}, function(ee, re, te) {
|
|
23215
23227
|
te(12)("iterator");
|
|
@@ -23223,8 +23235,8 @@ function requireSingularSdk() {
|
|
|
23223
23235
|
var ne = te(1), ie = te(14), oe = te(26), se = te(145), ae = te(10), ue = te(146), ce = te(75), le = te(95), de = te(47), fe = te(37), he = te(31), pe = te(8), ge = te(59), me = te(147), ye = se.PROPER, ve = se.CONFIGURABLE, be = me.IteratorPrototype, _e = me.BUGGY_SAFARI_ITERATORS, Ce = pe("iterator"), Te = function() {
|
|
23224
23236
|
return this;
|
|
23225
23237
|
};
|
|
23226
|
-
ee.exports = function(Se, Re,
|
|
23227
|
-
ue(
|
|
23238
|
+
ee.exports = function(Se, Re, Ae, xe, Pe, De, Fe) {
|
|
23239
|
+
ue(Ae, Re, xe);
|
|
23228
23240
|
var Ue, He, je, lr = function(Cr) {
|
|
23229
23241
|
if (Cr === Pe && Qe) return Qe;
|
|
23230
23242
|
if (!_e && Cr in fr) return fr[Cr];
|
|
@@ -23233,11 +23245,11 @@ function requireSingularSdk() {
|
|
|
23233
23245
|
case "values":
|
|
23234
23246
|
case "entries":
|
|
23235
23247
|
return function() {
|
|
23236
|
-
return new
|
|
23248
|
+
return new Ae(this, Cr);
|
|
23237
23249
|
};
|
|
23238
23250
|
}
|
|
23239
23251
|
return function() {
|
|
23240
|
-
return new
|
|
23252
|
+
return new Ae(this);
|
|
23241
23253
|
};
|
|
23242
23254
|
}, Ge = Re + " Iterator", hr = !1, fr = Se.prototype, dr = fr[Ce] || fr["@@iterator"] || Pe && fr[Pe], Qe = !_e && dr || lr(Pe), Bt = Re == "Array" && fr.entries || dr;
|
|
23243
23255
|
if (Bt && (Ue = ce(Bt.call(new Se()))) !== Object.prototype && Ue.next && (oe || ce(Ue) === be || (le ? le(Ue, be) : ae(Ue[Ce]) || he(Ue, Ce, Te)), de(Ue, Ge, !0, !0), oe && (ge[Ge] = Te)), ye && Pe == "values" && dr && dr.name !== "values" && (!oe && ve ? fe(fr, "name", "values") : (hr = !0, Qe = function() {
|
|
@@ -23335,7 +23347,7 @@ function requireSingularSdk() {
|
|
|
23335
23347
|
me[ve] = ve;
|
|
23336
23348
|
})), fe({}, ge)[ye] != 7 || ae(fe({}, me)).join("") != "abcdefghijklmnopqrst";
|
|
23337
23349
|
})) ? function(ge, me) {
|
|
23338
|
-
for (var ye = le(ge), ve = arguments.length, be = 1, _e = ue.f, Ce = ce.f; ve > be; ) for (var Te, Se = de(arguments[be++]), Re = _e ? pe(ae(Se), _e(Se)) : ae(Se),
|
|
23350
|
+
for (var ye = le(ge), ve = arguments.length, be = 1, _e = ue.f, Ce = ce.f; ve > be; ) for (var Te, Se = de(arguments[be++]), Re = _e ? pe(ae(Se), _e(Se)) : ae(Se), Ae = Re.length, xe = 0; Ae > xe; ) Te = Re[xe++], ne && !oe(Ce, Se, Te) || (ye[Te] = Se[Te]);
|
|
23339
23351
|
return ye;
|
|
23340
23352
|
} : fe;
|
|
23341
23353
|
}, function(ee, re, te) {
|
|
@@ -23368,9 +23380,9 @@ function requireSingularSdk() {
|
|
|
23368
23380
|
ee.exports = function(pe) {
|
|
23369
23381
|
var ge = oe(pe), me = ue(this), ye = arguments.length, ve = ye > 1 ? arguments[1] : void 0, be = ve !== void 0;
|
|
23370
23382
|
be && (ve = ne(ve, ye > 2 ? arguments[2] : void 0));
|
|
23371
|
-
var _e, Ce, Te, Se, Re,
|
|
23372
|
-
if (!
|
|
23373
|
-
else for (Re = (Se = de(ge,
|
|
23383
|
+
var _e, Ce, Te, Se, Re, Ae, xe = fe(ge), Pe = 0;
|
|
23384
|
+
if (!xe || this === he && ae(xe)) for (_e = ce(ge), Ce = me ? new this(_e) : he(_e); _e > Pe; Pe++) Ae = be ? ve(ge[Pe], Pe) : ge[Pe], le(Ce, Pe, Ae);
|
|
23385
|
+
else for (Re = (Se = de(ge, xe)).next, Ce = me ? new this() : []; !(Te = ie(Re, Se)).done; Pe++) Ae = be ? se(Se, ve, [Te.value, Pe], !0) : Te.value, le(Ce, Pe, Ae);
|
|
23374
23386
|
return Ce.length = Pe, Ce;
|
|
23375
23387
|
};
|
|
23376
23388
|
}, function(ee, re, te) {
|
|
@@ -23521,7 +23533,7 @@ function requireSingularSdk() {
|
|
|
23521
23533
|
return le === void 0 || oe(ce = ne(le)[se]) ? ue : ie(ce);
|
|
23522
23534
|
};
|
|
23523
23535
|
}, function(ee, re, te) {
|
|
23524
|
-
var ne, ie, oe, se, ae = te(9), ue = te(66), ce = te(46), le = te(10), de = te(13), fe = te(5), he = te(137), pe = te(74), ge = te(108), me = te(98), ye = te(175), ve = te(97), be = ae.setImmediate, _e = ae.clearImmediate, Ce = ae.process, Te = ae.Dispatch, Se = ae.Function, Re = ae.MessageChannel,
|
|
23536
|
+
var ne, ie, oe, se, ae = te(9), ue = te(66), ce = te(46), le = te(10), de = te(13), fe = te(5), he = te(137), pe = te(74), ge = te(108), me = te(98), ye = te(175), ve = te(97), be = ae.setImmediate, _e = ae.clearImmediate, Ce = ae.process, Te = ae.Dispatch, Se = ae.Function, Re = ae.MessageChannel, Ae = ae.String, xe = 0, Pe = {};
|
|
23525
23537
|
fe((function() {
|
|
23526
23538
|
ne = ae.location;
|
|
23527
23539
|
}));
|
|
@@ -23537,14 +23549,14 @@ function requireSingularSdk() {
|
|
|
23537
23549
|
}, Ue = function(je) {
|
|
23538
23550
|
De(je.data);
|
|
23539
23551
|
}, He = function(je) {
|
|
23540
|
-
ae.postMessage(
|
|
23552
|
+
ae.postMessage(Ae(je), ne.protocol + "//" + ne.host);
|
|
23541
23553
|
};
|
|
23542
23554
|
be && _e || (be = function(je) {
|
|
23543
23555
|
me(arguments.length, 1);
|
|
23544
23556
|
var lr = le(je) ? je : Se(je), Ge = pe(arguments, 1);
|
|
23545
|
-
return Pe[++
|
|
23557
|
+
return Pe[++xe] = function() {
|
|
23546
23558
|
ue(lr, void 0, Ge);
|
|
23547
|
-
}, ie(
|
|
23559
|
+
}, ie(xe), xe;
|
|
23548
23560
|
}, _e = function(je) {
|
|
23549
23561
|
delete Pe[je];
|
|
23550
23562
|
}, ve ? ie = function(je) {
|
|
@@ -23603,11 +23615,11 @@ function requireSingularSdk() {
|
|
|
23603
23615
|
var fe = this, he = se("AggregateError"), pe = ae.f(fe), ge = pe.resolve, me = pe.reject, ye = ue((function() {
|
|
23604
23616
|
var ve = oe(fe.resolve), be = [], _e = 0, Ce = 1, Te = !1;
|
|
23605
23617
|
ce(de, (function(Se) {
|
|
23606
|
-
var Re = _e++,
|
|
23607
|
-
Ce++, ie(ve, fe, Se).then((function(
|
|
23608
|
-
|
|
23609
|
-
}), (function(
|
|
23610
|
-
|
|
23618
|
+
var Re = _e++, Ae = !1;
|
|
23619
|
+
Ce++, ie(ve, fe, Se).then((function(xe) {
|
|
23620
|
+
Ae || Te || (Te = !0, ge(xe));
|
|
23621
|
+
}), (function(xe) {
|
|
23622
|
+
Ae || Te || (Ae = !0, be[Re] = xe, --Ce || me(new he(be, "No one promise resolved")));
|
|
23611
23623
|
}));
|
|
23612
23624
|
})), --Ce || me(new he(be, "No one promise resolved"));
|
|
23613
23625
|
}));
|
|
@@ -23628,7 +23640,7 @@ function requireSingularSdk() {
|
|
|
23628
23640
|
te(184);
|
|
23629
23641
|
}, function(ee, re, te) {
|
|
23630
23642
|
te(48);
|
|
23631
|
-
var ne = te(1), ie = te(9), oe = te(14), se = te(6), ae = te(15), ue = te(185), ce = te(31), le = te(430), de = te(47), fe = te(146), he = te(58), pe = te(120), ge = te(10), me = te(13), ye = te(46), ve = te(38), be = te(20), _e = te(17), Ce = te(29), Te = te(57), Se = te(45), Re = te(96),
|
|
23643
|
+
var ne = te(1), ie = te(9), oe = te(14), se = te(6), ae = te(15), ue = te(185), ce = te(31), le = te(430), de = te(47), fe = te(146), he = te(58), pe = te(120), ge = te(10), me = te(13), ye = te(46), ve = te(38), be = te(20), _e = te(17), Ce = te(29), Te = te(57), Se = te(45), Re = te(96), Ae = te(76), xe = te(98), Pe = te(8), De = te(431), Fe = Pe("iterator"), Ue = he.set, He = he.getterFor("URLSearchParams"), je = he.getterFor("URLSearchParamsIterator"), lr = Object.getOwnPropertyDescriptor, Ge = function(Ze) {
|
|
23632
23644
|
if (!ae) return ie[Ze];
|
|
23633
23645
|
var Tr = lr(ie, Ze);
|
|
23634
23646
|
return Tr && Tr.value;
|
|
@@ -23663,7 +23675,7 @@ function requireSingularSdk() {
|
|
|
23663
23675
|
ci.prototype = { type: "URLSearchParams", bindURL: function(Ze) {
|
|
23664
23676
|
this.url = Ze, this.update();
|
|
23665
23677
|
}, parseObject: function(Ze) {
|
|
23666
|
-
var Tr, Or, Dr, zr, hi, Si, wi, _i =
|
|
23678
|
+
var Tr, Or, Dr, zr, hi, Si, wi, _i = Ae(Ze);
|
|
23667
23679
|
if (_i) for (Or = (Tr = Re(Ze, _i)).next; !(Dr = oe(Or, Tr)).done; ) {
|
|
23668
23680
|
if (hi = (zr = Re(be(Dr.value))).next, (Si = oe(hi, zr)).done || (wi = oe(hi, zr)).done || !oe(hi, zr).done) throw $e("Expected sequence with length 2");
|
|
23669
23681
|
Sr(this.entries, { key: Ce(Si.value), value: Ce(wi.value) });
|
|
@@ -23685,27 +23697,27 @@ function requireSingularSdk() {
|
|
|
23685
23697
|
Ue(this, new ci(Ze));
|
|
23686
23698
|
}, Er = Xr.prototype;
|
|
23687
23699
|
if (le(Er, { append: function(Ze, Tr) {
|
|
23688
|
-
|
|
23700
|
+
xe(arguments.length, 2);
|
|
23689
23701
|
var Or = He(this);
|
|
23690
23702
|
Sr(Or.entries, { key: Ce(Ze), value: Ce(Tr) }), Or.updateURL();
|
|
23691
23703
|
}, delete: function(Ze) {
|
|
23692
|
-
|
|
23704
|
+
xe(arguments.length, 1);
|
|
23693
23705
|
for (var Tr = He(this), Or = Tr.entries, Dr = Ce(Ze), zr = 0; zr < Or.length; ) Or[zr].key === Dr ? Yr(Or, zr, 1) : zr++;
|
|
23694
23706
|
Tr.updateURL();
|
|
23695
23707
|
}, get: function(Ze) {
|
|
23696
|
-
|
|
23708
|
+
xe(arguments.length, 1);
|
|
23697
23709
|
for (var Tr = He(this).entries, Or = Ce(Ze), Dr = 0; Dr < Tr.length; Dr++) if (Tr[Dr].key === Or) return Tr[Dr].value;
|
|
23698
23710
|
return null;
|
|
23699
23711
|
}, getAll: function(Ze) {
|
|
23700
|
-
|
|
23712
|
+
xe(arguments.length, 1);
|
|
23701
23713
|
for (var Tr = He(this).entries, Or = Ce(Ze), Dr = [], zr = 0; zr < Tr.length; zr++) Tr[zr].key === Or && Sr(Dr, Tr[zr].value);
|
|
23702
23714
|
return Dr;
|
|
23703
23715
|
}, has: function(Ze) {
|
|
23704
|
-
|
|
23716
|
+
xe(arguments.length, 1);
|
|
23705
23717
|
for (var Tr = He(this).entries, Or = Ce(Ze), Dr = 0; Dr < Tr.length; ) if (Tr[Dr++].key === Or) return !0;
|
|
23706
23718
|
return !1;
|
|
23707
23719
|
}, set: function(Ze, Tr) {
|
|
23708
|
-
|
|
23720
|
+
xe(arguments.length, 1);
|
|
23709
23721
|
for (var Or, Dr = He(this), zr = Dr.entries, hi = !1, Si = Ce(Ze), wi = Ce(Tr), _i = 0; _i < zr.length; _i++) (Or = zr[_i]).key === Si && (hi ? Yr(zr, _i--, 1) : (hi = !0, Or.value = wi));
|
|
23710
23722
|
hi || Sr(zr, { key: Si, value: wi }), Dr.updateURL();
|
|
23711
23723
|
}, sort: function() {
|
|
@@ -23962,7 +23974,7 @@ function requireSingularSdk() {
|
|
|
23962
23974
|
return ne(ue) && (ce = ue.constructor, (ie(ce) && (ce === ae || ne(ce.prototype)) || oe(ce) && (ce = ce[se]) === null) && (ce = void 0)), ce === void 0 ? ae : ce;
|
|
23963
23975
|
};
|
|
23964
23976
|
}, function(ee, re, te) {
|
|
23965
|
-
var ne = te(1), ie = te(9), oe = te(14), se = te(6), ae = te(26), ue = te(15), ce = te(55), le = te(5), de = te(13), fe = te(16), he = te(20), pe = te(27), ge = te(84), me = te(29), ye = te(45), ve = te(57), be = te(73), _e = te(116), Ce = te(217), Te = te(92), Se = te(44), Re = te(28),
|
|
23977
|
+
var ne = te(1), ie = te(9), oe = te(14), se = te(6), ae = te(26), ue = te(15), ce = te(55), le = te(5), de = te(13), fe = te(16), he = te(20), pe = te(27), ge = te(84), me = te(29), ye = te(45), ve = te(57), be = te(73), _e = te(116), Ce = te(217), Te = te(92), Se = te(44), Re = te(28), Ae = te(112), xe = te(82), Pe = te(31), De = te(70), Fe = te(91), Ue = te(90), He = te(107), je = te(8), lr = te(93), Ge = te(12), hr = te(138), fr = te(47), dr = te(58), Qe = te(94).forEach, Bt = Fe("hidden"), Cr = dr.set, $e = dr.getterFor("Symbol"), ke = Object.prototype, We = ie.Symbol, mr = We && We.prototype, ur = ie.TypeError, Sr = ie.QObject, jr = Se.f, Fr = Re.f, Yr = Ce.f, Qr = xe.f, ii = se([].push), Kr = De("symbols"), Ye = De("op-symbols"), Ir = De("wks"), Rr = !Sr || !Sr.prototype || !Sr.prototype.findChild, xr = ue && le((function() {
|
|
23966
23978
|
return ve(Fr({}, "a", { get: function() {
|
|
23967
23979
|
return Fr(this, "a", { value: 7 }).a;
|
|
23968
23980
|
} })).a != 7;
|
|
@@ -24012,7 +24024,7 @@ function requireSingularSdk() {
|
|
|
24012
24024
|
return $e(this).tag;
|
|
24013
24025
|
})), Pe(We, "withoutSetter", (function(Er) {
|
|
24014
24026
|
return Br(He(Er), Er);
|
|
24015
|
-
})),
|
|
24027
|
+
})), xe.f = pi, Re.f = ui, Ae.f = bi, Se.f = ei, _e.f = Ce.f = ci, Te.f = Xr, lr.f = function(Er) {
|
|
24016
24028
|
return Br(je(Er), Er);
|
|
24017
24029
|
}, ue && (Fr(mr, "description", { configurable: !0, get: function() {
|
|
24018
24030
|
return $e(this).description;
|
|
@@ -24521,9 +24533,9 @@ function requireSingularSdk() {
|
|
|
24521
24533
|
}, function(ee, re, te) {
|
|
24522
24534
|
var ne = te(1), ie = te(56), oe = te(88), se = te(17), ae = te(114), ue = te(52), ce = te(27), le = te(71), de = te(8), fe = te(89), he = te(74), pe = fe("slice"), ge = de("species"), me = Array, ye = Math.max;
|
|
24523
24535
|
ne({ target: "Array", proto: !0, forced: !pe }, { slice: function(ve, be) {
|
|
24524
|
-
var _e, Ce, Te, Se = ce(this), Re = ue(Se),
|
|
24525
|
-
if (ie(Se) && (_e = Se.constructor, (oe(_e) && (_e === me || ie(_e.prototype)) || se(_e) && (_e = _e[ge]) === null) && (_e = void 0), _e === me || _e === void 0)) return he(Se,
|
|
24526
|
-
for (Ce = new (_e === void 0 ? me : _e)(ye(
|
|
24536
|
+
var _e, Ce, Te, Se = ce(this), Re = ue(Se), Ae = ae(ve, Re), xe = ae(be === void 0 ? Re : be, Re);
|
|
24537
|
+
if (ie(Se) && (_e = Se.constructor, (oe(_e) && (_e === me || ie(_e.prototype)) || se(_e) && (_e = _e[ge]) === null) && (_e = void 0), _e === me || _e === void 0)) return he(Se, Ae, xe);
|
|
24538
|
+
for (Ce = new (_e === void 0 ? me : _e)(ye(xe - Ae, 0)), Te = 0; Ae < xe; Ae++, Te++) Ae in Se && le(Ce, Te, Se[Ae]);
|
|
24527
24539
|
return Ce.length = Te, Ce;
|
|
24528
24540
|
} });
|
|
24529
24541
|
}, function(ee, re, te) {
|
|
@@ -24606,7 +24618,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
24606
24618
|
};
|
|
24607
24619
|
}
|
|
24608
24620
|
function Se($e, ke, We, mr) {
|
|
24609
|
-
var ur = ke && ke.prototype instanceof
|
|
24621
|
+
var ur = ke && ke.prototype instanceof xe ? ke : xe, Sr = se(ur.prototype), jr = new Qe(mr || []);
|
|
24610
24622
|
return ye(Sr, "_invoke", { value: Ge($e, We, jr) }), Sr;
|
|
24611
24623
|
}
|
|
24612
24624
|
function Re($e, ke, We) {
|
|
@@ -24617,8 +24629,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
24617
24629
|
}
|
|
24618
24630
|
}
|
|
24619
24631
|
pe.wrap = Se;
|
|
24620
|
-
var
|
|
24621
|
-
function
|
|
24632
|
+
var Ae = {};
|
|
24633
|
+
function xe() {
|
|
24622
24634
|
}
|
|
24623
24635
|
function Pe() {
|
|
24624
24636
|
}
|
|
@@ -24630,7 +24642,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
24630
24642
|
}));
|
|
24631
24643
|
var Ue = ae && ae(ae(Bt([])));
|
|
24632
24644
|
Ue && Ue !== ge && me.call(Ue, be) && (Fe = Ue);
|
|
24633
|
-
var He = De.prototype =
|
|
24645
|
+
var He = De.prototype = xe.prototype = se(Fe);
|
|
24634
24646
|
function je($e) {
|
|
24635
24647
|
var ke;
|
|
24636
24648
|
ue(ke = ["next", "throw", "return"]).call(ke, (function(We) {
|
|
@@ -24678,7 +24690,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
24678
24690
|
if (jr) {
|
|
24679
24691
|
var Fr = hr(jr, We);
|
|
24680
24692
|
if (Fr) {
|
|
24681
|
-
if (Fr ===
|
|
24693
|
+
if (Fr === Ae) continue;
|
|
24682
24694
|
return Fr;
|
|
24683
24695
|
}
|
|
24684
24696
|
}
|
|
@@ -24690,7 +24702,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
24690
24702
|
mr = "executing";
|
|
24691
24703
|
var Yr = Re($e, ke, We);
|
|
24692
24704
|
if (Yr.type === "normal") {
|
|
24693
|
-
if (mr = We.done ? "completed" : "suspendedYield", Yr.arg ===
|
|
24705
|
+
if (mr = We.done ? "completed" : "suspendedYield", Yr.arg === Ae) continue;
|
|
24694
24706
|
return { value: Yr.arg, done: We.done };
|
|
24695
24707
|
}
|
|
24696
24708
|
Yr.type === "throw" && (mr = "completed", We.method = "throw", We.arg = Yr.arg);
|
|
@@ -24699,11 +24711,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
24699
24711
|
}
|
|
24700
24712
|
function hr($e, ke) {
|
|
24701
24713
|
var We = ke.method, mr = $e.iterator[We];
|
|
24702
|
-
if (mr === void 0) return ke.delegate = null, We === "throw" && $e.iterator.return && (ke.method = "return", ke.arg = void 0, hr($e, ke), ke.method === "throw") || We !== "return" && (ke.method = "throw", ke.arg = new TypeError("The iterator does not provide a '" + We + "' method")),
|
|
24714
|
+
if (mr === void 0) return ke.delegate = null, We === "throw" && $e.iterator.return && (ke.method = "return", ke.arg = void 0, hr($e, ke), ke.method === "throw") || We !== "return" && (ke.method = "throw", ke.arg = new TypeError("The iterator does not provide a '" + We + "' method")), Ae;
|
|
24703
24715
|
var ur = Re(mr, $e.iterator, ke.arg);
|
|
24704
|
-
if (ur.type === "throw") return ke.method = "throw", ke.arg = ur.arg, ke.delegate = null,
|
|
24716
|
+
if (ur.type === "throw") return ke.method = "throw", ke.arg = ur.arg, ke.delegate = null, Ae;
|
|
24705
24717
|
var Sr = ur.arg;
|
|
24706
|
-
return Sr ? Sr.done ? (ke[$e.resultName] = Sr.value, ke.next = $e.nextLoc, ke.method !== "return" && (ke.method = "next", ke.arg = void 0), ke.delegate = null,
|
|
24718
|
+
return Sr ? Sr.done ? (ke[$e.resultName] = Sr.value, ke.next = $e.nextLoc, ke.method !== "return" && (ke.method = "next", ke.arg = void 0), ke.delegate = null, Ae) : Sr : (ke.method = "throw", ke.arg = new TypeError("iterator result is not an object"), ke.delegate = null, Ae);
|
|
24707
24719
|
}
|
|
24708
24720
|
function fr($e) {
|
|
24709
24721
|
var ke = { tryLoc: $e[0] };
|
|
@@ -24803,14 +24815,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
24803
24815
|
}
|
|
24804
24816
|
ur && ($e === "break" || $e === "continue") && ur.tryLoc <= ke && ke <= ur.finallyLoc && (ur = null);
|
|
24805
24817
|
var Sr = ur ? ur.completion : {};
|
|
24806
|
-
return Sr.type = $e, Sr.arg = ke, ur ? (this.method = "next", this.next = ur.finallyLoc,
|
|
24818
|
+
return Sr.type = $e, Sr.arg = ke, ur ? (this.method = "next", this.next = ur.finallyLoc, Ae) : this.complete(Sr);
|
|
24807
24819
|
}, complete: function($e, ke) {
|
|
24808
24820
|
if ($e.type === "throw") throw $e.arg;
|
|
24809
|
-
return $e.type === "break" || $e.type === "continue" ? this.next = $e.arg : $e.type === "return" ? (this.rval = this.arg = $e.arg, this.method = "return", this.next = "end") : $e.type === "normal" && ke && (this.next = ke),
|
|
24821
|
+
return $e.type === "break" || $e.type === "continue" ? this.next = $e.arg : $e.type === "return" ? (this.rval = this.arg = $e.arg, this.method = "return", this.next = "end") : $e.type === "normal" && ke && (this.next = ke), Ae;
|
|
24810
24822
|
}, finish: function($e) {
|
|
24811
24823
|
for (var ke = this.tryEntries.length - 1; ke >= 0; --ke) {
|
|
24812
24824
|
var We = this.tryEntries[ke];
|
|
24813
|
-
if (We.finallyLoc === $e) return this.complete(We.completion, We.afterLoc), dr(We),
|
|
24825
|
+
if (We.finallyLoc === $e) return this.complete(We.completion, We.afterLoc), dr(We), Ae;
|
|
24814
24826
|
}
|
|
24815
24827
|
}, catch: function($e) {
|
|
24816
24828
|
for (var ke = this.tryEntries.length - 1; ke >= 0; --ke) {
|
|
@@ -24826,7 +24838,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
24826
24838
|
}
|
|
24827
24839
|
throw new Error("illegal catch attempt");
|
|
24828
24840
|
}, delegateYield: function($e, ke, We) {
|
|
24829
|
-
return this.delegate = { iterator: Bt($e), resultName: ke, nextLoc: We }, this.method === "next" && (this.arg = void 0),
|
|
24841
|
+
return this.delegate = { iterator: Bt($e), resultName: ke, nextLoc: We }, this.method === "next" && (this.arg = void 0), Ae;
|
|
24830
24842
|
} }, pe;
|
|
24831
24843
|
}
|
|
24832
24844
|
ee.exports = he, ee.exports.__esModule = !0, ee.exports.default = ee.exports;
|
|
@@ -24900,7 +24912,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
24900
24912
|
}, function(ee, re, te) {
|
|
24901
24913
|
te(375), te(383), te(384), te(385), te(386), te(387);
|
|
24902
24914
|
}, function(ee, re, te) {
|
|
24903
|
-
var ne, ie, oe, se = te(1), ae = te(26), ue = te(97), ce = te(9), le = te(14), de = te(31), fe = te(95), he = te(47), pe = te(376), ge = te(30), me = te(10), ye = te(17), ve = te(120), be = te(173), _e = te(174).set, Ce = te(378), Te = te(381), Se = te(61), Re = te(176),
|
|
24915
|
+
var ne, ie, oe, se = te(1), ae = te(26), ue = te(97), ce = te(9), le = te(14), de = te(31), fe = te(95), he = te(47), pe = te(376), ge = te(30), me = te(10), ye = te(17), ve = te(120), be = te(173), _e = te(174).set, Ce = te(378), Te = te(381), Se = te(61), Re = te(176), Ae = te(58), xe = te(62), Pe = te(78), De = te(49), Fe = Pe.CONSTRUCTOR, Ue = Pe.REJECTION_EVENT, He = Pe.SUBCLASSING, je = Ae.getterFor("Promise"), lr = Ae.set, Ge = xe && xe.prototype, hr = xe, fr = Ge, dr = ce.TypeError, Qe = ce.document, Bt = ce.process, Cr = De.f, $e = Cr, ke = !!(Qe && Qe.createEvent && ce.dispatchEvent), We = function(Ye) {
|
|
24904
24916
|
var Ir;
|
|
24905
24917
|
return !(!ye(Ye) || !me(Ir = Ye.then)) && Ir;
|
|
24906
24918
|
}, mr = function(Ye, Ir) {
|
|
@@ -24977,7 +24989,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
24977
24989
|
this.promise = Ye, this.resolve = Qr(Kr, Ir), this.reject = Qr(ii, Ir);
|
|
24978
24990
|
}, De.f = Cr = function(Ye) {
|
|
24979
24991
|
return Ye === hr || Ye === void 0 ? new ie(Ye) : $e(Ye);
|
|
24980
|
-
}, !ae && me(
|
|
24992
|
+
}, !ae && me(xe) && Ge !== Object.prototype)) {
|
|
24981
24993
|
oe = Ge.then, He || de(Ge, "then", (function(Ye, Ir) {
|
|
24982
24994
|
var Rr = this;
|
|
24983
24995
|
return new hr((function(xr, Br) {
|
|
@@ -25009,13 +25021,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
25009
25021
|
var ne, ie, oe, se, ae, ue = te(9), ce = te(46), le = te(44).f, de = te(174).set, fe = te(176), he = te(175), pe = te(379), ge = te(380), me = te(97), ye = ue.MutationObserver || ue.WebKitMutationObserver, ve = ue.document, be = ue.process, _e = ue.Promise, Ce = le(ue, "queueMicrotask"), Te = Ce && Ce.value;
|
|
25010
25022
|
if (!Te) {
|
|
25011
25023
|
var Se = new fe(), Re = function() {
|
|
25012
|
-
var
|
|
25013
|
-
for (me && (
|
|
25014
|
-
|
|
25024
|
+
var Ae, xe;
|
|
25025
|
+
for (me && (Ae = be.domain) && Ae.exit(); xe = Se.get(); ) try {
|
|
25026
|
+
xe();
|
|
25015
25027
|
} catch (Pe) {
|
|
25016
25028
|
throw Se.head && ne(), Pe;
|
|
25017
25029
|
}
|
|
25018
|
-
|
|
25030
|
+
Ae && Ae.enter();
|
|
25019
25031
|
};
|
|
25020
25032
|
he || me || ge || !ye || !ve ? !pe && _e && _e.resolve ? ((se = _e.resolve(void 0)).constructor = _e, ae = ce(se.then, se), ne = function() {
|
|
25021
25033
|
ae(Re);
|
|
@@ -25025,8 +25037,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
25025
25037
|
de(Re);
|
|
25026
25038
|
}) : (ie = !0, oe = ve.createTextNode(""), new ye(Re).observe(oe, { characterData: !0 }), ne = function() {
|
|
25027
25039
|
oe.data = ie = !ie;
|
|
25028
|
-
}), Te = function(
|
|
25029
|
-
Se.head || ne(), Se.add(
|
|
25040
|
+
}), Te = function(Ae) {
|
|
25041
|
+
Se.head || ne(), Se.add(Ae);
|
|
25030
25042
|
};
|
|
25031
25043
|
}
|
|
25032
25044
|
ee.exports = Te;
|
|
@@ -25375,7 +25387,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
25375
25387
|
te(442);
|
|
25376
25388
|
}, function(ee, re, te) {
|
|
25377
25389
|
te(60);
|
|
25378
|
-
var ne, ie = te(1), oe = te(15), se = te(185), ae = te(9), ue = te(46), ce = te(6), le = te(31), de = te(443), fe = te(120), he = te(13), pe = te(160), ge = te(165), me = te(117), ye = te(150).codeAt, ve = te(444), be = te(29), _e = te(47), Ce = te(98), Te = te(184), Se = te(58), Re = Se.set,
|
|
25390
|
+
var ne, ie = te(1), oe = te(15), se = te(185), ae = te(9), ue = te(46), ce = te(6), le = te(31), de = te(443), fe = te(120), he = te(13), pe = te(160), ge = te(165), me = te(117), ye = te(150).codeAt, ve = te(444), be = te(29), _e = te(47), Ce = te(98), Te = te(184), Se = te(58), Re = Se.set, Ae = Se.getterFor("URL"), xe = Te.URLSearchParams, Pe = Te.getState, De = ae.URL, Fe = ae.TypeError, Ue = ae.parseInt, He = Math.floor, je = Math.pow, lr = ce("".charAt), Ge = ce(/./.exec), hr = ce([].join), fr = ce(1 .toString), dr = ce([].pop), Qe = ce([].push), Bt = ce("".replace), Cr = ce([].shift), $e = ce("".split), ke = ce("".slice), We = ce("".toLowerCase), mr = ce([].unshift), ur = /[a-z]/i, Sr = /[\d+-.a-z]/i, jr = /\d/, Fr = /^0x/i, Yr = /^[0-7]+$/, Qr = /^\d+$/, ii = /^[\da-f]+$/i, Kr = /[\0\t\n\r #%/:<>?@[\\\]^|]/, Ye = /[\0\t\n\r #/:<>?@[\\\]^|]/, Ir = /^[\u0000-\u0020]+|[\u0000-\u0020]+$/g, Rr = /[\t\n\r]/g, xr = function(Be) {
|
|
25379
25391
|
var Xe, qe, Ur, ze;
|
|
25380
25392
|
if (typeof Be == "number") {
|
|
25381
25393
|
for (Xe = [], qe = 0; qe < 4; qe++) mr(Xe, Be % 256), Be = He(Be / 256);
|
|
@@ -25407,7 +25419,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
25407
25419
|
this.searchParams = null;
|
|
25408
25420
|
} else {
|
|
25409
25421
|
if (qe !== void 0 && (Ur = new ji(qe, !0)), ze = this.parse(Vr, null, Ur)) throw Fe(ze);
|
|
25410
|
-
(Gr = Pe(new
|
|
25422
|
+
(Gr = Pe(new xe())).bindURL(this), this.searchParams = Gr;
|
|
25411
25423
|
}
|
|
25412
25424
|
};
|
|
25413
25425
|
ji.prototype = { type: "URL", parse: function(Be, Xe, qe) {
|
|
@@ -25766,15 +25778,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
25766
25778
|
oe || (Xe.href = Ur.serialize(), Xe.origin = Ur.getOrigin(), Xe.protocol = Ur.getProtocol(), Xe.username = Ur.getUsername(), Xe.password = Ur.getPassword(), Xe.host = Ur.getHost(), Xe.hostname = Ur.getHostname(), Xe.port = Ur.getPort(), Xe.pathname = Ur.getPathname(), Xe.search = Ur.getSearch(), Xe.searchParams = Ur.getSearchParams(), Xe.hash = Ur.getHash());
|
|
25767
25779
|
}, oi = Mi.prototype, gi = function(Be, Xe) {
|
|
25768
25780
|
return { get: function() {
|
|
25769
|
-
return
|
|
25781
|
+
return Ae(this)[Be]();
|
|
25770
25782
|
}, set: Xe && function(qe) {
|
|
25771
|
-
return
|
|
25783
|
+
return Ae(this)[Xe](qe);
|
|
25772
25784
|
}, configurable: !0, enumerable: !0 };
|
|
25773
25785
|
};
|
|
25774
25786
|
if (oe && (de(oi, "href", gi("serialize", "setHref")), de(oi, "origin", gi("getOrigin")), de(oi, "protocol", gi("getProtocol", "setProtocol")), de(oi, "username", gi("getUsername", "setUsername")), de(oi, "password", gi("getPassword", "setPassword")), de(oi, "host", gi("getHost", "setHost")), de(oi, "hostname", gi("getHostname", "setHostname")), de(oi, "port", gi("getPort", "setPort")), de(oi, "pathname", gi("getPathname", "setPathname")), de(oi, "search", gi("getSearch", "setSearch")), de(oi, "searchParams", gi("getSearchParams")), de(oi, "hash", gi("getHash", "setHash"))), le(oi, "toJSON", (function() {
|
|
25775
|
-
return
|
|
25787
|
+
return Ae(this).serialize();
|
|
25776
25788
|
}), { enumerable: !0 }), le(oi, "toString", (function() {
|
|
25777
|
-
return
|
|
25789
|
+
return Ae(this).serialize();
|
|
25778
25790
|
}), { enumerable: !0 }), De) {
|
|
25779
25791
|
var zi = De.createObjectURL, Ji = De.revokeObjectURL;
|
|
25780
25792
|
zi && le(Mi, "createObjectURL", ue(zi, De)), Ji && le(Mi, "revokeObjectURL", ue(Ji, De));
|
|
@@ -25802,27 +25814,27 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
25802
25814
|
} else he(Qe, $e);
|
|
25803
25815
|
}
|
|
25804
25816
|
return Qe;
|
|
25805
|
-
})(_e)).length,
|
|
25817
|
+
})(_e)).length, Ae = 128, xe = 0, Pe = 72;
|
|
25806
25818
|
for (Ce = 0; Ce < _e.length; Ce++) (Te = _e[Ce]) < 128 && he(Se, le(Te));
|
|
25807
25819
|
var De = Se.length, Fe = De;
|
|
25808
25820
|
for (De && he(Se, "-"); Fe < Re; ) {
|
|
25809
25821
|
var Ue = 2147483647;
|
|
25810
|
-
for (Ce = 0; Ce < _e.length; Ce++) (Te = _e[Ce]) >=
|
|
25822
|
+
for (Ce = 0; Ce < _e.length; Ce++) (Te = _e[Ce]) >= Ae && Te < Ue && (Ue = Te);
|
|
25811
25823
|
var He = Fe + 1;
|
|
25812
|
-
if (Ue -
|
|
25813
|
-
for (
|
|
25814
|
-
if ((Te = _e[Ce]) <
|
|
25815
|
-
if (Te ==
|
|
25816
|
-
for (var je =
|
|
25824
|
+
if (Ue - Ae > ce((2147483647 - xe) / He)) throw ae(se);
|
|
25825
|
+
for (xe += (Ue - Ae) * He, Ae = Ue, Ce = 0; Ce < _e.length; Ce++) {
|
|
25826
|
+
if ((Te = _e[Ce]) < Ae && ++xe > 2147483647) throw ae(se);
|
|
25827
|
+
if (Te == Ae) {
|
|
25828
|
+
for (var je = xe, lr = 36; ; ) {
|
|
25817
25829
|
var Ge = lr <= Pe ? 1 : lr >= Pe + 26 ? 26 : lr - Pe;
|
|
25818
25830
|
if (je < Ge) break;
|
|
25819
25831
|
var hr = je - Ge, fr = 36 - Ge;
|
|
25820
25832
|
he(Se, le(ye(Ge + hr % fr))), je = ce(hr / fr), lr += 36;
|
|
25821
25833
|
}
|
|
25822
|
-
he(Se, le(ye(je))), Pe = ve(
|
|
25834
|
+
he(Se, le(ye(je))), Pe = ve(xe, He, Fe == De), xe = 0, Fe++;
|
|
25823
25835
|
}
|
|
25824
25836
|
}
|
|
25825
|
-
|
|
25837
|
+
xe++, Ae++;
|
|
25826
25838
|
}
|
|
25827
25839
|
return fe(Se, "");
|
|
25828
25840
|
};
|
|
@@ -26210,7 +26222,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
26210
26222
|
})), te.d(fe, "SingularDeviceIdKey", (function() {
|
|
26211
26223
|
return Ps;
|
|
26212
26224
|
}));
|
|
26213
|
-
var he = te(2), pe = te.n(he), ge = te(4), me = te.n(ge), ye = te(0), ve = te.n(ye), be = te(63), _e = te.n(be), Ce = te(64), Te = te.n(Ce), Se = te(40), Re = te.n(Se),
|
|
26225
|
+
var he = te(2), pe = te.n(he), ge = te(4), me = te.n(ge), ye = te(0), ve = te.n(ye), be = te(63), _e = te.n(be), Ce = te(64), Te = te.n(Ce), Se = te(40), Re = te.n(Se), Ae = te(18), xe = te.n(Ae), Pe = te(41), De = te.n(Pe), Fe = te(34), Ue = te.n(Fe), He = te(42), je = te.n(He), lr = te(19), Ge = te.n(lr), hr = te(32), fr = te.n(hr), dr = te(25), Qe = te.n(dr), Bt = te(33), Cr = te.n(Bt), $e = 30, ke = "WebSDK-v".concat("1.4.8"), We = "off", mr = "auto", ur = "manual", Sr = "__singular_ddl__", jr = "onbeforeunload", Fr = "conversion_event", Yr = "custom_user_id_event", Qr = "event", ii = "page_visit", Kr = "__PAGE_VISIT__", Ye = "setMatchId", Ir = "fetch_banner", Rr = "singular_api_queue", xr = "singular_custom_user_id", Br = "banner_last_dismissed", ui = "did_visit_site", bi = "did_send_event", pi = "conversion_event_occurred", ei = "global", ci = "global_properties", Xr = 1e3, Er = "singular_session_id", kr = "singular_first_page_visit_occurred", Pr = "first_page_visit_url", Mr = "singular_id", Zr = "match_id", Ze = "singular_instance_id", Tr = "singular_storage_enabled_test", Or = "test_value", Dr = "last_event_timestamp", zr = "touchpoint_timestamp", hi = "web_url", Si = { Local: "local", Session: "session", Memory: "memory" }, wi = "n", _i = "browser_available_memory", Oi = "browser_used_memory", Hi = "counter_banner_showed", Xi = "source_url", Ui = "client_hints", Ni = "custom_user_id", Ti = "current_device_time", Zi = "_dl", Pi = "_ddl", Ci = "document_referrer", ji = "event_id", Mi = "n", oi = "product_name", gi = "e", zi = "global_properties", Ji = "conversion_event", Be = "first", Xe = "is_first_visit", qe = "is_first_page_visit_in_session", Ur = "is_after_conversion_event", ze = "is_page_refreshed", Gr = "is_revenue_event", Vr = "is_set_match_id", Nr = "k", Me = "lag", Je = "l", Hr = "match_id", Ar = "os", Jr = "ecid", ti = "a", Ei = "_p", vi = "p", ni = "Web", Qi = "prev_sdid", Wi = "i", Do = "r", No = "pcc", Mo = "screen_height", Uo = "screen_width", $o = "sdid_persist_mode", Fo = "sdid_persist_failed_reason", Bo = "sdk", Vo = "s", Ho = "SDID", jo = "singular_instance_id", zo = "storage_type", Wo = "timezone", qo = "touchpoint_timestamp", go = "device_user_agent", Ko = "u", Go = "^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$", Yo = "_web_params", mo = "web_url", Xo = "last_dismissed", Zo = "bn", Jo = "baid", Qo = "utm_source", ts = { clid_params: ["clid="], singular_p_params: ["pcnid=", "pcrnid=", "pcid=", "pcn=", "psc=", "pscid=", "pscn=", "pcrid=", "pcrn=", "ps=", "psid=", "psn=", "pshid=", "paffid=", "paffn=", "pcc=", "psrc=", "pmed="], singular_wp_params: ["wpcid=", "wpcn=", "wpsc=", "wpscid=", "wpscn=", "wpcrid=", "wpcrn=", "wps=", "wpsid=", "wpsn=", "wpshid=", "wpaffid=", "wpaffn=", "wpkw=", "wpsrc=", "wpmed="], utm_params: ["utm_.+="], additional_params: ["kw=", "an=", "ud="] }, rs = "https://sdk-api-v1.singular.net/api/v1/", ns = "Content-Type", is = "application/json", os = { Session: "start", Event: "event", DeviceCustomUserId: "set_device_for_custom_id", FetchBanner: "banners" }, ss = "POST", as = "GET", us = [zi, gi, mo, go, oi, Ci, Ui], cs = "status", ls = 3e4, ds = "ok", fs = 200, ps = "link", hs = "Android", gs = "iOS", ms = "Linux", vs = "MacOS", ys = "Unknown", bs = "Windows", _s = ["iPhone", "iPad", "iPod"], Es = ["Macintosh", "MacIntel", "MacPPC", "Mac68K"], Ss = ["Win32", "Win64", "Windows", "WinCE"], Ts = 3, Cs = 2, Is = 1, ws = 0, As = ["platformVersion", vo, "uaFullVersion", "model", "architecture"], vo = "platform", xs = "domain", Rs = "expires", yo = 864e5, bo = 2592e3, Os = 365 * yo, Ps = "singular_device_id", ks = te(188), Ls = te.n(ks), Ds = te(189), Ns = te.n(Ds), Ms = te(100), _o = te.n(Ms), Us = te(53), qi = te.n(Us), $s = te(35), $i = te.n($s), Fs = te(79), io = te.n(Fs), Bs = te(11), si = te.n(Bs), Vs = te(3), Wr = te.n(Vs), Hs = te(190), js = te.n(Hs), zs = te(191), Ws = te.n(zs), qs = te(22), ki = te.n(qs), Ks = te(23), Ai = te.n(Ks), Gs = te(43), Fi = te.n(Gs), Ys = te(65), eo = te.n(Ys), Xs = te(101), Eo = te.n(Xs), Zs = te(192), Js = te.n(Zs), Qs = te(193), ea = te.n(Qs), yr = (function() {
|
|
26214
26226
|
function Ve() {
|
|
26215
26227
|
pe()(this, Ve);
|
|
26216
26228
|
}
|
|
@@ -26339,7 +26351,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
26339
26351
|
var Ke = document.cookie;
|
|
26340
26352
|
if (Ve.isNullOrEmpty(Ke)) return null;
|
|
26341
26353
|
var gr = document.cookie.split(";"), _r = Le + "=", vr = null;
|
|
26342
|
-
return
|
|
26354
|
+
return xe()(gr).call(gr, (function(br) {
|
|
26343
26355
|
br = Eo()(br).call(br), eo()(br).call(br, _r) === 0 && (vr = decodeURIComponent(br.substring(_r.length, br.length)));
|
|
26344
26356
|
})), vr;
|
|
26345
26357
|
} }, { key: "setCookie", value: function(Le, Ke, gr) {
|
|
@@ -26697,13 +26709,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
26697
26709
|
function la(Ve) {
|
|
26698
26710
|
for (var Ee = 1; Ee < arguments.length; Ee++) {
|
|
26699
26711
|
var Ie, Oe = arguments[Ee] != null ? arguments[Ee] : {};
|
|
26700
|
-
if (Ee % 2)
|
|
26712
|
+
if (Ee % 2) xe()(Ie = Co(Oe, !0)).call(Ie, (function(Le) {
|
|
26701
26713
|
ve()(Ve, Le, Oe[Le]);
|
|
26702
26714
|
}));
|
|
26703
26715
|
else if (Re.a) Te()(Ve, Re()(Oe));
|
|
26704
26716
|
else {
|
|
26705
26717
|
var Ne;
|
|
26706
|
-
|
|
26718
|
+
xe()(Ne = Co(Oe)).call(Ne, (function(Le) {
|
|
26707
26719
|
_e()(Ve, Le, De()(Oe, Le));
|
|
26708
26720
|
}));
|
|
26709
26721
|
}
|
|
@@ -26758,7 +26770,7 @@ Body:`)).call(gr, Ai()(vr)));
|
|
|
26758
26770
|
}
|
|
26759
26771
|
} }, { key: "_buildRequestBody", value: function(Ie) {
|
|
26760
26772
|
var Oe, Ne, Le = {};
|
|
26761
|
-
if (
|
|
26773
|
+
if (xe()(Oe = Ue()(Ne = io()(Ie)).call(Ne, (function(gr) {
|
|
26762
26774
|
var _r, vr = $i()(gr, 2), br = vr[0], wr = vr[1];
|
|
26763
26775
|
return qi()(_r = ue.PostParams).call(_r, br) && !yr.isNullOrEmpty(wr);
|
|
26764
26776
|
}))).call(Oe, (function(gr) {
|
|
@@ -26802,13 +26814,13 @@ Body:`)).call(gr, Ai()(vr)));
|
|
|
26802
26814
|
function oo(Ve) {
|
|
26803
26815
|
for (var Ee = 1; Ee < arguments.length; Ee++) {
|
|
26804
26816
|
var Ie, Oe = arguments[Ee] != null ? arguments[Ee] : {};
|
|
26805
|
-
if (Ee % 2)
|
|
26817
|
+
if (Ee % 2) xe()(Ie = Io(Oe, !0)).call(Ie, (function(Le) {
|
|
26806
26818
|
ve()(Ve, Le, Oe[Le]);
|
|
26807
26819
|
}));
|
|
26808
26820
|
else if (Re.a) Te()(Ve, Re()(Oe));
|
|
26809
26821
|
else {
|
|
26810
26822
|
var Ne;
|
|
26811
|
-
|
|
26823
|
+
xe()(Ne = Io(Oe)).call(Ne, (function(Le) {
|
|
26812
26824
|
_e()(Ve, Le, De()(Oe, Le));
|
|
26813
26825
|
}));
|
|
26814
26826
|
}
|
|
@@ -26856,13 +26868,13 @@ Body:`)).call(gr, Ai()(vr)));
|
|
|
26856
26868
|
return pe()(this, Ee), (Ne = fr()(this, Qe()(Ee).call(this, Ie)))._apiType = oe.ConversionEventApi, Ne._params = (function(Le) {
|
|
26857
26869
|
for (var Ke = 1; Ke < arguments.length; Ke++) {
|
|
26858
26870
|
var gr, _r = arguments[Ke] != null ? arguments[Ke] : {};
|
|
26859
|
-
if (Ke % 2)
|
|
26871
|
+
if (Ke % 2) xe()(gr = wo(_r, !0)).call(gr, (function(br) {
|
|
26860
26872
|
ve()(Le, br, _r[br]);
|
|
26861
26873
|
}));
|
|
26862
26874
|
else if (Re.a) Te()(Le, Re()(_r));
|
|
26863
26875
|
else {
|
|
26864
26876
|
var vr;
|
|
26865
|
-
|
|
26877
|
+
xe()(vr = wo(_r)).call(vr, (function(br) {
|
|
26866
26878
|
_e()(Le, br, De()(_r, br));
|
|
26867
26879
|
}));
|
|
26868
26880
|
}
|
|
@@ -27065,7 +27077,7 @@ Body:`)).call(gr, Ai()(vr)));
|
|
|
27065
27077
|
this.isValidUrl(Oe) ? (this.bannerStyle = document.createElement("link"), this.bannerStyle.href = Oe, this.bannerStyle.type = "text/css", this.bannerStyle.rel = "stylesheet") : (this.bannerStyle = document.createElement("style"), this.bannerStyle.innerHTML = Oe), this.bannerStyle.onload = Ne, document.head.appendChild(this.bannerStyle);
|
|
27066
27078
|
} }, { key: "renderBanner", value: function(Oe, Ne) {
|
|
27067
27079
|
var Le, Ke = this, gr = Oe.display, _r = gr.placement, vr = gr.css, br = va()(gr, ["placement", "css"]), wr = Oe.meta;
|
|
27068
|
-
|
|
27080
|
+
xe()(Le = io()(br)).call(Le, (function($r) {
|
|
27069
27081
|
var di = $i()($r, 2), fi = di[0], yi = di[1], Ii = Ke.getElementClassName(fi), mi = Ke.bannerElement.getElementsByClassName(Ii)[0];
|
|
27070
27082
|
mi && (mi.nodeName === "IMG" ? mi.src = yi : mi.nodeName !== "DIV" && mi.nodeName !== "SPAN" || (mi.innerHTML = yi.toString()));
|
|
27071
27083
|
})), _r && this.bannerElement.classList.add(_r), this.onCloseClick = function() {
|
|
@@ -27113,7 +27125,7 @@ Body:`)).call(gr, Ai()(vr)));
|
|
|
27113
27125
|
var Le, Ke = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, gr = Lr.getInstance().getSingularConfig(), _r = gr.bannersOptions, vr = Oe;
|
|
27114
27126
|
_r && _r.isWebToAppSupported && (vr = to.buildWebToAppLink(Oe) || Oe);
|
|
27115
27127
|
var br = new Ki.a(vr);
|
|
27116
|
-
return br.searchParams.set(ae.Source, "Organic Banner"),
|
|
27128
|
+
return br.searchParams.set(ae.Source, "Organic Banner"), xe()(Le = io()(Ke)).call(Le, (function(wr) {
|
|
27117
27129
|
var $r = $i()(wr, 2), di = $r[0], fi = $r[1];
|
|
27118
27130
|
fi && br.searchParams.set(di, fi);
|
|
27119
27131
|
})), br.searchParams.set(ae.BannerName, Ne.name), br.searchParams.set(ae.BannerID, Ne.id), br.toString();
|
|
@@ -27192,7 +27204,7 @@ Body:`)).call(gr, Ai()(vr)));
|
|
|
27192
27204
|
Ie = null;
|
|
27193
27205
|
}
|
|
27194
27206
|
return Ee.removeAllRanges(), function() {
|
|
27195
|
-
Ee.type === "Caret" && Ee.removeAllRanges(), Ee.rangeCount ||
|
|
27207
|
+
Ee.type === "Caret" && Ee.removeAllRanges(), Ee.rangeCount || xe()(Oe).call(Oe, (function(Le) {
|
|
27196
27208
|
Ee.addRange(Le);
|
|
27197
27209
|
})), Ie && Ie.focus();
|
|
27198
27210
|
};
|
|
@@ -27400,14 +27412,14 @@ Body:`)).call(gr, Ai()(vr)));
|
|
|
27400
27412
|
var singularSdkExports = requireSingularSdk();
|
|
27401
27413
|
class SingularTracker {
|
|
27402
27414
|
}
|
|
27403
|
-
|
|
27415
|
+
we(SingularTracker, "init", () => {
|
|
27404
27416
|
const re = new singularSdkExports.SingularConfig(
|
|
27405
27417
|
"astropay_1541adf6",
|
|
27406
27418
|
"c2c4edf215e20ff29957139f9eb9790d",
|
|
27407
27419
|
"com.astropay.app"
|
|
27408
27420
|
).withAutoPersistentSingularDeviceId("astropay.com");
|
|
27409
27421
|
singularSdkExports.singularSdk.init(re), singularSdkExports.singularSdk.logout();
|
|
27410
|
-
}),
|
|
27422
|
+
}), we(SingularTracker, "getUrlRedirectApp", ({
|
|
27411
27423
|
appDeepLink: re,
|
|
27412
27424
|
shouldOpenApp: te = !1,
|
|
27413
27425
|
fallbackRedirect: ne
|
|
@@ -27490,7 +27502,7 @@ const ai = class ai {
|
|
|
27490
27502
|
return ai.isInitialized;
|
|
27491
27503
|
}
|
|
27492
27504
|
};
|
|
27493
|
-
|
|
27505
|
+
we(ai, "isInitialized", !1), we(ai, "token"), we(ai, "components", /* @__PURE__ */ new Set());
|
|
27494
27506
|
let AstroPayCore = ai;
|
|
27495
27507
|
function bind(ee, re) {
|
|
27496
27508
|
return function() {
|
|
@@ -28811,8 +28823,8 @@ const resolveConfig = (ee) => {
|
|
|
28811
28823
|
onUploadProgress: Te,
|
|
28812
28824
|
responseType: Se,
|
|
28813
28825
|
headers: Re,
|
|
28814
|
-
withCredentials:
|
|
28815
|
-
fetchOptions:
|
|
28826
|
+
withCredentials: Ae = "same-origin",
|
|
28827
|
+
fetchOptions: xe
|
|
28816
28828
|
} = resolveConfig(pe), Pe = re || fetch;
|
|
28817
28829
|
Se = Se ? (Se + "").toLowerCase() : "text";
|
|
28818
28830
|
let De = composeSignals(
|
|
@@ -28838,18 +28850,18 @@ const resolveConfig = (ee) => {
|
|
|
28838
28850
|
ye = trackStream(dr.body, DEFAULT_CHUNK_SIZE, Bt, Cr);
|
|
28839
28851
|
}
|
|
28840
28852
|
}
|
|
28841
|
-
utils$3.isString(
|
|
28853
|
+
utils$3.isString(Ae) || (Ae = Ae ? "include" : "omit");
|
|
28842
28854
|
const je = oe && "credentials" in te.prototype, lr = {
|
|
28843
|
-
...
|
|
28855
|
+
...xe,
|
|
28844
28856
|
signal: De,
|
|
28845
28857
|
method: me.toUpperCase(),
|
|
28846
28858
|
headers: Re.normalize().toJSON(),
|
|
28847
28859
|
body: ye,
|
|
28848
28860
|
duplex: "half",
|
|
28849
|
-
credentials: je ?
|
|
28861
|
+
credentials: je ? Ae : void 0
|
|
28850
28862
|
};
|
|
28851
28863
|
Fe = oe && new te(ge, lr);
|
|
28852
|
-
let Ge = await (oe ? Pe(Fe,
|
|
28864
|
+
let Ge = await (oe ? Pe(Fe, xe) : Pe(ge, lr));
|
|
28853
28865
|
const hr = le && (Se === "stream" || Se === "response");
|
|
28854
28866
|
if (le && (Ce || hr && Ue)) {
|
|
28855
28867
|
const dr = {};
|
|
@@ -29383,7 +29395,7 @@ const {
|
|
|
29383
29395
|
}
|
|
29384
29396
|
// #endregion
|
|
29385
29397
|
};
|
|
29386
|
-
|
|
29398
|
+
we(qr, "axiosInstance"), we(qr, "config"), we(qr, "init", (re) => {
|
|
29387
29399
|
qr.config = re, qr.axiosInstance = axios.create({
|
|
29388
29400
|
baseURL: re.baseURL,
|
|
29389
29401
|
timeout: re.timeout ?? 5e3,
|
|
@@ -29394,7 +29406,7 @@ xe(qr, "axiosInstance"), xe(qr, "config"), xe(qr, "init", (re) => {
|
|
|
29394
29406
|
}
|
|
29395
29407
|
}), qr.setupInterceptors();
|
|
29396
29408
|
}), // #region API Methods
|
|
29397
|
-
|
|
29409
|
+
we(qr, "GET", async ({
|
|
29398
29410
|
url: re,
|
|
29399
29411
|
params: te = {},
|
|
29400
29412
|
mock: ne = !1,
|
|
@@ -29407,7 +29419,7 @@ xe(qr, "GET", async ({
|
|
|
29407
29419
|
}
|
|
29408
29420
|
};
|
|
29409
29421
|
return await qr.getAxiosInstance().get(oe, se);
|
|
29410
|
-
}),
|
|
29422
|
+
}), we(qr, "POST", async ({
|
|
29411
29423
|
url: re,
|
|
29412
29424
|
data: te = {},
|
|
29413
29425
|
mock: ne = !1,
|
|
@@ -29422,7 +29434,7 @@ xe(qr, "GET", async ({
|
|
|
29422
29434
|
}
|
|
29423
29435
|
};
|
|
29424
29436
|
return await qr.getAxiosInstance().post(oe, te, se);
|
|
29425
|
-
}),
|
|
29437
|
+
}), we(qr, "PUT", async ({
|
|
29426
29438
|
url: re,
|
|
29427
29439
|
data: te = {},
|
|
29428
29440
|
mock: ne = !1,
|
|
@@ -29434,7 +29446,7 @@ xe(qr, "GET", async ({
|
|
|
29434
29446
|
}
|
|
29435
29447
|
};
|
|
29436
29448
|
return await qr.getAxiosInstance().put(oe, te, se);
|
|
29437
|
-
}),
|
|
29449
|
+
}), we(qr, "PATCH", async ({
|
|
29438
29450
|
url: re,
|
|
29439
29451
|
data: te = {},
|
|
29440
29452
|
mock: ne = !1,
|
|
@@ -29449,7 +29461,7 @@ xe(qr, "GET", async ({
|
|
|
29449
29461
|
}
|
|
29450
29462
|
};
|
|
29451
29463
|
return await qr.getAxiosInstance().patch(oe, te, se);
|
|
29452
|
-
}),
|
|
29464
|
+
}), we(qr, "DELETE", async ({
|
|
29453
29465
|
url: re,
|
|
29454
29466
|
params: te = {},
|
|
29455
29467
|
mock: ne = !1,
|
|
@@ -29462,7 +29474,7 @@ xe(qr, "GET", async ({
|
|
|
29462
29474
|
}
|
|
29463
29475
|
};
|
|
29464
29476
|
return await qr.getAxiosInstance().delete(oe, se);
|
|
29465
|
-
}),
|
|
29477
|
+
}), we(qr, "setupInterceptors", () => {
|
|
29466
29478
|
qr.axiosInstance.interceptors.request.use((re) => {
|
|
29467
29479
|
const { useQueryParams: te, ...ne } = re.params || {};
|
|
29468
29480
|
return te ? re.params = {
|
|
@@ -29473,10 +29485,10 @@ xe(qr, "GET", async ({
|
|
|
29473
29485
|
(re) => qr.handleResponse(re),
|
|
29474
29486
|
(re) => qr.handleError(re)
|
|
29475
29487
|
);
|
|
29476
|
-
}),
|
|
29488
|
+
}), we(qr, "handleResponse", (re) => {
|
|
29477
29489
|
const te = re.status === 202, ne = convertData(re.data, "snake_case-to-camelCase");
|
|
29478
29490
|
return te ? { ...ne, statusCode: re.status } : ne;
|
|
29479
|
-
}),
|
|
29491
|
+
}), we(qr, "handleError", (re) => {
|
|
29480
29492
|
var ie;
|
|
29481
29493
|
const te = convertData(
|
|
29482
29494
|
(ie = re.response) == null ? void 0 : ie.data,
|
|
@@ -29488,7 +29500,7 @@ xe(qr, "GET", async ({
|
|
|
29488
29500
|
description: te == null ? void 0 : te.description
|
|
29489
29501
|
};
|
|
29490
29502
|
return Promise.reject(ne);
|
|
29491
|
-
}),
|
|
29503
|
+
}), we(qr, "getEncodeParams", () => {
|
|
29492
29504
|
const re = {
|
|
29493
29505
|
app_name: qr.config.appName,
|
|
29494
29506
|
app_id: AstroPayCore.getToken(),
|
|
@@ -29514,7 +29526,7 @@ const END_POINTS = {
|
|
|
29514
29526
|
};
|
|
29515
29527
|
class CardService {
|
|
29516
29528
|
}
|
|
29517
|
-
|
|
29529
|
+
we(CardService, "getPciToken", async (re) => {
|
|
29518
29530
|
try {
|
|
29519
29531
|
return await HttpClient.POST({
|
|
29520
29532
|
url: END_POINTS.pciToken,
|
|
@@ -29537,10 +29549,10 @@ const formatCardExpiryDate = (ee) => {
|
|
|
29537
29549
|
}, APTokenizerVersion = "v1.1.3";
|
|
29538
29550
|
class CardApService {
|
|
29539
29551
|
constructor(re, te) {
|
|
29540
|
-
|
|
29541
|
-
|
|
29542
|
-
|
|
29543
|
-
|
|
29552
|
+
we(this, "collector");
|
|
29553
|
+
we(this, "form");
|
|
29554
|
+
we(this, "fields");
|
|
29555
|
+
we(this, "callback");
|
|
29544
29556
|
this.fields = re, this.callback = te;
|
|
29545
29557
|
}
|
|
29546
29558
|
async init(re) {
|
|
@@ -29573,7 +29585,7 @@ class CardApService {
|
|
|
29573
29585
|
return this.form.accessToken = ie, await new Promise((oe) => {
|
|
29574
29586
|
this.form.submit(
|
|
29575
29587
|
(se) => {
|
|
29576
|
-
var le, de, fe, he, pe, ge, me, ye, ve, be, _e, Ce, Te, Se, Re,
|
|
29588
|
+
var le, de, fe, he, pe, ge, me, ye, ve, be, _e, Ce, Te, Se, Re, Ae, xe, Pe, De;
|
|
29577
29589
|
const ae = (le = se.card_number) == null ? void 0 : le.details, ue = ae == null ? void 0 : ae.bin;
|
|
29578
29590
|
ue || DataDogTracker.trackError(
|
|
29579
29591
|
{
|
|
@@ -29595,8 +29607,8 @@ class CardApService {
|
|
|
29595
29607
|
}
|
|
29596
29608
|
);
|
|
29597
29609
|
const ce = {
|
|
29598
|
-
cardNumberTkn: ((
|
|
29599
|
-
cvvToken: ((
|
|
29610
|
+
cardNumberTkn: ((Ae = (Re = se.card_number) == null ? void 0 : Re.value) == null ? void 0 : Ae.trim()) || "",
|
|
29611
|
+
cvvToken: ((xe = se.card_cvc) == null ? void 0 : xe.value) || "",
|
|
29600
29612
|
holderName: (Pe = se.card_holder) == null ? void 0 : Pe.value,
|
|
29601
29613
|
expirationDate: formatCardExpiryDate((De = se.card_exp) == null ? void 0 : De.value),
|
|
29602
29614
|
firstSixDigits: ue ? ue.substring(0, 6) : "",
|
|
@@ -29637,7 +29649,7 @@ class CardApService {
|
|
|
29637
29649
|
var ECardPayStatus = /* @__PURE__ */ ((ee) => (ee.PENDING = "PENDING", ee.REJECTED = "REJECTED", ee))(ECardPayStatus || {});
|
|
29638
29650
|
class PaymentService {
|
|
29639
29651
|
}
|
|
29640
|
-
|
|
29652
|
+
we(PaymentService, "postCreatePayment", async (re, te) => {
|
|
29641
29653
|
try {
|
|
29642
29654
|
const ne = await HttpClient.POST({
|
|
29643
29655
|
data: re,
|
|
@@ -29650,7 +29662,7 @@ xe(PaymentService, "postCreatePayment", async (re, te) => {
|
|
|
29650
29662
|
} catch (ne) {
|
|
29651
29663
|
return DataDogTracker.trackError(ne), Promise.reject(ne);
|
|
29652
29664
|
}
|
|
29653
|
-
}),
|
|
29665
|
+
}), we(PaymentService, "getPaymentDetails", async (re, te) => {
|
|
29654
29666
|
try {
|
|
29655
29667
|
const ne = await HttpClient.GET({
|
|
29656
29668
|
url: buildPathWithParams(END_POINTS.paymentDetails, { paymentExternalId: re })
|
|
@@ -29662,7 +29674,7 @@ xe(PaymentService, "postCreatePayment", async (re, te) => {
|
|
|
29662
29674
|
} catch (ne) {
|
|
29663
29675
|
return DataDogTracker.trackError(ne), Promise.reject(ne);
|
|
29664
29676
|
}
|
|
29665
|
-
}),
|
|
29677
|
+
}), we(PaymentService, "postIdentifyUser", async (re, te) => {
|
|
29666
29678
|
try {
|
|
29667
29679
|
const ne = await HttpClient.POST({
|
|
29668
29680
|
data: te,
|
|
@@ -29675,7 +29687,7 @@ xe(PaymentService, "postCreatePayment", async (re, te) => {
|
|
|
29675
29687
|
} catch (ne) {
|
|
29676
29688
|
return DataDogTracker.trackError(ne), Promise.reject(ne);
|
|
29677
29689
|
}
|
|
29678
|
-
}),
|
|
29690
|
+
}), we(PaymentService, "getPaymentStatus", async (re) => {
|
|
29679
29691
|
try {
|
|
29680
29692
|
return await HttpClient.GET({
|
|
29681
29693
|
url: buildPathWithParams(END_POINTS.paymentStatus, { paymentExternalId: re })
|
|
@@ -29683,7 +29695,7 @@ xe(PaymentService, "postCreatePayment", async (re, te) => {
|
|
|
29683
29695
|
} catch (te) {
|
|
29684
29696
|
return Promise.reject(te);
|
|
29685
29697
|
}
|
|
29686
|
-
}),
|
|
29698
|
+
}), we(PaymentService, "getPollingRequest", async (re) => {
|
|
29687
29699
|
try {
|
|
29688
29700
|
const te = re.replace(/^\/?api\//, "");
|
|
29689
29701
|
return await HttpClient.GET({
|
|
@@ -29692,7 +29704,7 @@ xe(PaymentService, "postCreatePayment", async (re, te) => {
|
|
|
29692
29704
|
} catch (te) {
|
|
29693
29705
|
return Promise.reject(te);
|
|
29694
29706
|
}
|
|
29695
|
-
}),
|
|
29707
|
+
}), we(PaymentService, "postGenericPayment", async (re, te, ne) => {
|
|
29696
29708
|
try {
|
|
29697
29709
|
const ie = re.replace(/^\/?api\//, "");
|
|
29698
29710
|
return await HttpClient.POST({
|
|
@@ -29706,7 +29718,7 @@ xe(PaymentService, "postCreatePayment", async (re, te) => {
|
|
|
29706
29718
|
var EPaymentCode = /* @__PURE__ */ ((ee) => (ee.AP = "AP", ee.IX = "IX", ee.CREDIT_CARD = "EC", ee.DEBIT_CARD = "DR", ee.CW = "CW", ee.DC = "DC", ee.CC = "CC", ee.QA = "QA", ee))(EPaymentCode || {}), EPollingStatus = /* @__PURE__ */ ((ee) => (ee.ACCEPTED = "ACCEPTED", ee.FINISHED = "FINISHED", ee))(EPollingStatus || {}), EPaymentStatus = /* @__PURE__ */ ((ee) => (ee.COMPLETED = "COMPLETED", ee.AUTHORIZED = "AUTHORIZED", ee.EXPIRED = "EXPIRED", ee.REJECTED = "REJECTED", ee))(EPaymentStatus || {});
|
|
29707
29719
|
class PaymentMethodsService {
|
|
29708
29720
|
}
|
|
29709
|
-
|
|
29721
|
+
we(PaymentMethodsService, "getPaymentMethodDetail", async (re) => {
|
|
29710
29722
|
try {
|
|
29711
29723
|
return await HttpClient.GET({
|
|
29712
29724
|
url: buildPathWithParams(END_POINTS.paymentMethodDetail, {
|
|
@@ -29720,9 +29732,9 @@ xe(PaymentMethodsService, "getPaymentMethodDetail", async (re) => {
|
|
|
29720
29732
|
});
|
|
29721
29733
|
class PollingService {
|
|
29722
29734
|
constructor(re, te, ne, ie) {
|
|
29723
|
-
|
|
29724
|
-
|
|
29725
|
-
|
|
29735
|
+
we(this, "pollingTimeout", null);
|
|
29736
|
+
we(this, "isPollingActive", !1);
|
|
29737
|
+
we(this, "remainingAttempts");
|
|
29726
29738
|
this.pollingAcceptedData = re, this.onWaitingInfo = te, this.onFinished = ne, this.onError = ie, this.remainingAttempts = re.pollingMetadata.remainingHits, this.validatePollingData();
|
|
29727
29739
|
}
|
|
29728
29740
|
startPolling() {
|
|
@@ -29860,10 +29872,10 @@ const CARD_STYLES = (ee, re) => ({
|
|
|
29860
29872
|
class CardField extends Component {
|
|
29861
29873
|
constructor({ id: te, label: ne, initialHelperText: ie, isValid: oe = !0 }) {
|
|
29862
29874
|
super({ tag: "div", styles: () => getCardFieldStyles() });
|
|
29863
|
-
|
|
29864
|
-
|
|
29865
|
-
|
|
29866
|
-
|
|
29875
|
+
we(this, "inputContainer");
|
|
29876
|
+
we(this, "labelTextElement", null);
|
|
29877
|
+
we(this, "helperTextElement", null);
|
|
29878
|
+
we(this, "id");
|
|
29867
29879
|
this.id = te;
|
|
29868
29880
|
const se = inputStyle(!oe);
|
|
29869
29881
|
if (this.inputContainer = document.createElement("div"), this.inputContainer.classList.add("input-container"), ne) {
|
|
@@ -30083,21 +30095,22 @@ class CardPaymentMethod extends Component {
|
|
|
30083
30095
|
tag: "div",
|
|
30084
30096
|
styles: (ne) => getCardPaymentMethodStyles(ne, { error: !1, disabled: !1 })
|
|
30085
30097
|
});
|
|
30086
|
-
|
|
30087
|
-
|
|
30088
|
-
|
|
30089
|
-
|
|
30090
|
-
|
|
30091
|
-
|
|
30092
|
-
|
|
30093
|
-
|
|
30094
|
-
|
|
30095
|
-
|
|
30096
|
-
|
|
30097
|
-
|
|
30098
|
-
|
|
30099
|
-
|
|
30100
|
-
|
|
30098
|
+
we(this, "componentProps");
|
|
30099
|
+
we(this, "loadingWrapper");
|
|
30100
|
+
we(this, "btnPay", null);
|
|
30101
|
+
we(this, "paymentSummary", null);
|
|
30102
|
+
we(this, "cardManager", null);
|
|
30103
|
+
we(this, "cardHolderInput", null);
|
|
30104
|
+
we(this, "cardNumberInput", null);
|
|
30105
|
+
we(this, "cardExpInput", null);
|
|
30106
|
+
we(this, "cardCvvInput", null);
|
|
30107
|
+
we(this, "requiredFieldsForm", null);
|
|
30108
|
+
we(this, "formState", EMPTY_FORM_DATA);
|
|
30109
|
+
we(this, "isFormTemplateValid", !1);
|
|
30110
|
+
we(this, "selectedInstallment");
|
|
30111
|
+
we(this, "hasInstallments", !1);
|
|
30112
|
+
we(this, "pollingService", null);
|
|
30113
|
+
we(this, "processingTextTimers", []);
|
|
30101
30114
|
this.componentProps = {
|
|
30102
30115
|
...te,
|
|
30103
30116
|
showPaymentSummary: te.showPaymentSummary ?? !0,
|
|
@@ -30230,10 +30243,10 @@ class CardPaymentMethod extends Component {
|
|
|
30230
30243
|
(ie = this.btnPay) == null || ie.setDisabled(!ne);
|
|
30231
30244
|
}
|
|
30232
30245
|
async handleSubmit() {
|
|
30233
|
-
var te, ne, ie, oe, se, ae;
|
|
30246
|
+
var te, ne, ie, oe, se, ae, ue, ce, le, de;
|
|
30234
30247
|
try {
|
|
30235
|
-
(te = this.btnPay) == null || te.setLoading(!0);
|
|
30236
|
-
const
|
|
30248
|
+
(te = this.btnPay) == null || te.setLoading(!0), (ie = (ne = this.componentProps).onProcessingStart) == null || ie.call(ne);
|
|
30249
|
+
const fe = await this.handleTokenizeCard(), he = {
|
|
30237
30250
|
paymentMethods: [
|
|
30238
30251
|
{
|
|
30239
30252
|
methodCode: this.componentProps.paymentMethod.code,
|
|
@@ -30241,28 +30254,28 @@ class CardPaymentMethod extends Component {
|
|
|
30241
30254
|
amount: this.componentProps.amount,
|
|
30242
30255
|
user: {
|
|
30243
30256
|
sessionId: sessionStorage.getItem(EStorageKey.SESSION_ID) || "",
|
|
30244
|
-
...(
|
|
30257
|
+
...(oe = this.requiredFieldsForm) == null ? void 0 : oe.getFormData()
|
|
30245
30258
|
},
|
|
30246
30259
|
...this.hasInstallments && {
|
|
30247
|
-
installments: ((
|
|
30260
|
+
installments: ((se = this.selectedInstallment) == null ? void 0 : se.installmentNumber) ?? 1
|
|
30248
30261
|
},
|
|
30249
|
-
cardData:
|
|
30262
|
+
cardData: fe
|
|
30250
30263
|
}
|
|
30251
30264
|
]
|
|
30252
30265
|
};
|
|
30253
|
-
if ((
|
|
30254
|
-
const { status:
|
|
30266
|
+
if ((ae = this.componentProps.paymentMethod) != null && ae.uri) {
|
|
30267
|
+
const { status: pe, reason: ge } = await PaymentService.postGenericPayment(
|
|
30255
30268
|
this.componentProps.paymentMethod.uri,
|
|
30256
30269
|
this.componentProps.paymentExternalId,
|
|
30257
|
-
|
|
30270
|
+
he
|
|
30258
30271
|
);
|
|
30259
|
-
if (
|
|
30260
|
-
await this.checkPaymentStatus(), (
|
|
30261
|
-
else throw new Error(
|
|
30272
|
+
if (pe === ECardPayStatus.PENDING)
|
|
30273
|
+
await this.checkPaymentStatus(), (ue = this.btnPay) == null || ue.setLoading(!1), (ce = this.btnPay) == null || ce.setDisabled(!0);
|
|
30274
|
+
else throw new Error(ge || AstroPayI18n.translate("generic_error"));
|
|
30262
30275
|
} else throw new Error(AstroPayI18n.translate("generic_error"));
|
|
30263
|
-
} catch (
|
|
30264
|
-
const
|
|
30265
|
-
console.error(
|
|
30276
|
+
} catch (fe) {
|
|
30277
|
+
const he = fe;
|
|
30278
|
+
console.error(he.message), this.clearProcessingTextTimers(), (de = (le = this.componentProps).onProcessingEnd) == null || de.call(le), this.showErrorMessage(he.description ?? he.message), this.renderRetryButton();
|
|
30266
30279
|
}
|
|
30267
30280
|
}
|
|
30268
30281
|
async handleTokenizeCard() {
|
|
@@ -30316,19 +30329,33 @@ class CardPaymentMethod extends Component {
|
|
|
30316
30329
|
this.pollingService && (this.pollingService.stopPolling(), this.pollingService = null);
|
|
30317
30330
|
}
|
|
30318
30331
|
handlePollingError(te) {
|
|
30332
|
+
var ie, oe;
|
|
30319
30333
|
if (typeof te == "object" && te !== null && "text" in te) {
|
|
30320
|
-
const
|
|
30321
|
-
this.showErrorMessage(
|
|
30334
|
+
const se = te;
|
|
30335
|
+
this.showErrorMessage(se.text);
|
|
30322
30336
|
} else {
|
|
30323
|
-
const
|
|
30324
|
-
this.showErrorMessage(
|
|
30337
|
+
const se = te;
|
|
30338
|
+
this.showErrorMessage(se.description ?? se.message);
|
|
30325
30339
|
}
|
|
30326
|
-
this.stopPolling(), this.renderRetryButton();
|
|
30340
|
+
this.clearProcessingTextTimers(), (oe = (ie = this.componentProps).onProcessingEnd) == null || oe.call(ie), this.stopPolling(), this.renderRetryButton();
|
|
30327
30341
|
}
|
|
30328
30342
|
showWaitingInfo(te) {
|
|
30343
|
+
if (this.processingTextTimers.length > 0) return;
|
|
30329
30344
|
this.element.innerHTML = "";
|
|
30330
|
-
const ne = this.createLoadingWrapper(
|
|
30345
|
+
const ne = this.createLoadingWrapper(AstroPayI18n.translate("hold_on"));
|
|
30331
30346
|
ne.style.minHeight = "400px", this.element.append(ne);
|
|
30347
|
+
const ie = ne.lastElementChild;
|
|
30348
|
+
this.processingTextTimers.push(
|
|
30349
|
+
setTimeout(() => {
|
|
30350
|
+
ie.textContent = AstroPayI18n.translate("payment_processing");
|
|
30351
|
+
}, 8e3),
|
|
30352
|
+
setTimeout(() => {
|
|
30353
|
+
ie.textContent = AstroPayI18n.translate("payment_still_processing");
|
|
30354
|
+
}, 2e4)
|
|
30355
|
+
);
|
|
30356
|
+
}
|
|
30357
|
+
clearProcessingTextTimers() {
|
|
30358
|
+
this.processingTextTimers.forEach(clearTimeout), this.processingTextTimers = [];
|
|
30332
30359
|
}
|
|
30333
30360
|
handlePaymentFinished(te) {
|
|
30334
30361
|
te.data.status === EPaymentStatus.COMPLETED ? this.handleSuccessSection(te.data.successSection) : this.handleErrorSection(te.data.errorSection);
|
|
@@ -30343,13 +30370,15 @@ class CardPaymentMethod extends Component {
|
|
|
30343
30370
|
ne.push(ie), this.componentProps.onSuccess ? this.componentProps.onSuccess(ne) : (this.element.innerHTML = "", ne.forEach((oe) => this.element.append(oe)));
|
|
30344
30371
|
}
|
|
30345
30372
|
handleErrorSection(te) {
|
|
30373
|
+
var oe, se;
|
|
30346
30374
|
if (!te) return;
|
|
30375
|
+
this.clearProcessingTextTimers(), (se = (oe = this.componentProps).onProcessingEnd) == null || se.call(oe);
|
|
30347
30376
|
const ne = [], ie = new Status$1({
|
|
30348
30377
|
type: "error",
|
|
30349
30378
|
title: te.title,
|
|
30350
30379
|
description: te.description
|
|
30351
30380
|
}).element;
|
|
30352
|
-
ne.push(ie), this.componentProps.onError ? this.componentProps.onError(ne) : (this.element.innerHTML = "", ne.forEach((
|
|
30381
|
+
ne.push(ie), this.componentProps.onError ? this.componentProps.onError(ne) : (this.element.innerHTML = "", ne.forEach((ae) => this.element.append(ae)));
|
|
30353
30382
|
}
|
|
30354
30383
|
createLoadingWrapper(te) {
|
|
30355
30384
|
const ne = document.createElement("div");
|
|
@@ -30382,55 +30411,55 @@ class CardPaymentMethod extends Component {
|
|
|
30382
30411
|
te.append(ne), this.element.append(te);
|
|
30383
30412
|
}
|
|
30384
30413
|
destroy() {
|
|
30385
|
-
this.stopPolling(), this.element.remove();
|
|
30414
|
+
this.clearProcessingTextTimers(), this.stopPolling(), this.element.remove();
|
|
30386
30415
|
}
|
|
30387
30416
|
}
|
|
30388
30417
|
class AmplitudeAnalytics {
|
|
30389
30418
|
constructor() {
|
|
30390
|
-
|
|
30391
|
-
|
|
30419
|
+
we(this, "tracker", AmplitudeTracker);
|
|
30420
|
+
we(this, "astroPayPaymentImpression", (re) => {
|
|
30392
30421
|
this.tracker.trackEvent(
|
|
30393
30422
|
new AstroPayPaymentImpression({
|
|
30394
30423
|
component_name: re
|
|
30395
30424
|
})
|
|
30396
30425
|
);
|
|
30397
30426
|
});
|
|
30398
|
-
|
|
30427
|
+
we(this, "astroPayPaymentStarted", (re) => {
|
|
30399
30428
|
this.tracker.trackEvent(
|
|
30400
30429
|
new AstroPayPaymentStarted({
|
|
30401
30430
|
payment_external_id: re
|
|
30402
30431
|
})
|
|
30403
30432
|
);
|
|
30404
30433
|
});
|
|
30405
|
-
|
|
30434
|
+
we(this, "astroPayPaymentClicked", (re) => {
|
|
30406
30435
|
this.tracker.trackEvent(
|
|
30407
30436
|
new AstroPayPaymentClicked({
|
|
30408
30437
|
payment_external_id: re
|
|
30409
30438
|
})
|
|
30410
30439
|
);
|
|
30411
30440
|
});
|
|
30412
|
-
|
|
30441
|
+
we(this, "astroPayPaymentPhoneNumberEntered", (re) => {
|
|
30413
30442
|
this.tracker.trackEvent(
|
|
30414
30443
|
new AstroPayPaymentPhoneNumberEntered({
|
|
30415
30444
|
payment_external_id: re
|
|
30416
30445
|
})
|
|
30417
30446
|
);
|
|
30418
30447
|
});
|
|
30419
|
-
|
|
30448
|
+
we(this, "astroPayPaymentUserIdentified", (re) => {
|
|
30420
30449
|
this.tracker.trackEvent(
|
|
30421
30450
|
new AstroPayPaymentUserIdentified({
|
|
30422
30451
|
payment_external_id: re
|
|
30423
30452
|
})
|
|
30424
30453
|
);
|
|
30425
30454
|
});
|
|
30426
|
-
|
|
30455
|
+
we(this, "astroPayPaymentLinkCopied", (re) => {
|
|
30427
30456
|
this.tracker.trackEvent(
|
|
30428
30457
|
new AstroPayPaymentLinkCopied({
|
|
30429
30458
|
payment_external_id: re
|
|
30430
30459
|
})
|
|
30431
30460
|
);
|
|
30432
30461
|
});
|
|
30433
|
-
|
|
30462
|
+
we(this, "astroPayPaymentCardClicked", (re) => {
|
|
30434
30463
|
this.tracker.trackEvent(
|
|
30435
30464
|
new AstroPayPaymentCardClicked({
|
|
30436
30465
|
payment_external_id: re
|
|
@@ -30475,10 +30504,10 @@ class AstroPayCardPayment extends Component {
|
|
|
30475
30504
|
tag: "div",
|
|
30476
30505
|
styles: (ie) => getAstroPayCardPaymentStyles(ie)
|
|
30477
30506
|
});
|
|
30478
|
-
|
|
30479
|
-
|
|
30480
|
-
|
|
30481
|
-
|
|
30507
|
+
we(this, "loadingWrapper");
|
|
30508
|
+
we(this, "componentProps");
|
|
30509
|
+
we(this, "methodCode");
|
|
30510
|
+
we(this, "cardTabs", null);
|
|
30482
30511
|
if (this.methodCode = ECheckoutPaymentMethod.CARD, te.paymentExternalId)
|
|
30483
30512
|
this.componentProps = te;
|
|
30484
30513
|
else {
|
|
@@ -30563,7 +30592,15 @@ class AstroPayCardPayment extends Component {
|
|
|
30563
30592
|
onError: (_e) => this.showResultScreen(_e, {
|
|
30564
30593
|
type: "error",
|
|
30565
30594
|
onError: this.componentProps.onError
|
|
30566
|
-
})
|
|
30595
|
+
}),
|
|
30596
|
+
onProcessingStart: () => {
|
|
30597
|
+
var _e;
|
|
30598
|
+
return (_e = this.cardTabs) == null ? void 0 : _e.lock();
|
|
30599
|
+
},
|
|
30600
|
+
onProcessingEnd: () => {
|
|
30601
|
+
var _e;
|
|
30602
|
+
return (_e = this.cardTabs) == null ? void 0 : _e.unlock();
|
|
30603
|
+
}
|
|
30567
30604
|
}), ye.element;
|
|
30568
30605
|
},
|
|
30569
30606
|
onClose: () => {
|
|
@@ -30663,7 +30700,7 @@ class Divider extends Component {
|
|
|
30663
30700
|
class AccordionContent extends Component {
|
|
30664
30701
|
constructor({ content: te }) {
|
|
30665
30702
|
super({ tag: "div" });
|
|
30666
|
-
|
|
30703
|
+
we(this, "contentElement");
|
|
30667
30704
|
this.element.classList.add("accordion-content"), this.contentElement = te, this.renderContent();
|
|
30668
30705
|
}
|
|
30669
30706
|
renderContent() {
|
|
@@ -30761,15 +30798,16 @@ class AccordionItem extends Component {
|
|
|
30761
30798
|
onReady: fe
|
|
30762
30799
|
}) {
|
|
30763
30800
|
super({ tag: "div", styles: () => getAccordionItemStyles() });
|
|
30764
|
-
|
|
30765
|
-
|
|
30766
|
-
|
|
30767
|
-
|
|
30768
|
-
|
|
30769
|
-
|
|
30770
|
-
|
|
30771
|
-
|
|
30772
|
-
|
|
30801
|
+
we(this, "isOpen");
|
|
30802
|
+
we(this, "isDisabled");
|
|
30803
|
+
we(this, "isLocked", !1);
|
|
30804
|
+
we(this, "content");
|
|
30805
|
+
we(this, "onClick");
|
|
30806
|
+
we(this, "onClose");
|
|
30807
|
+
we(this, "descriptionEl", null);
|
|
30808
|
+
we(this, "accordionContent", null);
|
|
30809
|
+
we(this, "arrowWrapper");
|
|
30810
|
+
we(this, "header");
|
|
30773
30811
|
this.isOpen = se, this.isDisabled = ce, this.content = oe, this.onClick = le, this.onClose = de, this.header = document.createElement("div"), this.header.classList.add("accordion-header"), this.isDisabled || this.header.addEventListener("click", this.handleClick.bind(this));
|
|
30774
30812
|
const he = new Icon({
|
|
30775
30813
|
name: te,
|
|
@@ -30831,7 +30869,13 @@ class AccordionItem extends Component {
|
|
|
30831
30869
|
}
|
|
30832
30870
|
handleClick() {
|
|
30833
30871
|
var te;
|
|
30834
|
-
this.isDisabled
|
|
30872
|
+
!this.isDisabled && !this.isLocked && ((te = this.onClick) == null || te.call(this));
|
|
30873
|
+
}
|
|
30874
|
+
lock() {
|
|
30875
|
+
this.isLocked = !0, this.header.style.cursor = "not-allowed", this.header.style.pointerEvents = "none", this.header.style.opacity = "0.4";
|
|
30876
|
+
}
|
|
30877
|
+
unlock() {
|
|
30878
|
+
this.isLocked = !1, this.header.style.cursor = "", this.header.style.pointerEvents = "", this.header.style.opacity = "";
|
|
30835
30879
|
}
|
|
30836
30880
|
applyDisabledStyles() {
|
|
30837
30881
|
this.header.style.cursor = "default", this.header.style.pointerEvents = "none";
|
|
@@ -30859,10 +30903,10 @@ class AccordionItem extends Component {
|
|
|
30859
30903
|
class Accordion extends Component {
|
|
30860
30904
|
constructor({ items: te, defaultActiveItem: ne, onChangeContent: ie }) {
|
|
30861
30905
|
super({ tag: "div" });
|
|
30862
|
-
|
|
30863
|
-
|
|
30864
|
-
|
|
30865
|
-
|
|
30906
|
+
we(this, "openIndex");
|
|
30907
|
+
we(this, "accordionItems", []);
|
|
30908
|
+
we(this, "onChangeContent");
|
|
30909
|
+
we(this, "hasSingleItem");
|
|
30866
30910
|
this.hasSingleItem = te.length === 1, this.openIndex = this.validateDefaultIndex(ne ?? null, te.length), this.accordionItems = te.map((oe, se) => {
|
|
30867
30911
|
const ae = this.openIndex === se, ue = this.hasSingleItem, ce = new AccordionItem({
|
|
30868
30912
|
icon: oe.icon,
|
|
@@ -30904,6 +30948,12 @@ class Accordion extends Component {
|
|
|
30904
30948
|
closeAllItems() {
|
|
30905
30949
|
this.openIndex = null, this.updateItems();
|
|
30906
30950
|
}
|
|
30951
|
+
lockAll() {
|
|
30952
|
+
this.accordionItems.forEach((te) => te.lock());
|
|
30953
|
+
}
|
|
30954
|
+
unlockAll() {
|
|
30955
|
+
this.accordionItems.forEach((te) => te.unlock());
|
|
30956
|
+
}
|
|
30907
30957
|
}
|
|
30908
30958
|
const defineLinkStyles = ({
|
|
30909
30959
|
isDisabled: ee = !1
|
|
@@ -30932,8 +30982,8 @@ class Link extends Component {
|
|
|
30932
30982
|
tag: "a",
|
|
30933
30983
|
styles: () => getLinkStyles({ ...ue, isDisabled: ae })
|
|
30934
30984
|
});
|
|
30935
|
-
|
|
30936
|
-
|
|
30985
|
+
we(this, "isDisabled");
|
|
30986
|
+
we(this, "onClick");
|
|
30937
30987
|
this.isDisabled = ae, ie && (this.onClick = ie);
|
|
30938
30988
|
const ce = new Typography({
|
|
30939
30989
|
...ue,
|
|
@@ -32137,12 +32187,12 @@ function requireSegments() {
|
|
|
32137
32187
|
let Ce = ["start"];
|
|
32138
32188
|
for (let Te = 0; Te < ye.length; Te++) {
|
|
32139
32189
|
const Se = ye[Te], Re = [];
|
|
32140
|
-
for (let
|
|
32141
|
-
const
|
|
32142
|
-
Re.push(Pe), be[Pe] = { node:
|
|
32190
|
+
for (let Ae = 0; Ae < Se.length; Ae++) {
|
|
32191
|
+
const xe = Se[Ae], Pe = "" + Te + Ae;
|
|
32192
|
+
Re.push(Pe), be[Pe] = { node: xe, lastCount: 0 }, _e[Pe] = {};
|
|
32143
32193
|
for (let De = 0; De < Ce.length; De++) {
|
|
32144
32194
|
const Fe = Ce[De];
|
|
32145
|
-
be[Fe] && be[Fe].node.mode ===
|
|
32195
|
+
be[Fe] && be[Fe].node.mode === xe.mode ? (_e[Fe][Pe] = fe(be[Fe].lastCount + xe.length, xe.mode) - fe(be[Fe].lastCount, xe.mode), be[Fe].lastCount += xe.length) : (be[Fe] && (be[Fe].lastCount = xe.length), _e[Fe][Pe] = fe(xe.length, xe.mode) + 4 + re.getCharCountIndicator(xe.mode, ve));
|
|
32146
32196
|
}
|
|
32147
32197
|
}
|
|
32148
32198
|
Ce = Re;
|
|
@@ -32174,8 +32224,8 @@ function requireSegments() {
|
|
|
32174
32224
|
}, []);
|
|
32175
32225
|
}, ee.fromString = function(ve, be) {
|
|
32176
32226
|
const _e = de(ve, ae.isKanjiModeEnabled()), Ce = pe(_e), Te = ge(Ce, be), Se = ue.find_path(Te.map, "start", "end"), Re = [];
|
|
32177
|
-
for (let
|
|
32178
|
-
Re.push(Te.table[Se[
|
|
32227
|
+
for (let Ae = 1; Ae < Se.length - 1; Ae++)
|
|
32228
|
+
Re.push(Te.table[Se[Ae]].node);
|
|
32179
32229
|
return ee.fromArray(he(Re));
|
|
32180
32230
|
}, ee.rawSplit = function(ve) {
|
|
32181
32231
|
return ee.fromArray(
|
|
@@ -32190,9 +32240,9 @@ function requireQrcode() {
|
|
|
32190
32240
|
hasRequiredQrcode = 1;
|
|
32191
32241
|
const ee = requireUtils$1(), re = requireErrorCorrectionLevel(), te = requireBitBuffer(), ne = requireBitMatrix(), ie = requireAlignmentPattern(), oe = requireFinderPattern(), se = requireMaskPattern(), ae = requireErrorCorrectionCode(), ue = requireReedSolomonEncoder(), ce = requireVersion(), le = requireFormatInfo(), de = requireMode(), fe = requireSegments();
|
|
32192
32242
|
function he(Te, Se) {
|
|
32193
|
-
const Re = Te.size,
|
|
32194
|
-
for (let
|
|
32195
|
-
const Pe =
|
|
32243
|
+
const Re = Te.size, Ae = oe.getPositions(Se);
|
|
32244
|
+
for (let xe = 0; xe < Ae.length; xe++) {
|
|
32245
|
+
const Pe = Ae[xe][0], De = Ae[xe][1];
|
|
32196
32246
|
for (let Fe = -1; Fe <= 7; Fe++)
|
|
32197
32247
|
if (!(Pe + Fe <= -1 || Re <= Pe + Fe))
|
|
32198
32248
|
for (let Ue = -1; Ue <= 7; Ue++)
|
|
@@ -32202,63 +32252,63 @@ function requireQrcode() {
|
|
|
32202
32252
|
function pe(Te) {
|
|
32203
32253
|
const Se = Te.size;
|
|
32204
32254
|
for (let Re = 8; Re < Se - 8; Re++) {
|
|
32205
|
-
const
|
|
32206
|
-
Te.set(Re, 6,
|
|
32255
|
+
const Ae = Re % 2 === 0;
|
|
32256
|
+
Te.set(Re, 6, Ae, !0), Te.set(6, Re, Ae, !0);
|
|
32207
32257
|
}
|
|
32208
32258
|
}
|
|
32209
32259
|
function ge(Te, Se) {
|
|
32210
32260
|
const Re = ie.getPositions(Se);
|
|
32211
|
-
for (let
|
|
32212
|
-
const
|
|
32261
|
+
for (let Ae = 0; Ae < Re.length; Ae++) {
|
|
32262
|
+
const xe = Re[Ae][0], Pe = Re[Ae][1];
|
|
32213
32263
|
for (let De = -2; De <= 2; De++)
|
|
32214
32264
|
for (let Fe = -2; Fe <= 2; Fe++)
|
|
32215
|
-
De === -2 || De === 2 || Fe === -2 || Fe === 2 || De === 0 && Fe === 0 ? Te.set(
|
|
32265
|
+
De === -2 || De === 2 || Fe === -2 || Fe === 2 || De === 0 && Fe === 0 ? Te.set(xe + De, Pe + Fe, !0, !0) : Te.set(xe + De, Pe + Fe, !1, !0);
|
|
32216
32266
|
}
|
|
32217
32267
|
}
|
|
32218
32268
|
function me(Te, Se) {
|
|
32219
|
-
const Re = Te.size,
|
|
32220
|
-
let
|
|
32269
|
+
const Re = Te.size, Ae = ce.getEncodedBits(Se);
|
|
32270
|
+
let xe, Pe, De;
|
|
32221
32271
|
for (let Fe = 0; Fe < 18; Fe++)
|
|
32222
|
-
|
|
32272
|
+
xe = Math.floor(Fe / 3), Pe = Fe % 3 + Re - 8 - 3, De = (Ae >> Fe & 1) === 1, Te.set(xe, Pe, De, !0), Te.set(Pe, xe, De, !0);
|
|
32223
32273
|
}
|
|
32224
32274
|
function ye(Te, Se, Re) {
|
|
32225
|
-
const
|
|
32275
|
+
const Ae = Te.size, xe = le.getEncodedBits(Se, Re);
|
|
32226
32276
|
let Pe, De;
|
|
32227
32277
|
for (Pe = 0; Pe < 15; Pe++)
|
|
32228
|
-
De = (
|
|
32229
|
-
Te.set(
|
|
32278
|
+
De = (xe >> Pe & 1) === 1, Pe < 6 ? Te.set(Pe, 8, De, !0) : Pe < 8 ? Te.set(Pe + 1, 8, De, !0) : Te.set(Ae - 15 + Pe, 8, De, !0), Pe < 8 ? Te.set(8, Ae - Pe - 1, De, !0) : Pe < 9 ? Te.set(8, 15 - Pe - 1 + 1, De, !0) : Te.set(8, 15 - Pe - 1, De, !0);
|
|
32279
|
+
Te.set(Ae - 8, 8, 1, !0);
|
|
32230
32280
|
}
|
|
32231
32281
|
function ve(Te, Se) {
|
|
32232
32282
|
const Re = Te.size;
|
|
32233
|
-
let
|
|
32283
|
+
let Ae = -1, xe = Re - 1, Pe = 7, De = 0;
|
|
32234
32284
|
for (let Fe = Re - 1; Fe > 0; Fe -= 2)
|
|
32235
32285
|
for (Fe === 6 && Fe--; ; ) {
|
|
32236
32286
|
for (let Ue = 0; Ue < 2; Ue++)
|
|
32237
|
-
if (!Te.isReserved(
|
|
32287
|
+
if (!Te.isReserved(xe, Fe - Ue)) {
|
|
32238
32288
|
let He = !1;
|
|
32239
|
-
De < Se.length && (He = (Se[De] >>> Pe & 1) === 1), Te.set(
|
|
32289
|
+
De < Se.length && (He = (Se[De] >>> Pe & 1) === 1), Te.set(xe, Fe - Ue, He), Pe--, Pe === -1 && (De++, Pe = 7);
|
|
32240
32290
|
}
|
|
32241
|
-
if (
|
|
32242
|
-
|
|
32291
|
+
if (xe += Ae, xe < 0 || Re <= xe) {
|
|
32292
|
+
xe -= Ae, Ae = -Ae;
|
|
32243
32293
|
break;
|
|
32244
32294
|
}
|
|
32245
32295
|
}
|
|
32246
32296
|
}
|
|
32247
32297
|
function be(Te, Se, Re) {
|
|
32248
|
-
const
|
|
32298
|
+
const Ae = new te();
|
|
32249
32299
|
Re.forEach(function(Ue) {
|
|
32250
|
-
|
|
32300
|
+
Ae.put(Ue.mode.bit, 4), Ae.put(Ue.getLength(), de.getCharCountIndicator(Ue.mode, Te)), Ue.write(Ae);
|
|
32251
32301
|
});
|
|
32252
|
-
const
|
|
32253
|
-
for (
|
|
32254
|
-
|
|
32255
|
-
const Fe = (De -
|
|
32302
|
+
const xe = ee.getSymbolTotalCodewords(Te), Pe = ae.getTotalCodewordsCount(Te, Se), De = (xe - Pe) * 8;
|
|
32303
|
+
for (Ae.getLengthInBits() + 4 <= De && Ae.put(0, 4); Ae.getLengthInBits() % 8 !== 0; )
|
|
32304
|
+
Ae.putBit(0);
|
|
32305
|
+
const Fe = (De - Ae.getLengthInBits()) / 8;
|
|
32256
32306
|
for (let Ue = 0; Ue < Fe; Ue++)
|
|
32257
|
-
|
|
32258
|
-
return _e(
|
|
32307
|
+
Ae.put(Ue % 2 ? 17 : 236, 8);
|
|
32308
|
+
return _e(Ae, Te, Se);
|
|
32259
32309
|
}
|
|
32260
32310
|
function _e(Te, Se, Re) {
|
|
32261
|
-
const
|
|
32311
|
+
const Ae = ee.getSymbolTotalCodewords(Se), xe = ae.getTotalCodewordsCount(Se, Re), Pe = Ae - xe, De = ae.getBlocksCount(Se, Re), Fe = Ae % De, Ue = De - Fe, He = Math.floor(Ae / De), je = Math.floor(Pe / De), lr = je + 1, Ge = He - je, hr = new ue(Ge);
|
|
32262
32312
|
let fr = 0;
|
|
32263
32313
|
const dr = new Array(De), Qe = new Array(De);
|
|
32264
32314
|
let Bt = 0;
|
|
@@ -32267,7 +32317,7 @@ function requireQrcode() {
|
|
|
32267
32317
|
const Sr = ur < Ue ? je : lr;
|
|
32268
32318
|
dr[ur] = Cr.slice(fr, fr + Sr), Qe[ur] = hr.encode(dr[ur]), fr += Sr, Bt = Math.max(Bt, Sr);
|
|
32269
32319
|
}
|
|
32270
|
-
const $e = new Uint8Array(
|
|
32320
|
+
const $e = new Uint8Array(Ae);
|
|
32271
32321
|
let ke = 0, We, mr;
|
|
32272
32322
|
for (We = 0; We < Bt; We++)
|
|
32273
32323
|
for (mr = 0; mr < De; mr++)
|
|
@@ -32277,20 +32327,20 @@ function requireQrcode() {
|
|
|
32277
32327
|
$e[ke++] = Qe[mr][We];
|
|
32278
32328
|
return $e;
|
|
32279
32329
|
}
|
|
32280
|
-
function Ce(Te, Se, Re,
|
|
32281
|
-
let
|
|
32330
|
+
function Ce(Te, Se, Re, Ae) {
|
|
32331
|
+
let xe;
|
|
32282
32332
|
if (Array.isArray(Te))
|
|
32283
|
-
|
|
32333
|
+
xe = fe.fromArray(Te);
|
|
32284
32334
|
else if (typeof Te == "string") {
|
|
32285
32335
|
let He = Se;
|
|
32286
32336
|
if (!He) {
|
|
32287
32337
|
const je = fe.rawSplit(Te);
|
|
32288
32338
|
He = ce.getBestVersionForData(je, Re);
|
|
32289
32339
|
}
|
|
32290
|
-
|
|
32340
|
+
xe = fe.fromString(Te, He || 40);
|
|
32291
32341
|
} else
|
|
32292
32342
|
throw new Error("Invalid data");
|
|
32293
|
-
const Pe = ce.getBestVersionForData(
|
|
32343
|
+
const Pe = ce.getBestVersionForData(xe, Re);
|
|
32294
32344
|
if (!Pe)
|
|
32295
32345
|
throw new Error("The amount of data is too big to be stored in a QR Code");
|
|
32296
32346
|
if (!Se)
|
|
@@ -32302,23 +32352,23 @@ The chosen QR Code version cannot contain this amount of data.
|
|
|
32302
32352
|
Minimum version required to store current data is: ` + Pe + `.
|
|
32303
32353
|
`
|
|
32304
32354
|
);
|
|
32305
|
-
const De = be(Se, Re,
|
|
32306
|
-
return he(Ue, Se), pe(Ue), ge(Ue, Se), ye(Ue, Re, 0), Se >= 7 && me(Ue, Se), ve(Ue, De), isNaN(
|
|
32355
|
+
const De = be(Se, Re, xe), Fe = ee.getSymbolSize(Se), Ue = new ne(Fe);
|
|
32356
|
+
return he(Ue, Se), pe(Ue), ge(Ue, Se), ye(Ue, Re, 0), Se >= 7 && me(Ue, Se), ve(Ue, De), isNaN(Ae) && (Ae = se.getBestMask(
|
|
32307
32357
|
Ue,
|
|
32308
32358
|
ye.bind(null, Ue, Re)
|
|
32309
|
-
)), se.applyMask(
|
|
32359
|
+
)), se.applyMask(Ae, Ue), ye(Ue, Re, Ae), {
|
|
32310
32360
|
modules: Ue,
|
|
32311
32361
|
version: Se,
|
|
32312
32362
|
errorCorrectionLevel: Re,
|
|
32313
|
-
maskPattern:
|
|
32314
|
-
segments:
|
|
32363
|
+
maskPattern: Ae,
|
|
32364
|
+
segments: xe
|
|
32315
32365
|
};
|
|
32316
32366
|
}
|
|
32317
32367
|
return qrcode.create = function(Se, Re) {
|
|
32318
32368
|
if (typeof Se > "u" || Se === "")
|
|
32319
32369
|
throw new Error("No input text");
|
|
32320
|
-
let
|
|
32321
|
-
return typeof Re < "u" && (
|
|
32370
|
+
let Ae = re.M, xe, Pe;
|
|
32371
|
+
return typeof Re < "u" && (Ae = re.from(Re.errorCorrectionLevel, re.M), xe = ce.from(Re.version), Pe = se.from(Re.maskPattern), Re.toSJISFunc && ee.setToSJISFunction(Re.toSJISFunc)), Ce(Se, xe, Ae, Pe);
|
|
32322
32372
|
}, qrcode;
|
|
32323
32373
|
}
|
|
32324
32374
|
var canvas = {}, utils = {}, hasRequiredUtils;
|
|
@@ -32509,12 +32559,12 @@ class PhoneInputForm extends Component {
|
|
|
32509
32559
|
tag: "form",
|
|
32510
32560
|
styles: () => getPhoneInputStyles()
|
|
32511
32561
|
});
|
|
32512
|
-
|
|
32513
|
-
|
|
32514
|
-
|
|
32515
|
-
|
|
32516
|
-
|
|
32517
|
-
|
|
32562
|
+
we(this, "inputDialCode");
|
|
32563
|
+
we(this, "inputPhoneNumber");
|
|
32564
|
+
we(this, "btnContinue");
|
|
32565
|
+
we(this, "inputsWrapper");
|
|
32566
|
+
we(this, "onSubmit");
|
|
32567
|
+
we(this, "onChange");
|
|
32518
32568
|
this.onSubmit = ne, this.onChange = ie;
|
|
32519
32569
|
const oe = te.map((ae) => ({
|
|
32520
32570
|
name: ae.name,
|
|
@@ -32637,15 +32687,15 @@ var EFlowType = /* @__PURE__ */ ((ee) => (ee.AUTHENTICATED = "AUTHENTICATED", ee
|
|
|
32637
32687
|
class AstroPayPaymentMethod extends Component {
|
|
32638
32688
|
constructor(te) {
|
|
32639
32689
|
super({ tag: "div", styles: () => getAstroPayPaymentStyles$1() });
|
|
32640
|
-
|
|
32641
|
-
|
|
32642
|
-
|
|
32643
|
-
|
|
32644
|
-
|
|
32645
|
-
|
|
32646
|
-
|
|
32690
|
+
we(this, "componentProps");
|
|
32691
|
+
we(this, "btnAstroPay", null);
|
|
32692
|
+
we(this, "formCountryPhone");
|
|
32693
|
+
we(this, "pushFeedbackWrapper");
|
|
32694
|
+
we(this, "pollingService", null);
|
|
32695
|
+
we(this, "updatedInitialState");
|
|
32696
|
+
we(this, "currentFlow", null);
|
|
32647
32697
|
// #region Commons
|
|
32648
|
-
|
|
32698
|
+
we(this, "renderAPComponent", () => {
|
|
32649
32699
|
var te;
|
|
32650
32700
|
if (this.updatedInitialState) {
|
|
32651
32701
|
if (this.element.innerHTML = "", this.btnAstroPay = new Button({
|
|
@@ -32666,7 +32716,7 @@ class AstroPayPaymentMethod extends Component {
|
|
|
32666
32716
|
this.updatedInitialState = !1;
|
|
32667
32717
|
}
|
|
32668
32718
|
});
|
|
32669
|
-
|
|
32719
|
+
we(this, "handleOnChangePhoneNumber", () => {
|
|
32670
32720
|
this.stopPolling(), this.pushFeedbackWrapper && this.pushFeedbackWrapper.remove(), this.currentFlow = null;
|
|
32671
32721
|
});
|
|
32672
32722
|
this.componentProps = te, this.updatedInitialState = !0, this.currentFlow = null, AmplitudeAnalytics$1.astroPayPaymentStarted(this.componentProps.paymentExternalId), this.renderAPComponent();
|
|
@@ -32943,9 +32993,9 @@ const formatTimeInSeconds = (ee) => {
|
|
|
32943
32993
|
class Timer extends Component {
|
|
32944
32994
|
constructor(te) {
|
|
32945
32995
|
super({ tag: "div", styles: (ne) => getTimerStyles(ne) });
|
|
32946
|
-
|
|
32947
|
-
|
|
32948
|
-
|
|
32996
|
+
we(this, "compProps");
|
|
32997
|
+
we(this, "intervalId", null);
|
|
32998
|
+
we(this, "isTimeOver", !1);
|
|
32949
32999
|
this.compProps = {
|
|
32950
33000
|
timeoutText: AstroPayI18n.translate("time_up"),
|
|
32951
33001
|
...te
|
|
@@ -33043,11 +33093,11 @@ class PaymentMethod extends Component {
|
|
|
33043
33093
|
tag: "div",
|
|
33044
33094
|
styles: (ne) => getPaymentMethodStyles(ne)
|
|
33045
33095
|
});
|
|
33046
|
-
|
|
33047
|
-
|
|
33048
|
-
|
|
33049
|
-
|
|
33050
|
-
|
|
33096
|
+
we(this, "componentProps");
|
|
33097
|
+
we(this, "loadingWrapper");
|
|
33098
|
+
we(this, "timerElement", null);
|
|
33099
|
+
we(this, "timerInstance", null);
|
|
33100
|
+
we(this, "pollingService", null);
|
|
33051
33101
|
this.componentProps = te, this.loadingWrapper = this.createLoadingWrapper(), this.element.append(this.loadingWrapper), this.fetchPaymentMethodData();
|
|
33052
33102
|
}
|
|
33053
33103
|
createLoadingWrapper() {
|
|
@@ -33328,7 +33378,9 @@ const paymentIcons = {
|
|
|
33328
33378
|
cardConfig: ce,
|
|
33329
33379
|
actionLabel: le,
|
|
33330
33380
|
onSuccess: de,
|
|
33331
|
-
onError: fe
|
|
33381
|
+
onError: fe,
|
|
33382
|
+
onProcessingStart: he,
|
|
33383
|
+
onProcessingEnd: pe
|
|
33332
33384
|
} = re;
|
|
33333
33385
|
switch (ee.code) {
|
|
33334
33386
|
case EPaymentCode.AP:
|
|
@@ -33352,7 +33404,9 @@ const paymentIcons = {
|
|
|
33352
33404
|
showPaymentSummary: ce == null ? void 0 : ce.showPaymentSummary,
|
|
33353
33405
|
expirationDateFormat: ce == null ? void 0 : ce.expirationDateFormat,
|
|
33354
33406
|
onSuccess: de,
|
|
33355
|
-
onError: fe
|
|
33407
|
+
onError: fe,
|
|
33408
|
+
...he && { onProcessingStart: he },
|
|
33409
|
+
...pe && { onProcessingEnd: pe }
|
|
33356
33410
|
}) : new PaymentMethod({
|
|
33357
33411
|
paymentExternalId: te,
|
|
33358
33412
|
paymentMethod: ee,
|
|
@@ -33368,7 +33422,17 @@ const paymentIcons = {
|
|
|
33368
33422
|
let le = null;
|
|
33369
33423
|
return {
|
|
33370
33424
|
label: ue.label,
|
|
33371
|
-
content: () => (le == null || le.destroy(), le = createPaymentInstance(ue,
|
|
33425
|
+
content: () => (le == null || le.destroy(), le = createPaymentInstance(ue, {
|
|
33426
|
+
...re,
|
|
33427
|
+
onProcessingStart: () => {
|
|
33428
|
+
var de;
|
|
33429
|
+
ie == null || ie.lock(), (de = re.onProcessingStart) == null || de.call(re);
|
|
33430
|
+
},
|
|
33431
|
+
onProcessingEnd: () => {
|
|
33432
|
+
var de;
|
|
33433
|
+
ie == null || ie.unlock(), (de = re.onProcessingEnd) == null || de.call(re);
|
|
33434
|
+
}
|
|
33435
|
+
}), le.element),
|
|
33372
33436
|
onClose: () => {
|
|
33373
33437
|
le == null || le.destroy(), le = null;
|
|
33374
33438
|
},
|
|
@@ -33466,9 +33530,9 @@ class AstroPayFullCheckout extends Component {
|
|
|
33466
33530
|
elementId: "payment-component",
|
|
33467
33531
|
styles: (ie) => getAstroPayFullCheckoutStyles(ie)
|
|
33468
33532
|
});
|
|
33469
|
-
|
|
33470
|
-
|
|
33471
|
-
|
|
33533
|
+
we(this, "loadingWrapper");
|
|
33534
|
+
we(this, "componentProps");
|
|
33535
|
+
we(this, "accPaymentMethods");
|
|
33472
33536
|
if (te.paymentExternalId) {
|
|
33473
33537
|
const ie = te;
|
|
33474
33538
|
this.componentProps = {
|
|
@@ -33589,7 +33653,15 @@ class AstroPayFullCheckout extends Component {
|
|
|
33589
33653
|
type: "error",
|
|
33590
33654
|
onError: this.componentProps.onError
|
|
33591
33655
|
}),
|
|
33592
|
-
cardConfig: (be = this.componentProps) == null ? void 0 : be.cardConfig
|
|
33656
|
+
cardConfig: (be = this.componentProps) == null ? void 0 : be.cardConfig,
|
|
33657
|
+
onProcessingStart: () => {
|
|
33658
|
+
var _e;
|
|
33659
|
+
return (_e = this.accPaymentMethods) == null ? void 0 : _e.lockAll();
|
|
33660
|
+
},
|
|
33661
|
+
onProcessingEnd: () => {
|
|
33662
|
+
var _e;
|
|
33663
|
+
return (_e = this.accPaymentMethods) == null ? void 0 : _e.unlockAll();
|
|
33664
|
+
}
|
|
33593
33665
|
});
|
|
33594
33666
|
me.length > 0 && (this.accPaymentMethods = new Accordion({
|
|
33595
33667
|
items: me,
|
|
@@ -33667,9 +33739,9 @@ class AstroPayPayment extends Component {
|
|
|
33667
33739
|
tag: "div",
|
|
33668
33740
|
styles: (ie) => getAstroPayPaymentStyles(ie)
|
|
33669
33741
|
});
|
|
33670
|
-
|
|
33671
|
-
|
|
33672
|
-
|
|
33742
|
+
we(this, "loadingWrapper");
|
|
33743
|
+
we(this, "componentProps");
|
|
33744
|
+
we(this, "methodCode");
|
|
33673
33745
|
if (this.methodCode = ECheckoutPaymentMethod.ASTRO_PAY, te.paymentExternalId)
|
|
33674
33746
|
this.componentProps = te;
|
|
33675
33747
|
else {
|