@rebilly/instruments 12.59.0 → 12.59.2
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/CHANGELOG.md +1 -6
- package/dist/index.js +12 -17
- package/dist/index.min.js +4 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1 @@
|
|
|
1
|
-
## [12.59.
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
### Features
|
|
5
|
-
|
|
6
|
-
* **api-metadata, rebilly-js-sdk:** Update resources based on latest api definitions ([#12018](https://github.com/Rebilly/rebilly/issues/12018)) ([fd77c09](https://github.com/Rebilly/rebilly/commit/fd77c09eb33b8e62e3161a805a6c7858f1ca751b))
|
|
1
|
+
## [12.59.2](https://github.com/Rebilly/rebilly/compare/instruments/core-v12.59.1...instruments/core-v12.59.2) (2025-05-16)
|
package/dist/index.js
CHANGED
|
@@ -703,7 +703,6 @@ class Loader {
|
|
|
703
703
|
}
|
|
704
704
|
startLoading({ section = "form", id = "" } = {}) {
|
|
705
705
|
var _a, _b, _c;
|
|
706
|
-
console.log("startLoading", { section, id });
|
|
707
706
|
this[section].push(id);
|
|
708
707
|
const rootEl = ((_a = state.shadowRoot) == null ? void 0 : _a.querySelector("style")) || document.querySelector(":root");
|
|
709
708
|
const contentPadding = 2;
|
|
@@ -753,7 +752,6 @@ class Loader {
|
|
|
753
752
|
}
|
|
754
753
|
}
|
|
755
754
|
stopLoading({ section = "form", id = "" } = {}) {
|
|
756
|
-
console.log("stopLoading", { section, id });
|
|
757
755
|
const idIndex = this[section].indexOf(id);
|
|
758
756
|
if (idIndex !== -1) {
|
|
759
757
|
this[section].splice(idIndex, 1);
|
|
@@ -765,7 +763,6 @@ class Loader {
|
|
|
765
763
|
}
|
|
766
764
|
clearAll() {
|
|
767
765
|
this.form.forEach((id) => {
|
|
768
|
-
console.log(3, "stopLoading");
|
|
769
766
|
this.stopLoading({ id });
|
|
770
767
|
});
|
|
771
768
|
if (this.summary) {
|
|
@@ -2925,7 +2922,6 @@ function stopLoaderHandler(iframe, data) {
|
|
|
2925
2922
|
if (!section) {
|
|
2926
2923
|
section = id.includes("summary") ? "summary" : "form";
|
|
2927
2924
|
}
|
|
2928
|
-
console.log(5, "stopLoading");
|
|
2929
2925
|
(_a = data.loader) == null ? void 0 : _a.stopLoading({ section, id });
|
|
2930
2926
|
});
|
|
2931
2927
|
}
|
|
@@ -6304,7 +6300,7 @@ function C$1({ options: e2 }) {
|
|
|
6304
6300
|
}
|
|
6305
6301
|
function o2() {
|
|
6306
6302
|
const i = {
|
|
6307
|
-
"REB-API-CONSUMER": `${["Rebilly", e2.appName, "js-sdk"].filter((g) => g).join("/")}@
|
|
6303
|
+
"REB-API-CONSUMER": `${["Rebilly", e2.appName, "js-sdk"].filter((g) => g).join("/")}@443fb8f`
|
|
6308
6304
|
};
|
|
6309
6305
|
return e2.apiKey && (i["REB-APIKEY"] = e2.apiKey), i;
|
|
6310
6306
|
}
|
|
@@ -12762,14 +12758,17 @@ async function ce() {
|
|
|
12762
12758
|
}
|
|
12763
12759
|
}
|
|
12764
12760
|
async function $t2() {
|
|
12765
|
-
return new Promise((
|
|
12766
|
-
window.requestIdleCallback ? requestIdleCallback(
|
|
12767
|
-
|
|
12768
|
-
|
|
12769
|
-
|
|
12770
|
-
|
|
12771
|
-
|
|
12772
|
-
|
|
12761
|
+
return new Promise((t2) => {
|
|
12762
|
+
window.requestIdleCallback ? requestIdleCallback(
|
|
12763
|
+
async () => {
|
|
12764
|
+
const n2 = await ce();
|
|
12765
|
+
t2(n2);
|
|
12766
|
+
},
|
|
12767
|
+
{ timeout: 200 }
|
|
12768
|
+
) : setTimeout(async () => {
|
|
12769
|
+
const n2 = await ce();
|
|
12770
|
+
t2(n2);
|
|
12771
|
+
}, 200);
|
|
12773
12772
|
});
|
|
12774
12773
|
}
|
|
12775
12774
|
const en = "https://tst.kaptcha.com", tn = "https://ssl.kaptcha.com", nn = (e2) => e2 === "production", rn = ({ env: e2, kountAccountId: t2, kountSessionId: n2 }) => {
|
|
@@ -17574,7 +17573,6 @@ async function mountMethodSelector() {
|
|
|
17574
17573
|
});
|
|
17575
17574
|
}
|
|
17576
17575
|
} else {
|
|
17577
|
-
console.log(6, "stopLoading");
|
|
17578
17576
|
state.loader.stopLoading({ id: "rebilly-instruments-form" });
|
|
17579
17577
|
state.form.querySelector(
|
|
17580
17578
|
'[data-rebilly-instruments="form"]'
|
|
@@ -17657,7 +17655,6 @@ async function mountForm() {
|
|
|
17657
17655
|
const iframe = await new ViewIframe2(args);
|
|
17658
17656
|
iframe.bindEventListeners({ loader: state.loader });
|
|
17659
17657
|
iframes.form = iframe;
|
|
17660
|
-
console.log(7, "stopLoading");
|
|
17661
17658
|
state.loader.stopLoading({ id: "rebilly-instruments-form" });
|
|
17662
17659
|
return {
|
|
17663
17660
|
then: (callback) => callback()
|
|
@@ -21347,7 +21344,6 @@ async function mount({ ...options } = {}) {
|
|
|
21347
21344
|
state.i18n();
|
|
21348
21345
|
state.hasMounted = true;
|
|
21349
21346
|
const clearFormOnError = (errorMessage) => {
|
|
21350
|
-
console.log(1, "stopLoading");
|
|
21351
21347
|
state.loader.stopLoading({ id: "rebilly-instruments-form" });
|
|
21352
21348
|
removeForm();
|
|
21353
21349
|
showError(state.translate.getTranslation(errorMessage), false);
|
|
@@ -21376,7 +21372,6 @@ async function mount({ ...options } = {}) {
|
|
|
21376
21372
|
hasNoPaymentMethods = !((_t2 = data.readyToPay) == null ? void 0 : _t2.length);
|
|
21377
21373
|
}
|
|
21378
21374
|
if (hasNoPaymentMethods) {
|
|
21379
|
-
console.log(2, "stopLoading");
|
|
21380
21375
|
state.loader.stopLoading({ id: "rebilly-instruments-form" });
|
|
21381
21376
|
showError(
|
|
21382
21377
|
state.translate.getTranslation("form.error.noPaymentMethods"),
|