@redneckz/wildless-cms-uni-blocks 0.13.16 → 0.13.18

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 (169) hide show
  1. package/bin/migration-scripts/0.13.13.js +34 -0
  2. package/bundle/blocks.schema.json +1 -1
  3. package/bundle/bundle.umd.js +13 -21
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/bundle/components/Calculator/CalculatorContent.d.ts +1 -3
  6. package/bundle/components/Carousel/Carousel.d.ts +0 -1
  7. package/bundle/components/Carousel/CarouselContent.d.ts +2 -0
  8. package/bundle/components/ContentPage/toMobileBlock.d.ts +2 -0
  9. package/bundle/components/ErrorBlock/ErrorBlockContent.d.ts +4 -4
  10. package/dist/components/Blocks.mobile.js +2 -0
  11. package/dist/components/Blocks.mobile.js.map +1 -1
  12. package/dist/components/Calculator/CalculatorContent.d.ts +1 -3
  13. package/dist/components/Calculator/RefinancingCalculatorForm.js +2 -3
  14. package/dist/components/Calculator/RefinancingCalculatorForm.js.map +1 -1
  15. package/dist/components/Calculator/checkRefinancingSourceBookRowCommonParams.js +0 -5
  16. package/dist/components/Calculator/checkRefinancingSourceBookRowCommonParams.js.map +1 -1
  17. package/dist/components/Calculator/getRefinancingCalculatorRateParams.js +1 -1
  18. package/dist/components/Calculator/getRefinancingCalculatorRateParams.js.map +1 -1
  19. package/dist/components/Calculator/useRefinancingCalculatorParams.js +3 -0
  20. package/dist/components/Calculator/useRefinancingCalculatorParams.js.map +1 -1
  21. package/dist/components/Carousel/Carousel.d.ts +0 -1
  22. package/dist/components/Carousel/Carousel.js.map +1 -1
  23. package/dist/components/Carousel/CarouselContent.d.ts +2 -0
  24. package/dist/components/ContentPage/ContentPage.js +1 -1
  25. package/dist/components/ContentPage/ContentPage.js.map +1 -1
  26. package/dist/components/ContentPage/normalizeBlock.mobile.js +3 -5
  27. package/dist/components/ContentPage/normalizeBlock.mobile.js.map +1 -1
  28. package/dist/components/ContentPage/toMobileBlock.d.ts +2 -0
  29. package/dist/components/ContentPage/toMobileBlock.js +12 -0
  30. package/dist/components/ContentPage/toMobileBlock.js.map +1 -0
  31. package/dist/components/ErrorBlock/ErrorBlock.js +3 -4
  32. package/dist/components/ErrorBlock/ErrorBlock.js.map +1 -1
  33. package/dist/components/ErrorBlock/ErrorBlockContent.d.ts +4 -4
  34. package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +1 -1
  35. package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  36. package/dist/ui-kit/Button/ButtonInner.js +1 -5
  37. package/dist/ui-kit/Button/ButtonInner.js.map +1 -1
  38. package/lib/common.css +1 -1
  39. package/lib/components/Blocks.mobile.js +2 -0
  40. package/lib/components/Blocks.mobile.js.map +1 -1
  41. package/lib/components/Calculator/CalculatorContent.d.ts +1 -3
  42. package/lib/components/Calculator/RefinancingCalculatorForm.js +2 -3
  43. package/lib/components/Calculator/RefinancingCalculatorForm.js.map +1 -1
  44. package/lib/components/Calculator/checkRefinancingSourceBookRowCommonParams.js +0 -5
  45. package/lib/components/Calculator/checkRefinancingSourceBookRowCommonParams.js.map +1 -1
  46. package/lib/components/Calculator/getRefinancingCalculatorRateParams.js +1 -1
  47. package/lib/components/Calculator/getRefinancingCalculatorRateParams.js.map +1 -1
  48. package/lib/components/Calculator/useRefinancingCalculatorParams.js +3 -0
  49. package/lib/components/Calculator/useRefinancingCalculatorParams.js.map +1 -1
  50. package/lib/components/Carousel/Carousel.d.ts +0 -1
  51. package/lib/components/Carousel/Carousel.js.map +1 -1
  52. package/lib/components/Carousel/CarouselContent.d.ts +2 -0
  53. package/lib/components/ContentPage/ContentPage.js +1 -1
  54. package/lib/components/ContentPage/ContentPage.js.map +1 -1
  55. package/lib/components/ContentPage/normalizeBlock.mobile.js +3 -5
  56. package/lib/components/ContentPage/normalizeBlock.mobile.js.map +1 -1
  57. package/lib/components/ContentPage/toMobileBlock.d.ts +2 -0
  58. package/lib/components/ContentPage/toMobileBlock.js +9 -0
  59. package/lib/components/ContentPage/toMobileBlock.js.map +1 -0
  60. package/lib/components/ErrorBlock/ErrorBlock.fixture.mobile.d.ts +7 -0
  61. package/lib/components/ErrorBlock/ErrorBlock.js +3 -4
  62. package/lib/components/ErrorBlock/ErrorBlock.js.map +1 -1
  63. package/lib/components/ErrorBlock/ErrorBlockContent.d.ts +4 -4
  64. package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +1 -1
  65. package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  66. package/lib/ui-kit/Button/ButtonInner.js +1 -5
  67. package/lib/ui-kit/Button/ButtonInner.js.map +1 -1
  68. package/mobile/bundle/bundle.umd.js +22 -17
  69. package/mobile/bundle/bundle.umd.min.js +1 -1
  70. package/mobile/bundle/components/Calculator/CalculatorContent.d.ts +1 -3
  71. package/mobile/bundle/components/Carousel/Carousel.d.ts +0 -1
  72. package/mobile/bundle/components/Carousel/CarouselContent.d.ts +2 -0
  73. package/mobile/bundle/components/ContentPage/toMobileBlock.d.ts +2 -0
  74. package/mobile/bundle/components/ErrorBlock/ErrorBlockContent.d.ts +4 -4
  75. package/mobile/dist/components/Blocks.js +2 -0
  76. package/mobile/dist/components/Blocks.js.map +1 -1
  77. package/mobile/dist/components/Calculator/CalculatorContent.d.ts +1 -3
  78. package/mobile/dist/components/Calculator/RefinancingCalculatorForm.js +2 -3
  79. package/mobile/dist/components/Calculator/RefinancingCalculatorForm.js.map +1 -1
  80. package/mobile/dist/components/Calculator/checkRefinancingSourceBookRowCommonParams.js +0 -5
  81. package/mobile/dist/components/Calculator/checkRefinancingSourceBookRowCommonParams.js.map +1 -1
  82. package/mobile/dist/components/Calculator/getRefinancingCalculatorRateParams.js +1 -1
  83. package/mobile/dist/components/Calculator/getRefinancingCalculatorRateParams.js.map +1 -1
  84. package/mobile/dist/components/Calculator/useRefinancingCalculatorParams.js +3 -0
  85. package/mobile/dist/components/Calculator/useRefinancingCalculatorParams.js.map +1 -1
  86. package/mobile/dist/components/Carousel/Carousel.d.ts +0 -1
  87. package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
  88. package/mobile/dist/components/Carousel/CarouselContent.d.ts +2 -0
  89. package/mobile/dist/components/ContentPage/ContentPage.js +1 -1
  90. package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
  91. package/mobile/dist/components/ContentPage/normalizeBlock.js +3 -5
  92. package/mobile/dist/components/ContentPage/normalizeBlock.js.map +1 -1
  93. package/mobile/dist/components/ContentPage/toMobileBlock.d.ts +2 -0
  94. package/mobile/dist/components/ContentPage/toMobileBlock.js +12 -0
  95. package/mobile/dist/components/ContentPage/toMobileBlock.js.map +1 -0
  96. package/mobile/dist/components/ErrorBlock/ErrorBlock.js +3 -4
  97. package/mobile/dist/components/ErrorBlock/ErrorBlock.js.map +1 -1
  98. package/mobile/dist/components/ErrorBlock/ErrorBlockContent.d.ts +4 -4
  99. package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +1 -1
  100. package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  101. package/mobile/dist/ui-kit/Button/ButtonInner.js +1 -5
  102. package/mobile/dist/ui-kit/Button/ButtonInner.js.map +1 -1
  103. package/mobile/lib/common.css +1 -1
  104. package/mobile/lib/components/Blocks.js +2 -0
  105. package/mobile/lib/components/Blocks.js.map +1 -1
  106. package/mobile/lib/components/Calculator/CalculatorContent.d.ts +1 -3
  107. package/mobile/lib/components/Calculator/RefinancingCalculatorForm.js +2 -3
  108. package/mobile/lib/components/Calculator/RefinancingCalculatorForm.js.map +1 -1
  109. package/mobile/lib/components/Calculator/checkRefinancingSourceBookRowCommonParams.js +0 -5
  110. package/mobile/lib/components/Calculator/checkRefinancingSourceBookRowCommonParams.js.map +1 -1
  111. package/mobile/lib/components/Calculator/getRefinancingCalculatorRateParams.js +1 -1
  112. package/mobile/lib/components/Calculator/getRefinancingCalculatorRateParams.js.map +1 -1
  113. package/mobile/lib/components/Calculator/useRefinancingCalculatorParams.js +3 -0
  114. package/mobile/lib/components/Calculator/useRefinancingCalculatorParams.js.map +1 -1
  115. package/mobile/lib/components/Carousel/Carousel.d.ts +0 -1
  116. package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
  117. package/mobile/lib/components/Carousel/CarouselContent.d.ts +2 -0
  118. package/mobile/lib/components/ContentPage/ContentPage.js +1 -1
  119. package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
  120. package/mobile/lib/components/ContentPage/normalizeBlock.js +3 -5
  121. package/mobile/lib/components/ContentPage/normalizeBlock.js.map +1 -1
  122. package/mobile/lib/components/ContentPage/toMobileBlock.d.ts +2 -0
  123. package/mobile/lib/components/ContentPage/toMobileBlock.js +9 -0
  124. package/mobile/lib/components/ContentPage/toMobileBlock.js.map +1 -0
  125. package/mobile/lib/components/ErrorBlock/ErrorBlock.js +3 -4
  126. package/mobile/lib/components/ErrorBlock/ErrorBlock.js.map +1 -1
  127. package/mobile/lib/components/ErrorBlock/ErrorBlockContent.d.ts +4 -4
  128. package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +1 -1
  129. package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  130. package/mobile/lib/ui-kit/Button/ButtonInner.js +1 -5
  131. package/mobile/lib/ui-kit/Button/ButtonInner.js.map +1 -1
  132. package/mobile/src/components/Blocks.ts +2 -0
  133. package/mobile/src/components/Calculator/CalculatorContent.ts +1 -3
  134. package/mobile/src/components/Calculator/RefinancingCalculatorForm.tsx +6 -9
  135. package/mobile/src/components/Calculator/checkRefinancingSourceBookRowCommonParams.ts +0 -5
  136. package/mobile/src/components/Calculator/getRefinancingCalculatorRateParams.ts +1 -1
  137. package/mobile/src/components/Calculator/useRefinancingCalculatorParams.ts +8 -0
  138. package/mobile/src/components/Carousel/Carousel.tsx +0 -1
  139. package/mobile/src/components/Carousel/CarouselContent.ts +2 -0
  140. package/mobile/src/components/ContentPage/ContentPage.tsx +1 -1
  141. package/mobile/src/components/ContentPage/normalizeBlock.ts +3 -10
  142. package/mobile/src/components/ContentPage/toMobileBlock.ts +11 -0
  143. package/mobile/src/components/ErrorBlock/ErrorBlock.example.json +2 -2
  144. package/mobile/src/components/ErrorBlock/ErrorBlock.tsx +8 -14
  145. package/mobile/src/components/ErrorBlock/ErrorBlock.ui.json +1 -1
  146. package/mobile/src/components/ErrorBlock/ErrorBlockContent.ts +4 -4
  147. package/mobile/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +1 -5
  148. package/mobile/src/ui-kit/Button/ButtonInner.tsx +2 -2
  149. package/package.json +1 -1
  150. package/src/components/Blocks.mobile.ts +2 -0
  151. package/src/components/Calculator/Calculator.fixture.tsx +0 -1
  152. package/src/components/Calculator/CalculatorContent.ts +1 -3
  153. package/src/components/Calculator/RefinancingCalculatorForm.tsx +6 -9
  154. package/src/components/Calculator/checkRefinancingSourceBookRowCommonParams.ts +0 -5
  155. package/src/components/Calculator/getRefinancingCalculatorRateParams.ts +1 -1
  156. package/src/components/Calculator/useRefinancingCalculatorParams.ts +8 -0
  157. package/src/components/Carousel/Carousel.tsx +0 -1
  158. package/src/components/Carousel/CarouselContent.ts +2 -0
  159. package/src/components/ContentPage/ContentPage.tsx +1 -1
  160. package/src/components/ContentPage/normalizeBlock.mobile.ts +3 -10
  161. package/src/components/ContentPage/toMobileBlock.ts +11 -0
  162. package/src/components/ErrorBlock/ErrorBlock.example.json +2 -2
  163. package/src/components/ErrorBlock/ErrorBlock.fixture.mobile.tsx +52 -0
  164. package/src/components/ErrorBlock/ErrorBlock.fixture.tsx +4 -4
  165. package/src/components/ErrorBlock/ErrorBlock.tsx +8 -14
  166. package/src/components/ErrorBlock/ErrorBlock.ui.json +1 -1
  167. package/src/components/ErrorBlock/ErrorBlockContent.ts +4 -4
  168. package/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +1 -5
  169. package/src/ui-kit/Button/ButtonInner.tsx +2 -2
@@ -1 +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AAK,SAAS,EAAC,8BAA8B,YAAE,SAAS,GAAO,CAAC,CAAC,CAAC,IAAI,EACnF,cAAK,SAAS,EAAE,aAAa,SAAS,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,QAAQ,EAAE,YAAG,IAAI,GAAO,IAChF,CACP,CAAC,CAAC,CAAC,IAAI,EACP,WAAW,CAAC,CAAC,CAAC,cAAK,SAAS,EAAE,YAAY,CAAC,OAAO,CAAC,YAAG,WAAW,GAAO,CAAC,CAAC,CAAC,IAAI,IAC5E,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,cAAc,GAAG,CAAC,KAAoB,EAAE,EAAE;IAC9C,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IAE9C,IAAI,OAAO,KAAK,MAAM,EAAE;QACtB,OAAO,EAAE,CAAC;KACX;IAED,MAAM,aAAa,GAAG,GAAG,SAAS,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;IAEnE,OAAO,KAAK,CACV,uCAAuC,EACvC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,WAAW,EAC/C,OAAO,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,CAC9B,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,UAAU,GAAG,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,UAAU,EAAe,EAAE,EAAE,CAClE,OAAO,CAAC,IAAI,IAAI,SAAS,IAAI,CAAC,UAAU,CAAC,CAAC"}
@@ -650,11 +650,7 @@
650
650
  return '';
651
651
  }
652
652
  const withTextStyle = `${aboveText ? 'py-2.5 px-9' : 'py-4 px-9'}`;
653
- return [
654
- 'group/btn items-center justify-center',
655
- isWithText(props) ? withTextStyle : 'h-12 w-12',
656
- rounded ? 'rounded-full' : '',
657
- ].join(' ');
653
+ return style('group/btn items-center justify-center', isWithText(props) ? withTextStyle : 'h-12 w-12', rounded ? 'rounded-full' : '');
658
654
  };
659
655
  const isWithText = ({ text, aboveText, appendLeft }) => Boolean(text || aboveText || !appendLeft);
660
656
 
@@ -2206,11 +2202,6 @@
2206
2202
  ...props,
2207
2203
  fieldKey: 'isInsurance',
2208
2204
  viewSettingFieldKey: 'isShowInsurance',
2209
- }) &&
2210
- checkRowParam({
2211
- ...props,
2212
- fieldKey: 'isExtraMoney',
2213
- viewSettingFieldKey: 'isShowExtraMoney',
2214
2205
  });
2215
2206
  const checkRowParam = ({ row, userInputParams, paramsViewSettings, fieldKey, viewSettingFieldKey, }) => {
2216
2207
  const isExclude = paramsViewSettings ? !paramsViewSettings[viewSettingFieldKey] : false;
@@ -2228,7 +2219,7 @@
2228
2219
  userInputParams,
2229
2220
  paramsViewSettings,
2230
2221
  }) &&
2231
- checkRangeByKeys(moneyValue, ['minSum', 'maxSum'], row) &&
2222
+ checkRangeByKeys(moneyValue + moneyExtra, ['minSum', 'maxSum'], row) &&
2232
2223
  checkRangeByKeys(oldMonthlyPayment, ['minSumOld', 'maxSumOld'], row) &&
2233
2224
  checkRangeByKeys(moneyExtra, ['minSumExtra', 'maxSumExtra'], row) &&
2234
2225
  checkRangeByKeys(monthsValue, ['minMonths', 'maxMonths'], row)) || DEFAULT_REFINANCING_CALCULATOR_PARAMS;
@@ -2244,6 +2235,7 @@
2244
2235
  paramsViewSettings,
2245
2236
  });
2246
2237
  const { minSum, maxSum } = getLimitRangeByKeys(['minSum', 'maxSum'], sourceBookLimitParams, rateRows);
2238
+ const { minSumOld, maxSumOld } = getLimitRangeByKeys(['minSumOld', 'maxSumOld'], sourceBookLimitParams, rateRows);
2247
2239
  const { minMonths, maxMonths } = getLimitRangeByKeys(['minMonths', 'maxMonths'], sourceBookLimitParams, rateRows);
2248
2240
  const refinancingCalculatorSourceBookRateParams = getRefinancingCalculatorRateParams({
2249
2241
  rateRows,
@@ -2262,6 +2254,8 @@
2262
2254
  ...userInputParams,
2263
2255
  minSum,
2264
2256
  maxSum,
2257
+ minSumOld,
2258
+ maxSumOld,
2265
2259
  minMonths,
2266
2260
  maxMonths,
2267
2261
  moneyValue,
@@ -2289,12 +2283,11 @@
2289
2283
  title: 'Остаток долга в других банках, ₽ ',
2290
2284
  step: 500,
2291
2285
  min: calculatorParams.minSum,
2292
- max: calculatorParams.maxSum,
2286
+ max: calculatorParams.maxSum - calculatorParams.maxSumExtra,
2293
2287
  ...field('moneyValue'),
2294
2288
  value: calculatorParams.moneyValue,
2295
2289
  }), renderWantedSumInput({
2296
2290
  title: 'Ежемесячный платеж в других банках, ₽',
2297
- isShowItems: false,
2298
2291
  step: 500,
2299
2292
  min: calculatorParams.minSumOld,
2300
2293
  max: calculatorParams.maxSumOld,
@@ -2320,7 +2313,7 @@
2320
2313
  fractionDigits: 1,
2321
2314
  }), jsxs("div", { className: "flex flex-col gap-2xl sm:w-96", children: [jsx(CalculatorValueBlock, { title: 'Ежемесячный платеж', value: calculatorParams.monthlyPayment, postfix: "\u20BD" }), calculatorParams.benefit > 0 ? (jsx(CalculatorValueBlock, { title: 'Выгода в месяц', value: calculatorParams.benefit, postfix: "\u20BD" })) : null, renderPaymentType({ orientation: 'vertical', ...field('isAnnuity') }), renderButtonsSection(buttons, { isVertical: true }), renderFootnote(footnote)] })] }));
2322
2315
  });
2323
- const renderCreditParamsForm = (params, field) => (jsxs("div", { className: "space-y-s", children: [params.isShowSalaryClient ? (jsx(Checkbox, { text: "\u041F\u043E\u043B\u0443\u0447\u0430\u044E \u0437\u0430\u0440\u043F\u043B\u0430\u0442\u0443 \u043D\u0430 \u0441\u0447\u0451\u0442 \u0432 \u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A\u0435", ...field('isSalaryClient'), value: params.isSalaryClient })) : null, params.isShowInsurance ? (jsx(Checkbox, { text: "\u041A\u043E\u043C\u043F\u043B\u0435\u043A\u0441\u043D\u0430\u044F \u0441\u0442\u0440\u0430\u0445\u043E\u0432\u0430\u044F \u0437\u0430\u0449\u0438\u0442\u0430", ...field('isInsurance'), value: params.isInsurance })) : null, params.isShowExtraMoney ? (jsx(Checkbox, { text: "\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0434\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u0443\u044E \u0441\u0443\u043C\u043C\u0443", ...field('isExtraMoney'), value: params.isExtraMoney })) : null] }));
2316
+ const renderCreditParamsForm = (params, field) => (jsxs("div", { className: "space-y-s", children: [params.isShowSalaryClient ? (jsx(Checkbox, { text: "\u041F\u043E\u043B\u0443\u0447\u0430\u044E \u0437\u0430\u0440\u043F\u043B\u0430\u0442\u0443 \u043D\u0430 \u0441\u0447\u0451\u0442 \u0432 \u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A\u0435", ...field('isSalaryClient'), value: params.isSalaryClient })) : null, params.isShowInsurance ? (jsx(Checkbox, { text: "\u041A\u043E\u043C\u043F\u043B\u0435\u043A\u0441\u043D\u0430\u044F \u0441\u0442\u0440\u0430\u0445\u043E\u0432\u0430\u044F \u0437\u0430\u0449\u0438\u0442\u0430", ...field('isInsurance'), value: params.isInsurance })) : null, jsx(Checkbox, { text: "\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0434\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u0443\u044E \u0441\u0443\u043C\u043C\u0443", ...field('isExtraMoney'), value: params.isExtraMoney })] }));
2324
2317
 
2325
2318
  const EmbeddableCalcBlocks = {
2326
2319
  CreditCalculatorForm,
@@ -2821,6 +2814,17 @@
2821
2814
  return orientation === 'horizontal' ? (jsx(SwipeListControl, { onVisibleIndicesChange: handleSlideChange, children: tableColumns })) : (tableColumns);
2822
2815
  });
2823
2816
 
2817
+ const renderErrorContent = (error) => {
2818
+ if (error?.contentType === 'Image' && error?.image) {
2819
+ return jsx(Img, { image: error.image });
2820
+ }
2821
+ if (error?.contentType === 'Code' && error.code) {
2822
+ return jsx("div", { className: "font-mohave text-title-extra gradient-color-text", children: error.code });
2823
+ }
2824
+ return null;
2825
+ };
2826
+ const ErrorBlock = JSX(({ className = '', title, description, error, button, ...rest }) => (jsxs(BlockWrapper, { className: style('flex flex-col gap-2xl justify-center items-center', className), defaultPadding: style('p-6xl'), version: "transparent", ...rest, children: [jsx("div", { className: "flex justify-center", children: renderErrorContent(error) }), jsx(Headline, { title: title, description: description, headlineVersion: "XL", isEmbedded: true }), button?.text ? jsx(Button, { version: button?.version, text: button?.text, ...button }) : null] })));
2827
+
2824
2828
  var Currency;
2825
2829
  (function (Currency) {
2826
2830
  Currency["RUB"] = "RUB";
@@ -2909,7 +2913,7 @@
2909
2913
  setSelected: handleSelectBuy(calcState, handleSetCalcState, currencyRatesBuy),
2910
2914
  value: calcState.inputBuy,
2911
2915
  setValue: (value) => handleInputBuy(handleSetCalcState, currencyRatesBuy)(value, calcState.selectBuy, calcState.selectSell),
2912
- }), button?.text ? (jsx(Button, { className: "py-4 px-9", version: button?.version, ...button, children: button.text })) : null] }));
2916
+ }), button?.text ? jsx(Button, { text: button.text, version: button?.version, ...button }) : null] }));
2913
2917
  });
2914
2918
  const handleSelectSell = (calcState, setCalcState, currencyRatesSell) => (value) => {
2915
2919
  setCalcState({ selectSell: value });
@@ -4323,6 +4327,7 @@
4323
4327
  CarouselRecommendationCard,
4324
4328
  CarouselTariffsCard,
4325
4329
  ComparisonTable,
4330
+ ErrorBlock,
4326
4331
  ExchangeRateTile,
4327
4332
  Footer,
4328
4333
  Header,
@@ -4505,7 +4510,7 @@
4505
4510
  parent: data,
4506
4511
  };
4507
4512
  useBlockRouterProvider();
4508
- return (jsxs("div", { children: [jsxs("section", { className: style('relative @container', pageStyle, className), "data-theme": colorPalette, children: [slots?.header ? (jsx("div", { className: "relative z-10 mb-lg shadow-[0_8px_32px_0px_#00000014]", children: renderBlocksList(slots?.header, { ...options, slotName: 'header' }) })) : null, jsxs("div", { className: "container @lg:grid @lg:grid-cols-12 @lg:gap-2xs", children: [renderChildren({ block: data, options, extraProps: { className: 'scroll-mt-12' } }), renderBlocksList(slots?.footer, { ...options, slotName: 'footer' })] }), likeControl ? renderLikeControl() : null] }), jsx(StickyBottomMenu, {}), jsx(DialogManager, {}), jsx(CookiePopup, { termLink: { href: '/pd-policy#cookie', target: '_blank' }, personalDataPolicyLink: { href: '/pd-policy', target: '_blank' } })] }));
4513
+ return (jsxs("div", { children: [jsxs("section", { className: style('relative @container', pageStyle, className), "data-theme": colorPalette, children: [slots?.header ? (jsx("div", { className: "relative z-10 mb-lg shadow-[0_8px_32px_0px_#00000014]", children: renderBlocksList(slots?.header, { ...options, slotName: 'header' }) })) : null, jsxs("div", { className: "container space-y-px @lg:space-y-0 @lg:grid @lg:grid-cols-12 @lg:gap-2xs", children: [renderChildren({ block: data, options, extraProps: { className: 'scroll-mt-12' } }), renderBlocksList(slots?.footer, { ...options, slotName: 'footer' })] }), likeControl ? renderLikeControl() : null] }), jsx(StickyBottomMenu, {}), jsx(DialogManager, {}), jsx(CookiePopup, { termLink: { href: '/pd-policy#cookie', target: '_blank' }, personalDataPolicyLink: { href: '/pd-policy', target: '_blank' } })] }));
4509
4514
  });
4510
4515
  ContentPage.childrenTypes = [];
4511
4516
  ContentPage.slots = () => ['header', 'footer', 'StickyBottomMenu'];
@@ -4515,7 +4520,7 @@
4515
4520
 
4516
4521
  const joinList = (sep) => (list) => list.reduce((acc, el, i) => (acc.length ? acc.concat({ ...sep, key: `sep-${i}` }, el) : [el]), []);
4517
4522
 
4518
- const packageVersion = "0.13.16";
4523
+ const packageVersion = "0.13.18";
4519
4524
 
4520
4525
  exports.Blocks = Blocks;
4521
4526
  exports.ContentPage = ContentPage;