@redneckz/wildless-cms-uni-blocks 0.14.832 → 0.14.834

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 (225) hide show
  1. package/bin/migration-scripts/{0.14.828.js → 0.14.832.js} +3 -1
  2. package/bundle/blocks.schema.json +1 -1
  3. package/bundle/bundle.umd.js +29 -80
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/bundle/components/ApplicationLeadForm/ApplicationLeadForm.d.ts +0 -5
  6. package/bundle/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +5 -0
  7. package/bundle/components/ApplicationLeadForm/useInitApplicationLead.d.ts +1 -2
  8. package/dist/components/ApplicationLeadForm/ApplicationLeadForm.d.ts +0 -5
  9. package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +5 -10
  10. package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
  11. package/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +5 -0
  12. package/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.js +7 -0
  13. package/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.js.map +1 -1
  14. package/dist/components/ApplicationLeadForm/useInitApplicationLead.d.ts +1 -2
  15. package/dist/components/ApplicationLeadForm/useInitApplicationLead.js +4 -4
  16. package/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
  17. package/dist/components/Blocks.js +0 -6
  18. package/dist/components/Blocks.js.map +1 -1
  19. package/dist/components/Blocks.mobile.js +0 -4
  20. package/dist/components/Blocks.mobile.js.map +1 -1
  21. package/dist/components/ProductBlock/ProductBlock.js +1 -1
  22. package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
  23. package/dist/retail/content.js +10 -0
  24. package/dist/retail/content.js.map +1 -1
  25. package/dist/retail/utils/calculateInputs.js +2 -0
  26. package/dist/retail/utils/calculateInputs.js.map +1 -1
  27. package/lib/common.css +1 -1
  28. package/lib/components/ApplicationLeadForm/ApplicationLeadForm.d.ts +0 -5
  29. package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +1 -6
  30. package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
  31. package/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +5 -0
  32. package/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.js +6 -1
  33. package/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.js.map +1 -1
  34. package/lib/components/ApplicationLeadForm/useInitApplicationLead.d.ts +1 -2
  35. package/lib/components/ApplicationLeadForm/useInitApplicationLead.js +1 -1
  36. package/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
  37. package/lib/components/Blocks.js +0 -6
  38. package/lib/components/Blocks.js.map +1 -1
  39. package/lib/components/Blocks.mobile.js +0 -4
  40. package/lib/components/Blocks.mobile.js.map +1 -1
  41. package/lib/components/ProductBlock/ProductBlock.fixture.d.ts +0 -2
  42. package/lib/components/ProductBlock/ProductBlock.js +1 -1
  43. package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
  44. package/lib/retail/content.js +10 -0
  45. package/lib/retail/content.js.map +1 -1
  46. package/lib/retail/utils/calculateInputs.js +2 -0
  47. package/lib/retail/utils/calculateInputs.js.map +1 -1
  48. package/mobile/bundle/bundle.umd.js +29 -40
  49. package/mobile/bundle/bundle.umd.min.js +1 -1
  50. package/mobile/bundle/components/ApplicationLeadForm/ApplicationLeadForm.d.ts +0 -5
  51. package/mobile/bundle/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +5 -0
  52. package/mobile/bundle/components/ApplicationLeadForm/useInitApplicationLead.d.ts +1 -2
  53. package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.d.ts +0 -5
  54. package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +5 -10
  55. package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
  56. package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +5 -0
  57. package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.js +7 -0
  58. package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.js.map +1 -1
  59. package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.d.ts +1 -2
  60. package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js +4 -4
  61. package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
  62. package/mobile/dist/components/Blocks.js +0 -4
  63. package/mobile/dist/components/Blocks.js.map +1 -1
  64. package/mobile/dist/components/ProductBlock/ProductBlock.js +1 -1
  65. package/mobile/dist/components/ProductBlock/ProductBlock.js.map +1 -1
  66. package/mobile/dist/retail/content.js +10 -0
  67. package/mobile/dist/retail/content.js.map +1 -1
  68. package/mobile/dist/retail/utils/calculateInputs.js +2 -0
  69. package/mobile/dist/retail/utils/calculateInputs.js.map +1 -1
  70. package/mobile/lib/common.css +1 -1
  71. package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.d.ts +0 -5
  72. package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +1 -6
  73. package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
  74. package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +5 -0
  75. package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.js +6 -1
  76. package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.js.map +1 -1
  77. package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.d.ts +1 -2
  78. package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js +1 -1
  79. package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
  80. package/mobile/lib/components/Blocks.js +0 -4
  81. package/mobile/lib/components/Blocks.js.map +1 -1
  82. package/mobile/lib/components/ProductBlock/ProductBlock.js +1 -1
  83. package/mobile/lib/components/ProductBlock/ProductBlock.js.map +1 -1
  84. package/mobile/lib/retail/content.js +10 -0
  85. package/mobile/lib/retail/content.js.map +1 -1
  86. package/mobile/lib/retail/utils/calculateInputs.js +2 -0
  87. package/mobile/lib/retail/utils/calculateInputs.js.map +1 -1
  88. package/mobile/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +5 -7
  89. package/mobile/src/components/ApplicationLeadForm/ApplicationLeadFormContent.ts +6 -0
  90. package/mobile/src/components/ApplicationLeadForm/useInitApplicationLead.ts +1 -2
  91. package/mobile/src/components/Blocks.ts +0 -4
  92. package/mobile/src/components/ProductBlock/ProductBlock.example.json +1 -11
  93. package/mobile/src/components/ProductBlock/ProductBlock.tsx +0 -1
  94. package/mobile/src/retail/content.tsx +10 -0
  95. package/mobile/src/retail/utils/calculateInputs.ts +4 -0
  96. package/package.json +1 -1
  97. package/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +5 -7
  98. package/src/components/ApplicationLeadForm/ApplicationLeadFormContent.ts +6 -0
  99. package/src/components/ApplicationLeadForm/useInitApplicationLead.ts +1 -2
  100. package/src/components/Blocks.mobile.ts +0 -4
  101. package/src/components/Blocks.ts +0 -6
  102. package/src/components/ProductBlock/ProductBlock.example.json +1 -11
  103. package/src/components/ProductBlock/ProductBlock.fixture.tsx +0 -28
  104. package/src/components/ProductBlock/ProductBlock.tsx +0 -1
  105. package/src/icons/IconName.ts +4 -4
  106. package/src/retail/content.tsx +10 -0
  107. package/src/retail/utils/calculateInputs.ts +4 -0
  108. package/bundle/components/InvestmentInfo/InvestmentInfo.d.ts +0 -5
  109. package/bundle/components/InvestmentInfo/InvestmentInfoContent.d.ts +0 -43
  110. package/bundle/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +0 -5
  111. package/bundle/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +0 -18
  112. package/bundle/components/UnitBlock/UnitBlock.d.ts +0 -6
  113. package/bundle/components/UnitBlock/UnitBlockContent.d.ts +0 -6
  114. package/dist/components/InvestmentInfo/InvestmentInfo.d.ts +0 -5
  115. package/dist/components/InvestmentInfo/InvestmentInfo.js +0 -47
  116. package/dist/components/InvestmentInfo/InvestmentInfo.js.map +0 -1
  117. package/dist/components/InvestmentInfo/InvestmentInfoContent.d.ts +0 -43
  118. package/dist/components/InvestmentInfo/InvestmentInfoContent.js +0 -2
  119. package/dist/components/InvestmentInfo/InvestmentInfoContent.js.map +0 -1
  120. package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +0 -5
  121. package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +0 -26
  122. package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +0 -1
  123. package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +0 -18
  124. package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js +0 -2
  125. package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js.map +0 -1
  126. package/dist/components/UnitBlock/UnitBlock.d.ts +0 -6
  127. package/dist/components/UnitBlock/UnitBlock.js +0 -11
  128. package/dist/components/UnitBlock/UnitBlock.js.map +0 -1
  129. package/dist/components/UnitBlock/UnitBlockContent.d.ts +0 -6
  130. package/dist/components/UnitBlock/UnitBlockContent.js +0 -2
  131. package/dist/components/UnitBlock/UnitBlockContent.js.map +0 -1
  132. package/lib/components/InvestmentInfo/InvestmentInfo.d.ts +0 -5
  133. package/lib/components/InvestmentInfo/InvestmentInfo.fixture.d.ts +0 -7
  134. package/lib/components/InvestmentInfo/InvestmentInfo.js +0 -45
  135. package/lib/components/InvestmentInfo/InvestmentInfo.js.map +0 -1
  136. package/lib/components/InvestmentInfo/InvestmentInfoContent.d.ts +0 -43
  137. package/lib/components/InvestmentInfo/InvestmentInfoContent.js +0 -2
  138. package/lib/components/InvestmentInfo/InvestmentInfoContent.js.map +0 -1
  139. package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +0 -5
  140. package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.fixture.d.ts +0 -5
  141. package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.fixture.mobile.d.ts +0 -5
  142. package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +0 -24
  143. package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +0 -1
  144. package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +0 -18
  145. package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js +0 -2
  146. package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js.map +0 -1
  147. package/lib/components/UnitBlock/UnitBlock.d.ts +0 -6
  148. package/lib/components/UnitBlock/UnitBlock.fixture.d.ts +0 -6
  149. package/lib/components/UnitBlock/UnitBlock.fixture.mobile.d.ts +0 -6
  150. package/lib/components/UnitBlock/UnitBlock.js +0 -9
  151. package/lib/components/UnitBlock/UnitBlock.js.map +0 -1
  152. package/lib/components/UnitBlock/UnitBlockContent.d.ts +0 -6
  153. package/lib/components/UnitBlock/UnitBlockContent.js +0 -2
  154. package/lib/components/UnitBlock/UnitBlockContent.js.map +0 -1
  155. package/mobile/bundle/components/InvestmentInfo/InvestmentInfo.d.ts +0 -5
  156. package/mobile/bundle/components/InvestmentInfo/InvestmentInfoContent.d.ts +0 -43
  157. package/mobile/bundle/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +0 -5
  158. package/mobile/bundle/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +0 -18
  159. package/mobile/bundle/components/UnitBlock/UnitBlock.d.ts +0 -6
  160. package/mobile/bundle/components/UnitBlock/UnitBlockContent.d.ts +0 -6
  161. package/mobile/dist/components/InvestmentInfo/InvestmentInfo.d.ts +0 -5
  162. package/mobile/dist/components/InvestmentInfo/InvestmentInfo.js +0 -47
  163. package/mobile/dist/components/InvestmentInfo/InvestmentInfo.js.map +0 -1
  164. package/mobile/dist/components/InvestmentInfo/InvestmentInfoContent.d.ts +0 -43
  165. package/mobile/dist/components/InvestmentInfo/InvestmentInfoContent.js +0 -2
  166. package/mobile/dist/components/InvestmentInfo/InvestmentInfoContent.js.map +0 -1
  167. package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +0 -5
  168. package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +0 -26
  169. package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +0 -1
  170. package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +0 -18
  171. package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js +0 -2
  172. package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js.map +0 -1
  173. package/mobile/dist/components/UnitBlock/UnitBlock.d.ts +0 -6
  174. package/mobile/dist/components/UnitBlock/UnitBlock.js +0 -11
  175. package/mobile/dist/components/UnitBlock/UnitBlock.js.map +0 -1
  176. package/mobile/dist/components/UnitBlock/UnitBlockContent.d.ts +0 -6
  177. package/mobile/dist/components/UnitBlock/UnitBlockContent.js +0 -2
  178. package/mobile/dist/components/UnitBlock/UnitBlockContent.js.map +0 -1
  179. package/mobile/lib/components/InvestmentInfo/InvestmentInfo.d.ts +0 -5
  180. package/mobile/lib/components/InvestmentInfo/InvestmentInfo.js +0 -45
  181. package/mobile/lib/components/InvestmentInfo/InvestmentInfo.js.map +0 -1
  182. package/mobile/lib/components/InvestmentInfo/InvestmentInfoContent.d.ts +0 -43
  183. package/mobile/lib/components/InvestmentInfo/InvestmentInfoContent.js +0 -2
  184. package/mobile/lib/components/InvestmentInfo/InvestmentInfoContent.js.map +0 -1
  185. package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +0 -5
  186. package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +0 -24
  187. package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +0 -1
  188. package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +0 -18
  189. package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js +0 -2
  190. package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js.map +0 -1
  191. package/mobile/lib/components/UnitBlock/UnitBlock.d.ts +0 -6
  192. package/mobile/lib/components/UnitBlock/UnitBlock.js +0 -9
  193. package/mobile/lib/components/UnitBlock/UnitBlock.js.map +0 -1
  194. package/mobile/lib/components/UnitBlock/UnitBlockContent.d.ts +0 -6
  195. package/mobile/lib/components/UnitBlock/UnitBlockContent.js +0 -2
  196. package/mobile/lib/components/UnitBlock/UnitBlockContent.js.map +0 -1
  197. package/mobile/src/components/InvestmentInfo/InvestmentInfo.example.json +0 -53
  198. package/mobile/src/components/InvestmentInfo/InvestmentInfo.tsx +0 -131
  199. package/mobile/src/components/InvestmentInfo/InvestmentInfo.ui.json +0 -13
  200. package/mobile/src/components/InvestmentInfo/InvestmentInfoContent.ts +0 -51
  201. package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.example.json +0 -14
  202. package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +0 -94
  203. package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.ui.json +0 -24
  204. package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.ts +0 -22
  205. package/mobile/src/components/UnitBlock/UnitBlock.example.json +0 -9
  206. package/mobile/src/components/UnitBlock/UnitBlock.tsx +0 -17
  207. package/mobile/src/components/UnitBlock/UnitBlock.ui.json +0 -1
  208. package/mobile/src/components/UnitBlock/UnitBlockContent.ts +0 -7
  209. package/src/components/InvestmentInfo/InvestmentInfo.example.json +0 -53
  210. package/src/components/InvestmentInfo/InvestmentInfo.fixture.tsx +0 -109
  211. package/src/components/InvestmentInfo/InvestmentInfo.tsx +0 -131
  212. package/src/components/InvestmentInfo/InvestmentInfo.ui.json +0 -13
  213. package/src/components/InvestmentInfo/InvestmentInfoContent.ts +0 -51
  214. package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.example.json +0 -14
  215. package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.fixture.mobile.tsx +0 -47
  216. package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.fixture.tsx +0 -47
  217. package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +0 -94
  218. package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.ui.json +0 -24
  219. package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.ts +0 -22
  220. package/src/components/UnitBlock/UnitBlock.example.json +0 -9
  221. package/src/components/UnitBlock/UnitBlock.fixture.mobile.tsx +0 -27
  222. package/src/components/UnitBlock/UnitBlock.fixture.tsx +0 -27
  223. package/src/components/UnitBlock/UnitBlock.tsx +0 -17
  224. package/src/components/UnitBlock/UnitBlock.ui.json +0 -1
  225. package/src/components/UnitBlock/UnitBlockContent.ts +0 -7
@@ -146,7 +146,7 @@
146
146
 
147
147
  const DEFAULT_ANCESTORS = [];
148
148
  const defaultStyle$2 = 'col-span-12';
149
- function renderBlock$1(block, options, { className, ...extraProps } = {}) {
149
+ function renderBlock(block, options, { className, ...extraProps } = {}) {
150
150
  const { key, blockDecorator = defaultBlockDecorator, blocksRegistry = {}, ancestors = DEFAULT_ANCESTORS, } = options;
151
151
  const { type } = block;
152
152
  if (!(type && type in blocksRegistry)) {
@@ -166,9 +166,9 @@
166
166
  }
167
167
 
168
168
  const EMPTY_ANCESTORS = [];
169
- const renderBlocksList = (blocks, { key, ancestors = EMPTY_ANCESTORS, slotName = DEFAULT_SLOT_NAME, extraProps, renderProps = renderBlock$1, ...options }) => {
169
+ const renderBlocksList = (blocks, { key, ancestors = EMPTY_ANCESTORS, slotName = DEFAULT_SLOT_NAME, extraProps, renderProps = renderBlock, ...options }) => {
170
170
  const renderChildBlock = extraProps
171
- ? (childBlock, childOptions) => renderBlock$1(childBlock, childOptions, extraProps)
171
+ ? (childBlock, childOptions) => renderBlock(childBlock, childOptions, extraProps)
172
172
  : renderProps;
173
173
  return (blocks || []).map((_, i) => renderChildBlock(_, {
174
174
  ...options,
@@ -973,7 +973,7 @@
973
973
  return OutputComponent;
974
974
  }
975
975
 
976
- const ProductBlock = UniBlock(({ className, padding, defaultPadding, ...rest }) => (jsx(BlockWrapper, { className: style('overflow-hidden flex flex-col gap-3xl box-border', className), padding: "p-0", ...rest, children: jsx(BaseProductTile, { defaultPadding: defaultPadding || 'p-6xl', padding: padding, className: "grow h-full", ...rest }) })), { childrenTypes: ['UnitBlock'] });
976
+ const ProductBlock = UniBlock(({ className, padding, defaultPadding, ...rest }) => (jsx(BlockWrapper, { className: style('overflow-hidden flex flex-col gap-3xl box-border', className), padding: "p-0", ...rest, children: jsx(BaseProductTile, { defaultPadding: defaultPadding || 'p-6xl', padding: padding, className: "grow h-full", ...rest }) })));
977
977
 
978
978
  const AdTile = JSX((props) => {
979
979
  const { items } = (props.options?.page?.adSourceBook ?? {});
@@ -2680,6 +2680,13 @@
2680
2680
  ];
2681
2681
  };
2682
2682
 
2683
+ var EsiaStatuses;
2684
+ (function (EsiaStatuses) {
2685
+ EsiaStatuses["Success"] = "SUCCESS";
2686
+ EsiaStatuses["Error"] = "ERROR";
2687
+ EsiaStatuses["Pending"] = "PENDING";
2688
+ })(EsiaStatuses || (EsiaStatuses = {}));
2689
+
2683
2690
  const getTraceId = () => {
2684
2691
  const result = new Uint8Array(8);
2685
2692
  globalThis.crypto.getRandomValues(result);
@@ -6159,12 +6166,6 @@
6159
6166
  return initialFormState;
6160
6167
  };
6161
6168
 
6162
- var EsiaStatuses;
6163
- (function (EsiaStatuses) {
6164
- EsiaStatuses["Success"] = "SUCCESS";
6165
- EsiaStatuses["Error"] = "ERROR";
6166
- EsiaStatuses["Pending"] = "PENDING";
6167
- })(EsiaStatuses || (EsiaStatuses = {}));
6168
6169
  const ApplicationLeadForm = JSX(({ className, title, programId = '', nextStepLink = '/credit-lead', button, productType = 'credit', data, ...rest }) => {
6169
6170
  const [esiaStatus, setEsiaStatus] = useState();
6170
6171
  const leadForm = useRef(null);
@@ -6484,7 +6485,7 @@
6484
6485
  const renderCarouselBlocks = ({ blocksToRender, ...rest }) => (jsx(SwipeListControl, { visibleItemCount: 0, gap: 0, arrowsPadded: true, children: renderBlocksList(blocksToRender, {
6485
6486
  ...rest.options,
6486
6487
  parent: rest.block,
6487
- renderProps: (block, options, i) => (jsx("div", { className: style('relative min-w-80', getBorderStyle(true)), children: renderBlock$1(block, options) }, String(i))),
6488
+ renderProps: (block, options, i) => (jsx("div", { className: style('relative min-w-80', getBorderStyle(true)), children: renderBlock(block, options) }, String(i))),
6488
6489
  }) }));
6489
6490
 
6490
6491
  const FilteredBlocks = JSX(({ blocksSection, blocksToRender = [], notFound, ...rest }) => {
@@ -7410,7 +7411,7 @@
7410
7411
  const defaultPadding = isNavButtons ? { defaultPadding: 'p-6xl pb-m' } : {};
7411
7412
  return renderChildren({
7412
7413
  ...rest,
7413
- renderProps: (block, options, blockIndex) => (jsxs("div", { className: cardWrapperStyle(block, { someCardsHighlighted }), children: [renderBlock$1(block, options, {
7414
+ renderProps: (block, options, blockIndex) => (jsxs("div", { className: cardWrapperStyle(block, { someCardsHighlighted }), children: [renderBlock(block, options, {
7414
7415
  className: cardStyle(block, {
7415
7416
  someCardsHighlighted,
7416
7417
  showBorder: !noCardBorder,
@@ -7808,6 +7809,7 @@
7808
7809
  .map((_) => {
7809
7810
  if ([
7810
7811
  checkIsRetiree(step, getValue),
7812
+ checkIsUnemployedRetiree(_, getValue),
7811
7813
  checkBusinessOwner(_, getValue),
7812
7814
  checkConsentPfrFlg(_, getValue),
7813
7815
  checkAddressFillFromESIA(_, getValue),
@@ -7819,6 +7821,7 @@
7819
7821
  return _;
7820
7822
  });
7821
7823
  const checkIsRetiree = (step, getValue) => step === 2 && getValue('employment')?.key === 'RETIREE';
7824
+ const checkIsUnemployedRetiree = ({ name }, getValue) => name === 'wages' && getValue('employment')?.key === 'RETIREE' && !getValue('inn');
7822
7825
  const checkBusinessOwner = ({ name }, getValue) => name === 'partInBusiness' && getValue('positionOrganization')?.key !== 'BUSINESS_OWNER';
7823
7826
  const checkAddressFillFromESIA = ({ name, filledByEsia }, getValue) => name?.startsWith('address') && getValue('esiaAccountTypeCd')?.key && filledByEsia;
7824
7827
  const checkAddressFact = ({ name }, getValue) => name === 'addressFact' && getValue('addressMatch');
@@ -8387,6 +8390,16 @@
8387
8390
  columns: 1,
8388
8391
  inputs: [{ name: 'wages', required: true, filledByEsia: true }],
8389
8392
  },
8393
+ {
8394
+ columns: 1,
8395
+ inputs: [
8396
+ {
8397
+ name: 'retirementIncome',
8398
+ required: true,
8399
+ condition: { name: 'employment', values: ['RETIREE'] },
8400
+ },
8401
+ ],
8402
+ },
8390
8403
  {
8391
8404
  columns: 1,
8392
8405
  inputs: [{ name: 'mandatoryPayments', required: true }],
@@ -10063,7 +10076,7 @@
10063
10076
  childSchema: () => LINK_SCHEMA,
10064
10077
  allowRemoveChild: (slot) => (slot?.blocks ?? []).length > MIN_LENGTH_CHILD,
10065
10078
  });
10066
- const getRenderProps = ({ isInnerPadding, isCardBorder, }) => (childBlock, childOptions, i) => renderBlock$1(childBlock, {
10079
+ const getRenderProps = ({ isInnerPadding, isCardBorder, }) => (childBlock, childOptions, i) => renderBlock(childBlock, {
10067
10080
  ...childOptions,
10068
10081
  blockDecorator: blockDecoratorWrapper(childOptions.blockDecorator, i),
10069
10082
  }, {
@@ -10536,45 +10549,6 @@
10536
10549
  return (jsx("button", { type: "button", onClick: onClick, "aria-label": `Кнопка ${title}`, className: `box-border px-m py-s text-m font-light ${btnClassName}`, children: title }, String(i)));
10537
10550
  }
10538
10551
 
10539
- const investmentCellColorMap = {
10540
- yellow: 'bg-yellow',
10541
- green: 'bg-green',
10542
- 'green-light': 'bg-green-light',
10543
- 'green-dark': 'bg-green-dark',
10544
- };
10545
- const investmentCellSizeMap = {
10546
- XS: 'h-10',
10547
- S: 'h-16',
10548
- M: 'h-24',
10549
- L: 'h-32',
10550
- XL: 'h-52',
10551
- };
10552
- const InvestmentInfo = JSX((props) => {
10553
- const { className = '', __html, isDotted, investmentZeroColumn, investmentColumns, ...rest } = props;
10554
- const columns = investmentColumns ? [...investmentColumns] : [];
10555
- if (investmentZeroColumn) {
10556
- columns.unshift(investmentZeroColumn);
10557
- }
10558
- return (jsx(BlockWrapper, { className: className, defaultPadding: "p-4xl", ...rest, children: jsxs("div", { className: "container text-m font-light space-y-4xl", children: [columns?.length ? (jsxs("div", { children: [jsxs("div", { className: "flex items-end relative pl-3xl pr-lg text-white", children: [joinList(jsx("div", { className: "w-px h-4 bg-gray" }))(columns.map(renderInvestmentColumn)), jsx("div", { className: "absolute right-3xl w-px h-4 bg-gray" })] }), jsx("div", { className: "border-t border-gray -mt-xs mx-3xl" }), jsx("div", { className: "flex justify-between text-primary-text mt-s -mx-5xl", children: columns.map(renderInvestmentColumnTitle) })] })) : null, __html ? (jsx("div", { className: "max-w-2xl font-light text-base", children: jsx(RichText, { __html: __html, isDotted: isDotted, itemSize: "list-s" }) })) : null] }) }));
10559
- });
10560
- const renderInvestmentColumn = (column, i, arr) => {
10561
- const isSecondColumn = i === 1;
10562
- const isLastColumn = i === arr.length - 1;
10563
- const reversedCells = column.cells?.reverse() || [];
10564
- return (jsx("div", { className: `${getColumnClasses(isSecondColumn, isLastColumn, column.cells)}`, children: reversedCells.length ? (jsx("div", { className: `w-full ${isLastColumn ? 'border-4 border-green-more-dark p-1.5 min-w-72' : ''}`, children: reversedCells.map(renderInvestmentCell) })) : null }, `column_${i}`));
10565
- };
10566
- const getColumnClasses = (isSecondColumn, isLastColumn, cells = []) => [
10567
- cells.length ? 'flex-1' : 'flex-0',
10568
- cells.length && !isSecondColumn && !isLastColumn ? 'pl-s' : '',
10569
- cells.length && !isLastColumn ? 'pr-s pb-3xl' : 'pb-xl',
10570
- ].join(' ');
10571
- const renderInvestmentCell = (cell, i) => {
10572
- const cellSize = cell.cellSize || 'XS';
10573
- const cellColor = cell.cellColor || 'green';
10574
- return cell.text ? (jsx("div", { className: `flex-1 flex items-center justify-center relative py-xs ${investmentCellSizeMap[cellSize]} ${investmentCellColorMap[cellColor]} ${cellSize === 'XS' ? 'px-s' : 'px-5xl'}`, children: jsx(Text, { align: "text-center", children: cell.text }) }, `cell_${i}`)) : null;
10575
- };
10576
- const renderInvestmentColumnTitle = (column, i) => column?.title ? (jsx("div", { className: "flex-1 max-w-44 text-center px-xs last:pr-4xl last:max-w-52", children: column.title }, `title_${i}`)) : null;
10577
-
10578
10552
  const KILO = 1024;
10579
10553
  const KILO_SIZES = ['байт', 'Кб', 'Мб', 'Гб', 'Тб', 'Пб'];
10580
10554
  const formatBytes = (bytes, decimals = 2) => {
@@ -10683,7 +10657,7 @@
10683
10657
  return (jsxs("div", { className: "flex gap-lg flex-col sm:flex-row pb-lg", children: [jsx(Button, { "data-id": "all", onClick: (e) => handleClick(e, 'all', data), version: allButtonVersion, children: "\u0414\u043B\u044F \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043A\u0438\u0445 \u043B\u0438\u0446" }), jsx(Button, { "data-id": "business", onClick: (e) => handleClick(e, 'business', data), version: businessButtonVersion, children: "\u0414\u043B\u044F \u044E\u0440\u0438\u0434\u0438\u0447\u0435\u0441\u043A\u0438\u0445 \u043B\u0438\u0446" })] }));
10684
10658
  };
10685
10659
 
10686
- const renderDescriptionBlock$1 = ({ __html, list, richVersion }) => __html || list?.length ? (jsxs("div", { className: "mb-2xl border-b sm:border border-main-divider sm:rounded-md", children: [__html ? (jsx("div", { className: "mb-2xl", children: jsx(RichText, { __html: __html, richVersion: richVersion }) })) : null, list?.length ? (jsx("div", { className: "flex flex-col sm:flex-row gap-2xl sm:flex-wrap pb-2xl sm:pb-xl", children: list.map((item, i) => (jsxs("div", { className: "flex gap-xs items-center", children: [item?.image ? jsx(Img, { image: item.image }) : null, item?.text ? (jsx(Text, { size: "text-m", font: "font-light", children: item.text })) : null] }, String(i)))) })) : null] })) : null;
10660
+ const renderDescriptionBlock = ({ __html, list, richVersion }) => __html || list?.length ? (jsxs("div", { className: "mb-2xl border-b sm:border border-main-divider sm:rounded-md", children: [__html ? (jsx("div", { className: "mb-2xl", children: jsx(RichText, { __html: __html, richVersion: richVersion }) })) : null, list?.length ? (jsx("div", { className: "flex flex-col sm:flex-row gap-2xl sm:flex-wrap pb-2xl sm:pb-xl", children: list.map((item, i) => (jsxs("div", { className: "flex gap-xs items-center", children: [item?.image ? jsx(Img, { image: item.image }) : null, item?.text ? (jsx(Text, { size: "text-m", font: "font-light", children: item.text })) : null] }, String(i)))) })) : null] })) : null;
10687
10661
 
10688
10662
  const renderHeading = (title, lengthItems) => (jsx("div", { className: "flex flex-col sm:flex-row gap-xs mb-2xl", children: jsxs(Heading, { headingType: "h3", children: [jsx("span", { suppressHydrationWarning: true, children: title }), lengthItems ? (jsx(Text, { size: "text-h2", color: "text-secondary-text", children: jsx("span", { suppressHydrationWarning: true, children: ` (${lengthItems})` }) })) : null] }) }));
10689
10663
 
@@ -10700,7 +10674,7 @@
10700
10674
  getBalloonRemoteWorkplaces,
10701
10675
  });
10702
10676
  const [activeButton, setActiveButton] = useState('all');
10703
- return (jsxs("div", { className: style('space-y-1', className), children: [jsxs("div", { className: "bg-white", children: [jsxs("div", { className: "p-3xl pb-0", children: [renderHeading(title, lengthItems), descriptionData ? renderDescriptionBlock$1(descriptionData) : null, onlyOffice && renderButtonsGroup(data, activeButton, setActiveButton), jsx("div", { className: style('pb-3xl', filtersVisibleStyles(activeButton)), children: jsx(FiltrationForm, { filters: getFiltersWithNonEmptyData([...data, ...remoteWorkplaces]), field: { field, reset }, onlyOffice: onlyOffice, labels: FILTRATION_LABELS }) })] }), jsx("div", { className: "h-[600px]", children: jsx(ClientOnly, { children: jsx(YandexMap, { points: points, isLoad: isLoad, className: "h-full" }) }) })] }), jsxs(ClientOnly, { children: [filteredItems.map(renderCard), filteredRemoteWorkplaces.map(renderRemoteWorkplaceCard)] })] }));
10677
+ return (jsxs("div", { className: style('space-y-1', className), children: [jsxs("div", { className: "bg-white", children: [jsxs("div", { className: "p-3xl pb-0", children: [renderHeading(title, lengthItems), descriptionData ? renderDescriptionBlock(descriptionData) : null, onlyOffice && renderButtonsGroup(data, activeButton, setActiveButton), jsx("div", { className: style('pb-3xl', filtersVisibleStyles(activeButton)), children: jsx(FiltrationForm, { filters: getFiltersWithNonEmptyData([...data, ...remoteWorkplaces]), field: { field, reset }, onlyOffice: onlyOffice, labels: FILTRATION_LABELS }) })] }), jsx("div", { className: "h-[600px]", children: jsx(ClientOnly, { children: jsx(YandexMap, { points: points, isLoad: isLoad, className: "h-full" }) }) })] }), jsxs(ClientOnly, { children: [filteredItems.map(renderCard), filteredRemoteWorkplaces.map(renderRemoteWorkplaceCard)] })] }));
10704
10678
  });
10705
10679
  const getFiltersWithNonEmptyData = (data) => Object.keys(INITIAL_FILTRATION_STATE$1).filter((_) => data.filter((item) => FILTRATION_PREDICATES$1[_](item)).length);
10706
10680
 
@@ -10817,19 +10791,6 @@
10817
10791
  return (jsx(BlockWrapper, { version: "transparent", className: style(className), defaultPadding: "p-0", ...rest, children: dataType === 'offices' ? jsx(OfficesMap, {}) : jsx(AtmsMap, { descriptionData: data }) }));
10818
10792
  });
10819
10793
 
10820
- const RepresentativeOfficeInfo = JSX(({ address, email, telephone, button, className = '', __html, richVersion, icon, title, version = 'primary', ...rest }) => (jsxs(BlockWrapper, { className: style('box-border text-left space-y-s', className), version: version, ...rest, children: [jsxs("div", { className: "w-full flex justify-between flex-row-reverse", children: [isIcon(icon) ? (jsx("div", { className: 'w-10 h-7 sm:w-24 sm:h-16', children: jsx(Img, { image: icon }) })) : null, title ? jsx(Heading, { headingType: "h3", as: "h3", title: title }) : null] }), jsxs("div", { className: "w-full space-y-m", children: [__html ? renderDescriptionBlock({ __html, richVersion }) : null, renderBlock({
10821
- label: 'Адрес',
10822
- data: address,
10823
- iconName: 'GeolocationIcon',
10824
- }), renderBlock({ label: 'Телефон(факс)', data: telephone, iconName: 'PhoneIcon' }), renderBlock({
10825
- label: 'E-mail',
10826
- data: email,
10827
- iconName: 'MailIcon',
10828
- dataColor: 'text-primary-main',
10829
- }), button?.text ? renderButtonsSection([button]) : null] })] })));
10830
- const renderDescriptionBlock = (props) => (jsx("div", { className: "border-b border-main-divider pb-lg", children: jsx(RichText, { ...props, itemSize: "list-s" }) }));
10831
- const renderBlock = ({ label, data, iconName, dataColor = '' }) => data ? (jsxs("div", { className: "flex gap-s", children: [jsx(Icon, { iconVersion: "black", name: iconName, width: "24", height: "24" }), jsxs("div", { className: "flex flex-col gap-2xs", children: [jsx(Text, { size: "text-m", font: "font-light", color: "text-secondary-text", children: label }), jsx(Text, { size: "text-xl", color: dataColor, children: data })] })] })) : null;
10832
-
10833
10794
  const RichTextBlock = JSX((props) => {
10834
10795
  const { __html, richVersion = '', ...rest } = props;
10835
10796
  return (jsx(BlockWrapper, { defaultPadding: "p-0", ...rest, children: jsx(RichText, { __html: __html, richVersion: richVersion }) }));
@@ -11258,15 +11219,6 @@
11258
11219
  const renderIcon = () => (jsx("div", { className: "rounded-full h-4 w-4 text-center text-xs font-light bg-primary-main text-white group-data-secondary:bg-white group-data-secondary:text-primary-main", children: "i" }));
11259
11220
  const renderDescription = (description) => (jsx(Paragraph, { size: "text-s", font: "font-light", color: "text-secondary-text group-data-secondary:text-white", children: description }));
11260
11221
 
11261
- const Unit = JSX(({ prefix, unit, suffix }) => (jsxs("div", { className: "w-full flex items-end", children: [prefix ? (jsx("div", { className: "gradient-color-text", children: jsx(Text, { size: "text-h2", children: prefix }) })) : null, unit ? (
11262
- // -mb-n добавлен для выравнивания unit относительно prefix и suffix, тк шрифт font-mohave неправильно высчитывает line-height
11263
- jsx("div", { className: "-mb-6 @xl:-mb-4", children: jsx("span", { className: "font-mohave text-title-large sm:text-title-extra gradient-color-text", children: unit }) })) : null, suffix ? (jsx("div", { className: "gradient-color-text", children: jsx(Text, { size: "text-h2", children: suffix }) })) : null] })));
11264
-
11265
- const UnitBlock = JSX((props) => {
11266
- const { prefix, unit, suffix, ...rest } = props;
11267
- return (jsx(BlockWrapper, { defaultPadding: "p-0", ...rest, children: jsx(Unit, { prefix: prefix, unit: unit, suffix: suffix }) }));
11268
- });
11269
-
11270
11222
  const VerticalLayout = UniBlock(({ className = '', padding = 'p-0', gap = '', isInnerPadding = true, version = 'transparent', isTheme = false, isCardBorder = false, image, ...rest }) => {
11271
11223
  const router = useRouter();
11272
11224
  return (jsx(BlockWrapper, { className: style('relative flex flex-col', gapStyles[gap], image?.src ? 'bg-right-bottom bg-no-repeat' : '', className), ...(image?.src
@@ -11326,12 +11278,10 @@
11326
11278
  HorizontalLayout,
11327
11279
  ImgBlock,
11328
11280
  InsuranceAmountBlock,
11329
- InvestmentInfo,
11330
11281
  LinkDocs,
11331
11282
  MobileAppTile,
11332
11283
  OfficesAtmsMap,
11333
11284
  ProductBlock,
11334
- RepresentativeOfficeInfo,
11335
11285
  RichTextBlock,
11336
11286
  RollupItem,
11337
11287
  StepsBlock,
@@ -11339,7 +11289,6 @@
11339
11289
  TabsLayout,
11340
11290
  TariffsTable,
11341
11291
  TextBlock,
11342
- UnitBlock,
11343
11292
  VerticalLayout,
11344
11293
  Video,
11345
11294
  ApplicationLeadForm,
@@ -11487,7 +11436,7 @@
11487
11436
  slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
11488
11437
  });
11489
11438
 
11490
- const packageVersion = "0.14.831";
11439
+ const packageVersion = "0.14.833";
11491
11440
 
11492
11441
  exports.Blocks = Blocks;
11493
11442
  exports.ContentPage = ContentPage;