@redneckz/wildless-cms-uni-blocks 0.6.48 → 0.6.49

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 (29) hide show
  1. package/bundle/bundle.umd.js +10 -5
  2. package/bundle/bundle.umd.min.js +1 -1
  3. package/bundle/components/Footer/MediaButton.d.ts +3 -0
  4. package/bundle/components/Footer/SocialMedia.d.ts +3 -0
  5. package/dist/components/Footer/MediaButton.d.ts +3 -0
  6. package/dist/components/Footer/MediaButton.js +8 -3
  7. package/dist/components/Footer/MediaButton.js.map +1 -1
  8. package/dist/components/Footer/SocialMedia.d.ts +3 -0
  9. package/dist/components/Footer/SocialMedia.js +1 -1
  10. package/dist/components/Footer/SocialMedia.js.map +1 -1
  11. package/lib/components/Footer/MediaButton.d.ts +3 -0
  12. package/lib/components/Footer/MediaButton.js +8 -3
  13. package/lib/components/Footer/MediaButton.js.map +1 -1
  14. package/lib/components/Footer/SocialMedia.d.ts +3 -0
  15. package/lib/components/Footer/SocialMedia.js +1 -1
  16. package/lib/components/Footer/SocialMedia.js.map +1 -1
  17. package/mobile/bundle/bundle.umd.js +9 -4
  18. package/mobile/bundle/bundle.umd.min.js +1 -1
  19. package/mobile/bundle/components/Footer/MediaButton.d.ts +3 -0
  20. package/mobile/dist/components/Footer/MediaButton.d.ts +3 -0
  21. package/mobile/dist/components/Footer/MediaButton.js +8 -3
  22. package/mobile/dist/components/Footer/MediaButton.js.map +1 -1
  23. package/mobile/lib/components/Footer/MediaButton.d.ts +3 -0
  24. package/mobile/lib/components/Footer/MediaButton.js +8 -3
  25. package/mobile/lib/components/Footer/MediaButton.js.map +1 -1
  26. package/mobile/src/components/Footer/MediaButton.tsx +46 -36
  27. package/package.json +1 -1
  28. package/src/components/Footer/MediaButton.tsx +46 -36
  29. package/src/components/Footer/SocialMedia.tsx +20 -10
@@ -1,7 +1,10 @@
1
1
  import type { BlockVersion } from '../../model/BlockVersion';
2
+ export declare type ButtonSize = 'default' | 'small';
2
3
  interface MediaButtonProps {
3
4
  href?: string;
4
5
  version?: BlockVersion;
6
+ isRounded?: boolean;
7
+ buttonSize?: ButtonSize;
5
8
  }
6
9
  export declare const MediaButton: import("@redneckz/uni-jsx").UNIComponent<MediaButtonProps, any, any>;
7
10
  export {};
@@ -1,8 +1,11 @@
1
1
  import type { BlockVersion } from '../../model/BlockVersion';
2
2
  import type { LinkProps } from '../../model/LinkProps';
3
+ import { type ButtonSize } from './MediaButton';
3
4
  export interface SocialMediaProps {
4
5
  className?: string;
5
6
  media?: Omit<LinkProps, 'text'>[];
6
7
  version?: BlockVersion;
8
+ isRounded?: boolean;
9
+ buttonSize?: ButtonSize;
7
10
  }
8
11
  export declare const SocialMedia: import("@redneckz/uni-jsx").UNIComponent<SocialMediaProps, any, any>;
@@ -1,7 +1,10 @@
1
1
  import type { BlockVersion } from '../../model/BlockVersion';
2
+ export declare type ButtonSize = 'default' | 'small';
2
3
  interface MediaButtonProps {
3
4
  href?: string;
4
5
  version?: BlockVersion;
6
+ isRounded?: boolean;
7
+ buttonSize?: ButtonSize;
5
8
  }
6
9
  export declare const MediaButton: import("@redneckz/uni-jsx").UNIComponent<MediaButtonProps, any, any>;
7
10
  export {};
@@ -32,7 +32,11 @@ const ICONS_MAP = [
32
32
  label: 'Google Play',
33
33
  },
34
34
  ];
35
- exports.MediaButton = (0, uni_jsx_1.JSX)(({ version = 'primary', ...rest }) => {
35
+ const BUTTON_SIZE = {
36
+ default: ' w-14 h-14',
37
+ small: ' w-12 h-12',
38
+ };
39
+ exports.MediaButton = (0, uni_jsx_1.JSX)(({ version = 'primary', isRounded = false, buttonSize = 'default', ...rest }) => {
36
40
  const link = (0, useLink_1.useLink)();
37
41
  const { href, onClick } = link(rest);
38
42
  const { icon, label } = ICONS_MAP.find(({ origins }) => origins.some((_) => href?.includes(_))) || {};
@@ -42,7 +46,8 @@ exports.MediaButton = (0, uni_jsx_1.JSX)(({ version = 'primary', ...rest }) => {
42
46
  const classes = version === 'secondary'
43
47
  ? 'bg-white hover:bg-secondary-hover'
44
48
  : 'border-solid border border-main-divider hover:border-transparent hover:bg-primary-main';
45
- const isPrimary = version === 'primary';
46
- return ((0, jsx_runtime_1.jsx)("a", { className: `flex items-center justify-center rounded-md w-14 h-14 group box-border ${classes} ${isPrimary ? 'hover:text-black' : ''}`, href: href, "aria-label": label, target: "_blank", rel: "noopener noreferrer", onClick: onClick, children: icon ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { image: (0, getIconWithVersion_1.getIconWithVersion)(icon), imageClassName: "group-hover:text-white", width: "24", height: "24", asSVG: true })) : null }));
49
+ const isPrimary = version === 'primary' ? 'hover:text-black' : '';
50
+ const rounded = isRounded ? 'rounded-full' : 'rounded-md';
51
+ return ((0, jsx_runtime_1.jsx)("a", { className: `flex items-center justify-center group box-border ${classes} ${rounded} ${isPrimary} ${BUTTON_SIZE[buttonSize]}`, href: href, "aria-label": label, target: "_blank", rel: "noopener noreferrer", onClick: onClick, children: icon ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { image: (0, getIconWithVersion_1.getIconWithVersion)(icon), imageClassName: "group-hover:text-white", width: "24", height: "24", asSVG: true })) : null }));
47
52
  });
48
53
  //# sourceMappingURL=MediaButton.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"MediaButton.js","sourceRoot":"","sources":["../../../src/components/Footer/MediaButton.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;AAG9C,8CAA2C;AAC3C,uEAAoE;AAEpE,MAAM,SAAS,GAIV;IACH;QACE,OAAO,EAAE,CAAC,MAAM,EAAE,cAAc,CAAC;QACjC,IAAI,EAAE,EAAE,IAAI,EAAE,cAAc,EAAE;QAC9B,KAAK,EAAE,UAAU;KAClB;IACD;QACE,OAAO,EAAE,CAAC,QAAQ,CAAC;QACnB,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACxB,KAAK,EAAE,WAAW;KACnB;IACD;QACE,OAAO,EAAE,CAAC,OAAO,CAAC;QAClB,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACxB,KAAK,EAAE,eAAe;KACvB;IACD;QACE,OAAO,EAAE,CAAC,gBAAgB,CAAC;QAC3B,IAAI,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;QAC3B,KAAK,EAAE,WAAW;KACnB;IACD;QACE,OAAO,EAAE,CAAC,iBAAiB,CAAC;QAC5B,IAAI,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE;QAChC,KAAK,EAAE,aAAa;KACrB;CACF,CAAC;AAOW,QAAA,WAAW,GAAG,IAAA,aAAG,EAAmB,CAAC,EAAE,OAAO,GAAG,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IACpF,MAAM,IAAI,GAAG,IAAA,iBAAO,GAAE,CAAC;IACvB,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC;IAErC,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GACnB,SAAS,CAAC,IAAI,CAAC,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;IAEhF,IAAI,CAAC,IAAI,EAAE;QACT,OAAO,IAAI,CAAC;KACb;IAED,MAAM,OAAO,GACX,OAAO,KAAK,WAAW;QACrB,CAAC,CAAC,mCAAmC;QACrC,CAAC,CAAC,wFAAwF,CAAC;IAE/F,MAAM,SAAS,GAAG,OAAO,KAAK,SAAS,CAAC;IAExC,OAAO,CACL,8BACE,SAAS,EAAE,0EAA0E,OAAO,IAC1F,SAAS,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,EACnC,EAAE,EACF,IAAI,EAAE,IAAI,gBACE,KAAK,EACjB,MAAM,EAAC,QAAQ,EACf,GAAG,EAAC,qBAAqB,EACzB,OAAO,EAAE,OAAO,YAEf,IAAI,CAAC,CAAC,CAAC,CACN,uBAAC,SAAG,IACF,KAAK,EAAE,IAAA,uCAAkB,EAAC,IAAI,CAAC,EAC/B,cAAc,EAAC,wBAAwB,EACvC,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,KAAK,SACL,CACH,CAAC,CAAC,CAAC,IAAI,GACN,CACL,CAAC;AACJ,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"MediaButton.js","sourceRoot":"","sources":["../../../src/components/Footer/MediaButton.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;AAG9C,8CAA2C;AAC3C,uEAAoE;AAEpE,MAAM,SAAS,GAIV;IACH;QACE,OAAO,EAAE,CAAC,MAAM,EAAE,cAAc,CAAC;QACjC,IAAI,EAAE,EAAE,IAAI,EAAE,cAAc,EAAE;QAC9B,KAAK,EAAE,UAAU;KAClB;IACD;QACE,OAAO,EAAE,CAAC,QAAQ,CAAC;QACnB,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACxB,KAAK,EAAE,WAAW;KACnB;IACD;QACE,OAAO,EAAE,CAAC,OAAO,CAAC;QAClB,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACxB,KAAK,EAAE,eAAe;KACvB;IACD;QACE,OAAO,EAAE,CAAC,gBAAgB,CAAC;QAC3B,IAAI,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;QAC3B,KAAK,EAAE,WAAW;KACnB;IACD;QACE,OAAO,EAAE,CAAC,iBAAiB,CAAC;QAC5B,IAAI,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE;QAChC,KAAK,EAAE,aAAa;KACrB;CACF,CAAC;AAWF,MAAM,WAAW,GAAG;IAClB,OAAO,EAAE,YAAY;IACrB,KAAK,EAAE,YAAY;CACpB,CAAC;AAEW,QAAA,WAAW,GAAG,IAAA,aAAG,EAC5B,CAAC,EAAE,OAAO,GAAG,SAAS,EAAE,SAAS,GAAG,KAAK,EAAE,UAAU,GAAG,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IAC9E,MAAM,IAAI,GAAG,IAAA,iBAAO,GAAE,CAAC;IACvB,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC;IAErC,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GACnB,SAAS,CAAC,IAAI,CAAC,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;IAEhF,IAAI,CAAC,IAAI,EAAE;QACT,OAAO,IAAI,CAAC;KACb;IAED,MAAM,OAAO,GACX,OAAO,KAAK,WAAW;QACrB,CAAC,CAAC,mCAAmC;QACrC,CAAC,CAAC,wFAAwF,CAAC;IAE/F,MAAM,SAAS,GAAG,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,EAAE,CAAC;IAClE,MAAM,OAAO,GAAG,SAAS,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,YAAY,CAAC;IAE1D,OAAO,CACL,8BACE,SAAS,EAAE,qDAAqD,OAAO,IAAI,OAAO,IAAI,SAAS,IAAI,WAAW,CAAC,UAAU,CAAC,EAAE,EAC5H,IAAI,EAAE,IAAI,gBACE,KAAK,EACjB,MAAM,EAAC,QAAQ,EACf,GAAG,EAAC,qBAAqB,EACzB,OAAO,EAAE,OAAO,YAEf,IAAI,CAAC,CAAC,CAAC,CACN,uBAAC,SAAG,IACF,KAAK,EAAE,IAAA,uCAAkB,EAAC,IAAI,CAAC,EAC/B,cAAc,EAAC,wBAAwB,EACvC,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,KAAK,SACL,CACH,CAAC,CAAC,CAAC,IAAI,GACN,CACL,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -1,8 +1,11 @@
1
1
  import type { BlockVersion } from '../../model/BlockVersion';
2
2
  import type { LinkProps } from '../../model/LinkProps';
3
+ import { type ButtonSize } from './MediaButton';
3
4
  export interface SocialMediaProps {
4
5
  className?: string;
5
6
  media?: Omit<LinkProps, 'text'>[];
6
7
  version?: BlockVersion;
8
+ isRounded?: boolean;
9
+ buttonSize?: ButtonSize;
7
10
  }
8
11
  export declare const SocialMedia: import("@redneckz/uni-jsx").UNIComponent<SocialMediaProps, any, any>;
@@ -3,5 +3,5 @@ exports.SocialMedia = void 0;
3
3
  const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
4
  const uni_jsx_1 = require("@redneckz/uni-jsx");
5
5
  const MediaButton_1 = require("./MediaButton");
6
- exports.SocialMedia = (0, uni_jsx_1.JSX)(({ className = '', media, version, children }) => ((0, jsx_runtime_1.jsxs)("div", { className: "font-sans", children: [(0, jsx_runtime_1.jsx)("div", { className: `flex gap-2.5 ${className}`, children: media?.map((_, index) => ((0, jsx_runtime_1.jsx)(MediaButton_1.MediaButton, { version: version, ..._ }, String(index)))) }), (0, jsx_runtime_1.jsx)("span", { className: "text-s-light text-secondary-text", children: children })] })));
6
+ exports.SocialMedia = (0, uni_jsx_1.JSX)(({ className = '', media, version, isRounded = false, buttonSize, children }) => ((0, jsx_runtime_1.jsxs)("div", { className: "font-sans", children: [(0, jsx_runtime_1.jsx)("div", { className: `flex gap-2.5 ${className}`, children: media?.map((_, index) => ((0, jsx_runtime_1.jsx)(MediaButton_1.MediaButton, { version: version, isRounded: isRounded, buttonSize: buttonSize, ..._ }, String(index)))) }), (0, jsx_runtime_1.jsx)("span", { className: "text-s-light text-secondary-text", children: children })] })));
7
7
  //# sourceMappingURL=SocialMedia.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SocialMedia.js","sourceRoot":"","sources":["../../../src/components/Footer/SocialMedia.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,+CAA4C;AAQ/B,QAAA,WAAW,GAAG,IAAA,aAAG,EAAmB,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CACjG,iCAAK,SAAS,EAAC,WAAW,aACxB,gCAAK,SAAS,EAAE,gBAAgB,SAAS,EAAE,YACxC,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,CACxB,uBAAC,yBAAW,IAAqB,OAAO,EAAE,OAAO,KAAM,CAAC,IAAtC,MAAM,CAAC,KAAK,CAAC,CAA6B,CAC7D,CAAC,GACE,EACN,iCAAM,SAAS,EAAC,kCAAkC,YAAE,QAAQ,GAAQ,IAChE,CACP,CAAC,CAAC"}
1
+ {"version":3,"file":"SocialMedia.js","sourceRoot":"","sources":["../../../src/components/Footer/SocialMedia.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,+CAA6D;AAUhD,QAAA,WAAW,GAAG,IAAA,aAAG,EAC5B,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,GAAG,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CAC/E,iCAAK,SAAS,EAAC,WAAW,aACxB,gCAAK,SAAS,EAAE,gBAAgB,SAAS,EAAE,YACxC,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,CACxB,uBAAC,yBAAW,IAEV,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,SAAS,EACpB,UAAU,EAAE,UAAU,KAClB,CAAC,IAJA,MAAM,CAAC,KAAK,CAAC,CAKlB,CACH,CAAC,GACE,EACN,iCAAM,SAAS,EAAC,kCAAkC,YAAE,QAAQ,GAAQ,IAChE,CACP,CACF,CAAC"}
@@ -1,7 +1,10 @@
1
1
  import type { BlockVersion } from '../../model/BlockVersion';
2
+ export declare type ButtonSize = 'default' | 'small';
2
3
  interface MediaButtonProps {
3
4
  href?: string;
4
5
  version?: BlockVersion;
6
+ isRounded?: boolean;
7
+ buttonSize?: ButtonSize;
5
8
  }
6
9
  export declare const MediaButton: import("@redneckz/uni-jsx").UNIComponent<MediaButtonProps, any, any>;
7
10
  export {};
@@ -30,7 +30,11 @@ const ICONS_MAP = [
30
30
  label: 'Google Play',
31
31
  },
32
32
  ];
33
- export const MediaButton = JSX(({ version = 'primary', ...rest }) => {
33
+ const BUTTON_SIZE = {
34
+ default: ' w-14 h-14',
35
+ small: ' w-12 h-12',
36
+ };
37
+ export const MediaButton = JSX(({ version = 'primary', isRounded = false, buttonSize = 'default', ...rest }) => {
34
38
  const link = useLink();
35
39
  const { href, onClick } = link(rest);
36
40
  const { icon, label } = ICONS_MAP.find(({ origins }) => origins.some((_) => href?.includes(_))) || {};
@@ -40,7 +44,8 @@ export const MediaButton = JSX(({ version = 'primary', ...rest }) => {
40
44
  const classes = version === 'secondary'
41
45
  ? 'bg-white hover:bg-secondary-hover'
42
46
  : 'border-solid border border-main-divider hover:border-transparent hover:bg-primary-main';
43
- const isPrimary = version === 'primary';
44
- return (_jsx("a", { className: `flex items-center justify-center rounded-md w-14 h-14 group box-border ${classes} ${isPrimary ? 'hover:text-black' : ''}`, href: href, "aria-label": label, target: "_blank", rel: "noopener noreferrer", onClick: onClick, children: icon ? (_jsx(Img, { image: getIconWithVersion(icon), imageClassName: "group-hover:text-white", width: "24", height: "24", asSVG: true })) : null }));
47
+ const isPrimary = version === 'primary' ? 'hover:text-black' : '';
48
+ const rounded = isRounded ? 'rounded-full' : 'rounded-md';
49
+ return (_jsx("a", { className: `flex items-center justify-center group box-border ${classes} ${rounded} ${isPrimary} ${BUTTON_SIZE[buttonSize]}`, href: href, "aria-label": label, target: "_blank", rel: "noopener noreferrer", onClick: onClick, children: icon ? (_jsx(Img, { image: getIconWithVersion(icon), imageClassName: "group-hover:text-white", width: "24", height: "24", asSVG: true })) : null }));
45
50
  });
46
51
  //# sourceMappingURL=MediaButton.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"MediaButton.js","sourceRoot":"","sources":["../../../src/components/Footer/MediaButton.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAG9C,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAEpE,MAAM,SAAS,GAIV;IACH;QACE,OAAO,EAAE,CAAC,MAAM,EAAE,cAAc,CAAC;QACjC,IAAI,EAAE,EAAE,IAAI,EAAE,cAAc,EAAE;QAC9B,KAAK,EAAE,UAAU;KAClB;IACD;QACE,OAAO,EAAE,CAAC,QAAQ,CAAC;QACnB,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACxB,KAAK,EAAE,WAAW;KACnB;IACD;QACE,OAAO,EAAE,CAAC,OAAO,CAAC;QAClB,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACxB,KAAK,EAAE,eAAe;KACvB;IACD;QACE,OAAO,EAAE,CAAC,gBAAgB,CAAC;QAC3B,IAAI,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;QAC3B,KAAK,EAAE,WAAW;KACnB;IACD;QACE,OAAO,EAAE,CAAC,iBAAiB,CAAC;QAC5B,IAAI,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE;QAChC,KAAK,EAAE,aAAa;KACrB;CACF,CAAC;AAOF,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAAmB,CAAC,EAAE,OAAO,GAAG,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IACpF,MAAM,IAAI,GAAG,OAAO,EAAE,CAAC;IACvB,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC;IAErC,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GACnB,SAAS,CAAC,IAAI,CAAC,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;IAEhF,IAAI,CAAC,IAAI,EAAE;QACT,OAAO,IAAI,CAAC;KACb;IAED,MAAM,OAAO,GACX,OAAO,KAAK,WAAW;QACrB,CAAC,CAAC,mCAAmC;QACrC,CAAC,CAAC,wFAAwF,CAAC;IAE/F,MAAM,SAAS,GAAG,OAAO,KAAK,SAAS,CAAC;IAExC,OAAO,CACL,YACE,SAAS,EAAE,0EAA0E,OAAO,IAC1F,SAAS,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,EACnC,EAAE,EACF,IAAI,EAAE,IAAI,gBACE,KAAK,EACjB,MAAM,EAAC,QAAQ,EACf,GAAG,EAAC,qBAAqB,EACzB,OAAO,EAAE,OAAO,YAEf,IAAI,CAAC,CAAC,CAAC,CACN,KAAC,GAAG,IACF,KAAK,EAAE,kBAAkB,CAAC,IAAI,CAAC,EAC/B,cAAc,EAAC,wBAAwB,EACvC,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,KAAK,SACL,CACH,CAAC,CAAC,CAAC,IAAI,GACN,CACL,CAAC;AACJ,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"MediaButton.js","sourceRoot":"","sources":["../../../src/components/Footer/MediaButton.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAG9C,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAEpE,MAAM,SAAS,GAIV;IACH;QACE,OAAO,EAAE,CAAC,MAAM,EAAE,cAAc,CAAC;QACjC,IAAI,EAAE,EAAE,IAAI,EAAE,cAAc,EAAE;QAC9B,KAAK,EAAE,UAAU;KAClB;IACD;QACE,OAAO,EAAE,CAAC,QAAQ,CAAC;QACnB,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACxB,KAAK,EAAE,WAAW;KACnB;IACD;QACE,OAAO,EAAE,CAAC,OAAO,CAAC;QAClB,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACxB,KAAK,EAAE,eAAe;KACvB;IACD;QACE,OAAO,EAAE,CAAC,gBAAgB,CAAC;QAC3B,IAAI,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;QAC3B,KAAK,EAAE,WAAW;KACnB;IACD;QACE,OAAO,EAAE,CAAC,iBAAiB,CAAC;QAC5B,IAAI,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE;QAChC,KAAK,EAAE,aAAa;KACrB;CACF,CAAC;AAWF,MAAM,WAAW,GAAG;IAClB,OAAO,EAAE,YAAY;IACrB,KAAK,EAAE,YAAY;CACpB,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAC5B,CAAC,EAAE,OAAO,GAAG,SAAS,EAAE,SAAS,GAAG,KAAK,EAAE,UAAU,GAAG,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IAC9E,MAAM,IAAI,GAAG,OAAO,EAAE,CAAC;IACvB,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC;IAErC,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GACnB,SAAS,CAAC,IAAI,CAAC,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;IAEhF,IAAI,CAAC,IAAI,EAAE;QACT,OAAO,IAAI,CAAC;KACb;IAED,MAAM,OAAO,GACX,OAAO,KAAK,WAAW;QACrB,CAAC,CAAC,mCAAmC;QACrC,CAAC,CAAC,wFAAwF,CAAC;IAE/F,MAAM,SAAS,GAAG,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,EAAE,CAAC;IAClE,MAAM,OAAO,GAAG,SAAS,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,YAAY,CAAC;IAE1D,OAAO,CACL,YACE,SAAS,EAAE,qDAAqD,OAAO,IAAI,OAAO,IAAI,SAAS,IAAI,WAAW,CAAC,UAAU,CAAC,EAAE,EAC5H,IAAI,EAAE,IAAI,gBACE,KAAK,EACjB,MAAM,EAAC,QAAQ,EACf,GAAG,EAAC,qBAAqB,EACzB,OAAO,EAAE,OAAO,YAEf,IAAI,CAAC,CAAC,CAAC,CACN,KAAC,GAAG,IACF,KAAK,EAAE,kBAAkB,CAAC,IAAI,CAAC,EAC/B,cAAc,EAAC,wBAAwB,EACvC,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,KAAK,SACL,CACH,CAAC,CAAC,CAAC,IAAI,GACN,CACL,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -1,8 +1,11 @@
1
1
  import type { BlockVersion } from '../../model/BlockVersion';
2
2
  import type { LinkProps } from '../../model/LinkProps';
3
+ import { type ButtonSize } from './MediaButton';
3
4
  export interface SocialMediaProps {
4
5
  className?: string;
5
6
  media?: Omit<LinkProps, 'text'>[];
6
7
  version?: BlockVersion;
8
+ isRounded?: boolean;
9
+ buttonSize?: ButtonSize;
7
10
  }
8
11
  export declare const SocialMedia: import("@redneckz/uni-jsx").UNIComponent<SocialMediaProps, any, any>;
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
2
2
  import { JSX } from '@redneckz/uni-jsx';
3
3
  import { MediaButton } from './MediaButton.js';
4
- export const SocialMedia = JSX(({ className = '', media, version, children }) => (_jsxs("div", { className: "font-sans", children: [_jsx("div", { className: `flex gap-2.5 ${className}`, children: media?.map((_, index) => (_jsx(MediaButton, { version: version, ..._ }, String(index)))) }), _jsx("span", { className: "text-s-light text-secondary-text", children: children })] })));
4
+ export const SocialMedia = JSX(({ className = '', media, version, isRounded = false, buttonSize, children }) => (_jsxs("div", { className: "font-sans", children: [_jsx("div", { className: `flex gap-2.5 ${className}`, children: media?.map((_, index) => (_jsx(MediaButton, { version: version, isRounded: isRounded, buttonSize: buttonSize, ..._ }, String(index)))) }), _jsx("span", { className: "text-s-light text-secondary-text", children: children })] })));
5
5
  //# sourceMappingURL=SocialMedia.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SocialMedia.js","sourceRoot":"","sources":["../../../src/components/Footer/SocialMedia.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGxC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAQ5C,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAAmB,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CACjG,eAAK,SAAS,EAAC,WAAW,aACxB,cAAK,SAAS,EAAE,gBAAgB,SAAS,EAAE,YACxC,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,CACxB,KAAC,WAAW,IAAqB,OAAO,EAAE,OAAO,KAAM,CAAC,IAAtC,MAAM,CAAC,KAAK,CAAC,CAA6B,CAC7D,CAAC,GACE,EACN,eAAM,SAAS,EAAC,kCAAkC,YAAE,QAAQ,GAAQ,IAChE,CACP,CAAC,CAAC"}
1
+ {"version":3,"file":"SocialMedia.js","sourceRoot":"","sources":["../../../src/components/Footer/SocialMedia.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGxC,OAAO,EAAmB,WAAW,EAAE,MAAM,eAAe,CAAC;AAU7D,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAC5B,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,GAAG,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CAC/E,eAAK,SAAS,EAAC,WAAW,aACxB,cAAK,SAAS,EAAE,gBAAgB,SAAS,EAAE,YACxC,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,CACxB,KAAC,WAAW,IAEV,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,SAAS,EACpB,UAAU,EAAE,UAAU,KAClB,CAAC,IAJA,MAAM,CAAC,KAAK,CAAC,CAKlB,CACH,CAAC,GACE,EACN,eAAM,SAAS,EAAC,kCAAkC,YAAE,QAAQ,GAAQ,IAChE,CACP,CACF,CAAC"}
@@ -1088,7 +1088,11 @@
1088
1088
  label: 'Google Play',
1089
1089
  },
1090
1090
  ];
1091
- const MediaButton = JSX(({ version = 'primary', ...rest }) => {
1091
+ const BUTTON_SIZE = {
1092
+ default: ' w-14 h-14',
1093
+ small: ' w-12 h-12',
1094
+ };
1095
+ const MediaButton = JSX(({ version = 'primary', isRounded = false, buttonSize = 'default', ...rest }) => {
1092
1096
  const link = useLink();
1093
1097
  const { href, onClick } = link(rest);
1094
1098
  const { icon, label } = ICONS_MAP.find(({ origins }) => origins.some((_) => href?.includes(_))) || {};
@@ -1098,8 +1102,9 @@
1098
1102
  const classes = version === 'secondary'
1099
1103
  ? 'bg-white hover:bg-secondary-hover'
1100
1104
  : 'border-solid border border-main-divider hover:border-transparent hover:bg-primary-main';
1101
- const isPrimary = version === 'primary';
1102
- return (jsx("a", { className: `flex items-center justify-center rounded-md w-14 h-14 group box-border ${classes} ${isPrimary ? 'hover:text-black' : ''}`, href: href, "aria-label": label, target: "_blank", rel: "noopener noreferrer", onClick: onClick, children: icon ? (jsx(Img, { image: getIconWithVersion(icon), imageClassName: "group-hover:text-white", width: "24", height: "24", asSVG: true })) : null }));
1105
+ const isPrimary = version === 'primary' ? 'hover:text-black' : '';
1106
+ const rounded = isRounded ? 'rounded-full' : 'rounded-md';
1107
+ return (jsx("a", { className: `flex items-center justify-center group box-border ${classes} ${rounded} ${isPrimary} ${BUTTON_SIZE[buttonSize]}`, href: href, "aria-label": label, target: "_blank", rel: "noopener noreferrer", onClick: onClick, children: icon ? (jsx(Img, { image: getIconWithVersion(icon), imageClassName: "group-hover:text-white", width: "24", height: "24", asSVG: true })) : null }));
1103
1108
  });
1104
1109
 
1105
1110
  const SocialMedia = JSX(({ className = '', media, version }) => (jsx("div", { className: `flex gap-2 items-start justify-start pt-6 pb-6 ${className}`, children: media?.map((_, index) => (jsx(MediaButton, { version: version, ..._ }, String(index)))) })));
@@ -1753,7 +1758,7 @@
1753
1758
  return (list) => list.reduce((acc, el, i) => (acc.length ? acc.concat({ ...sep, key: i }, el) : [el]), []);
1754
1759
  }
1755
1760
 
1756
- const packageVersion = "0.6.48";
1761
+ const packageVersion = "0.6.49";
1757
1762
 
1758
1763
  exports.Blocks = Blocks;
1759
1764
  exports.ContentPage = ContentPage;
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).UniMobileBlocks={})}(this,(function(e){"use strict";let t;const n=e=>(...n)=>t[e](...n),i=n("useState"),r=n("useEffect"),l=n("useCallback"),a=n("useMemo"),s=n("useRef");const o=new class{_={PROD_BRANCH:"master",FORCED_DRAFT_FLOW:!1};setup(e){this._=e}get TEST_BRANCH(){return this._.TEST_BRANCH}get RC_BRANCH(){return this._.RC_BRANCH}get PROD_BRANCH(){return this._.PROD_BRANCH}get FORCED_DRAFT_FLOW(){return this._.FORCED_DRAFT_FLOW}get ASSIST_PROJECT_ID(){return this._.ASSIST_PROJECT_ID}get SITEMAP(){return this._.SITEMAP}get FOOTER(){return this._.FOOTER}get CDN(){return this._.CDN}get BASE_PATH(){return this._.BASE_PATH&&!this._.BASE_PATH.endsWith("/")?`${this._.BASE_PATH}/`:this._.BASE_PATH}get YANDEX_MAP_API_KEY(){return this._.YANDEX_MAP_API_KEY}get YANDEX_METRIKA_ID(){return this._.YANDEX_METRIKA_ID}},c="likesToken";function d(){async function e(){try{const e=JSON.parse(globalThis.localStorage?.getItem(c)||"");if(e?.token)return e}catch(e){}try{const e=await fetch("/assist/v1/public/auth",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({prefix:"guest"})}),{token:t,name:n}=await e.json();return globalThis.localStorage?.setItem(c,JSON.stringify({token:t,name:n})),{token:t,name:n}}catch(e){return console.error(e),{}}}return{getLikeCount:async function(...t){if(!t.length)return[];const{token:n}=await e();try{const e=await fetch(`/assist/v1/public/projects/${o.ASSIST_PROJECT_ID}/nodes/likes`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n},body:JSON.stringify({node_ids:t})}),{likes:i}=await e.json();return i||[]}catch(e){return console.error(e),[]}},like:async function(t){if(!t)return 0;const{token:n,name:i}=await e();try{const e=await fetch(`/assist/v1/public/projects/${o.ASSIST_PROJECT_ID}/nodes/like`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n,UserID:i},body:JSON.stringify({node_id:t,user_name:i})}),{likes:r}=await e.json();return r||0}catch(e){return console.error(e),0}},dislike:async function(t){if(!t)return 0;const{token:n,name:i}=await e();try{const e=await fetch(`/assist/v1/public/projects/${o.ASSIST_PROJECT_ID}/nodes/unlike`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n,UserID:i},body:JSON.stringify({node_id:t,user_name:i})}),{likes:r}=await e.json();return r||0}catch(e){return console.error(e),0}}}}const m=(...e)=>globalThis._uni._jsx(...e),h=(...e)=>globalThis._uni._jsxs(...e),u=e=>{const t=e;return t._tmpl||(t._tmpl=globalThis.__UNI_REACT__?e:p(e)),t._tmpl},p=e=>{function t(t,n){const{children:i,...r}=t||{},l=n?.slots?.default,a=i||l&&l();return e(Object.assign(r,a&&{children:a}),n)}return t.inheritAttrs=!1,t};function g(e){return e?e.filter(Boolean).join(" "):""}const b=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),x=[],f=["col-span-12"];function N(e,t){const{key:n,blockDecorator:i=b,blocksRegistry:r={},ancestors:l=x,className:a=""}=t,{type:s}=e;s&&s in r||console.warn(`No block with "${s}" is registered`);const o=s&&r[s];return i({blockClassName:`scroll-mt-12 ${a} ${g(e.style||f)}`,block:e,ancestors:l,render:({block:i,blockClassName:r})=>{const{content:l}=i;return o?m(o,{className:r,block:e,options:t,...l},n):null}},n)}const y=[],v=(e,{key:t,ancestors:n=y,slotName:i=null,renderChild:r=N,...l})=>(e||[]).map(((e,a)=>r(e,{...l,key:`${t||e.type}-${a}`,ancestors:l.parent?[...n||y,[l.parent,i]]:n})));function w({children:e,block:t,options:n,renderChild:i}){return e||(t&&n?v(t.blocks,{...n,parent:t,renderChild:i}):null)}class k{static inst=new k;subscribers={};subjectsStateMap={};subscribe(e,t){this.subscribers[e]=(this.subscribers[e]||[]).concat(t);const n=this.subjectsStateMap[e];return n&&t(n),()=>{this.unsubscribe(e,t)}}unsubscribe(e,t){this.subscribers[e]=this.subscribers[e]?.filter((e=>e!==t))}fire(e,t){e in this.subjectsStateMap&&(this.subjectsStateMap[e]=t),this.subscribers[e]?.forEach((e=>e(t)))}subject(e,t){this.subjectsStateMap[e]=t}}function $(e,{sensitivity:t,rootRef:n}={}){const i=s(null),l=a((()=>({threshold:C(t),root:n?.current})),[t,n?.current]);return r((()=>{if(!i.current)return;const t=new IntersectionObserver(e,l);return t.observe(i.current),()=>{t.disconnect()}}),[e,l]),i}function C(e=0){const t=Math.round(10*e);return new Array(t).fill(0).map(((e,n)=>Math.min(n/t)),1).concat(1)}const S=e=>e?.replace("#",""),T=e=>`${globalThis.location?.pathname}#${S(e)}`;class _{static inst=new _;eventBus=new k;constructor(){const e=S(globalThis.location?.hash);e&&this.eventBus.subject("goto",{anchor:e})}goto(e){const t=S(e);t&&(this.push(t),this.eventBus.fire("goto",{anchor:t}))}push(e){globalThis.history?.pushState(null,"",T(e))}replace(e){globalThis.history?.replaceState(null,"",T(e))}reset(){globalThis.history?.replaceState(null,"",T())}}const I=u((({className:e,block:t,tag:n="section",role:a,children:s})=>{const o=n,c=function(e,t=_.inst){const n=$(l((n=>{if(!e||!n?.length)return;const i=n[n.length-1];t.eventBus.fire("intersection",{block:e,intersection:i})}),[e,t]),{sensitivity:1});return r((()=>{if(n.current)return t.eventBus.subscribe("goto",(({anchor:t})=>{n.current&&e?.anchor===t&&n.current.scrollIntoView({behavior:"smooth",block:"start"})}))}),[e,t]),n}(t),[d,h]=i(!0);return r((()=>k.inst.subscribe("tab",(e=>{if("group"===e.type){const n=t?.labels?.length||t?.anchor;h(!e.label||(!n||Boolean(t?.labels?.includes(e.label))))}else h(!0)}))),[t]),d?m(o,{className:e,role:a,...t?.anchor?{id:t.anchor,ref:c}:{},children:s}):null})),A={h0:"text-m-title",h1:"text-m-title",h2:"text-m-title",h3:"text-h6",h4:"text-m-title-xs",h5:"text-m-title-xs",h6:"text-m-title-xs"},j=u((e=>{const{className:t,headingType:n="h3",title:i,as:r="h3"}=e;return m(r,{className:`font-sans font-medium m-0 ${A[n]} ${t||""}`,children:i})})),R=u((({size:e,color:t,align:n,font:i,children:r})=>m("p",{className:["font-sans",e,t,n,i].filter(Boolean).join(" "),children:r}))),D=u((({children:e})=>m("ul",{className:"list-none m-0 p-0",children:e}))),B=u((({title:e,description:t,className:n="",...i})=>h(I,{className:`py-6 px-4 bg-white text-primary-text ${n}`,...i,children:[e?m(j,{headingType:"h3",className:"mb-2 text-center",title:e}):null,t?m("div",{className:"mb-5",children:m(R,{size:"text-m",font:"font-light",align:"text-center",children:t})}):null,m(D,{children:w(i)})]})));B.childrenTypes=["AccordionItem"];const O=u((({isFoldButtonOnTop:e=!1,unfoldedByDefault:t=!1,renderFoldableSection:n,renderFoldButton:r})=>{const[a,s]=i(t),o=l((()=>{s((e=>!e))}),[]),c=n({isUnfolded:a,onToggle:o}),d=r?r({isUnfolded:a,onToggle:o}):null;return h("div",e?{children:[d,c]}:{children:[c,d]})})),V=u((({className:e="",isUnfolded:t,children:n})=>{const i=s(null);return r((()=>{i.current&&(i.current.style.maxHeight=t?`${i.current.scrollHeight}px`:"")}),[t,n?.length]),m("div",{ref:i,className:`transition-max-h duration-300 overflow-hidden ${i.current||!t?"max-h-0":""} ${e}`,children:n})})),M={normal:"",color:"text-primary-main",black:"text-black",white:"text-black"},P=u((({className:e="",imageClassName:t="",name:n="",alt:i=`Иконка ${n}`,title:r=i,iconVersion:l="color",asSVG:a,...s})=>{const c=`${o.CDN||""}icons/${n}.svg`;return a&&"normal"!==l?m(F,{className:e,children:h("svg",{className:[E(e,s.width),M[l],t,L(l)].join(" "),...s,"aria-hidden":"true",children:[r?m("title",{children:r}):null,i?m("desc",{children:i}):null,m("use",{href:`${c}#icon`,xlinkHref:`${c}#icon`})]})}):m("img",{className:e,src:c,alt:i,title:r,...s,"aria-hidden":"true"})})),L=e=>"white"===e?"invert":"",E=(e,t)=>t?`width: ${t}px `:"w-full h-full",F=u((({className:e,children:t})=>e?m("div",{className:e,children:t}):t)),H=(e,t)=>e.media&&t.media?e.media-t.media:0,z=u((({className:e="",image:t,imageClassName:n="",isMobile:i=!1,pathPrefix:r})=>{if(!t||!t?.sources&&!t?.src)return null;return h("picture",{className:`${i?"flex":"flex-none"} ${e}`,children:[t?.sources?.length?t.sources.sort(H).map((({src:e,format:n,media:i},l)=>m("source",{srcSet:W(e,r),type:U(n),media:i?`(max-width: ${i}px)`:"",...t.size},`${l}_${e}`))):null,G({...t,src:J(t.src,r)},n,i)]})})),G=(e,t="",n=!1)=>{const i={width:e.size?.width?`${e.size?.width}px`:"100%",height:e.size?.height?`${e.size?.height}px`:"100%"},r=e.title||"",l=e.alt||e.title,a=n?"m-auto":"m-0";return m("img",{src:e.src,className:`${a} ${t}`,alt:l,title:r,style:i,...e.size})},J=(e,t)=>!e||e?.startsWith("data:image")?e:`${((e="")=>e&&!e.endsWith("/")?`${e}/`:e)(t)}${e}`,W=(e,t)=>e?.split(",").map((e=>J(e.trim(),t))).join(", ");function U(e){return e?`image/${String(e)}`:void 0}const Y=u((({className:e="",image:t,imageClassName:n="",isMobile:i,pathPrefix:r,...l})=>t?.src||t?.icon?t.icon?m(P,{className:e,imageClassName:n,iconVersion:t?.iconVersion||"normal",name:t.icon,...l}):m(z,{className:e,imageClassName:n,image:t,isMobile:i,pathPrefix:r}):null)),K=u((e=>m(Y,{...e,isMobile:!0}))),X=u((({size:e,color:t,align:n,font:i,children:r})=>m("span",{className:["font-sans",e,t,n,i].filter(Boolean).join(" "),children:r}))),q=(e,t="primary")=>({...e,iconVersion:e?.iconVersion??("secondary"===t?"white":"color")}),Q=["PlusIcon","MinusIcon"],Z=u((({className:e="",label:t="",labelIcon:n,isExpanded:i,...r})=>{const{bordered:l}=function(e,t){const{content:n}=function(e){return e?.parent||{}}(e);return n||t}(r.options,{});return m("li",{className:`${l?"border p-4 rounded mb-4":"border-0 border-b last:border-b-0"} border-solid border-main-divider ${e}`,children:m(O,{isFoldButtonOnTop:!0,unfoldedByDefault:i,renderFoldableSection:({isUnfolded:e})=>m(V,{className:"flex flex-wrap group-last:last:pb-0 gap-5 [&>*]:p-0",isUnfolded:e,children:w(r)}),renderFoldButton:({isUnfolded:e,onToggle:i})=>m(ee,{className:l?"":"py-3.5 px-0",label:t,icon:Q[Number(e)],primaryIcon:n,onClick:i})})})}));Z.childrenTypes=[];const ee=u((({className:e,icon:t,label:n,primaryIcon:i,onClick:r})=>h("button",{className:`border-none bg-transparent flex justify-between text-left w-full font-sans text-primary-text group cursor-pointer ${e}`,onClick:r,children:[h("div",{className:"flex group-hover:text-primary-main",children:[i?m(K,{image:q(i),className:"mr-3 flex-shrink-0",width:"24",height:"24",asSVG:!0}):null,m(X,{size:"text-m-title-xs",font:"font-medium",children:n})]}),m(K,{className:"flex-shrink-0",image:q({icon:t}),width:"24",height:"24",asSVG:!0})]}))),te=u((({className:e="",style:t,idx:n,activeIndex:i,observerOptions:r,children:a,onIntersection:s})=>{const o=$(l((e=>{e.length&&s&&s(n||0,e[e.length-1])}),[s,n]),r);return m("div",{className:`inline-block snap-always box-border ${e}`,style:t,role:"listitem","aria-current":Boolean(n===i),ref:o,children:a})})),ne=["min-w-[100%]","min-w-[50%]","min-w-[33.33%]","min-w-[25%]"],ie=u((({className:e="",containerRef:t,activeIndex:n,visibleItemCount:i=0,gap:r=0,padding:a=0,snapAlign:o="snap-center",children:c,onVisibleItemsChange:d,onVisibleIndicesChange:h})=>{const u={sensitivity:1,rootRef:t},p=s([]),g=l(((e,t)=>{const n=[...p.current||[]];n[e]=t,p.current=n,d&&d(n),h&&h(le(n))}),[d,h]),b=i>0?r*Number(i)-1:0;return m("div",{className:`box-border overflow-auto flex horizontal-list no-scrollbar ${e}`,style:{...re(a,b),gap:`${r}px`},role:"list",ref:t,children:(x=(e,t)=>m(te,{className:`${o} ${i?ne[i-1]:""}`,style:re(a/4),activeIndex:n,idx:t,observerOptions:u,onIntersection:g,children:e},String(t)),e=>null==e?e:Array.isArray(e)?e.map(x):x(e,0))(c)});var x})),re=(e,t=0)=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e+t}px`}),le=e=>e.map(((e,t)=>[e,t])).filter((([e])=>e&&e.intersectionRatio>=.9)).map((([,e])=>e)),ae=u((({containerRef:e,activeIndex:t,dotCount:n=0})=>n?m("div",{className:"flex gap-2 mx-auto mt-5 w-fit",children:new Array(n).fill(null).map(((n,i)=>m("div",{className:"cursor-pointer bg-primary-main h-2 rounded-full transition-width duration-300 "+(i===t?"w-6":"w-2 opacity-30"),role:"button","aria-hidden":!0,onClick:()=>(n=>{n!==t&&e?.current&&e.current.children[n]?.scrollIntoView({behavior:"smooth",block:"nearest"})})(i)},String(i))))}):null)),se=e=>e,oe=(e=se)=>t=>t.reduceRight(((t,n)=>e(t)>e(n)?t:n)),ce=(e=se)=>oe((t=>-e(t))),de=e=>t=>e.scrollWidth/t,me=e=>(t,n)=>{e.scrollBy({left:n*de(e)(t),behavior:"smooth"})},he=({itemCount:e,isCyclic:t,onVisibleIndicesChange:n})=>{const r=s(null),[a,o]=i([]),c=l((e=>{o((t=>{return(n=t)===(i=e)||Boolean(n&&i&&n?.length===i?.length&&n.every(((e,t)=>e===i[t])))?t:e;var n,i})),n&&n(e)}),[e]),[d,m]=a.length?[ce()(a),oe()(a)]:[-1,-1],h=d>0,u=m<e-1,p=l((()=>{var n;r.current&&(t&&!h?(n=r.current).scrollTo({left:n.scrollWidth,behavior:"smooth"}):me(r.current)(e,-1))}),[t,e,h]),g=l((()=>{r.current&&(t&&!u?r.current.scrollTo({left:0,behavior:"smooth"}):me(r.current)(e,1))}),[e,t,u]);return[r,{scrollLeft:p,scrollRight:g,canScrollLeft:t||h,canScrollRight:t||u,visibleIndicesRange:[d,m],handleVisibleIndicesChange:c}]},ue=u((({className:e,gap:t=14,padding:n=16,showDots:i=!0,children:r,onVisibleIndicesChange:l})=>{const a=Array.isArray(r)?r.length:0,[s,o]=he({itemCount:a,onVisibleIndicesChange:l}),[c]=o.visibleIndicesRange;return h("div",{className:e,children:[m(ie,{containerRef:s,activeIndex:c,visibleItemCount:1,gap:t,padding:n,onVisibleIndicesChange:o.handleVisibleIndicesChange,children:r}),i?m(ae,{containerRef:s,activeIndex:c,dotCount:a}):null]})}));const pe=e=>e?.includes("//"),ge=e=>(e||"").replace(/\/?\?.*/,""),be=e=>{if(!e||!pe(e))return;const t=e,n=t.indexOf("//"),i=t.indexOf("/",n+"//".length);return-1!==i?t.substring(0,i):t},xe=e=>{if(!e||!pe(e))return;return new URL(e).pathname},fe=e=>e?.startsWith("#");var Ne=Object.freeze({__proto__:null,isURL:pe,withoutQuery:ge,getOrigin:be,getPathname:xe,getHash:e=>{if(!e||!pe(e))return;const t=e.indexOf("#");return-1!==t?e.substring(t,e.length):void 0},isHash:fe});const ye=(e,t)=>ye._impl(e,t);function ve(){return ve._impl()}function we(){const e=ve(),t=_.inst;return n=>{const i=((e,t)=>{if(!e)return e;const n=be(t?.href);return n?e.replace(n,"")||"/":e})(n.href,e);return{...n,href:i,"aria-label":n.text,onClick:ye((r=>{n.onClick&&n.onClick(r),ke(i,n.target)||(r?.preventDefault(),fe(i)?t.goto(i):i&&e.push(i))}),n)}}}ye._impl=e=>e,ye.setup=e=>{ye._impl=e},ve._impl=()=>({href:globalThis.location?.href||"/",pathname:globalThis.location?.pathname||"/",query:{},push:()=>{},replace:()=>{}}),ve.setup=e=>{ve._impl=e};const ke=(e,t)=>pe(e)||t&&"_self"!==t||e?.startsWith("/"),$e={primary:"text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active",secondary:"text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active",white:"text-primary-main bg-white hover:text-white hover:bg-primary-hover active:bg-white active:text-primary-main",link:""},Ce="bg-main-divider text-main-disabled",Se={primary:Ce,secondary:Ce,white:Ce,link:""},Te="text-center font-sans select-none",_e={primary:"group-hover:brightness-0 group-hover:invert",secondary:"group-hover:brightness-0 group-hover:invert",white:"group-hover:brightness-0 group-hover:invert",link:""},Ie=u((e=>{const{text:t,aboveText:n,appendLeft:i,appendRight:r,version:l="primary"}=e;return h("div",{className:Ae(e),children:[i?m("div",{className:_e[l],children:i}):null,je(e)?h("div",{children:[n?m("div",{className:"text-xs-light text-left",children:n}):null,m("div",{className:"text-left "+(n?"text-s -mt-0.5":"text-l"),children:t})]}):null,r?m("div",{className:_e[l],children:r}):null]})})),Ae=e=>{const{version:t,aboveText:n,rounded:i}=e;if("link"===t)return"";const r="gap-2 "+(n?"py-2.5 px-7":"py-4 px-4");return["group flex items-center justify-center",je(e)?r:"h-12 w-12",i?"rounded-full":""].join(" ")},je=({text:e,aboveText:t,appendLeft:n})=>Boolean(e||t||!n),Re=({className:e,rounded:t,version:n})=>["inline-block",Te,n?Se[n]:"",t?"rounded-full":"rounded-md",e].join(" "),De=({className:e,rounded:t,version:n})=>[Te,"border border-transparent inline-block cursor-pointer no-underline focus:border-primary-text focus:border",n?$e[n]:"",t?"rounded-full":"rounded-md",e].join(" "),Be=u((({disabled:e,children:t,...n})=>{const i=we()(n),r=t??m(Ie,{...i});return m(e?Ve:Oe,{...i,children:r})})),Oe=u((({className:e="",href:t,rel:n,target:i,ariaLabel:r,version:l,rounded:a,onClick:s,children:o})=>m("a",{className:De({className:e,version:l,rounded:a}),href:t,rel:n,target:i,"aria-label":r,role:t?"link":"button",onClick:s,children:o}))),Ve=u((({className:e,ariaLabel:t,version:n,rounded:i,children:r})=>m("div",{role:"button","aria-disabled":"true","aria-label":t,tabIndex:-1,className:Re({className:e,rounded:i,version:n}),children:r}))),Me=(e=!1)=>e?"text-white":"",Pe=(e=!1)=>"text-s mb-3.5 "+(e?"text-white":"text-secondary-text/80"),Le=u((({icon:e,image:t,title:n,subtitle:i,isFillGradient:r})=>h("div",{role:"columnheader",children:[e?m(K,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",image:e,width:"63",height:"63"}):null,t?.src&&m("div",{className:"mb-3.5",children:m(K,{image:t})}),n?m(j,{headingType:"h4",className:Me(r),title:n}):null,i?m("div",{className:Pe(r),children:i}):null]}))),Ee=u((({cell:e,rowHeader:t,isFillGradient:n=!1})=>m("div",{className:"box-border flex flex-col",role:"cell",children:m("div",{className:"h-full border-main-divider border border-t-0 border-x-0",children:e.map(Fe(n,t))})}))),Fe=(e,t)=>({label:n,description:i},r)=>h("div",{className:"flex justify-between text-s py-3.5",children:[m("div",{className:""+(e?"text-white/80":"text-secondary-text"),children:t}),h("div",{className:"basis-1/2",children:[n?m("div",{className:"text-right "+(e?"text-white":""),children:n}):null,i?m("div",{className:"text-right "+(e?"text-white/80":"text-secondary-text"),children:i}):null]})]},String(r)),He=u((({header:e,columnData:t,visibleRowLength:n=0,isFillGradient:i,showRow:r,onToggleColumn:l})=>{const a=t?.slice(0,r?t.length:n),s=i?"secondary":"primary";return h("div",{className:`border border-gray rounded-md p-4 mb-3.5 ${i?"bg-gradient-to-r from-main-gradient-start to-main-gradient-end":""}`,role:"row",children:[m(Le,{...e,isFillGradient:i}),a?.length?a.map((({rowHeader:e,cell:t},n)=>m(Ee,{cell:t,rowHeader:e,isFillGradient:i},String(n)))):null,r&&e?.link?m(Be,{href:e.link.href,target:e.link.target,version:s,className:"text-s font-medium mt-4 py-[11px]",children:e.link.text}):null,ze({onToggleColumn:l,isFillGradient:i,showRow:r})]})})),ze=({onToggleColumn:e,isFillGradient:t,showRow:n})=>m("div",{className:"mt-5",role:"cell",children:m("a",{role:"link",onClick:e,className:"text-s font-medium cursor-pointer "+(t?"text-white/80":"text-primary-main"),children:n?"Скрыть":"Показать описание"})}),Ge=u((e=>{const{className:t,title:n}=e;return h("section",{className:`bg-white font-sans px-4 py-6 overflow-hidden text-primary-text relative ${t||""}`,children:[n?m(j,{headingType:"h3",className:"font-medium text-center m-0 mb-5",title:n}):null,m("div",{role:"table",children:m(Je,{...e})})]})})),Je=u((({columns:e=[],rowHeaders:t,isColoredFirstColumn:n,visibleRowLength:r,orientation:a,...s})=>{const[o,c]=i(new Array(e.length).fill(!r)),d=l((e=>{const t=(t,n)=>n===e?!t:t;c((e=>e.map(t)))}),[]),h=l((()=>c((e=>new Array(e.length).fill(!1)))),[]),u=e?.map((({data:e,header:i},l)=>{return m(He,{visibleRowLength:r,showRow:o[l],header:i,columnData:(a=e,a?.map(((e,n)=>({cell:e,rowHeader:t?.[n]?.title})))),isFillGradient:0===l&&n,onToggleColumn:()=>d(l),...s},String(l));var a}));return"horizontal"===a?m(ue,{onVisibleIndicesChange:h,children:u}):u})),We=new Map;function Ue(e,t,{fallback:n}={}){const l=a((()=>Ye(e)),[e]),[s,o]=i(),[c,d]=i(),m=e=>{o(e),d(void 0)},h=e=>{o(void 0),d(e)};r((()=>{if(!l.every((e=>null===e)))try{const e=t(...l);"then"in e?(e=>{e.then((e=>We.get(l)||e)).then(m).catch(h)})(e):m(e)}catch(e){h(e)}}),[t,...l]);const u=l[0],p=n&&"string"==typeof u&&n[u];return{data:s||c||!p?s:p,error:c,mutate:()=>Promise.resolve(void 0),isValidating:!1}}function Ye(e){return e?Array.isArray(e)?e:e instanceof Function?Ye(e()):[e]:[e]}async function Ke(e,t){const n=await fetch(e,{...t,headers:{...t?.headers,"Content-Type":"application/json"}});return await n.json()}function Xe(e,t={}){const{data:n}=Ue(`/wcms-resources/${e}.json`,Ke,{fallback:t});return n||{}}const qe=u((({className:e,isMobile:t=!1})=>{const{term:n,setTerm:r}=(()=>{const[e,t]=i("");return{term:e,setTerm:e=>t(e)}})(),l=t?"text-s":"text-l-light",a=t?" placeholder-transparent":"h-full",s=t?"some search":void 0;return h("form",{className:`font-sans relative ${e}`,children:[h("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none",children:[m("div",{className:t?"w-5 h-5":"w-6 h-6",children:m(K,{image:{icon:"LoupeIcon"},width:"24",height:"24"})}),n?null:m("label",{htmlFor:"search-bar-input",className:`text-secondary-text ${l}`,children:"Поиск по сайту"})]}),m("input",{id:"search-bar-input",className:`h-12 pl-12 w-full peer text-l text-black border border-solid rounded-md box-border\n outline-none pr-[6%] border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text ${a}`,value:n,onChange:e=>r(e.target.value),type:"text",name:"search-bar-input",placeholder:s}),t?m("button",{className:"visible peer-placeholder-shown:invisible absolute top-2 right-3 w-6 h-6 p-1 bg-transparent cursor-pointer border-none",onClick:e=>{e.preventDefault(),r("")},children:m(K,{image:{icon:"CloseIcon"},width:"24",height:"24"})}):m(Be,{version:"primary",text:"Найти",className:"invisible peer-focus:visible absolute top-[3px] right-1",onClick:e=>{e?.preventDefault(),console.log("click")},children:m("div",{className:"text-s px-9 py-2.5",children:"Найти"})})]})})),Qe=u((e=>m(qe,{...e,isMobile:!0}))),Ze=u((({className:e="",documents:t,...n})=>m(I,{className:`font-sans bg-white mt-2.5 ${e}`,...n,children:m("ul",{className:"flex flex-col text-s text-secondary-text p-0",children:t?.length?et(t):null})}))),et=e=>e.map(((e,t)=>{const{text:n,...i}=e;return m("li",{className:"mb-4 list-none",children:m("a",{className:"hover:text-primary-main",role:"link",...i,children:n||null})},`list_item_${String(t)}`)})),tt={"bg-white":"color",transparent:"white"},nt={"bg-white":"text-primary-main",transparent:"text-white"},it=(e,t,n)=>m(K,t?.src?{image:t,className:nt[e],width:n?.width,height:n?.height,pathPrefix:"/wcms-resources/",asSVG:!0}:{image:{icon:t?.icon||"LogoIcon",iconVersion:tt[e]},className:nt[e],width:n?.width,height:n?.height,asSVG:!0}),rt={"bg-white":"text-primary-text",transparent:"text-white"},lt=(e,t,n)=>m("span",{className:`${rt[t]} ml-2.5 font-medium ${n||""}`,children:e||"Россельхозбанк"}),at=u((({bgColor:e="bg-white",children:t,className:n="",href:i,logo:r,showTitle:l=!0,targetBlank:a})=>h("a",{className:`inline-flex items-center font-sans no-underline ${n}`,href:i||"https://rshb.ru/",target:a?"_blank":"_self","aria-label":r?.title||"Россельхозбанк",children:[it(e,r?.image,{width:"34",height:"34"}),l?lt(t||r?.title,e,"text-s"):null]}))),st=u((({className:e="",title:t="Мобильное приложение",description:n,href:i="#"})=>m("div",{className:`col-span-12 rounded-md cursor-pointer p-4 mt-6 mb-6 bg-secondary-light font-sans ${e}`,children:i?h("div",{className:"flex",children:[m("div",{className:"flex justify-center align-middle rounded-md bg-primary-main w-12 h-12",children:m(at,{className:"w-8",bgColor:"transparent",showTitle:!0})}),h("a",{href:i,target:"_blank",className:"flex flex-col justify-center pl-3",children:[m("div",{className:"text-s font-medium mb-[3px]",children:t}),m("div",{className:"text-s text-secondary-text",children:n})]})]}):null}))),ot=u((({className:e="",items:t,hasButton:n})=>h("div",{className:e,children:[t?.length?t.map(ct):null,n?m(Be,{version:"primary",className:"mb-6 w-full",href:"/",target:"_blank",ariaLabel:"Обратная связь",text:"Обратная связь"}):null]}))),ct=(e,t)=>{const{type:n,text:i,description:r}=e;return h("div",{className:"mb-4",children:[m("div",{children:dt(n,i)}),m("div",{className:"mt-1 text-s-light text-secondary-text",children:r})]},String(t))},dt=(e,t="")=>{switch(e){case"tel":return m("a",{className:"text-h6 text-primary-text hover:text-primary-main no-underline",href:`tel:${mt(t)}`,children:t});case"email":return m("a",{className:"text-xl-light text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return m("span",{children:t})}},mt=e=>e.replaceAll(/\D/g,""),ht=u((({className:e="",index:t,text:n,...i})=>{const r=we(),{href:l,target:a,onClick:s}=r(i);return m("a",{className:`text-secondary-text hover:text-primary-main inline-block no-underline ${e}`,href:l,target:a,onClick:s,children:n||`Документ ${t}`})})),ut=u((({title:e,links:t,className:n=""})=>h("div",{className:n,children:[m("span",{className:"text-primary-text text-s font-medium",children:e}),t?.length?m("div",{className:"flex flex-col gap-2 pt-3",children:t.map(((e,t)=>m(ht,{index:t,className:"text-s",...e},String(t))))}):null]}))),pt=[{origins:["t.me","telegram.org"],icon:{icon:"TelegramIcon"},label:"Телеграм"},{origins:["vk.com"],icon:{icon:"VKIcon"},label:"ВКонтакте"},{origins:["ok.ru"],icon:{icon:"OkIcon"},label:"Одноклассники"},{origins:["apps.apple.com"],icon:{icon:"AppleIcon"},label:"App Store"},{origins:["play.google.com"],icon:{icon:"PlayMarketIcon"},label:"Google Play"}],gt=u((({version:e="primary",...t})=>{const n=we(),{href:i,onClick:r}=n(t),{icon:l,label:a}=pt.find((({origins:e})=>e.some((e=>i?.includes(e)))))||{};if(!l)return null;return m("a",{className:`flex items-center justify-center rounded-md w-14 h-14 group box-border ${"secondary"===e?"bg-white hover:bg-secondary-hover":"border-solid border border-main-divider hover:border-transparent hover:bg-primary-main"} ${"primary"===e?"hover:text-black":""}`,href:i,"aria-label":a,target:"_blank",rel:"noopener noreferrer",onClick:r,children:l?m(K,{image:q(l),imageClassName:"group-hover:text-white",width:"24",height:"24",asSVG:!0}):null})})),bt=u((({className:e="",media:t,version:n})=>m("div",{className:`flex gap-2 items-start justify-start pt-6 pb-6 ${e}`,children:t?.map(((e,t)=>m(gt,{version:n,...e},String(t))))}))),xt=u((({className:e="",index:t,...n})=>{const i=we(),{href:r,target:l,text:a,onClick:s}=i(n);return m("a",{className:`text-xs-light text-secondary-text visited:text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px] ${e}`,href:r,target:l,onClick:s,children:a||`Документ ${t}`})})),ft=u((({className:e="",links:t})=>h("div",{className:e,children:[m("div",{className:"py-6",children:m("span",{className:"text-xs-light text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?m("div",{className:"flex flex-col justify-start items-start gap-2",children:t.map(((e,t)=>m(xt,{index:t,...e},String(t))))}):null]}))),Nt=u((({className:e="",...t})=>{const n=t.options?.page?.fallback,i=Xe(o.SITEMAP||"sitemap",n),{documents:r,relatedEnterprises:l,contacts:a,socialMedia:s,horizontalNavigationTitle:c}=Xe(o.FOOTER||"footer",n);return h("footer",{className:`font-sans px-4 py-[26px] bg-white ${e}`,children:[m(ot,{className:"overflow-hidden",items:a,hasButton:!0}),m(D,{children:i.topItems?.map(((e,t)=>m(Z,{label:e.text,children:m(Ze,{documents:e.items})},String(t))))}),m("div",{children:i?.dispositions?.map(yt)}),m(st,{title:"Мобильное приложение",description:"Загрузить для IOS и Android",...t}),m(Qe,{className:"grow"}),m(bt,{className:"pb-4",media:s}),m(ut,{title:c,links:l}),m(ft,{links:r})]})})),yt=(e,t)=>{const{icon:n,href:i,text:r}=e;return h(Be,{version:"link",href:i,className:"flex text-s mb-4 w-6",children:[n?m(K,{className:"pr-1",image:q(n),width:"24",height:"24",asSVG:!0}):null,m("span",{className:"pl-2.5 font-medium text-primary-text",children:r})]},`footer-${t}`)},vt={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},wt=u((({title:e,description:t,cards:n=[],className:i,orientation:r="horizontal"})=>h("section",{className:`relative font-sans text-primary-text bg-white px-4 py-6 overflow-hidden ${i}`,children:[h("div",{className:"flex flex-col items-center mb-5",children:[e?m(j,{headingType:"h3",className:`text-center ${t?"mb-2":"mb-5"}`,title:e}):null,t?m("div",{className:"text-m max-w-[600px] text-center mb-5",children:t}):null]}),kt(r,n)]})));function kt(e,t){return"horizontal"===e?m(ue,{children:t?.map($t)}):m("div",{className:"grid gap-3.5",children:t?.map($t)})}function $t(e,t){return h("div",{className:`w-full h-full flex flex-col justify-between shrink-0 box-border snap-start snap-always border-solid border rounded-md border-gray p-4\n ${vt[e.version??"primary"]}`,children:[h("div",{children:[Ct(e.icon),e.title?m("h3",{className:"text-m-title-xs font-medium m-0",children:e.title}):null,e.description?St(e):null,e.items?.length?_t(e.items,e.isDotted,e.version):null]}),e?.button?.text?(n=e.button,m(Be,{className:"mt-3",...n})):null]},t);var n}const Ct=e=>e?.src||e?.icon?m("div",{className:"flex justify-center",children:m(K,{className:"mb-3.5",image:e})}):null;function St(e){return m("div",{className:"text-secondary-text mt-1 text-s "+("secondary"===e.version?"text-white opacity-80":""),children:e.description})}const Tt={primary:"bg-primary-text",secondary:"bg-white",gray:"bg-secondary-text"};function _t(e,t,n="primary"){return m("section",{className:"mt-3",children:e.map(((e,i)=>h("div",{children:[t?m("div",{className:`rounded-full inline-block mr-3 mt-2 w-2 h-2 min-w-2 min-h-2 ${Tt[n]}`}):null,m("span",{className:"text-m font-medium",children:e.title}),m("span",{className:"text-s pl-2 "+("primary"===n?"text-secondary-text":""),children:e.text})]},String(i))))})}const It=(e,t,n=((e,t)=>t.startsWith(e)))=>n(ge((e=>pe(e)||e?.startsWith("/")?e:`${o.BASE_PATH||""}${e}`)(e)),ge(pe(e)?t.href:xe(t.href))),At=e=>t=>It(t.href,e),jt=e=>t=>t.items?.some(At(e))||It(t.href,e)||((e,t)=>[be(e),be(t.href)].every(((e,t,n)=>Boolean(e)&&e===n[0])))(t.href,e)||Boolean(o.BASE_PATH?.startsWith(t.href||"/")),Rt="absolute left-0 -bottom-3 w-full h-0.5",Dt=u((({className:e="",text:t,href:n,target:i,active:r,onClick:l,children:a,bgColor:s="bg-white"})=>h("a",{className:`relative inline-block bg-transparent text-center no-underline ${e}`,href:n,target:i,onClick:l,children:[m("span",{className:Bt(s,r),children:t||a}),r?m("div",{className:Ot(s,r)}):null]}))),Bt=(e,t=!1)=>{let n="text-white";return"bg-white"===e&&(n=t?"text-primary-main":"text-secondary-text hover:text-primary-main"),`${n} font-sans text-s`},Ot=(e,t=!1)=>t?`${"bg-white"===e?"bg-primary-main":e} ${Rt}`:Rt,Vt=864e5;function Mt(e,t,n=globalThis?.localStorage){const i=l((async(...i)=>{const r=`async:${e}`,l=function(e){const{data:t=null,timestamp:n=null}=e?JSON.parse(e):{};return t&&Date.now()-n<Vt?t:void 0}(n.getItem(r));if(l)return l;const a=await t(...i);return n.setItem(r,JSON.stringify({data:a,timestamp:Date.now()})),a}),[e,t]);return Ue(e,i)}const Pt=()=>{const e=globalThis.localStorage?.getItem("location");try{return e?JSON.parse(e):null}catch(e){return null}},Lt=u((({burgerSubMenu:e,onClick:t,defaultLocation:n="",children:a})=>{const[s]=function(e){const t=Pt(),[n,a]=i(t?.region??{name:e}),{data:s}=Mt("/api/v1/region",Ke);return r((()=>{a(t?.region&&t?.manual?t.region:s||{name:e})}),[s]),[n,l((e=>{globalThis.localStorage?.setItem("location",JSON.stringify({manual:!0,region:e})),a(e)}),[a])]}(n);return h("div",{className:"absolute top-0 left-0 w-full h-full bg-white p-4 box-border z-20",children:[m("button",{className:"absolute top-4 right-4 border-none bg-transparent cursor-pointer",onClick:t,children:m(K,{image:{icon:"CloseIcon"},width:"24",height:"24",asSVG:!0})}),h("button",{className:"flex items-center text-s p-0 mb-4 bg-transparent cursor-pointer",children:[m(K,{image:{icon:"GeolocationIcon"},width:"20",height:"20",className:"text-primary-main box-border mr-2",asSVG:!0}),m(X,{color:"text-secondary-text",children:s.name})]}),a,m("div",{className:"mb-7",children:e?.map(Et)}),m(Qe,{className:"grow"})]})})),Et=(e,t)=>{const{icon:n,href:i,text:r}=e;return h("a",{href:i,className:"flex text-s mb-4 hover:text-primary-main",children:[n?m(K,{className:"text-primary-main pr-1",image:n,width:"24",height:"24",asSVG:!0}):null,m("span",{className:"font-medium pl-0.5",children:r})]},`headerSubMenu-${t}`)},Ft=u((({onClick:e,bgColor:t,logo:n})=>h("div",{className:"flex items-center justify-between border-0 border-b border-main-divider h-12",children:[h("div",{className:"flex items-center",children:[m("button",{className:"pl-0 pr-4 border-0 bg-transparent cursor-pointer",onClick:e,"aria-label":"Открыть меню",children:m(K,{image:{icon:"BurgerIcon",iconVersion:"bg-white"===t?"black":"white"},className:"text-primary-text w-6 h-6",width:"24",height:"24",asSVG:!0})}),m(at,{className:"mr-8",bgColor:t,logo:n})]}),m("button",{className:("bg-white"===t?"text-primary-main":"text-white")+" text-s border-0 bg-transparent cursor-pointer",children:"Войти"})]}))),Ht=u((({className:e="",bgColor:t="bg-white",...n})=>{const r=ve(),a=n.options?.page?.fallback,{topItems:s,dispositions:c,defaultLocation:d,logo:u}=Xe(o.SITEMAP||"sitemap",a),p=s?.find(jt(r)),g=p?.items,b=(e=>(t=[])=>{const n=t?.filter(At(e));return n?.length?oe((e=>e.href?.length||0))(n):void 0})(r)(g),[x,f]=i(!1),N=l((()=>f((e=>!e))),[]);return h("header",{className:`${t} ${e}`,children:[h("div",{className:"container px-4 py-0 box-border",children:[m(Ft,{onClick:N,bgColor:t,logo:u}),m("nav",{className:"flex items-center m-0 p-0 overflow-y-hidden w-full h-12",children:m("div",{className:"flex no-scrollbar horizontal-list h-full items-center",children:g?.map(((e,n)=>m(Dt,{className:"mr-8 whitespace-nowrap text-s",active:e===b,bgColor:t,...e},String(n))))})})]}),x?m(Lt,{onClick:N,burgerSubMenu:c,defaultLocation:d,children:m(D,{children:s?.map(((e,t)=>m(Z,{label:e.text,children:m(Ze,{documents:e.items})},String(t))))})}):null]})})),zt={transparent:{wrapper:"bg-transparent",titleColor:"text-primary-text"},primary:{wrapper:"bg-white",titleColor:"text-primary-text"},secondary:{wrapper:"bg-primary-main",titleColor:"text-white",descriptionColor:"text-white/80"}},Gt=u((({className:e="",title:t,description:n,image:i,bgColorHeadline:r="transparent",align:l="text-left"})=>{const a=zt[r];return h("section",{className:`px-4 py-6 flex flex-col gap-2.5 ${a.wrapper} ${e}`,children:[t?m(j,{headingType:"h2",className:`${a.titleColor} ${l}`,title:t}):null,n?m(R,{color:a.descriptionColor||a.titleColor,size:"text-m",align:l,children:n}):null,i?.src&&m("div",{className:"mt-2.5 mx-auto flex justify-center",children:m(K,{image:i})})]})})),Jt=u((({className:e,iconClassName:t,textClassName:n,suffixClassName:i,doc:r,icon:l})=>{const{text:a,fileSize:s,...o}=r;return h("a",{className:e,role:"link",...o,children:[l?m(K,{className:t,image:q(l),width:"24px",height:"24px",asSVG:!0}):null,a?h("span",{className:n,children:[a,m("span",{className:i,children:o?.href&&Wt(Ut(o.href),s)})]}):null]})})),Wt=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),Ut=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},Yt=u((({className:e="",doc:t,icon:n})=>m(Jt,{className:`flex h-full box-border ${e}`,iconClassName:"mr-3 min-w-6 min-h-6",doc:t,icon:n}))),Kt=u((({hasBorder:e=!0,documents:t,icon:n})=>m(ue,{className:"text-s text-primary-main mt-5",children:t?.length?t.map(((t,i)=>m(Yt,{className:e?"rounded-md border-gray border border-solid p-4":"",doc:t,icon:n},String(i)))):null}))),Xt=u((({hasBorder:e=!0,documents:t,icon:n})=>m("div",{className:"text-s text-primary-main flex flex-col mt-5 "+(e?"gap-3.5":"gap-2"),role:"list",children:t?.length?t.map(((t,i)=>m("div",{role:"listitem",children:m(Yt,{className:e?"rounded-md border-gray border border-solid p-4":"",doc:t,icon:n})},String(i)))):null}))),qt=u((({className:e="",title:t,description:n,icon:i={icon:"DocIconMonoColor"},documents:r,orientation:l="vertical",hasBorder:a=!0,...s})=>h("section",{className:`font-sans text-primary-text py-6 px-4 bg-white overflow-x-hidden ${e}`,children:[m(Gt,{className:"!p-0 "+(n?"gap-2":"gap-5"),title:t,description:n,...s}),m("vertical"===l?Xt:Kt,{hasBorder:a,documents:r,icon:i})]}))),Qt=e=>{const t="col-span-",n=e.split(/\s+/).find((e=>e.startsWith(t)));return n?parseInt(n.substring(t.length),10):12};function Zt(e=""){const t=Qt(e);return t<=4?"S":t<=8?"M":"L"}function en(e=""){const t=Qt(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}function tn(e=""){const t=Qt(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const nn=u((({className:e,title:t,description:n="Блок в разработке...",...i})=>h(I,{className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${tn(e)} ${en(e)} `,...i,children:[m(Gt,{className:"!p-0 max-w-[600px]",title:t,description:n,headlineVersion:Zt(e),...i}),m("figure",{className:"m-0 min-w-[80%]",children:rn()})]}))),rn=(e=3)=>an(100,e).map((e=>Math.floor(e))).map(ln),ln=(e,t)=>m("div",{style:{width:`${e||100}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),an=(e,t)=>[e].concat(t>0?an(e/1.618,t-1):[]),sn=u((({className:e="",buttons:t})=>t&&t?.length?m("div",{className:e,children:t.map(((e,t)=>on({button:e,index:t})))}):null));function on({button:e,buttonClassName:t,index:n}){const{icon:i,iconRight:r,version:l,text:a,...s}=e,o="secondary"===l?"color":"white",c=cn({...i,iconVersion:o}),d=cn({...r,iconVersion:o});return a?m(Be,{className:t,appendLeft:c,appendRight:d,version:l,text:a,...s},n?String(n):""):null}const cn=e=>{if(!e?.icon&&!e?.src)return null;const t=e?.size?.width?`${e.size.width}`:"24";return m(K,{image:e,width:t,height:"24",asSVG:!0})},dn={primary:"bg-primary-text",secondary:"bg-white",gray:"bg-secondary-text"},mn={L:"w-1.5 h-1.5 min-w-1.5 min-h-1.5 mr-4",M:"w-1.5 h-1.5 min-w-1.5 min-h-1.5 mr-3",S:"w-1 h-1 min-w-1 min-h-1 mr-2"},hn=u((({className:e="",isDotted:t=!0,children:n,version:i="primary",size:r="M"})=>h("div",{className:`font-sans flex items-baseline ${e}`,role:"listitem",children:[t?m("div",{children:m("div",{className:`rounded-full align-middle inline-block ${dn[i]} ${mn[r]}`})}):null,m("span",{children:n})]}))),un={primary:"text-primary-text",secondary:"text-white",gray:"text-secondary-text"},pn={S:"text-l-light",M:"text-h6",L:"text-h5"},gn={S:"ml-2",M:"ml-3",L:"ml-4"},bn=u((e=>{const{className:t="",hasIndent:n,isDotted:i,itemClassName:r="",items:l,listItemSize:a="M",version:s="primary"}=e;return l?.length?m("section",{className:`${un[s]} ${pn[a]} ${t} ${n?gn[a]:""}`,role:"list",children:l.map(((e,t)=>m(hn,{className:`${r} mb-1.5`,isDotted:i,version:s,size:a,children:e},String(t))))}):null})),xn=u((({className:e="",title:t="",buttons:n,image:i,children:r})=>h("div",{className:`font-sans flex flex-col grow h-full items-start ${e}`,children:[t,h("div",{className:"flex grow w-full justify-between",children:[h("div",{className:"flex flex-col justify-between w-full",children:[m("div",{className:"h-full",children:r}),n?m("div",{className:"mt-auto pt-8",children:n}):null]}),i]})]}))),fn={primary:"text-primary-text",secondary:"text-white"},Nn={primary:"text-secondary-text",secondary:"text-white"},yn=u((e=>{const{className:t="",icon:n,label:i,description:r,version:l="primary",benefitsVersion:a="normal"}=e,s="white"===a?"secondary":"primary";return h("div",{className:`flex gap-5 ${r?"items-start":"items-center"} ${t}`,children:[n?m("div",{className:vn(l,a),children:m(K,{className:"w-6 h-6",image:q(n,s),asSVG:!0})}):null,h("div",{className:"gap-0.5",children:[i?m("div",{className:`text-h6 ${fn[l]}`,children:i}):null,r?m("div",{className:`text-m-light ${Nn[l]}`,children:r}):null]})]})}));function vn(e,t){let n="bg-primary-main text-black";return"secondary"===e?n="bg-white/30 text-black":"normal"===t&&(n="bg-secondary-light text-primary-main"),`w-12 h-12 min-w-12 rounded-full p-2.5 box-border flex items-center justify-center ${n}`}const wn=(e="primary",t="normal")=>({icon:n,label:i,description:r},l)=>m(yn,{icon:n,label:i,description:r,version:e,benefitsVersion:t},String(l)),kn=u((({className:e="",headlineVersion:t="L",benefits:n,benefitsVersion:i="normal",buttons:r,image:l,items:a,version:s="primary",isDotted:o=!0,label:c,...d})=>h("div",{className:`w-full ${e}`,children:[h("div",{children:[c?Sn(c,s):null,m(Gt,{className:"!p-0 max-w-[600px]",bgColorHeadline:s,headlineVersion:t,...d}),h(xn,{buttons:r?.length?m(sn,{buttons:r,className:"flex flex-col mt-5 gap-2.5"}):null,children:[n?.filter((e=>e.label))?.length?m("div",{className:"mt-3",children:n.map(wn(s,i))}):null,a?.length?m(bn,{className:"mt-3 text-m",items:a,version:s,isDotted:o}):null]})]}),$n(l)]})));function $n(e){return e?.src?m(K,{imageClassName:"mt-5 mx-auto block",image:{className:"block",...e}}):null}const Cn={primary:"text-primary-main border-secondary-hover",secondary:"text-white/80"},Sn=(e,t)=>m("div",{className:`px-2.5 py-1.5 mb-5 rounded-md border-2 border-solid w-fit ${Cn[t]}`,children:e}),Tn=u((e=>{const{className:t="",version:n="primary"}=e;return m("section",{className:`font-sans bg-white px-4 py-6 ${vt[n]} ${t}`,children:m(kn,{...e})})})),_n={primary:{background:"bg-white",title:"text-primary-text",description:"!text-secondary-text text-l-light",iconText:"text-secondary-text",iconBackground:"bg-main-divider",iconConnector:"bg-secondary-light",dot:"bg-secondary-text"},secondary:{background:"bg-primary-main",title:"text-white",description:"!text-white/80 text-l-light",iconText:"text-white",iconBackground:"bg-white/30",iconConnector:"bg-white",dot:"bg-white/80"}},In={normal:"h-[70px] w-[70px] min-w-[70px] min-h-[70px]",small:"h-12 w-12 min-w-12 min-h-12"},An={normal:"min-h-[70px]",small:"min-h-12"},jn=u((({className:e,title:t,description:n,showLines:i=!0,steps:r,size:l="normal",version:a="primary"})=>{const s=_n[a];return h("section",{className:`box-border font-sans bg-white px-4 py-6 flex flex-col\n ${s.background} ${s.title} ${e||""}`,children:[t?m(j,{headingType:"h3",className:`text-center ${s.title}`,title:t}):null,n?m("p",{className:`text-m-light text-center ${s.description} ${t?"mt-2":""}`,children:n}):null,r?.length?m("div",{className:"box-border py-0.5 mb-0.5 mt-5",children:m("div",{className:"flex flex-col justify-between gap-x-[101px]",children:r.map(Rn(l,a,i))})}):null]})})),Rn=(e,t,n)=>(i,r,l)=>{const a=l.length-1===r,s="normal"===e?"ml-[34px]":"ml-6",o=_n[t];return m("div",{children:h("div",{className:"flex flex-row text-center relative",children:[h("div",{className:"overflow-hidden flex-shrink-0",children:[Dn(e,t)(i,r),a?null:m("div",{className:`min-h-8 h-full w-0.5 ${n?o.iconConnector:""} ${s}`})]}),h("div",{className:`flex flex-col justify-center h-fit ${An[e]}`,children:[i.label?m("div",{className:"text-m-title-xs font-medium m-0 text-left mb-1",children:i.label}):null,i.description?m("div",{className:`text-s ${o.description} text-left`,children:i.description}):null]})]})},String(r))},Dn=(e,t)=>(n,i)=>{const r=_n[t],l="normal"===e?"38":"27",a="normal"===e?"text-m-title":"text-m-title-xs";return m("div",{className:`${In[e]} ${r.iconBackground} rounded-full z-10 mr-3 flex justify-center content-center`,children:m("span",{className:`font-medium flex self-center ${r.title} ${a}`,children:(s=n?.icon,Boolean(s?.icon||s?.src)?m(K,{image:q({...n.icon},t),width:l,height:l,asSVG:!0}):m("span",{children:i+1}))})});var s},Bn={Buttons:({buttons:e})=>e&&e?.length?m("div",{children:e.map((({rounded:e,icon:t,...n},i)=>on({button:{rounded:e,icon:t,...n},buttonClassName:`mt-3 ${i>0&&e?"ml-2.5":""} ${t?"w-12 h-12":""}`,index:i})))}):null,Img:({image:e})=>e?.src?m(K,{image:{...e,className:"m-0"}}):null,List:({isDotted:e,...t})=>m(bn,{className:"flex flex-col justify-between items-start text-m",version:"gray",isDotted:e??!0,...t}),LabelDescription:({label:e,description:t})=>h("div",{children:[e?m("div",{className:"text-xl font-medium m-0 "+(t?"mb-1":""),children:e}):null,t?m("div",{className:"text-s text-secondary-text",children:t}):null]})},On=u((({title:e,icon:t})=>h("div",{className:"flex gap-2.5 mb-2",children:[e?m(j,{headingType:"h3",className:"font-medium",title:e}):null,t?m(K,{className:"ml-auto max-w-6 max-h-6",image:t,width:"24px",height:"24px"}):null]}))),Vn=u((({tile:e,...t})=>h("div",{className:"rounded-md border-gray h-full box-border border p-4",children:[m(On,{...e?.header}),e?.data?.length?e.data.map(((e,n)=>h("div",{children:[n>0?m("div",{className:"h-5"}):null,Mn(e,t)]},String(n)))):null]})));function Mn(e,t){if(!e||!e.tableCellType||!(e.tableCellType in Bn))return null;const n=Bn[e.tableCellType];return m(n,{displayTable:()=>null,isVisible:!0,...e,...t})}const Pn=u((({tiles:e,...t})=>e?.length?m(ue,{...t,children:e.map(((e,n)=>m(Vn,{tile:e,...t},String(n))))}):null)),Ln=u((({tiles:e,...t})=>e?.length?m("div",{className:"flex flex-col gap-3.5",children:e.map(((e,n)=>m(Vn,{tile:e,...t},String(n))))}):null)),En=u((({className:e,title:t,description:n,tariffsColumns:i,rowHeaders:r,orientation:l="vertical",...a})=>{const s=Fn(i),o=Hn(r,s);return h("section",{className:`px-4 py-6 bg-white font-sans text-primary-text overflow-x-hidden ${e}`,children:[t?m(j,{headingType:"h2",className:`text-center ${n?"mb-2":"mb-5"}`,title:t}):null,n?m("div",{className:"mb-5 text-center text-m",children:n}):null,m("vertical"===l?Ln:Pn,{tiles:o,...a})]})})),Fn=e=>e?.[0]?.data?e[0].data:[],Hn=(e,t)=>e?.map(((e,n)=>({header:e,data:t?.[n]||[{}]}))),zn={primary:{background:"bg-white",icon:"bg-primary-main text-white",title:"text-primary-text",description:"text-secondary-text"},secondary:{background:"bg-primary-main",icon:"bg-white text-primary-main",title:"text-white",description:"text-white"},"secondary-light":{background:"bg-primary-main/10",icon:"bg-primary-main text-white",title:"text-primary-text",description:"text-secondary-text"}},Gn=u((({title:e,description:t,blockVersion:n="primary",iconVersion:i,image:r,className:l="",items:a,isDotted:s=!0})=>{const o=zn[n],c="secondary"===n?"secondary":"gray";return h("section",{className:`font-sans px-4 py-[18px] flex flex-col ${o.background} ${l}`,children:["small"===i?Jn(o.icon):null,"big"===i?Wn(r):null,h("div",{className:"py-0.5",children:[e?m("div",{className:`text-l font-medium mb-1 ${o.title}`,children:e}):null,t?m("div",{className:`text-s ${o.description}`,children:t}):null,a?.length?m(bn,{className:"mt-1 text-m",items:a,isDotted:s,version:c}):null]})]})}));function Jn(e){return m("div",{className:"mb-3",children:m("div",{className:`rounded-full h-4 w-4 text-center text-xs-light ${e}`,children:"i"})})}function Wn(e){return e?.src?m(K,{className:"pb-3 mr-auto",image:e}):null}const Un={Accordion:B,AccordionItem:Z,ComparisonTable:Ge,Footer:Nt,Gallery:wt,Header:Ht,Headline:Gt,LinkDocs:qt,LinkList:Ze,MobileAppTile:st,ProductBlock:Tn,StepsBlock:jn,TariffsTable:En,TextBlock:Gn,Placeholder:nn},Yn=["Header","Footer"],Kn=([,{target:e}])=>Math.abs(e.getBoundingClientRect().top);function Xn(e=_.inst,t=globalThis){const n=s(new Map);r((()=>e.eventBus.subscribe("intersection",(({block:e,intersection:t})=>{n.current&&n.current.set(e,t)}))),[e]),r((()=>{const i=((e,t=600)=>{let n;const i=(...r)=>{i.dispose(),n=setTimeout((()=>{e(...r)}),t)};return i.dispose=()=>{n&&clearTimeout(n)},i})((()=>{if(!(globalThis.scrollY>3*globalThis.innerHeight/4))return void e.reset();const t=function(e){const t=e.filter((([e])=>!Yn.includes(e.type||""))).filter((([,{intersectionRatio:e}])=>e>.01)),[n]=t.length>0?ce(Kn)(t):[];return n}([...n.current||[]]);t?.anchor?e.replace(t.anchor):t||e.reset()}),100);return t.addEventListener("scroll",i),()=>{i.dispose(),t.removeEventListener("scroll",i)}}),[e,t])}const qn=d();const Qn=u((({className:e,onClick:t,ariaLabel:n})=>m("button",{type:"button",className:`border-0 w-9 bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":n,children:Zn()}))),Zn=()=>{const e={stroke:"#292D32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"};return h("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[m("path",{...e,strokeMiterlimit:"10",d:"M21.48 11.95c.5-1.4-.4-2.6-1.9-2.6h-4c-.6 0-1.1-.5-1-1.2l.5-3.2c.2-.9-.4-1.9-1.3-2.2-.8-.3-1.8.1-2.2.7l-4.1 6.1M7.48 18.35l3.1 2.4c.4.4 1.3.6 1.9.6h3.8c1.2 0 2.5-.9 2.8-2.1l1.24-3.77"}),m("path",{...e,d:"M2.38 18.35v-9.8c0-1.4.6-1.9 2-1.9h1c1.4 0 2 .5 2 1.9v9.8c0 1.4-.6 1.9-2 1.9h-1c-1.4 0-2-.5-2-1.9Z"})]})},ei=u((({className:e=""})=>{const t=function(e){const[t,n]=i(0);return r((()=>{(async()=>{const[t]=await qn.getLikeCount(e);n(t?.value||0)})()}),[e]),{likeCount:t,like:l((async()=>{n(await qn.like(e))}),[e]),dislike:l((async()=>{n(await qn.dislike(e))}),[e])}}(ve().pathname);return h("div",{className:`border-main border-2 border-solid bg-white flex w-[125px] items-center justify-center gap-3 p-2 font-sans ${e}`,children:[m(Qn,{onClick:ye(t.like),ariaLabel:"Поставить отметку «лайк»"}),m(Qn,{onClick:ye(t.dislike),className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),m("span",{className:"select-none",children:t.likeCount})]})})),ti=u((e=>{const{className:t="",blocksRegistry:n,blockDecorator:i,data:r={}}=e,{style:l,blocks:a,slots:s,likeControl:o,colorPalette:c="pc"}=r,d={key:"",page:r,blocksRegistry:n,blockDecorator:i,parent:r};return Xn(),h("section",{className:`relative ${g(l)} ${t}`,"data-theme":c,children:[s?.header?m("div",{className:"mb-5 shadow-[0_8px_32px_0px_#00000014]",children:v(s?.header,{...d,slotName:"header"})}):null,h("div",{className:"container grid grid-cols-12 gap-1",children:[v(a,d),s?.footer?v(s?.footer,{...d,slotName:"footer"}):null]}),o?m("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:m(ei,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto"})}):null]})}));ti.childrenTypes=[],ti.slots=()=>["header","footer"];e.Blocks=Un,e.ContentPage=ti,e.DaDataAPI=function(e=""){return{getFetcherAddress:async function(){if(!("geolocation"in navigator))return null;try{const t=await(async()=>new Promise((e=>navigator.geolocation.getCurrentPosition((({coords:t})=>e(t))))))(),n=await fetch(`${e}/geolocate`,{method:"POST",mode:"cors",body:JSON.stringify({lat:t.latitude,lon:t.longitude,count:1})});return(await n.json())?.suggestions?.[0]?.data?.city}catch(e){return console.error(e),null}}}},e.LikeAPI=d,e.handlerDecorator=ye,e.joinList=function(e){return t=>t.reduce(((t,n,i)=>t.length?t.concat({...e,key:i},n):[n]),[])},e.packageVersion="0.6.48",e.projectSettings=o,e.setup=(e,t)=>{globalThis._uni={_jsx:e,_jsxs:t||e}},e.setupHooks=e=>{t=e},e.url=Ne,e.useRouter=ve,Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).UniMobileBlocks={})}(this,(function(e){"use strict";let t;const n=e=>(...n)=>t[e](...n),i=n("useState"),r=n("useEffect"),l=n("useCallback"),a=n("useMemo"),s=n("useRef");const o=new class{_={PROD_BRANCH:"master",FORCED_DRAFT_FLOW:!1};setup(e){this._=e}get TEST_BRANCH(){return this._.TEST_BRANCH}get RC_BRANCH(){return this._.RC_BRANCH}get PROD_BRANCH(){return this._.PROD_BRANCH}get FORCED_DRAFT_FLOW(){return this._.FORCED_DRAFT_FLOW}get ASSIST_PROJECT_ID(){return this._.ASSIST_PROJECT_ID}get SITEMAP(){return this._.SITEMAP}get FOOTER(){return this._.FOOTER}get CDN(){return this._.CDN}get BASE_PATH(){return this._.BASE_PATH&&!this._.BASE_PATH.endsWith("/")?`${this._.BASE_PATH}/`:this._.BASE_PATH}get YANDEX_MAP_API_KEY(){return this._.YANDEX_MAP_API_KEY}get YANDEX_METRIKA_ID(){return this._.YANDEX_METRIKA_ID}},c="likesToken";function d(){async function e(){try{const e=JSON.parse(globalThis.localStorage?.getItem(c)||"");if(e?.token)return e}catch(e){}try{const e=await fetch("/assist/v1/public/auth",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({prefix:"guest"})}),{token:t,name:n}=await e.json();return globalThis.localStorage?.setItem(c,JSON.stringify({token:t,name:n})),{token:t,name:n}}catch(e){return console.error(e),{}}}return{getLikeCount:async function(...t){if(!t.length)return[];const{token:n}=await e();try{const e=await fetch(`/assist/v1/public/projects/${o.ASSIST_PROJECT_ID}/nodes/likes`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n},body:JSON.stringify({node_ids:t})}),{likes:i}=await e.json();return i||[]}catch(e){return console.error(e),[]}},like:async function(t){if(!t)return 0;const{token:n,name:i}=await e();try{const e=await fetch(`/assist/v1/public/projects/${o.ASSIST_PROJECT_ID}/nodes/like`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n,UserID:i},body:JSON.stringify({node_id:t,user_name:i})}),{likes:r}=await e.json();return r||0}catch(e){return console.error(e),0}},dislike:async function(t){if(!t)return 0;const{token:n,name:i}=await e();try{const e=await fetch(`/assist/v1/public/projects/${o.ASSIST_PROJECT_ID}/nodes/unlike`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n,UserID:i},body:JSON.stringify({node_id:t,user_name:i})}),{likes:r}=await e.json();return r||0}catch(e){return console.error(e),0}}}}const m=(...e)=>globalThis._uni._jsx(...e),h=(...e)=>globalThis._uni._jsxs(...e),u=e=>{const t=e;return t._tmpl||(t._tmpl=globalThis.__UNI_REACT__?e:p(e)),t._tmpl},p=e=>{function t(t,n){const{children:i,...r}=t||{},l=n?.slots?.default,a=i||l&&l();return e(Object.assign(r,a&&{children:a}),n)}return t.inheritAttrs=!1,t};function g(e){return e?e.filter(Boolean).join(" "):""}const b=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),x=[],f=["col-span-12"];function N(e,t){const{key:n,blockDecorator:i=b,blocksRegistry:r={},ancestors:l=x,className:a=""}=t,{type:s}=e;s&&s in r||console.warn(`No block with "${s}" is registered`);const o=s&&r[s];return i({blockClassName:`scroll-mt-12 ${a} ${g(e.style||f)}`,block:e,ancestors:l,render:({block:i,blockClassName:r})=>{const{content:l}=i;return o?m(o,{className:r,block:e,options:t,...l},n):null}},n)}const y=[],v=(e,{key:t,ancestors:n=y,slotName:i=null,renderChild:r=N,...l})=>(e||[]).map(((e,a)=>r(e,{...l,key:`${t||e.type}-${a}`,ancestors:l.parent?[...n||y,[l.parent,i]]:n})));function w({children:e,block:t,options:n,renderChild:i}){return e||(t&&n?v(t.blocks,{...n,parent:t,renderChild:i}):null)}class k{static inst=new k;subscribers={};subjectsStateMap={};subscribe(e,t){this.subscribers[e]=(this.subscribers[e]||[]).concat(t);const n=this.subjectsStateMap[e];return n&&t(n),()=>{this.unsubscribe(e,t)}}unsubscribe(e,t){this.subscribers[e]=this.subscribers[e]?.filter((e=>e!==t))}fire(e,t){e in this.subjectsStateMap&&(this.subjectsStateMap[e]=t),this.subscribers[e]?.forEach((e=>e(t)))}subject(e,t){this.subjectsStateMap[e]=t}}function $(e,{sensitivity:t,rootRef:n}={}){const i=s(null),l=a((()=>({threshold:C(t),root:n?.current})),[t,n?.current]);return r((()=>{if(!i.current)return;const t=new IntersectionObserver(e,l);return t.observe(i.current),()=>{t.disconnect()}}),[e,l]),i}function C(e=0){const t=Math.round(10*e);return new Array(t).fill(0).map(((e,n)=>Math.min(n/t)),1).concat(1)}const S=e=>e?.replace("#",""),T=e=>`${globalThis.location?.pathname}#${S(e)}`;class _{static inst=new _;eventBus=new k;constructor(){const e=S(globalThis.location?.hash);e&&this.eventBus.subject("goto",{anchor:e})}goto(e){const t=S(e);t&&(this.push(t),this.eventBus.fire("goto",{anchor:t}))}push(e){globalThis.history?.pushState(null,"",T(e))}replace(e){globalThis.history?.replaceState(null,"",T(e))}reset(){globalThis.history?.replaceState(null,"",T())}}const I=u((({className:e,block:t,tag:n="section",role:a,children:s})=>{const o=n,c=function(e,t=_.inst){const n=$(l((n=>{if(!e||!n?.length)return;const i=n[n.length-1];t.eventBus.fire("intersection",{block:e,intersection:i})}),[e,t]),{sensitivity:1});return r((()=>{if(n.current)return t.eventBus.subscribe("goto",(({anchor:t})=>{n.current&&e?.anchor===t&&n.current.scrollIntoView({behavior:"smooth",block:"start"})}))}),[e,t]),n}(t),[d,h]=i(!0);return r((()=>k.inst.subscribe("tab",(e=>{if("group"===e.type){const n=t?.labels?.length||t?.anchor;h(!e.label||(!n||Boolean(t?.labels?.includes(e.label))))}else h(!0)}))),[t]),d?m(o,{className:e,role:a,...t?.anchor?{id:t.anchor,ref:c}:{},children:s}):null})),A={h0:"text-m-title",h1:"text-m-title",h2:"text-m-title",h3:"text-h6",h4:"text-m-title-xs",h5:"text-m-title-xs",h6:"text-m-title-xs"},R=u((e=>{const{className:t,headingType:n="h3",title:i,as:r="h3"}=e;return m(r,{className:`font-sans font-medium m-0 ${A[n]} ${t||""}`,children:i})})),j=u((({size:e,color:t,align:n,font:i,children:r})=>m("p",{className:["font-sans",e,t,n,i].filter(Boolean).join(" "),children:r}))),D=u((({children:e})=>m("ul",{className:"list-none m-0 p-0",children:e}))),B=u((({title:e,description:t,className:n="",...i})=>h(I,{className:`py-6 px-4 bg-white text-primary-text ${n}`,...i,children:[e?m(R,{headingType:"h3",className:"mb-2 text-center",title:e}):null,t?m("div",{className:"mb-5",children:m(j,{size:"text-m",font:"font-light",align:"text-center",children:t})}):null,m(D,{children:w(i)})]})));B.childrenTypes=["AccordionItem"];const O=u((({isFoldButtonOnTop:e=!1,unfoldedByDefault:t=!1,renderFoldableSection:n,renderFoldButton:r})=>{const[a,s]=i(t),o=l((()=>{s((e=>!e))}),[]),c=n({isUnfolded:a,onToggle:o}),d=r?r({isUnfolded:a,onToggle:o}):null;return h("div",e?{children:[d,c]}:{children:[c,d]})})),V=u((({className:e="",isUnfolded:t,children:n})=>{const i=s(null);return r((()=>{i.current&&(i.current.style.maxHeight=t?`${i.current.scrollHeight}px`:"")}),[t,n?.length]),m("div",{ref:i,className:`transition-max-h duration-300 overflow-hidden ${i.current||!t?"max-h-0":""} ${e}`,children:n})})),M={normal:"",color:"text-primary-main",black:"text-black",white:"text-black"},P=u((({className:e="",imageClassName:t="",name:n="",alt:i=`Иконка ${n}`,title:r=i,iconVersion:l="color",asSVG:a,...s})=>{const c=`${o.CDN||""}icons/${n}.svg`;return a&&"normal"!==l?m(F,{className:e,children:h("svg",{className:[E(e,s.width),M[l],t,L(l)].join(" "),...s,"aria-hidden":"true",children:[r?m("title",{children:r}):null,i?m("desc",{children:i}):null,m("use",{href:`${c}#icon`,xlinkHref:`${c}#icon`})]})}):m("img",{className:e,src:c,alt:i,title:r,...s,"aria-hidden":"true"})})),L=e=>"white"===e?"invert":"",E=(e,t)=>t?`width: ${t}px `:"w-full h-full",F=u((({className:e,children:t})=>e?m("div",{className:e,children:t}):t)),H=(e,t)=>e.media&&t.media?e.media-t.media:0,z=u((({className:e="",image:t,imageClassName:n="",isMobile:i=!1,pathPrefix:r})=>{if(!t||!t?.sources&&!t?.src)return null;return h("picture",{className:`${i?"flex":"flex-none"} ${e}`,children:[t?.sources?.length?t.sources.sort(H).map((({src:e,format:n,media:i},l)=>m("source",{srcSet:W(e,r),type:U(n),media:i?`(max-width: ${i}px)`:"",...t.size},`${l}_${e}`))):null,G({...t,src:J(t.src,r)},n,i)]})})),G=(e,t="",n=!1)=>{const i={width:e.size?.width?`${e.size?.width}px`:"100%",height:e.size?.height?`${e.size?.height}px`:"100%"},r=e.title||"",l=e.alt||e.title,a=n?"m-auto":"m-0";return m("img",{src:e.src,className:`${a} ${t}`,alt:l,title:r,style:i,...e.size})},J=(e,t)=>!e||e?.startsWith("data:image")?e:`${((e="")=>e&&!e.endsWith("/")?`${e}/`:e)(t)}${e}`,W=(e,t)=>e?.split(",").map((e=>J(e.trim(),t))).join(", ");function U(e){return e?`image/${String(e)}`:void 0}const Y=u((({className:e="",image:t,imageClassName:n="",isMobile:i,pathPrefix:r,...l})=>t?.src||t?.icon?t.icon?m(P,{className:e,imageClassName:n,iconVersion:t?.iconVersion||"normal",name:t.icon,...l}):m(z,{className:e,imageClassName:n,image:t,isMobile:i,pathPrefix:r}):null)),K=u((e=>m(Y,{...e,isMobile:!0}))),X=u((({size:e,color:t,align:n,font:i,children:r})=>m("span",{className:["font-sans",e,t,n,i].filter(Boolean).join(" "),children:r}))),q=(e,t="primary")=>({...e,iconVersion:e?.iconVersion??("secondary"===t?"white":"color")}),Q=["PlusIcon","MinusIcon"],Z=u((({className:e="",label:t="",labelIcon:n,isExpanded:i,...r})=>{const{bordered:l}=function(e,t){const{content:n}=function(e){return e?.parent||{}}(e);return n||t}(r.options,{});return m("li",{className:`${l?"border p-4 rounded mb-4":"border-0 border-b last:border-b-0"} border-solid border-main-divider ${e}`,children:m(O,{isFoldButtonOnTop:!0,unfoldedByDefault:i,renderFoldableSection:({isUnfolded:e})=>m(V,{className:"flex flex-wrap group-last:last:pb-0 gap-5 [&>*]:p-0",isUnfolded:e,children:w(r)}),renderFoldButton:({isUnfolded:e,onToggle:i})=>m(ee,{className:l?"":"py-3.5 px-0",label:t,icon:Q[Number(e)],primaryIcon:n,onClick:i})})})}));Z.childrenTypes=[];const ee=u((({className:e,icon:t,label:n,primaryIcon:i,onClick:r})=>h("button",{className:`border-none bg-transparent flex justify-between text-left w-full font-sans text-primary-text group cursor-pointer ${e}`,onClick:r,children:[h("div",{className:"flex group-hover:text-primary-main",children:[i?m(K,{image:q(i),className:"mr-3 flex-shrink-0",width:"24",height:"24",asSVG:!0}):null,m(X,{size:"text-m-title-xs",font:"font-medium",children:n})]}),m(K,{className:"flex-shrink-0",image:q({icon:t}),width:"24",height:"24",asSVG:!0})]}))),te=u((({className:e="",style:t,idx:n,activeIndex:i,observerOptions:r,children:a,onIntersection:s})=>{const o=$(l((e=>{e.length&&s&&s(n||0,e[e.length-1])}),[s,n]),r);return m("div",{className:`inline-block snap-always box-border ${e}`,style:t,role:"listitem","aria-current":Boolean(n===i),ref:o,children:a})})),ne=["min-w-[100%]","min-w-[50%]","min-w-[33.33%]","min-w-[25%]"],ie=u((({className:e="",containerRef:t,activeIndex:n,visibleItemCount:i=0,gap:r=0,padding:a=0,snapAlign:o="snap-center",children:c,onVisibleItemsChange:d,onVisibleIndicesChange:h})=>{const u={sensitivity:1,rootRef:t},p=s([]),g=l(((e,t)=>{const n=[...p.current||[]];n[e]=t,p.current=n,d&&d(n),h&&h(le(n))}),[d,h]),b=i>0?r*Number(i)-1:0;return m("div",{className:`box-border overflow-auto flex horizontal-list no-scrollbar ${e}`,style:{...re(a,b),gap:`${r}px`},role:"list",ref:t,children:(x=(e,t)=>m(te,{className:`${o} ${i?ne[i-1]:""}`,style:re(a/4),activeIndex:n,idx:t,observerOptions:u,onIntersection:g,children:e},String(t)),e=>null==e?e:Array.isArray(e)?e.map(x):x(e,0))(c)});var x})),re=(e,t=0)=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e+t}px`}),le=e=>e.map(((e,t)=>[e,t])).filter((([e])=>e&&e.intersectionRatio>=.9)).map((([,e])=>e)),ae=u((({containerRef:e,activeIndex:t,dotCount:n=0})=>n?m("div",{className:"flex gap-2 mx-auto mt-5 w-fit",children:new Array(n).fill(null).map(((n,i)=>m("div",{className:"cursor-pointer bg-primary-main h-2 rounded-full transition-width duration-300 "+(i===t?"w-6":"w-2 opacity-30"),role:"button","aria-hidden":!0,onClick:()=>(n=>{n!==t&&e?.current&&e.current.children[n]?.scrollIntoView({behavior:"smooth",block:"nearest"})})(i)},String(i))))}):null)),se=e=>e,oe=(e=se)=>t=>t.reduceRight(((t,n)=>e(t)>e(n)?t:n)),ce=(e=se)=>oe((t=>-e(t))),de=e=>t=>e.scrollWidth/t,me=e=>(t,n)=>{e.scrollBy({left:n*de(e)(t),behavior:"smooth"})},he=({itemCount:e,isCyclic:t,onVisibleIndicesChange:n})=>{const r=s(null),[a,o]=i([]),c=l((e=>{o((t=>{return(n=t)===(i=e)||Boolean(n&&i&&n?.length===i?.length&&n.every(((e,t)=>e===i[t])))?t:e;var n,i})),n&&n(e)}),[e]),[d,m]=a.length?[ce()(a),oe()(a)]:[-1,-1],h=d>0,u=m<e-1,p=l((()=>{var n;r.current&&(t&&!h?(n=r.current).scrollTo({left:n.scrollWidth,behavior:"smooth"}):me(r.current)(e,-1))}),[t,e,h]),g=l((()=>{r.current&&(t&&!u?r.current.scrollTo({left:0,behavior:"smooth"}):me(r.current)(e,1))}),[e,t,u]);return[r,{scrollLeft:p,scrollRight:g,canScrollLeft:t||h,canScrollRight:t||u,visibleIndicesRange:[d,m],handleVisibleIndicesChange:c}]},ue=u((({className:e,gap:t=14,padding:n=16,showDots:i=!0,children:r,onVisibleIndicesChange:l})=>{const a=Array.isArray(r)?r.length:0,[s,o]=he({itemCount:a,onVisibleIndicesChange:l}),[c]=o.visibleIndicesRange;return h("div",{className:e,children:[m(ie,{containerRef:s,activeIndex:c,visibleItemCount:1,gap:t,padding:n,onVisibleIndicesChange:o.handleVisibleIndicesChange,children:r}),i?m(ae,{containerRef:s,activeIndex:c,dotCount:a}):null]})}));const pe=e=>e?.includes("//"),ge=e=>(e||"").replace(/\/?\?.*/,""),be=e=>{if(!e||!pe(e))return;const t=e,n=t.indexOf("//"),i=t.indexOf("/",n+"//".length);return-1!==i?t.substring(0,i):t},xe=e=>{if(!e||!pe(e))return;return new URL(e).pathname},fe=e=>e?.startsWith("#");var Ne=Object.freeze({__proto__:null,isURL:pe,withoutQuery:ge,getOrigin:be,getPathname:xe,getHash:e=>{if(!e||!pe(e))return;const t=e.indexOf("#");return-1!==t?e.substring(t,e.length):void 0},isHash:fe});const ye=(e,t)=>ye._impl(e,t);function ve(){return ve._impl()}function we(){const e=ve(),t=_.inst;return n=>{const i=((e,t)=>{if(!e)return e;const n=be(t?.href);return n?e.replace(n,"")||"/":e})(n.href,e);return{...n,href:i,"aria-label":n.text,onClick:ye((r=>{n.onClick&&n.onClick(r),ke(i,n.target)||(r?.preventDefault(),fe(i)?t.goto(i):i&&e.push(i))}),n)}}}ye._impl=e=>e,ye.setup=e=>{ye._impl=e},ve._impl=()=>({href:globalThis.location?.href||"/",pathname:globalThis.location?.pathname||"/",query:{},push:()=>{},replace:()=>{}}),ve.setup=e=>{ve._impl=e};const ke=(e,t)=>pe(e)||t&&"_self"!==t||e?.startsWith("/"),$e={primary:"text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active",secondary:"text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active",white:"text-primary-main bg-white hover:text-white hover:bg-primary-hover active:bg-white active:text-primary-main",link:""},Ce="bg-main-divider text-main-disabled",Se={primary:Ce,secondary:Ce,white:Ce,link:""},Te="text-center font-sans select-none",_e={primary:"group-hover:brightness-0 group-hover:invert",secondary:"group-hover:brightness-0 group-hover:invert",white:"group-hover:brightness-0 group-hover:invert",link:""},Ie=u((e=>{const{text:t,aboveText:n,appendLeft:i,appendRight:r,version:l="primary"}=e;return h("div",{className:Ae(e),children:[i?m("div",{className:_e[l],children:i}):null,Re(e)?h("div",{children:[n?m("div",{className:"text-xs-light text-left",children:n}):null,m("div",{className:"text-left "+(n?"text-s -mt-0.5":"text-l"),children:t})]}):null,r?m("div",{className:_e[l],children:r}):null]})})),Ae=e=>{const{version:t,aboveText:n,rounded:i}=e;if("link"===t)return"";const r="gap-2 "+(n?"py-2.5 px-7":"py-4 px-4");return["group flex items-center justify-center",Re(e)?r:"h-12 w-12",i?"rounded-full":""].join(" ")},Re=({text:e,aboveText:t,appendLeft:n})=>Boolean(e||t||!n),je=({className:e,rounded:t,version:n})=>["inline-block",Te,n?Se[n]:"",t?"rounded-full":"rounded-md",e].join(" "),De=({className:e,rounded:t,version:n})=>[Te,"border border-transparent inline-block cursor-pointer no-underline focus:border-primary-text focus:border",n?$e[n]:"",t?"rounded-full":"rounded-md",e].join(" "),Be=u((({disabled:e,children:t,...n})=>{const i=we()(n),r=t??m(Ie,{...i});return m(e?Ve:Oe,{...i,children:r})})),Oe=u((({className:e="",href:t,rel:n,target:i,ariaLabel:r,version:l,rounded:a,onClick:s,children:o})=>m("a",{className:De({className:e,version:l,rounded:a}),href:t,rel:n,target:i,"aria-label":r,role:t?"link":"button",onClick:s,children:o}))),Ve=u((({className:e,ariaLabel:t,version:n,rounded:i,children:r})=>m("div",{role:"button","aria-disabled":"true","aria-label":t,tabIndex:-1,className:je({className:e,rounded:i,version:n}),children:r}))),Me=(e=!1)=>e?"text-white":"",Pe=(e=!1)=>"text-s mb-3.5 "+(e?"text-white":"text-secondary-text/80"),Le=u((({icon:e,image:t,title:n,subtitle:i,isFillGradient:r})=>h("div",{role:"columnheader",children:[e?m(K,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",image:e,width:"63",height:"63"}):null,t?.src&&m("div",{className:"mb-3.5",children:m(K,{image:t})}),n?m(R,{headingType:"h4",className:Me(r),title:n}):null,i?m("div",{className:Pe(r),children:i}):null]}))),Ee=u((({cell:e,rowHeader:t,isFillGradient:n=!1})=>m("div",{className:"box-border flex flex-col",role:"cell",children:m("div",{className:"h-full border-main-divider border border-t-0 border-x-0",children:e.map(Fe(n,t))})}))),Fe=(e,t)=>({label:n,description:i},r)=>h("div",{className:"flex justify-between text-s py-3.5",children:[m("div",{className:""+(e?"text-white/80":"text-secondary-text"),children:t}),h("div",{className:"basis-1/2",children:[n?m("div",{className:"text-right "+(e?"text-white":""),children:n}):null,i?m("div",{className:"text-right "+(e?"text-white/80":"text-secondary-text"),children:i}):null]})]},String(r)),He=u((({header:e,columnData:t,visibleRowLength:n=0,isFillGradient:i,showRow:r,onToggleColumn:l})=>{const a=t?.slice(0,r?t.length:n),s=i?"secondary":"primary";return h("div",{className:`border border-gray rounded-md p-4 mb-3.5 ${i?"bg-gradient-to-r from-main-gradient-start to-main-gradient-end":""}`,role:"row",children:[m(Le,{...e,isFillGradient:i}),a?.length?a.map((({rowHeader:e,cell:t},n)=>m(Ee,{cell:t,rowHeader:e,isFillGradient:i},String(n)))):null,r&&e?.link?m(Be,{href:e.link.href,target:e.link.target,version:s,className:"text-s font-medium mt-4 py-[11px]",children:e.link.text}):null,ze({onToggleColumn:l,isFillGradient:i,showRow:r})]})})),ze=({onToggleColumn:e,isFillGradient:t,showRow:n})=>m("div",{className:"mt-5",role:"cell",children:m("a",{role:"link",onClick:e,className:"text-s font-medium cursor-pointer "+(t?"text-white/80":"text-primary-main"),children:n?"Скрыть":"Показать описание"})}),Ge=u((e=>{const{className:t,title:n}=e;return h("section",{className:`bg-white font-sans px-4 py-6 overflow-hidden text-primary-text relative ${t||""}`,children:[n?m(R,{headingType:"h3",className:"font-medium text-center m-0 mb-5",title:n}):null,m("div",{role:"table",children:m(Je,{...e})})]})})),Je=u((({columns:e=[],rowHeaders:t,isColoredFirstColumn:n,visibleRowLength:r,orientation:a,...s})=>{const[o,c]=i(new Array(e.length).fill(!r)),d=l((e=>{const t=(t,n)=>n===e?!t:t;c((e=>e.map(t)))}),[]),h=l((()=>c((e=>new Array(e.length).fill(!1)))),[]),u=e?.map((({data:e,header:i},l)=>{return m(He,{visibleRowLength:r,showRow:o[l],header:i,columnData:(a=e,a?.map(((e,n)=>({cell:e,rowHeader:t?.[n]?.title})))),isFillGradient:0===l&&n,onToggleColumn:()=>d(l),...s},String(l));var a}));return"horizontal"===a?m(ue,{onVisibleIndicesChange:h,children:u}):u})),We=new Map;function Ue(e,t,{fallback:n}={}){const l=a((()=>Ye(e)),[e]),[s,o]=i(),[c,d]=i(),m=e=>{o(e),d(void 0)},h=e=>{o(void 0),d(e)};r((()=>{if(!l.every((e=>null===e)))try{const e=t(...l);"then"in e?(e=>{e.then((e=>We.get(l)||e)).then(m).catch(h)})(e):m(e)}catch(e){h(e)}}),[t,...l]);const u=l[0],p=n&&"string"==typeof u&&n[u];return{data:s||c||!p?s:p,error:c,mutate:()=>Promise.resolve(void 0),isValidating:!1}}function Ye(e){return e?Array.isArray(e)?e:e instanceof Function?Ye(e()):[e]:[e]}async function Ke(e,t){const n=await fetch(e,{...t,headers:{...t?.headers,"Content-Type":"application/json"}});return await n.json()}function Xe(e,t={}){const{data:n}=Ue(`/wcms-resources/${e}.json`,Ke,{fallback:t});return n||{}}const qe=u((({className:e,isMobile:t=!1})=>{const{term:n,setTerm:r}=(()=>{const[e,t]=i("");return{term:e,setTerm:e=>t(e)}})(),l=t?"text-s":"text-l-light",a=t?" placeholder-transparent":"h-full",s=t?"some search":void 0;return h("form",{className:`font-sans relative ${e}`,children:[h("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none",children:[m("div",{className:t?"w-5 h-5":"w-6 h-6",children:m(K,{image:{icon:"LoupeIcon"},width:"24",height:"24"})}),n?null:m("label",{htmlFor:"search-bar-input",className:`text-secondary-text ${l}`,children:"Поиск по сайту"})]}),m("input",{id:"search-bar-input",className:`h-12 pl-12 w-full peer text-l text-black border border-solid rounded-md box-border\n outline-none pr-[6%] border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text ${a}`,value:n,onChange:e=>r(e.target.value),type:"text",name:"search-bar-input",placeholder:s}),t?m("button",{className:"visible peer-placeholder-shown:invisible absolute top-2 right-3 w-6 h-6 p-1 bg-transparent cursor-pointer border-none",onClick:e=>{e.preventDefault(),r("")},children:m(K,{image:{icon:"CloseIcon"},width:"24",height:"24"})}):m(Be,{version:"primary",text:"Найти",className:"invisible peer-focus:visible absolute top-[3px] right-1",onClick:e=>{e?.preventDefault(),console.log("click")},children:m("div",{className:"text-s px-9 py-2.5",children:"Найти"})})]})})),Qe=u((e=>m(qe,{...e,isMobile:!0}))),Ze=u((({className:e="",documents:t,...n})=>m(I,{className:`font-sans bg-white mt-2.5 ${e}`,...n,children:m("ul",{className:"flex flex-col text-s text-secondary-text p-0",children:t?.length?et(t):null})}))),et=e=>e.map(((e,t)=>{const{text:n,...i}=e;return m("li",{className:"mb-4 list-none",children:m("a",{className:"hover:text-primary-main",role:"link",...i,children:n||null})},`list_item_${String(t)}`)})),tt={"bg-white":"color",transparent:"white"},nt={"bg-white":"text-primary-main",transparent:"text-white"},it=(e,t,n)=>m(K,t?.src?{image:t,className:nt[e],width:n?.width,height:n?.height,pathPrefix:"/wcms-resources/",asSVG:!0}:{image:{icon:t?.icon||"LogoIcon",iconVersion:tt[e]},className:nt[e],width:n?.width,height:n?.height,asSVG:!0}),rt={"bg-white":"text-primary-text",transparent:"text-white"},lt=(e,t,n)=>m("span",{className:`${rt[t]} ml-2.5 font-medium ${n||""}`,children:e||"Россельхозбанк"}),at=u((({bgColor:e="bg-white",children:t,className:n="",href:i,logo:r,showTitle:l=!0,targetBlank:a})=>h("a",{className:`inline-flex items-center font-sans no-underline ${n}`,href:i||"https://rshb.ru/",target:a?"_blank":"_self","aria-label":r?.title||"Россельхозбанк",children:[it(e,r?.image,{width:"34",height:"34"}),l?lt(t||r?.title,e,"text-s"):null]}))),st=u((({className:e="",title:t="Мобильное приложение",description:n,href:i="#"})=>m("div",{className:`col-span-12 rounded-md cursor-pointer p-4 mt-6 mb-6 bg-secondary-light font-sans ${e}`,children:i?h("div",{className:"flex",children:[m("div",{className:"flex justify-center align-middle rounded-md bg-primary-main w-12 h-12",children:m(at,{className:"w-8",bgColor:"transparent",showTitle:!0})}),h("a",{href:i,target:"_blank",className:"flex flex-col justify-center pl-3",children:[m("div",{className:"text-s font-medium mb-[3px]",children:t}),m("div",{className:"text-s text-secondary-text",children:n})]})]}):null}))),ot=u((({className:e="",items:t,hasButton:n})=>h("div",{className:e,children:[t?.length?t.map(ct):null,n?m(Be,{version:"primary",className:"mb-6 w-full",href:"/",target:"_blank",ariaLabel:"Обратная связь",text:"Обратная связь"}):null]}))),ct=(e,t)=>{const{type:n,text:i,description:r}=e;return h("div",{className:"mb-4",children:[m("div",{children:dt(n,i)}),m("div",{className:"mt-1 text-s-light text-secondary-text",children:r})]},String(t))},dt=(e,t="")=>{switch(e){case"tel":return m("a",{className:"text-h6 text-primary-text hover:text-primary-main no-underline",href:`tel:${mt(t)}`,children:t});case"email":return m("a",{className:"text-xl-light text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return m("span",{children:t})}},mt=e=>e.replaceAll(/\D/g,""),ht=u((({className:e="",index:t,text:n,...i})=>{const r=we(),{href:l,target:a,onClick:s}=r(i);return m("a",{className:`text-secondary-text hover:text-primary-main inline-block no-underline ${e}`,href:l,target:a,onClick:s,children:n||`Документ ${t}`})})),ut=u((({title:e,links:t,className:n=""})=>h("div",{className:n,children:[m("span",{className:"text-primary-text text-s font-medium",children:e}),t?.length?m("div",{className:"flex flex-col gap-2 pt-3",children:t.map(((e,t)=>m(ht,{index:t,className:"text-s",...e},String(t))))}):null]}))),pt=[{origins:["t.me","telegram.org"],icon:{icon:"TelegramIcon"},label:"Телеграм"},{origins:["vk.com"],icon:{icon:"VKIcon"},label:"ВКонтакте"},{origins:["ok.ru"],icon:{icon:"OkIcon"},label:"Одноклассники"},{origins:["apps.apple.com"],icon:{icon:"AppleIcon"},label:"App Store"},{origins:["play.google.com"],icon:{icon:"PlayMarketIcon"},label:"Google Play"}],gt={default:" w-14 h-14",small:" w-12 h-12"},bt=u((({version:e="primary",isRounded:t=!1,buttonSize:n="default",...i})=>{const r=we(),{href:l,onClick:a}=r(i),{icon:s,label:o}=pt.find((({origins:e})=>e.some((e=>l?.includes(e)))))||{};if(!s)return null;return m("a",{className:`flex items-center justify-center group box-border ${"secondary"===e?"bg-white hover:bg-secondary-hover":"border-solid border border-main-divider hover:border-transparent hover:bg-primary-main"} ${t?"rounded-full":"rounded-md"} ${"primary"===e?"hover:text-black":""} ${gt[n]}`,href:l,"aria-label":o,target:"_blank",rel:"noopener noreferrer",onClick:a,children:s?m(K,{image:q(s),imageClassName:"group-hover:text-white",width:"24",height:"24",asSVG:!0}):null})})),xt=u((({className:e="",media:t,version:n})=>m("div",{className:`flex gap-2 items-start justify-start pt-6 pb-6 ${e}`,children:t?.map(((e,t)=>m(bt,{version:n,...e},String(t))))}))),ft=u((({className:e="",index:t,...n})=>{const i=we(),{href:r,target:l,text:a,onClick:s}=i(n);return m("a",{className:`text-xs-light text-secondary-text visited:text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px] ${e}`,href:r,target:l,onClick:s,children:a||`Документ ${t}`})})),Nt=u((({className:e="",links:t})=>h("div",{className:e,children:[m("div",{className:"py-6",children:m("span",{className:"text-xs-light text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?m("div",{className:"flex flex-col justify-start items-start gap-2",children:t.map(((e,t)=>m(ft,{index:t,...e},String(t))))}):null]}))),yt=u((({className:e="",...t})=>{const n=t.options?.page?.fallback,i=Xe(o.SITEMAP||"sitemap",n),{documents:r,relatedEnterprises:l,contacts:a,socialMedia:s,horizontalNavigationTitle:c}=Xe(o.FOOTER||"footer",n);return h("footer",{className:`font-sans px-4 py-[26px] bg-white ${e}`,children:[m(ot,{className:"overflow-hidden",items:a,hasButton:!0}),m(D,{children:i.topItems?.map(((e,t)=>m(Z,{label:e.text,children:m(Ze,{documents:e.items})},String(t))))}),m("div",{children:i?.dispositions?.map(vt)}),m(st,{title:"Мобильное приложение",description:"Загрузить для IOS и Android",...t}),m(Qe,{className:"grow"}),m(xt,{className:"pb-4",media:s}),m(ut,{title:c,links:l}),m(Nt,{links:r})]})})),vt=(e,t)=>{const{icon:n,href:i,text:r}=e;return h(Be,{version:"link",href:i,className:"flex text-s mb-4 w-6",children:[n?m(K,{className:"pr-1",image:q(n),width:"24",height:"24",asSVG:!0}):null,m("span",{className:"pl-2.5 font-medium text-primary-text",children:r})]},`footer-${t}`)},wt={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},kt=u((({title:e,description:t,cards:n=[],className:i,orientation:r="horizontal"})=>h("section",{className:`relative font-sans text-primary-text bg-white px-4 py-6 overflow-hidden ${i}`,children:[h("div",{className:"flex flex-col items-center mb-5",children:[e?m(R,{headingType:"h3",className:`text-center ${t?"mb-2":"mb-5"}`,title:e}):null,t?m("div",{className:"text-m max-w-[600px] text-center mb-5",children:t}):null]}),$t(r,n)]})));function $t(e,t){return"horizontal"===e?m(ue,{children:t?.map(Ct)}):m("div",{className:"grid gap-3.5",children:t?.map(Ct)})}function Ct(e,t){return h("div",{className:`w-full h-full flex flex-col justify-between shrink-0 box-border snap-start snap-always border-solid border rounded-md border-gray p-4\n ${wt[e.version??"primary"]}`,children:[h("div",{children:[St(e.icon),e.title?m("h3",{className:"text-m-title-xs font-medium m-0",children:e.title}):null,e.description?Tt(e):null,e.items?.length?It(e.items,e.isDotted,e.version):null]}),e?.button?.text?(n=e.button,m(Be,{className:"mt-3",...n})):null]},t);var n}const St=e=>e?.src||e?.icon?m("div",{className:"flex justify-center",children:m(K,{className:"mb-3.5",image:e})}):null;function Tt(e){return m("div",{className:"text-secondary-text mt-1 text-s "+("secondary"===e.version?"text-white opacity-80":""),children:e.description})}const _t={primary:"bg-primary-text",secondary:"bg-white",gray:"bg-secondary-text"};function It(e,t,n="primary"){return m("section",{className:"mt-3",children:e.map(((e,i)=>h("div",{children:[t?m("div",{className:`rounded-full inline-block mr-3 mt-2 w-2 h-2 min-w-2 min-h-2 ${_t[n]}`}):null,m("span",{className:"text-m font-medium",children:e.title}),m("span",{className:"text-s pl-2 "+("primary"===n?"text-secondary-text":""),children:e.text})]},String(i))))})}const At=(e,t,n=((e,t)=>t.startsWith(e)))=>n(ge((e=>pe(e)||e?.startsWith("/")?e:`${o.BASE_PATH||""}${e}`)(e)),ge(pe(e)?t.href:xe(t.href))),Rt=e=>t=>At(t.href,e),jt=e=>t=>t.items?.some(Rt(e))||At(t.href,e)||((e,t)=>[be(e),be(t.href)].every(((e,t,n)=>Boolean(e)&&e===n[0])))(t.href,e)||Boolean(o.BASE_PATH?.startsWith(t.href||"/")),Dt="absolute left-0 -bottom-3 w-full h-0.5",Bt=u((({className:e="",text:t,href:n,target:i,active:r,onClick:l,children:a,bgColor:s="bg-white"})=>h("a",{className:`relative inline-block bg-transparent text-center no-underline ${e}`,href:n,target:i,onClick:l,children:[m("span",{className:Ot(s,r),children:t||a}),r?m("div",{className:Vt(s,r)}):null]}))),Ot=(e,t=!1)=>{let n="text-white";return"bg-white"===e&&(n=t?"text-primary-main":"text-secondary-text hover:text-primary-main"),`${n} font-sans text-s`},Vt=(e,t=!1)=>t?`${"bg-white"===e?"bg-primary-main":e} ${Dt}`:Dt,Mt=864e5;function Pt(e,t,n=globalThis?.localStorage){const i=l((async(...i)=>{const r=`async:${e}`,l=function(e){const{data:t=null,timestamp:n=null}=e?JSON.parse(e):{};return t&&Date.now()-n<Mt?t:void 0}(n.getItem(r));if(l)return l;const a=await t(...i);return n.setItem(r,JSON.stringify({data:a,timestamp:Date.now()})),a}),[e,t]);return Ue(e,i)}const Lt=()=>{const e=globalThis.localStorage?.getItem("location");try{return e?JSON.parse(e):null}catch(e){return null}},Et=u((({burgerSubMenu:e,onClick:t,defaultLocation:n="",children:a})=>{const[s]=function(e){const t=Lt(),[n,a]=i(t?.region??{name:e}),{data:s}=Pt("/api/v1/region",Ke);return r((()=>{a(t?.region&&t?.manual?t.region:s||{name:e})}),[s]),[n,l((e=>{globalThis.localStorage?.setItem("location",JSON.stringify({manual:!0,region:e})),a(e)}),[a])]}(n);return h("div",{className:"absolute top-0 left-0 w-full h-full bg-white p-4 box-border z-20",children:[m("button",{className:"absolute top-4 right-4 border-none bg-transparent cursor-pointer",onClick:t,children:m(K,{image:{icon:"CloseIcon"},width:"24",height:"24",asSVG:!0})}),h("button",{className:"flex items-center text-s p-0 mb-4 bg-transparent cursor-pointer",children:[m(K,{image:{icon:"GeolocationIcon"},width:"20",height:"20",className:"text-primary-main box-border mr-2",asSVG:!0}),m(X,{color:"text-secondary-text",children:s.name})]}),a,m("div",{className:"mb-7",children:e?.map(Ft)}),m(Qe,{className:"grow"})]})})),Ft=(e,t)=>{const{icon:n,href:i,text:r}=e;return h("a",{href:i,className:"flex text-s mb-4 hover:text-primary-main",children:[n?m(K,{className:"text-primary-main pr-1",image:n,width:"24",height:"24",asSVG:!0}):null,m("span",{className:"font-medium pl-0.5",children:r})]},`headerSubMenu-${t}`)},Ht=u((({onClick:e,bgColor:t,logo:n})=>h("div",{className:"flex items-center justify-between border-0 border-b border-main-divider h-12",children:[h("div",{className:"flex items-center",children:[m("button",{className:"pl-0 pr-4 border-0 bg-transparent cursor-pointer",onClick:e,"aria-label":"Открыть меню",children:m(K,{image:{icon:"BurgerIcon",iconVersion:"bg-white"===t?"black":"white"},className:"text-primary-text w-6 h-6",width:"24",height:"24",asSVG:!0})}),m(at,{className:"mr-8",bgColor:t,logo:n})]}),m("button",{className:("bg-white"===t?"text-primary-main":"text-white")+" text-s border-0 bg-transparent cursor-pointer",children:"Войти"})]}))),zt=u((({className:e="",bgColor:t="bg-white",...n})=>{const r=ve(),a=n.options?.page?.fallback,{topItems:s,dispositions:c,defaultLocation:d,logo:u}=Xe(o.SITEMAP||"sitemap",a),p=s?.find(jt(r)),g=p?.items,b=(e=>(t=[])=>{const n=t?.filter(Rt(e));return n?.length?oe((e=>e.href?.length||0))(n):void 0})(r)(g),[x,f]=i(!1),N=l((()=>f((e=>!e))),[]);return h("header",{className:`${t} ${e}`,children:[h("div",{className:"container px-4 py-0 box-border",children:[m(Ht,{onClick:N,bgColor:t,logo:u}),m("nav",{className:"flex items-center m-0 p-0 overflow-y-hidden w-full h-12",children:m("div",{className:"flex no-scrollbar horizontal-list h-full items-center",children:g?.map(((e,n)=>m(Bt,{className:"mr-8 whitespace-nowrap text-s",active:e===b,bgColor:t,...e},String(n))))})})]}),x?m(Et,{onClick:N,burgerSubMenu:c,defaultLocation:d,children:m(D,{children:s?.map(((e,t)=>m(Z,{label:e.text,children:m(Ze,{documents:e.items})},String(t))))})}):null]})})),Gt={transparent:{wrapper:"bg-transparent",titleColor:"text-primary-text"},primary:{wrapper:"bg-white",titleColor:"text-primary-text"},secondary:{wrapper:"bg-primary-main",titleColor:"text-white",descriptionColor:"text-white/80"}},Jt=u((({className:e="",title:t,description:n,image:i,bgColorHeadline:r="transparent",align:l="text-left"})=>{const a=Gt[r];return h("section",{className:`px-4 py-6 flex flex-col gap-2.5 ${a.wrapper} ${e}`,children:[t?m(R,{headingType:"h2",className:`${a.titleColor} ${l}`,title:t}):null,n?m(j,{color:a.descriptionColor||a.titleColor,size:"text-m",align:l,children:n}):null,i?.src&&m("div",{className:"mt-2.5 mx-auto flex justify-center",children:m(K,{image:i})})]})})),Wt=u((({className:e,iconClassName:t,textClassName:n,suffixClassName:i,doc:r,icon:l})=>{const{text:a,fileSize:s,...o}=r;return h("a",{className:e,role:"link",...o,children:[l?m(K,{className:t,image:q(l),width:"24px",height:"24px",asSVG:!0}):null,a?h("span",{className:n,children:[a,m("span",{className:i,children:o?.href&&Ut(Yt(o.href),s)})]}):null]})})),Ut=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),Yt=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},Kt=u((({className:e="",doc:t,icon:n})=>m(Wt,{className:`flex h-full box-border ${e}`,iconClassName:"mr-3 min-w-6 min-h-6",doc:t,icon:n}))),Xt=u((({hasBorder:e=!0,documents:t,icon:n})=>m(ue,{className:"text-s text-primary-main mt-5",children:t?.length?t.map(((t,i)=>m(Kt,{className:e?"rounded-md border-gray border border-solid p-4":"",doc:t,icon:n},String(i)))):null}))),qt=u((({hasBorder:e=!0,documents:t,icon:n})=>m("div",{className:"text-s text-primary-main flex flex-col mt-5 "+(e?"gap-3.5":"gap-2"),role:"list",children:t?.length?t.map(((t,i)=>m("div",{role:"listitem",children:m(Kt,{className:e?"rounded-md border-gray border border-solid p-4":"",doc:t,icon:n})},String(i)))):null}))),Qt=u((({className:e="",title:t,description:n,icon:i={icon:"DocIconMonoColor"},documents:r,orientation:l="vertical",hasBorder:a=!0,...s})=>h("section",{className:`font-sans text-primary-text py-6 px-4 bg-white overflow-x-hidden ${e}`,children:[m(Jt,{className:"!p-0 "+(n?"gap-2":"gap-5"),title:t,description:n,...s}),m("vertical"===l?qt:Xt,{hasBorder:a,documents:r,icon:i})]}))),Zt=e=>{const t="col-span-",n=e.split(/\s+/).find((e=>e.startsWith(t)));return n?parseInt(n.substring(t.length),10):12};function en(e=""){const t=Zt(e);return t<=4?"S":t<=8?"M":"L"}function tn(e=""){const t=Zt(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}function nn(e=""){const t=Zt(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const rn=u((({className:e,title:t,description:n="Блок в разработке...",...i})=>h(I,{className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${nn(e)} ${tn(e)} `,...i,children:[m(Jt,{className:"!p-0 max-w-[600px]",title:t,description:n,headlineVersion:en(e),...i}),m("figure",{className:"m-0 min-w-[80%]",children:ln()})]}))),ln=(e=3)=>sn(100,e).map((e=>Math.floor(e))).map(an),an=(e,t)=>m("div",{style:{width:`${e||100}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),sn=(e,t)=>[e].concat(t>0?sn(e/1.618,t-1):[]),on=u((({className:e="",buttons:t})=>t&&t?.length?m("div",{className:e,children:t.map(((e,t)=>cn({button:e,index:t})))}):null));function cn({button:e,buttonClassName:t,index:n}){const{icon:i,iconRight:r,version:l,text:a,...s}=e,o="secondary"===l?"color":"white",c=dn({...i,iconVersion:o}),d=dn({...r,iconVersion:o});return a?m(Be,{className:t,appendLeft:c,appendRight:d,version:l,text:a,...s},n?String(n):""):null}const dn=e=>{if(!e?.icon&&!e?.src)return null;const t=e?.size?.width?`${e.size.width}`:"24";return m(K,{image:e,width:t,height:"24",asSVG:!0})},mn={primary:"bg-primary-text",secondary:"bg-white",gray:"bg-secondary-text"},hn={L:"w-1.5 h-1.5 min-w-1.5 min-h-1.5 mr-4",M:"w-1.5 h-1.5 min-w-1.5 min-h-1.5 mr-3",S:"w-1 h-1 min-w-1 min-h-1 mr-2"},un=u((({className:e="",isDotted:t=!0,children:n,version:i="primary",size:r="M"})=>h("div",{className:`font-sans flex items-baseline ${e}`,role:"listitem",children:[t?m("div",{children:m("div",{className:`rounded-full align-middle inline-block ${mn[i]} ${hn[r]}`})}):null,m("span",{children:n})]}))),pn={primary:"text-primary-text",secondary:"text-white",gray:"text-secondary-text"},gn={S:"text-l-light",M:"text-h6",L:"text-h5"},bn={S:"ml-2",M:"ml-3",L:"ml-4"},xn=u((e=>{const{className:t="",hasIndent:n,isDotted:i,itemClassName:r="",items:l,listItemSize:a="M",version:s="primary"}=e;return l?.length?m("section",{className:`${pn[s]} ${gn[a]} ${t} ${n?bn[a]:""}`,role:"list",children:l.map(((e,t)=>m(un,{className:`${r} mb-1.5`,isDotted:i,version:s,size:a,children:e},String(t))))}):null})),fn=u((({className:e="",title:t="",buttons:n,image:i,children:r})=>h("div",{className:`font-sans flex flex-col grow h-full items-start ${e}`,children:[t,h("div",{className:"flex grow w-full justify-between",children:[h("div",{className:"flex flex-col justify-between w-full",children:[m("div",{className:"h-full",children:r}),n?m("div",{className:"mt-auto pt-8",children:n}):null]}),i]})]}))),Nn={primary:"text-primary-text",secondary:"text-white"},yn={primary:"text-secondary-text",secondary:"text-white"},vn=u((e=>{const{className:t="",icon:n,label:i,description:r,version:l="primary",benefitsVersion:a="normal"}=e,s="white"===a?"secondary":"primary";return h("div",{className:`flex gap-5 ${r?"items-start":"items-center"} ${t}`,children:[n?m("div",{className:wn(l,a),children:m(K,{className:"w-6 h-6",image:q(n,s),asSVG:!0})}):null,h("div",{className:"gap-0.5",children:[i?m("div",{className:`text-h6 ${Nn[l]}`,children:i}):null,r?m("div",{className:`text-m-light ${yn[l]}`,children:r}):null]})]})}));function wn(e,t){let n="bg-primary-main text-black";return"secondary"===e?n="bg-white/30 text-black":"normal"===t&&(n="bg-secondary-light text-primary-main"),`w-12 h-12 min-w-12 rounded-full p-2.5 box-border flex items-center justify-center ${n}`}const kn=(e="primary",t="normal")=>({icon:n,label:i,description:r},l)=>m(vn,{icon:n,label:i,description:r,version:e,benefitsVersion:t},String(l)),$n=u((({className:e="",headlineVersion:t="L",benefits:n,benefitsVersion:i="normal",buttons:r,image:l,items:a,version:s="primary",isDotted:o=!0,label:c,...d})=>h("div",{className:`w-full ${e}`,children:[h("div",{children:[c?Tn(c,s):null,m(Jt,{className:"!p-0 max-w-[600px]",bgColorHeadline:s,headlineVersion:t,...d}),h(fn,{buttons:r?.length?m(on,{buttons:r,className:"flex flex-col mt-5 gap-2.5"}):null,children:[n?.filter((e=>e.label))?.length?m("div",{className:"mt-3",children:n.map(kn(s,i))}):null,a?.length?m(xn,{className:"mt-3 text-m",items:a,version:s,isDotted:o}):null]})]}),Cn(l)]})));function Cn(e){return e?.src?m(K,{imageClassName:"mt-5 mx-auto block",image:{className:"block",...e}}):null}const Sn={primary:"text-primary-main border-secondary-hover",secondary:"text-white/80"},Tn=(e,t)=>m("div",{className:`px-2.5 py-1.5 mb-5 rounded-md border-2 border-solid w-fit ${Sn[t]}`,children:e}),_n=u((e=>{const{className:t="",version:n="primary"}=e;return m("section",{className:`font-sans bg-white px-4 py-6 ${wt[n]} ${t}`,children:m($n,{...e})})})),In={primary:{background:"bg-white",title:"text-primary-text",description:"!text-secondary-text text-l-light",iconText:"text-secondary-text",iconBackground:"bg-main-divider",iconConnector:"bg-secondary-light",dot:"bg-secondary-text"},secondary:{background:"bg-primary-main",title:"text-white",description:"!text-white/80 text-l-light",iconText:"text-white",iconBackground:"bg-white/30",iconConnector:"bg-white",dot:"bg-white/80"}},An={normal:"h-[70px] w-[70px] min-w-[70px] min-h-[70px]",small:"h-12 w-12 min-w-12 min-h-12"},Rn={normal:"min-h-[70px]",small:"min-h-12"},jn=u((({className:e,title:t,description:n,showLines:i=!0,steps:r,size:l="normal",version:a="primary"})=>{const s=In[a];return h("section",{className:`box-border font-sans bg-white px-4 py-6 flex flex-col\n ${s.background} ${s.title} ${e||""}`,children:[t?m(R,{headingType:"h3",className:`text-center ${s.title}`,title:t}):null,n?m("p",{className:`text-m-light text-center ${s.description} ${t?"mt-2":""}`,children:n}):null,r?.length?m("div",{className:"box-border py-0.5 mb-0.5 mt-5",children:m("div",{className:"flex flex-col justify-between gap-x-[101px]",children:r.map(Dn(l,a,i))})}):null]})})),Dn=(e,t,n)=>(i,r,l)=>{const a=l.length-1===r,s="normal"===e?"ml-[34px]":"ml-6",o=In[t];return m("div",{children:h("div",{className:"flex flex-row text-center relative",children:[h("div",{className:"overflow-hidden flex-shrink-0",children:[Bn(e,t)(i,r),a?null:m("div",{className:`min-h-8 h-full w-0.5 ${n?o.iconConnector:""} ${s}`})]}),h("div",{className:`flex flex-col justify-center h-fit ${Rn[e]}`,children:[i.label?m("div",{className:"text-m-title-xs font-medium m-0 text-left mb-1",children:i.label}):null,i.description?m("div",{className:`text-s ${o.description} text-left`,children:i.description}):null]})]})},String(r))},Bn=(e,t)=>(n,i)=>{const r=In[t],l="normal"===e?"38":"27",a="normal"===e?"text-m-title":"text-m-title-xs";return m("div",{className:`${An[e]} ${r.iconBackground} rounded-full z-10 mr-3 flex justify-center content-center`,children:m("span",{className:`font-medium flex self-center ${r.title} ${a}`,children:(s=n?.icon,Boolean(s?.icon||s?.src)?m(K,{image:q({...n.icon},t),width:l,height:l,asSVG:!0}):m("span",{children:i+1}))})});var s},On={Buttons:({buttons:e})=>e&&e?.length?m("div",{children:e.map((({rounded:e,icon:t,...n},i)=>cn({button:{rounded:e,icon:t,...n},buttonClassName:`mt-3 ${i>0&&e?"ml-2.5":""} ${t?"w-12 h-12":""}`,index:i})))}):null,Img:({image:e})=>e?.src?m(K,{image:{...e,className:"m-0"}}):null,List:({isDotted:e,...t})=>m(xn,{className:"flex flex-col justify-between items-start text-m",version:"gray",isDotted:e??!0,...t}),LabelDescription:({label:e,description:t})=>h("div",{children:[e?m("div",{className:"text-xl font-medium m-0 "+(t?"mb-1":""),children:e}):null,t?m("div",{className:"text-s text-secondary-text",children:t}):null]})},Vn=u((({title:e,icon:t})=>h("div",{className:"flex gap-2.5 mb-2",children:[e?m(R,{headingType:"h3",className:"font-medium",title:e}):null,t?m(K,{className:"ml-auto max-w-6 max-h-6",image:t,width:"24px",height:"24px"}):null]}))),Mn=u((({tile:e,...t})=>h("div",{className:"rounded-md border-gray h-full box-border border p-4",children:[m(Vn,{...e?.header}),e?.data?.length?e.data.map(((e,n)=>h("div",{children:[n>0?m("div",{className:"h-5"}):null,Pn(e,t)]},String(n)))):null]})));function Pn(e,t){if(!e||!e.tableCellType||!(e.tableCellType in On))return null;const n=On[e.tableCellType];return m(n,{displayTable:()=>null,isVisible:!0,...e,...t})}const Ln=u((({tiles:e,...t})=>e?.length?m(ue,{...t,children:e.map(((e,n)=>m(Mn,{tile:e,...t},String(n))))}):null)),En=u((({tiles:e,...t})=>e?.length?m("div",{className:"flex flex-col gap-3.5",children:e.map(((e,n)=>m(Mn,{tile:e,...t},String(n))))}):null)),Fn=u((({className:e,title:t,description:n,tariffsColumns:i,rowHeaders:r,orientation:l="vertical",...a})=>{const s=Hn(i),o=zn(r,s);return h("section",{className:`px-4 py-6 bg-white font-sans text-primary-text overflow-x-hidden ${e}`,children:[t?m(R,{headingType:"h2",className:`text-center ${n?"mb-2":"mb-5"}`,title:t}):null,n?m("div",{className:"mb-5 text-center text-m",children:n}):null,m("vertical"===l?En:Ln,{tiles:o,...a})]})})),Hn=e=>e?.[0]?.data?e[0].data:[],zn=(e,t)=>e?.map(((e,n)=>({header:e,data:t?.[n]||[{}]}))),Gn={primary:{background:"bg-white",icon:"bg-primary-main text-white",title:"text-primary-text",description:"text-secondary-text"},secondary:{background:"bg-primary-main",icon:"bg-white text-primary-main",title:"text-white",description:"text-white"},"secondary-light":{background:"bg-primary-main/10",icon:"bg-primary-main text-white",title:"text-primary-text",description:"text-secondary-text"}},Jn=u((({title:e,description:t,blockVersion:n="primary",iconVersion:i,image:r,className:l="",items:a,isDotted:s=!0})=>{const o=Gn[n],c="secondary"===n?"secondary":"gray";return h("section",{className:`font-sans px-4 py-[18px] flex flex-col ${o.background} ${l}`,children:["small"===i?Wn(o.icon):null,"big"===i?Un(r):null,h("div",{className:"py-0.5",children:[e?m("div",{className:`text-l font-medium mb-1 ${o.title}`,children:e}):null,t?m("div",{className:`text-s ${o.description}`,children:t}):null,a?.length?m(xn,{className:"mt-1 text-m",items:a,isDotted:s,version:c}):null]})]})}));function Wn(e){return m("div",{className:"mb-3",children:m("div",{className:`rounded-full h-4 w-4 text-center text-xs-light ${e}`,children:"i"})})}function Un(e){return e?.src?m(K,{className:"pb-3 mr-auto",image:e}):null}const Yn={Accordion:B,AccordionItem:Z,ComparisonTable:Ge,Footer:yt,Gallery:kt,Header:zt,Headline:Jt,LinkDocs:Qt,LinkList:Ze,MobileAppTile:st,ProductBlock:_n,StepsBlock:jn,TariffsTable:Fn,TextBlock:Jn,Placeholder:rn},Kn=["Header","Footer"],Xn=([,{target:e}])=>Math.abs(e.getBoundingClientRect().top);function qn(e=_.inst,t=globalThis){const n=s(new Map);r((()=>e.eventBus.subscribe("intersection",(({block:e,intersection:t})=>{n.current&&n.current.set(e,t)}))),[e]),r((()=>{const i=((e,t=600)=>{let n;const i=(...r)=>{i.dispose(),n=setTimeout((()=>{e(...r)}),t)};return i.dispose=()=>{n&&clearTimeout(n)},i})((()=>{if(!(globalThis.scrollY>3*globalThis.innerHeight/4))return void e.reset();const t=function(e){const t=e.filter((([e])=>!Kn.includes(e.type||""))).filter((([,{intersectionRatio:e}])=>e>.01)),[n]=t.length>0?ce(Xn)(t):[];return n}([...n.current||[]]);t?.anchor?e.replace(t.anchor):t||e.reset()}),100);return t.addEventListener("scroll",i),()=>{i.dispose(),t.removeEventListener("scroll",i)}}),[e,t])}const Qn=d();const Zn=u((({className:e,onClick:t,ariaLabel:n})=>m("button",{type:"button",className:`border-0 w-9 bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":n,children:ei()}))),ei=()=>{const e={stroke:"#292D32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"};return h("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[m("path",{...e,strokeMiterlimit:"10",d:"M21.48 11.95c.5-1.4-.4-2.6-1.9-2.6h-4c-.6 0-1.1-.5-1-1.2l.5-3.2c.2-.9-.4-1.9-1.3-2.2-.8-.3-1.8.1-2.2.7l-4.1 6.1M7.48 18.35l3.1 2.4c.4.4 1.3.6 1.9.6h3.8c1.2 0 2.5-.9 2.8-2.1l1.24-3.77"}),m("path",{...e,d:"M2.38 18.35v-9.8c0-1.4.6-1.9 2-1.9h1c1.4 0 2 .5 2 1.9v9.8c0 1.4-.6 1.9-2 1.9h-1c-1.4 0-2-.5-2-1.9Z"})]})},ti=u((({className:e=""})=>{const t=function(e){const[t,n]=i(0);return r((()=>{(async()=>{const[t]=await Qn.getLikeCount(e);n(t?.value||0)})()}),[e]),{likeCount:t,like:l((async()=>{n(await Qn.like(e))}),[e]),dislike:l((async()=>{n(await Qn.dislike(e))}),[e])}}(ve().pathname);return h("div",{className:`border-main border-2 border-solid bg-white flex w-[125px] items-center justify-center gap-3 p-2 font-sans ${e}`,children:[m(Zn,{onClick:ye(t.like),ariaLabel:"Поставить отметку «лайк»"}),m(Zn,{onClick:ye(t.dislike),className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),m("span",{className:"select-none",children:t.likeCount})]})})),ni=u((e=>{const{className:t="",blocksRegistry:n,blockDecorator:i,data:r={}}=e,{style:l,blocks:a,slots:s,likeControl:o,colorPalette:c="pc"}=r,d={key:"",page:r,blocksRegistry:n,blockDecorator:i,parent:r};return qn(),h("section",{className:`relative ${g(l)} ${t}`,"data-theme":c,children:[s?.header?m("div",{className:"mb-5 shadow-[0_8px_32px_0px_#00000014]",children:v(s?.header,{...d,slotName:"header"})}):null,h("div",{className:"container grid grid-cols-12 gap-1",children:[v(a,d),s?.footer?v(s?.footer,{...d,slotName:"footer"}):null]}),o?m("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:m(ti,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto"})}):null]})}));ni.childrenTypes=[],ni.slots=()=>["header","footer"];e.Blocks=Yn,e.ContentPage=ni,e.DaDataAPI=function(e=""){return{getFetcherAddress:async function(){if(!("geolocation"in navigator))return null;try{const t=await(async()=>new Promise((e=>navigator.geolocation.getCurrentPosition((({coords:t})=>e(t))))))(),n=await fetch(`${e}/geolocate`,{method:"POST",mode:"cors",body:JSON.stringify({lat:t.latitude,lon:t.longitude,count:1})});return(await n.json())?.suggestions?.[0]?.data?.city}catch(e){return console.error(e),null}}}},e.LikeAPI=d,e.handlerDecorator=ye,e.joinList=function(e){return t=>t.reduce(((t,n,i)=>t.length?t.concat({...e,key:i},n):[n]),[])},e.packageVersion="0.6.49",e.projectSettings=o,e.setup=(e,t)=>{globalThis._uni={_jsx:e,_jsxs:t||e}},e.setupHooks=e=>{t=e},e.url=Ne,e.useRouter=ve,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -1,7 +1,10 @@
1
1
  import type { BlockVersion } from '../../model/BlockVersion';
2
+ export declare type ButtonSize = 'default' | 'small';
2
3
  interface MediaButtonProps {
3
4
  href?: string;
4
5
  version?: BlockVersion;
6
+ isRounded?: boolean;
7
+ buttonSize?: ButtonSize;
5
8
  }
6
9
  export declare const MediaButton: import("@redneckz/uni-jsx").UNIComponent<MediaButtonProps, any, any>;
7
10
  export {};
@@ -1,7 +1,10 @@
1
1
  import type { BlockVersion } from '../../model/BlockVersion';
2
+ export declare type ButtonSize = 'default' | 'small';
2
3
  interface MediaButtonProps {
3
4
  href?: string;
4
5
  version?: BlockVersion;
6
+ isRounded?: boolean;
7
+ buttonSize?: ButtonSize;
5
8
  }
6
9
  export declare const MediaButton: import("@redneckz/uni-jsx").UNIComponent<MediaButtonProps, any, any>;
7
10
  export {};
@@ -32,7 +32,11 @@ const ICONS_MAP = [
32
32
  label: 'Google Play',
33
33
  },
34
34
  ];
35
- exports.MediaButton = (0, uni_jsx_1.JSX)(({ version = 'primary', ...rest }) => {
35
+ const BUTTON_SIZE = {
36
+ default: ' w-14 h-14',
37
+ small: ' w-12 h-12',
38
+ };
39
+ exports.MediaButton = (0, uni_jsx_1.JSX)(({ version = 'primary', isRounded = false, buttonSize = 'default', ...rest }) => {
36
40
  const link = (0, useLink_1.useLink)();
37
41
  const { href, onClick } = link(rest);
38
42
  const { icon, label } = ICONS_MAP.find(({ origins }) => origins.some((_) => href?.includes(_))) || {};
@@ -42,7 +46,8 @@ exports.MediaButton = (0, uni_jsx_1.JSX)(({ version = 'primary', ...rest }) => {
42
46
  const classes = version === 'secondary'
43
47
  ? 'bg-white hover:bg-secondary-hover'
44
48
  : 'border-solid border border-main-divider hover:border-transparent hover:bg-primary-main';
45
- const isPrimary = version === 'primary';
46
- return ((0, jsx_runtime_1.jsx)("a", { className: `flex items-center justify-center rounded-md w-14 h-14 group box-border ${classes} ${isPrimary ? 'hover:text-black' : ''}`, href: href, "aria-label": label, target: "_blank", rel: "noopener noreferrer", onClick: onClick, children: icon ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { image: (0, getIconWithVersion_1.getIconWithVersion)(icon), imageClassName: "group-hover:text-white", width: "24", height: "24", asSVG: true })) : null }));
49
+ const isPrimary = version === 'primary' ? 'hover:text-black' : '';
50
+ const rounded = isRounded ? 'rounded-full' : 'rounded-md';
51
+ return ((0, jsx_runtime_1.jsx)("a", { className: `flex items-center justify-center group box-border ${classes} ${rounded} ${isPrimary} ${BUTTON_SIZE[buttonSize]}`, href: href, "aria-label": label, target: "_blank", rel: "noopener noreferrer", onClick: onClick, children: icon ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { image: (0, getIconWithVersion_1.getIconWithVersion)(icon), imageClassName: "group-hover:text-white", width: "24", height: "24", asSVG: true })) : null }));
47
52
  });
48
53
  //# sourceMappingURL=MediaButton.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"MediaButton.js","sourceRoot":"","sources":["../../../src/components/Footer/MediaButton.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;AAG9C,8CAA2C;AAC3C,uEAAoE;AAEpE,MAAM,SAAS,GAIV;IACH;QACE,OAAO,EAAE,CAAC,MAAM,EAAE,cAAc,CAAC;QACjC,IAAI,EAAE,EAAE,IAAI,EAAE,cAAc,EAAE;QAC9B,KAAK,EAAE,UAAU;KAClB;IACD;QACE,OAAO,EAAE,CAAC,QAAQ,CAAC;QACnB,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACxB,KAAK,EAAE,WAAW;KACnB;IACD;QACE,OAAO,EAAE,CAAC,OAAO,CAAC;QAClB,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACxB,KAAK,EAAE,eAAe;KACvB;IACD;QACE,OAAO,EAAE,CAAC,gBAAgB,CAAC;QAC3B,IAAI,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;QAC3B,KAAK,EAAE,WAAW;KACnB;IACD;QACE,OAAO,EAAE,CAAC,iBAAiB,CAAC;QAC5B,IAAI,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE;QAChC,KAAK,EAAE,aAAa;KACrB;CACF,CAAC;AAOW,QAAA,WAAW,GAAG,IAAA,aAAG,EAAmB,CAAC,EAAE,OAAO,GAAG,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IACpF,MAAM,IAAI,GAAG,IAAA,iBAAO,GAAE,CAAC;IACvB,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC;IAErC,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GACnB,SAAS,CAAC,IAAI,CAAC,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;IAEhF,IAAI,CAAC,IAAI,EAAE;QACT,OAAO,IAAI,CAAC;KACb;IAED,MAAM,OAAO,GACX,OAAO,KAAK,WAAW;QACrB,CAAC,CAAC,mCAAmC;QACrC,CAAC,CAAC,wFAAwF,CAAC;IAE/F,MAAM,SAAS,GAAG,OAAO,KAAK,SAAS,CAAC;IAExC,OAAO,CACL,8BACE,SAAS,EAAE,0EAA0E,OAAO,IAC1F,SAAS,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,EACnC,EAAE,EACF,IAAI,EAAE,IAAI,gBACE,KAAK,EACjB,MAAM,EAAC,QAAQ,EACf,GAAG,EAAC,qBAAqB,EACzB,OAAO,EAAE,OAAO,YAEf,IAAI,CAAC,CAAC,CAAC,CACN,uBAAC,SAAG,IACF,KAAK,EAAE,IAAA,uCAAkB,EAAC,IAAI,CAAC,EAC/B,cAAc,EAAC,wBAAwB,EACvC,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,KAAK,SACL,CACH,CAAC,CAAC,CAAC,IAAI,GACN,CACL,CAAC;AACJ,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"MediaButton.js","sourceRoot":"","sources":["../../../src/components/Footer/MediaButton.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;AAG9C,8CAA2C;AAC3C,uEAAoE;AAEpE,MAAM,SAAS,GAIV;IACH;QACE,OAAO,EAAE,CAAC,MAAM,EAAE,cAAc,CAAC;QACjC,IAAI,EAAE,EAAE,IAAI,EAAE,cAAc,EAAE;QAC9B,KAAK,EAAE,UAAU;KAClB;IACD;QACE,OAAO,EAAE,CAAC,QAAQ,CAAC;QACnB,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACxB,KAAK,EAAE,WAAW;KACnB;IACD;QACE,OAAO,EAAE,CAAC,OAAO,CAAC;QAClB,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACxB,KAAK,EAAE,eAAe;KACvB;IACD;QACE,OAAO,EAAE,CAAC,gBAAgB,CAAC;QAC3B,IAAI,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;QAC3B,KAAK,EAAE,WAAW;KACnB;IACD;QACE,OAAO,EAAE,CAAC,iBAAiB,CAAC;QAC5B,IAAI,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE;QAChC,KAAK,EAAE,aAAa;KACrB;CACF,CAAC;AAWF,MAAM,WAAW,GAAG;IAClB,OAAO,EAAE,YAAY;IACrB,KAAK,EAAE,YAAY;CACpB,CAAC;AAEW,QAAA,WAAW,GAAG,IAAA,aAAG,EAC5B,CAAC,EAAE,OAAO,GAAG,SAAS,EAAE,SAAS,GAAG,KAAK,EAAE,UAAU,GAAG,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IAC9E,MAAM,IAAI,GAAG,IAAA,iBAAO,GAAE,CAAC;IACvB,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC;IAErC,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GACnB,SAAS,CAAC,IAAI,CAAC,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;IAEhF,IAAI,CAAC,IAAI,EAAE;QACT,OAAO,IAAI,CAAC;KACb;IAED,MAAM,OAAO,GACX,OAAO,KAAK,WAAW;QACrB,CAAC,CAAC,mCAAmC;QACrC,CAAC,CAAC,wFAAwF,CAAC;IAE/F,MAAM,SAAS,GAAG,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,EAAE,CAAC;IAClE,MAAM,OAAO,GAAG,SAAS,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,YAAY,CAAC;IAE1D,OAAO,CACL,8BACE,SAAS,EAAE,qDAAqD,OAAO,IAAI,OAAO,IAAI,SAAS,IAAI,WAAW,CAAC,UAAU,CAAC,EAAE,EAC5H,IAAI,EAAE,IAAI,gBACE,KAAK,EACjB,MAAM,EAAC,QAAQ,EACf,GAAG,EAAC,qBAAqB,EACzB,OAAO,EAAE,OAAO,YAEf,IAAI,CAAC,CAAC,CAAC,CACN,uBAAC,SAAG,IACF,KAAK,EAAE,IAAA,uCAAkB,EAAC,IAAI,CAAC,EAC/B,cAAc,EAAC,wBAAwB,EACvC,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,KAAK,SACL,CACH,CAAC,CAAC,CAAC,IAAI,GACN,CACL,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -1,7 +1,10 @@
1
1
  import type { BlockVersion } from '../../model/BlockVersion';
2
+ export declare type ButtonSize = 'default' | 'small';
2
3
  interface MediaButtonProps {
3
4
  href?: string;
4
5
  version?: BlockVersion;
6
+ isRounded?: boolean;
7
+ buttonSize?: ButtonSize;
5
8
  }
6
9
  export declare const MediaButton: import("@redneckz/uni-jsx").UNIComponent<MediaButtonProps, any, any>;
7
10
  export {};