@redneckz/wildless-cms-uni-blocks 0.14.895 → 0.14.896

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 (162) hide show
  1. package/bundle/bundle.umd.js +20 -14
  2. package/bundle/bundle.umd.min.js +1 -1
  3. package/bundle/ui-kit/DialogManager/Dialog.d.ts +2 -2
  4. package/bundle/ui-kit/SnowplowPopupDialog/SnowplowPopupDialog.d.ts +20 -0
  5. package/dist/components/CardTransfer/SubmitFailedDialog.js +1 -1
  6. package/dist/components/CardTransfer/SubmitFailedDialog.js.map +1 -1
  7. package/dist/retail/components/CaptchaDialog/CaptchaDialog.js +1 -1
  8. package/dist/retail/components/CaptchaDialog/CaptchaDialog.js.map +1 -1
  9. package/dist/retail/components/ConsentBkiDialog/ConsentBkiDialog.js +1 -1
  10. package/dist/retail/components/ConsentBkiDialog/ConsentBkiDialog.js.map +1 -1
  11. package/dist/retail/components/DocumentDialog/DocumentDialog.js +1 -1
  12. package/dist/retail/components/DocumentDialog/DocumentDialog.js.map +1 -1
  13. package/dist/retail/components/DraftDialog/DraftDialog.js +1 -1
  14. package/dist/retail/components/DraftDialog/DraftDialog.js.map +1 -1
  15. package/dist/retail/components/DraftDialog/EmptyDraftDialog.js +1 -1
  16. package/dist/retail/components/DraftDialog/EmptyDraftDialog.js.map +1 -1
  17. package/dist/retail/components/NoConsentDialog/NoConsentDialog.js +1 -1
  18. package/dist/retail/components/NoConsentDialog/NoConsentDialog.js.map +1 -1
  19. package/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +1 -1
  20. package/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
  21. package/dist/ui-kit/DialogManager/Dialog.d.ts +2 -2
  22. package/dist/ui-kit/DialogManager/Dialog.js +6 -1
  23. package/dist/ui-kit/DialogManager/Dialog.js.map +1 -1
  24. package/dist/ui-kit/LocationDialog/LocationDialog.js +2 -1
  25. package/dist/ui-kit/LocationDialog/LocationDialog.js.map +1 -1
  26. package/dist/ui-kit/ReportDialog/ReportDialog.js +1 -1
  27. package/dist/ui-kit/ReportDialog/ReportDialog.js.map +1 -1
  28. package/dist/ui-kit/ResponseTypeDialog/ResponseTypeDialog.js +1 -1
  29. package/dist/ui-kit/ResponseTypeDialog/ResponseTypeDialog.js.map +1 -1
  30. package/dist/ui-kit/SearchDialog/SearchDialog.js +1 -1
  31. package/dist/ui-kit/SearchDialog/SearchDialog.js.map +1 -1
  32. package/dist/ui-kit/SnowplowPopupDialog/SnowplowPopupDialog.d.ts +20 -0
  33. package/dist/ui-kit/SnowplowPopupDialog/SnowplowPopupDialog.js +24 -0
  34. package/dist/ui-kit/SnowplowPopupDialog/SnowplowPopupDialog.js.map +1 -0
  35. package/lib/common.css +1 -1
  36. package/lib/components/CardTransfer/SubmitFailedDialog.js +1 -1
  37. package/lib/components/CardTransfer/SubmitFailedDialog.js.map +1 -1
  38. package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +1 -1
  39. package/lib/retail/components/CaptchaDialog/CaptchaDialog.js +1 -1
  40. package/lib/retail/components/CaptchaDialog/CaptchaDialog.js.map +1 -1
  41. package/lib/retail/components/ConsentBkiDialog/ConsentBkiDialog.js +1 -1
  42. package/lib/retail/components/ConsentBkiDialog/ConsentBkiDialog.js.map +1 -1
  43. package/lib/retail/components/DocumentDialog/DocumentDialog.js +1 -1
  44. package/lib/retail/components/DocumentDialog/DocumentDialog.js.map +1 -1
  45. package/lib/retail/components/DraftDialog/DraftDialog.js +1 -1
  46. package/lib/retail/components/DraftDialog/DraftDialog.js.map +1 -1
  47. package/lib/retail/components/DraftDialog/EmptyDraftDialog.js +1 -1
  48. package/lib/retail/components/DraftDialog/EmptyDraftDialog.js.map +1 -1
  49. package/lib/retail/components/NoConsentDialog/NoConsentDialog.js +1 -1
  50. package/lib/retail/components/NoConsentDialog/NoConsentDialog.js.map +1 -1
  51. package/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +1 -1
  52. package/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
  53. package/lib/ui-kit/DialogManager/Dialog.d.ts +2 -2
  54. package/lib/ui-kit/DialogManager/Dialog.js +6 -1
  55. package/lib/ui-kit/DialogManager/Dialog.js.map +1 -1
  56. package/lib/ui-kit/LocationDialog/LocationDialog.js +2 -1
  57. package/lib/ui-kit/LocationDialog/LocationDialog.js.map +1 -1
  58. package/lib/ui-kit/ReportDialog/ReportDialog.js +1 -1
  59. package/lib/ui-kit/ReportDialog/ReportDialog.js.map +1 -1
  60. package/lib/ui-kit/ResponseTypeDialog/ResponseTypeDialog.js +1 -1
  61. package/lib/ui-kit/ResponseTypeDialog/ResponseTypeDialog.js.map +1 -1
  62. package/lib/ui-kit/SearchDialog/SearchDialog.js +1 -1
  63. package/lib/ui-kit/SearchDialog/SearchDialog.js.map +1 -1
  64. package/lib/ui-kit/SnowplowPopupDialog/SnowplowPopupDialog.d.ts +20 -0
  65. package/lib/ui-kit/SnowplowPopupDialog/SnowplowPopupDialog.fixture.d.ts +5 -0
  66. package/lib/ui-kit/SnowplowPopupDialog/SnowplowPopupDialog.js +22 -0
  67. package/lib/ui-kit/SnowplowPopupDialog/SnowplowPopupDialog.js.map +1 -0
  68. package/mobile/bundle/bundle.umd.js +19 -13
  69. package/mobile/bundle/bundle.umd.min.js +1 -1
  70. package/mobile/bundle/ui-kit/DialogManager/Dialog.d.ts +2 -2
  71. package/mobile/bundle/ui-kit/SnowplowPopupDialog/SnowplowPopupDialog.d.ts +20 -0
  72. package/mobile/dist/components/CardTransfer/SubmitFailedDialog.js +1 -1
  73. package/mobile/dist/components/CardTransfer/SubmitFailedDialog.js.map +1 -1
  74. package/mobile/dist/retail/components/CaptchaDialog/CaptchaDialog.js +1 -1
  75. package/mobile/dist/retail/components/CaptchaDialog/CaptchaDialog.js.map +1 -1
  76. package/mobile/dist/retail/components/ConsentBkiDialog/ConsentBkiDialog.js +1 -1
  77. package/mobile/dist/retail/components/ConsentBkiDialog/ConsentBkiDialog.js.map +1 -1
  78. package/mobile/dist/retail/components/DocumentDialog/DocumentDialog.js +1 -1
  79. package/mobile/dist/retail/components/DocumentDialog/DocumentDialog.js.map +1 -1
  80. package/mobile/dist/retail/components/DraftDialog/DraftDialog.js +1 -1
  81. package/mobile/dist/retail/components/DraftDialog/DraftDialog.js.map +1 -1
  82. package/mobile/dist/retail/components/DraftDialog/EmptyDraftDialog.js +1 -1
  83. package/mobile/dist/retail/components/DraftDialog/EmptyDraftDialog.js.map +1 -1
  84. package/mobile/dist/retail/components/NoConsentDialog/NoConsentDialog.js +1 -1
  85. package/mobile/dist/retail/components/NoConsentDialog/NoConsentDialog.js.map +1 -1
  86. package/mobile/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +1 -1
  87. package/mobile/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
  88. package/mobile/dist/ui-kit/DialogManager/Dialog.d.ts +2 -2
  89. package/mobile/dist/ui-kit/DialogManager/Dialog.js +6 -1
  90. package/mobile/dist/ui-kit/DialogManager/Dialog.js.map +1 -1
  91. package/mobile/dist/ui-kit/LocationDialog/LocationDialog.js +2 -1
  92. package/mobile/dist/ui-kit/LocationDialog/LocationDialog.js.map +1 -1
  93. package/mobile/dist/ui-kit/ReportDialog/ReportDialog.js +1 -1
  94. package/mobile/dist/ui-kit/ReportDialog/ReportDialog.js.map +1 -1
  95. package/mobile/dist/ui-kit/ResponseTypeDialog/ResponseTypeDialog.js +1 -1
  96. package/mobile/dist/ui-kit/ResponseTypeDialog/ResponseTypeDialog.js.map +1 -1
  97. package/mobile/dist/ui-kit/SearchDialog/SearchDialog.js +1 -1
  98. package/mobile/dist/ui-kit/SearchDialog/SearchDialog.js.map +1 -1
  99. package/mobile/dist/ui-kit/SnowplowPopupDialog/SnowplowPopupDialog.d.ts +20 -0
  100. package/mobile/dist/ui-kit/SnowplowPopupDialog/SnowplowPopupDialog.js +24 -0
  101. package/mobile/dist/ui-kit/SnowplowPopupDialog/SnowplowPopupDialog.js.map +1 -0
  102. package/mobile/lib/common.css +1 -1
  103. package/mobile/lib/components/CardTransfer/SubmitFailedDialog.js +1 -1
  104. package/mobile/lib/components/CardTransfer/SubmitFailedDialog.js.map +1 -1
  105. package/mobile/lib/retail/components/CaptchaDialog/CaptchaDialog.js +1 -1
  106. package/mobile/lib/retail/components/CaptchaDialog/CaptchaDialog.js.map +1 -1
  107. package/mobile/lib/retail/components/ConsentBkiDialog/ConsentBkiDialog.js +1 -1
  108. package/mobile/lib/retail/components/ConsentBkiDialog/ConsentBkiDialog.js.map +1 -1
  109. package/mobile/lib/retail/components/DocumentDialog/DocumentDialog.js +1 -1
  110. package/mobile/lib/retail/components/DocumentDialog/DocumentDialog.js.map +1 -1
  111. package/mobile/lib/retail/components/DraftDialog/DraftDialog.js +1 -1
  112. package/mobile/lib/retail/components/DraftDialog/DraftDialog.js.map +1 -1
  113. package/mobile/lib/retail/components/DraftDialog/EmptyDraftDialog.js +1 -1
  114. package/mobile/lib/retail/components/DraftDialog/EmptyDraftDialog.js.map +1 -1
  115. package/mobile/lib/retail/components/NoConsentDialog/NoConsentDialog.js +1 -1
  116. package/mobile/lib/retail/components/NoConsentDialog/NoConsentDialog.js.map +1 -1
  117. package/mobile/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +1 -1
  118. package/mobile/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
  119. package/mobile/lib/ui-kit/DialogManager/Dialog.d.ts +2 -2
  120. package/mobile/lib/ui-kit/DialogManager/Dialog.js +6 -1
  121. package/mobile/lib/ui-kit/DialogManager/Dialog.js.map +1 -1
  122. package/mobile/lib/ui-kit/LocationDialog/LocationDialog.js +2 -1
  123. package/mobile/lib/ui-kit/LocationDialog/LocationDialog.js.map +1 -1
  124. package/mobile/lib/ui-kit/ReportDialog/ReportDialog.js +1 -1
  125. package/mobile/lib/ui-kit/ReportDialog/ReportDialog.js.map +1 -1
  126. package/mobile/lib/ui-kit/ResponseTypeDialog/ResponseTypeDialog.js +1 -1
  127. package/mobile/lib/ui-kit/ResponseTypeDialog/ResponseTypeDialog.js.map +1 -1
  128. package/mobile/lib/ui-kit/SearchDialog/SearchDialog.js +1 -1
  129. package/mobile/lib/ui-kit/SearchDialog/SearchDialog.js.map +1 -1
  130. package/mobile/lib/ui-kit/SnowplowPopupDialog/SnowplowPopupDialog.d.ts +20 -0
  131. package/mobile/lib/ui-kit/SnowplowPopupDialog/SnowplowPopupDialog.js +22 -0
  132. package/mobile/lib/ui-kit/SnowplowPopupDialog/SnowplowPopupDialog.js.map +1 -0
  133. package/mobile/src/components/CardTransfer/SubmitFailedDialog.tsx +1 -1
  134. package/mobile/src/retail/components/CaptchaDialog/CaptchaDialog.tsx +1 -5
  135. package/mobile/src/retail/components/ConsentBkiDialog/ConsentBkiDialog.tsx +1 -4
  136. package/mobile/src/retail/components/DocumentDialog/DocumentDialog.tsx +1 -1
  137. package/mobile/src/retail/components/DraftDialog/DraftDialog.tsx +1 -1
  138. package/mobile/src/retail/components/DraftDialog/EmptyDraftDialog.tsx +1 -4
  139. package/mobile/src/retail/components/NoConsentDialog/NoConsentDialog.tsx +1 -4
  140. package/mobile/src/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.tsx +1 -4
  141. package/mobile/src/ui-kit/DialogManager/Dialog.tsx +15 -6
  142. package/mobile/src/ui-kit/LocationDialog/LocationDialog.tsx +11 -13
  143. package/mobile/src/ui-kit/ReportDialog/ReportDialog.tsx +1 -1
  144. package/mobile/src/ui-kit/ResponseTypeDialog/ResponseTypeDialog.tsx +1 -1
  145. package/mobile/src/ui-kit/SearchDialog/SearchDialog.tsx +4 -1
  146. package/mobile/src/ui-kit/SnowplowPopupDialog/SnowplowPopupDialog.tsx +83 -0
  147. package/package.json +1 -1
  148. package/src/components/CardTransfer/SubmitFailedDialog.tsx +1 -1
  149. package/src/retail/components/CaptchaDialog/CaptchaDialog.tsx +1 -5
  150. package/src/retail/components/ConsentBkiDialog/ConsentBkiDialog.tsx +1 -4
  151. package/src/retail/components/DocumentDialog/DocumentDialog.tsx +1 -1
  152. package/src/retail/components/DraftDialog/DraftDialog.tsx +1 -1
  153. package/src/retail/components/DraftDialog/EmptyDraftDialog.tsx +1 -4
  154. package/src/retail/components/NoConsentDialog/NoConsentDialog.tsx +1 -4
  155. package/src/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.tsx +1 -4
  156. package/src/ui-kit/DialogManager/Dialog.tsx +15 -6
  157. package/src/ui-kit/LocationDialog/LocationDialog.tsx +11 -13
  158. package/src/ui-kit/ReportDialog/ReportDialog.tsx +1 -1
  159. package/src/ui-kit/ResponseTypeDialog/ResponseTypeDialog.tsx +1 -1
  160. package/src/ui-kit/SearchDialog/SearchDialog.tsx +4 -1
  161. package/src/ui-kit/SnowplowPopupDialog/SnowplowPopupDialog.fixture.tsx +32 -0
  162. package/src/ui-kit/SnowplowPopupDialog/SnowplowPopupDialog.tsx +83 -0
@@ -0,0 +1,20 @@
1
+ import { type HandleAspectsProps } from '../../hooks/useAspects/handleAspects';
2
+ import { type Aspects } from '../../hooks/useAspects/useAspects';
3
+ import { type AspectsDef } from '../../model/AspectsProps';
4
+ import { type HeadlineCommonProps } from '../../model/HeadlineType';
5
+ import { type Picture } from '../../model/Picture';
6
+ import { type LinkButtonContent } from '../LinkButton/LinkButtonContent';
7
+ import { type RichTextProps } from '../RichText/RichTextProps';
8
+ export interface SnowplowPopupDialogContent extends HeadlineCommonProps, RichTextProps {
9
+ img?: Picture;
10
+ buttons?: LinkButtonContent[];
11
+ dataShow?: AspectsDef[];
12
+ dataClose?: AspectsDef[];
13
+ delay?: number;
14
+ }
15
+ export interface SnowplowPopupDialogProps extends SnowplowPopupDialogContent {
16
+ onClose?: () => void;
17
+ aspects: Aspects;
18
+ handleAspects: (props: HandleAspectsProps) => void;
19
+ }
20
+ export declare const SnowplowPopupDialog: import("@redneckz/uni-jsx").UNIComponent<SnowplowPopupDialogProps, any, any>;
@@ -0,0 +1,5 @@
1
+ import '../../setup-fixture';
2
+ declare const _default: {
3
+ default: any;
4
+ };
5
+ export default _default;
@@ -0,0 +1,22 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
2
+ import { JSX } from '@redneckz/uni-jsx';
3
+ import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
4
+ import { Headline } from '../../components/Headline/Headline.js';
5
+ import { Dialog } from '../DialogManager/Dialog.js';
6
+ import { Img } from '../Img/Img.js';
7
+ import { renderButtonsSection } from '../LinkButton/renderButtonsSection.js';
8
+ import { RichText } from '../RichText/RichText.js';
9
+ export const SnowplowPopupDialog = JSX(({ title, description, buttons, img, dataClose, onClose, align, isDotted, __html, itemSize, richVersion, aspects, handleAspects, }) => {
10
+ const handleClose = useCallback(() => {
11
+ if (dataClose) {
12
+ handleAspects({
13
+ aspectsAttributes: dataClose,
14
+ aspects,
15
+ ev: {},
16
+ });
17
+ }
18
+ onClose?.();
19
+ }, [aspects, dataClose, onClose, handleAspects]);
20
+ return (_jsx(Dialog, { maxWidth: "sm", onClose: handleClose, children: _jsxs("div", { className: "flex flex-col gap-lg items-center rounded-md", children: [_jsx(Img, { image: img }), title || description ? (_jsx(Headline, { align: align, className: "w-full", title: title, description: description, headlineVersion: "XS", isEmbedded: true })) : null, _jsx(RichText, { __html: __html, isDotted: isDotted, itemSize: itemSize, richVersion: richVersion }), renderButtonsSection(buttons, { isVertical: true })] }) }));
21
+ });
22
+ //# sourceMappingURL=SnowplowPopupDialog.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SnowplowPopupDialog.js","sourceRoot":"","sources":["../../../src/ui-kit/SnowplowPopupDialog/SnowplowPopupDialog.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,oCAAoC,CAAC;AAM9D,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAE1E,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAgBhD,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,CACpC,CAAC,EACC,KAAK,EACL,WAAW,EACX,OAAO,EACP,GAAG,EACH,SAAS,EACT,OAAO,EACP,KAAK,EACL,QAAQ,EACR,MAAM,EACN,QAAQ,EACR,WAAW,EACX,OAAO,EACP,aAAa,GACd,EAAE,EAAE;IACH,MAAM,WAAW,GAAG,WAAW,CAAC,GAAG,EAAE;QACnC,IAAI,SAAS,EAAE;YACb,aAAa,CAAC;gBACZ,iBAAiB,EAAE,SAAS;gBAC5B,OAAO;gBACP,EAAE,EAAE,EAAgC;aACrC,CAAC,CAAC;SACJ;QAED,OAAO,EAAE,EAAE,CAAC;IACd,CAAC,EAAE,CAAC,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,aAAa,CAAC,CAAC,CAAC;IAEjD,OAAO,CACL,KAAC,MAAM,IAAC,QAAQ,EAAC,IAAI,EAAC,OAAO,EAAE,WAAW,YACxC,eAAK,SAAS,EAAC,8CAA8C,aAC3D,KAAC,GAAG,IAAC,KAAK,EAAE,GAAG,GAAI,EAClB,KAAK,IAAI,WAAW,CAAC,CAAC,CAAC,CACtB,KAAC,QAAQ,IACP,KAAK,EAAE,KAAK,EACZ,SAAS,EAAC,QAAQ,EAClB,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,WAAW,EACxB,eAAe,EAAC,IAAI,EACpB,UAAU,EAAE,IAAI,GAChB,CACH,CAAC,CAAC,CAAC,IAAI,EACR,KAAC,QAAQ,IACP,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,WAAW,EAAE,WAAW,GACxB,EACD,oBAAoB,CAAC,OAAO,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,IAChD,GACC,CACV,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -1472,7 +1472,12 @@
1472
1472
 
1473
1473
  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" }) })));
1474
1474
 
1475
- const Dialog = JSX(({ className, head, children, onClose, onClick }) => (jsxs("div", { className: style('relative bg-white pt-0 p-lg', className), role: "dialog", title: "\u0414\u0438\u0430\u043B\u043E\u0433", 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-m mb-[74px] lg:mb-0", children: children })] })));
1475
+ const MAX_WIDTH_STYLE = {
1476
+ sm: 'max-w-sm top-1/3',
1477
+ lg: 'max-w-lg',
1478
+ '4xl': 'max-w-4xl',
1479
+ };
1480
+ const Dialog = JSX(({ head, maxWidth = '4xl', children, onClose, onClick }) => (jsxs("div", { className: style('relative bg-white p-lg pb-6xl my-6xl mx-auto rounded-lg w-full', MAX_WIDTH_STYLE[maxWidth]), role: "dialog", title: "\u0414\u0438\u0430\u043B\u043E\u0433", onClick: onClick, children: [jsxs("div", { className: "sticky py-xl top-0 bg-white z-10", children: [jsx(CloseButton, { className: "absolute top-0 right-0 z-10", onClose: onClose }), jsx("div", { className: "container", children: head })] }), jsx("div", { className: "container", children: children })] })));
1476
1481
 
1477
1482
  function useDialog(Dialog, initialProps = {}) {
1478
1483
  const { open, close, ...rest } = useDialogManager();
@@ -1663,7 +1668,7 @@
1663
1668
  (async () => setCaptcha(URL.createObjectURL(await createCaptcha(phoneNumber))))();
1664
1669
  }, []);
1665
1670
  useEffect(handleCreateCaptcha, []);
1666
- return (jsx(Dialog, { className: "my-6xl max-w-lg w-full min-h-fit mx-auto rounded-lg", head: jsx(Logo, {}), onClose: closeAll, children: jsxs("div", { className: "flex flex-col gap-lg items-center", children: [jsxs("div", { className: "flex", children: [jsx("img", { className: "grow", src: captcha }), jsx(Button, { className: "w-8", embedded: true, onClick: handleCreateCaptcha, children: jsx(Icon, { iconVersion: "normal", name: "RefreshIcon" }) })] }), jsx(Input, { className: "w-80", onChange: setCode, value: code, placeholder: "\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043A\u043E\u0434 \u0441 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0438" }), hasError ? jsx("div", { className: "text-error", children: "\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043E\u0434" }) : null, jsxs("div", { className: "flex w-80 justify-between", children: [jsx(Button, { version: "secondary", onClick: closeAll, children: "\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F" }), jsx(SubmitButton$1, { version: "secondary", disabled: !code, onClick: handleCheckCaptcha, children: "\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C" })] }), isLoading ? jsx(Loader, { blur: false }) : null] }) }));
1671
+ return (jsx(Dialog, { head: jsx(Logo, {}), onClose: onClose, children: jsxs("div", { className: "flex flex-col gap-lg items-center", children: [jsxs("div", { className: "flex", children: [jsx("img", { className: "grow", src: captcha }), jsx(Button, { className: "w-8", embedded: true, onClick: handleCreateCaptcha, children: jsx(Icon, { iconVersion: "normal", name: "RefreshIcon" }) })] }), jsx(Input, { className: "w-80", onChange: setCode, value: code, placeholder: "\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043A\u043E\u0434 \u0441 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0438" }), hasError ? jsx("div", { className: "text-error", children: "\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043E\u0434" }) : null, jsxs("div", { className: "flex w-80 justify-between", children: [jsx(Button, { version: "secondary", onClick: closeAll, children: "\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F" }), jsx(SubmitButton$1, { version: "secondary", disabled: !code, onClick: handleCheckCaptcha, children: "\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C" })] }), isLoading ? jsx(Loader, { blur: false }) : null] }) }));
1667
1672
  });
1668
1673
 
1669
1674
  const InputCode = JSX(({ values, setValues, hasError, errorText }) => {
@@ -1834,7 +1839,7 @@
1834
1839
  handleSendCode();
1835
1840
  }
1836
1841
  }, []);
1837
- 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: "\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0435 \u043D\u043E\u043C\u0435\u0440 \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u0430", description: `Мы отправили код на ${phone}`, headlineVersion: "XS", isEmbedded: true, as: "h6" }), jsx(InputCode, { values: values, setValues: setValues, errorText: errorText, hasError: hasError }), renderText$4(timeNextReq, handleSendCode), withDescription ? (jsxs(RichText, { itemSize: "list-s", children: [jsx("span", { children: "\u0412\u0432\u043E\u0434\u044F \u043A\u043E\u0434, \u044F \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u044E, \u0447\u0442\u043E \u043E\u0437\u043D\u0430\u043A\u043E\u043C\u043B\u0435\u043D \u0438 \u043F\u043E\u0434\u043F\u0438\u0441\u044B\u0432\u0430\u044E: " }), jsx("ul", { children: consents?.map((_, i) => (jsx("li", { children: _ }, `${_}-${i}`))) })] })) : null, renderNextButton(isSubmitButtonDisabled, handleSubmit), isLoading ? jsx(Loader, { blur: false }) : null] }) }));
1842
+ return (jsx(Dialog, { maxWidth: "lg", onClose: onClose, children: jsxs("div", { className: "flex flex-col gap-xl items-center rounded-md", children: [jsx(Headline, { className: "w-full", title: "\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0435 \u043D\u043E\u043C\u0435\u0440 \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u0430", description: `Мы отправили код на ${phone}`, headlineVersion: "XS", isEmbedded: true, as: "h6" }), jsx(InputCode, { values: values, setValues: setValues, errorText: errorText, hasError: hasError }), renderText$4(timeNextReq, handleSendCode), withDescription ? (jsxs(RichText, { itemSize: "list-s", children: [jsx("span", { children: "\u0412\u0432\u043E\u0434\u044F \u043A\u043E\u0434, \u044F \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u044E, \u0447\u0442\u043E \u043E\u0437\u043D\u0430\u043A\u043E\u043C\u043B\u0435\u043D \u0438 \u043F\u043E\u0434\u043F\u0438\u0441\u044B\u0432\u0430\u044E: " }), jsx("ul", { children: consents?.map((_, i) => (jsx("li", { children: _ }, `${_}-${i}`))) })] })) : null, renderNextButton(isSubmitButtonDisabled, handleSubmit), isLoading ? jsx(Loader, { blur: false }) : null] }) }));
1838
1843
  });
1839
1844
  const renderNextButton = (disabled, onClick) => (jsx(SubmitButton, { text: "\u0414\u0430\u043B\u0435\u0435", disabled: disabled, onClick: onClick }));
1840
1845
  const renderText$4 = (timeNextReq, 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: "pl-2xs", seconds: timeNextReq })] })) : (jsx(Button, { embedded: true, onClick: handleSendCode, children: jsx(ButtonTitle, { children: "\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u043D\u043E\u0432\u044B\u0439 \u043A\u043E\u0434" }) }));
@@ -3016,7 +3021,7 @@
3016
3021
  можете самостоятельно позвонить по номеру контакт-центра +78001000100. Будьте внимательны, работники Банка
3017
3022
  не звонят с использованием мессенджеров.`
3018
3023
  : 'Совсем скоро мы с вами свяжемся';
3019
- return (jsx(Dialog, { className: "my-6xl max-w-lg w-full min-h-fit mx-auto", onClose: onClose, children: jsxs("div", { className: "flex flex-col gap-lg items-center rounded-md space-x-m", children: [jsx(Img, { image: { icon: statusIcon, iconVersion: 'normal' }, width: "136", height: "136" }), jsx(Headline, { className: "w-full", title: ok ? 'Ваша заявка отправлена' : 'Не удалось отправить заявку', description: ok ? responseOKDescription : 'Пожалуйста, повторите позднее', headlineVersion: "XS", isEmbedded: true }), jsx(Button, { type: "button", onClick: onClose, children: "\u0425\u043E\u0440\u043E\u0448\u043E" })] }) }));
3024
+ return (jsx(Dialog, { maxWidth: "lg", onClose: onClose, children: jsxs("div", { className: "flex flex-col gap-lg items-center rounded-md space-x-m", children: [jsx(Img, { image: { icon: statusIcon, iconVersion: 'normal' }, width: "136", height: "136" }), jsx(Headline, { className: "w-full", title: ok ? 'Ваша заявка отправлена' : 'Не удалось отправить заявку', description: ok ? responseOKDescription : 'Пожалуйста, повторите позднее', headlineVersion: "XS", isEmbedded: true }), jsx(Button, { type: "button", onClick: onClose, children: "\u0425\u043E\u0440\u043E\u0448\u043E" })] }) }));
3020
3025
  });
3021
3026
 
3022
3027
  const getPartnerComments = (data) => {
@@ -3191,7 +3196,7 @@
3191
3196
  onClose();
3192
3197
  }
3193
3198
  }, [isMaxAttempts]);
3194
- return (jsx(Dialog, { className: "my-6xl max-w-3xl w-full min-h-fit mx-auto rounded-lg px-5xl", onClose: handleClose, children: jsxs("div", { className: "flex flex-col gap-xl items-center", children: [jsx(Paragraph, { align: "text-center", children: "\u0423\u0432\u0430\u0436\u0430\u0435\u043C\u044B\u0439 \u043A\u043B\u0438\u0435\u043D\u0442!" }), jsx(Paragraph, { align: "text-center", children: "\u0414\u043B\u044F \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u0438\u044F \u043A\u0440\u0435\u0434\u0438\u0442\u0430 \u0412\u0430\u043C \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u043E \u043E\u0431\u0440\u0430\u0442\u0438\u0442\u044C\u0441\u044F \u0432 \u043E\u0444\u0438\u0441 \u0411\u0430\u043D\u043A\u0430" }), jsxs("div", { className: "flex flex-col sm:flex-row gap-xl items-center", children: [jsx(Button, { type: "button", version: "secondary", onClick: returnToMainPage, children: "\u0417\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044C" }), isMaxAttempts ? null : (jsx(Button, { type: "button", onClick: onClose, children: "\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C" }))] })] }) }));
3199
+ return (jsx(Dialog, { onClose: handleClose, children: jsxs("div", { className: "flex flex-col gap-xl items-center", children: [jsx(Paragraph, { align: "text-center", children: "\u0423\u0432\u0430\u0436\u0430\u0435\u043C\u044B\u0439 \u043A\u043B\u0438\u0435\u043D\u0442!" }), jsx(Paragraph, { align: "text-center", children: "\u0414\u043B\u044F \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u0438\u044F \u043A\u0440\u0435\u0434\u0438\u0442\u0430 \u0412\u0430\u043C \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u043E \u043E\u0431\u0440\u0430\u0442\u0438\u0442\u044C\u0441\u044F \u0432 \u043E\u0444\u0438\u0441 \u0411\u0430\u043D\u043A\u0430" }), jsxs("div", { className: "flex flex-col sm:flex-row gap-xl items-center", children: [jsx(Button, { type: "button", version: "secondary", onClick: returnToMainPage, children: "\u0417\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044C" }), isMaxAttempts ? null : (jsx(Button, { type: "button", onClick: onClose, children: "\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C" }))] })] }) }));
3195
3200
  });
3196
3201
 
3197
3202
  const ERROR_MESSAGE = 'Некорректно заполненное поле';
@@ -4499,7 +4504,7 @@
4499
4504
 
4500
4505
  const DocumentDialog = JSX(({ src, onClose, onDocumentRead }) => {
4501
4506
  const isMobileMode = useMobileMode();
4502
- return (jsxs(Dialog, { className: "mt-xl max-w-4xl mx-auto px-0 min-h-0 pb-0", onClose: onClose, children: [isMobileMode ? (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: () => {
4507
+ return (jsxs(Dialog, { onClose: onClose, children: [isMobileMode ? (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: () => {
4503
4508
  onDocumentRead?.();
4504
4509
  onClose?.();
4505
4510
  }, children: "\u041E\u0437\u043D\u0430\u043A\u043E\u043C\u0438\u0442\u044C\u0441\u044F" })] }));
@@ -5651,7 +5656,7 @@
5651
5656
  setShowRefuseContent(value === 'REFUSE');
5652
5657
  }, []);
5653
5658
  const consentText = showRefuseContent ? refuseConsentText : defaultConsentText;
5654
- 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, value: confirmStatus, onChange: handleConfirmChange }), jsx(Button, { disabled: !confirmStatus, type: "button", onClick: handleSubmit, children: "\u0414\u0430\u043B\u0435\u0435" })] }) }));
5659
+ return (jsx(Dialog, { 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, value: confirmStatus, onChange: handleConfirmChange }), jsx(Button, { disabled: !confirmStatus, type: "button", onClick: handleSubmit, children: "\u0414\u0430\u043B\u0435\u0435" })] }) }));
5655
5660
  });
5656
5661
 
5657
5662
  const useConsentBkiDialog = (onClose) => {
@@ -5997,7 +6002,7 @@
5997
6002
  const handleGoToNewTask = useCallback(() => {
5998
6003
  navigator.assign(productData.newTaskLink);
5999
6004
  }, []);
6000
- return (jsx(Dialog, { className: "my-6xl max-w-4xl w-full min-h-fit mx-auto rounded-xl py-0", onClose: onClose, children: jsxs("div", { className: "flex flex-col gap-lg items-center mt-xs mx-6xl", children: [jsx(Heading, { className: "whitespace-pre-wrap text-center", title: "\u041D\u0430\u0448\u043B\u0438 \u0447\u0435\u0440\u043D\u043E\u0432\u0438\u043A \u0432\u0430\u0448\u0435\u0439 \u0437\u0430\u044F\u0432\u043A\u0438", headingType: "h5" }), jsxs("div", { className: "flex flex-col gap-m max-w-lg", children: [jsx(DraftActionButton, { title: "\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0437\u0430\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435 \u0447\u0435\u0440\u043D\u043E\u0432\u0438\u043A\u0430", icon: "BankColorIcon", description: createdDate ? `Черновик от ${formatDate(new Date(createdDate))}` : '', onClick: handleGoToDraft }), jsx(DraftActionButton, { title: isFromLead ? 'Продолжить заполнение текущей заявки' : 'Создать новую заявку', icon: "NewLoanIcon", description: productData.description, onClick: isFromLead ? onClose : handleGoToNewTask })] })] }) }));
6005
+ return (jsx(Dialog, { onClose: onClose, children: jsxs("div", { className: "flex flex-col gap-lg items-center mt-xs mx-6xl", children: [jsx(Heading, { className: "whitespace-pre-wrap text-center", title: "\u041D\u0430\u0448\u043B\u0438 \u0447\u0435\u0440\u043D\u043E\u0432\u0438\u043A \u0432\u0430\u0448\u0435\u0439 \u0437\u0430\u044F\u0432\u043A\u0438", headingType: "h5" }), jsxs("div", { className: "flex flex-col gap-m max-w-lg", children: [jsx(DraftActionButton, { title: "\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0437\u0430\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435 \u0447\u0435\u0440\u043D\u043E\u0432\u0438\u043A\u0430", icon: "BankColorIcon", description: createdDate ? `Черновик от ${formatDate(new Date(createdDate))}` : '', onClick: handleGoToDraft }), jsx(DraftActionButton, { title: isFromLead ? 'Продолжить заполнение текущей заявки' : 'Создать новую заявку', icon: "NewLoanIcon", description: productData.description, onClick: isFromLead ? onClose : handleGoToNewTask })] })] }) }));
6001
6006
  });
6002
6007
 
6003
6008
  const EmptyDraftDialog = JSX(function ({ isDebit, onClose = noop }) {
@@ -6009,7 +6014,7 @@
6009
6014
  const handleGoMainPage = useCallback(() => {
6010
6015
  navigator.assign('/');
6011
6016
  }, []);
6012
- 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-lg", children: [jsx(Heading, { className: "text-center", title: "\u0417\u0430\u044F\u0432\u043A\u0438 \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u044B", headingType: "h3" }), jsx(Paragraph, { size: "text-l", align: "text-center", children: "\u041F\u043E \u0434\u0430\u043D\u043D\u043E\u043C\u0443 \u043D\u043E\u043C\u0435\u0440\u0443 \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u043E \u043D\u0435\u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u043D\u044B\u0445 \u0437\u0430\u044F\u0432\u043E\u043A. \u0412\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u0437\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u044C \u043D\u043E\u0432\u0443\u044E \u0437\u0430\u044F\u0432\u043A\u0443 \u0438\u043B\u0438 \u0432\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043D\u0430 \u0433\u043B\u0430\u0432\u043D\u0443\u044E \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0443" }), jsx(Button, { type: "button", className: "w-full", onClick: handleGoNewTask, children: "\u0417\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u044C \u043D\u043E\u0432\u0443\u044E \u0437\u0430\u044F\u0432\u043A\u0443" }), jsx(Button, { type: "button", version: "secondary", className: "w-full", onClick: handleGoMainPage, children: "\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043D\u0430 \u0433\u043B\u0430\u0432\u043D\u0443\u044E" })] }) }));
6017
+ return (jsx(Dialog, { onClose: onClose, children: jsxs("div", { className: "flex flex-col gap-lg", children: [jsx(Heading, { className: "text-center", title: "\u0417\u0430\u044F\u0432\u043A\u0438 \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u044B", headingType: "h3" }), jsx(Paragraph, { size: "text-l", align: "text-center", children: "\u041F\u043E \u0434\u0430\u043D\u043D\u043E\u043C\u0443 \u043D\u043E\u043C\u0435\u0440\u0443 \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u043E \u043D\u0435\u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u043D\u044B\u0445 \u0437\u0430\u044F\u0432\u043E\u043A. \u0412\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u0437\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u044C \u043D\u043E\u0432\u0443\u044E \u0437\u0430\u044F\u0432\u043A\u0443 \u0438\u043B\u0438 \u0432\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043D\u0430 \u0433\u043B\u0430\u0432\u043D\u0443\u044E \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0443" }), jsx(Button, { type: "button", className: "w-full", onClick: handleGoNewTask, children: "\u0417\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u044C \u043D\u043E\u0432\u0443\u044E \u0437\u0430\u044F\u0432\u043A\u0443" }), jsx(Button, { type: "button", version: "secondary", className: "w-full", onClick: handleGoMainPage, children: "\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043D\u0430 \u0433\u043B\u0430\u0432\u043D\u0443\u044E" })] }) }));
6013
6018
  });
6014
6019
 
6015
6020
  const useDraftDialog = () => {
@@ -7820,7 +7825,7 @@
7820
7825
  const FAILED_TITLE = 'Ошибка перевода';
7821
7826
  const SubmitFailedDialog = ({ onClose, errorCode, errorMessage, }) => {
7822
7827
  const description = errorCode ? `Код ошибки - ${errorCode}` : 'Пожалуйста, повторите позднее';
7823
- return (jsx(Dialog, { className: "my-6xl max-w-lg w-full min-h-fit mx-auto", onClose: onClose, children: jsxs("div", { className: "flex flex-col gap-lg items-center rounded-md space-x-m", children: [jsx(Img, { image: { icon: 'ResponseFailIcon', iconVersion: 'normal' }, width: "136", height: "136" }), jsx(Headline, { className: "w-full", title: FAILED_TITLE, description: description, headlineVersion: "XS", isEmbedded: true }), errorMessage ? (jsxs("div", { className: "bg-secondary-dark rounded-xl p-m grid gap-m grid-cols-12", children: [jsx("div", { className: "col-span-8", children: errorMessage }), jsx("div", { className: "col-span-4", children: jsx(Img, { image: { icon: 'ResponseFailIcon', iconVersion: 'normal' } }) })] })) : null] }) }));
7828
+ return (jsx(Dialog, { maxWidth: "lg", onClose: onClose, children: jsxs("div", { className: "flex flex-col gap-lg items-center rounded-md space-x-m", children: [jsx(Img, { image: { icon: 'ResponseFailIcon', iconVersion: 'normal' }, width: "136", height: "136" }), jsx(Headline, { className: "w-full", title: FAILED_TITLE, description: description, headlineVersion: "XS", isEmbedded: true }), errorMessage ? (jsxs("div", { className: "bg-secondary-dark rounded-xl p-m grid gap-m grid-cols-12", children: [jsx("div", { className: "col-span-8", children: errorMessage }), jsx("div", { className: "col-span-4", children: jsx(Img, { image: { icon: 'ResponseFailIcon', iconVersion: 'normal' } }) })] })) : null] }) }));
7824
7829
  };
7825
7830
 
7826
7831
  const useSubmitCardTransfer = (formType) => {
@@ -10402,7 +10407,7 @@
10402
10407
  return docFormat.includes('/') ? docFormat.replace(regexp, '') : docFormat;
10403
10408
  };
10404
10409
 
10405
- const ReportDialog = JSX(({ href, __html, target, onClose }) => (jsxs(Dialog, { className: "my-6xl min-h-fit w-fit mx-auto", onClose: onClose, children: [__html ? jsx(RichText, { __html: __html }) : null, jsxs("div", { className: "flex flex-row mx-auto w-fit gap-lg py-lg", children: [jsx(Link, { href: href, target: target, version: "primary", ariaLabel: "\u0421\u0441\u044B\u043B\u043A\u0430 \u043D\u0430 \u0441\u043E\u0433\u043B\u0430\u0441\u0438\u0435", onClick: onClose, children: "\u042F \u0441\u043E\u0433\u043B\u0430\u0441\u0435\u043D" }), jsx(Button, { type: "button", version: "secondary", onClick: onClose, children: "\u042F \u043D\u0435 \u0441\u043E\u0433\u043B\u0430\u0441\u0435\u043D" })] }), jsx("div", { children: "\u041D\u0430\u0436\u0438\u043C\u0430\u044F \u043A\u043D\u043E\u043F\u043A\u0443 \u00AB\u042F \u0421\u041E\u0413\u041B\u0410\u0421\u0415\u041D\u00BB \u043D\u0438\u0436\u0435 \u0412\u044B \u043F\u0440\u0438\u043D\u0438\u043C\u0430\u0435\u0442\u0435 \u0434\u0430\u043D\u043D\u044B\u0435 \u0443\u0441\u043B\u043E\u0432\u0438\u044F. \u0420\u0430\u0441\u043F\u0440\u043E\u0441\u0442\u0440\u0430\u043D\u0435\u043D\u0438\u0435 \u0438\u043B\u0438 \u0440\u0430\u0441\u043A\u0440\u044B\u0442\u0438\u0435 \u043B\u044E\u0431\u043E\u0439 \u0447\u0430\u0441\u0442\u0438 \u0434\u0430\u043D\u043D\u043E\u0433\u043E \u0417\u0430\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u044F \u0438\u043B\u0438 \u043B\u044E\u0431\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438, \u0438\u043B\u0438 \u0440\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0430\u0446\u0438\u0438 \u0432 \u043D\u0435\u043C \u0437\u0430\u043F\u0440\u0435\u0449\u0435\u043D\u043E.\u00BB" })] })));
10410
+ const ReportDialog = JSX(({ href, __html, target, onClose }) => (jsxs(Dialog, { maxWidth: "lg", onClose: onClose, children: [__html ? jsx(RichText, { __html: __html }) : null, jsxs("div", { className: "flex flex-row mx-auto w-fit gap-lg py-lg", children: [jsx(Link, { href: href, target: target, version: "primary", ariaLabel: "\u0421\u0441\u044B\u043B\u043A\u0430 \u043D\u0430 \u0441\u043E\u0433\u043B\u0430\u0441\u0438\u0435", onClick: onClose, children: "\u042F \u0441\u043E\u0433\u043B\u0430\u0441\u0435\u043D" }), jsx(Button, { type: "button", version: "secondary", onClick: onClose, children: "\u042F \u043D\u0435 \u0441\u043E\u0433\u043B\u0430\u0441\u0435\u043D" })] }), jsx("div", { children: "\u041D\u0430\u0436\u0438\u043C\u0430\u044F \u043A\u043D\u043E\u043F\u043A\u0443 \u00AB\u042F \u0421\u041E\u0413\u041B\u0410\u0421\u0415\u041D\u00BB \u043D\u0438\u0436\u0435 \u0412\u044B \u043F\u0440\u0438\u043D\u0438\u043C\u0430\u0435\u0442\u0435 \u0434\u0430\u043D\u043D\u044B\u0435 \u0443\u0441\u043B\u043E\u0432\u0438\u044F. \u0420\u0430\u0441\u043F\u0440\u043E\u0441\u0442\u0440\u0430\u043D\u0435\u043D\u0438\u0435 \u0438\u043B\u0438 \u0440\u0430\u0441\u043A\u0440\u044B\u0442\u0438\u0435 \u043B\u044E\u0431\u043E\u0439 \u0447\u0430\u0441\u0442\u0438 \u0434\u0430\u043D\u043D\u043E\u0433\u043E \u0417\u0430\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u044F \u0438\u043B\u0438 \u043B\u044E\u0431\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438, \u0438\u043B\u0438 \u0440\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0430\u0446\u0438\u0438 \u0432 \u043D\u0435\u043C \u0437\u0430\u043F\u0440\u0435\u0449\u0435\u043D\u043E.\u00BB" })] })));
10406
10411
 
10407
10412
  const ReportDialogButton = JSX(({ text, href, target, __html, icon }) => {
10408
10413
  const { open } = useDialog(ReportDialog);
@@ -10822,10 +10827,11 @@
10822
10827
  locationStore.location = _;
10823
10828
  onClose?.();
10824
10829
  }, [locationStore, onClose]);
10825
- return (jsxs(Dialog, { className: "pb-20", head: jsxs("div", { children: [jsx(Text, { size: "text-h4", color: "text-primary-text", children: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0438\u043B\u0438\u0430\u043B" }), jsx(SelectedLocation, { defaultLocation: branches?.default }), jsx(SearchBar, { onSearch: setQuery, searchTerm: query })] }), onClose: onClose, children: [query && query.length >= SEARCH_TERM_MIN_LENGTH ? (jsx("div", { children: regions
10830
+ return (jsxs(Dialog, { head: renderHead(query, setQuery, branches), onClose: onClose, children: [query && query.length >= SEARCH_TERM_MIN_LENGTH ? (jsx("div", { children: regions
10826
10831
  .filter(({ name }) => name && jaroWinklerDistance(name.toLowerCase())(query.toLowerCase()) >= 0.8)
10827
10832
  .map(renderRegion(branches?.dataSelect, handleChangeLocation)) })) : (jsx("div", { className: "columns-1 sm:columns-3 md:columns-4 lg:columns-5", children: Array.from(regionsGroupByLetter.entries()).map(renderRegionGroup(handleChangeLocation, branches?.dataSelect)) })), renderForeignOffices(foreignOffices)] }));
10828
10833
  });
10834
+ const renderHead = (query, setQuery, branches) => (jsxs("div", { children: [jsx(Text, { size: "text-h4", color: "text-primary-text", children: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0438\u043B\u0438\u0430\u043B" }), jsx(SelectedLocation, { defaultLocation: branches?.default }), jsx(SearchBar, { onSearch: setQuery, searchTerm: query })] }));
10829
10835
  const regionFirstLetter = (region) => region.name?.charAt(0) ?? '';
10830
10836
  const cleanUpRegions = (regions) => regions.map((region) => ({
10831
10837
  ...region,
@@ -11403,7 +11409,7 @@
11403
11409
  slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
11404
11410
  });
11405
11411
 
11406
- const packageVersion = "0.14.894";
11412
+ const packageVersion = "0.14.895";
11407
11413
 
11408
11414
  exports.Blocks = Blocks;
11409
11415
  exports.ContentPage = ContentPage;