@redneckz/wildless-cms-uni-blocks 0.14.78 → 0.14.80

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 (166) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +73 -28
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/bundle/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +3 -3
  5. package/bundle/components/OfficesAtmsMap/renderCurrency.d.ts +3 -0
  6. package/bundle/components/OfficesAtmsMap/renderCurrentDaySchedule.d.ts +3 -0
  7. package/bundle/components/OfficesAtmsMap/renderDay.d.ts +3 -0
  8. package/bundle/components/OfficesAtmsMap/renderFoldButton.d.ts +3 -0
  9. package/bundle/components/OfficesAtmsMap/renderOfficeCard.d.ts +1 -4
  10. package/dist/components/LinkDocs/LinkDocItem.js +3 -2
  11. package/dist/components/LinkDocs/LinkDocItem.js.map +1 -1
  12. package/dist/components/LinkDocs/LinkDocs.js +8 -1
  13. package/dist/components/LinkDocs/LinkDocs.js.map +1 -1
  14. package/dist/components/OfficesAtmsMap/Badge.js +1 -1
  15. package/dist/components/OfficesAtmsMap/Badge.js.map +1 -1
  16. package/dist/components/OfficesAtmsMap/CardRow.js +1 -1
  17. package/dist/components/OfficesAtmsMap/CardRow.js.map +1 -1
  18. package/dist/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +3 -3
  19. package/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +1 -1
  20. package/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -1
  21. package/dist/components/OfficesAtmsMap/renderAtmCard.js +8 -1
  22. package/dist/components/OfficesAtmsMap/renderAtmCard.js.map +1 -1
  23. package/dist/components/OfficesAtmsMap/renderCurrency.d.ts +3 -0
  24. package/dist/components/OfficesAtmsMap/renderCurrency.js +7 -0
  25. package/dist/components/OfficesAtmsMap/renderCurrency.js.map +1 -0
  26. package/dist/components/OfficesAtmsMap/renderCurrentDaySchedule.d.ts +3 -0
  27. package/dist/components/OfficesAtmsMap/renderCurrentDaySchedule.js +16 -0
  28. package/dist/components/OfficesAtmsMap/renderCurrentDaySchedule.js.map +1 -0
  29. package/dist/components/OfficesAtmsMap/renderDay.d.ts +3 -0
  30. package/dist/components/OfficesAtmsMap/renderDay.js +13 -0
  31. package/dist/components/OfficesAtmsMap/renderDay.js.map +1 -0
  32. package/dist/components/OfficesAtmsMap/renderFiltrationForm.js +1 -1
  33. package/dist/components/OfficesAtmsMap/renderFiltrationForm.js.map +1 -1
  34. package/dist/components/OfficesAtmsMap/renderFoldButton.d.ts +3 -0
  35. package/dist/components/OfficesAtmsMap/renderFoldButton.js +9 -0
  36. package/dist/components/OfficesAtmsMap/renderFoldButton.js.map +1 -0
  37. package/dist/components/OfficesAtmsMap/renderOfficeCard.d.ts +1 -4
  38. package/dist/components/OfficesAtmsMap/renderOfficeCard.js +36 -26
  39. package/dist/components/OfficesAtmsMap/renderOfficeCard.js.map +1 -1
  40. package/lib/common.css +1 -1
  41. package/lib/components/LinkDocs/LinkDocItem.js +3 -2
  42. package/lib/components/LinkDocs/LinkDocItem.js.map +1 -1
  43. package/lib/components/LinkDocs/LinkDocs.js +8 -1
  44. package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
  45. package/lib/components/OfficesAtmsMap/Badge.js +1 -1
  46. package/lib/components/OfficesAtmsMap/Badge.js.map +1 -1
  47. package/lib/components/OfficesAtmsMap/CardRow.js +1 -1
  48. package/lib/components/OfficesAtmsMap/CardRow.js.map +1 -1
  49. package/lib/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +3 -3
  50. package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +1 -1
  51. package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -1
  52. package/lib/components/OfficesAtmsMap/renderAtmCard.js +8 -1
  53. package/lib/components/OfficesAtmsMap/renderAtmCard.js.map +1 -1
  54. package/lib/components/OfficesAtmsMap/renderCurrency.d.ts +2 -0
  55. package/lib/components/OfficesAtmsMap/renderCurrency.js +4 -0
  56. package/lib/components/OfficesAtmsMap/renderCurrency.js.map +1 -0
  57. package/lib/components/OfficesAtmsMap/renderCurrentDaySchedule.d.ts +2 -0
  58. package/lib/components/OfficesAtmsMap/renderCurrentDaySchedule.js +13 -0
  59. package/lib/components/OfficesAtmsMap/renderCurrentDaySchedule.js.map +1 -0
  60. package/lib/components/OfficesAtmsMap/renderDay.d.ts +2 -0
  61. package/lib/components/OfficesAtmsMap/renderDay.js +10 -0
  62. package/lib/components/OfficesAtmsMap/renderDay.js.map +1 -0
  63. package/lib/components/OfficesAtmsMap/renderFiltrationForm.js +1 -1
  64. package/lib/components/OfficesAtmsMap/renderFiltrationForm.js.map +1 -1
  65. package/lib/components/OfficesAtmsMap/renderFoldButton.d.ts +3 -0
  66. package/lib/components/OfficesAtmsMap/renderFoldButton.js +6 -0
  67. package/lib/components/OfficesAtmsMap/renderFoldButton.js.map +1 -0
  68. package/lib/components/OfficesAtmsMap/renderOfficeCard.d.ts +1 -4
  69. package/lib/components/OfficesAtmsMap/renderOfficeCard.js +34 -21
  70. package/lib/components/OfficesAtmsMap/renderOfficeCard.js.map +1 -1
  71. package/mobile/bundle/bundle.umd.js +77 -32
  72. package/mobile/bundle/bundle.umd.min.js +1 -1
  73. package/mobile/bundle/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +3 -3
  74. package/mobile/bundle/components/OfficesAtmsMap/renderCurrency.d.ts +3 -0
  75. package/mobile/bundle/components/OfficesAtmsMap/renderCurrentDaySchedule.d.ts +3 -0
  76. package/mobile/bundle/components/OfficesAtmsMap/renderDay.d.ts +3 -0
  77. package/mobile/bundle/components/OfficesAtmsMap/renderFoldButton.d.ts +3 -0
  78. package/mobile/bundle/components/OfficesAtmsMap/renderOfficeCard.d.ts +1 -4
  79. package/mobile/dist/components/LinkDocs/LinkDocItem.js +3 -2
  80. package/mobile/dist/components/LinkDocs/LinkDocItem.js.map +1 -1
  81. package/mobile/dist/components/LinkDocs/LinkDocs.js +8 -1
  82. package/mobile/dist/components/LinkDocs/LinkDocs.js.map +1 -1
  83. package/mobile/dist/components/OfficesAtmsMap/Badge.js +1 -1
  84. package/mobile/dist/components/OfficesAtmsMap/Badge.js.map +1 -1
  85. package/mobile/dist/components/OfficesAtmsMap/CardRow.js +1 -1
  86. package/mobile/dist/components/OfficesAtmsMap/CardRow.js.map +1 -1
  87. package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +3 -3
  88. package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +1 -1
  89. package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -1
  90. package/mobile/dist/components/OfficesAtmsMap/renderAtmCard.js +8 -1
  91. package/mobile/dist/components/OfficesAtmsMap/renderAtmCard.js.map +1 -1
  92. package/mobile/dist/components/OfficesAtmsMap/renderCurrency.d.ts +3 -0
  93. package/mobile/dist/components/OfficesAtmsMap/renderCurrency.js +7 -0
  94. package/mobile/dist/components/OfficesAtmsMap/renderCurrency.js.map +1 -0
  95. package/mobile/dist/components/OfficesAtmsMap/renderCurrentDaySchedule.d.ts +3 -0
  96. package/mobile/dist/components/OfficesAtmsMap/renderCurrentDaySchedule.js +16 -0
  97. package/mobile/dist/components/OfficesAtmsMap/renderCurrentDaySchedule.js.map +1 -0
  98. package/mobile/dist/components/OfficesAtmsMap/renderDay.d.ts +3 -0
  99. package/mobile/dist/components/OfficesAtmsMap/renderDay.js +13 -0
  100. package/mobile/dist/components/OfficesAtmsMap/renderDay.js.map +1 -0
  101. package/mobile/dist/components/OfficesAtmsMap/renderFiltrationForm.js +1 -1
  102. package/mobile/dist/components/OfficesAtmsMap/renderFiltrationForm.js.map +1 -1
  103. package/mobile/dist/components/OfficesAtmsMap/renderFoldButton.d.ts +3 -0
  104. package/mobile/dist/components/OfficesAtmsMap/renderFoldButton.js +9 -0
  105. package/mobile/dist/components/OfficesAtmsMap/renderFoldButton.js.map +1 -0
  106. package/mobile/dist/components/OfficesAtmsMap/renderOfficeCard.d.ts +1 -4
  107. package/mobile/dist/components/OfficesAtmsMap/renderOfficeCard.js +36 -26
  108. package/mobile/dist/components/OfficesAtmsMap/renderOfficeCard.js.map +1 -1
  109. package/mobile/lib/common.css +1 -1
  110. package/mobile/lib/components/LinkDocs/LinkDocItem.js +3 -2
  111. package/mobile/lib/components/LinkDocs/LinkDocItem.js.map +1 -1
  112. package/mobile/lib/components/LinkDocs/LinkDocs.js +8 -1
  113. package/mobile/lib/components/LinkDocs/LinkDocs.js.map +1 -1
  114. package/mobile/lib/components/OfficesAtmsMap/Badge.js +1 -1
  115. package/mobile/lib/components/OfficesAtmsMap/Badge.js.map +1 -1
  116. package/mobile/lib/components/OfficesAtmsMap/CardRow.js +1 -1
  117. package/mobile/lib/components/OfficesAtmsMap/CardRow.js.map +1 -1
  118. package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +3 -3
  119. package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +1 -1
  120. package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -1
  121. package/mobile/lib/components/OfficesAtmsMap/renderAtmCard.js +8 -1
  122. package/mobile/lib/components/OfficesAtmsMap/renderAtmCard.js.map +1 -1
  123. package/mobile/lib/components/OfficesAtmsMap/renderCurrency.d.ts +3 -0
  124. package/mobile/lib/components/OfficesAtmsMap/renderCurrency.js +4 -0
  125. package/mobile/lib/components/OfficesAtmsMap/renderCurrency.js.map +1 -0
  126. package/mobile/lib/components/OfficesAtmsMap/renderCurrentDaySchedule.d.ts +3 -0
  127. package/mobile/lib/components/OfficesAtmsMap/renderCurrentDaySchedule.js +13 -0
  128. package/mobile/lib/components/OfficesAtmsMap/renderCurrentDaySchedule.js.map +1 -0
  129. package/mobile/lib/components/OfficesAtmsMap/renderDay.d.ts +3 -0
  130. package/mobile/lib/components/OfficesAtmsMap/renderDay.js +10 -0
  131. package/mobile/lib/components/OfficesAtmsMap/renderDay.js.map +1 -0
  132. package/mobile/lib/components/OfficesAtmsMap/renderFiltrationForm.js +1 -1
  133. package/mobile/lib/components/OfficesAtmsMap/renderFiltrationForm.js.map +1 -1
  134. package/mobile/lib/components/OfficesAtmsMap/renderFoldButton.d.ts +3 -0
  135. package/mobile/lib/components/OfficesAtmsMap/renderFoldButton.js +6 -0
  136. package/mobile/lib/components/OfficesAtmsMap/renderFoldButton.js.map +1 -0
  137. package/mobile/lib/components/OfficesAtmsMap/renderOfficeCard.d.ts +1 -4
  138. package/mobile/lib/components/OfficesAtmsMap/renderOfficeCard.js +34 -21
  139. package/mobile/lib/components/OfficesAtmsMap/renderOfficeCard.js.map +1 -1
  140. package/mobile/src/components/LinkDocs/LinkDocItem.tsx +5 -3
  141. package/mobile/src/components/LinkDocs/LinkDocs.tsx +12 -1
  142. package/mobile/src/components/OfficesAtmsMap/Badge.tsx +1 -1
  143. package/mobile/src/components/OfficesAtmsMap/CardRow.tsx +1 -1
  144. package/mobile/src/components/OfficesAtmsMap/OfficesAtmsMapContent.ts +3 -3
  145. package/mobile/src/components/OfficesAtmsMap/OfficesAtmsMapLayout.tsx +2 -2
  146. package/mobile/src/components/OfficesAtmsMap/renderAtmCard.tsx +29 -10
  147. package/mobile/src/components/OfficesAtmsMap/renderCurrency.tsx +13 -0
  148. package/mobile/src/components/OfficesAtmsMap/renderCurrentDaySchedule.tsx +24 -0
  149. package/mobile/src/components/OfficesAtmsMap/renderDay.tsx +23 -0
  150. package/mobile/src/components/OfficesAtmsMap/renderFiltrationForm.tsx +1 -1
  151. package/mobile/src/components/OfficesAtmsMap/renderFoldButton.tsx +17 -0
  152. package/mobile/src/components/OfficesAtmsMap/renderOfficeCard.tsx +72 -68
  153. package/package.json +1 -1
  154. package/src/components/LinkDocs/LinkDocItem.tsx +5 -3
  155. package/src/components/LinkDocs/LinkDocs.tsx +12 -1
  156. package/src/components/OfficesAtmsMap/Badge.tsx +1 -1
  157. package/src/components/OfficesAtmsMap/CardRow.tsx +1 -1
  158. package/src/components/OfficesAtmsMap/OfficesAtmsMapContent.ts +3 -3
  159. package/src/components/OfficesAtmsMap/OfficesAtmsMapLayout.tsx +2 -2
  160. package/src/components/OfficesAtmsMap/renderAtmCard.tsx +29 -10
  161. package/src/components/OfficesAtmsMap/renderCurrency.tsx +13 -0
  162. package/src/components/OfficesAtmsMap/renderCurrentDaySchedule.tsx +24 -0
  163. package/src/components/OfficesAtmsMap/renderDay.tsx +23 -0
  164. package/src/components/OfficesAtmsMap/renderFiltrationForm.tsx +1 -1
  165. package/src/components/OfficesAtmsMap/renderFoldButton.tsx +17 -0
  166. package/src/components/OfficesAtmsMap/renderOfficeCard.tsx +72 -68
@@ -9,14 +9,14 @@ export declare type ItemList = {
9
9
  image?: Picture;
10
10
  };
11
11
  /**
12
- * @title Офисы
12
+ * @title Офисам
13
13
  * @default {"dataType": "offices"}
14
14
  */
15
15
  export declare type OfficesDef = {
16
16
  dataType: 'offices';
17
17
  };
18
18
  /**
19
- * @title Банкоматы
19
+ * @title Банкоматам
20
20
  * @default {"dataType": "atms"}
21
21
  */
22
22
  export declare type AtmsDef = {
@@ -32,7 +32,7 @@ export declare type EmptyOfficesAtmsBlock = {
32
32
  dataType: '';
33
33
  };
34
34
  /**
35
- * @title Данные
35
+ * @title Данные по
36
36
  * @default { "dataType": "" }
37
37
  */
38
38
  export declare type OfficesAtmsBlockDef = EmptyOfficesAtmsBlock | OfficesDef | AtmsDef;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { type Currency } from './OfficesAtmsMapProps';
3
+ export declare const renderCurrency: ({ currency, buyExchangeRate, saleExchangeRate }: Currency, i: number) => JSX.Element;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { type WorkScheduleWeek } from './OfficesAtmsMapProps';
3
+ export declare const renderCurrentDaySchedule: (workScheduleWeek?: WorkScheduleWeek[]) => JSX.Element | null;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { type WorkScheduleWeek } from './OfficesAtmsMapProps';
3
+ export declare const renderDay: ({ title, status, workTime, lunchHour, hasLunch }: WorkScheduleWeek, index: number) => JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { type VNode } from '../../model/VNode';
2
+ import { type FoldablePartProps } from '../../ui-kit/Foldable/FoldablePartProps';
3
+ export declare const renderFoldButton: ({ isUnfolded, onToggle }: FoldablePartProps) => VNode;
@@ -1,6 +1,3 @@
1
1
  /// <reference types="react" />
2
- import { type Branch, type Currency, type WorkScheduleWeek } from './OfficesAtmsMapProps';
2
+ import { type Branch } from './OfficesAtmsMapProps';
3
3
  export declare const renderOfficeCard: ({ name, address, phone, fax, phoneBusiness, phoneNatural, phoneCallCentre, phoneCurrencyControl, workSchedule, exchangeRate, }: Branch, index: number) => JSX.Element | null;
4
- export declare const renderCurrency: ({ currency, buyExchangeRate, saleExchangeRate }: Currency, i: number) => JSX.Element;
5
- export declare const renderCurrentDaySchedule: (workScheduleWeek?: WorkScheduleWeek[]) => JSX.Element | null;
6
- export declare const renderDay: ({ title, status, workTime, lunchHour, hasLunch }: WorkScheduleWeek, index: number) => JSX.Element;
@@ -4,9 +4,10 @@ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
4
  const uni_jsx_1 = require("@redneckz/uni-jsx");
5
5
  const Text_1 = require("../../ui-kit/Text/Text");
6
6
  exports.LinkDocItem = (0, uni_jsx_1.JSX)(({ icon, text, href, target, fileFormat, fileSize }) => {
7
- const prefix = fileFormat || fileSize ? ',' : '';
7
+ const prefix = fileSize && fileFormat ? ',' : '';
8
8
  const size = fileSize ?? '';
9
9
  const format = fileFormat ? String(fileFormat) : '';
10
- return ((0, jsx_runtime_1.jsxs)("a", { className: "flex box-border gap-s group/item h-fit w-fit text-primary-text no-underline hover:text-primary-main", role: "link", href: href, target: target, children: [icon, text ? ((0, jsx_runtime_1.jsxs)(Text_1.Text, { size: "text-l", font: "font-light", children: [text, (0, jsx_runtime_1.jsx)(Text_1.Text, { color: "text-secondary-text", children: href && `${size} ${prefix} ${format}` })] })) : null] }));
10
+ return ((0, jsx_runtime_1.jsxs)("a", { className: "flex box-border gap-s group/item h-fit w-fit text-primary-text no-underline hover:text-primary-main", role: "link", href: href, target: target, children: [icon, text ? ((0, jsx_runtime_1.jsxs)(Text_1.Text, { size: "text-l", font: "font-light", children: [text, " ", addSpace(size, format), (0, jsx_runtime_1.jsx)(Text_1.Text, { color: "text-secondary-text", children: href && `${size + prefix + format}` })] })) : null] }));
11
11
  });
12
+ const addSpace = (size, format) => (size || format ? (0, jsx_runtime_1.jsx)("span", { children: ",\u00A0" }) : '');
12
13
  //# sourceMappingURL=LinkDocItem.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"LinkDocItem.js","sourceRoot":"","sources":["../../../src/components/LinkDocs/LinkDocItem.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,iDAA8C;AAOjC,QAAA,WAAW,GAAG,IAAA,aAAG,EAC5B,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,EAAE,EAAE;IACrD,MAAM,MAAM,GAAG,UAAU,IAAI,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;IACjD,MAAM,IAAI,GAAG,QAAQ,IAAI,EAAE,CAAC;IAC5B,MAAM,MAAM,GAAG,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAEpD,OAAO,CACL,+BACE,SAAS,EAAC,qGAAqG,EAC/G,IAAI,EAAC,MAAM,EACX,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,aAEb,IAAI,EACJ,IAAI,CAAC,CAAC,CAAC,CACN,wBAAC,WAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,YAAY,aAClC,IAAI,EACL,uBAAC,W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AAI,IAAI,MAAM,CAAC,CAAC,CAAC,uDAAwB,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC"}
@@ -29,7 +29,14 @@ const renderLinkDocItem = (router, icon) => (docBlockDef, i) => {
29
29
  const fileSize = docBlockDef?.docType === 'Attachment'
30
30
  ? (0, formatBytes_1.formatBytes)(docBlockDef?.attachment?.fileSize || 0)
31
31
  : docBlockDef?.fileSize;
32
- const fileFormat = docBlockDef?.docType !== 'Attachment' ? docBlockDef?.fileFormat : '';
32
+ const fileFormat = docBlockDef?.docType === 'Attachment' ? getExtFromHref(href) : docBlockDef?.fileFormat;
33
33
  return ((0, jsx_runtime_1.jsx)("div", { role: "listitem", children: (0, jsx_runtime_1.jsx)(LinkDocItem_1.LinkDocItem, { text: docBlockDef?.text, target: docBlockDef?.target, href: href, fileFormat: fileFormat, fileSize: fileSize, icon: icon ? (0, jsx_runtime_1.jsx)(Img_1.Img, { className: linkIconStyle_1.linkIconStyle, image: icon, width: "24", height: "24" }) : null }) }, String(i)));
34
34
  };
35
+ const getExtFromHref = (href) => {
36
+ if (!href) {
37
+ return '';
38
+ }
39
+ const index = href.lastIndexOf('.');
40
+ return index !== -1 ? href.substring(index + 1) : '';
41
+ };
35
42
  //# sourceMappingURL=LinkDocs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"LinkDocs.js","sourceRoot":"","sources":["../../../src/components/LinkDocs/LinkDocs.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,qDAA+D;AAG/D,4DAAyD;AACzD,8CAA2C;AAC3C,uDAAoD;AACpD,yDAAsD;AACtD,6CAA0C;AAC1C,mDAAgD;AAChD,+CAA4C;AAE5C,mDAAgD;AAEhD,MAAM,uBAAuB,GAAoC;IAC/D,MAAM,EAAE,0BAA0B;IAClC,MAAM,EAAE,aAAa;CACtB,CAAC;AAIW,QAAA,QAAQ,GAAG,IAAA,aAAG,EACzB,CAAC,EACC,SAAS,GAAG,EAAE,EACd,KAAK,EACL,WAAW,EACX,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,OAAO,KAAK,YAAY;QACnC,CAAC,CAAC,IAAA,yBAAW,EAAC,WAAW,EAAE,UAAU,EAAE,QAAQ,IAAI,CAAC,CAAC;QACrD,CAAC,CAAC,WAAW,EAAE,QAAQ,CAAC;IAE5B,MAAM,UAAU,GACd,WAAW,EAAE,OAAO,KAAK,YAAY,CAAC,CAAC,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,UAAU,CAAC;IAEzF,OAAO,CACL,gCAAqB,IAAI,EAAC,UAAU,YAClC,uBAAC,yBAAW,IACV,IAAI,EAAE,WAAW,EAAE,IAAI,EACvB,MAAM,EAAE,WAAW,EAAE,MAAM,EAC3B,IAAI,EAAE,IAAI,EACV,UAAU,EAAE,UAAU,EACtB,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,uBAAC,SAAG,IAAC,SAAS,EAAE,6BAAa,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,GAAG,CAAC,CAAC,CAAC,IAAI,GACzF,IARM,MAAM,CAAC,CAAC,CAAC,CASb,CACP,CAAC;AACJ,CAAC,CAAC;AAEJ,MAAM,cAAc,GAAG,CAAC,IAAa,EAAE,EAAE;IACvC,IAAI,CAAC,IAAI,EAAE;QACT,OAAO,EAAE,CAAC;KACX;IAED,MAAM,KAAK,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;IAEpC,OAAO,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AACvD,CAAC,CAAC"}
@@ -10,5 +10,5 @@ const colorStyle = {
10
10
  gray: { border: 'border-gray', text: 'text-secondary-text' },
11
11
  red: { border: 'border-error/30', text: 'text-error' },
12
12
  };
13
- exports.Badge = (0, uni_jsx_1.JSX)(({ className, children, color = 'gray' }) => ((0, jsx_runtime_1.jsx)("div", { className: (0, style_1.style)('p-s border border-gray rounded-md flex items-center', colorStyle[color].border, className), children: (0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-m", color: colorStyle[color].text, children: children }) })));
13
+ exports.Badge = (0, uni_jsx_1.JSX)(({ className, children, color = 'gray' }) => ((0, jsx_runtime_1.jsx)("div", { className: (0, style_1.style)('p-s sm:border sm:border-gray rounded-md flex items-center', colorStyle[color].border, className), children: (0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-m", color: colorStyle[color].text, children: children }) })));
14
14
  //# sourceMappingURL=Badge.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Badge.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/Badge.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;AAE9C,6CAA0C;AAE1C,MAAM,UAAU,GAAwD;IACtE,MAAM,EAAE,EAAE,MAAM,EAAE,qBAAqB,EAAE,IAAI,EAAE,aAAa,EAAE;IAC9D,KAAK,EAAE,EAAE,MAAM,EAAE,yBAAyB,EAAE,IAAI,EAAE,iBAAiB,EAAE;IACrE,IAAI,EAAE,EAAE,MAAM,EAAE,aAAa,EAAE,IAAI,EAAE,qBAAqB,EAAE;IAC5D,GAAG,EAAE,EAAE,MAAM,EAAE,iBAAiB,EAAE,IAAI,EAAE,YAAY,EAAE;CACvD,CAAC;AAOW,QAAA,KAAK,GAAG,IAAA,aAAG,EAAa,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,GAAG,MAAM,EAAE,EAAE,EAAE,CAAC,CAChF,gCACE,SAAS,EAAE,IAAA,aAAK,EACd,qDAAqD,EACrD,UAAU,CAAC,KAAK,CAAC,CAAC,MAAM,EACxB,SAAS,CACV,YAED,uBAAC,WAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC,IAAI,YAC9C,QAAQ,GACJ,GACH,CACP,CAAC,CAAC"}
1
+ {"version":3,"file":"Badge.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/Badge.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;AAE9C,6CAA0C;AAE1C,MAAM,UAAU,GAAwD;IACtE,MAAM,EAAE,EAAE,MAAM,EAAE,qBAAqB,EAAE,IAAI,EAAE,aAAa,EAAE;IAC9D,KAAK,EAAE,EAAE,MAAM,EAAE,yBAAyB,EAAE,IAAI,EAAE,iBAAiB,EAAE;IACrE,IAAI,EAAE,EAAE,MAAM,EAAE,aAAa,EAAE,IAAI,EAAE,qBAAqB,EAAE;IAC5D,GAAG,EAAE,EAAE,MAAM,EAAE,iBAAiB,EAAE,IAAI,EAAE,YAAY,EAAE;CACvD,CAAC;AAOW,QAAA,KAAK,GAAG,IAAA,aAAG,EAAa,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,GAAG,MAAM,EAAE,EAAE,EAAE,CAAC,CAChF,gCACE,SAAS,EAAE,IAAA,aAAK,EACd,2DAA2D,EAC3D,UAAU,CAAC,KAAK,CAAC,CAAC,MAAM,EACxB,SAAS,CACV,YAED,uBAAC,WAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC,IAAI,YAC9C,QAAQ,GACJ,GACH,CACP,CAAC,CAAC"}
@@ -3,5 +3,5 @@ exports.CardRow = 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 style_1 = require("../../utils/style");
6
- exports.CardRow = (0, uni_jsx_1.JSX)(({ className, children }) => ((0, jsx_runtime_1.jsx)("div", { className: (0, style_1.style)('flex border-t border-solid border-main-divider py-xl gap-x-6xl gap-y-xl', className), children: children })));
6
+ exports.CardRow = (0, uni_jsx_1.JSX)(({ className, children }) => ((0, jsx_runtime_1.jsx)("div", { className: (0, style_1.style)('sm:flex sm:border-t sm:border-solid sm:border-main-divider py-xl gap-x-6xl gap-y-xl', className), children: children })));
7
7
  //# sourceMappingURL=CardRow.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CardRow.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/CardRow.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,6CAA0C;AAM7B,QAAA,OAAO,GAAG,IAAA,aAAG,EAAe,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CACpE,gCACE,SAAS,EAAE,IAAA,aAAK,EACd,yEAAyE,EACzE,SAAS,CACV,YAEA,QAAQ,GACL,CACP,CAAC,CAAC"}
1
+ {"version":3,"file":"CardRow.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/CardRow.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,6CAA0C;AAM7B,QAAA,OAAO,GAAG,IAAA,aAAG,EAAe,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CACpE,gCACE,SAAS,EAAE,IAAA,aAAK,EACd,qFAAqF,EACrF,SAAS,CACV,YAEA,QAAQ,GACL,CACP,CAAC,CAAC"}
@@ -9,14 +9,14 @@ export declare type ItemList = {
9
9
  image?: Picture;
10
10
  };
11
11
  /**
12
- * @title Офисы
12
+ * @title Офисам
13
13
  * @default {"dataType": "offices"}
14
14
  */
15
15
  export declare type OfficesDef = {
16
16
  dataType: 'offices';
17
17
  };
18
18
  /**
19
- * @title Банкоматы
19
+ * @title Банкоматам
20
20
  * @default {"dataType": "atms"}
21
21
  */
22
22
  export declare type AtmsDef = {
@@ -32,7 +32,7 @@ export declare type EmptyOfficesAtmsBlock = {
32
32
  dataType: '';
33
33
  };
34
34
  /**
35
- * @title Данные
35
+ * @title Данные по
36
36
  * @default { "dataType": "" }
37
37
  */
38
38
  export declare type OfficesAtmsBlockDef = EmptyOfficesAtmsBlock | OfficesDef | AtmsDef;
@@ -22,5 +22,5 @@ exports.OfficesAtmsMapLayout = (0, uni_jsx_1.JSX)(({ className, data = [], rende
22
22
  const lengthItems = filteredItems.length;
23
23
  return ((0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('space-y-1', className), children: [(0, jsx_runtime_1.jsxs)("div", { className: "bg-white", children: [(0, jsx_runtime_1.jsxs)("div", { className: "pt-6xl px-6xl", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex gap-xs pb-2xl", children: [(0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h2", children: title }), lengthItems ? ((0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-h2", color: "text-secondary-text", children: `(${lengthItems})` })) : null] }), descriptionData ? renderDescriptionBlock(descriptionData) : null, (0, renderFiltrationForm_1.renderFiltrationForm)(Object.keys(initFilterState), { field, reset })] }), (0, jsx_runtime_1.jsx)("div", { className: "h-[600px]", children: (0, jsx_runtime_1.jsx)(ClientOnly_1.ClientOnly, { children: (0, jsx_runtime_1.jsx)(YandexMap_1.YandexMap, { points: points, className: "h-full" }) }) })] }), filteredItems.map(renderCard)] }));
24
24
  });
25
- const renderDescriptionBlock = ({ description, list }) => description || list?.length ? ((0, jsx_runtime_1.jsxs)("div", { className: "p-xl mb-2xl border border-gray rounded-md", children: [description ? ((0, jsx_runtime_1.jsx)(Paragraph_1.Paragraph, { size: "text-l", font: "font-light", children: description })) : null, list?.length ? ((0, jsx_runtime_1.jsx)("div", { className: "flex gap-2xl flex-wrap pt-xs", children: list.map((item, i) => ((0, jsx_runtime_1.jsxs)("div", { className: "flex gap-xs items-center", children: [item?.image ? (0, jsx_runtime_1.jsx)(Img_1.Img, { image: item.image }) : null, item?.text ? ((0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-m", font: "font-light", children: item.text })) : null] }, String(i)))) })) : null] })) : null;
25
+ const renderDescriptionBlock = ({ description, list }) => description || list?.length ? ((0, jsx_runtime_1.jsxs)("div", { className: "p-xl mb-2xl border-b sm:border border-main-divider sm:rounded-md", children: [description ? ((0, jsx_runtime_1.jsx)(Paragraph_1.Paragraph, { size: "text-l", font: "font-light", children: description })) : null, list?.length ? ((0, jsx_runtime_1.jsx)("div", { className: "flex flex-col sm:flex-row gap-2xl sm:flex-wrap pt-xs", children: list.map((item, i) => ((0, jsx_runtime_1.jsxs)("div", { className: "flex gap-xs items-center", children: [item?.image ? (0, jsx_runtime_1.jsx)(Img_1.Img, { image: item.image }) : null, item?.text ? ((0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-m", font: "font-light", children: item.text })) : null] }, String(i)))) })) : null] })) : null;
26
26
  //# sourceMappingURL=OfficesAtmsMapLayout.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"OfficesAtmsMapLayout.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/OfficesAtmsMapLayout.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;AAE9C,wDAAqD;AACrD,0DAAuD;AACvD,8CAA2C;AAC3C,gEAA6D;AAC7D,iDAA8C;AAC9C,gEAA6D;AAC7D,6CAA0C;AAG1C,iEAA8D;AAE9D,MAAM,iBAAiB,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC;AACrC,MAAM,kBAAkB,GAAG,GAAG,EAAE,CAAC,EAAE,CAAC;AAcvB,QAAA,oBAAoB,GAAG,IAAA,aAAG,EACrC,CAAC,EACC,SAAS,EACT,IAAI,GAAG,EAAE,EACT,UAAU,GAAG,iBAAiB,EAC9B,WAAW,GAAG,kBAAkB,EAChC,eAAe,GAAG,EAAE,EACpB,eAAe,EACf,KAAK,GACN,EAAE,EAAE;IACH,MAAM,CAAC,eAAe,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,GAAG,IAAA,iBAAO,EAAC,eAAe,CAAC,CAAC;IAErE,MAAM,aAAa,GAAG,WAAW,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC;IAEzD,MAAM,MAAM,GAAG,aAAa;SACzB,GAAG,CAAC,CAAC,CAAC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,uBAAC,uBAAU,cACT,uBAAC,qBAAS,IAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAC,QAAQ,GAAG,GACrC,GACT,IACF,EACL,aAAa,CAAC,GAAG,CAAC,UAAU,CAAC,IAC1B,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,sBAAsB,GAAG,CAAC,EAAE,WAAW,EAAE,IAAI,EAAW,EAAE,EAAE,CAChE,WAAW,IAAI,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAC5B,iCAAK,SAAS,EAAC,kEAAkE,aAC9E,WAAW,CAAC,CAAC,CAAC,CACb,uBAAC,qBAAS,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,YAAY,YACvC,WAAW,GACF,CACb,CAAC,CAAC,CAAC,IAAI,EACP,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CACd,gCAAK,SAAS,EAAC,sDAAsD,YAClE,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CACrB,iCAAqB,SAAS,EAAC,0BAA0B,aACtD,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,uBAAC,SAAG,IAAC,KAAK,EAAE,IAAI,CAAC,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,EAC/C,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CACZ,uBAAC,WAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,YAAY,YAClC,IAAI,CAAC,IAAI,GACL,CACR,CAAC,CAAC,CAAC,IAAI,KANA,MAAM,CAAC,CAAC,CAAC,CAOb,CACP,CAAC,GACE,CACP,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC,CAAC,CAAC,IAAI,CAAC"}
@@ -1,11 +1,14 @@
1
1
  Object.defineProperty(exports, "__esModule", { value: true });
2
2
  exports.renderAtmCard = void 0;
3
3
  const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
+ const Foldable_1 = require("../../ui-kit/Foldable/Foldable");
5
+ const FoldableSection_1 = require("../../ui-kit/Foldable/FoldableSection");
4
6
  const Icon_1 = require("../../ui-kit/Icon/Icon");
5
7
  const Text_1 = require("../../ui-kit/Text/Text");
6
8
  const Badge_1 = require("./Badge");
7
9
  const CardCell_1 = require("./CardCell");
8
10
  const CardRow_1 = require("./CardRow");
11
+ const renderFoldButton_1 = require("./renderFoldButton");
9
12
  const renderAtmCard = ({ location, address, billAcceptorType, terminalType, billAcceptorEnable, atmCode = '', atmAccess = '', workTime, }, index) => {
10
13
  const additionalInfo = [
11
14
  {
@@ -23,7 +26,11 @@ const renderAtmCard = ({ location, address, billAcceptorType, terminalType, bill
23
26
  },
24
27
  { label: 'Регистрационный номер', value: atmCode },
25
28
  ];
26
- return ((0, jsx_runtime_1.jsxs)("div", { className: "bg-white col-span-12 p-3xl border-green border", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex justify-between", children: [(0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-h4", children: capitalizedFirstLetter(location) }), (0, jsx_runtime_1.jsx)(Badge_1.Badge, { color: "green", children: capitalizedFirstLetter(workTime) })] }), address ? ((0, jsx_runtime_1.jsxs)("div", { className: "flex pb-xl pt-xs gap-2xs", children: [(0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: "GeolocationIcon", width: "24", height: "24" }), (0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-l", children: address })] })) : null, (0, jsx_runtime_1.jsx)(CardRow_1.CardRow, { className: "flex-wrap", children: additionalInfo?.map(renderInfo) })] }, String(index)));
29
+ return ((0, jsx_runtime_1.jsxs)("div", { className: "bg-white col-span-12 p-3xl sm:border-green sm:border", children: [(0, jsx_runtime_1.jsxs)("div", { className: "sm:flex sm:justify-between", children: [(0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-h4", children: capitalizedFirstLetter(location) }), address ? ((0, jsx_runtime_1.jsxs)("div", { className: "flex pb-xl pt-xs gap-2xs", children: [(0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: "GeolocationIcon", width: "24", height: "24" }), (0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-l", children: address })] })) : null] }), (0, jsx_runtime_1.jsx)(Badge_1.Badge, { color: "green", children: capitalizedFirstLetter(workTime) })] }), (0, jsx_runtime_1.jsx)("div", { className: "hidden sm:block", children: (0, jsx_runtime_1.jsx)(CardRow_1.CardRow, { className: "flex-wrap", children: additionalInfo?.map(renderInfo) }) }), (0, jsx_runtime_1.jsx)(Foldable_1.Foldable, { className: "block sm:hidden", renderFoldableSection: ({ isUnfolded }) => {
30
+ return ((0, jsx_runtime_1.jsx)(FoldableSection_1.FoldableSection, { isUnfolded: isUnfolded, children: (0, jsx_runtime_1.jsx)(CardRow_1.CardRow, { className: "flex-wrap", children: additionalInfo?.map(renderInfo) }) }));
31
+ },
32
+ //** TODO: Remove styles with refactoring DefaultFoldButton*/
33
+ renderFoldButton: ({ isUnfolded, onToggle }) => (0, renderFoldButton_1.renderFoldButton)({ isUnfolded, onToggle }) })] }, String(index)));
27
34
  };
28
35
  exports.renderAtmCard = renderAtmCard;
29
36
  const renderInfo = (item, index) => ((0, jsx_runtime_1.jsx)(CardCell_1.CardCell, { ...item }, String(index)));
@@ -1 +1 @@
1
- {"version":3,"file":"renderAtmCard.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/renderAtmCard.tsx"],"names":[],"mappings":";;;AAAA,iDAA8C;AAC9C,iDAA8C;AAC9C,mCAAgC;AAChC,yCAAsC;AACtC,uCAAoC;AAG7B,MAAM,aAAa,GAAG,CAC3B,EACE,QAAQ,EACR,OAAO,EACP,gBAAgB,EAChB,YAAY,EACZ,kBAAkB,EAClB,OAAO,GAAG,EAAE,EACZ,SAAS,GAAG,EAAE,EACd,QAAQ,GACJ,EACN,KAAa,EACb,EAAE;IACF,MAAM,cAAc,GAAG;QACrB;YACE,KAAK,EAAE,YAAY;YACnB,KAAK,E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M,CAAC,KAAK,CAAC,CA4BjB,CACP,CAAC;AACJ,CAAC,CAAC;AA7DW,QAAA,aAAa,iBA6DxB;AAEF,MAAM,UAAU,GAAG,CAAC,IAA4B,EAAE,KAAa,EAAE,EAAE,CAAC,CAClE,uBAAC,mBAAQ,OAAyB,IAAI,IAAvB,MAAM,CAAC,KAAK,CAAC,CAAc,CAC3C,CAAC;AAEF,MAAM,sBAAsB,GAAG,CAAC,IAAa,EAAE,EAAE,CAC/C,IAAI,CAAC,CAAC,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC"}
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { type Currency } from './OfficesAtmsMapProps';
3
+ export declare const renderCurrency: ({ currency, buyExchangeRate, saleExchangeRate }: Currency, i: number) => JSX.Element;
@@ -0,0 +1,7 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.renderCurrency = void 0;
3
+ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
+ const CardCell_1 = require("./CardCell");
5
+ const renderCurrency = ({ currency, buyExchangeRate, saleExchangeRate }, i) => ((0, jsx_runtime_1.jsxs)("div", { className: "flex gap-lg h-full", children: [currency?.currency ? (0, jsx_runtime_1.jsx)(CardCell_1.CardCell, { label: "\u0412\u0430\u043B\u044E\u0442\u0430", value: currency.currency }) : null, buyExchangeRate ? (0, jsx_runtime_1.jsx)(CardCell_1.CardCell, { label: "\u041A\u0443\u043F\u0438\u0442\u044C", value: String(buyExchangeRate) }) : null, saleExchangeRate ? (0, jsx_runtime_1.jsx)(CardCell_1.CardCell, { label: "\u041F\u0440\u043E\u0434\u0430\u0442\u044C", value: String(saleExchangeRate) }) : null] }, String(i)));
6
+ exports.renderCurrency = renderCurrency;
7
+ //# sourceMappingURL=renderCurrency.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"renderCurrency.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/renderCurrency.tsx"],"names":[],"mappings":";;;AAAA,yCAAsC;AAG/B,MAAM,cAAc,GAAG,CAC5B,EAAE,QAAQ,EAAE,eAAe,EAAE,gBAAgB,EAAY,EACzD,CAAS,EACT,EAAE,CAAC,CACH,iCAAqB,SAAS,EAAC,oBAAoB,aAChD,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,uBAAC,mBAAQ,IAAC,KAAK,EAAC,sCAAQ,EAAC,KAAK,EAAE,QAAQ,CAAC,QAAQ,GAAI,CAAC,CAAC,CAAC,IAAI,EACjF,eAAe,CAAC,CAAC,CAAC,uBAAC,mBAAQ,IAAC,KAAK,EAAC,sCAAQ,EAAC,KAAK,EAAE,MAAM,CAAC,eAAe,CAAC,GAAI,CAAC,CAAC,CAAC,IAAI,EACpF,gBAAgB,CAAC,CAAC,CAAC,uBAAC,mBAAQ,IAAC,KAAK,EAAC,4CAAS,EAAC,KAAK,EAAE,MAAM,CAAC,gBAAgB,CAAC,GAAI,CAAC,CAAC,CAAC,IAAI,KAHhF,MAAM,CAAC,CAAC,CAAC,CAIb,CACP,CAAC;AATW,QAAA,cAAc,kBASzB"}
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { type WorkScheduleWeek } from './OfficesAtmsMapProps';
3
+ export declare const renderCurrentDaySchedule: (workScheduleWeek?: WorkScheduleWeek[]) => JSX.Element | null;
@@ -0,0 +1,16 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.renderCurrentDaySchedule = void 0;
3
+ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
+ const Badge_1 = require("./Badge");
5
+ const currentWeekDayIdx = new Date().getDay();
6
+ //TODO: Add logic time https://github.com/redneckz/wildless-cms-uni-blocks/pull/1549
7
+ const renderCurrentDaySchedule = (workScheduleWeek) => {
8
+ const [currentWeekDay] = workScheduleWeek?.slice(currentWeekDayIdx - 1) ?? [];
9
+ if (!currentWeekDay) {
10
+ return null;
11
+ }
12
+ const { lunchHour, status, workTime, hasLunch } = currentWeekDay;
13
+ return status ? ((0, jsx_runtime_1.jsxs)("div", { className: "flex gap-s items-start whitespace-nowrap", children: [workTime ? (0, jsx_runtime_1.jsx)(Badge_1.Badge, { color: "green", children: workTime }) : null, lunchHour && hasLunch ? (0, jsx_runtime_1.jsx)(Badge_1.Badge, { color: "yellow", children: `перерыв: ${lunchHour}` }) : null] })) : ((0, jsx_runtime_1.jsx)(Badge_1.Badge, { color: "red", children: "\u0412\u044B\u0445\u043E\u0434\u043D\u043E\u0439" }));
14
+ };
15
+ exports.renderCurrentDaySchedule = renderCurrentDaySchedule;
16
+ //# sourceMappingURL=renderCurrentDaySchedule.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"renderCurrentDaySchedule.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/renderCurrentDaySchedule.tsx"],"names":[],"mappings":";;;AAAA,mCAAgC;AAGhC,MAAM,iBAAiB,GAAG,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,CAAC;AAE9C,oFAAoF;AAC7E,MAAM,wBAAwB,GAAG,CAAC,gBAAqC,EAAE,EAAE;IAChF,MAAM,CAAC,cAAc,CAAC,GAAG,gBAAgB,EAAE,KAAK,CAAC,iBAAiB,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC;IAE9E,IAAI,CAAC,cAAc,EAAE;QACnB,OAAO,IAAI,CAAC;KACb;IAED,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,cAAc,CAAC;IAEjE,OAAO,MAAM,CAAC,CAAC,CAAC,CACd,iCAAK,SAAS,EAAC,0CAA0C,aACtD,QAAQ,CAAC,CAAC,CAAC,uBAAC,aAAK,IAAC,KAAK,EAAC,OAAO,YAAE,QAAQ,GAAS,CAAC,CAAC,CAAC,IAAI,EACzD,SAAS,IAAI,QAAQ,CAAC,CAAC,CAAC,uBAAC,aAAK,IAAC,KAAK,EAAC,QAAQ,YAAE,YAAY,SAAS,EAAE,GAAS,CAAC,CAAC,CAAC,IAAI,IACnF,CACP,CAAC,CAAC,CAAC,CACF,uBAAC,aAAK,IAAC,KAAK,EAAC,KAAK,iEAAiB,CACpC,CAAC;AACJ,CAAC,CAAC;AAjBW,QAAA,wBAAwB,4BAiBnC"}
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { type WorkScheduleWeek } from './OfficesAtmsMapProps';
3
+ export declare const renderDay: ({ title, status, workTime, lunchHour, hasLunch }: WorkScheduleWeek, index: number) => JSX.Element;
@@ -0,0 +1,13 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.renderDay = void 0;
3
+ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
+ const CardCell_1 = require("./CardCell");
5
+ const getSubTextLunch = ({ lunchHour, hasLunch = false, status = false }) => {
6
+ if (!status) {
7
+ return 'Не работает';
8
+ }
9
+ return lunchHour && hasLunch ? `Перерыв ${lunchHour}` : lunchHour;
10
+ };
11
+ const renderDay = ({ title, status, workTime, lunchHour, hasLunch }, index) => ((0, jsx_runtime_1.jsx)(CardCell_1.CardCell, { label: title, value: status && workTime ? workTime : '', subText: getSubTextLunch({ lunchHour, hasLunch, status }), subColor: !status || hasLunch ? 'text-error' : 'text-green-dark' }, String(index)));
12
+ exports.renderDay = renderDay;
13
+ //# sourceMappingURL=renderDay.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"renderDay.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/renderDay.tsx"],"names":[],"mappings":";;;AAAA,yCAAsC;AAGtC,MAAM,eAAe,GAAG,CAAC,EAAE,SAAS,EAAE,QAAQ,GAAG,KAAK,EAAE,MAAM,GAAG,KAAK,EAAoB,EAAE,EAAE;IAC5F,IAAI,CAAC,MAAM,EAAE;QACX,OAAO,aAAa,CAAC;KACtB;IAED,OAAO,SAAS,IAAI,QAAQ,CAAC,CAAC,CAAC,WAAW,SAAS,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;AACpE,CAAC,CAAC;AAEK,MAAM,SAAS,GAAG,CACvB,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAoB,EAClE,KAAa,EACb,EAAE,CAAC,CACH,uBAAC,mBAAQ,IAEP,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,MAAM,IAAI,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,EACzC,OAAO,EAAE,eAAe,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,EACzD,QAAQ,EAAE,CAAC,MAAM,IAAI,QAAQ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,iBAAiB,IAJ3D,MAAM,CAAC,KAAK,CAAC,CAKlB,CACH,CAAC;AAXW,QAAA,SAAS,aAWpB"}
@@ -12,6 +12,6 @@ const FILTRATION_LABELS = {
12
12
  workAllTime: 'Круглосуточно',
13
13
  billAcceptorEnable: 'Прием наличных',
14
14
  };
15
- const renderFiltrationForm = (filters, { field, reset }) => ((0, jsx_runtime_1.jsxs)("div", { className: "pb-2xl", children: [filters?.length ? ((0, jsx_runtime_1.jsx)("div", { className: "flex flex-wrap gap-3xl pb-2xl", children: filters.map((key) => ((0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { text: FILTRATION_LABELS[key], ...field(key) }, key))) })) : null, (0, jsx_runtime_1.jsx)(LinkButton_1.LinkButton, { version: "transparent", className: "text-secondary-text [&>*]:p-0", onClick: reset, text: "\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u0444\u0438\u043B\u044C\u0442\u0440", appendRight: (0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: "CloseIcon", width: "16", height: "16" }) })] }));
15
+ const renderFiltrationForm = (filters, { field, reset }) => ((0, jsx_runtime_1.jsxs)("div", { className: "pb-2xl", children: [filters?.length ? ((0, jsx_runtime_1.jsx)("div", { className: "flex flex-col sm:flex-row sm:flex-wrap gap-3xl pb-2xl", children: filters.map((key) => ((0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { text: FILTRATION_LABELS[key], ...field(key) }, key))) })) : null, (0, jsx_runtime_1.jsx)(LinkButton_1.LinkButton, { version: "transparent", className: "text-secondary-text [&>*]:p-0", onClick: reset, text: "\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u0444\u0438\u043B\u044C\u0442\u0440", appendRight: (0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: "CloseIcon", width: "16", height: "16" }) })] }));
16
16
  exports.renderFiltrationForm = renderFiltrationForm;
17
17
  //# sourceMappingURL=renderFiltrationForm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"renderFiltrationForm.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/renderFiltrationForm.tsx"],"names":[],"mappings":";;;AACA,6DAA0D;AAC1D,iDAA8C;AAC9C,mEAAgE;AAEhE,MAAM,iBAAiB,GAAG;IACxB,kBAAkB,EAAE,sCAAsC;IAC1D,eAAe,EAAE,qBAAqB;IACtC,gBAAgB,EAAE,WAAW;IAC7B,gBAAgB,EAAE,WAAW;IAC7B,WAAW,EAAE,eAAe;IAC5B,kBAAkB,EAAE,gBAAgB;CACrC,CAAC;AAEK,MAAM,oBAAoB,GAAG,CAClC,OAAiB,EACjB,EAAE,KAAK,EAAE,KAAK,EAA0D,EACxE,EAAE,CAAC,CACH,iCAAK,SAAS,EAAC,QAAQ,aACpB,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,CACjB,gCAAK,SAAS,EAAC,+BAA+B,YAC3C,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CACpB,uBAAC,mBAAQ,IAAW,IAAI,EAAE,iBAAiB,CAAC,GAAG,CAAC,KAAM,KAAK,CAAC,GAAG,CAAC,IAAjD,GAAG,CAAkD,CACrE,CAAC,GACE,CACP,CAAC,CAAC,CAAC,IAAI,EACR,uBAAC,uBAAU,IACT,OAAO,EAAC,aAAa,EACrB,SAAS,EAAC,+BAA+B,EACzC,OAAO,EAAE,KAAK,EACd,IAAI,EAAC,uFAAiB,EACtB,WAAW,EAAE,uBAAC,WAAI,IAAC,IAAI,EAAC,WAAW,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,GAAG,GAC7D,IACE,CACP,CAAC;AApBW,QAAA,oBAAoB,wBAoB/B"}
1
+ {"version":3,"file":"renderFiltrationForm.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/renderFiltrationForm.tsx"],"names":[],"mappings":";;;AACA,6DAA0D;AAC1D,iDAA8C;AAC9C,mEAAgE;AAEhE,MAAM,iBAAiB,GAAG;IACxB,kBAAkB,EAAE,sCAAsC;IAC1D,eAAe,EAAE,qBAAqB;IACtC,gBAAgB,EAAE,WAAW;IAC7B,gBAAgB,EAAE,WAAW;IAC7B,WAAW,EAAE,eAAe;IAC5B,kBAAkB,EAAE,gBAAgB;CACrC,CAAC;AAEK,MAAM,oBAAoB,GAAG,CAClC,OAAiB,EACjB,EAAE,KAAK,EAAE,KAAK,EAA0D,EACxE,EAAE,CAAC,CACH,iCAAK,SAAS,EAAC,QAAQ,aACpB,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,CACjB,gCAAK,SAAS,EAAC,uDAAuD,YACnE,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CACpB,uBAAC,mBAAQ,IAAW,IAAI,EAAE,iBAAiB,CAAC,GAAG,CAAC,KAAM,KAAK,CAAC,GAAG,CAAC,IAAjD,GAAG,CAAkD,CACrE,CAAC,GACE,CACP,CAAC,CAAC,CAAC,IAAI,EACR,uBAAC,uBAAU,IACT,OAAO,EAAC,aAAa,EACrB,SAAS,EAAC,+BAA+B,EACzC,OAAO,EAAE,KAAK,EACd,IAAI,EAAC,uFAAiB,EACtB,WAAW,EAAE,uBAAC,WAAI,IAAC,IAAI,EAAC,WAAW,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,GAAG,GAC7D,IACE,CACP,CAAC;AApBW,QAAA,oBAAoB,wBAoB/B"}
@@ -0,0 +1,3 @@
1
+ import { type VNode } from '../../model/VNode';
2
+ import { type FoldablePartProps } from '../../ui-kit/Foldable/FoldablePartProps';
3
+ export declare const renderFoldButton: ({ isUnfolded, onToggle }: FoldablePartProps) => VNode;
@@ -0,0 +1,9 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.renderFoldButton = void 0;
3
+ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
+ const Icon_1 = require("../../ui-kit/Icon/Icon");
5
+ const ICONS = ['ArrowDownIcon', 'ArrowUpIcon'];
6
+ const labels = ['Подробнее', 'Скрыть'];
7
+ const renderFoldButton = ({ isUnfolded, onToggle }) => ((0, jsx_runtime_1.jsxs)("button", { className: "w-full py-2xl cursor-pointer text-primary-main flex items-center border-b border-solid border-main-divider", onClick: onToggle, children: [(0, jsx_runtime_1.jsx)("div", { className: "pr-m", children: labels[Number(isUnfolded)] }), (0, jsx_runtime_1.jsx)(Icon_1.Icon, { className: "text-primary-text", name: ICONS[Number(isUnfolded)], width: "16", height: "16" })] }));
8
+ exports.renderFoldButton = renderFoldButton;
9
+ //# sourceMappingURL=renderFoldButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"renderFoldButton.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/renderFoldButton.tsx"],"names":[],"mappings":";;;AAGA,iDAA8C;AAE9C,MAAM,KAAK,GAAe,CAAC,eAAe,EAAE,aAAa,CAAC,CAAC;AAC3D,MAAM,MAAM,GAAG,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;AAEhC,MAAM,gBAAgB,GAAG,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAqB,EAAS,EAAE,CAAC,CACtF,oCACE,SAAS,EAAC,4GAA4G,EACtH,OAAO,EAAE,QAAQ,aAEjB,gCAAK,SAAS,EAAC,MAAM,YAAE,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,GAAO,EACxD,uBAAC,WAAI,IAAC,SAAS,EAAC,mBAAmB,EAAC,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,EAAE,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,GAAG,IACvF,CACV,CAAC;AARW,QAAA,gBAAgB,oBAQ3B"}
@@ -1,6 +1,3 @@
1
1
  /// <reference types="react" />
2
- import { type Branch, type Currency, type WorkScheduleWeek } from './OfficesAtmsMapProps';
2
+ import { type Branch } from './OfficesAtmsMapProps';
3
3
  export declare const renderOfficeCard: ({ name, address, phone, fax, phoneBusiness, phoneNatural, phoneCallCentre, phoneCurrencyControl, workSchedule, exchangeRate, }: Branch, index: number) => JSX.Element | null;
4
- export declare const renderCurrency: ({ currency, buyExchangeRate, saleExchangeRate }: Currency, i: number) => JSX.Element;
5
- export declare const renderCurrentDaySchedule: (workScheduleWeek?: WorkScheduleWeek[]) => JSX.Element | null;
6
- export declare const renderDay: ({ title, status, workTime, lunchHour, hasLunch }: WorkScheduleWeek, index: number) => JSX.Element;
@@ -1,46 +1,56 @@
1
1
  Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.renderDay = exports.renderCurrentDaySchedule = exports.renderCurrency = exports.renderOfficeCard = void 0;
2
+ exports.renderOfficeCard = void 0;
3
3
  const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
+ const Foldable_1 = require("../../ui-kit/Foldable/Foldable");
5
+ const FoldableSection_1 = require("../../ui-kit/Foldable/FoldableSection");
4
6
  const Icon_1 = require("../../ui-kit/Icon/Icon");
5
7
  const Text_1 = require("../../ui-kit/Text/Text");
6
- const Badge_1 = require("./Badge");
7
8
  const CardCell_1 = require("./CardCell");
8
9
  const CardRow_1 = require("./CardRow");
9
10
  const getScheduleDescription_1 = require("./getScheduleDescription");
10
11
  const getWorkScheduleWeek_1 = require("./getWorkScheduleWeek");
11
12
  const renderBusinessSchedule_1 = require("./renderBusinessSchedule");
12
- const currentWeekDayIdx = new Date().getDay();
13
+ const renderCurrency_1 = require("./renderCurrency");
14
+ const renderCurrentDaySchedule_1 = require("./renderCurrentDaySchedule");
15
+ const renderDay_1 = require("./renderDay");
16
+ const renderFoldButton_1 = require("./renderFoldButton");
13
17
  const renderOfficeCard = ({ name, address, phone, fax, phoneBusiness, phoneNatural, phoneCallCentre, phoneCurrencyControl, workSchedule, exchangeRate, }, index) => {
14
18
  if (!workSchedule) {
15
19
  return null;
16
20
  }
21
+ const workScheduleWeek = (0, getWorkScheduleWeek_1.getWorkScheduleWeek)(workSchedule);
22
+ return ((0, jsx_runtime_1.jsxs)("div", { className: "bg-white col-span-12 p-3xl sm:border-green sm:border", children: [(0, jsx_runtime_1.jsxs)("div", { className: "sm:flex sm:justify-between", children: [(0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-h4", children: name }), address ? ((0, jsx_runtime_1.jsxs)("div", { className: "flex pb-xl pt-xs gap-2xs", children: [(0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: "GeolocationIcon", width: "24", height: "24" }), (0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-l", children: address })] })) : null] }), (0, renderCurrentDaySchedule_1.renderCurrentDaySchedule)(workScheduleWeek)] }), (0, jsx_runtime_1.jsx)("div", { className: "hidden sm:block", children: renderCardContent({
23
+ phone,
24
+ fax,
25
+ phoneBusiness,
26
+ phoneNatural,
27
+ phoneCallCentre,
28
+ phoneCurrencyControl,
29
+ workSchedule,
30
+ exchangeRate,
31
+ }) }), (0, jsx_runtime_1.jsx)(Foldable_1.Foldable, { className: "block sm:hidden", renderFoldableSection: ({ isUnfolded }) => {
32
+ return ((0, jsx_runtime_1.jsx)(FoldableSection_1.FoldableSection, { isUnfolded: isUnfolded, children: renderCardContent({
33
+ phone,
34
+ fax,
35
+ phoneBusiness,
36
+ phoneNatural,
37
+ phoneCallCentre,
38
+ phoneCurrencyControl,
39
+ workSchedule,
40
+ exchangeRate,
41
+ }) }));
42
+ },
43
+ //** TODO: remove styles with refactoring DefaultFoldButton*/
44
+ renderFoldButton: ({ isUnfolded, onToggle }) => (0, renderFoldButton_1.renderFoldButton)({ isUnfolded, onToggle }) })] }, String(index)));
45
+ };
46
+ exports.renderOfficeCard = renderOfficeCard;
47
+ const renderCardContent = ({ phone, fax, phoneBusiness, phoneNatural, phoneCallCentre, phoneCurrencyControl, workSchedule, exchangeRate, }) => {
17
48
  const workScheduleWeek = (0, getWorkScheduleWeek_1.getWorkScheduleWeek)(workSchedule);
18
49
  const labelSchedule = workSchedule?.businessScheduleVisibleTag
19
50
  ? 'Для физических лиц'
20
51
  : 'Для физических и юридических лиц';
21
- return ((0, jsx_runtime_1.jsxs)("div", { className: "bg-white col-span-12 p-3xl border-green border", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex justify-between", children: [(0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-h4", children: name }), (0, exports.renderCurrentDaySchedule)(workScheduleWeek)] }), address ? ((0, jsx_runtime_1.jsxs)("div", { className: "flex pb-xl pt-xs gap-2xs", children: [(0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: "GeolocationIcon", width: "24", height: "24" }), (0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-l", children: address })] })) : null, (0, jsx_runtime_1.jsxs)(CardRow_1.CardRow, { className: "flex-wrap", children: [(0, jsx_runtime_1.jsx)(CardCell_1.CardCell, { label: "\u0424\u0430\u043A\u0441", value: fax }), (0, jsx_runtime_1.jsx)(CardCell_1.CardCell, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D \u0444\u0438\u043B\u0438\u0430\u043B\u0430", value: phone }), (0, jsx_runtime_1.jsx)(CardCell_1.CardCell, { label: "\u0414\u043B\u044F \u043E\u0431\u0440\u0430\u0449\u0435\u043D\u0438\u0439 \u044E\u0440\u0438\u0434\u0438\u0447\u0435\u0441\u043A\u0438\u0445 \u043B\u0438\u0446", value: phoneBusiness }), (0, jsx_runtime_1.jsx)(CardCell_1.CardCell, { label: "\u041E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u0435 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043A\u0438\u0445 \u043B\u0438\u0446", value: phoneNatural }), (0, jsx_runtime_1.jsx)(CardCell_1.CardCell, { label: "\u0414\u043B\u044F \u043A\u043E\u043D\u0441\u0443\u043B\u044C\u0442\u0430\u0446\u0438\u0439 \u043F\u043E \u0432\u0430\u043B\u044E\u0442\u043D\u043E\u043C\u0443 \u043A\u043E\u043D\u0442\u0440\u043E\u043B\u044E", value: phoneCurrencyControl }), (0, jsx_runtime_1.jsx)(CardCell_1.CardCell, { label: "\u041A\u043E\u043D\u0442\u0430\u043A\u0442-\u0446\u0435\u043D\u0442\u0440", value: phoneCallCentre })] }), workSchedule.isMatchesPattern ? ((0, jsx_runtime_1.jsx)(CardRow_1.CardRow, { children: (0, jsx_runtime_1.jsx)(CardCell_1.CardCell, { label: labelSchedule, labelSize: "text-l", className: "w-full max-w-none", children: (0, jsx_runtime_1.jsx)("div", { className: "flex flex-wrap gap-xs sm:justify-between pt-xs", children: workScheduleWeek?.map(exports.renderDay) }) }) })) : ((0, jsx_runtime_1.jsxs)(CardRow_1.CardRow, { children: [(0, jsx_runtime_1.jsx)(CardCell_1.CardCell, { label: labelSchedule, labelSize: "text-l", children: (0, jsx_runtime_1.jsx)("div", { className: "flex gap-1", children: workScheduleWeek?.map(renderBusinessSchedule_1.renderAlternativeDay) }) }), (0, getScheduleDescription_1.getScheduleDescription)(workScheduleWeek)] })), workSchedule?.businessScheduleVisibleTag
52
+ return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsxs)(CardRow_1.CardRow, { className: "flex-wrap", children: [(0, jsx_runtime_1.jsx)(CardCell_1.CardCell, { label: "\u0424\u0430\u043A\u0441", value: fax }), (0, jsx_runtime_1.jsx)(CardCell_1.CardCell, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D \u0444\u0438\u043B\u0438\u0430\u043B\u0430", value: phone }), (0, jsx_runtime_1.jsx)(CardCell_1.CardCell, { label: "\u0414\u043B\u044F \u043E\u0431\u0440\u0430\u0449\u0435\u043D\u0438\u0439 \u044E\u0440\u0438\u0434\u0438\u0447\u0435\u0441\u043A\u0438\u0445 \u043B\u0438\u0446", value: phoneBusiness }), (0, jsx_runtime_1.jsx)(CardCell_1.CardCell, { label: "\u041E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u0435 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043A\u0438\u0445 \u043B\u0438\u0446", value: phoneNatural }), (0, jsx_runtime_1.jsx)(CardCell_1.CardCell, { label: "\u0414\u043B\u044F \u043A\u043E\u043D\u0441\u0443\u043B\u044C\u0442\u0430\u0446\u0438\u0439 \u043F\u043E \u0432\u0430\u043B\u044E\u0442\u043D\u043E\u043C\u0443 \u043A\u043E\u043D\u0442\u0440\u043E\u043B\u044E", value: phoneCurrencyControl }), (0, jsx_runtime_1.jsx)(CardCell_1.CardCell, { label: "\u041A\u043E\u043D\u0442\u0430\u043A\u0442-\u0446\u0435\u043D\u0442\u0440", value: phoneCallCentre })] }), workSchedule?.isMatchesPattern ? ((0, jsx_runtime_1.jsx)(CardRow_1.CardRow, { children: (0, jsx_runtime_1.jsx)(CardCell_1.CardCell, { label: labelSchedule, labelSize: "text-l", className: "w-full max-w-none", children: (0, jsx_runtime_1.jsx)("div", { className: "flex flex-wrap gap-xs sm:justify-between pt-xs", children: workScheduleWeek?.map(renderDay_1.renderDay) }) }) })) : ((0, jsx_runtime_1.jsxs)(CardRow_1.CardRow, { children: [(0, jsx_runtime_1.jsx)(CardCell_1.CardCell, { label: labelSchedule, labelSize: "text-l", children: (0, jsx_runtime_1.jsx)("div", { className: "flex gap-1", children: workScheduleWeek?.map(renderBusinessSchedule_1.renderAlternativeDay) }) }), (0, getScheduleDescription_1.getScheduleDescription)(workScheduleWeek)] })), workSchedule?.businessScheduleVisibleTag
22
53
  ? (0, renderBusinessSchedule_1.renderBusinessSchedule)(workSchedule?.businessScheduleDescription)
23
- : null, exchangeRate?.currencies?.length ? ((0, jsx_runtime_1.jsx)(CardRow_1.CardRow, { className: "flex-wrap", children: exchangeRate?.currencies?.map(exports.renderCurrency) })) : null] }, String(index)));
24
- };
25
- exports.renderOfficeCard = renderOfficeCard;
26
- const renderCurrency = ({ currency, buyExchangeRate, saleExchangeRate }, i) => ((0, jsx_runtime_1.jsxs)("div", { className: "flex gap-lg h-full", children: [currency?.currency ? (0, jsx_runtime_1.jsx)(CardCell_1.CardCell, { label: "\u0412\u0430\u043B\u044E\u0442\u0430", value: currency.currency }) : null, buyExchangeRate ? (0, jsx_runtime_1.jsx)(CardCell_1.CardCell, { label: "\u041A\u0443\u043F\u0438\u0442\u044C", value: String(buyExchangeRate) }) : null, saleExchangeRate ? (0, jsx_runtime_1.jsx)(CardCell_1.CardCell, { label: "\u041F\u0440\u043E\u0434\u0430\u0442\u044C", value: String(saleExchangeRate) }) : null] }, String(i)));
27
- exports.renderCurrency = renderCurrency;
28
- //TODO: Add logic time https://github.com/redneckz/wildless-cms-uni-blocks/pull/1549
29
- const renderCurrentDaySchedule = (workScheduleWeek) => {
30
- const [currentWeekDay] = workScheduleWeek?.slice(currentWeekDayIdx - 1) ?? [];
31
- if (!currentWeekDay) {
32
- return null;
33
- }
34
- const { lunchHour, status, workTime, hasLunch } = currentWeekDay;
35
- return status ? ((0, jsx_runtime_1.jsxs)("div", { className: "flex gap-s items-start whitespace-nowrap", children: [workTime ? (0, jsx_runtime_1.jsx)(Badge_1.Badge, { color: "green", children: workTime }) : null, lunchHour && hasLunch ? (0, jsx_runtime_1.jsx)(Badge_1.Badge, { color: "yellow", children: `перерыв: ${lunchHour}` }) : null] })) : ((0, jsx_runtime_1.jsx)(Badge_1.Badge, { color: "red", children: "\u0412\u044B\u0445\u043E\u0434\u043D\u043E\u0439" }));
36
- };
37
- exports.renderCurrentDaySchedule = renderCurrentDaySchedule;
38
- const renderDay = ({ title, status, workTime, lunchHour, hasLunch }, index) => ((0, jsx_runtime_1.jsx)(CardCell_1.CardCell, { label: title, value: status && workTime ? workTime : '', subText: getSubTextLunch(lunchHour, hasLunch, status), subColor: !status || hasLunch ? 'text-error' : 'text-green-dark' }, String(index)));
39
- exports.renderDay = renderDay;
40
- const getSubTextLunch = (lunchHour, hasLunch = false, status = false) => {
41
- if (!status) {
42
- return 'Не работает';
43
- }
44
- return lunchHour && hasLunch ? `Перерыв ${lunchHour}` : lunchHour;
54
+ : null, exchangeRate?.currencies?.length ? ((0, jsx_runtime_1.jsx)(CardRow_1.CardRow, { className: "flex-wrap", children: exchangeRate?.currencies?.map(renderCurrency_1.renderCurrency) })) : null] }));
45
55
  };
46
56
  //# sourceMappingURL=renderOfficeCard.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"renderOfficeCard.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/renderOfficeCard.tsx"],"names":[],"mappings":";;;AAAA,iDAA8C;AAC9C,iDAA8C;AAC9C,mCAAgC;AAChC,yCAAsC;AACtC,uCAAoC;AACpC,qEAAkE;AAClE,+DAA4D;AAE5D,qEAAwF;AAExF,MAAM,iBAAiB,GAAG,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,CAAC;AAEvC,MAAM,gBAAgB,GAAG,CAC9B,EACE,IAAI,EACJ,OAAO,EACP,KAAK,EACL,GAAG,EACH,aAAa,EACb,YAAY,EACZ,eAAe,EACf,oBAAoB,EACpB,YAAY,EACZ,YAAY,GACL,EACT,KAAa,EACb,EAAE;IACF,IAAI,CAAC,YAAY,EAAE;QACjB,OAAO,IAAI,CAAC;KACb;IAED,MAAM,gBAAgB,GAAG,IAAA,yCAAmB,EAAC,YAAY,CAAC,CAAC;I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OAAO,EAAE,eAAe,CAAC,SAAS,EAAE,QAAQ,EAAE,MAAM,CAAC,EACrD,QAAQ,EAAE,CAAC,MAAM,IAAI,QAAQ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,iBAAiB,IAJ3D,MAAM,CAAC,KAAK,CAAC,CAKlB,CACH,CAAC;AAXW,QAAA,SAAS,aAWpB;AAEF,MAAM,eAAe,GAAG,CAAC,SAAkB,EAAE,QAAQ,GAAG,KAAK,EAAE,MAAM,GAAG,KAAK,EAAE,EAAE;IAC/E,IAAI,CAAC,MAAM,EAAE;QACX,OAAO,aAAa,CAAC;KACtB;IAED,OAAO,SAAS,IAAI,QAAQ,CAAC,CAAC,CAAC,WAAW,SAAS,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;AACpE,CAAC,CAAC"}
1
+ {"version":3,"file":"renderOfficeCard.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/renderOfficeCard.tsx"],"names":[],"mappings":";;;AAAA,6DAA0D;AAC1D,2EAAwE;AACxE,iDAA8C;AAC9C,iDAA8C;AAC9C,yCAAsC;AACtC,uCAAoC;AACpC,qEAAkE;AAClE,+DAA4D;AAE5D,qEAAwF;AACxF,qDAAkD;AAClD,yEAAsE;AACtE,2CAAwC;AACxC,yDAAsD;AAE/C,MAAM,gBAAgB,GAAG,CAC9B,EACE,IAAI,EACJ,OAAO,EACP,KAAK,EACL,GAAG,EACH,aAAa,EACb,YAAY,EACZ,eAAe,EACf,oBAAoB,EACpB,YAAY,EACZ,YAAY,GACL,EACT,KAAa,EACb,EAAE;IACF,IAAI,CAAC,YAAY,EAAE;QACjB,OAAO,IAAI,CAAC;KACb;IAED,MAAM,gBAAgB,GAAG,IAAA,yCAAmB,EAAC,YAAY,CAAC,CAAC;IAE3D,OAAO,CACL,iCAAyB,SAAS,EAAC,sDAAsD,aACvF,iCAAK,SAAS,EAAC,4BAA4B,aACzC,4CACE,uBAAC,WAAI,IAAC,IAAI,EAAC,SAAS,YAA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