@redneckz/wildless-cms-uni-blocks 0.14.1088 → 0.14.1089
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/bundle/bundle.umd.js +15 -5
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/retail/utils/getBaseUrl.js +14 -4
- package/dist/retail/utils/getBaseUrl.js.map +1 -1
- package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +1 -1
- package/lib/retail/utils/getBaseUrl.js +14 -4
- package/lib/retail/utils/getBaseUrl.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +15 -5
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/retail/utils/getBaseUrl.js +14 -4
- package/mobile/dist/retail/utils/getBaseUrl.js.map +1 -1
- package/mobile/lib/retail/utils/getBaseUrl.js +14 -4
- package/mobile/lib/retail/utils/getBaseUrl.js.map +1 -1
- package/mobile/src/retail/utils/getBaseUrl.ts +15 -4
- package/package.json +1 -1
- package/src/retail/utils/getBaseUrl.ts +15 -4
package/bundle/bundle.umd.js
CHANGED
|
@@ -4455,12 +4455,22 @@
|
|
|
4455
4455
|
const NEW_RETAIL_CREDIT_API_BASE_URI = '/api/credit-application';
|
|
4456
4456
|
const NEW_RETAIL_CREDIT_CARD_API_BASE_URI = '/api/creditcard-application';
|
|
4457
4457
|
|
|
4458
|
+
const getProductType = () => {
|
|
4459
|
+
const raw = globalThis.localStorage?.getItem('productType');
|
|
4460
|
+
if (!raw) {
|
|
4461
|
+
return null;
|
|
4462
|
+
}
|
|
4463
|
+
try {
|
|
4464
|
+
return JSON.parse(raw);
|
|
4465
|
+
}
|
|
4466
|
+
catch {
|
|
4467
|
+
return null;
|
|
4468
|
+
}
|
|
4469
|
+
};
|
|
4458
4470
|
const getBaseUrl = () => {
|
|
4459
4471
|
const isNewMicroservice = globalThis.sessionStorage?.getItem('isNewMicroservice');
|
|
4460
|
-
const productType =
|
|
4461
|
-
const newRetailApi = productType === '
|
|
4462
|
-
? NEW_RETAIL_CREDIT_API_BASE_URI
|
|
4463
|
-
: NEW_RETAIL_CREDIT_CARD_API_BASE_URI;
|
|
4472
|
+
const productType = getProductType();
|
|
4473
|
+
const newRetailApi = productType === 'credit' ? NEW_RETAIL_CREDIT_API_BASE_URI : NEW_RETAIL_CREDIT_CARD_API_BASE_URI;
|
|
4464
4474
|
return isNewMicroservice ? newRetailApi : RETAIL_API_BASE_URI;
|
|
4465
4475
|
};
|
|
4466
4476
|
|
|
@@ -15175,7 +15185,7 @@
|
|
|
15175
15185
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
15176
15186
|
});
|
|
15177
15187
|
|
|
15178
|
-
const packageVersion = "0.14.
|
|
15188
|
+
const packageVersion = "0.14.1088";
|
|
15179
15189
|
|
|
15180
15190
|
exports.Blocks = Blocks;
|
|
15181
15191
|
exports.ContentPage = ContentPage;
|