pds-dev-kit-web 2.0.8 → 2.0.9-alpha.0

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 (151) hide show
  1. package/dist/index.d.ts +2 -2
  2. package/dist/src/sub/DynamicLayout/DynamicLayout.d.ts +1 -1
  3. package/dist/src/sub/DynamicLayout/DynamicLayout.js +10 -2
  4. package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/EditModeSectionMatcher.js +36 -2
  5. package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/components/GlobalFixedOverlay/GlobalFixedOverlay.d.ts +7 -0
  6. package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/components/GlobalFixedOverlay/GlobalFixedOverlay.js +47 -0
  7. package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/components/GlobalFixedOverlay/MembershipSectionGlobalFixedOverlay/MembershipSectionGlobalFixedOverlay.d.ts +8 -0
  8. package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/components/GlobalFixedOverlay/MembershipSectionGlobalFixedOverlay/MembershipSectionGlobalFixedOverlay.js +80 -0
  9. package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/components/GlobalFixedOverlay/MembershipSectionGlobalFixedOverlay/MembershipSectionGlobalFixedOverlayMembershipList.d.ts +12 -0
  10. package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/components/GlobalFixedOverlay/MembershipSectionGlobalFixedOverlay/MembershipSectionGlobalFixedOverlayMembershipList.js +27 -0
  11. package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/components/GlobalFixedOverlay/MembershipSectionGlobalFixedOverlay/MembershipSectionGlobalFixedOverlayPlanSheet.d.ts +8 -0
  12. package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/components/GlobalFixedOverlay/MembershipSectionGlobalFixedOverlay/MembershipSectionGlobalFixedOverlayPlanSheet.js +39 -0
  13. package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/components/GlobalFixedOverlay/MembershipSectionGlobalFixedOverlay/index.d.ts +1 -0
  14. package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/components/GlobalFixedOverlay/MembershipSectionGlobalFixedOverlay/index.js +8 -0
  15. package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/components/GlobalFixedOverlay/index.d.ts +1 -0
  16. package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/components/GlobalFixedOverlay/index.js +8 -0
  17. package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/components/index.d.ts +1 -0
  18. package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/components/index.js +5 -0
  19. package/dist/src/sub/DynamicLayout/components/SectionMatcher/SectionMatcher.js +2 -0
  20. package/dist/src/sub/DynamicLayout/mock_samplePage.d.ts +3 -1
  21. package/dist/src/sub/DynamicLayout/mock_samplePage.js +219 -11
  22. package/dist/src/sub/DynamicLayout/mock_storybook.d.ts +6 -0
  23. package/dist/src/sub/DynamicLayout/mock_storybook.js +1523 -0
  24. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/MembershipSection.d.ts +4 -0
  25. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/MembershipSection.js +63 -0
  26. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/index.d.ts +1 -0
  27. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/index.js +8 -0
  28. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/TemplateA.d.ts +7 -0
  29. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/TemplateA.js +16 -0
  30. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/D_TemplateA.d.ts +7 -0
  31. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/D_TemplateA.js +35 -0
  32. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/MembershipBenefitInfo.d.ts +8 -0
  33. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/MembershipBenefitInfo.js +10 -0
  34. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/MembershipPlanSheet.d.ts +10 -0
  35. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/MembershipPlanSheet.js +41 -0
  36. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/MembershipSheet.d.ts +8 -0
  37. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/MembershipSheet.js +92 -0
  38. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/NarrowMembershipListView.d.ts +11 -0
  39. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/NarrowMembershipListView.js +137 -0
  40. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/SectionContents.d.ts +3 -0
  41. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/SectionContents.js +37 -0
  42. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/WideMembershipListView.d.ts +11 -0
  43. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/WideMembershipListView.js +91 -0
  44. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/index.d.ts +1 -0
  45. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/index.js +8 -0
  46. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/index.d.ts +1 -0
  47. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/index.js +8 -0
  48. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/mobile/M_TemplateA.d.ts +7 -0
  49. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/mobile/M_TemplateA.js +27 -0
  50. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/mobile/components/MembershipBenefitInfo.d.ts +8 -0
  51. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/mobile/components/MembershipBenefitInfo.js +11 -0
  52. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/mobile/components/MembershipContents.d.ts +7 -0
  53. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/mobile/components/MembershipContents.js +26 -0
  54. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/mobile/components/MembershipSectionSheet.d.ts +7 -0
  55. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/mobile/components/MembershipSectionSheet.js +51 -0
  56. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/mobile/components/SectionContents.d.ts +3 -0
  57. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/mobile/components/SectionContents.js +33 -0
  58. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/mobile/index.d.ts +1 -0
  59. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/mobile/index.js +8 -0
  60. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/TemplateB.d.ts +7 -0
  61. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/TemplateB.js +16 -0
  62. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/D_TemplateB.d.ts +7 -0
  63. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/D_TemplateB.js +35 -0
  64. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/components/MembershipBenefitInfo.d.ts +8 -0
  65. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/components/MembershipBenefitInfo.js +9 -0
  66. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/components/MembershipCard.d.ts +7 -0
  67. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/components/MembershipCard.js +83 -0
  68. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/components/MembershipPlanSheet.d.ts +10 -0
  69. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/components/MembershipPlanSheet.js +41 -0
  70. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/components/MembershipSheet.d.ts +8 -0
  71. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/components/MembershipSheet.js +78 -0
  72. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/components/SectionContents.d.ts +3 -0
  73. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/components/SectionContents.js +37 -0
  74. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/index.d.ts +1 -0
  75. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/index.js +8 -0
  76. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/index.d.ts +1 -0
  77. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/index.js +8 -0
  78. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/mobile/M_TemplateB.d.ts +7 -0
  79. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/mobile/M_TemplateB.js +14 -0
  80. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/mobile/components/MembershipBenefitInfo.d.ts +8 -0
  81. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/mobile/components/MembershipBenefitInfo.js +11 -0
  82. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/mobile/components/MembershipContents.d.ts +7 -0
  83. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/mobile/components/MembershipContents.js +26 -0
  84. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/mobile/components/MembershipSectionSheet.d.ts +7 -0
  85. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/mobile/components/MembershipSectionSheet.js +66 -0
  86. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/mobile/components/SectionContents.d.ts +3 -0
  87. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/mobile/components/SectionContents.js +40 -0
  88. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/mobile/index.d.ts +1 -0
  89. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/mobile/index.js +8 -0
  90. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/index.d.ts +2 -0
  91. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/index.js +7 -0
  92. package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/MembershipSection.d.ts +4 -0
  93. package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/MembershipSection.js +57 -0
  94. package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/index.d.ts +1 -0
  95. package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/index.js +8 -0
  96. package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateA/TemplateA.d.ts +6 -0
  97. package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateA/TemplateA.js +16 -0
  98. package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateA/desktop/D_TemplateA.d.ts +6 -0
  99. package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateA/desktop/D_TemplateA.js +22 -0
  100. package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateA/desktop/components/SectionContents.d.ts +3 -0
  101. package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateA/desktop/components/SectionContents.js +37 -0
  102. package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateA/desktop/index.d.ts +1 -0
  103. package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateA/desktop/index.js +8 -0
  104. package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateA/index.d.ts +1 -0
  105. package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateA/index.js +8 -0
  106. package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateA/mobile/M_TemplateA.d.ts +6 -0
  107. package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateA/mobile/M_TemplateA.js +25 -0
  108. package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateA/mobile/components/SectionContents.d.ts +3 -0
  109. package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateA/mobile/components/SectionContents.js +33 -0
  110. package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateA/mobile/index.d.ts +1 -0
  111. package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateA/mobile/index.js +8 -0
  112. package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateB/TemplateB.d.ts +6 -0
  113. package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateB/TemplateB.js +16 -0
  114. package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateB/desktop/D_TemplateB.d.ts +6 -0
  115. package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateB/desktop/D_TemplateB.js +22 -0
  116. package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateB/desktop/components/SectionContents.d.ts +3 -0
  117. package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateB/desktop/components/SectionContents.js +37 -0
  118. package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateB/desktop/index.d.ts +1 -0
  119. package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateB/desktop/index.js +8 -0
  120. package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateB/index.d.ts +1 -0
  121. package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateB/index.js +8 -0
  122. package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateB/mobile/M_TemplateB.d.ts +6 -0
  123. package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateB/mobile/M_TemplateB.js +12 -0
  124. package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateB/mobile/components/SectionContents.d.ts +3 -0
  125. package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateB/mobile/components/SectionContents.js +40 -0
  126. package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateB/mobile/index.d.ts +1 -0
  127. package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateB/mobile/index.js +8 -0
  128. package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/index.d.ts +2 -0
  129. package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/index.js +7 -0
  130. package/dist/src/sub/DynamicLayout/sections/MembershipSection/components/desktop/MembershipSectionItem.d.ts +40 -0
  131. package/dist/src/sub/DynamicLayout/sections/MembershipSection/components/desktop/MembershipSectionItem.js +244 -0
  132. package/dist/src/sub/DynamicLayout/sections/MembershipSection/components/desktop/index.d.ts +1 -0
  133. package/dist/src/sub/DynamicLayout/sections/MembershipSection/components/desktop/index.js +8 -0
  134. package/dist/src/sub/DynamicLayout/sections/MembershipSection/components/index.d.ts +2 -0
  135. package/dist/src/sub/DynamicLayout/sections/MembershipSection/components/index.js +7 -0
  136. package/dist/src/sub/DynamicLayout/sections/MembershipSection/components/mobile/MembershipSectionItem.d.ts +42 -0
  137. package/dist/src/sub/DynamicLayout/sections/MembershipSection/components/mobile/MembershipSectionItem.js +264 -0
  138. package/dist/src/sub/DynamicLayout/sections/MembershipSection/components/mobile/index.d.ts +1 -0
  139. package/dist/src/sub/DynamicLayout/sections/MembershipSection/components/mobile/index.js +8 -0
  140. package/dist/src/sub/DynamicLayout/sections/MembershipSection/constants.d.ts +5 -0
  141. package/dist/src/sub/DynamicLayout/sections/MembershipSection/constants.js +29 -0
  142. package/dist/src/sub/DynamicLayout/sections/MembershipSection/index.d.ts +3 -0
  143. package/dist/src/sub/DynamicLayout/sections/MembershipSection/index.js +7 -0
  144. package/dist/src/sub/DynamicLayout/sections/MembershipSection/type.d.ts +5 -0
  145. package/dist/src/sub/DynamicLayout/sections/MembershipSection/type.js +2 -0
  146. package/dist/src/sub/DynamicLayout/sections/index.d.ts +2 -0
  147. package/dist/src/sub/DynamicLayout/sections/index.js +5 -1
  148. package/dist/src/sub/DynamicLayout/types.d.ts +84 -4
  149. package/package.json +1 -1
  150. package/release-note.md +5 -5
  151. package/webhook/node_modules/esrecurse/.babelrc +3 -0
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import type { ISection } from '../../../../DynamicLayout/types';
3
+ declare function EditTypeMembershipSection({ ...props }: ISection): JSX.Element;
4
+ export default EditTypeMembershipSection;
@@ -0,0 +1,63 @@
1
+ "use strict";
2
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
+ return cooked;
5
+ };
6
+ var __assign = (this && this.__assign) || function () {
7
+ __assign = Object.assign || function(t) {
8
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
9
+ s = arguments[i];
10
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
11
+ t[p] = s[p];
12
+ }
13
+ return t;
14
+ };
15
+ return __assign.apply(this, arguments);
16
+ };
17
+ var __rest = (this && this.__rest) || function (s, e) {
18
+ var t = {};
19
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
20
+ t[p] = s[p];
21
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
22
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
23
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
24
+ t[p[i]] = s[p[i]];
25
+ }
26
+ return t;
27
+ };
28
+ var __importDefault = (this && this.__importDefault) || function (mod) {
29
+ return (mod && mod.__esModule) ? mod : { "default": mod };
30
+ };
31
+ Object.defineProperty(exports, "__esModule", { value: true });
32
+ var jsx_runtime_1 = require("react/jsx-runtime");
33
+ var react_1 = require("react");
34
+ var components_1 = require("../../../../DynamicLayout/components");
35
+ var dynamicLayoutContext_1 = require("../../../../DynamicLayout/dynamicLayoutContext");
36
+ var styled_components_1 = __importDefault(require("styled-components"));
37
+ var templates_1 = require("./templates");
38
+ function EditTypeMembershipSection(_a) {
39
+ var props = __rest(_a, []);
40
+ var template = props.template;
41
+ var programmedSectionPreviewData = (0, react_1.useContext)(dynamicLayoutContext_1.dynamicLayoutContext).programmedSectionPreviewData;
42
+ if (!programmedSectionPreviewData) {
43
+ return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}, void 0);
44
+ }
45
+ return ((0, jsx_runtime_1.jsx)(S_SectionWrapper, __assign({ "x-dlayout-section-type": "Membership" }, { children: (0, jsx_runtime_1.jsx)(components_1.Section, __assign({}, props, { children: (0, jsx_runtime_1.jsx)(TemplateMather, { styleTemplate: template, programmedSectionPreviewData: programmedSectionPreviewData }, void 0) }), void 0) }), void 0));
46
+ }
47
+ var S_SectionWrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n"], ["\n display: flex;\n"])));
48
+ function TemplateMather(_a) {
49
+ var styleTemplate = _a.styleTemplate, programmedSectionPreviewData = _a.programmedSectionPreviewData;
50
+ if (programmedSectionPreviewData.MEMBERSHIP_DISPLAY) {
51
+ switch (styleTemplate) {
52
+ case 'PRG_MEMBERSHIP_DISPLAY_A':
53
+ return (0, jsx_runtime_1.jsx)(templates_1.TemplateA, { membershipDisplay: programmedSectionPreviewData.MEMBERSHIP_DISPLAY }, void 0);
54
+ case 'PRG_MEMBERSHIP_DISPLAY_B':
55
+ return (0, jsx_runtime_1.jsx)(templates_1.TemplateB, { membershipDisplay: programmedSectionPreviewData.MEMBERSHIP_DISPLAY }, void 0);
56
+ default:
57
+ return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}, void 0);
58
+ }
59
+ }
60
+ return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}, void 0);
61
+ }
62
+ exports.default = EditTypeMembershipSection;
63
+ var templateObject_1;
@@ -0,0 +1 @@
1
+ export { default as EditTypeMembershipSection } from './MembershipSection';
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.EditTypeMembershipSection = void 0;
7
+ var MembershipSection_1 = require("./MembershipSection");
8
+ Object.defineProperty(exports, "EditTypeMembershipSection", { enumerable: true, get: function () { return __importDefault(MembershipSection_1).default; } });
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import type { IMembershipDisplay } from '../../../../../../DynamicLayout/types';
3
+ declare type Props = {
4
+ membershipDisplay: IMembershipDisplay;
5
+ };
6
+ declare function TemplateA({ membershipDisplay }: Props): JSX.Element;
7
+ export default TemplateA;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var jsx_runtime_1 = require("react/jsx-runtime");
4
+ var react_1 = require("react");
5
+ var dynamicLayoutContext_1 = require("../../../../../../DynamicLayout/dynamicLayoutContext");
6
+ var desktop_1 = require("./desktop");
7
+ var mobile_1 = require("./mobile");
8
+ function TemplateA(_a) {
9
+ var membershipDisplay = _a.membershipDisplay;
10
+ var device = (0, react_1.useContext)(dynamicLayoutContext_1.dynamicLayoutContext).device;
11
+ return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: {
12
+ MOBILE: (0, jsx_runtime_1.jsx)(mobile_1.M_TemplateA, { membershipDisplay: membershipDisplay }, void 0),
13
+ DESKTOP: (0, jsx_runtime_1.jsx)(desktop_1.D_TemplateA, { membershipDisplay: membershipDisplay }, void 0)
14
+ }[device] }, void 0));
15
+ }
16
+ exports.default = TemplateA;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import type { IMembershipDisplay } from '../../../../../../../DynamicLayout/types';
3
+ declare type Props = {
4
+ membershipDisplay: IMembershipDisplay;
5
+ };
6
+ declare function TemplateA({ membershipDisplay }: Props): JSX.Element;
7
+ export default TemplateA;
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
+ return cooked;
5
+ };
6
+ var __importDefault = (this && this.__importDefault) || function (mod) {
7
+ return (mod && mod.__esModule) ? mod : { "default": mod };
8
+ };
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ var jsx_runtime_1 = require("react/jsx-runtime");
11
+ var react_1 = require("react");
12
+ var styled_components_1 = __importDefault(require("styled-components"));
13
+ var MembershipSheet_1 = __importDefault(require("./components/MembershipSheet"));
14
+ var SectionContents_1 = __importDefault(require("./components/SectionContents"));
15
+ function TemplateA(_a) {
16
+ var membershipDisplay = _a.membershipDisplay;
17
+ var _b = (0, react_1.useState)(window.innerWidth > 1300), isWideView = _b[0], setIsWideView = _b[1];
18
+ var orderedMemberships = membershipDisplay.connectedMemberships.sort(function (a, b) { return a.order - b.order; }) || [];
19
+ var handleSize = function () {
20
+ setIsWideView(window.innerWidth > 1300);
21
+ };
22
+ (0, react_1.useEffect)(function () {
23
+ window.addEventListener('resize', handleSize);
24
+ return function () {
25
+ window.removeEventListener('resize', handleSize);
26
+ };
27
+ }, []);
28
+ return ((0, jsx_runtime_1.jsxs)(S_MembershipSection, { children: [(0, jsx_runtime_1.jsx)(SectionContents_1.default, {}, void 0), orderedMemberships.length > 0 && ((0, jsx_runtime_1.jsx)(MembershipSheet_1.default, { connectedMemberships: orderedMemberships, isWideView: isWideView }, void 0))] }, void 0));
29
+ }
30
+ var S_MembershipSection = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n --max-viewport-width: 1920;\n --max-viewport-width-px: 1920px;\n --max-width: 1500;\n --max-width-px: 1500px;\n --min-viewport-width: 1200;\n --min-viewport-width-px: 1200px;\n --min-width: 1000;\n --min-width-px: 1000px;\n margin: ", " auto;\n max-width: var(--max-width-px);\n min-width: var(--min-width-px);\n width: calc(\n (100% - var(--min-viewport-width-px)) * (var(--max-width) - var(--min-width)) /\n (var(--max-viewport-width) - var(--min-viewport-width)) + var(--min-width-px)\n );\n"], ["\n --max-viewport-width: 1920;\n --max-viewport-width-px: 1920px;\n --max-width: 1500;\n --max-width-px: 1500px;\n --min-viewport-width: 1200;\n --min-viewport-width-px: 1200px;\n --min-width: 1000;\n --min-width-px: 1000px;\n margin: ", " auto;\n max-width: var(--max-width-px);\n min-width: var(--min-width-px);\n width: calc(\n (100% - var(--min-viewport-width-px)) * (var(--max-width) - var(--min-width)) /\n (var(--max-viewport-width) - var(--min-viewport-width)) + var(--min-width-px)\n );\n"])), function (_a) {
31
+ var theme = _a.theme;
32
+ return theme.spacing.spacingH;
33
+ });
34
+ exports.default = TemplateA;
35
+ var templateObject_1;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import type { IMembershipBenefitInfo } from '../../../../../../../../DynamicLayout/types';
3
+ declare type Props = {
4
+ membershipBenefitInfo: IMembershipBenefitInfo;
5
+ itemToneTextLabelColor: string;
6
+ };
7
+ declare function MembershipBenefitInfo({ membershipBenefitInfo, itemToneTextLabelColor }: Props): JSX.Element;
8
+ export default MembershipBenefitInfo;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var jsx_runtime_1 = require("react/jsx-runtime");
4
+ var components_1 = require("../../../../../../../../DynamicLayout/components");
5
+ var components_2 = require("../../../../../../../../DynamicLayout/sections/MembershipSection/components");
6
+ function MembershipBenefitInfo(_a) {
7
+ var membershipBenefitInfo = _a.membershipBenefitInfo, itemToneTextLabelColor = _a.itemToneTextLabelColor;
8
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(components_1.Spacing, { size: "spacing_e" }, void 0), membershipBenefitInfo.benefitAlpha && ((0, jsx_runtime_1.jsx)(components_2.D_MembershipSectionItem.Description, { text: membershipBenefitInfo.benefitAlpha, styleTheme: "leadParaRegular", color: itemToneTextLabelColor, textAlign: "left", wordBreak: "break_all", bulletPointMode: "use" }, void 0)), membershipBenefitInfo.benefitBravo && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(components_1.Spacing, { size: "spacing_b" }, void 0), (0, jsx_runtime_1.jsx)(components_2.D_MembershipSectionItem.Description, { text: membershipBenefitInfo.benefitBravo, styleTheme: "leadParaRegular", color: itemToneTextLabelColor, textAlign: "left", wordBreak: "break_all", bulletPointMode: "use" }, void 0)] }, void 0)), membershipBenefitInfo.benefitCharlie && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(components_1.Spacing, { size: "spacing_b" }, void 0), (0, jsx_runtime_1.jsx)(components_2.D_MembershipSectionItem.Description, { text: membershipBenefitInfo.benefitCharlie, styleTheme: "leadParaRegular", color: itemToneTextLabelColor, textAlign: "left", wordBreak: "break_all", bulletPointMode: "use" }, void 0)] }, void 0)), membershipBenefitInfo.benefitDelta && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(components_1.Spacing, { size: "spacing_b" }, void 0), (0, jsx_runtime_1.jsx)(components_2.D_MembershipSectionItem.Description, { text: membershipBenefitInfo.benefitDelta, styleTheme: "leadParaRegular", color: itemToneTextLabelColor, textAlign: "left", wordBreak: "break_all", bulletPointMode: "use" }, void 0)] }, void 0)), membershipBenefitInfo.benefitEcho && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(components_1.Spacing, { size: "spacing_b" }, void 0), (0, jsx_runtime_1.jsx)(components_2.D_MembershipSectionItem.Description, { text: membershipBenefitInfo.benefitEcho, styleTheme: "leadParaRegular", color: itemToneTextLabelColor, textAlign: "left", wordBreak: "break_all", bulletPointMode: "use" }, void 0)] }, void 0))] }, void 0));
9
+ }
10
+ exports.default = MembershipBenefitInfo;
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import type { IConnectedSubscriptionProducts, TypeOfItemToneType, TypeOfProgrammedItemActionButtonTextType } from '../../../../../../../../DynamicLayout/types';
3
+ declare type Props = {
4
+ connectedSubscriptionProducts: IConnectedSubscriptionProducts;
5
+ itemToneType: TypeOfItemToneType;
6
+ itemHighlightingColorInHex: string;
7
+ programmedItemActionButtonTextType: TypeOfProgrammedItemActionButtonTextType;
8
+ };
9
+ declare function MembershipPlanSheet({ connectedSubscriptionProducts, itemToneType, itemHighlightingColorInHex, programmedItemActionButtonTextType }: Props): JSX.Element;
10
+ export default MembershipPlanSheet;
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
+ return cooked;
5
+ };
6
+ var __assign = (this && this.__assign) || function () {
7
+ __assign = Object.assign || function(t) {
8
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
9
+ s = arguments[i];
10
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
11
+ t[p] = s[p];
12
+ }
13
+ return t;
14
+ };
15
+ return __assign.apply(this, arguments);
16
+ };
17
+ var __importDefault = (this && this.__importDefault) || function (mod) {
18
+ return (mod && mod.__esModule) ? mod : { "default": mod };
19
+ };
20
+ Object.defineProperty(exports, "__esModule", { value: true });
21
+ var jsx_runtime_1 = require("react/jsx-runtime");
22
+ var react_i18next_1 = require("react-i18next");
23
+ var panels_1 = require("../../../../../../../../../desktop/panels");
24
+ var components_1 = require("../../../../../../../../../hybrid/components");
25
+ var components_2 = require("../../../../../../../../DynamicLayout/sections/MembershipSection/components");
26
+ var constants_1 = require("../../../../../../../../DynamicLayout/sections/MembershipSection/constants");
27
+ var styled_components_1 = __importDefault(require("styled-components"));
28
+ function MembershipPlanSheet(_a) {
29
+ var connectedSubscriptionProducts = _a.connectedSubscriptionProducts, itemToneType = _a.itemToneType, itemHighlightingColorInHex = _a.itemHighlightingColorInHex, programmedItemActionButtonTextType = _a.programmedItemActionButtonTextType;
30
+ var t = (0, react_i18next_1.useTranslation)('translation').t;
31
+ var subscriptionProduct = connectedSubscriptionProducts.subscriptionProduct;
32
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(components_1.Spacing, { size: "spacing_g" }, void 0), (0, jsx_runtime_1.jsxs)(panels_1.ContentSheet, __assign({ width: "100%", height: "auto", shapeType: "round", paddingBottom: "spacing_d", overrideCSS: {
33
+ display: 'flex',
34
+ cursor: 'pointer',
35
+ backgroundColor: constants_1.MEMBERSHIP_SECTION_TONE_COLOR[itemToneType].membershipPlanSheetBackgroundColor
36
+ } }, { children: [(0, jsx_runtime_1.jsxs)(S_MembershipInfoBox, { children: [(0, jsx_runtime_1.jsxs)(S_MembershipInfoTitle, { children: [subscriptionProduct.type && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(components_2.D_MembershipSectionItem.Title, { text: subscriptionProduct.type, styleTheme: "body2Regular", color: constants_1.MEMBERSHIP_SECTION_TONE_COLOR[itemToneType].membershipSheetTextLabelColor, textAlign: "left", lineLimit: 2, wordBreak: "break_all", ellipsisMode: "use" }, void 0), (0, jsx_runtime_1.jsx)(components_1.Spacing, { size: "spacing_b", spacingType: "width" }, void 0)] }, void 0)), subscriptionProduct.title && ((0, jsx_runtime_1.jsx)(components_2.D_MembershipSectionItem.Description, { text: subscriptionProduct.title, styleTheme: "body2Bold", color: constants_1.MEMBERSHIP_SECTION_TONE_COLOR[itemToneType].membershipSheetTextLabelColor, wordBreak: "break_all", textAlign: "left" }, void 0))] }, void 0), (0, jsx_runtime_1.jsx)(components_1.Spacing, { size: "spacing_d" }, void 0), (0, jsx_runtime_1.jsx)(components_2.D_MembershipSectionItem.Title, { text: t('str_5339', { price: subscriptionProduct.fee }), customFontSize: "32px", customFontWeight: "bold", wordBreak: "break_all", color: itemHighlightingColorInHex }, void 0)] }, void 0), (0, jsx_runtime_1.jsx)(components_1.Spacing, { size: "spacing_d", spacingType: "width" }, void 0), (0, jsx_runtime_1.jsx)(components_2.D_MembershipSectionItem.ColorOverrideIcon, { iconName: "ic_arrow_down", iconColor: constants_1.MEMBERSHIP_SECTION_TONE_COLOR[itemToneType].membershipSheetTextLabelColor }, void 0)] }), void 0), (0, jsx_runtime_1.jsx)(components_2.D_MembershipSectionItem.XlargeMainButton, { buttonBackgroundColor: itemHighlightingColorInHex, buttonTextColor: "#FDFDFDFF", programmedItemActionButtonTextType: programmedItemActionButtonTextType }, void 0)] }, void 0));
37
+ }
38
+ var S_MembershipInfoTitle = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n"], ["\n display: flex;\n"])));
39
+ var S_MembershipInfoBox = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n width: 100%;\n"], ["\n display: flex;\n flex-direction: column;\n width: 100%;\n"])));
40
+ exports.default = MembershipPlanSheet;
41
+ var templateObject_1, templateObject_2;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import type { IConnectedMembership } from '../../../../../../../../DynamicLayout/types';
3
+ declare type Props = {
4
+ connectedMemberships: IConnectedMembership[];
5
+ isWideView: boolean;
6
+ };
7
+ declare function MembershipSheet({ connectedMemberships, isWideView }: Props): JSX.Element;
8
+ export default MembershipSheet;
@@ -0,0 +1,92 @@
1
+ "use strict";
2
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
+ return cooked;
5
+ };
6
+ var __assign = (this && this.__assign) || function () {
7
+ __assign = Object.assign || function(t) {
8
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
9
+ s = arguments[i];
10
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
11
+ t[p] = s[p];
12
+ }
13
+ return t;
14
+ };
15
+ return __assign.apply(this, arguments);
16
+ };
17
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
18
+ if (k2 === undefined) k2 = k;
19
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
20
+ }) : (function(o, m, k, k2) {
21
+ if (k2 === undefined) k2 = k;
22
+ o[k2] = m[k];
23
+ }));
24
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
25
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
26
+ }) : function(o, v) {
27
+ o["default"] = v;
28
+ });
29
+ var __importStar = (this && this.__importStar) || function (mod) {
30
+ if (mod && mod.__esModule) return mod;
31
+ var result = {};
32
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
+ __setModuleDefault(result, mod);
34
+ return result;
35
+ };
36
+ var __importDefault = (this && this.__importDefault) || function (mod) {
37
+ return (mod && mod.__esModule) ? mod : { "default": mod };
38
+ };
39
+ Object.defineProperty(exports, "__esModule", { value: true });
40
+ var jsx_runtime_1 = require("react/jsx-runtime");
41
+ var react_1 = require("react");
42
+ var panels_1 = require("../../../../../../../../../desktop/panels");
43
+ var Section_1 = require("../../../../../../../../DynamicLayout/components/Section");
44
+ var components_1 = require("../../../../../../../../DynamicLayout/sections/MembershipSection/components");
45
+ var constants_1 = require("../../../../../../../../DynamicLayout/sections/MembershipSection/constants");
46
+ var styled_components_1 = __importStar(require("styled-components"));
47
+ var MembershipBenefitInfo_1 = __importDefault(require("./MembershipBenefitInfo"));
48
+ var MembershipPlanSheet_1 = __importDefault(require("./MembershipPlanSheet"));
49
+ var NarrowMembershipListView_1 = __importDefault(require("./NarrowMembershipListView"));
50
+ var WideMembershipListView_1 = __importDefault(require("./WideMembershipListView"));
51
+ function MembershipSheet(_a) {
52
+ var connectedMemberships = _a.connectedMemberships, isWideView = _a.isWideView;
53
+ var _b = (0, react_1.useState)(0), currentIndex = _b[0], setCurrentIndex = _b[1];
54
+ var section = (0, react_1.useContext)(Section_1.sectionContext);
55
+ if (!section) {
56
+ return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}, void 0);
57
+ }
58
+ var _c = connectedMemberships[currentIndex], membership = _c.membership, connectedSubscriptionProducts = _c.connectedSubscriptionProducts;
59
+ var _d = section.styles, itemHighlightingColorInHex = _d.itemHighlightingColorInHex, itemToneType = _d.itemToneType, programmedItemActionButtonTextType = _d.programmedItemActionButtonTextType;
60
+ var handleMembershipClick = function (currentIndex) {
61
+ setCurrentIndex(currentIndex);
62
+ };
63
+ return ((0, jsx_runtime_1.jsxs)(S_MembershipBox, __assign({ isWideView: isWideView }, { children: [isWideView ? ((0, jsx_runtime_1.jsx)(WideMembershipListView_1.default, { connectedMemberships: connectedMemberships, currentIndex: currentIndex, handleMembershipClick: handleMembershipClick, itemToneType: itemToneType, itemHighlightingColorInHex: itemHighlightingColorInHex }, void 0)) : ((0, jsx_runtime_1.jsx)(NarrowMembershipListView_1.default, { connectedMemberships: connectedMemberships, currentIndex: currentIndex, handleMembershipClick: handleMembershipClick, itemToneType: itemToneType, itemHighlightingColorInHex: itemHighlightingColorInHex }, void 0)), (0, jsx_runtime_1.jsx)(S_ScrollBarVisible, __assign({ isWideView: isWideView, itemToneType: itemToneType }, { children: (0, jsx_runtime_1.jsxs)(panels_1.ContentSheet, __assign({ overrideCSS: {
64
+ backgroundColor: constants_1.MEMBERSHIP_SECTION_TONE_COLOR[itemToneType].membershipSheetBackgroundColor,
65
+ display: 'flex',
66
+ flex: '2',
67
+ overflow: 'auto',
68
+ padding: '56px',
69
+ paddingRight: '0'
70
+ }, width: "100%", height: "720px", shapeType: "round" }, { children: [membership.membershipCardTemplate && ((0, jsx_runtime_1.jsx)(components_1.D_MembershipSectionItem.MembershipCard, { membershipCardTemplate: membership.membershipCardTemplate }, void 0)), (0, jsx_runtime_1.jsxs)(S_MembershipDetailBox, { children: [membership.title && ((0, jsx_runtime_1.jsx)(components_1.D_MembershipSectionItem.Title, { text: membership.title, styleTheme: "displayBold", color: constants_1.MEMBERSHIP_SECTION_TONE_COLOR[itemToneType].membershipSheetTextLabelColor, textAlign: "left", wordBreak: "break_all" }, void 0)), membership.membershipBenefitInfo && ((0, jsx_runtime_1.jsx)(MembershipBenefitInfo_1.default, { membershipBenefitInfo: membership.membershipBenefitInfo, itemToneTextLabelColor: constants_1.MEMBERSHIP_SECTION_TONE_COLOR[itemToneType].membershipSheetTextLabelColor }, void 0)), connectedSubscriptionProducts.length > 0 && ((0, jsx_runtime_1.jsx)(MembershipPlanSheet_1.default, { connectedSubscriptionProducts: connectedSubscriptionProducts[0], itemToneType: itemToneType, itemHighlightingColorInHex: itemHighlightingColorInHex, programmedItemActionButtonTextType: programmedItemActionButtonTextType }, void 0))] }, void 0)] }), void 0) }), void 0)] }), void 0));
71
+ }
72
+ var scrollVisible = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ::-webkit-scrollbar-thumb {\n background-clip: padding-box;\n background-color: ", ";\n border: 8px solid transparent;\n border-radius: 24px;\n }\n\n ::-webkit-scrollbar {\n display: block;\n height: 10px;\n width: 24px;\n }\n"], ["\n ::-webkit-scrollbar-thumb {\n background-clip: padding-box;\n background-color: ", ";\n border: 8px solid transparent;\n border-radius: 24px;\n }\n\n ::-webkit-scrollbar {\n display: block;\n height: 10px;\n width: 24px;\n }\n"])), function (_a) {
73
+ var itemToneType = _a.itemToneType;
74
+ return constants_1.MEMBERSHIP_SECTION_TONE_COLOR[itemToneType].scrollbarColor;
75
+ });
76
+ var S_ScrollBarVisible = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n max-width: ", ";\n\n & > div {\n ", "\n }\n"], ["\n max-width: ", ";\n\n & > div {\n ", "\n }\n"])), function (_a) {
77
+ var isWideView = _a.isWideView;
78
+ return (isWideView ? '66%' : '100%');
79
+ }, scrollVisible);
80
+ var S_MembershipBox = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: flex;\n flex-direction: ", ";\n justify-content: space-between;\n position: relative;\n"], ["\n display: flex;\n flex-direction: ", ";\n justify-content: space-between;\n position: relative;\n"])), function (_a) {
81
+ var isWideView = _a.isWideView;
82
+ return (isWideView ? 'row' : 'column');
83
+ });
84
+ var S_MembershipDetailBox = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n margin-left: ", ";\n margin-right: ", ";\n position: relative;\n width: 100%;\n"], ["\n margin-left: ", ";\n margin-right: ", ";\n position: relative;\n width: 100%;\n"])), function (_a) {
85
+ var theme = _a.theme;
86
+ return theme.spacing.spacingH;
87
+ }, function (_a) {
88
+ var theme = _a.theme;
89
+ return theme.spacing.spacingH;
90
+ });
91
+ exports.default = MembershipSheet;
92
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import type { IConnectedMembership, TypeOfItemToneType } from '../../../../../../../../DynamicLayout/types';
3
+ declare type Props = {
4
+ connectedMemberships: IConnectedMembership[];
5
+ itemHighlightingColorInHex: string;
6
+ itemToneType: TypeOfItemToneType;
7
+ currentIndex: number;
8
+ handleMembershipClick: (currentIndex: number) => void;
9
+ };
10
+ declare function NarrowMembershipListView({ connectedMemberships, itemHighlightingColorInHex, itemToneType, currentIndex, handleMembershipClick }: Props): JSX.Element;
11
+ export default NarrowMembershipListView;
@@ -0,0 +1,137 @@
1
+ "use strict";
2
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
+ return cooked;
5
+ };
6
+ var __assign = (this && this.__assign) || function () {
7
+ __assign = Object.assign || function(t) {
8
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
9
+ s = arguments[i];
10
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
11
+ t[p] = s[p];
12
+ }
13
+ return t;
14
+ };
15
+ return __assign.apply(this, arguments);
16
+ };
17
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
18
+ if (k2 === undefined) k2 = k;
19
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
20
+ }) : (function(o, m, k, k2) {
21
+ if (k2 === undefined) k2 = k;
22
+ o[k2] = m[k];
23
+ }));
24
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
25
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
26
+ }) : function(o, v) {
27
+ o["default"] = v;
28
+ });
29
+ var __importStar = (this && this.__importStar) || function (mod) {
30
+ if (mod && mod.__esModule) return mod;
31
+ var result = {};
32
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
+ __setModuleDefault(result, mod);
34
+ return result;
35
+ };
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ var jsx_runtime_1 = require("react/jsx-runtime");
38
+ var react_1 = require("react");
39
+ var panels_1 = require("../../../../../../../../../desktop/panels");
40
+ var components_1 = require("../../../../../../../../DynamicLayout/sections/MembershipSection/components");
41
+ var constants_1 = require("../../../../../../../../DynamicLayout/sections/MembershipSection/constants");
42
+ var styled_components_1 = __importStar(require("styled-components"));
43
+ function NarrowMembershipListView(_a) {
44
+ var connectedMemberships = _a.connectedMemberships, itemHighlightingColorInHex = _a.itemHighlightingColorInHex, itemToneType = _a.itemToneType, currentIndex = _a.currentIndex, handleMembershipClick = _a.handleMembershipClick;
45
+ var membershipListRef = (0, react_1.useRef)(null);
46
+ var _b = (0, react_1.useState)(0), scrollValue = _b[0], setScrollValue = _b[1];
47
+ var handleScroll = function () {
48
+ if (membershipListRef === null || membershipListRef.current === null) {
49
+ return;
50
+ }
51
+ setScrollValue(membershipListRef.current.scrollLeft);
52
+ };
53
+ (0, react_1.useEffect)(function () {
54
+ if (!membershipListRef.current) {
55
+ return;
56
+ }
57
+ membershipListRef.current.addEventListener('scroll', handleScroll);
58
+ return function () {
59
+ if (!membershipListRef.current) {
60
+ return;
61
+ }
62
+ membershipListRef.current.removeEventListener('scroll', handleScroll);
63
+ };
64
+ }, []);
65
+ var isLeftMaskingCoverShow = connectedMemberships.length > 2 && scrollValue > 0;
66
+ var isRightMaskingCoverShow = connectedMemberships.length > 2 && membershipListRef.current
67
+ ? membershipListRef.current.scrollLeft + membershipListRef.current.clientWidth <
68
+ membershipListRef.current.scrollWidth - 1
69
+ : true;
70
+ var scrollPrev = function (x) {
71
+ var scrollLeft = (membershipListRef.current || {}).scrollLeft;
72
+ if (membershipListRef.current && typeof scrollLeft === 'number') {
73
+ membershipListRef.current.scroll({ left: scrollLeft - x, behavior: 'smooth' });
74
+ setScrollValue(scrollLeft - x);
75
+ }
76
+ };
77
+ var scrollNext = function (x) {
78
+ var scrollLeft = (membershipListRef.current || {}).scrollLeft;
79
+ if (membershipListRef.current && typeof scrollLeft === 'number') {
80
+ membershipListRef.current.scroll({ left: scrollLeft + x, behavior: 'smooth' });
81
+ setScrollValue(scrollLeft + x);
82
+ }
83
+ };
84
+ return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: connectedMemberships.length > 0 && ((0, jsx_runtime_1.jsxs)(S_MembershipListBox, { children: [isLeftMaskingCoverShow && ((0, jsx_runtime_1.jsx)(S_ArrowIconCover, __assign({ position: "left" }, { children: (0, jsx_runtime_1.jsx)(components_1.D_MembershipSectionItem.IconButton, { iconButtonBorderColor: constants_1.MEMBERSHIP_SECTION_TONE_COLOR[itemToneType].iconButtonBorderColor, iconName: "ic_arrow_left", iconButtonIconColor: constants_1.MEMBERSHIP_SECTION_TONE_COLOR[itemToneType].iconButtonIconColor, iconButtonDisabledIconColor: constants_1.MEMBERSHIP_SECTION_TONE_COLOR[itemToneType].iconButtonDisabledIconColor, iconButtonBackgroundColor: constants_1.MEMBERSHIP_SECTION_TONE_COLOR[itemToneType].iconButtonBackgroundColor, iconButtonDisabledBackgroundColor: constants_1.MEMBERSHIP_SECTION_TONE_COLOR[itemToneType].iconButtonDisabledBackgroundColor, onClick: function () { return scrollPrev(500); } }, void 0) }), void 0)), (0, jsx_runtime_1.jsx)(S_ContentOperatorPanel, __assign({ ref: membershipListRef, isLeftMaskingCoverShow: isLeftMaskingCoverShow, isRightMaskingCoverShow: isRightMaskingCoverShow, centered: connectedMemberships.length <= 2 }, { children: connectedMemberships.map(function (_a, i) {
85
+ var id = _a.id, membership = _a.membership;
86
+ return ((0, jsx_runtime_1.jsx)(react_1.Fragment, { children: (0, jsx_runtime_1.jsx)(panels_1.ContentSheet, __assign({ overrideCSS: {
87
+ backgroundColor: i === currentIndex
88
+ ? itemHighlightingColorInHex
89
+ : constants_1.MEMBERSHIP_SECTION_TONE_COLOR[itemToneType]
90
+ .membershipSheetBackgroundColor,
91
+ display: 'flex',
92
+ flexDirection: 'column',
93
+ height: '120px',
94
+ justifyContent: 'center',
95
+ marginRight: '24px',
96
+ minWidth: '384px',
97
+ paddingLeft: '40px',
98
+ paddingRight: '40px'
99
+ }, radius: 24, shapeType: "round", width: "100%", height: "120px", onClick: function () {
100
+ handleMembershipClick(i);
101
+ } }, { children: (0, jsx_runtime_1.jsx)(components_1.D_MembershipSectionItem.Title, { text: membership.title, styleTheme: "headingBold", ellipsisMode: "use", lineLimit: 2, color: i === currentIndex
102
+ ? '#FDFDFDFF'
103
+ : constants_1.MEMBERSHIP_SECTION_TONE_COLOR[itemToneType].membershipSheetTextLabelColor, textAlign: "left" }, void 0) }), void 0) }, id));
104
+ }) }), void 0), isRightMaskingCoverShow && ((0, jsx_runtime_1.jsx)(S_ArrowIconCover, __assign({ position: "right" }, { children: (0, jsx_runtime_1.jsx)(components_1.D_MembershipSectionItem.IconButton, { iconButtonBorderColor: constants_1.MEMBERSHIP_SECTION_TONE_COLOR[itemToneType].iconButtonBorderColor, iconName: "ic_arrow_right", iconButtonIconColor: constants_1.MEMBERSHIP_SECTION_TONE_COLOR[itemToneType].iconButtonIconColor, iconButtonDisabledIconColor: constants_1.MEMBERSHIP_SECTION_TONE_COLOR[itemToneType].iconButtonDisabledIconColor, iconButtonBackgroundColor: constants_1.MEMBERSHIP_SECTION_TONE_COLOR[itemToneType].iconButtonBackgroundColor, iconButtonDisabledBackgroundColor: constants_1.MEMBERSHIP_SECTION_TONE_COLOR[itemToneType].iconButtonDisabledBackgroundColor, onClick: function () { return scrollNext(500); } }, void 0) }), void 0))] }, void 0)) }, void 0));
105
+ }
106
+ var S_MembershipListBox = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n margin-bottom: ", ";\n overflow: hidden;\n position: relative;\n"], ["\n margin-bottom: ", ";\n overflow: hidden;\n position: relative;\n"])), function (_a) {
107
+ var theme = _a.theme;
108
+ return theme.spacing.spacingF;
109
+ });
110
+ var Centered = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n justify-content: center;\n"], ["\n justify-content: center;\n"])));
111
+ var LeftMasking = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n -webkit-mask-image: linear-gradient(90deg, transparent 0%, white 7.5%);\n"], ["\n -webkit-mask-image: linear-gradient(90deg, transparent 0%, white 7.5%);\n"])));
112
+ var RightMasking = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n -webkit-mask-image: linear-gradient(90deg, white 92.5%, transparent 100%);\n"], ["\n -webkit-mask-image: linear-gradient(90deg, white 92.5%, transparent 100%);\n"])));
113
+ var BothMasking = (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n -webkit-mask-image: linear-gradient(\n 90deg,\n transparent 0%,\n white 7.5%,\n white 92.5%,\n transparent 100%\n );\n"], ["\n -webkit-mask-image: linear-gradient(\n 90deg,\n transparent 0%,\n white 7.5%,\n white 92.5%,\n transparent 100%\n );\n"])));
114
+ var S_ContentOperatorPanel = styled_components_1.default.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n display: flex;\n overflow: scroll;\n\n ", ";\n ", "\n"], ["\n display: flex;\n overflow: scroll;\n\n ", ";\n ", "\n"])), function (_a) {
115
+ var centered = _a.centered;
116
+ return centered && Centered;
117
+ }, function (_a) {
118
+ var isLeftMaskingCoverShow = _a.isLeftMaskingCoverShow, isRightMaskingCoverShow = _a.isRightMaskingCoverShow;
119
+ if (isLeftMaskingCoverShow && isRightMaskingCoverShow) {
120
+ return BothMasking;
121
+ }
122
+ if (isLeftMaskingCoverShow) {
123
+ return LeftMasking;
124
+ }
125
+ if (isRightMaskingCoverShow) {
126
+ return RightMasking;
127
+ }
128
+ });
129
+ var S_ArrowIconCover = styled_components_1.default.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n height: 120px;\n justify-content: ", ";\n position: absolute;\n top: 0;\n width: 48px;\n z-index: 1;\n\n ", "\n"], ["\n align-items: center;\n display: flex;\n height: 120px;\n justify-content: ", ";\n position: absolute;\n top: 0;\n width: 48px;\n z-index: 1;\n\n ", "\n"])), function (_a) {
130
+ var position = _a.position;
131
+ return (position === 'left' ? 'flex-start' : 'flex-end');
132
+ }, function (_a) {
133
+ var position = _a.position;
134
+ return position && position + ":0";
135
+ });
136
+ exports.default = NarrowMembershipListView;
137
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare function SectionContents(): JSX.Element;
3
+ export default SectionContents;
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
+ return cooked;
5
+ };
6
+ var __importDefault = (this && this.__importDefault) || function (mod) {
7
+ return (mod && mod.__esModule) ? mod : { "default": mod };
8
+ };
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ var jsx_runtime_1 = require("react/jsx-runtime");
11
+ var react_1 = require("react");
12
+ var Section_1 = require("../../../../../../../../DynamicLayout/components/Section");
13
+ var components_1 = require("../../../../../../../../DynamicLayout/sections/MembershipSection/components");
14
+ var styled_components_1 = __importDefault(require("styled-components"));
15
+ function SectionContents() {
16
+ var section = (0, react_1.useContext)(Section_1.sectionContext);
17
+ if (!section) {
18
+ return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}, void 0);
19
+ }
20
+ var _a = section.styles, buttonAlphaBackgroundColorInHex = _a.buttonAlphaBackgroundColorInHex, buttonAlphaLabelColorInHex = _a.buttonAlphaLabelColorInHex, buttonAlphaDesignType = _a.buttonAlphaDesignType, descriptionColorInHex = _a.descriptionColorInHex, titleColorInHex = _a.titleColorInHex;
21
+ var _b = section.properties, title = _b.title, description = _b.description, buttonAlphaLabel = _b.buttonAlphaLabel, buttonAlphaLinkSrc = _b.buttonAlphaLinkSrc, buttonAlphaLinkType = _b.buttonAlphaLinkType;
22
+ return ((0, jsx_runtime_1.jsxs)(S_SectionDataBox, { children: [title && ((0, jsx_runtime_1.jsx)(components_1.D_MembershipSectionItem.Title, { text: title, textAlign: "center", color: titleColorInHex, customFontSize: "48px", customFontWeight: "bold" }, void 0)), description && ((0, jsx_runtime_1.jsx)(S_DescriptionWrapper, { children: (0, jsx_runtime_1.jsx)(components_1.D_MembershipSectionItem.Description, { text: description, textAlign: "center", color: descriptionColorInHex, styleTheme: "headingBold" }, void 0) }, void 0)), buttonAlphaLabel && ((0, jsx_runtime_1.jsx)(S_ButtonWrapper, { children: (0, jsx_runtime_1.jsx)(components_1.D_MembershipSectionItem.DesignedSectionButton, { buttonType: buttonAlphaDesignType, text: buttonAlphaLabel, linkType: buttonAlphaLinkType, src: buttonAlphaLinkSrc, textColor: buttonAlphaLabelColorInHex, backgroundColor: buttonAlphaBackgroundColorInHex, borderColor: buttonAlphaLabelColorInHex }, void 0) }, void 0))] }, void 0));
23
+ }
24
+ var S_SectionDataBox = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n margin-bottom: 80px;\n margin-top: ", ";\n"], ["\n margin-bottom: 80px;\n margin-top: ", ";\n"])), function (_a) {
25
+ var theme = _a.theme;
26
+ return theme.spacing.spacingK;
27
+ });
28
+ var S_DescriptionWrapper = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n padding-top: ", ";\n"], ["\n padding-top: ", ";\n"])), function (_a) {
29
+ var theme = _a.theme;
30
+ return theme.spacing.spacingF;
31
+ });
32
+ var S_ButtonWrapper = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n justify-content: center;\n padding-top: ", ";\n"], ["\n align-items: center;\n display: flex;\n justify-content: center;\n padding-top: ", ";\n"])), function (_a) {
33
+ var theme = _a.theme;
34
+ return theme.spacing.spacingG;
35
+ });
36
+ exports.default = SectionContents;
37
+ var templateObject_1, templateObject_2, templateObject_3;
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import type { IConnectedMembership, TypeOfItemToneType } from '../../../../../../../../DynamicLayout/types';
3
+ declare type Props = {
4
+ connectedMemberships: IConnectedMembership[];
5
+ itemHighlightingColorInHex: string;
6
+ itemToneType: TypeOfItemToneType;
7
+ currentIndex: number;
8
+ handleMembershipClick: (currentIndex: number) => void;
9
+ };
10
+ declare function WideMembershipListView({ connectedMemberships, itemHighlightingColorInHex, itemToneType, currentIndex, handleMembershipClick }: Props): JSX.Element;
11
+ export default WideMembershipListView;