@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
|
@@ -1,12 +1,22 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
2
|
exports.getBaseUrl = void 0;
|
|
3
3
|
const apiBaseUrl_1 = require("../api/apiBaseUrl");
|
|
4
|
+
const getProductType = () => {
|
|
5
|
+
const raw = globalThis.localStorage?.getItem('productType');
|
|
6
|
+
if (!raw) {
|
|
7
|
+
return null;
|
|
8
|
+
}
|
|
9
|
+
try {
|
|
10
|
+
return JSON.parse(raw);
|
|
11
|
+
}
|
|
12
|
+
catch {
|
|
13
|
+
return null;
|
|
14
|
+
}
|
|
15
|
+
};
|
|
4
16
|
const getBaseUrl = () => {
|
|
5
17
|
const isNewMicroservice = globalThis.sessionStorage?.getItem('isNewMicroservice');
|
|
6
|
-
const productType =
|
|
7
|
-
const newRetailApi = productType === '
|
|
8
|
-
? apiBaseUrl_1.NEW_RETAIL_CREDIT_API_BASE_URI
|
|
9
|
-
: apiBaseUrl_1.NEW_RETAIL_CREDIT_CARD_API_BASE_URI;
|
|
18
|
+
const productType = getProductType();
|
|
19
|
+
const newRetailApi = productType === 'credit' ? apiBaseUrl_1.NEW_RETAIL_CREDIT_API_BASE_URI : apiBaseUrl_1.NEW_RETAIL_CREDIT_CARD_API_BASE_URI;
|
|
10
20
|
return isNewMicroservice ? newRetailApi : apiBaseUrl_1.RETAIL_API_BASE_URI;
|
|
11
21
|
};
|
|
12
22
|
exports.getBaseUrl = getBaseUrl;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getBaseUrl.js","sourceRoot":"","sources":["../../../src/retail/utils/getBaseUrl.ts"],"names":[],"mappings":";;AAAA,kDAI2B;
|
|
1
|
+
{"version":3,"file":"getBaseUrl.js","sourceRoot":"","sources":["../../../src/retail/utils/getBaseUrl.ts"],"names":[],"mappings":";;AAAA,kDAI2B;AAG3B,MAAM,cAAc,GAAG,GAAuB,EAAE;IAC9C,MAAM,GAAG,GAAG,UAAU,CAAC,YAAY,EAAE,OAAO,CAAC,aAAa,CAAC,CAAC;IAC5D,IAAI,CAAC,GAAG,EAAE;QACR,OAAO,IAAI,CAAC;KACb;IACD,IAAI;QACF,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;KACxB;IAAC,MAAM;QACN,OAAO,IAAI,CAAC;KACb;AACH,CAAC,CAAC;AAEK,MAAM,UAAU,GAAG,GAAG,EAAE;IAC7B,MAAM,iBAAiB,GAAG,UAAU,CAAC,cAAc,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAClF,MAAM,WAAW,GAAG,cAAc,EAAE,CAAC;IAErC,MAAM,YAAY,GAChB,WAAW,KAAK,QAAQ,CAAC,CAAC,CAAC,2CAA8B,CAAC,CAAC,CAAC,gDAAmC,CAAC;IAElG,OAAO,iBAAiB,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,gCAAmB,CAAC;AAChE,CAAC,CAAC;AARW,QAAA,UAAU,cAQrB"}
|
|
@@ -16,5 +16,5 @@ export interface OfficesAtmsMapLayoutProps<T> extends ComponentType, TitleProps
|
|
|
16
16
|
initFilterState?: InitFilterState;
|
|
17
17
|
descriptionData?: AtmsDef;
|
|
18
18
|
}
|
|
19
|
-
export declare const OfficesAtmsMapLayout: import("@redneckz/uni-jsx").UNIComponent<OfficesAtmsMapLayoutProps<
|
|
19
|
+
export declare const OfficesAtmsMapLayout: import("@redneckz/uni-jsx").UNIComponent<OfficesAtmsMapLayoutProps<Branch | RemoteWorkplace | Atm>, any, any>;
|
|
20
20
|
export declare const getFiltersWithNonEmptyData: (data: (Branch | Atm | RemoteWorkplace)[]) => string[];
|
|
@@ -1,10 +1,20 @@
|
|
|
1
1
|
import { NEW_RETAIL_CREDIT_API_BASE_URI, NEW_RETAIL_CREDIT_CARD_API_BASE_URI, RETAIL_API_BASE_URI, } from '../api/apiBaseUrl.js';
|
|
2
|
+
const getProductType = () => {
|
|
3
|
+
const raw = globalThis.localStorage?.getItem('productType');
|
|
4
|
+
if (!raw) {
|
|
5
|
+
return null;
|
|
6
|
+
}
|
|
7
|
+
try {
|
|
8
|
+
return JSON.parse(raw);
|
|
9
|
+
}
|
|
10
|
+
catch {
|
|
11
|
+
return null;
|
|
12
|
+
}
|
|
13
|
+
};
|
|
2
14
|
export const getBaseUrl = () => {
|
|
3
15
|
const isNewMicroservice = globalThis.sessionStorage?.getItem('isNewMicroservice');
|
|
4
|
-
const productType =
|
|
5
|
-
const newRetailApi = productType === '
|
|
6
|
-
? NEW_RETAIL_CREDIT_API_BASE_URI
|
|
7
|
-
: NEW_RETAIL_CREDIT_CARD_API_BASE_URI;
|
|
16
|
+
const productType = getProductType();
|
|
17
|
+
const newRetailApi = productType === 'credit' ? NEW_RETAIL_CREDIT_API_BASE_URI : NEW_RETAIL_CREDIT_CARD_API_BASE_URI;
|
|
8
18
|
return isNewMicroservice ? newRetailApi : RETAIL_API_BASE_URI;
|
|
9
19
|
};
|
|
10
20
|
//# sourceMappingURL=getBaseUrl.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getBaseUrl.js","sourceRoot":"","sources":["../../../src/retail/utils/getBaseUrl.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,8BAA8B,EAC9B,mCAAmC,EACnC,mBAAmB,GACpB,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"getBaseUrl.js","sourceRoot":"","sources":["../../../src/retail/utils/getBaseUrl.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,8BAA8B,EAC9B,mCAAmC,EACnC,mBAAmB,GACpB,MAAM,mBAAmB,CAAC;AAG3B,MAAM,cAAc,GAAG,GAAuB,EAAE;IAC9C,MAAM,GAAG,GAAG,UAAU,CAAC,YAAY,EAAE,OAAO,CAAC,aAAa,CAAC,CAAC;IAC5D,IAAI,CAAC,GAAG,EAAE;QACR,OAAO,IAAI,CAAC;KACb;IACD,IAAI;QACF,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;KACxB;IAAC,MAAM;QACN,OAAO,IAAI,CAAC;KACb;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAG,GAAG,EAAE;IAC7B,MAAM,iBAAiB,GAAG,UAAU,CAAC,cAAc,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAClF,MAAM,WAAW,GAAG,cAAc,EAAE,CAAC;IAErC,MAAM,YAAY,GAChB,WAAW,KAAK,QAAQ,CAAC,CAAC,CAAC,8BAA8B,CAAC,CAAC,CAAC,mCAAmC,CAAC;IAElG,OAAO,iBAAiB,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,mBAAmB,CAAC;AAChE,CAAC,CAAC"}
|
|
@@ -4463,12 +4463,22 @@
|
|
|
4463
4463
|
const NEW_RETAIL_CREDIT_API_BASE_URI = '/api/credit-application';
|
|
4464
4464
|
const NEW_RETAIL_CREDIT_CARD_API_BASE_URI = '/api/creditcard-application';
|
|
4465
4465
|
|
|
4466
|
+
const getProductType = () => {
|
|
4467
|
+
const raw = globalThis.localStorage?.getItem('productType');
|
|
4468
|
+
if (!raw) {
|
|
4469
|
+
return null;
|
|
4470
|
+
}
|
|
4471
|
+
try {
|
|
4472
|
+
return JSON.parse(raw);
|
|
4473
|
+
}
|
|
4474
|
+
catch {
|
|
4475
|
+
return null;
|
|
4476
|
+
}
|
|
4477
|
+
};
|
|
4466
4478
|
const getBaseUrl = () => {
|
|
4467
4479
|
const isNewMicroservice = globalThis.sessionStorage?.getItem('isNewMicroservice');
|
|
4468
|
-
const productType =
|
|
4469
|
-
const newRetailApi = productType === '
|
|
4470
|
-
? NEW_RETAIL_CREDIT_API_BASE_URI
|
|
4471
|
-
: NEW_RETAIL_CREDIT_CARD_API_BASE_URI;
|
|
4480
|
+
const productType = getProductType();
|
|
4481
|
+
const newRetailApi = productType === 'credit' ? NEW_RETAIL_CREDIT_API_BASE_URI : NEW_RETAIL_CREDIT_CARD_API_BASE_URI;
|
|
4472
4482
|
return isNewMicroservice ? newRetailApi : RETAIL_API_BASE_URI;
|
|
4473
4483
|
};
|
|
4474
4484
|
|
|
@@ -14949,7 +14959,7 @@
|
|
|
14949
14959
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
14950
14960
|
});
|
|
14951
14961
|
|
|
14952
|
-
const packageVersion = "0.14.
|
|
14962
|
+
const packageVersion = "0.14.1088";
|
|
14953
14963
|
|
|
14954
14964
|
exports.Blocks = Blocks;
|
|
14955
14965
|
exports.ContentPage = ContentPage;
|