@sok-brand-sites/common-frontend-components 0.0.1-security → 1.643.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of @sok-brand-sites/common-frontend-components might be problematic. Click here for more details.

Files changed (211) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +31 -3
  3. package/dist/_virtual/_tslib.js +234 -0
  4. package/dist/assets/icons/Icons.js +118 -0
  5. package/dist/assets/logos/logos.js +19 -0
  6. package/dist/components/Accordion/Accordion.js +36 -0
  7. package/dist/components/Accordion/Accordion.styles.js +75 -0
  8. package/dist/components/AnimationWrapper/AnimationWrapper.js +35 -0
  9. package/dist/components/AnimationWrapper/AnimationWrapper.styles.js +26 -0
  10. package/dist/components/BlockGenerator/BlockContent.js +139 -0
  11. package/dist/components/BlockGenerator/BlockGenerator.js +62 -0
  12. package/dist/components/BlockGenerator/BlockGenerator.styles.js +44 -0
  13. package/dist/components/Button/Button.js +49 -0
  14. package/dist/components/Button/Button.styles.js +46 -0
  15. package/dist/components/Card/Card.js +79 -0
  16. package/dist/components/Card/Card.styles.js +137 -0
  17. package/dist/components/Carousel/Carousel.js +153 -0
  18. package/dist/components/Carousel/Carousel.styles.js +261 -0
  19. package/dist/components/CarouselNarrow/CarouselNarrow.js +120 -0
  20. package/dist/components/CarouselNarrow/CarouselNarrow.styles.js +281 -0
  21. package/dist/components/Column/Column.js +31 -0
  22. package/dist/components/Column/Column.styles.js +34 -0
  23. package/dist/components/Columns/Columns.js +38 -0
  24. package/dist/components/Columns/Columns.styles.js +21 -0
  25. package/dist/components/Embed/Embed.js +54 -0
  26. package/dist/components/Embed/Embed.styles.js +12 -0
  27. package/dist/components/Footer/Footer.js +63 -0
  28. package/dist/components/Footer/Footer.styles.js +67 -0
  29. package/dist/components/FormBuilder/FormBuilder.js +364 -0
  30. package/dist/components/FormBuilder/FormBuilder.styles.js +224 -0
  31. package/dist/components/FormBuilder/FormBuilderCheckboxes.js +39 -0
  32. package/dist/components/FormBuilder/FormBuilderInput.js +29 -0
  33. package/dist/components/FormBuilder/FormBuilderParagraph.js +15 -0
  34. package/dist/components/FormBuilder/FormBuilderSelect.js +39 -0
  35. package/dist/components/FormBuilder/FormBuilderTextAreaInput.js +29 -0
  36. package/dist/components/FormBuilder/utiles.js +13 -0
  37. package/dist/components/FullBgHero/FullBgHero.js +93 -0
  38. package/dist/components/FullBgHero/FullBgHero.styles.js +180 -0
  39. package/dist/components/GlobalStyle/GlobalStyle.js +285 -0
  40. package/dist/components/Header/Header.js +290 -0
  41. package/dist/components/Header/Header.styles.js +314 -0
  42. package/dist/components/Heading/Heading.js +29 -0
  43. package/dist/components/Heading/Heading.styles.js +21 -0
  44. package/dist/components/Hero/Hero.js +76 -0
  45. package/dist/components/Hero/Hero.styles.js +128 -0
  46. package/dist/components/IconLinks/IconLinks.js +118 -0
  47. package/dist/components/IconLinks/IconLinks.styles.js +259 -0
  48. package/dist/components/ImageCarousel/ImageCarousel.js +102 -0
  49. package/dist/components/ImageCarousel/ImageCarousel.styles.js +96 -0
  50. package/dist/components/LanguageSelector/LanguageSelector.js +72 -0
  51. package/dist/components/LanguageSelector/LanguageSelector.styles.js +72 -0
  52. package/dist/components/Layout/Layout.js +15 -0
  53. package/dist/components/Layout/Layout.styles.js +8 -0
  54. package/dist/components/List/List.js +25 -0
  55. package/dist/components/List/List.styles.js +11 -0
  56. package/dist/components/MarginWrapper/MarginWrapper.js +17 -0
  57. package/dist/components/MarginWrapper/MarginWrapper.styles.js +38 -0
  58. package/dist/components/OverlayCards/OverlayCard/OverlayCard.js +132 -0
  59. package/dist/components/OverlayCards/OverlayCard/OverlayCard.styles.js +133 -0
  60. package/dist/components/OverlayCards/OverlayCards.js +46 -0
  61. package/dist/components/OverlayCards/OverlayCards.styles.js +14 -0
  62. package/dist/components/OverlayCards/OverlayCards.types.js +9 -0
  63. package/dist/components/Paragraph/Paragraph.js +29 -0
  64. package/dist/components/Paragraph/Paragraph.styles.js +14 -0
  65. package/dist/components/PlaceOfBusiness/ContactInformation/ContactInformation.js +45 -0
  66. package/dist/components/PlaceOfBusiness/ContactInformation/ContactInformation.styles.js +37 -0
  67. package/dist/components/PlaceOfBusiness/LogoTitle/LogoTitle.js +16 -0
  68. package/dist/components/PlaceOfBusiness/LogoTitle/LogoTitle.styles.js +44 -0
  69. package/dist/components/PlaceOfBusiness/OpenToday/OpenToday.js +43 -0
  70. package/dist/components/PlaceOfBusiness/OpenToday/OpenToday.styles.js +63 -0
  71. package/dist/components/PlaceOfBusiness/OpeningHours/OpeningHours.js +77 -0
  72. package/dist/components/PlaceOfBusiness/OpeningHours/OpeningHours.styles.js +68 -0
  73. package/dist/components/PlaceOfBusiness/PlaceOfBusinessInfo/PlaceOfBusinessInfo.js +125 -0
  74. package/dist/components/PlaceOfBusiness/PlaceOfBusinessInfo/PlaceOfBusinessInfo.styles.js +32 -0
  75. package/dist/components/PlaceOfBusiness/PlaceOfBusinessListItem/PlaceOfBusinessListItem.js +85 -0
  76. package/dist/components/PlaceOfBusiness/PlaceOfBusinessListItem/PlaceOfBusinessListItem.styles.js +134 -0
  77. package/dist/components/PlaceOfBusiness/PlaceOfBusinessSearch/PlaceOfBusinessSearch.js +142 -0
  78. package/dist/components/PlaceOfBusiness/PlaceOfBusinessSearch/PlaceOfBusinessSearch.styles.js +43 -0
  79. package/dist/components/PlaceOfBusiness/Services/Services.js +30 -0
  80. package/dist/components/PlaceOfBusiness/Services/Services.styles.js +61 -0
  81. package/dist/components/PlaceOfBusiness/utils.js +177 -0
  82. package/dist/components/Promotion/Promotion.js +66 -0
  83. package/dist/components/Promotion/Promotion.styles.js +124 -0
  84. package/dist/components/RestrictedWidthContainer/RestrictedWidthContainer.js +63 -0
  85. package/dist/components/Seo/Seo.js +58 -0
  86. package/dist/components/SideBySide/SideBySide.js +81 -0
  87. package/dist/components/SideBySide/SideBySide.styles.js +179 -0
  88. package/dist/components/SocialMediaLinks/SocialMediaLinks.js +28 -0
  89. package/dist/components/SocialMediaLinks/SocialMediaLinks.styles.js +22 -0
  90. package/dist/components/SubHero/SubHero.js +22 -0
  91. package/dist/components/SubHero/SubHero.styles.js +52 -0
  92. package/dist/components/Table/Table.js +23 -0
  93. package/dist/components/Table/Table.styles.js +121 -0
  94. package/dist/components/Table/WpTable.styles.js +5 -0
  95. package/dist/components/constants.js +34 -0
  96. package/dist/components/utils.js +160 -0
  97. package/dist/fonts/Agrandir/Agrandir-Bold.woff.js +2 -0
  98. package/dist/fonts/Agrandir/Agrandir-Bold.woff2.js +2 -0
  99. package/dist/fonts/Agrandir/Agrandir-Light.woff.js +2 -0
  100. package/dist/fonts/Agrandir/Agrandir-Light.woff2.js +2 -0
  101. package/dist/fonts/Agrandir/index.js +16 -0
  102. package/dist/fonts/Brule/Brule-Bold.woff.js +2 -0
  103. package/dist/fonts/Brule/Brule-Bold.woff2.js +2 -0
  104. package/dist/fonts/Brule/Brule-Medium.woff.js +2 -0
  105. package/dist/fonts/Brule/Brule-Medium.woff2.js +2 -0
  106. package/dist/fonts/Brule/Brule-Regular.woff.js +2 -0
  107. package/dist/fonts/Brule/Brule-Regular.woff2.js +2 -0
  108. package/dist/fonts/Brule/index.js +18 -0
  109. package/dist/fonts/Domaine/Domaine-Text-Medium.woff.js +2 -0
  110. package/dist/fonts/Domaine/Domaine-Text-Medium.woff2.js +2 -0
  111. package/dist/fonts/Domaine/index.js +14 -0
  112. package/dist/fonts/FranklinGothic/FranklinGothic-LT-Com-Bk.woff.js +2 -0
  113. package/dist/fonts/FranklinGothic/FranklinGothic-LT-Com-Bk.woff2.js +2 -0
  114. package/dist/fonts/FranklinGothic/FranklinGothic-LT-Com-DmCn.woff.js +2 -0
  115. package/dist/fonts/FranklinGothic/FranklinGothic-LT-Com-DmCn.woff2.js +2 -0
  116. package/dist/fonts/FranklinGothic/FranklinGothic-LT-Com-MdCn.woff.js +2 -0
  117. package/dist/fonts/FranklinGothic/FranklinGothic-LT-Com-MdCn.woff2.js +2 -0
  118. package/dist/fonts/FranklinGothic/index.js +18 -0
  119. package/dist/fonts/MinionPro/MinionPro-Regular.woff.js +2 -0
  120. package/dist/fonts/MinionPro/MinionPro-Regular.woff2.js +2 -0
  121. package/dist/fonts/MinionPro/index.js +14 -0
  122. package/dist/fonts/Montserrat/Montserrat-Bold.woff.js +2 -0
  123. package/dist/fonts/Montserrat/Montserrat-Bold.woff2.js +2 -0
  124. package/dist/fonts/Montserrat/Montserrat-BoldItalic.woff.js +2 -0
  125. package/dist/fonts/Montserrat/Montserrat-BoldItalic.woff2.js +2 -0
  126. package/dist/fonts/Montserrat/Montserrat-ExtraBold.woff.js +2 -0
  127. package/dist/fonts/Montserrat/Montserrat-ExtraBold.woff2.js +2 -0
  128. package/dist/fonts/Montserrat/Montserrat-ExtraBoldItalic.woff.js +2 -0
  129. package/dist/fonts/Montserrat/Montserrat-ExtraBoldItalic.woff2.js +2 -0
  130. package/dist/fonts/Montserrat/Montserrat-Italic.woff.js +2 -0
  131. package/dist/fonts/Montserrat/Montserrat-Italic.woff2.js +2 -0
  132. package/dist/fonts/Montserrat/Montserrat-Light.woff.js +2 -0
  133. package/dist/fonts/Montserrat/Montserrat-Light.woff2.js +2 -0
  134. package/dist/fonts/Montserrat/Montserrat-LightItalic.woff.js +2 -0
  135. package/dist/fonts/Montserrat/Montserrat-LightItalic.woff2.js +2 -0
  136. package/dist/fonts/Montserrat/Montserrat-Medium.woff.js +2 -0
  137. package/dist/fonts/Montserrat/Montserrat-Medium.woff2.js +2 -0
  138. package/dist/fonts/Montserrat/Montserrat-MediumItalic.woff.js +2 -0
  139. package/dist/fonts/Montserrat/Montserrat-MediumItalic.woff2.js +2 -0
  140. package/dist/fonts/Montserrat/Montserrat-Regular.woff.js +2 -0
  141. package/dist/fonts/Montserrat/Montserrat-Regular.woff2.js +2 -0
  142. package/dist/fonts/Montserrat/index.js +90 -0
  143. package/dist/fonts/SBonus/SBonusUX-BoldItalic.woff.js +2 -0
  144. package/dist/fonts/SBonus/SBonusUX-BoldItalic.woff2.js +2 -0
  145. package/dist/fonts/SBonus/SBonusUX-ExtraboldItalic.woff.js +2 -0
  146. package/dist/fonts/SBonus/SBonusUX-ExtraboldItalic.woff2.js +2 -0
  147. package/dist/fonts/SBonus/SBonusUX-LightItalic.woff.js +2 -0
  148. package/dist/fonts/SBonus/SBonusUX-LightItalic.woff2.js +2 -0
  149. package/dist/fonts/SBonus/SBonusUX-MediumItalic.woff.js +2 -0
  150. package/dist/fonts/SBonus/SBonusUX-MediumItalic.woff2.js +2 -0
  151. package/dist/fonts/SBonus/SBonusUX-RegularItalic.woff.js +2 -0
  152. package/dist/fonts/SBonus/SBonusUX-RegularItalic.woff2.js +2 -0
  153. package/dist/fonts/SBonus/SBonusUXWEB-Bold.woff.js +2 -0
  154. package/dist/fonts/SBonus/SBonusUXWEB-Bold.woff2.js +2 -0
  155. package/dist/fonts/SBonus/SBonusUXWEB-Extrabold.woff.js +2 -0
  156. package/dist/fonts/SBonus/SBonusUXWEB-Extrabold.woff2.js +2 -0
  157. package/dist/fonts/SBonus/SBonusUXWEB-Light.woff.js +2 -0
  158. package/dist/fonts/SBonus/SBonusUXWEB-Light.woff2.js +2 -0
  159. package/dist/fonts/SBonus/SBonusUXWEB-Medium.woff.js +2 -0
  160. package/dist/fonts/SBonus/SBonusUXWEB-Medium.woff2.js +2 -0
  161. package/dist/fonts/SBonus/SBonusUXWEB-Regular.woff.js +2 -0
  162. package/dist/fonts/SBonus/SBonusUXWEB-Regular.woff2.js +2 -0
  163. package/dist/fonts/SBonus/index.js +95 -0
  164. package/dist/fonts/SBonusDisplay/SBonusDisplay-Bold.woff.js +2 -0
  165. package/dist/fonts/SBonusDisplay/SBonusDisplay-Bold.woff2.js +2 -0
  166. package/dist/fonts/SBonusDisplay/SBonusDisplay-Light.woff.js +2 -0
  167. package/dist/fonts/SBonusDisplay/SBonusDisplay-Light.woff2.js +2 -0
  168. package/dist/fonts/SBonusDisplay/SBonusDisplay-Medium.woff.js +2 -0
  169. package/dist/fonts/SBonusDisplay/SBonusDisplay-Medium.woff2.js +2 -0
  170. package/dist/fonts/SBonusDisplay/SBonusDisplay-Regular.woff.js +2 -0
  171. package/dist/fonts/SBonusDisplay/SBonusDisplay-Regular.woff2.js +2 -0
  172. package/dist/fonts/SBonusDisplay/SBonusDisplay-SemiBold.woff.js +2 -0
  173. package/dist/fonts/SBonusDisplay/SBonusDisplay-SemiBold.woff2.js +2 -0
  174. package/dist/fonts/SBonusDisplay/index.js +22 -0
  175. package/dist/fonts/SuomiGrumpy/SuomiGrumpy-Black.woff.js +2 -0
  176. package/dist/fonts/SuomiGrumpy/SuomiGrumpy-Black.woff2.js +2 -0
  177. package/dist/fonts/SuomiGrumpy/index.js +14 -0
  178. package/dist/fonts/utils.js +5 -0
  179. package/dist/hooks/useElementRect.js +65 -0
  180. package/dist/hooks/windowsize.js +31 -0
  181. package/dist/locales/constants.js +6 -0
  182. package/dist/locales/translations.json.js +153 -0
  183. package/dist/styles/media.js +40 -0
  184. package/dist/themes/neutral/breakpoints.js +11 -0
  185. package/dist/themes/neutral/colors.js +3 -0
  186. package/dist/themes/neutral/components.js +940 -0
  187. package/dist/themes/neutral/fonts.js +7 -0
  188. package/dist/themes/neutral/index.js +10 -0
  189. package/dist/themes/neutral/spacings.js +21 -0
  190. package/dist/themes/ravintolakonseptit/breakpoints.js +11 -0
  191. package/dist/themes/ravintolakonseptit/colors.js +17 -0
  192. package/dist/themes/ravintolakonseptit/components.js +936 -0
  193. package/dist/themes/ravintolakonseptit/fonts.js +5 -0
  194. package/dist/themes/ravintolakonseptit/index.js +10 -0
  195. package/dist/themes/ravintolakonseptit/spacings.js +21 -0
  196. package/dist/themes/sokos/breakpoints.js +11 -0
  197. package/dist/themes/sokos/colors.js +3 -0
  198. package/dist/themes/sokos/components.js +936 -0
  199. package/dist/themes/sokos/index.js +10 -0
  200. package/dist/themes/sokospalvelut/breakpoints.js +11 -0
  201. package/dist/themes/sokospalvelut/colors.js +3 -0
  202. package/dist/themes/sokospalvelut/components.js +936 -0
  203. package/dist/themes/sokospalvelut/fonts.js +11 -0
  204. package/dist/themes/sokospalvelut/index.js +10 -0
  205. package/dist/themes/theme.types.js +12 -0
  206. package/dist/themes/tykkimakiresort/colors.js +35 -0
  207. package/dist/themes/tykkimakiresort/components.js +936 -0
  208. package/dist/themes/tykkimakiresort/fonts.js +7 -0
  209. package/dist/themes/tykkimakiresort/index.js +10 -0
  210. package/package.json +33 -3
  211. package/scripts/build.js +132 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License Copyright (c) 2021
2
+
3
+ Permission is hereby granted, free
4
+ of charge, to any person obtaining a copy of this software and associated
5
+ documentation files (the "Software"), to deal in the Software without
6
+ restriction, including without limitation the rights to use, copy, modify, merge,
7
+ publish, distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to the
9
+ following conditions:
10
+
11
+ The above copyright notice and this permission notice
12
+ (including the next paragraph) shall be included in all copies or substantial
13
+ portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
16
+ ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO
18
+ EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
19
+ OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
package/README.md CHANGED
@@ -1,5 +1,33 @@
1
- # Security holding package
1
+ # @sok-brand-sites/common-frontend-components
2
2
 
3
- This package contained malicious code and was removed from the registry by the npm security team. A placeholder was published to ensure users are not affected in the future.
3
+ SOK brand sites common react components
4
4
 
5
- Please refer to www.npmjs.com/advisories?search=%40sok-brand-sites%2Fcommon-frontend-components for more information.
5
+ ## Features
6
+
7
+ - ES6 syntax, managed with Prettier + Eslint
8
+ - Typescript
9
+
10
+ ## Install
11
+
12
+ ```sh
13
+ yarn add @sok-brand-sites/common-frontend-components
14
+ // or
15
+ npm i @sok-brand-sites/common-frontend-components
16
+ ```
17
+
18
+ ### Requirements
19
+
20
+ - React 16.8
21
+ - Styled-Components
22
+ - Typescript 4
23
+
24
+ ### Usage
25
+
26
+ ```js
27
+ import { ExchangeFeeTypes } from "@sok-brand-sites/common-frontend-components/src/domain/account/costs/types/flightExchangeCost.type.js";
28
+
29
+ const params = new URLSearchParams(location.search.slice(1));
30
+ if(params.get('exchangeFee') === ExchangeFeeTypes.AirlineFee) {
31
+ consoloe.log('AirelineFee selected')
32
+ }
33
+ ```
@@ -0,0 +1,234 @@
1
+ /*! *****************************************************************************
2
+ Copyright (c) Microsoft Corporation.
3
+
4
+ Permission to use, copy, modify, and/or distribute this software for any
5
+ purpose with or without fee is hereby granted.
6
+
7
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
8
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
9
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
10
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13
+ PERFORMANCE OF THIS SOFTWARE.
14
+ ***************************************************************************** */
15
+ var _assign = function __assign() {
16
+ _assign = Object.assign || function __assign(t) {
17
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
18
+ s = arguments[i];
19
+
20
+ for (var p in s) {
21
+ if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
22
+ }
23
+ }
24
+
25
+ return t;
26
+ };
27
+
28
+ return _assign.apply(this, arguments);
29
+ };
30
+
31
+ function __rest(s, e) {
32
+ var t = {};
33
+
34
+ for (var p in s) {
35
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
36
+ }
37
+
38
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
39
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
40
+ }
41
+ return t;
42
+ }
43
+
44
+ function __awaiter(thisArg, _arguments, P, generator) {
45
+ function adopt(value) {
46
+ return value instanceof P ? value : new P(function (resolve) {
47
+ resolve(value);
48
+ });
49
+ }
50
+
51
+ return new (P || (P = Promise))(function (resolve, reject) {
52
+ function fulfilled(value) {
53
+ try {
54
+ step(generator.next(value));
55
+ } catch (e) {
56
+ reject(e);
57
+ }
58
+ }
59
+
60
+ function rejected(value) {
61
+ try {
62
+ step(generator["throw"](value));
63
+ } catch (e) {
64
+ reject(e);
65
+ }
66
+ }
67
+
68
+ function step(result) {
69
+ result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
70
+ }
71
+
72
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
73
+ });
74
+ }
75
+
76
+ function __generator(thisArg, body) {
77
+ var _ = {
78
+ label: 0,
79
+ sent: function sent() {
80
+ if (t[0] & 1) throw t[1];
81
+ return t[1];
82
+ },
83
+ trys: [],
84
+ ops: []
85
+ },
86
+ f,
87
+ y,
88
+ t,
89
+ g;
90
+ return g = {
91
+ next: verb(0),
92
+ "throw": verb(1),
93
+ "return": verb(2)
94
+ }, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
95
+ return this;
96
+ }), g;
97
+
98
+ function verb(n) {
99
+ return function (v) {
100
+ return step([n, v]);
101
+ };
102
+ }
103
+
104
+ function step(op) {
105
+ if (f) throw new TypeError("Generator is already executing.");
106
+
107
+ while (_) {
108
+ try {
109
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
110
+ if (y = 0, t) op = [op[0] & 2, t.value];
111
+
112
+ switch (op[0]) {
113
+ case 0:
114
+ case 1:
115
+ t = op;
116
+ break;
117
+
118
+ case 4:
119
+ _.label++;
120
+ return {
121
+ value: op[1],
122
+ done: false
123
+ };
124
+
125
+ case 5:
126
+ _.label++;
127
+ y = op[1];
128
+ op = [0];
129
+ continue;
130
+
131
+ case 7:
132
+ op = _.ops.pop();
133
+
134
+ _.trys.pop();
135
+
136
+ continue;
137
+
138
+ default:
139
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
140
+ _ = 0;
141
+ continue;
142
+ }
143
+
144
+ if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
145
+ _.label = op[1];
146
+ break;
147
+ }
148
+
149
+ if (op[0] === 6 && _.label < t[1]) {
150
+ _.label = t[1];
151
+ t = op;
152
+ break;
153
+ }
154
+
155
+ if (t && _.label < t[2]) {
156
+ _.label = t[2];
157
+
158
+ _.ops.push(op);
159
+
160
+ break;
161
+ }
162
+
163
+ if (t[2]) _.ops.pop();
164
+
165
+ _.trys.pop();
166
+
167
+ continue;
168
+ }
169
+
170
+ op = body.call(thisArg, _);
171
+ } catch (e) {
172
+ op = [6, e];
173
+ y = 0;
174
+ } finally {
175
+ f = t = 0;
176
+ }
177
+ }
178
+
179
+ if (op[0] & 5) throw op[1];
180
+ return {
181
+ value: op[0] ? op[1] : void 0,
182
+ done: true
183
+ };
184
+ }
185
+ }
186
+
187
+ function __read(o, n) {
188
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
189
+ if (!m) return o;
190
+ var i = m.call(o),
191
+ r,
192
+ ar = [],
193
+ e;
194
+
195
+ try {
196
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
197
+ ar.push(r.value);
198
+ }
199
+ } catch (error) {
200
+ e = {
201
+ error: error
202
+ };
203
+ } finally {
204
+ try {
205
+ if (r && !r.done && (m = i["return"])) m.call(i);
206
+ } finally {
207
+ if (e) throw e.error;
208
+ }
209
+ }
210
+
211
+ return ar;
212
+ }
213
+
214
+ function __spreadArray(to, from) {
215
+ for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) {
216
+ to[j] = from[i];
217
+ }
218
+
219
+ return to;
220
+ }
221
+
222
+ function __makeTemplateObject(cooked, raw) {
223
+ if (Object.defineProperty) {
224
+ Object.defineProperty(cooked, "raw", {
225
+ value: raw
226
+ });
227
+ } else {
228
+ cooked.raw = raw;
229
+ }
230
+
231
+ return cooked;
232
+ }
233
+
234
+ export { _assign as __assign, __awaiter, __generator, __makeTemplateObject, __read, __rest, __spreadArray };
@@ -0,0 +1,118 @@
1
+ import { __assign } from '../../_virtual/_tslib.js';
2
+ import { jsx } from 'react/jsx-runtime';
3
+
4
+ var ReadMore = function ReadMore() {
5
+ return jsx("svg", __assign({
6
+ width: "16",
7
+ height: "47",
8
+ viewBox: "0 0 16 47",
9
+ fill: "none",
10
+ xmlns: "http://www.w3.org/2000/svg"
11
+ }, {
12
+ children: jsx("path", {
13
+ fillRule: "evenodd",
14
+ clipRule: "evenodd",
15
+ d: "M6.8578e-07 38.7069L8.00013 46.4649L16 38.7069L15.3059 38.028L8.491 44.6269L8.491 0.535156L7.50927 0.535156L7.50927 44.6269L0.694086 38.028L6.8578e-07 38.7069Z",
16
+ fill: "white",
17
+ stroke: "white",
18
+ strokeWidth: "0.3"
19
+ }, void 0)
20
+ }), void 0);
21
+ };
22
+
23
+ var ArrowDown = function ArrowDown() {
24
+ return jsx("svg", __assign({
25
+ width: "15",
26
+ height: "10",
27
+ viewBox: "0 0 15 10",
28
+ fill: "none",
29
+ xmlns: "http://www.w3.org/2000/svg"
30
+ }, {
31
+ children: jsx("path", {
32
+ fillRule: "evenodd",
33
+ clipRule: "evenodd",
34
+ d: "M7.82543 6.26636L2.18822 0.62915L0.650879 2.1665L7.85522 9.37084L9.39257 7.83349L9.36278 7.80371L15 2.1665L13.4626 0.629153L7.82543 6.26636Z",
35
+ fill: "black"
36
+ }, void 0)
37
+ }), void 0);
38
+ };
39
+
40
+ var ExternalLink = function ExternalLink() {
41
+ return jsx("svg", __assign({
42
+ "data-testid": "external-link",
43
+ width: "20",
44
+ height: "20",
45
+ viewBox: "0 0 20 20",
46
+ fill: "none",
47
+ xmlns: "http://www.w3.org/2000/svg"
48
+ }, {
49
+ children: jsx("path", {
50
+ d: "M16 8.82C15.7348 8.82 15.4804 8.92536 15.2929 9.11289C15.1054 9.30043 15 9.55478 15 9.82V17C15 17.2652 14.8946 17.5196 14.7071 17.7071C14.5196 17.8946 14.2652 18 14 18H3C2.73478 18 2.48043 17.8946 2.29289 17.7071C2.10536 17.5196 2 17.2652 2 17V6C2 5.73478 2.10536 5.48043 2.29289 5.29289C2.48043 5.10536 2.73478 5 3 5H10.18C10.4452 5 10.6996 4.89464 10.8871 4.70711C11.0746 4.51957 11.18 4.26522 11.18 4C11.18 3.73478 11.0746 3.48043 10.8871 3.29289C10.6996 3.10536 10.4452 3 10.18 3H3C2.20435 3 1.44129 3.31607 0.87868 3.87868C0.316071 4.44129 0 5.20435 0 6V17C0 17.7956 0.316071 18.5587 0.87868 19.1213C1.44129 19.6839 2.20435 20 3 20H14C14.7956 20 15.5587 19.6839 16.1213 19.1213C16.6839 18.5587 17 17.7956 17 17V9.82C17 9.55478 16.8946 9.30043 16.7071 9.11289C16.5196 8.92536 16.2652 8.82 16 8.82ZM19.92 0.62C19.8185 0.375651 19.6243 0.181475 19.38 0.0799999C19.2598 0.028759 19.1307 0.00157999 19 0H13C12.7348 0 12.4804 0.105357 12.2929 0.292893C12.1054 0.48043 12 0.734784 12 1C12 1.26522 12.1054 1.51957 12.2929 1.70711C12.4804 1.89464 12.7348 2 13 2H16.59L6.29 12.29C6.19627 12.383 6.12188 12.4936 6.07111 12.6154C6.02034 12.7373 5.9942 12.868 5.9942 13C5.9942 13.132 6.02034 13.2627 6.07111 13.3846C6.12188 13.5064 6.19627 13.617 6.29 13.71C6.38296 13.8037 6.49356 13.8781 6.61542 13.9289C6.73728 13.9797 6.86799 14.0058 7 14.0058C7.13201 14.0058 7.26272 13.9797 7.38458 13.9289C7.50644 13.8781 7.61704 13.8037 7.71 13.71L18 3.41V7C18 7.26522 18.1054 7.51957 18.2929 7.70711C18.4804 7.89464 18.7348 8 19 8C19.2652 8 19.5196 7.89464 19.7071 7.70711C19.8946 7.51957 20 7.26522 20 7V1C19.9984 0.869323 19.9712 0.740222 19.92 0.62Z",
51
+ fill: "#18A949"
52
+ }, void 0)
53
+ }), void 0);
54
+ };
55
+
56
+ var GreenCircle = function GreenCircle() {
57
+ return jsx("svg", __assign({
58
+ "data-testid": "green-circle",
59
+ width: "8",
60
+ height: "8",
61
+ viewBox: "0 0 8 8",
62
+ fill: "none",
63
+ xmlns: "http://www.w3.org/2000/svg"
64
+ }, {
65
+ children: jsx("circle", {
66
+ cx: "4",
67
+ cy: "4",
68
+ r: "4",
69
+ fill: "#00AA46"
70
+ }, void 0)
71
+ }), void 0);
72
+ };
73
+
74
+ var RedCircle = function RedCircle() {
75
+ return jsx("svg", __assign({
76
+ "data-testid": "red-circle",
77
+ width: "8",
78
+ height: "8",
79
+ viewBox: "0 0 8 8",
80
+ fill: "none",
81
+ xmlns: "http://www.w3.org/2000/svg"
82
+ }, {
83
+ children: jsx("circle", {
84
+ cx: "4",
85
+ cy: "4",
86
+ r: "4",
87
+ fill: "#EC2C27"
88
+ }, void 0)
89
+ }), void 0);
90
+ };
91
+
92
+ var Arrow = function Arrow() {
93
+ return jsx("svg", __assign({
94
+ "data-testid": "arrow",
95
+ width: "22",
96
+ height: "14",
97
+ viewBox: "0 0 22 14",
98
+ fill: "none",
99
+ xmlns: "http://www.w3.org/2000/svg"
100
+ }, {
101
+ children: jsx("path", {
102
+ fillRule: "evenodd",
103
+ clipRule: "evenodd",
104
+ d: "M7.1324 1.03873e-06C7.3802 -0.000345142 7.60376 0.145734 7.69863 0.369997C7.79351 0.59426 7.74098 0.852441 7.56558 1.02393L2.06773 6.41002L21.4248 6.41002C21.7483 6.43033 22 6.69327 22 7.0108C22 7.32833 21.7483 7.59127 21.4248 7.61159L2.09291 7.61159L7.56558 12.9755C7.80482 13.2098 7.80482 13.5898 7.56558 13.8242C7.32634 14.0586 6.93846 14.0586 6.69922 13.8242L0.188938 7.43641C0.12795 7.38371 0.079028 7.31896 0.0453844 7.24643C0.016382 7.17665 0.00100484 7.10217 5.16985e-05 7.02684L5.16988e-05 6.9997C-0.00215303 6.83464 0.0663595 6.67624 0.188938 6.56299L6.69922 0.175179C6.81433 0.0630217 6.97006 4.49058e-05 7.1324 1.03873e-06Z",
105
+ fill: "#00AA46"
106
+ }, void 0)
107
+ }), void 0);
108
+ };
109
+
110
+ var icons = {
111
+ ReadMore: ReadMore,
112
+ ArrowDown: ArrowDown,
113
+ ExternalLink: ExternalLink,
114
+ GreenCircle: GreenCircle,
115
+ RedCircle: RedCircle,
116
+ Arrow: Arrow
117
+ };
118
+ export { Arrow, ArrowDown, ExternalLink, GreenCircle, ReadMore, RedCircle, icons as default, icons };
@@ -0,0 +1,19 @@
1
+ import { __assign } from '../../_virtual/_tslib.js';
2
+ import { jsx } from 'react/jsx-runtime';
3
+
4
+ var SLogo = function SLogo(_a) {
5
+ var color = _a.color;
6
+ return jsx("svg", __assign({
7
+ xmlns: "http://www.w3.org/2000/svg",
8
+ viewBox: "0 0 800 800",
9
+ width: "60",
10
+ height: "60"
11
+ }, {
12
+ children: jsx("path", {
13
+ fill: color,
14
+ d: "M391.4 197.4C432 156.8 484.4 139 540 139h41.1v-39h-41.3c-66.1 0-128.1 21.8-176 69.8C315.6 218 294 279.6 294 347v101c0 3.7-.3 8.4-.9 11.6-1.4 7.5-4.5 13.7-9.5 18.7-4.5 4.5-10 7.1-14.2 8.6-3.6 1.3-8.2 2.3-13.1 3-10.9 1.6-37.4 2.2-37.4 2.2v121.2h35.9c45.8 0 87.8-13.9 119.3-45.3 31.4-31.4 45.3-71.6 45.3-114.9V347c0-32.7 10.4-63.3 34.4-87.3 24.1-24.1 54.8-34.5 86.9-34.5h5.6v46.6c-11 .7-18.7 1.8-28.6 4.9-10.5 3.3-20.6 8.9-29.3 17.5-14.7 14.6-20.8 33.3-20.8 52.7V453c0 56.7-18.1 108.8-58.9 149.5-40.6 40.6-93 58.4-148.6 58.4H219V700h41.4c66.1 0 128.1-21.8 176-69.8C484.4 582 506 520.4 506 453V352c0-3.7.3-8.4.9-11.6 1.4-7.5 4.5-13.7 9.5-18.7 4.5-4.5 10-7.1 14.2-8.6 3.6-1.3 8.2-2.3 13.1-3 10.9-1.6 37.4-2.2 37.4-2.2V186.7h-35.9c-45.8 0-87.8 13.9-119.3 45.3s-45.3 71.6-45.3 114.9V453c0 32.7-10.4 63.3-34.4 87.3-24.1 24-54.8 34.5-86.9 34.5h-5.6v-47.6c11-.7 19.3-2.1 28.6-4.9 10.6-3.2 20.6-7.9 29.3-16.6 14.7-14.6 20.8-33.3 20.8-52.7V346.9c.2-56.6 18.3-108.7 59-149.5"
15
+ }, void 0)
16
+ }), void 0);
17
+ };
18
+
19
+ export { SLogo };
@@ -0,0 +1,36 @@
1
+ import { __rest, __assign } from '../../_virtual/_tslib.js';
2
+ import { jsx } from 'react/jsx-runtime';
3
+ import { forwardRef } from 'react';
4
+ import { Accordion } from '@sok/design-system';
5
+ import { MainContainer } from './Accordion.styles.js';
6
+ import { parseHtmlContent } from '../utils.js';
7
+ var AccordionBlock = forwardRef(function (_a, ref) {
8
+ var contents = _a.contents,
9
+ anchor = _a.anchor,
10
+ rest = __rest(_a, ["contents", "anchor"]);
11
+
12
+ var items = [];
13
+ contents === null || contents === void 0 ? void 0 : contents.forEach(function (element, index) {
14
+ if (element.title) {
15
+ items.push({
16
+ id: index.toString(),
17
+ title: element.title,
18
+ content: jsx("div", {
19
+ dangerouslySetInnerHTML: {
20
+ __html: parseHtmlContent(element === null || element === void 0 ? void 0 : element.content)
21
+ }
22
+ }, void 0)
23
+ });
24
+ }
25
+ });
26
+ return jsx(MainContainer, __assign({
27
+ id: anchor
28
+ }, rest, {
29
+ ref: ref
30
+ }, {
31
+ children: jsx(Accordion, {
32
+ items: items
33
+ }, void 0)
34
+ }), void 0);
35
+ });
36
+ export { AccordionBlock, AccordionBlock as default };
@@ -0,0 +1,75 @@
1
+ import { __makeTemplateObject } from '../../_virtual/_tslib.js';
2
+ import styled, { css } from 'styled-components';
3
+ import media from '../../styles/media.js';
4
+ var MainContainer = styled.div.withConfig({
5
+ displayName: "Accordionstyles__MainContainer",
6
+ componentId: "sc-uzmtwe-0"
7
+ })(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n .accordion-button {\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n font-weight: ", ";\n color: ", ";\n background-color: ", ";\n\n ", "\n\n ", "\n\n &:focus {\n outline: none;\n ", "\n }\n &:hover {\n ", "\n }\n }\n\n .accordion-content-box {\n background-color: ", " !important;\n }\n\n p,\n ul,\n ol {\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n font-weight: ", ";\n color: ", ";\n margin: revert;\n\n ", "\n\n ", "\n }\n"], ["\n .accordion-button {\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n font-weight: ", ";\n color: ", ";\n background-color: ", ";\n\n ", "\n\n ", "\n\n &:focus {\n outline: none;\n ", "\n }\n &:hover {\n ", "\n }\n }\n\n .accordion-content-box {\n background-color: ", " !important;\n }\n\n p,\n ul,\n ol {\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n font-weight: ", ";\n color: ", ";\n margin: revert;\n\n ", "\n\n ", "\n }\n"])), function (_a) {
8
+ var theme = _a.theme;
9
+ return theme.components.accordion.fontFamily;
10
+ }, function (_a) {
11
+ var theme = _a.theme;
12
+ return theme.components.accordion.fontSizes.mobile.fontSize;
13
+ }, function (_a) {
14
+ var theme = _a.theme;
15
+ return theme.components.accordion.fontSizes.mobile.lineHeight;
16
+ }, function (_a) {
17
+ var theme = _a.theme;
18
+ return theme.components.accordion.fontWeight;
19
+ }, function (_a) {
20
+ var theme = _a.theme;
21
+ return theme.components.accordion.buttonTextColor;
22
+ }, function (_a) {
23
+ var theme = _a.theme;
24
+ return theme.components.accordion.buttonBackgroundColor;
25
+ }, media.tablet(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n font-size: ", ";\n line-height: ", ";\n "], ["\n font-size: ", ";\n line-height: ", ";\n "])), function (_a) {
26
+ var theme = _a.theme;
27
+ return theme.components.accordion.fontSizes.tablet.fontSize;
28
+ }, function (_a) {
29
+ var theme = _a.theme;
30
+ return theme.components.accordion.fontSizes.tablet.lineHeight;
31
+ }), media.tablet(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n font-size: ", ";\n line-height: ", ";\n "], ["\n font-size: ", ";\n line-height: ", ";\n "])), function (_a) {
32
+ var theme = _a.theme;
33
+ return theme.components.accordion.fontSizes.desktop.fontSize;
34
+ }, function (_a) {
35
+ var theme = _a.theme;
36
+ return theme.components.accordion.fontSizes.desktop.lineHeight;
37
+ }), function (_a) {
38
+ var theme = _a.theme;
39
+ return theme.components.accordion.focusColor && css(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n box-shadow: 0px 0px 2px 2px ", ";\n "], ["\n box-shadow: 0px 0px 2px 2px ", ";\n "])), theme.components.accordion.focusColor);
40
+ }, function (_a) {
41
+ var theme = _a.theme;
42
+ return theme.components.accordion.hoverColor && css(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n background-color: ", " !important;\n "], ["\n background-color: ", " !important;\n "])), theme.components.accordion.hoverColor);
43
+ }, function (_a) {
44
+ var theme = _a.theme;
45
+ return theme.components.accordion.itemBackgroundColor;
46
+ }, function (_a) {
47
+ var theme = _a.theme;
48
+ return theme.components.accordion.fontFamily;
49
+ }, function (_a) {
50
+ var theme = _a.theme;
51
+ return theme.components.accordion.fontSizes.mobile.fontSize;
52
+ }, function (_a) {
53
+ var theme = _a.theme;
54
+ return theme.components.accordion.fontSizes.mobile.lineHeight;
55
+ }, function (_a) {
56
+ var theme = _a.theme;
57
+ return theme.components.accordion.fontWeight;
58
+ }, function (_a) {
59
+ var theme = _a.theme;
60
+ return theme.components.accordion.itemTextColor;
61
+ }, media.tablet(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n font-size: ", ";\n line-height: ", ";\n "], ["\n font-size: ", ";\n line-height: ", ";\n "])), function (_a) {
62
+ var theme = _a.theme;
63
+ return theme.components.accordion.fontSizes.tablet.fontSize;
64
+ }, function (_a) {
65
+ var theme = _a.theme;
66
+ return theme.components.accordion.fontSizes.tablet.lineHeight;
67
+ }), media.tablet(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n font-size: ", ";\n line-height: ", ";\n "], ["\n font-size: ", ";\n line-height: ", ";\n "])), function (_a) {
68
+ var theme = _a.theme;
69
+ return theme.components.accordion.fontSizes.desktop.fontSize;
70
+ }, function (_a) {
71
+ var theme = _a.theme;
72
+ return theme.components.accordion.fontSizes.desktop.lineHeight;
73
+ }));
74
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7;
75
+ export { MainContainer };
@@ -0,0 +1,35 @@
1
+ import { __read, __assign } from '../../_virtual/_tslib.js';
2
+ import { jsx } from 'react/jsx-runtime';
3
+ import { Wrapper } from './AnimationWrapper.styles.js';
4
+ import VisibilitySensor from 'react-visibility-sensor';
5
+ import { noAnimationComponents } from '../constants.js';
6
+ import { useState } from 'react';
7
+
8
+ var AnimationWrapper = function AnimationWrapper(_a) {
9
+ var children = _a.children,
10
+ blockName = _a.blockName;
11
+
12
+ var _b = __read(useState(false), 2),
13
+ visible = _b[0],
14
+ setVisible = _b[1];
15
+
16
+ var onVisibilityChange = function onVisibilityChange(isVisible) {
17
+ if (isVisible && !visible) {
18
+ setVisible(true);
19
+ }
20
+ };
21
+
22
+ return jsx(VisibilitySensor, __assign({
23
+ partialVisibility: true,
24
+ onChange: onVisibilityChange
25
+ }, {
26
+ children: jsx(Wrapper, __assign({
27
+ visible: visible,
28
+ animate: !noAnimationComponents.includes(blockName)
29
+ }, {
30
+ children: children
31
+ }), void 0)
32
+ }), void 0);
33
+ };
34
+
35
+ export { AnimationWrapper, AnimationWrapper as default };
@@ -0,0 +1,26 @@
1
+ import { __makeTemplateObject } from '../../_virtual/_tslib.js';
2
+ import styled, { keyframes, css } from 'styled-components';
3
+ var FadeIn = keyframes(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n"], ["\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n"])));
4
+ var animations = {
5
+ fadeIn: {
6
+ animation: FadeIn,
7
+ duration: '0.8s',
8
+ timing: 'linear'
9
+ }
10
+ };
11
+ var animation = css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n visibility: ", ";\n animation: ", " ", "\n ", ";\n"], ["\n visibility: ", ";\n animation: ", " ", "\n ", ";\n"])), function (_a) {
12
+ var visible = _a.visible;
13
+ return visible ? 'visible' : 'hidden';
14
+ }, function (_a) {
15
+ var visible = _a.visible;
16
+ return visible ? animations.fadeIn.animation : '';
17
+ }, animations.fadeIn.duration, animations.fadeIn.timing);
18
+ var Wrapper = styled.div.withConfig({
19
+ displayName: "AnimationWrapperstyles__Wrapper",
20
+ componentId: "sc-1gmnj4s-0"
21
+ })(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n width: 100%;\n height: 100%;\n ", ";\n"], ["\n width: 100%;\n height: 100%;\n ", ";\n"])), function (_a) {
22
+ var animate = _a.animate;
23
+ return animate && animation;
24
+ });
25
+ var templateObject_1, templateObject_2, templateObject_3;
26
+ export { Wrapper, animations };