@redneckz/wildless-cms-uni-blocks 0.14.696 → 0.14.698

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 (268) hide show
  1. package/bin/migrate.js +2 -5
  2. package/bundle/blocks.schema.json +1 -1
  3. package/bundle/bundle.umd.js +28 -18
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/bundle/components/RollupItem/getIconName.d.ts +1 -1
  6. package/bundle/icons/IconName.d.ts +218 -218
  7. package/bundle/model/LinkProps.d.ts +3 -3
  8. package/bundle/ui-kit/Input/getValidStyle.d.ts +1 -0
  9. package/bundle/utils/safeJsonParse.d.ts +1 -0
  10. package/cosmos-static/icons/sprites.svg +101 -101
  11. package/dist/components/ApplicationLeadForm/useInitApplicationLead.js +2 -1
  12. package/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
  13. package/dist/components/CreditCardForm/CreditCardForm.js +1 -2
  14. package/dist/components/CreditCardForm/CreditCardForm.js.map +1 -1
  15. package/dist/components/CreditCardForm/CreditCardFormStatusTracker.js +1 -1
  16. package/dist/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -1
  17. package/dist/components/CreditForm/CreditForm.js +1 -2
  18. package/dist/components/CreditForm/CreditForm.js.map +1 -1
  19. package/dist/components/CreditForm/CreditFormStatusTracker.js +1 -1
  20. package/dist/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
  21. package/dist/components/RollupItem/getIconName.d.ts +1 -1
  22. package/dist/components/StepsBlock/renderStep.js +1 -1
  23. package/dist/components/StepsBlock/renderStep.js.map +1 -1
  24. package/dist/components/StepsBlock/renderStepMobile.js +1 -1
  25. package/dist/components/StepsBlock/renderStepMobile.js.map +1 -1
  26. package/dist/components/StickyBottomMenu/StickyBottomMenuDialog.js +1 -1
  27. package/dist/components/StickyBottomMenu/StickyBottomMenuDialog.js.map +1 -1
  28. package/dist/components/TextBlock/TextBlock.js +2 -2
  29. package/dist/components/TextBlock/TextBlock.js.map +1 -1
  30. package/dist/content-page-repository/ContentPageRepository.js +2 -3
  31. package/dist/content-page-repository/ContentPageRepository.js.map +1 -1
  32. package/dist/hooks/useLocalStorage.js +2 -1
  33. package/dist/hooks/useLocalStorage.js.map +1 -1
  34. package/dist/icons/IconName.d.ts +218 -218
  35. package/dist/icons/IconName.js +217 -217
  36. package/dist/icons/IconName.js.map +1 -1
  37. package/dist/model/LinkProps.d.ts +3 -3
  38. package/dist/ui-kit/Calculator/CalculatorStyle.js +1 -1
  39. package/dist/ui-kit/Calculator/CalculatorStyle.js.map +1 -1
  40. package/dist/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js +1 -1
  41. package/dist/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js.map +1 -1
  42. package/dist/ui-kit/DialogManager/Dialog.js +1 -1
  43. package/dist/ui-kit/DialogManager/Dialog.js.map +1 -1
  44. package/dist/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js +1 -1
  45. package/dist/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js.map +1 -1
  46. package/dist/ui-kit/FormField/Fields/CreditCalcField.js +1 -1
  47. package/dist/ui-kit/FormField/Fields/CreditCalcField.js.map +1 -1
  48. package/dist/ui-kit/Input/Input.js +2 -3
  49. package/dist/ui-kit/Input/Input.js.map +1 -1
  50. package/dist/ui-kit/Input/getValidStyle.d.ts +1 -0
  51. package/dist/ui-kit/Input/getValidStyle.js +6 -0
  52. package/dist/ui-kit/Input/getValidStyle.js.map +1 -0
  53. package/dist/ui-kit/VerifyPhoneDialog/InputCode.js +2 -1
  54. package/dist/ui-kit/VerifyPhoneDialog/InputCode.js.map +1 -1
  55. package/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js +1 -1
  56. package/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
  57. package/dist/utils/safeJsonParse.d.ts +1 -0
  58. package/dist/utils/safeJsonParse.js +12 -0
  59. package/dist/utils/safeJsonParse.js.map +1 -0
  60. package/lib/common.css +1 -1
  61. package/lib/components/ApplicationLeadForm/ApplicationLeadForm.fixture.mobile.d.ts +1 -0
  62. package/lib/components/ApplicationLeadForm/useInitApplicationLead.js +2 -1
  63. package/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
  64. package/lib/components/CreditCardForm/CreditCardForm.fixture.mobile.d.ts +5 -0
  65. package/lib/components/CreditCardForm/CreditCardForm.js +1 -2
  66. package/lib/components/CreditCardForm/CreditCardForm.js.map +1 -1
  67. package/lib/components/CreditCardForm/CreditCardFormStatusTracker.js +1 -1
  68. package/lib/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -1
  69. package/lib/components/CreditForm/CreditForm.fixture.mobile.d.ts +5 -0
  70. package/lib/components/CreditForm/CreditForm.js +1 -2
  71. package/lib/components/CreditForm/CreditForm.js.map +1 -1
  72. package/lib/components/CreditForm/CreditFormStatusTracker.js +1 -1
  73. package/lib/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
  74. package/lib/components/RollupItem/getIconName.d.ts +1 -1
  75. package/lib/components/StepsBlock/renderStep.js +1 -1
  76. package/lib/components/StepsBlock/renderStep.js.map +1 -1
  77. package/lib/components/StepsBlock/renderStepMobile.js +1 -1
  78. package/lib/components/StepsBlock/renderStepMobile.js.map +1 -1
  79. package/lib/components/StickyBottomMenu/StickyBottomMenuDialog.js +1 -1
  80. package/lib/components/StickyBottomMenu/StickyBottomMenuDialog.js.map +1 -1
  81. package/lib/components/TextBlock/TextBlock.js +2 -2
  82. package/lib/components/TextBlock/TextBlock.js.map +1 -1
  83. package/lib/content-page-repository/ContentPageRepository.js +2 -3
  84. package/lib/content-page-repository/ContentPageRepository.js.map +1 -1
  85. package/lib/hooks/useLocalStorage.js +2 -1
  86. package/lib/hooks/useLocalStorage.js.map +1 -1
  87. package/lib/icons/IconName.d.ts +218 -218
  88. package/lib/icons/IconName.js +217 -217
  89. package/lib/icons/IconName.js.map +1 -1
  90. package/lib/model/LinkProps.d.ts +3 -3
  91. package/lib/ui-kit/Calculator/CalculatorStyle.js +1 -1
  92. package/lib/ui-kit/Calculator/CalculatorStyle.js.map +1 -1
  93. package/lib/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js +1 -1
  94. package/lib/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js.map +1 -1
  95. package/lib/ui-kit/DialogManager/Dialog.js +1 -1
  96. package/lib/ui-kit/DialogManager/Dialog.js.map +1 -1
  97. package/lib/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js +1 -1
  98. package/lib/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js.map +1 -1
  99. package/lib/ui-kit/FormField/Fields/CreditCalcField.js +1 -1
  100. package/lib/ui-kit/FormField/Fields/CreditCalcField.js.map +1 -1
  101. package/lib/ui-kit/Input/Input.js +1 -2
  102. package/lib/ui-kit/Input/Input.js.map +1 -1
  103. package/lib/ui-kit/Input/getValidStyle.d.ts +1 -0
  104. package/lib/ui-kit/Input/getValidStyle.js +3 -0
  105. package/lib/ui-kit/Input/getValidStyle.js.map +1 -0
  106. package/lib/ui-kit/VerifyPhoneDialog/InputCode.js +2 -1
  107. package/lib/ui-kit/VerifyPhoneDialog/InputCode.js.map +1 -1
  108. package/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js +1 -1
  109. package/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
  110. package/lib/utils/safeJsonParse.d.ts +1 -0
  111. package/lib/utils/safeJsonParse.js +9 -0
  112. package/lib/utils/safeJsonParse.js.map +1 -0
  113. package/mobile/bundle/bundle.umd.js +29 -19
  114. package/mobile/bundle/bundle.umd.min.js +1 -1
  115. package/mobile/bundle/components/RollupItem/getIconName.d.ts +1 -1
  116. package/mobile/bundle/icons/IconName.d.ts +218 -218
  117. package/mobile/bundle/model/LinkProps.d.ts +3 -3
  118. package/mobile/bundle/ui-kit/Input/getValidStyle.d.ts +1 -0
  119. package/mobile/bundle/utils/safeJsonParse.d.ts +1 -0
  120. package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js +2 -1
  121. package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
  122. package/mobile/dist/components/CreditCardForm/CreditCardForm.js +1 -2
  123. package/mobile/dist/components/CreditCardForm/CreditCardForm.js.map +1 -1
  124. package/mobile/dist/components/CreditCardForm/CreditCardFormStatusTracker.js +1 -1
  125. package/mobile/dist/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -1
  126. package/mobile/dist/components/CreditForm/CreditForm.js +1 -2
  127. package/mobile/dist/components/CreditForm/CreditForm.js.map +1 -1
  128. package/mobile/dist/components/CreditForm/CreditFormStatusTracker.js +1 -1
  129. package/mobile/dist/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
  130. package/mobile/dist/components/RollupItem/getIconName.d.ts +1 -1
  131. package/mobile/dist/components/StepsBlock/renderStep.js +1 -1
  132. package/mobile/dist/components/StepsBlock/renderStep.js.map +1 -1
  133. package/mobile/dist/components/StepsBlock/renderStepMobile.js +1 -1
  134. package/mobile/dist/components/StepsBlock/renderStepMobile.js.map +1 -1
  135. package/mobile/dist/components/StickyBottomMenu/StickyBottomMenuDialog.js +1 -1
  136. package/mobile/dist/components/StickyBottomMenu/StickyBottomMenuDialog.js.map +1 -1
  137. package/mobile/dist/components/TextBlock/TextBlock.js +2 -2
  138. package/mobile/dist/components/TextBlock/TextBlock.js.map +1 -1
  139. package/mobile/dist/content-page-repository/ContentPageRepository.js +2 -3
  140. package/mobile/dist/content-page-repository/ContentPageRepository.js.map +1 -1
  141. package/mobile/dist/hooks/useLocalStorage.js +2 -1
  142. package/mobile/dist/hooks/useLocalStorage.js.map +1 -1
  143. package/mobile/dist/icons/IconName.d.ts +218 -218
  144. package/mobile/dist/icons/IconName.js +217 -217
  145. package/mobile/dist/icons/IconName.js.map +1 -1
  146. package/mobile/dist/model/LinkProps.d.ts +3 -3
  147. package/mobile/dist/ui-kit/Calculator/CalculatorStyle.js +1 -1
  148. package/mobile/dist/ui-kit/Calculator/CalculatorStyle.js.map +1 -1
  149. package/mobile/dist/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js +1 -1
  150. package/mobile/dist/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js.map +1 -1
  151. package/mobile/dist/ui-kit/DialogManager/Dialog.js +1 -1
  152. package/mobile/dist/ui-kit/DialogManager/Dialog.js.map +1 -1
  153. package/mobile/dist/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js +1 -1
  154. package/mobile/dist/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js.map +1 -1
  155. package/mobile/dist/ui-kit/FormField/Fields/CreditCalcField.js +1 -1
  156. package/mobile/dist/ui-kit/FormField/Fields/CreditCalcField.js.map +1 -1
  157. package/mobile/dist/ui-kit/Input/Input.js +2 -3
  158. package/mobile/dist/ui-kit/Input/Input.js.map +1 -1
  159. package/mobile/dist/ui-kit/Input/getValidStyle.d.ts +1 -0
  160. package/mobile/dist/ui-kit/Input/getValidStyle.js +6 -0
  161. package/mobile/dist/ui-kit/Input/getValidStyle.js.map +1 -0
  162. package/mobile/dist/ui-kit/VerifyPhoneDialog/InputCode.js +2 -1
  163. package/mobile/dist/ui-kit/VerifyPhoneDialog/InputCode.js.map +1 -1
  164. package/mobile/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js +1 -1
  165. package/mobile/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
  166. package/mobile/dist/utils/safeJsonParse.d.ts +1 -0
  167. package/mobile/dist/utils/safeJsonParse.js +12 -0
  168. package/mobile/dist/utils/safeJsonParse.js.map +1 -0
  169. package/mobile/lib/common.css +1 -1
  170. package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js +2 -1
  171. package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
  172. package/mobile/lib/components/CreditCardForm/CreditCardForm.js +1 -2
  173. package/mobile/lib/components/CreditCardForm/CreditCardForm.js.map +1 -1
  174. package/mobile/lib/components/CreditCardForm/CreditCardFormStatusTracker.js +1 -1
  175. package/mobile/lib/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -1
  176. package/mobile/lib/components/CreditForm/CreditForm.js +1 -2
  177. package/mobile/lib/components/CreditForm/CreditForm.js.map +1 -1
  178. package/mobile/lib/components/CreditForm/CreditFormStatusTracker.js +1 -1
  179. package/mobile/lib/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
  180. package/mobile/lib/components/RollupItem/getIconName.d.ts +1 -1
  181. package/mobile/lib/components/StepsBlock/renderStep.js +1 -1
  182. package/mobile/lib/components/StepsBlock/renderStep.js.map +1 -1
  183. package/mobile/lib/components/StepsBlock/renderStepMobile.js +1 -1
  184. package/mobile/lib/components/StepsBlock/renderStepMobile.js.map +1 -1
  185. package/mobile/lib/components/StickyBottomMenu/StickyBottomMenuDialog.js +1 -1
  186. package/mobile/lib/components/StickyBottomMenu/StickyBottomMenuDialog.js.map +1 -1
  187. package/mobile/lib/components/TextBlock/TextBlock.js +2 -2
  188. package/mobile/lib/components/TextBlock/TextBlock.js.map +1 -1
  189. package/mobile/lib/content-page-repository/ContentPageRepository.js +2 -3
  190. package/mobile/lib/content-page-repository/ContentPageRepository.js.map +1 -1
  191. package/mobile/lib/hooks/useLocalStorage.js +2 -1
  192. package/mobile/lib/hooks/useLocalStorage.js.map +1 -1
  193. package/mobile/lib/icons/IconName.d.ts +218 -218
  194. package/mobile/lib/icons/IconName.js +217 -217
  195. package/mobile/lib/icons/IconName.js.map +1 -1
  196. package/mobile/lib/model/LinkProps.d.ts +3 -3
  197. package/mobile/lib/ui-kit/Calculator/CalculatorStyle.js +1 -1
  198. package/mobile/lib/ui-kit/Calculator/CalculatorStyle.js.map +1 -1
  199. package/mobile/lib/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js +1 -1
  200. package/mobile/lib/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js.map +1 -1
  201. package/mobile/lib/ui-kit/DialogManager/Dialog.js +1 -1
  202. package/mobile/lib/ui-kit/DialogManager/Dialog.js.map +1 -1
  203. package/mobile/lib/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js +1 -1
  204. package/mobile/lib/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js.map +1 -1
  205. package/mobile/lib/ui-kit/FormField/Fields/CreditCalcField.js +1 -1
  206. package/mobile/lib/ui-kit/FormField/Fields/CreditCalcField.js.map +1 -1
  207. package/mobile/lib/ui-kit/Input/Input.js +1 -2
  208. package/mobile/lib/ui-kit/Input/Input.js.map +1 -1
  209. package/mobile/lib/ui-kit/Input/getValidStyle.d.ts +1 -0
  210. package/mobile/lib/ui-kit/Input/getValidStyle.js +3 -0
  211. package/mobile/lib/ui-kit/Input/getValidStyle.js.map +1 -0
  212. package/mobile/lib/ui-kit/VerifyPhoneDialog/InputCode.js +2 -1
  213. package/mobile/lib/ui-kit/VerifyPhoneDialog/InputCode.js.map +1 -1
  214. package/mobile/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js +1 -1
  215. package/mobile/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
  216. package/mobile/lib/utils/safeJsonParse.d.ts +1 -0
  217. package/mobile/lib/utils/safeJsonParse.js +9 -0
  218. package/mobile/lib/utils/safeJsonParse.js.map +1 -0
  219. package/mobile/src/components/ApplicationLeadForm/useInitApplicationLead.ts +4 -1
  220. package/mobile/src/components/CreditCardForm/CreditCardForm.tsx +1 -2
  221. package/mobile/src/components/CreditCardForm/CreditCardFormStatusTracker.tsx +1 -1
  222. package/mobile/src/components/CreditForm/CreditForm.tsx +1 -2
  223. package/mobile/src/components/CreditForm/CreditFormStatusTracker.tsx +1 -1
  224. package/mobile/src/components/StepsBlock/renderStep.tsx +1 -5
  225. package/mobile/src/components/StepsBlock/renderStepMobile.tsx +1 -5
  226. package/mobile/src/components/StickyBottomMenu/StickyBottomMenuDialog.tsx +1 -1
  227. package/mobile/src/components/TextBlock/TextBlock.tsx +2 -7
  228. package/mobile/src/content-page-repository/ContentPageRepository.ts +2 -3
  229. package/mobile/src/hooks/useLocalStorage.ts +2 -1
  230. package/mobile/src/icons/IconName.ts +5 -5
  231. package/mobile/src/model/LinkProps.ts +3 -3
  232. package/mobile/src/ui-kit/Calculator/CalculatorStyle.tsx +1 -1
  233. package/mobile/src/ui-kit/ConsentBkiDialog/ConsentBkiDialog.tsx +1 -1
  234. package/mobile/src/ui-kit/DialogManager/Dialog.tsx +1 -5
  235. package/mobile/src/ui-kit/EsiaLoginDialog/EsiaLoginDialog.tsx +2 -2
  236. package/mobile/src/ui-kit/FormField/Fields/CreditCalcField.tsx +1 -0
  237. package/mobile/src/ui-kit/Input/Input.tsx +1 -3
  238. package/mobile/src/ui-kit/Input/getValidStyle.tsx +3 -0
  239. package/mobile/src/ui-kit/VerifyPhoneDialog/InputCode.tsx +4 -3
  240. package/mobile/src/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.tsx +1 -1
  241. package/mobile/src/utils/safeJsonParse.ts +7 -0
  242. package/package.json +5 -6
  243. package/src/components/ApplicationLeadForm/ApplicationLeadForm.fixture.mobile.tsx +15 -23
  244. package/src/components/ApplicationLeadForm/useInitApplicationLead.ts +4 -1
  245. package/src/components/CreditCardForm/CreditCardForm.fixture.mobile.tsx +25 -0
  246. package/src/components/CreditCardForm/CreditCardForm.tsx +1 -2
  247. package/src/components/CreditCardForm/CreditCardFormStatusTracker.tsx +1 -1
  248. package/src/components/CreditForm/CreditForm.fixture.mobile.tsx +30 -0
  249. package/src/components/CreditForm/CreditForm.tsx +1 -2
  250. package/src/components/CreditForm/CreditFormStatusTracker.tsx +1 -1
  251. package/src/components/StepsBlock/renderStep.tsx +1 -5
  252. package/src/components/StepsBlock/renderStepMobile.tsx +1 -5
  253. package/src/components/StickyBottomMenu/StickyBottomMenuDialog.tsx +1 -1
  254. package/src/components/TextBlock/TextBlock.tsx +2 -7
  255. package/src/content-page-repository/ContentPageRepository.ts +2 -3
  256. package/src/hooks/useLocalStorage.ts +2 -1
  257. package/src/icons/IconName.ts +5 -5
  258. package/src/model/LinkProps.ts +3 -3
  259. package/src/ui-kit/Calculator/CalculatorStyle.tsx +1 -1
  260. package/src/ui-kit/ConsentBkiDialog/ConsentBkiDialog.tsx +1 -1
  261. package/src/ui-kit/DialogManager/Dialog.tsx +1 -5
  262. package/src/ui-kit/EsiaLoginDialog/EsiaLoginDialog.tsx +2 -2
  263. package/src/ui-kit/FormField/Fields/CreditCalcField.tsx +1 -0
  264. package/src/ui-kit/Input/Input.tsx +1 -3
  265. package/src/ui-kit/Input/getValidStyle.tsx +3 -0
  266. package/src/ui-kit/VerifyPhoneDialog/InputCode.tsx +4 -3
  267. package/src/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.tsx +1 -1
  268. package/src/utils/safeJsonParse.ts +7 -0
@@ -1262,6 +1262,8 @@
1262
1262
 
1263
1263
  const inputValidStyle = 'border border-solid outline-none border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text rounded';
1264
1264
 
1265
+ const getValidStyle = (valid) => (valid ? inputValidStyle : 'border-error');
1266
+
1265
1267
  const renderLabel = (label) => label ? (jsx(Text, { size: "text-m", color: "text-primary-text", font: "font-light", children: label })) : null;
1266
1268
 
1267
1269
  const Input = JSX(
@@ -1281,7 +1283,6 @@
1281
1283
  const validStyle = getValidStyle(valid);
1282
1284
  return (jsxs("div", { className: style('relative', className), children: [jsxs("label", { className: "space-y-xs", children: [renderLabel(label), isTextarea ? (jsx("textarea", { className: style('block resize-y min-h-24', defaultStyle$1, validStyle), id: style('textarea', id), name: name || id, placeholder: placeholder, value: value, onChange: handleChange, onFocus: onFocus, onBlur: onBlur, disabled: disabled }, key)) : (jsx("input", { type: type, className: style('h-14', defaultStyle$1, paddingStyle, validStyle), ref: inputRef, id: id, name: name || id, placeholder: placeholder, value: value, onChange: handleChange, onFocus: onFocus, onBlur: onBlur, pattern: pattern, disabled: disabled }, key))] }), children] }));
1283
1285
  });
1284
- const getValidStyle = (valid) => (valid ? inputValidStyle : 'border-error');
1285
1286
  const defaultStyle$1 = 'w-full border rounded-md text-primary-text outline-none p-m';
1286
1287
 
1287
1288
  const renderErrorText = (error) => (jsx("div", { className: "h-6", children: error ? (jsx(Text, { size: "text-xs", font: "font-light", color: "text-error", children: error })) : null }));
@@ -2980,9 +2981,18 @@
2980
2981
  return Array.isArray(data) ? data : [];
2981
2982
  };
2982
2983
 
2984
+ const safeJsonParse = (data) => {
2985
+ try {
2986
+ return JSON.parse(String(data));
2987
+ }
2988
+ catch (ex) {
2989
+ return null;
2990
+ }
2991
+ };
2992
+
2983
2993
  function useLocalStorage(key) {
2984
2994
  const initialValue = globalThis.localStorage?.getItem(key);
2985
- const [storedValue, setStoredValue] = useState(initialValue ? JSON.parse(initialValue) : null);
2995
+ const [storedValue, setStoredValue] = useState(initialValue ? safeJsonParse(initialValue) : null);
2986
2996
  const setValue = useCallback((value) => {
2987
2997
  setStoredValue((oldValue) => {
2988
2998
  const newValue = value instanceof Function ? value(oldValue) : value;
@@ -3096,7 +3106,7 @@
3096
3106
 
3097
3107
  const CloseButton = JSX(({ className, onClose }) => (jsx("button", { className: style('flex justify-center items-center w-12 h-12 p-2xs bg-transparent border-none', className), onClick: onClose, title: "\u0417\u0430\u043A\u0440\u044B\u0442\u044C", type: "button", children: jsx(Icon, { name: "CloseIcon", width: "20", height: "20", iconVersion: "gray" }) })));
3098
3108
 
3099
- const Dialog = JSX(({ className, head, children, onClose, onClick }) => (jsxs("div", { className: style('relative min-h-full bg-white pt-0 p-lg', className), role: "dialog", onClick: onClick, children: [jsxs("div", { className: "sticky py-xl top-0 bg-white z-10", children: [jsx(CloseButton, { className: "absolute top-0 right-0", onClose: onClose }), jsx("div", { className: "container", children: head })] }), jsx("div", { className: "container pb-6xl", children: children })] })));
3109
+ const Dialog = JSX(({ className, head, children, onClose, onClick }) => (jsxs("div", { className: style('relative bg-white pt-0 p-lg', className), role: "dialog", onClick: onClick, children: [jsxs("div", { className: "sticky py-xl top-0 bg-white z-10", children: [jsx(CloseButton, { className: "absolute top-0 right-0", onClose: onClose }), jsx("div", { className: "container", children: head })] }), jsx("div", { className: "container pb-6xl", children: children })] })));
3100
3110
 
3101
3111
  // TODO Перенесено как есть из openDocument. Требует рефакторинга
3102
3112
  const DocumentDialog = JSX(({ src, convertToPng, onClose }) => (jsxs(Dialog, { className: "my-6xl max-w-4xl mx-auto px-0 min-h-0 pb-0", onClose: onClose, children: [convertToPng ? (jsx("img", { src: src })) : (jsx("iframe", { src: `${src}#toolbar=0`, className: "w-full h-[80vh]", id: "iframe-dialog" })), jsx(Button, { className: "mx-auto mt-m", type: "button", onClick: onClose, children: "\u041E\u0437\u043D\u0430\u043A\u043E\u043C\u0438\u0442\u044C\u0441\u044F" })] })));
@@ -3130,7 +3140,7 @@
3130
3140
 
3131
3141
  const CalculatorStyle = {
3132
3142
  wrapper: 'flex flex-col justify-between lg:flex-row gap-x-4xl gap-y-7 lg:gap-y-4xl',
3133
- input: 'flex flex-col lg:max-w-80 lg:w-1/2 gap-2xl',
3143
+ input: 'flex flex-col lg:w-1/2 gap-2xl',
3134
3144
  result: 'flex flex-col gap-y-xl min-w-52',
3135
3145
  };
3136
3146
 
@@ -3429,7 +3439,7 @@
3429
3439
  const handleChange = useCallback((_) => {
3430
3440
  field(FIELD_NAME$9).onChange?.(_);
3431
3441
  }, []);
3432
- return (jsx(CalculatorCredit, { ...params?.calcData, defaultParams: defaultValueAdapter(field(FIELD_NAME$9).value), onChange: handleChange }));
3442
+ return (jsx(CalculatorCredit, { ...params?.calcData, padding: "p-0", defaultParams: defaultValueAdapter(field(FIELD_NAME$9).value), onChange: handleChange }));
3433
3443
  });
3434
3444
 
3435
3445
  const LABEL_TEXT = `Имеет ли юридическое лицо, акционером / участником / членом / пайщиком /
@@ -4361,7 +4371,7 @@
4361
4371
  });
4362
4372
  const getInputStyle = (index, values, hasError = false) => {
4363
4373
  const isInputEmpty = !values[index];
4364
- return `w-20 h-24 text-5xl text-center p-lg m-2 border ${hasError && isInputEmpty ? 'border-error' : 'border-gray'} rounded-md caret-transparent outline-none`;
4374
+ return `w-16 sm:w-20 h-24 text-5xl text-center p-md m-2 border ${getValidStyle(!hasError || !isInputEmpty)} rounded-md caret-transparent outline-none`;
4365
4375
  };
4366
4376
 
4367
4377
  const SubmitButton = JSX(({ isDisabled, onClick, text }) => {
@@ -4442,7 +4452,7 @@
4442
4452
  useEffect(() => {
4443
4453
  handleSendCode();
4444
4454
  }, []);
4445
- return (jsx(Dialog, { className: "my-6xl max-w-3xl w-full min-h-fit mx-auto rounded-xl px-5xl py-0", onClose: onClose, children: jsxs("div", { className: "flex flex-col gap-xl items-center rounded-md", children: [jsx(Headline, { className: "w-full", title: title, description: description, headlineVersion: "XS", isEmbedded: true, as: "h6" }), code ? (jsx(InputCode, { values: values, setValues: setValues, errorText: errorText, hasError: hasError })) : null, renderText$1(timeNextReq, setTimeNextReq, handleSendCode), jsx(RichText, { itemSize: "list-s", __html: __html }), renderTextButton(textButton, isSubmitButtonDisabled, handleSubmit), isLoading ? jsx(Loader, { blur: false }) : null] }) }));
4455
+ return (jsx(Dialog, { className: "my-6xl max-w-3xl w-full min-h-fit mx-auto rounded-xl p-m", onClose: onClose, children: jsxs("div", { className: "flex flex-col gap-xl items-center rounded-md", children: [jsx(Headline, { className: "w-full", title: title, description: description, headlineVersion: "XS", isEmbedded: true, as: "h6" }), code ? (jsx(InputCode, { values: values, setValues: setValues, errorText: errorText, hasError: hasError })) : null, renderText$1(timeNextReq, setTimeNextReq, handleSendCode), jsx(RichText, { itemSize: "list-s", __html: __html }), renderTextButton(textButton, isSubmitButtonDisabled, handleSubmit), isLoading ? jsx(Loader, { blur: false }) : null] }) }));
4446
4456
  });
4447
4457
  const renderTextButton = (textButton, isDisabled, handleSubmit) => textButton ? (jsx(SubmitButton, { isDisabled: isDisabled, onClick: handleSubmit, text: textButton })) : null;
4448
4458
  const renderText$1 = (timeNextReq, setTimeNextReq, handleSendCode) => timeNextReq ? (jsxs("div", { className: "flex flex-row text-l font-light text-base", children: ["\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u043D\u043E\u0432\u044B\u0439 \u043A\u043E\u0434 \u043C\u043E\u0436\u043D\u043E \u0447\u0435\u0440\u0435\u0437", jsx(Timer, { className: "text-base ml-1", time: timeNextReq, setTime: setTimeNextReq })] })) : (jsx(LinkButton, { onClick: handleSendCode, className: "text-primary-main", children: "\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u043D\u043E\u0432\u044B\u0439 \u043A\u043E\u0434" }));
@@ -4474,7 +4484,7 @@
4474
4484
  }
4475
4485
  }, []);
4476
4486
  const consentText = showRefuseContent ? refuseConsentText : defaultConsentText;
4477
- return (jsx(Dialog, { className: "my-6xl max-w-3xl w-full min-h-fit mx-auto rounded-lg py-0 px-5xl", onClose: onClose, children: jsxs("div", { className: "flex flex-col gap-xl items-center", children: [jsx("div", { role: "button", onClick: openDocument, children: jsx(Heading, { className: "text-center text-balance", headingType: "h2", title: consentText.title }) }), jsx(Paragraph, { align: "text-center", children: consentText.description }), jsx(RadioButtonGroup, { className: "whitespace-normal", orientation: "horizontal", items: ITEMS$1, value: confirmStatus, onChange: handleConfirmChange }), jsx(Button, { disabled: !confirmStatus, type: "button", onClick: handleSubmit, children: "\u0414\u0430\u043B\u0435\u0435" })] }) }));
4487
+ return (jsx(Dialog, { className: "my-6xl max-w-3xl w-full min-h-fit mx-auto rounded-lg px-5xl", onClose: onClose, children: jsxs("div", { className: "flex flex-col gap-xl items-center", children: [jsx("div", { role: "button", onClick: openDocument, children: jsx(Heading, { className: "text-center text-balance", headingType: "h2", title: consentText.title }) }), jsx(Paragraph, { align: "text-center", children: consentText.description }), jsx(RadioButtonGroup, { className: "whitespace-normal", orientation: "horizontal", items: ITEMS$1, value: confirmStatus, onChange: handleConfirmChange }), jsx(Button, { disabled: !confirmStatus, type: "button", onClick: handleSubmit, children: "\u0414\u0430\u043B\u0435\u0435" })] }) }));
4478
4488
  });
4479
4489
 
4480
4490
  const useConsentBkiDialog = (onClose) => {
@@ -4542,7 +4552,7 @@
4542
4552
  }
4543
4553
  onClose?.();
4544
4554
  }, []);
4545
- return (jsx(Dialog, { className: "my-6xl max-w-lg w-full min-h-fit mx-auto rounded-lg", onClose: handleClose, children: jsxs("div", { className: "flex flex-col gap-lg items-center rounded-md", children: [jsxs("div", { className: "flex items-center justify-around w-full", children: [jsxs("ul", { className: "list-disc", children: [jsx("li", { children: "\u0412\u0435\u0440\u043E\u044F\u0442\u043D\u043E\u0441\u0442\u044C \u043E\u0434\u043E\u0431\u0440\u0435\u043D\u0438\u044F \u0432\u044B\u0448\u0435" }), jsx("li", { children: "\u0411\u0435\u0437 \u0441\u043F\u0440\u0430\u0432\u043E\u043A \u043E \u0434\u043E\u0445\u043E\u0434\u0430\u0445 \u0438 \u0442\u0440\u0443\u0434\u043E\u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0435" }), jsx("li", { children: "\u0421 \u0437\u0430\u0449\u0438\u0442\u043E\u0439 \u0412\u0430\u0448\u0438\u0445 \u0434\u0430\u043D\u043D\u044B\u0445" })] }), jsx(Img, { image: { icon: 'GosUslugiIcon', iconVersion: 'normal' }, height: "70" })] }), jsxs("div", { className: "flex items-center justify-between w-full m-0", children: [jsx(Button, { type: "button", onClick: handleAuth, children: "\u0417\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u044C \u0447\u0435\u0440\u0435\u0437 \u0413\u043E\u0441\u0443\u0441\u043B\u0443\u0433\u0438" }), jsx(Button, { type: "button", version: "secondary", onClick: handleClose, children: "\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C" })] })] }) }));
4555
+ return (jsx(Dialog, { className: "my-6xl max-w-lg w-full min-h-fit mx-auto rounded-lg", onClose: handleClose, children: jsxs("div", { className: "flex flex-col gap-lg items-center rounded-md", children: [jsxs("div", { className: "flex items-center justify-around w-full px-m", children: [jsxs("ul", { className: "list-disc", children: [jsx("li", { children: "\u0412\u0435\u0440\u043E\u044F\u0442\u043D\u043E\u0441\u0442\u044C \u043E\u0434\u043E\u0431\u0440\u0435\u043D\u0438\u044F \u0432\u044B\u0448\u0435" }), jsx("li", { children: "\u0411\u0435\u0437 \u0441\u043F\u0440\u0430\u0432\u043E\u043A \u043E \u0434\u043E\u0445\u043E\u0434\u0430\u0445 \u0438 \u0442\u0440\u0443\u0434\u043E\u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0435" }), jsx("li", { children: "\u0421 \u0437\u0430\u0449\u0438\u0442\u043E\u0439 \u0412\u0430\u0448\u0438\u0445 \u0434\u0430\u043D\u043D\u044B\u0445" })] }), jsx(Img, { image: { icon: 'GosUslugiIcon', iconVersion: 'normal' }, height: "70" })] }), jsxs("div", { className: "flex flex-wrap gap-lg w-full", children: [jsx(Button, { type: "button", onClick: handleAuth, children: "\u0417\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u044C \u0447\u0435\u0440\u0435\u0437 \u0413\u043E\u0441\u0443\u0441\u043B\u0443\u0433\u0438" }), jsx(Button, { type: "button", version: "secondary", onClick: handleClose, children: "\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C" })] })] }) }));
4546
4556
  });
4547
4557
 
4548
4558
  const useEsiaLoginDialog = (nextStepLink) => {
@@ -4828,7 +4838,7 @@
4828
4838
  }
4829
4839
  }, [nextStepLink]);
4830
4840
  useEffect(() => {
4831
- const profileId = JSON.parse(globalThis.localStorage?.getItem('profileId') ?? 'null');
4841
+ const profileId = (safeJsonParse(globalThis.localStorage?.getItem('profileId') ?? ''));
4832
4842
  const params = new URLSearchParams(decodeURIComponent(globalThis.location?.search));
4833
4843
  const code = params.get('code');
4834
4844
  const state = params.get('state');
@@ -6396,7 +6406,7 @@
6396
6406
  APPROVED: jsx(SuccessStatusContent$1, {}),
6397
6407
  REVISION: jsx(ReworkStatusContent$1, {}),
6398
6408
  };
6399
- return statusesMap[status] || null;
6409
+ return statusesMap[status] || jsx(ReworkStatusContent$1, {});
6400
6410
  };
6401
6411
 
6402
6412
  const formStateMap$1 = [
@@ -7174,7 +7184,7 @@
7174
7184
  }, []);
7175
7185
  const sections = useMemo(() => stepsSectionsMap$1[step], [step]);
7176
7186
  const [isFormFinished, setIsFormFinished] = useState(false);
7177
- return (jsx(BlockWrapper, { className: style('bg-transparent', className), defaultPadding: "p-0", ...rest, children: jsxs("div", { ref: formContainerRef, className: "container grid grid-cols-12", children: [isFormFinished ? null : (jsx(CreditCardFormProgress, { stepsTitles: TITLES, step: step, totalSteps: STEPS$1 })), jsx("div", { className: "py-lg px-5xl mt-2xs bg-white col-span-12", children: jsx(CreditCardFormStep, { step: step, sections: sections, onNextStep: handleNextStep, onPrevStep: handlePrevStep, isFormFinished: isFormFinished, finishForm: setIsFormFinished }, String(step)) })] }) }));
7187
+ return (jsx(BlockWrapper, { className: className, ...rest, children: jsxs("div", { ref: formContainerRef, className: "container grid grid-cols-12", children: [isFormFinished ? null : (jsx(CreditCardFormProgress, { stepsTitles: TITLES, step: step, totalSteps: STEPS$1 })), jsx("div", { className: "py-lg px-5xl mt-2xs bg-white col-span-12", children: jsx(CreditCardFormStep, { step: step, sections: sections, onNextStep: handleNextStep, onPrevStep: handlePrevStep, isFormFinished: isFormFinished, finishForm: setIsFormFinished }, String(step)) })] }) }));
7178
7188
  });
7179
7189
 
7180
7190
  const CreditFormProgress = JSX(({ step = 1, totalSteps = 5, stepsTitles = [] }) => {
@@ -7303,7 +7313,7 @@
7303
7313
  APPROVED: jsx(SuccessStatusContent, {}),
7304
7314
  REVISION: jsx(ReworkStatusContent, {}),
7305
7315
  };
7306
- return statusesMap[status] || null;
7316
+ return statusesMap[status] || jsx(ReworkStatusContent, {});
7307
7317
  };
7308
7318
 
7309
7319
  const formStateMap = [
@@ -7989,7 +7999,7 @@
7989
7999
  const sections = useMemo(() => stepsSectionsMap[step], [step]);
7990
8000
  const isStartStep = step === 0;
7991
8001
  const [isFormFinished, setIsFormFinished] = useState(false);
7992
- return (jsx(BlockWrapper, { className: style('bg-transparent', className), defaultPadding: "p-0", ...rest, children: jsxs("div", { ref: formContainerRef, className: "container grid grid-cols-12", children: [isStartStep || isFormFinished ? null : (jsx(CreditFormProgress, { stepsTitles: STEP_TITLES, step: step, totalSteps: STEPS })), jsx("div", { className: "py-lg px-5xl mt-2xs bg-white col-span-12", children: jsx(CreditFormStep, { step: step, sections: sections, onNextStep: handleNextStep, onPrevStep: handlePrevStep, isFormFinished: isFormFinished, finishForm: setIsFormFinished, programsSource: programsSource }, String(step)) })] }) }));
8002
+ return (jsx(BlockWrapper, { className: className, ...rest, children: jsxs("div", { ref: formContainerRef, className: "container grid grid-cols-12", children: [isStartStep || isFormFinished ? null : (jsx(CreditFormProgress, { stepsTitles: STEP_TITLES, step: step, totalSteps: STEPS })), jsx("div", { className: "py-lg px-5xl mt-2xs bg-white col-span-12", children: jsx(CreditFormStep, { step: step, sections: sections, onNextStep: handleNextStep, onPrevStep: handlePrevStep, isFormFinished: isFormFinished, finishForm: setIsFormFinished, programsSource: programsSource }, String(step)) })] }) }));
7993
8003
  });
7994
8004
 
7995
8005
  const isRateRow = (rateRow) => typeof rateRow?.minMonths === 'number' && typeof rateRow?.maxMonths === 'number';
@@ -9865,7 +9875,7 @@
9865
9875
  const renderStep = (props) => (step, i, arr) => {
9866
9876
  const { styleMap, version } = props;
9867
9877
  const { label, description, button, isDotted } = step;
9868
- return (jsxs("div", { className: style('relative flex flex-col items-center text-center justify-between whitespace-pre-line overflow-hidden space-y-3xl', getContainerWidth(arr.length)), children: [jsxs("div", { className: "space-y-xs", children: [label ? (jsx(Text, { size: "text-h6", align: "text-center", children: label })) : null, jsxs("div", { className: "flex flex-col items-center gap-3xs", children: [description ? jsx("div", { className: styleMap.description, children: description }) : null, jsx(RichText, { __html: step.__html, itemSize: "list-s", isDotted: isDotted })] })] }), button?.text ? (jsx(LinkButton, { className: "box-border py-s w-full max-w-60 mt-auto", version: version, ...button, children: button?.text })) : null] }, String(i)));
9878
+ return (jsxs("div", { className: style('relative flex flex-col items-center text-center justify-between whitespace-pre-line overflow-hidden space-y-3xl', getContainerWidth(arr.length)), children: [jsxs("div", { className: "space-y-xs", children: [label ? (jsx(Text, { size: "text-h6", align: "text-center", children: label })) : null, jsxs("div", { className: "flex flex-col items-center gap-3xs", children: [description ? jsx("div", { className: styleMap.description, children: description }) : null, jsx(RichText, { __html: step.__html, itemSize: "list-s", isDotted: isDotted })] })] }), button?.text ? (jsx(LinkButton, { className: "box-border py-s w-full mt-auto", version: version, ...button, children: button?.text })) : null] }, String(i)));
9869
9879
  };
9870
9880
  const getContainerWidth = (length) => (length < STEP_BREAKPOINT ? 'w-72' : 'w-52');
9871
9881
 
@@ -10174,8 +10184,8 @@
10174
10184
  return (jsxs(BlockWrapper, { className: style('relative space-y-6xl @4xl:space-y-xl', className), defaultPadding: "p-6xl", ...rest, children: [jsx(Headline, { title: title, description: description, headlineVersion: "M", isEmbedded: true, align: "text-center" }), jsx("div", { className: "space-y-m overflow-hidden", children: hiddenRowsNum > 0 ? (jsx(Foldable, { renderFoldableSection: ({ isUnfolded }) => (jsxs(TariffsTableWrapper, { controls: controls, children: [visibleRows, jsx(FoldableSection, { isUnfolded: isUnfolded, children: hiddenRows })] })), renderFoldButton: renderDefaultFoldButton })) : (jsx(TariffsTableWrapper, { controls: controls, children: rows })) })] }));
10175
10185
  });
10176
10186
 
10177
- const TextBlock = JSX(({ className = '', title, description, iconVersion, __html, richVersion, ...rest }) => (jsxs(BlockWrapper, { className: style('flex gap-s sm:gap-m bg-white group-data-secondary:bg-primary-main/10', className), ...rest, children: [iconVersion === 'small' ? renderIcon() : null, jsxs("div", { className: "flex flex-col w-fit gap-2xs sm:gap-xs", children: [title ? (jsx(Text, { size: "text-l", font: "font-normal", color: "text-primary-text group-data-secondary:text-white", children: title })) : null, description ? renderDescription(description) : null, __html ? jsx(RichText, { richVersion: richVersion, __html: __html }) : null] })] })));
10178
- 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" }));
10187
+ const TextBlock = JSX(({ className = '', title, description, iconVersion, __html, richVersion, ...rest }) => (jsxs(BlockWrapper, { className: style('flex gap-s sm:gap-m group-data-secondary:bg-primary-main/10', className), ...rest, children: [iconVersion === 'small' ? renderIcon() : null, jsxs("div", { className: "flex flex-col w-fit gap-2xs sm:gap-xs", children: [title ? (jsx(Text, { size: "text-l", font: "font-normal", color: "text-primary-text group-data-secondary:text-white", children: title })) : null, description ? renderDescription(description) : null, __html ? jsx(RichText, { richVersion: richVersion, __html: __html }) : null] })] })));
10188
+ 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" }));
10179
10189
  const renderDescription = (description) => (jsx(Paragraph, { size: "text-s", font: "font-light", color: "text-secondary-text group-data-secondary:text-white", children: description }));
10180
10190
 
10181
10191
  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 ? (
@@ -10410,7 +10420,7 @@
10410
10420
  slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
10411
10421
  });
10412
10422
 
10413
- const packageVersion = "0.14.695";
10423
+ const packageVersion = "0.14.697";
10414
10424
 
10415
10425
  exports.Blocks = Blocks;
10416
10426
  exports.ContentPage = ContentPage;