@redneckz/wildless-cms-uni-blocks 0.14.213 → 0.14.214

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 (55) hide show
  1. package/bundle/bundle.umd.js +7 -7
  2. package/bundle/bundle.umd.min.js +1 -1
  3. package/dist/components/ApplicationFormCustom/AddressBranchField.js +2 -2
  4. package/dist/components/ApplicationFormCustom/AddressBranchField.js.map +1 -1
  5. package/dist/components/ApplicationFormCustom/ApplicationFormCustom.js +1 -1
  6. package/dist/components/ApplicationFormCustom/ApplicationFormCustom.js.map +1 -1
  7. package/dist/components/ApplicationFormCustom/RegionField.js +1 -1
  8. package/dist/components/ApplicationFormCustom/RegionField.js.map +1 -1
  9. package/dist/components/ApplicationFormCustom/RegionPremiumField.js +1 -1
  10. package/dist/components/ApplicationFormCustom/RegionPremiumField.js.map +1 -1
  11. package/dist/components/ApplicationFormCustom/getFormatData.js +1 -1
  12. package/dist/components/ApplicationFormCustom/getFormatData.js.map +1 -1
  13. package/lib/components/ApplicationFormCustom/AddressBranchField.js +2 -2
  14. package/lib/components/ApplicationFormCustom/AddressBranchField.js.map +1 -1
  15. package/lib/components/ApplicationFormCustom/ApplicationFormCustom.js +1 -1
  16. package/lib/components/ApplicationFormCustom/ApplicationFormCustom.js.map +1 -1
  17. package/lib/components/ApplicationFormCustom/RegionField.js +1 -1
  18. package/lib/components/ApplicationFormCustom/RegionField.js.map +1 -1
  19. package/lib/components/ApplicationFormCustom/RegionPremiumField.js +1 -1
  20. package/lib/components/ApplicationFormCustom/RegionPremiumField.js.map +1 -1
  21. package/lib/components/ApplicationFormCustom/getFormatData.js +1 -1
  22. package/lib/components/ApplicationFormCustom/getFormatData.js.map +1 -1
  23. package/mobile/bundle/bundle.umd.js +7 -7
  24. package/mobile/bundle/bundle.umd.min.js +1 -1
  25. package/mobile/dist/components/ApplicationFormCustom/AddressBranchField.js +2 -2
  26. package/mobile/dist/components/ApplicationFormCustom/AddressBranchField.js.map +1 -1
  27. package/mobile/dist/components/ApplicationFormCustom/ApplicationFormCustom.js +1 -1
  28. package/mobile/dist/components/ApplicationFormCustom/ApplicationFormCustom.js.map +1 -1
  29. package/mobile/dist/components/ApplicationFormCustom/RegionField.js +1 -1
  30. package/mobile/dist/components/ApplicationFormCustom/RegionField.js.map +1 -1
  31. package/mobile/dist/components/ApplicationFormCustom/RegionPremiumField.js +1 -1
  32. package/mobile/dist/components/ApplicationFormCustom/RegionPremiumField.js.map +1 -1
  33. package/mobile/dist/components/ApplicationFormCustom/getFormatData.js +1 -1
  34. package/mobile/dist/components/ApplicationFormCustom/getFormatData.js.map +1 -1
  35. package/mobile/lib/components/ApplicationFormCustom/AddressBranchField.js +2 -2
  36. package/mobile/lib/components/ApplicationFormCustom/AddressBranchField.js.map +1 -1
  37. package/mobile/lib/components/ApplicationFormCustom/ApplicationFormCustom.js +1 -1
  38. package/mobile/lib/components/ApplicationFormCustom/ApplicationFormCustom.js.map +1 -1
  39. package/mobile/lib/components/ApplicationFormCustom/RegionField.js +1 -1
  40. package/mobile/lib/components/ApplicationFormCustom/RegionField.js.map +1 -1
  41. package/mobile/lib/components/ApplicationFormCustom/RegionPremiumField.js +1 -1
  42. package/mobile/lib/components/ApplicationFormCustom/RegionPremiumField.js.map +1 -1
  43. package/mobile/lib/components/ApplicationFormCustom/getFormatData.js +1 -1
  44. package/mobile/lib/components/ApplicationFormCustom/getFormatData.js.map +1 -1
  45. package/mobile/src/components/ApplicationFormCustom/AddressBranchField.tsx +2 -3
  46. package/mobile/src/components/ApplicationFormCustom/ApplicationFormCustom.tsx +1 -1
  47. package/mobile/src/components/ApplicationFormCustom/RegionField.tsx +1 -1
  48. package/mobile/src/components/ApplicationFormCustom/RegionPremiumField.tsx +1 -1
  49. package/mobile/src/components/ApplicationFormCustom/getFormatData.tsx +1 -1
  50. package/package.json +1 -1
  51. package/src/components/ApplicationFormCustom/AddressBranchField.tsx +2 -3
  52. package/src/components/ApplicationFormCustom/ApplicationFormCustom.tsx +1 -1
  53. package/src/components/ApplicationFormCustom/RegionField.tsx +1 -1
  54. package/src/components/ApplicationFormCustom/RegionPremiumField.tsx +1 -1
  55. package/src/components/ApplicationFormCustom/getFormatData.tsx +1 -1
@@ -1492,12 +1492,12 @@
1492
1492
 
1493
1493
  const RegionField = JSX(({ field, input }) => {
1494
1494
  const regions = useRegions();
1495
- return (jsx(SelectControl, { label: "\u0424\u0438\u043B\u0438\u0430\u043B", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0438\u043B\u0438\u0430\u043B", isSearch: true, options: useMemo(() => regions.map(({ code = '', name = '' }) => ({ key: code, text: name })), [regions]), ...getValidation(field('region'), validatorObj.region, input?.required) }));
1495
+ return (jsx(SelectControl, { label: "\u0424\u0438\u043B\u0438\u0430\u043B", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0438\u043B\u0438\u0430\u043B", isSearch: true, options: useMemo(() => regions?.map(({ code = '', name = '' }) => ({ key: code, text: name })), [regions]), ...getValidation(field('region'), validatorObj.region, input?.required) }));
1496
1496
  });
1497
1497
 
1498
1498
  const RegionPremiumField = JSX(({ field, input }) => {
1499
1499
  const branchByRegions = usePremiumBranchesByRegions();
1500
- const regions = useMemo(() => branchByRegions.map(({ region }) => ({
1500
+ const regions = useMemo(() => branchByRegions?.map(({ region }) => ({
1501
1501
  key: region,
1502
1502
  text: region,
1503
1503
  })), []);
@@ -1549,8 +1549,8 @@
1549
1549
  const AddressBranchField = JSX(({ field, input, isPremium = false }) => {
1550
1550
  const regionKey = field('region')?.value?.text;
1551
1551
  const addressBranch = isPremium
1552
- ? usePremiumBranchesByRegions().find((_) => _?.region === regionKey)?.branches
1553
- : useBranches(regionKey).filter((branch) => branch?.address);
1552
+ ? usePremiumBranchesByRegions()?.find((_) => _?.region === regionKey)?.branches
1553
+ : useBranches(regionKey)?.filter((branch) => branch?.address);
1554
1554
  const { value, onChange } = field?.('addressBranch') || {};
1555
1555
  useEffect(() => {
1556
1556
  if (value?.key !== '') {
@@ -1807,7 +1807,7 @@
1807
1807
  const { acquiringType, onlineCheckout, posTerminal, amount, term, annualRevenue, serviceType, ...usedData } = data;
1808
1808
  const partnerComments = acquiringType || annualRevenue ? getPartnerComments(data) : null;
1809
1809
  const formatData = { ...usedData, ...(partnerComments ? { partnerComments } : {}) };
1810
- return Object.fromEntries(Object.entries(formatData).map(([k, v]) => [
1810
+ return Object.fromEntries(Object.entries(formatData)?.map(([k, v]) => [
1811
1811
  k,
1812
1812
  (k === 'region' ? v?.text : v?.key) || v,
1813
1813
  ]));
@@ -1864,7 +1864,7 @@
1864
1864
  return (jsx(ApplicationFormLayout, { className: style(formStyle, className), title: title, responseType: responseType, children: jsxs("form", { className: "", onSubmit: onSubmit, children: [sections.map((_, i) => (jsxs("div", { className: style(inputColumnStyles(_.columns), 'grid gap-x-m'), children: [_?.title ? jsx("div", { className: "@xl:text-center @xl:col-span-2", children: _.title }) : null, _?.inputs?.map(getField(field, typeForm))] }, `section-${i}`))), renderAgreementSubmit(fieldName ? field('consentDataProcessing') : undefined, link, button)] }) }));
1865
1865
  });
1866
1866
  const inputColumnStyles = (column) => column === 2 ? '@xl:grid-cols-2' : '';
1867
- const getConsentDataProcessing = (inputs) => inputs.find((_) => _?.name === 'consentDataProcessing');
1867
+ const getConsentDataProcessing = (inputs) => inputs?.find((_) => _?.name === 'consentDataProcessing');
1868
1868
 
1869
1869
  /** @deprecated */
1870
1870
  const AlignStyles = 'text-center';
@@ -5954,7 +5954,7 @@
5954
5954
  slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
5955
5955
  });
5956
5956
 
5957
- const packageVersion = "0.14.212";
5957
+ const packageVersion = "0.14.213";
5958
5958
 
5959
5959
  exports.Blocks = Blocks;
5960
5960
  exports.ContentPage = ContentPage;