@redneckz/wildless-cms-uni-blocks 0.14.99 → 0.14.101

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 (155) hide show
  1. package/bin/migration-scripts/0.6.32.js +1 -1
  2. package/bundle/bundle.umd.js +11 -12
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/bundle/components/Header/isHrefActive.d.ts +4 -2
  5. package/bundle/services/sitemap/SitemapData.d.ts +2 -2
  6. package/bundle/ui-kit/LocationDialog/renderForeignOffices.d.ts +2 -4
  7. package/bundle/ui-kit/SVG.d.ts +4 -2
  8. package/dist/api/LeadServiceAPI.js +1 -1
  9. package/dist/api/LeadServiceAPI.js.map +1 -1
  10. package/dist/components/Carousel/Carousel.js +0 -3
  11. package/dist/components/Carousel/Carousel.js.map +1 -1
  12. package/dist/components/Header/DropdownMenu.js +1 -1
  13. package/dist/components/Header/DropdownMenu.js.map +1 -1
  14. package/dist/components/Header/isHrefActive.d.ts +4 -2
  15. package/dist/components/Header/isHrefActive.js +2 -3
  16. package/dist/components/Header/isHrefActive.js.map +1 -1
  17. package/dist/components/RollupItem/getIconName.js +1 -1
  18. package/dist/components/RollupItem/getIconName.js.map +1 -1
  19. package/dist/components/RollupItem/getIconName.mobile.js +1 -1
  20. package/dist/components/RollupItem/getIconName.mobile.js.map +1 -1
  21. package/dist/services/sitemap/SitemapData.d.ts +2 -2
  22. package/dist/ui-kit/LinkButton/renderArrows.js +5 -1
  23. package/dist/ui-kit/LinkButton/renderArrows.js.map +1 -1
  24. package/dist/ui-kit/LocationDialog/renderForeignOffices.d.ts +2 -4
  25. package/dist/ui-kit/LocationDialog/renderForeignOffices.js.map +1 -1
  26. package/dist/ui-kit/SVG.d.ts +4 -2
  27. package/dist/ui-kit/SVG.js.map +1 -1
  28. package/dist/utils/getBorderStyle.js +1 -1
  29. package/dist/utils/getBorderStyle.js.map +1 -1
  30. package/lib/api/LeadServiceAPI.js +1 -1
  31. package/lib/api/LeadServiceAPI.js.map +1 -1
  32. package/lib/common.css +1 -1
  33. package/lib/components/Carousel/Carousel.js +0 -3
  34. package/lib/components/Carousel/Carousel.js.map +1 -1
  35. package/lib/components/Header/DropdownMenu.js +1 -1
  36. package/lib/components/Header/DropdownMenu.js.map +1 -1
  37. package/lib/components/Header/isHrefActive.d.ts +4 -2
  38. package/lib/components/Header/isHrefActive.js +2 -3
  39. package/lib/components/Header/isHrefActive.js.map +1 -1
  40. package/lib/components/RollupItem/getIconName.js +1 -1
  41. package/lib/components/RollupItem/getIconName.js.map +1 -1
  42. package/lib/components/RollupItem/getIconName.mobile.js +1 -1
  43. package/lib/components/RollupItem/getIconName.mobile.js.map +1 -1
  44. package/lib/services/sitemap/SitemapData.d.ts +2 -2
  45. package/lib/ui-kit/LinkButton/renderArrows.js +5 -1
  46. package/lib/ui-kit/LinkButton/renderArrows.js.map +1 -1
  47. package/lib/ui-kit/LocationDialog/renderForeignOffices.d.ts +2 -4
  48. package/lib/ui-kit/LocationDialog/renderForeignOffices.js.map +1 -1
  49. package/lib/ui-kit/SVG.d.ts +4 -2
  50. package/lib/ui-kit/SVG.js.map +1 -1
  51. package/lib/utils/getBorderStyle.js +1 -1
  52. package/lib/utils/getBorderStyle.js.map +1 -1
  53. package/mobile/bundle/bundle.umd.js +10 -11
  54. package/mobile/bundle/bundle.umd.min.js +1 -1
  55. package/mobile/bundle/components/Header/isHrefActive.d.ts +4 -2
  56. package/mobile/bundle/services/sitemap/SitemapData.d.ts +2 -2
  57. package/mobile/bundle/ui-kit/LocationDialog/renderForeignOffices.d.ts +2 -4
  58. package/mobile/bundle/ui-kit/SVG.d.ts +4 -2
  59. package/mobile/dist/api/LeadServiceAPI.js +1 -1
  60. package/mobile/dist/api/LeadServiceAPI.js.map +1 -1
  61. package/mobile/dist/components/Carousel/Carousel.js +0 -3
  62. package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
  63. package/mobile/dist/components/Header/DropdownMenu.js +1 -1
  64. package/mobile/dist/components/Header/DropdownMenu.js.map +1 -1
  65. package/mobile/dist/components/Header/isHrefActive.d.ts +4 -2
  66. package/mobile/dist/components/Header/isHrefActive.js +2 -3
  67. package/mobile/dist/components/Header/isHrefActive.js.map +1 -1
  68. package/mobile/dist/components/RollupItem/getIconName.js +1 -1
  69. package/mobile/dist/components/RollupItem/getIconName.js.map +1 -1
  70. package/mobile/dist/services/sitemap/SitemapData.d.ts +2 -2
  71. package/mobile/dist/ui-kit/LinkButton/renderArrows.js +5 -1
  72. package/mobile/dist/ui-kit/LinkButton/renderArrows.js.map +1 -1
  73. package/mobile/dist/ui-kit/LocationDialog/renderForeignOffices.d.ts +2 -4
  74. package/mobile/dist/ui-kit/LocationDialog/renderForeignOffices.js.map +1 -1
  75. package/mobile/dist/ui-kit/SVG.d.ts +4 -2
  76. package/mobile/dist/ui-kit/SVG.js.map +1 -1
  77. package/mobile/dist/utils/getBorderStyle.js +1 -1
  78. package/mobile/dist/utils/getBorderStyle.js.map +1 -1
  79. package/mobile/lib/api/LeadServiceAPI.js +1 -1
  80. package/mobile/lib/api/LeadServiceAPI.js.map +1 -1
  81. package/mobile/lib/common.css +1 -1
  82. package/mobile/lib/components/Carousel/Carousel.js +0 -3
  83. package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
  84. package/mobile/lib/components/Header/DropdownMenu.js +1 -1
  85. package/mobile/lib/components/Header/DropdownMenu.js.map +1 -1
  86. package/mobile/lib/components/Header/isHrefActive.d.ts +4 -2
  87. package/mobile/lib/components/Header/isHrefActive.js +2 -3
  88. package/mobile/lib/components/Header/isHrefActive.js.map +1 -1
  89. package/mobile/lib/components/RollupItem/getIconName.js +1 -1
  90. package/mobile/lib/components/RollupItem/getIconName.js.map +1 -1
  91. package/mobile/lib/services/sitemap/SitemapData.d.ts +2 -2
  92. package/mobile/lib/ui-kit/LinkButton/renderArrows.js +5 -1
  93. package/mobile/lib/ui-kit/LinkButton/renderArrows.js.map +1 -1
  94. package/mobile/lib/ui-kit/LocationDialog/renderForeignOffices.d.ts +2 -4
  95. package/mobile/lib/ui-kit/LocationDialog/renderForeignOffices.js.map +1 -1
  96. package/mobile/lib/ui-kit/SVG.d.ts +4 -2
  97. package/mobile/lib/ui-kit/SVG.js.map +1 -1
  98. package/mobile/lib/utils/getBorderStyle.js +1 -1
  99. package/mobile/lib/utils/getBorderStyle.js.map +1 -1
  100. package/mobile/src/api/LeadServiceAPI.ts +1 -1
  101. package/mobile/src/components/Carousel/Carousel.tsx +0 -3
  102. package/mobile/src/components/Header/DropdownMenu.tsx +1 -1
  103. package/mobile/src/components/Header/isHrefActive.ts +7 -4
  104. package/mobile/src/components/RollupItem/getIconName.tsx +1 -1
  105. package/mobile/src/services/sitemap/SitemapData.ts +2 -2
  106. package/mobile/src/ui-kit/LinkButton/renderArrows.tsx +9 -4
  107. package/mobile/src/ui-kit/LocationDialog/renderForeignOffices.tsx +3 -3
  108. package/mobile/src/ui-kit/SVG.tsx +5 -2
  109. package/mobile/src/utils/getBorderStyle.ts +1 -1
  110. package/package.json +1 -1
  111. package/src/api/LeadServiceAPI.ts +1 -1
  112. package/src/components/Carousel/Carousel.tsx +0 -3
  113. package/src/components/Header/DropdownMenu.tsx +1 -1
  114. package/src/components/Header/isHrefActive.ts +7 -4
  115. package/src/components/RollupItem/getIconName.mobile.tsx +1 -1
  116. package/src/components/RollupItem/getIconName.tsx +1 -1
  117. package/src/services/sitemap/SitemapData.ts +2 -2
  118. package/src/ui-kit/LinkButton/renderArrows.tsx +9 -4
  119. package/src/ui-kit/LocationDialog/renderForeignOffices.tsx +3 -3
  120. package/src/ui-kit/SVG.tsx +5 -2
  121. package/src/utils/getBorderStyle.ts +1 -1
  122. package/bin/migration-scripts/0.11.0.js +0 -29
  123. package/bin/migration-scripts/0.12.9.js +0 -30
  124. package/bin/migration-scripts/0.13.5.js +0 -36
  125. package/bin/migration-scripts/0.13.6.js +0 -33
  126. package/bin/migration-scripts/0.14.26.js +0 -55
  127. package/bin/migration-scripts/0.14.28.js +0 -28
  128. package/bin/migration-scripts/0.14.29.js +0 -75
  129. package/bin/migration-scripts/0.14.30.js +0 -54
  130. package/bin/migration-scripts/0.14.44.js +0 -103
  131. package/bin/migration-scripts/0.5.14.js +0 -33
  132. package/bin/migration-scripts/0.6.43.js +0 -32
  133. package/bin/migration-scripts/0.7.8.js +0 -32
  134. package/bin/migration-scripts/0.8.10.js +0 -31
  135. package/bin/migration-scripts/0.8.29.js +0 -42
  136. package/bin/migration-scripts/0.8.8.js +0 -124
  137. package/bin/migration-scripts/0.9.1.js +0 -71
  138. package/bin/migration-scripts/0.9.10.js +0 -30
  139. package/bin/migration-scripts/0.9.9.js +0 -111
  140. package/bundle/components/SafeDepositRental/renderClusterer.d.ts +0 -2
  141. package/dist/components/SafeDepositRental/renderClusterer.d.ts +0 -2
  142. package/dist/components/SafeDepositRental/renderClusterer.js +0 -35
  143. package/dist/components/SafeDepositRental/renderClusterer.js.map +0 -1
  144. package/lib/components/SafeDepositRental/renderClusterer.d.ts +0 -2
  145. package/lib/components/SafeDepositRental/renderClusterer.js +0 -32
  146. package/lib/components/SafeDepositRental/renderClusterer.js.map +0 -1
  147. package/mobile/bundle/components/SafeDepositRental/renderClusterer.d.ts +0 -2
  148. package/mobile/dist/components/SafeDepositRental/renderClusterer.d.ts +0 -2
  149. package/mobile/dist/components/SafeDepositRental/renderClusterer.js +0 -35
  150. package/mobile/dist/components/SafeDepositRental/renderClusterer.js.map +0 -1
  151. package/mobile/lib/components/SafeDepositRental/renderClusterer.d.ts +0 -2
  152. package/mobile/lib/components/SafeDepositRental/renderClusterer.js +0 -32
  153. package/mobile/lib/components/SafeDepositRental/renderClusterer.js.map +0 -1
  154. package/mobile/src/components/SafeDepositRental/renderClusterer.ts +0 -51
  155. package/src/components/SafeDepositRental/renderClusterer.ts +0 -51
@@ -1,6 +1,8 @@
1
- export declare const isHrefActive: (router: {
1
+ declare type Router = {
2
2
  href?: string;
3
3
  pathname: string;
4
- }) => ({ href }: {
4
+ };
5
+ export declare const isHrefActive: (router: Router) => ({ href }: {
5
6
  href?: string | undefined;
6
7
  }) => boolean;
8
+ export {};
@@ -1,5 +1,4 @@
1
1
  import { isURL, withoutQuery } from '../../utils/url.js';
2
- export const isHrefActive = (router) => ({ href }) => !href
3
- ? false
4
- : withoutQuery(isURL(href) ? router.href : router.pathname).startsWith(withoutQuery(href));
2
+ export const isHrefActive = (router) => ({ href }) => !href ? false : withoutQuery(getRouterHref(href, router)).startsWith(withoutQuery(href));
3
+ const getRouterHref = (href, router) => isURL(href) ? router.href : router.pathname;
5
4
  //# sourceMappingURL=isHrefActive.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"isHrefActive.js","sourceRoot":"","sources":["../../../src/components/Header/isHrefActive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEtD,MAAM,CAAC,MAAM,YAAY,GACvB,CAAC,MAA2C,EAAE,EAAE,CAChD,CAAC,EAAE,IAAI,EAAqB,EAAW,EAAE,CACvC,CAAC,IAAI;IACH,CAAC,CAAC,KAAK;IACP,CAAC,CAAC,YAAY,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,UAAU,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"isHrefActive.js","sourceRoot":"","sources":["../../../src/components/Header/isHrefActive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAItD,MAAM,CAAC,MAAM,YAAY,GACvB,CAAC,MAAc,EAAE,EAAE,CACnB,CAAC,EAAE,IAAI,EAAqB,EAAW,EAAE,CACvC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,YAAY,CAAC,aAAa,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,UAAU,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC;AAE7F,MAAM,aAAa,GAAG,CAAC,IAAY,EAAE,MAAc,EAAE,EAAE,CACrD,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC"}
@@ -1,2 +1,2 @@
1
- export const getIconName = (isUnfolded) => (isUnfolded ? 'MinusIcon' : 'PlusIcon');
1
+ export const getIconName = (isUnfolded = false) => (isUnfolded ? 'MinusIcon' : 'PlusIcon');
2
2
  //# sourceMappingURL=getIconName.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getIconName.js","sourceRoot":"","sources":["../../../src/components/RollupItem/getIconName.tsx"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,UAAoB,EAAE,EAAE,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC"}
1
+ {"version":3,"file":"getIconName.js","sourceRoot":"","sources":["../../../src/components/RollupItem/getIconName.tsx"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,UAAU,GAAG,KAAK,EAAE,EAAE,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC"}
@@ -1,2 +1,2 @@
1
- export const getIconName = (isUnfolded) => isUnfolded ? 'ArrowUpSolidIcon' : 'ArrowDownSolidIcon';
1
+ export const getIconName = (isUnfolded = false) => isUnfolded ? 'ArrowUpSolidIcon' : 'ArrowDownSolidIcon';
2
2
  //# sourceMappingURL=getIconName.mobile.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getIconName.mobile.js","sourceRoot":"","sources":["../../../src/components/RollupItem/getIconName.mobile.tsx"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,UAAoB,EAAE,EAAE,CAClD,UAAU,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,oBAAoB,CAAC"}
1
+ {"version":3,"file":"getIconName.mobile.js","sourceRoot":"","sources":["../../../src/components/RollupItem/getIconName.mobile.tsx"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,UAAU,GAAG,KAAK,EAAE,EAAE,CAChD,UAAU,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,oBAAoB,CAAC"}
@@ -24,12 +24,12 @@ export interface DispositionItem extends LinkProps {
24
24
  * @title Представительства за рубежом
25
25
  * @required ["text", "href"]
26
26
  */
27
- export declare type ForeignOffice = LinkProps & IconProps;
27
+ export declare type ForeignOfficeProps = LinkProps & IconProps;
28
28
  export interface SitemapData {
29
29
  topItems?: TopMenuItemProps[];
30
30
  dispositions?: DispositionItem[];
31
31
  logo?: LogoType;
32
- foreignOffices?: ForeignOffice[];
32
+ foreignOffices?: ForeignOfficeProps[];
33
33
  defaultLocation?: string;
34
34
  officesLink?: string;
35
35
  internetBankUrl?: string;
@@ -1,8 +1,12 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
2
+ import { style } from '../../utils/style.js';
2
3
  import { ArrowButton } from './ArrowButton.js';
3
4
  /** @deprecated */
4
5
  export function renderArrows({ dec, inc, canDec, canInc, btnClass, className = '', }) {
5
6
  const isVisible = canDec || canInc;
6
- return isVisible ? (_jsxs("div", { children: [canDec ? (_jsx(ArrowButton, { className: `absolute z-40 ${btnClass[0]} ${className}`, onClick: dec, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043B\u0435\u0432\u043E", "data-block-control": "scroll-left", disabled: !canDec })) : null, canInc ? (_jsx(ArrowButton, { className: `absolute z-40 rotate-180 ${btnClass[1]} ${className}`, onClick: inc, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043F\u0440\u0430\u0432\u043E", "data-block-control": "scroll-right", disabled: !canInc })) : null] })) : null;
7
+ if (!isVisible) {
8
+ return null;
9
+ }
10
+ return (_jsxs("div", { children: [canDec ? (_jsx(ArrowButton, { className: style('absolute z-40', btnClass[0], className), onClick: dec, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043B\u0435\u0432\u043E", "data-block-control": "scroll-left", disabled: !canDec })) : null, canInc ? (_jsx(ArrowButton, { className: style('absolute z-40 rotate-180', btnClass[1], className), onClick: inc, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043F\u0440\u0430\u0432\u043E", "data-block-control": "scroll-right", disabled: !canInc })) : null] }));
7
11
  }
8
12
  //# sourceMappingURL=renderArrows.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"renderArrows.js","sourceRoot":"","sources":["../../../src/ui-kit/LinkButton/renderArrows.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAa5C,kBAAkB;AAClB,MAAM,UAAU,YAAY,CAAC,EAC3B,GAAG,EACH,GAAG,EACH,MAAM,EACN,MAAM,EACN,QAAQ,EACR,SAAS,GAAG,EAAE,GACI;IAClB,MAAM,SAAS,GAAG,MAAM,IAAI,MAAM,CAAC;IAEnC,OAAO,SAAS,CAAC,CAAC,CAAC,CACjB,0BACG,MAAM,CAAC,CAAC,CAAC,CACR,KAAC,WAAW,IACV,SAAS,EAAE,iBAAiB,QAAQ,CAAC,CAAC,CAAC,IAAI,SAAS,EAAE,EACtD,OAAO,EAAE,GAAG,EACZ,SAAS,EAAC,6FAAkB,wBACT,aAAa,EAChC,QAAQ,EAAE,CAAC,MAAM,GACjB,CACH,CAAC,CAAC,CAAC,IAAI,EACP,MAAM,CAAC,CAAC,CAAC,CACR,KAAC,WAAW,IACV,SAAS,EAAE,4BAA4B,QAAQ,CAAC,CAAC,CAAC,IAAI,SAAS,EAAE,EACjE,OAAO,EAAE,GAAG,EACZ,SAAS,EAAC,mGAAmB,wBACV,cAAc,EACjC,QAAQ,EAAE,CAAC,MAAM,GACjB,CACH,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC"}
1
+ {"version":3,"file":"renderArrows.js","sourceRoot":"","sources":["../../../src/ui-kit/LinkButton/renderArrows.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAa5C,kBAAkB;AAClB,MAAM,UAAU,YAAY,CAAC,EAC3B,GAAG,EACH,GAAG,EACH,MAAM,EACN,MAAM,EACN,QAAQ,EACR,SAAS,GAAG,EAAE,GACI;IAClB,MAAM,SAAS,GAAG,MAAM,IAAI,MAAM,CAAC;IAEnC,IAAI,CAAC,SAAS,EAAE;QACd,OAAO,IAAI,CAAC;KACb;IAED,OAAO,CACL,0BACG,MAAM,CAAC,CAAC,CAAC,CACR,KAAC,WAAW,IACV,SAAS,EAAE,KAAK,CAAC,eAAe,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,SAAS,CAAC,EACzD,OAAO,EAAE,GAAG,EACZ,SAAS,EAAC,6FAAkB,wBACT,aAAa,EAChC,QAAQ,EAAE,CAAC,MAAM,GACjB,CACH,CAAC,CAAC,CAAC,IAAI,EACP,MAAM,CAAC,CAAC,CAAC,CACR,KAAC,WAAW,IACV,SAAS,EAAE,KAAK,CAAC,0BAA0B,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,SAAS,CAAC,EACpE,OAAO,EAAE,GAAG,EACZ,SAAS,EAAC,mGAAmB,wBACV,cAAc,EACjC,QAAQ,EAAE,CAAC,MAAM,GACjB,CACH,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC;AACJ,CAAC"}
@@ -1,4 +1,2 @@
1
- import { ForeignOffice } from '../../services/sitemap/SitemapData';
2
- export declare const renderForeignOffices: (foreignOffices: ForeignOffice[] | undefined) => JSX.Element | null;
3
- declare const ForeignOffice: import("@redneckz/uni-jsx").UNIComponent<ForeignOffice, any, any>;
4
- export {};
1
+ import { type ForeignOfficeProps } from '../../services/sitemap/SitemapData';
2
+ export declare const renderForeignOffices: (foreignOffices: ForeignOfficeProps[] | undefined) => JSX.Element | null;
@@ -1 +1 @@
1
- {"version":3,"file":"renderForeignOffices.js","sourceRoot":"","sources":["../../../src/ui-kit/LocationDialog/renderForeignOffices.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,cAA2C,EAAE,EAAE,CAClF,cAAc,EAAE,MAAM,CAAC,CAAC,CAAC,CACvB,eAAK,SAAS,EAAC,kDAAkD,aAC/D,cAAK,SAAS,EAAC,MAAM,YACnB,KAAC,IAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,YAAY,EAAC,KAAK,EAAC,qBAAqB,gLAE1D,GACH,EACN,cAAK,SAAS,EAAC,mCAAmC,YAC/C,cAAc,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,CAAS,EAAE,EAAE,CAAC,CACzC,KAAC,aAAa,OAAqB,MAAM,IAArB,MAAM,CAAC,CAAC,CAAC,CAAgB,CAC9C,CAAC,GACE,IACF,CACP,CAAC,CAAC,CAAC,IAAI,CAAC;AAEX,MAAM,aAAa,GAAG,GAAG,CAAgB,CAAC,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IAC7D,MAAM,IAAI,GAAG,OAAO,EAAE,CAAC;IACvB,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC;IAEnD,OAAO,CACL,eAAK,SAAS,EAAC,yBAAyB,aACrC,IAAI,CAAC,CAAC,CAAC,KAAC,GAAG,IAAC,UAAU,EAAC,kBAAkB,EAAC,KAAK,EAAE,IAAI,GAAI,CAAC,CAAC,CAAC,IAAI,EAChE,IAAI,CAAC,CAAC,CAAC,CACN,YAAG,SAAS,EAAC,0BAA0B,EAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,YAClF,KAAC,IAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,YAAY,EAAC,KAAK,EAAC,mBAAmB,YAC5D,IAAI,GACA,GACL,CACL,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"renderForeignOffices.js","sourceRoot":"","sources":["../../../src/ui-kit/LocationDialog/renderForeignOffices.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,cAAgD,EAAE,EAAE,CACvF,cAAc,EAAE,MAAM,CAAC,CAAC,CAAC,CACvB,eAAK,SAAS,EAAC,kDAAkD,aAC/D,cAAK,SAAS,EAAC,MAAM,YACnB,KAAC,IAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,YAAY,EAAC,KAAK,EAAC,qBAAqB,gLAE1D,GACH,EACN,cAAK,SAAS,EAAC,mCAAmC,YAC/C,cAAc,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,CAAS,EAAE,EAAE,CAAC,CACzC,KAAC,aAAa,OAAqB,MAAM,IAArB,MAAM,CAAC,CAAC,CAAC,CAAgB,CAC9C,CAAC,GACE,IACF,CACP,CAAC,CAAC,CAAC,IAAI,CAAC;AAEX,MAAM,aAAa,GAAG,GAAG,CAAqB,CAAC,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IAClE,MAAM,IAAI,GAAG,OAAO,EAAE,CAAC;IACvB,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC;IAEnD,OAAO,CACL,eAAK,SAAS,EAAC,yBAAyB,aACrC,IAAI,CAAC,CAAC,CAAC,KAAC,GAAG,IAAC,UAAU,EAAC,kBAAkB,EAAC,KAAK,EAAE,IAAI,GAAI,CAAC,CAAC,CAAC,IAAI,EAChE,IAAI,CAAC,CAAC,CAAC,CACN,YAAG,SAAS,EAAC,0BAA0B,EAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,YAClF,KAAC,IAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,YAAY,EAAC,KAAK,EAAC,mBAAmB,YAC5D,IAAI,GACA,GACL,CACL,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -1,8 +1,10 @@
1
+ export declare type StrokeLinecap = 'inherit' | 'butt' | 'round' | 'square';
2
+ export declare type StrokeLinejoin = 'inherit' | 'round' | 'miter' | 'bevel';
1
3
  export interface SVGPathOptions {
2
4
  fill?: string;
3
5
  stroke?: string;
4
- strokeLinecap?: 'inherit' | 'butt' | 'round' | 'square';
5
- strokeLinejoin?: 'inherit' | 'round' | 'miter' | 'bevel';
6
+ strokeLinecap?: StrokeLinecap;
7
+ strokeLinejoin?: StrokeLinejoin;
6
8
  strokeWidth?: string;
7
9
  strokeMiterlimit?: string;
8
10
  }
@@ -1 +1 @@
1
- {"version":3,"file":"SVG.js","sourceRoot":"","sources":["../../src/ui-kit/SVG.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAuBxC,MAAM,CAAC,MAAM,GAAG,GAAG,GAAG,CACpB,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,GAAG,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,aAAa,EAAE,EAAE,EAAE;IAChF,OAAO,CACL,cACE,KAAK,EAAC,4BAA4B,EAClC,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,YAEb,KAAK,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,OAAO,EAAE,EAAE,CAAC,EAAE,EAAE;YAClD,MAAM,aAAa,GAAG,EAAE,GAAG,aAAa,EAAE,GAAG,OAAO,EAAE,CAAC;YAEvD,OAAO,CACL,eAEE,CAAC,EAAE,CAAC,EACJ,IAAI,EAAE,QAAQ,IAAI,cAAc,EAChC,MAAM,EAAE,aAAa,CAAC,MAAM,EAC5B,aAAa,EAAE,aAAa,CAAC,aAAa,EAC1C,cAAc,EAAE,aAAa,CAAC,cAAc,EAC5C,WAAW,EAAE,aAAa,CAAC,WAAW,EACtC,gBAAgB,EAAE,aAAa,CAAC,gBAAgB,IAP3C,CAAC,CAQN,CACH,CAAC;QACJ,CAAC,CAAC,GACE,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
1
+ {"version":3,"file":"SVG.js","sourceRoot":"","sources":["../../src/ui-kit/SVG.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AA0BxC,MAAM,CAAC,MAAM,GAAG,GAAG,GAAG,CACpB,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,GAAG,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,aAAa,EAAE,EAAE,EAAE;IAChF,OAAO,CACL,cACE,KAAK,EAAC,4BAA4B,EAClC,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,YAEb,KAAK,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,OAAO,EAAE,EAAE,CAAC,EAAE,EAAE;YAClD,MAAM,aAAa,GAAG,EAAE,GAAG,aAAa,EAAE,GAAG,OAAO,EAAE,CAAC;YAEvD,OAAO,CACL,eAEE,CAAC,EAAE,CAAC,EACJ,IAAI,EAAE,QAAQ,IAAI,cAAc,EAChC,MAAM,EAAE,aAAa,CAAC,MAAM,EAC5B,aAAa,EAAE,aAAa,CAAC,aAAa,EAC1C,cAAc,EAAE,aAAa,CAAC,cAAc,EAC5C,WAAW,EAAE,aAAa,CAAC,WAAW,EACtC,gBAAgB,EAAE,aAAa,CAAC,gBAAgB,IAP3C,CAAC,CAQN,CACH,CAAC;QACJ,CAAC,CAAC,GACE,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -1,4 +1,4 @@
1
- export const getBorderStyle = (showBorder) => showBorder
1
+ export const getBorderStyle = (showBorder = false) => showBorder
2
2
  ? 'border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider'
3
3
  : '';
4
4
  //# sourceMappingURL=getBorderStyle.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getBorderStyle.js","sourceRoot":"","sources":["../../src/utils/getBorderStyle.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,UAAoB,EAAE,EAAE,CACrD,UAAU;IACR,CAAC,CAAC,0GAA0G;IAC5G,CAAC,CAAC,EAAE,CAAC"}
1
+ {"version":3,"file":"getBorderStyle.js","sourceRoot":"","sources":["../../src/utils/getBorderStyle.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,UAAU,GAAG,KAAK,EAAE,EAAE,CACnD,UAAU;IACR,CAAC,CAAC,0GAA0G;IAC5G,CAAC,CAAC,EAAE,CAAC"}
@@ -878,7 +878,7 @@
878
878
  });
879
879
 
880
880
  function LeadServiceAPI() {
881
- async function send(body, isIndividualType) {
881
+ async function send(body, isIndividualType = false) {
882
882
  const url = isIndividualType ? '/api/v1/lead' : '/api/v1/sendcorporatelead';
883
883
  try {
884
884
  const response = await fetch(url, {
@@ -2925,7 +2925,7 @@
2925
2925
  : null;
2926
2926
  }
2927
2927
 
2928
- const getBorderStyle = (showBorder) => showBorder
2928
+ const getBorderStyle = (showBorder = false) => showBorder
2929
2929
  ? 'border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider'
2930
2930
  : '';
2931
2931
 
@@ -2980,11 +2980,8 @@
2980
2980
  'CarouselBankHistoryCard',
2981
2981
  'CarouselCatalogCard',
2982
2982
  'CarouselInvestmentCard',
2983
- 'CarouselProductCard',
2984
- 'CarouselProgramsCard',
2985
2983
  'CarouselRecommendationCard',
2986
2984
  'CarouselTariffsCard',
2987
- 'CarouselInvestmentCard',
2988
2985
  'RichTextBlock',
2989
2986
  'ProductBlock',
2990
2987
  ];
@@ -3543,7 +3540,7 @@
3543
3540
 
3544
3541
  const foldableSectionStyles = 'flex flex-wrap group-last:last:pb-0';
3545
3542
 
3546
- const getIconName = (isUnfolded) => isUnfolded ? 'ArrowUpSolidIcon' : 'ArrowDownSolidIcon';
3543
+ const getIconName = (isUnfolded = false) => isUnfolded ? 'ArrowUpSolidIcon' : 'ArrowDownSolidIcon';
3547
3544
 
3548
3545
  const rollupItemStyles = '';
3549
3546
 
@@ -4546,9 +4543,8 @@
4546
4543
  };
4547
4544
  const getIconSizeStyle = (size) => (size === 'normal' ? '38' : '24');
4548
4545
 
4549
- const isHrefActive = (router) => ({ href }) => !href
4550
- ? false
4551
- : withoutQuery(isURL(href) ? router.href : router.pathname).startsWith(withoutQuery(href));
4546
+ const isHrefActive = (router) => ({ href }) => !href ? false : withoutQuery(getRouterHref(href, router)).startsWith(withoutQuery(href));
4547
+ const getRouterHref = (href, router) => isURL(href) ? router.href : router.pathname;
4552
4548
 
4553
4549
  const isTopItemActive = (router) => isHrefActive(projectSettings.BASE_PATH ? { pathname: projectSettings.BASE_PATH } : router);
4554
4550
 
@@ -5187,7 +5183,10 @@
5187
5183
  /** @deprecated */
5188
5184
  function renderArrows({ dec, inc, canDec, canInc, btnClass, className = '', }) {
5189
5185
  const isVisible = canDec || canInc;
5190
- return isVisible ? (jsxs("div", { children: [canDec ? (jsx(ArrowButton, { className: `absolute z-40 ${btnClass[0]} ${className}`, onClick: dec, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043B\u0435\u0432\u043E", "data-block-control": "scroll-left", disabled: !canDec })) : null, canInc ? (jsx(ArrowButton, { className: `absolute z-40 rotate-180 ${btnClass[1]} ${className}`, onClick: inc, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043F\u0440\u0430\u0432\u043E", "data-block-control": "scroll-right", disabled: !canInc })) : null] })) : null;
5186
+ if (!isVisible) {
5187
+ return null;
5188
+ }
5189
+ return (jsxs("div", { children: [canDec ? (jsx(ArrowButton, { className: style('absolute z-40', btnClass[0], className), onClick: dec, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043B\u0435\u0432\u043E", "data-block-control": "scroll-left", disabled: !canDec })) : null, canInc ? (jsx(ArrowButton, { className: style('absolute z-40 rotate-180', btnClass[1], className), onClick: inc, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043F\u0440\u0430\u0432\u043E", "data-block-control": "scroll-right", disabled: !canInc })) : null] }));
5191
5190
  }
5192
5191
 
5193
5192
  const TariffsTableWrapper = JSX(({ children, controls }) => {
@@ -5403,7 +5402,7 @@
5403
5402
 
5404
5403
  const joinList = (sep) => (list) => list.reduce((acc, el, i) => (acc.length ? acc.concat({ ...sep, key: `sep-${i}` }, el) : [el]), []);
5405
5404
 
5406
- const packageVersion = "0.14.98";
5405
+ const packageVersion = "0.14.100";
5407
5406
 
5408
5407
  exports.Blocks = Blocks;
5409
5408
  exports.ContentPage = ContentPage;