@redneckz/wildless-cms-uni-blocks 0.14.236 → 0.14.238
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 +12 -12
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +7 -7
- package/bundle/hooks/{usePremiumBranchesByRegions.d.ts → useBranchesByRegions.d.ts} +1 -1
- package/dist/components/ApplicationFormCustom/AddressBranchField.js +2 -2
- package/dist/components/ApplicationFormCustom/AddressBranchField.js.map +1 -1
- package/dist/components/ApplicationFormCustom/RegionPremiumField.js +2 -2
- package/dist/components/ApplicationFormCustom/RegionPremiumField.js.map +1 -1
- package/dist/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +7 -7
- package/dist/components/OfficesAtmsMap/OfficesMap.js +7 -7
- package/dist/components/OfficesAtmsMap/OfficesMap.js.map +1 -1
- package/dist/hooks/{usePremiumBranchesByRegions.d.ts → useBranchesByRegions.d.ts} +1 -1
- package/{mobile/dist/hooks/usePremiumBranchesByRegions.js → dist/hooks/useBranchesByRegions.js} +5 -5
- package/dist/hooks/useBranchesByRegions.js.map +1 -0
- package/lib/components/ApplicationFormCustom/AddressBranchField.js +2 -2
- package/lib/components/ApplicationFormCustom/AddressBranchField.js.map +1 -1
- package/lib/components/ApplicationFormCustom/RegionPremiumField.js +2 -2
- package/lib/components/ApplicationFormCustom/RegionPremiumField.js.map +1 -1
- package/lib/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +7 -7
- package/lib/components/OfficesAtmsMap/OfficesMap.js +7 -7
- package/lib/components/OfficesAtmsMap/OfficesMap.js.map +1 -1
- package/lib/hooks/{usePremiumBranchesByRegions.d.ts → useBranchesByRegions.d.ts} +1 -1
- package/lib/hooks/{usePremiumBranchesByRegions.js → useBranchesByRegions.js} +3 -3
- package/lib/hooks/useBranchesByRegions.js.map +1 -0
- package/mobile/bundle/bundle.umd.js +12 -12
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +7 -7
- package/mobile/bundle/hooks/{usePremiumBranchesByRegions.d.ts → useBranchesByRegions.d.ts} +1 -1
- package/mobile/dist/components/ApplicationFormCustom/AddressBranchField.js +2 -2
- package/mobile/dist/components/ApplicationFormCustom/AddressBranchField.js.map +1 -1
- package/mobile/dist/components/ApplicationFormCustom/RegionPremiumField.js +2 -2
- package/mobile/dist/components/ApplicationFormCustom/RegionPremiumField.js.map +1 -1
- package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +7 -7
- package/mobile/dist/components/OfficesAtmsMap/OfficesMap.js +7 -7
- package/mobile/dist/components/OfficesAtmsMap/OfficesMap.js.map +1 -1
- package/mobile/dist/hooks/useBranchesByRegions.d.ts +8 -0
- package/{dist/hooks/usePremiumBranchesByRegions.js → mobile/dist/hooks/useBranchesByRegions.js} +5 -5
- package/mobile/dist/hooks/useBranchesByRegions.js.map +1 -0
- package/mobile/lib/components/ApplicationFormCustom/AddressBranchField.js +2 -2
- package/mobile/lib/components/ApplicationFormCustom/AddressBranchField.js.map +1 -1
- package/mobile/lib/components/ApplicationFormCustom/RegionPremiumField.js +2 -2
- package/mobile/lib/components/ApplicationFormCustom/RegionPremiumField.js.map +1 -1
- package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +7 -7
- package/mobile/lib/components/OfficesAtmsMap/OfficesMap.js +7 -7
- package/mobile/lib/components/OfficesAtmsMap/OfficesMap.js.map +1 -1
- package/mobile/lib/hooks/useBranchesByRegions.d.ts +8 -0
- package/mobile/lib/hooks/{usePremiumBranchesByRegions.js → useBranchesByRegions.js} +3 -3
- package/mobile/lib/hooks/useBranchesByRegions.js.map +1 -0
- package/mobile/src/components/ApplicationFormCustom/AddressBranchField.tsx +2 -2
- package/mobile/src/components/ApplicationFormCustom/RegionPremiumField.tsx +2 -2
- package/mobile/src/components/OfficesAtmsMap/OfficesAtmsMapProps.tsx +7 -7
- package/mobile/src/components/OfficesAtmsMap/OfficesMap.tsx +7 -7
- package/mobile/src/hooks/{usePremiumBranchesByRegions.ts → useBranchesByRegions.ts} +2 -2
- package/package.json +1 -1
- package/src/components/ApplicationFormCustom/AddressBranchField.tsx +2 -2
- package/src/components/ApplicationFormCustom/RegionPremiumField.tsx +2 -2
- package/src/components/OfficesAtmsMap/OfficesAtmsMapProps.tsx +7 -7
- package/src/components/OfficesAtmsMap/OfficesMap.tsx +7 -7
- package/src/hooks/{usePremiumBranchesByRegions.ts → useBranchesByRegions.ts} +2 -2
- package/dist/hooks/usePremiumBranchesByRegions.js.map +0 -1
- package/lib/hooks/usePremiumBranchesByRegions.js.map +0 -1
- package/mobile/dist/hooks/usePremiumBranchesByRegions.d.ts +0 -8
- package/mobile/dist/hooks/usePremiumBranchesByRegions.js.map +0 -1
- package/mobile/lib/hooks/usePremiumBranchesByRegions.d.ts +0 -8
- package/mobile/lib/hooks/usePremiumBranchesByRegions.js.map +0 -1
package/bundle/bundle.umd.js
CHANGED
|
@@ -1321,8 +1321,8 @@
|
|
|
1321
1321
|
return result || EMPTY_VALUE$3;
|
|
1322
1322
|
};
|
|
1323
1323
|
|
|
1324
|
-
const REGIONS_URL$1 = '/api/v1/
|
|
1325
|
-
function
|
|
1324
|
+
const REGIONS_URL$1 = '/api/v1/branchesByRegions';
|
|
1325
|
+
function useBranchesByRegions() {
|
|
1326
1326
|
const { data } = useAsyncData(REGIONS_URL$1, fetchJSONUnsafe);
|
|
1327
1327
|
return Array.isArray(data) ? data : [];
|
|
1328
1328
|
}
|
|
@@ -1371,7 +1371,7 @@
|
|
|
1371
1371
|
const regionKey = field('region')?.value?.key;
|
|
1372
1372
|
const regionText = field('region')?.value?.text;
|
|
1373
1373
|
const addressBranch = isPremium
|
|
1374
|
-
?
|
|
1374
|
+
? useBranchesByRegions()?.find((_) => _?.region === regionText)?.branches
|
|
1375
1375
|
: useBranches(regionKey)?.filter((branch) => branch?.address);
|
|
1376
1376
|
useEffect(() => {
|
|
1377
1377
|
if (field('region')?.value?.key !== '') {
|
|
@@ -1681,7 +1681,7 @@
|
|
|
1681
1681
|
const PosTerminalField = JSX(({ field }) => isAcquiringTrade(field('acquiringType')?.value?.key) ? (jsx(SlideCheckbox, { type: "radio", text: "\u0425\u043E\u0447\u0443 POS-\u0442\u0435\u0440\u043C\u0438\u043D\u0430\u043B", ...field('posTerminal') })) : null);
|
|
1682
1682
|
|
|
1683
1683
|
const RegionPremiumField = JSX(({ field, input }) => {
|
|
1684
|
-
const branchByRegions =
|
|
1684
|
+
const branchByRegions = useBranchesByRegions();
|
|
1685
1685
|
const regions = useMemo(() => branchByRegions?.map(({ region }) => ({
|
|
1686
1686
|
key: region,
|
|
1687
1687
|
text: region,
|
|
@@ -5124,13 +5124,13 @@
|
|
|
5124
5124
|
};
|
|
5125
5125
|
const FILTRATION_PREDICATES = {
|
|
5126
5126
|
workingSaturday: (item) => Boolean(item.workSchedule?.workingSaturday),
|
|
5127
|
-
premiumService: (item) => Boolean(item.
|
|
5128
|
-
privateBanking: (item) => Boolean(item.
|
|
5129
|
-
sellingCoins: (item) => Boolean(item.
|
|
5130
|
-
buyingCoins: (item) => Boolean(item.
|
|
5131
|
-
bullionOperations: (item) => Boolean(item.
|
|
5132
|
-
preciousMetalsOperations: (item) => Boolean(item.
|
|
5133
|
-
transferringDataToBiometricSystem: (item) => Boolean(item.
|
|
5127
|
+
premiumService: (item) => Boolean(item.premiumService),
|
|
5128
|
+
privateBanking: (item) => Boolean(item.privateBanking),
|
|
5129
|
+
sellingCoins: (item) => Boolean(item.sellingCoins),
|
|
5130
|
+
buyingCoins: (item) => Boolean(item.buyingCoins),
|
|
5131
|
+
bullionOperations: (item) => Boolean(item.bullionOperations),
|
|
5132
|
+
preciousMetalsOperations: (item) => Boolean(item.preciousMetalsOperations),
|
|
5133
|
+
transferringDataToBiometricSystem: (item) => Boolean(item.transferringDataToBiometricSystem),
|
|
5134
5134
|
};
|
|
5135
5135
|
const OfficesMap = JSX(({ className }) => {
|
|
5136
5136
|
const [currentLocation] = useLocation();
|
|
@@ -6024,7 +6024,7 @@
|
|
|
6024
6024
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
6025
6025
|
});
|
|
6026
6026
|
|
|
6027
|
-
const packageVersion = "0.14.
|
|
6027
|
+
const packageVersion = "0.14.237";
|
|
6028
6028
|
|
|
6029
6029
|
exports.Blocks = Blocks;
|
|
6030
6030
|
exports.ContentPage = ContentPage;
|