@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.
Files changed (65) hide show
  1. package/bundle/bundle.umd.js +12 -12
  2. package/bundle/bundle.umd.min.js +1 -1
  3. package/bundle/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +7 -7
  4. package/bundle/hooks/{usePremiumBranchesByRegions.d.ts → useBranchesByRegions.d.ts} +1 -1
  5. package/dist/components/ApplicationFormCustom/AddressBranchField.js +2 -2
  6. package/dist/components/ApplicationFormCustom/AddressBranchField.js.map +1 -1
  7. package/dist/components/ApplicationFormCustom/RegionPremiumField.js +2 -2
  8. package/dist/components/ApplicationFormCustom/RegionPremiumField.js.map +1 -1
  9. package/dist/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +7 -7
  10. package/dist/components/OfficesAtmsMap/OfficesMap.js +7 -7
  11. package/dist/components/OfficesAtmsMap/OfficesMap.js.map +1 -1
  12. package/dist/hooks/{usePremiumBranchesByRegions.d.ts → useBranchesByRegions.d.ts} +1 -1
  13. package/{mobile/dist/hooks/usePremiumBranchesByRegions.js → dist/hooks/useBranchesByRegions.js} +5 -5
  14. package/dist/hooks/useBranchesByRegions.js.map +1 -0
  15. package/lib/components/ApplicationFormCustom/AddressBranchField.js +2 -2
  16. package/lib/components/ApplicationFormCustom/AddressBranchField.js.map +1 -1
  17. package/lib/components/ApplicationFormCustom/RegionPremiumField.js +2 -2
  18. package/lib/components/ApplicationFormCustom/RegionPremiumField.js.map +1 -1
  19. package/lib/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +7 -7
  20. package/lib/components/OfficesAtmsMap/OfficesMap.js +7 -7
  21. package/lib/components/OfficesAtmsMap/OfficesMap.js.map +1 -1
  22. package/lib/hooks/{usePremiumBranchesByRegions.d.ts → useBranchesByRegions.d.ts} +1 -1
  23. package/lib/hooks/{usePremiumBranchesByRegions.js → useBranchesByRegions.js} +3 -3
  24. package/lib/hooks/useBranchesByRegions.js.map +1 -0
  25. package/mobile/bundle/bundle.umd.js +12 -12
  26. package/mobile/bundle/bundle.umd.min.js +1 -1
  27. package/mobile/bundle/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +7 -7
  28. package/mobile/bundle/hooks/{usePremiumBranchesByRegions.d.ts → useBranchesByRegions.d.ts} +1 -1
  29. package/mobile/dist/components/ApplicationFormCustom/AddressBranchField.js +2 -2
  30. package/mobile/dist/components/ApplicationFormCustom/AddressBranchField.js.map +1 -1
  31. package/mobile/dist/components/ApplicationFormCustom/RegionPremiumField.js +2 -2
  32. package/mobile/dist/components/ApplicationFormCustom/RegionPremiumField.js.map +1 -1
  33. package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +7 -7
  34. package/mobile/dist/components/OfficesAtmsMap/OfficesMap.js +7 -7
  35. package/mobile/dist/components/OfficesAtmsMap/OfficesMap.js.map +1 -1
  36. package/mobile/dist/hooks/useBranchesByRegions.d.ts +8 -0
  37. package/{dist/hooks/usePremiumBranchesByRegions.js → mobile/dist/hooks/useBranchesByRegions.js} +5 -5
  38. package/mobile/dist/hooks/useBranchesByRegions.js.map +1 -0
  39. package/mobile/lib/components/ApplicationFormCustom/AddressBranchField.js +2 -2
  40. package/mobile/lib/components/ApplicationFormCustom/AddressBranchField.js.map +1 -1
  41. package/mobile/lib/components/ApplicationFormCustom/RegionPremiumField.js +2 -2
  42. package/mobile/lib/components/ApplicationFormCustom/RegionPremiumField.js.map +1 -1
  43. package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +7 -7
  44. package/mobile/lib/components/OfficesAtmsMap/OfficesMap.js +7 -7
  45. package/mobile/lib/components/OfficesAtmsMap/OfficesMap.js.map +1 -1
  46. package/mobile/lib/hooks/useBranchesByRegions.d.ts +8 -0
  47. package/mobile/lib/hooks/{usePremiumBranchesByRegions.js → useBranchesByRegions.js} +3 -3
  48. package/mobile/lib/hooks/useBranchesByRegions.js.map +1 -0
  49. package/mobile/src/components/ApplicationFormCustom/AddressBranchField.tsx +2 -2
  50. package/mobile/src/components/ApplicationFormCustom/RegionPremiumField.tsx +2 -2
  51. package/mobile/src/components/OfficesAtmsMap/OfficesAtmsMapProps.tsx +7 -7
  52. package/mobile/src/components/OfficesAtmsMap/OfficesMap.tsx +7 -7
  53. package/mobile/src/hooks/{usePremiumBranchesByRegions.ts → useBranchesByRegions.ts} +2 -2
  54. package/package.json +1 -1
  55. package/src/components/ApplicationFormCustom/AddressBranchField.tsx +2 -2
  56. package/src/components/ApplicationFormCustom/RegionPremiumField.tsx +2 -2
  57. package/src/components/OfficesAtmsMap/OfficesAtmsMapProps.tsx +7 -7
  58. package/src/components/OfficesAtmsMap/OfficesMap.tsx +7 -7
  59. package/src/hooks/{usePremiumBranchesByRegions.ts → useBranchesByRegions.ts} +2 -2
  60. package/dist/hooks/usePremiumBranchesByRegions.js.map +0 -1
  61. package/lib/hooks/usePremiumBranchesByRegions.js.map +0 -1
  62. package/mobile/dist/hooks/usePremiumBranchesByRegions.d.ts +0 -8
  63. package/mobile/dist/hooks/usePremiumBranchesByRegions.js.map +0 -1
  64. package/mobile/lib/hooks/usePremiumBranchesByRegions.d.ts +0 -8
  65. package/mobile/lib/hooks/usePremiumBranchesByRegions.js.map +0 -1
@@ -1321,8 +1321,8 @@
1321
1321
  return result || EMPTY_VALUE$3;
1322
1322
  };
1323
1323
 
1324
- const REGIONS_URL$1 = '/api/v1/premiumBranchesByRegions';
1325
- function usePremiumBranchesByRegions() {
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
- ? usePremiumBranchesByRegions()?.find((_) => _?.region === regionText)?.branches
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 = usePremiumBranchesByRegions();
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.workSchedule?.premiumService),
5128
- privateBanking: (item) => Boolean(item.workSchedule?.privateBanking),
5129
- sellingCoins: (item) => Boolean(item.workSchedule?.sellingCoins),
5130
- buyingCoins: (item) => Boolean(item.workSchedule?.buyingCoins),
5131
- bullionOperations: (item) => Boolean(item.workSchedule?.bullionOperations),
5132
- preciousMetalsOperations: (item) => Boolean(item.workSchedule?.preciousMetalsOperations),
5133
- transferringDataToBiometricSystem: (item) => Boolean(item.workSchedule?.transferringDataToBiometricSystem),
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.235";
6027
+ const packageVersion = "0.14.237";
6028
6028
 
6029
6029
  exports.Blocks = Blocks;
6030
6030
  exports.ContentPage = ContentPage;