@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
@@ -0,0 +1,281 @@
1
+ import { __makeTemplateObject } from '../../_virtual/_tslib.js';
2
+ import MultiCarousel from 'react-multi-carousel';
3
+ import styled, { css } from 'styled-components';
4
+ import { GatsbyImage } from 'gatsby-plugin-image';
5
+ import media from '../../styles/media.js';
6
+ var CarouselContainer = styled.div.withConfig({
7
+ displayName: "CarouselNarrowstyles__CarouselContainer",
8
+ componentId: "sc-1e5qnfw-0"
9
+ })(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n overflow-x: hidden;\n"], ["\n overflow-x: hidden;\n"])));
10
+ var StyledCarousel = styled(MultiCarousel).withConfig({
11
+ displayName: "CarouselNarrowstyles__StyledCarousel",
12
+ componentId: "sc-1e5qnfw-1"
13
+ })(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n --maxWidth: ", ";\n --restrictedWidthContainerDesktopMarginLeft: ", ";\n\n width: 100%;\n align-items: stretch;\n padding-bottom: ", ";\n justify-content: ", ";\n\n ", "\n\n ", "\n\n ", "\n\n .react-multiple-carousel__arrow {\n top: 40%;\n z-index: 99;\n margin-right: ", ";\n overflow: overlay;\n filter: brightness(1);\n ", ";\n\n :hover {\n filter: brightness(0.8);\n }\n\n :before {\n color: ", ";\n }\n }\n\n .react-multi-carousel-dot > button {\n background-color: ", ";\n border: none;\n }\n\n .react-multi-carousel-dot--active > button {\n background-color: ", ";\n border: none;\n }\n"], ["\n --maxWidth: ", ";\n --restrictedWidthContainerDesktopMarginLeft: ", ";\n\n width: 100%;\n align-items: stretch;\n padding-bottom: ", ";\n justify-content: ", ";\n\n ", "\n\n ", "\n\n ", "\n\n .react-multiple-carousel__arrow {\n top: 40%;\n z-index: 99;\n margin-right: ", ";\n overflow: overlay;\n filter: brightness(1);\n ", ";\n\n :hover {\n filter: brightness(0.8);\n }\n\n :before {\n color: ", ";\n }\n }\n\n .react-multi-carousel-dot > button {\n background-color: ", ";\n border: none;\n }\n\n .react-multi-carousel-dot--active > button {\n background-color: ", ";\n border: none;\n }\n"])), function (_a) {
14
+ var theme = _a.theme;
15
+ return theme.components.restrictedWidthContainer.maxWidth;
16
+ }, function (_a) {
17
+ var theme = _a.theme;
18
+ return theme.components.restrictedWidthContainer.desktop.margin.left;
19
+ }, function (_a) {
20
+ var theme = _a.theme;
21
+ return theme.spacings.spacing32;
22
+ }, function (_a) {
23
+ var linkCount = _a.linkCount,
24
+ itemsToShow = _a.itemsToShow;
25
+ return linkCount <= itemsToShow.mobile ? 'center' : 'normal';
26
+ }, media.tablet(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n justify-content: ", ";\n "], ["\n justify-content: ", ";\n "])), function (_a) {
27
+ var linkCount = _a.linkCount,
28
+ itemsToShow = _a.itemsToShow;
29
+ return linkCount <= itemsToShow.tablet ? 'center' : 'normal';
30
+ }), media.desktop(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n justify-content: ", ";\n "], ["\n justify-content: ", ";\n "])), function (_a) {
31
+ var linkCount = _a.linkCount,
32
+ itemsToShow = _a.itemsToShow;
33
+ return linkCount <= itemsToShow.desktop ? 'center' : 'normal';
34
+ }), media.widerThanRestrictedWidthContainer(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n justify-content: ", ";\n "], ["\n justify-content: ", ";\n "])), function (_a) {
35
+ var linkCount = _a.linkCount,
36
+ itemsToShow = _a.itemsToShow;
37
+ return linkCount <= itemsToShow.ultraWide ? 'center' : 'normal';
38
+ }), function (_a) {
39
+ var theme = _a.theme;
40
+ return theme.spacings.spacing4;
41
+ }, function (_a) {
42
+ var theme = _a.theme;
43
+ return theme.components.carouselNarrow.arrowBackgroundColor ? "background-color:" + theme.components.carouselNarrow.arrowBackgroundColor + ";" : 'unset';
44
+ }, function (_a) {
45
+ var theme = _a.theme;
46
+ return theme.components.carouselNarrow.arrowColor;
47
+ }, function (_a) {
48
+ var theme = _a.theme;
49
+ return theme.components.carouselNarrow.dotColor.default;
50
+ }, function (_a) {
51
+ var theme = _a.theme;
52
+ return theme.components.carouselNarrow.dotColor.active;
53
+ });
54
+ var CarouselItem = styled.div.withConfig({
55
+ displayName: "CarouselNarrowstyles__CarouselItem",
56
+ componentId: "sc-1e5qnfw-2"
57
+ })(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n min-height: 20rem;\n height: 100%;\n background: ", ";\n margin: 0 ", ";\n display: flex;\n flex-direction: column;\n flex-wrap: wrap;\n box-sizing: border-box;\n background-color: ", ";\n ", "\n\n ", "\n\n ", "\n"], ["\n min-height: 20rem;\n height: 100%;\n background: ", ";\n margin: 0 ", ";\n display: flex;\n flex-direction: column;\n flex-wrap: wrap;\n box-sizing: border-box;\n background-color: ", ";\n ", "\n\n ", "\n\n ", "\n"])), function (_a) {
58
+ var theme = _a.theme;
59
+ return theme.components.carouselNarrow.carouselItem.backgroundColor;
60
+ }, function (_a) {
61
+ var theme = _a.theme;
62
+ return theme.spacings.spacing8;
63
+ }, function (_a) {
64
+ var color = _a.color;
65
+ return color ? color : 'white';
66
+ }, function (_a) {
67
+ var color = _a.color;
68
+ return !color && css(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.15);\n "], ["\n box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.15);\n "])));
69
+ }, media.tablet(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n flex-wrap: unset;\n min-height: 30rem;\n margin: 0 ", ";\n "], ["\n flex-wrap: unset;\n min-height: 30rem;\n margin: 0 ", ";\n "])), function (_a) {
70
+ var theme = _a.theme;
71
+ return theme.spacings.spacing8;
72
+ }), media.desktop(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n flex-wrap: unset;\n height: 100%;\n min-height: 30rem;\n margin: 0 ", ";\n "], ["\n flex-wrap: unset;\n height: 100%;\n min-height: 30rem;\n margin: 0 ", ";\n "])), function (_a) {
73
+ var theme = _a.theme;
74
+ return theme.spacings.spacing16;
75
+ }));
76
+ var ImageContainer = styled.div.withConfig({
77
+ displayName: "CarouselNarrowstyles__ImageContainer",
78
+ componentId: "sc-1e5qnfw-3"
79
+ })(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n display: ", ";\n width: 100%;\n height: ", ";\n\n ", "\n\n ", "\n"], ["\n display: ", ";\n width: 100%;\n height: ", ";\n\n ", "\n\n ", "\n"])), function (_a) {
80
+ var hasImage = _a.hasImage;
81
+ return hasImage ? 'block' : 'none';
82
+ }, function (_a) {
83
+ var theme = _a.theme;
84
+ return theme.components.carouselNarrow.mediaHeight.mobile;
85
+ }, media.tablet(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n width: ", ";\n height: ", ";\n max-height: unset;\n position: relative;\n "], ["\n width: ", ";\n height: ", ";\n max-height: unset;\n position: relative;\n "])), function (_a) {
86
+ var hasMainContent = _a.hasMainContent;
87
+ return hasMainContent ? '100%' : '100%';
88
+ }, function (_a) {
89
+ var theme = _a.theme;
90
+ return theme.components.carouselNarrow.mediaHeight.tablet;
91
+ }), media.desktop(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n width: ", ";\n height: ", ";\n max-height: unset;\n position: relative;\n "], ["\n width: ", ";\n height: ", ";\n max-height: unset;\n position: relative;\n "])), function (_a) {
92
+ var hasMainContent = _a.hasMainContent;
93
+ return hasMainContent ? '100%' : '100%';
94
+ }, function (_a) {
95
+ var theme = _a.theme;
96
+ return theme.components.carouselNarrow.mediaHeight.desktop;
97
+ }));
98
+ var ImageCSS = css(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n width: 100%;\n height: 100%;\n object-fit: cover;\n pointer-events: none;\n user-select: none;\n"], ["\n width: 100%;\n height: 100%;\n object-fit: cover;\n pointer-events: none;\n user-select: none;\n"])));
99
+ var ResponsiveImageCSS = css(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n ", "\n\n ", "\n"], ["\n ", "\n\n ", "\n"])), media.tablet(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n max-height: ", ";\n position: ", ";\n "], ["\n max-height: ", ";\n position: ", ";\n "])), function (_a) {
100
+ var hasMainContent = _a.hasMainContent;
101
+ return !hasMainContent ? '70vh' : 'unset';
102
+ }, function (_a) {
103
+ var hasMainContent = _a.hasMainContent;
104
+ return !hasMainContent ? 'unset' : 'absolute !important';
105
+ }), media.desktop(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n max-height: ", ";\n position: ", ";\n "], ["\n max-height: ", ";\n position: ", ";\n "])), function (_a) {
106
+ var hasMainContent = _a.hasMainContent;
107
+ return !hasMainContent ? '70vh' : 'unset';
108
+ }, function (_a) {
109
+ var hasMainContent = _a.hasMainContent;
110
+ return !hasMainContent ? 'unset' : 'unset';
111
+ }));
112
+ var StaticImage = styled.img.withConfig({
113
+ displayName: "CarouselNarrowstyles__StaticImage",
114
+ componentId: "sc-1e5qnfw-4"
115
+ })(templateObject_17 || (templateObject_17 = __makeTemplateObject(["\n ", ";\n ", ";\n"], ["\n ", ";\n ", ";\n"])), ImageCSS, ResponsiveImageCSS);
116
+ var DynamicImage = styled(GatsbyImage).withConfig({
117
+ displayName: "CarouselNarrowstyles__DynamicImage",
118
+ componentId: "sc-1e5qnfw-5"
119
+ })(templateObject_18 || (templateObject_18 = __makeTemplateObject(["\n ", ";\n ", ";\n"], ["\n ", ";\n ", ";\n"])), ImageCSS, ResponsiveImageCSS);
120
+ styled.div.withConfig({
121
+ displayName: "CarouselNarrowstyles__ImageInTextContainer",
122
+ componentId: "sc-1e5qnfw-6"
123
+ })(templateObject_19 || (templateObject_19 = __makeTemplateObject(["\n width: 100%;\n"], ["\n width: 100%;\n"])));
124
+ styled(GatsbyImage).withConfig({
125
+ displayName: "CarouselNarrowstyles__DynamicImageInText",
126
+ componentId: "sc-1e5qnfw-7"
127
+ })(templateObject_20 || (templateObject_20 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), ImageCSS);
128
+ styled.img.withConfig({
129
+ displayName: "CarouselNarrowstyles__StaticImageInText",
130
+ componentId: "sc-1e5qnfw-8"
131
+ })(templateObject_21 || (templateObject_21 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), ImageCSS);
132
+ var StyledSVG = styled.img.withConfig({
133
+ displayName: "CarouselNarrowstyles__StyledSVG",
134
+ componentId: "sc-1e5qnfw-9"
135
+ })(templateObject_22 || (templateObject_22 = __makeTemplateObject(["\n ", ";\n object-fit: unset;\n"], ["\n ", ";\n object-fit: unset;\n"])), ImageCSS);
136
+ var ContentContainer = styled.div.withConfig({
137
+ displayName: "CarouselNarrowstyles__ContentContainer",
138
+ componentId: "sc-1e5qnfw-10"
139
+ })(templateObject_25 || (templateObject_25 = __makeTemplateObject(["\n display: block;\n width: 100%;\n height: unset;\n box-sizing: border-box;\n padding: ", ";\n\n ", "\n\n ", "\n"], ["\n display: block;\n width: 100%;\n height: unset;\n box-sizing: border-box;\n padding: ", ";\n\n ", "\n\n ", "\n"])), function (_a) {
140
+ var theme = _a.theme;
141
+ return theme.spacings.spacing32 + " " + theme.spacings.spacing16;
142
+ }, media.tablet(templateObject_23 || (templateObject_23 = __makeTemplateObject(["\n padding: ", ";\n "], ["\n padding: ", ";\n "])), function (_a) {
143
+ var theme = _a.theme;
144
+ return theme.spacings.spacing32;
145
+ }), media.desktop(templateObject_24 || (templateObject_24 = __makeTemplateObject(["\n padding: ", ";\n "], ["\n padding: ", ";\n "])), function (_a) {
146
+ var theme = _a.theme;
147
+ return theme.spacings.spacing32;
148
+ }));
149
+ styled.div.withConfig({
150
+ displayName: "CarouselNarrowstyles__Category",
151
+ componentId: "sc-1e5qnfw-11"
152
+ })(templateObject_28 || (templateObject_28 = __makeTemplateObject(["\n font-family: ", ";\n font-weight: ", ";\n font-size: ", ";\n line-height: ", ";\n color: ", ";\n text-transform: ", ";\n\n ", "\n\n ", "\n"], ["\n font-family: ", ";\n font-weight: ", ";\n font-size: ", ";\n line-height: ", ";\n color: ", ";\n text-transform: ", ";\n\n ", "\n\n ", "\n"])), function (_a) {
153
+ var theme = _a.theme;
154
+ return theme.components.carouselNarrow.category.fontFamily;
155
+ }, function (_a) {
156
+ var theme = _a.theme;
157
+ return theme.components.carouselNarrow.category.fontWeight;
158
+ }, function (_a) {
159
+ var theme = _a.theme;
160
+ return theme.components.carouselNarrow.category.fontSizes.mobile.fontSize;
161
+ }, function (_a) {
162
+ var theme = _a.theme;
163
+ return theme.components.carouselNarrow.category.fontSizes.mobile.lineHeight;
164
+ }, function (_a) {
165
+ var theme = _a.theme;
166
+ return theme.components.carouselNarrow.category.color;
167
+ }, function (_a) {
168
+ var theme = _a.theme;
169
+ return theme.components.carouselNarrow.category.textTransform;
170
+ }, media.tablet(templateObject_26 || (templateObject_26 = __makeTemplateObject(["\n font-size: ", ";\n line-height: ", ";\n "], ["\n font-size: ", ";\n line-height: ", ";\n "])), function (_a) {
171
+ var theme = _a.theme;
172
+ return theme.components.carouselNarrow.category.fontSizes.tablet.fontSize;
173
+ }, function (_a) {
174
+ var theme = _a.theme;
175
+ return theme.components.carouselNarrow.category.fontSizes.tablet.lineHeight;
176
+ }), media.desktop(templateObject_27 || (templateObject_27 = __makeTemplateObject(["\n font-size: ", ";\n line-height: ", ";\n "], ["\n font-size: ", ";\n line-height: ", ";\n "])), function (_a) {
177
+ var theme = _a.theme;
178
+ return theme.components.carouselNarrow.category.fontSizes.desktop.fontSize;
179
+ }, function (_a) {
180
+ var theme = _a.theme;
181
+ return theme.components.carouselNarrow.category.fontSizes.desktop.lineHeight;
182
+ }));
183
+ var Title = styled.div.withConfig({
184
+ displayName: "CarouselNarrowstyles__Title",
185
+ componentId: "sc-1e5qnfw-12"
186
+ })(templateObject_31 || (templateObject_31 = __makeTemplateObject(["\n font-family: ", ";\n font-weight: ", ";\n font-size: ", ";\n line-height: initial;\n color: ", ";\n text-transform: ", ";\n word-wrap: break-word;\n\n margin-bottom: ", ";\n\n b {\n color: ", ";\n font-weight: inherit;\n }\n\n ", "\n\n ", "\n"], ["\n font-family: ", ";\n font-weight: ", ";\n font-size: ", ";\n line-height: initial;\n color: ", ";\n text-transform: ", ";\n word-wrap: break-word;\n\n margin-bottom: ", ";\n\n b {\n color: ", ";\n font-weight: inherit;\n }\n\n ", "\n\n ", "\n"])), function (_a) {
187
+ var theme = _a.theme;
188
+ return theme.components.carouselNarrow.title.fontFamily;
189
+ }, function (_a) {
190
+ var theme = _a.theme;
191
+ return theme.components.carouselNarrow.title.fontWeight;
192
+ }, function (_a) {
193
+ var theme = _a.theme;
194
+ return theme.components.carouselNarrow.title.fontSizes.mobile.fontSize;
195
+ }, function (_a) {
196
+ var theme = _a.theme;
197
+ return theme.components.carouselNarrow.title.color;
198
+ }, function (_a) {
199
+ var theme = _a.theme;
200
+ return theme.components.carouselNarrow.title.textTransform;
201
+ }, function (_a) {
202
+ var theme = _a.theme;
203
+ return theme.spacings.spacing16;
204
+ }, function (_a) {
205
+ var theme = _a.theme;
206
+ return theme.colors.primary900;
207
+ }, media.tablet(templateObject_29 || (templateObject_29 = __makeTemplateObject(["\n margin-bottom: ", ";\n font-size: ", ";\n line-height: ", ";\n "], ["\n margin-bottom: ", ";\n font-size: ", ";\n line-height: ", ";\n "])), function (_a) {
208
+ var theme = _a.theme;
209
+ return theme.spacings.spacing32;
210
+ }, function (_a) {
211
+ var theme = _a.theme;
212
+ return theme.components.carouselNarrow.title.fontSizes.tablet.fontSize;
213
+ }, function (_a) {
214
+ var theme = _a.theme;
215
+ return theme.components.carouselNarrow.title.fontSizes.tablet.lineHeight;
216
+ }), media.desktop(templateObject_30 || (templateObject_30 = __makeTemplateObject(["\n margin-bottom: ", ";\n font-size: ", ";\n line-height: ", ";\n "], ["\n margin-bottom: ", ";\n font-size: ", ";\n line-height: ", ";\n "])), function (_a) {
217
+ var theme = _a.theme;
218
+ return theme.spacings.spacing32;
219
+ }, function (_a) {
220
+ var theme = _a.theme;
221
+ return theme.components.carouselNarrow.title.fontSizes.desktop.fontSize;
222
+ }, function (_a) {
223
+ var theme = _a.theme;
224
+ return theme.components.carouselNarrow.title.fontSizes.desktop.lineHeight;
225
+ }));
226
+ var Description = styled.div.withConfig({
227
+ displayName: "CarouselNarrowstyles__Description",
228
+ componentId: "sc-1e5qnfw-13"
229
+ })(templateObject_32 || (templateObject_32 = __makeTemplateObject(["\n font-family: ", ";\n font-weight: ", ";\n font-size: ", ";\n line-height: ", ";\n color: ", ";\n margin-bottom: ", ";\n word-wrap: break-word;\n"], ["\n font-family: ", ";\n font-weight: ", ";\n font-size: ", ";\n line-height: ", ";\n color: ", ";\n margin-bottom: ", ";\n word-wrap: break-word;\n"])), function (_a) {
230
+ var theme = _a.theme;
231
+ return theme.components.carouselNarrow.description.fontFamily;
232
+ }, function (_a) {
233
+ var theme = _a.theme;
234
+ return theme.components.carouselNarrow.description.fontWeight;
235
+ }, function (_a) {
236
+ var theme = _a.theme;
237
+ return theme.components.carouselNarrow.description.fontSizes.mobile.fontSize;
238
+ }, function (_a) {
239
+ var theme = _a.theme;
240
+ return theme.components.carouselNarrow.description.fontSizes.mobile.lineHeight;
241
+ }, function (_a) {
242
+ var theme = _a.theme;
243
+ return theme.components.carouselNarrow.description.color;
244
+ }, function (_a) {
245
+ var theme = _a.theme;
246
+ return theme.spacings.spacing32;
247
+ });
248
+ styled.div.withConfig({
249
+ displayName: "CarouselNarrowstyles__ButtonContainer",
250
+ componentId: "sc-1e5qnfw-14"
251
+ })(templateObject_33 || (templateObject_33 = __makeTemplateObject(["\n margin-bottom: ", ";\n"], ["\n margin-bottom: ", ";\n"])), function (_a) {
252
+ var theme = _a.theme;
253
+ return theme.spacings.spacing32;
254
+ });
255
+ var StyledLink = styled.a.withConfig({
256
+ displayName: "CarouselNarrowstyles__StyledLink",
257
+ componentId: "sc-1e5qnfw-15"
258
+ })(templateObject_34 || (templateObject_34 = __makeTemplateObject(["\n margin: 0px ", ";\n font-family: ", ";\n font-weight: ", ";\n font-size: ", ";\n line-height: ", ";\n color: ", ";\n border-bottom: 2px solid ", ";\n\n cursor: pointer;\n\n :hover {\n filter: opacity(0.5);\n }\n"], ["\n margin: 0px ", ";\n font-family: ", ";\n font-weight: ", ";\n font-size: ", ";\n line-height: ", ";\n color: ", ";\n border-bottom: 2px solid ", ";\n\n cursor: pointer;\n\n :hover {\n filter: opacity(0.5);\n }\n"])), function (_a) {
259
+ var theme = _a.theme;
260
+ return theme.spacings.spacing4;
261
+ }, function (_a) {
262
+ var theme = _a.theme;
263
+ return theme.components.carouselNarrow.link.fontFamily;
264
+ }, function (_a) {
265
+ var theme = _a.theme;
266
+ return theme.components.carouselNarrow.link.fontWeight;
267
+ }, function (_a) {
268
+ var theme = _a.theme;
269
+ return theme.components.carouselNarrow.link.fontSizes.mobile.fontSize;
270
+ }, function (_a) {
271
+ var theme = _a.theme;
272
+ return theme.components.carouselNarrow.link.fontSizes.mobile.lineHeight;
273
+ }, function (_a) {
274
+ var theme = _a.theme;
275
+ return theme.components.carouselNarrow.link.color;
276
+ }, function (_a) {
277
+ var theme = _a.theme;
278
+ return theme.components.carouselNarrow.link.color;
279
+ });
280
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17, templateObject_18, templateObject_19, templateObject_20, templateObject_21, templateObject_22, templateObject_23, templateObject_24, templateObject_25, templateObject_26, templateObject_27, templateObject_28, templateObject_29, templateObject_30, templateObject_31, templateObject_32, templateObject_33, templateObject_34;
281
+ export { CarouselContainer, CarouselItem, ContentContainer, Description, DynamicImage, ImageContainer, StaticImage, StyledCarousel, StyledLink, StyledSVG, Title };
@@ -0,0 +1,31 @@
1
+ import { __assign } from '../../_virtual/_tslib.js';
2
+ import { jsx } from 'react/jsx-runtime';
3
+ import BlockContent from '../BlockGenerator/BlockContent.js';
4
+ import { ColumnContainer, ColumnItem } from './Column.styles.js';
5
+
6
+ var Column = function Column(_a) {
7
+ var innerBlocks = _a.innerBlocks,
8
+ width = _a.width,
9
+ anchor = _a.anchor,
10
+ blockBackgroundColor = _a.blockBackgroundColor,
11
+ numberOfColumns = _a.numberOfColumns,
12
+ databaseId = _a.databaseId;
13
+ return jsx(ColumnContainer, __assign({
14
+ id: anchor,
15
+ width: width
16
+ }, {
17
+ children: innerBlocks.map(function (innerBlock, i) {
18
+ return jsx(ColumnItem, __assign({
19
+ width: numberOfColumns === 1 ? width : ''
20
+ }, {
21
+ children: jsx(BlockContent, {
22
+ block: innerBlock,
23
+ blockBackgroundColor: blockBackgroundColor,
24
+ databaseId: databaseId
25
+ }, void 0)
26
+ }), i);
27
+ })
28
+ }), void 0);
29
+ };
30
+
31
+ export { Column, Column as default };
@@ -0,0 +1,34 @@
1
+ import { __makeTemplateObject } from '../../_virtual/_tslib.js';
2
+ import styled from 'styled-components';
3
+ import media from '../../styles/media.js';
4
+ var ColumnContainer = styled.div.withConfig({
5
+ displayName: "Columnstyles__ColumnContainer",
6
+ componentId: "sc-1a0qy7c-0"
7
+ })(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n flex-grow: 1;\n min-width: 0;\n word-break: break-word;\n overflow-wrap: break-word;\n\n width: 100%;\n flex-basis: 100%;\n display: flex;\n flex-direction: column;\n\n ", "\n\n ", "\n\n > *:last-child {\n flex: 1;\n }\n"], ["\n flex-grow: 1;\n min-width: 0;\n word-break: break-word;\n overflow-wrap: break-word;\n\n width: 100%;\n flex-basis: 100%;\n display: flex;\n flex-direction: column;\n\n ", "\n\n ", "\n\n > *:last-child {\n flex: 1;\n }\n"])), media.tablet(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n margin-bottom: ", " !important;\n "], ["\n margin-bottom: ", " !important;\n "])), function (_a) {
8
+ var theme = _a.theme;
9
+ return theme.components.column.tablet.margin.bottom;
10
+ }), media.desktop(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n flex-basis: ", ";\n margin-bottom: ", " !important;\n "], ["\n flex-basis: ", ";\n margin-bottom: ", " !important;\n "])), function (_a) {
11
+ var width = _a.width;
12
+ return width;
13
+ }, function (_a) {
14
+ var theme = _a.theme;
15
+ return theme.components.column.desktop.margin.bottom;
16
+ }));
17
+ var ColumnItem = styled.div.withConfig({
18
+ displayName: "Columnstyles__ColumnItem",
19
+ componentId: "sc-1a0qy7c-1"
20
+ })(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n margin-bottom: ", ";\n\n ", "\n\n ", "\n"], ["\n margin-bottom: ", ";\n\n ", "\n\n ", "\n"])), function (_a) {
21
+ var theme = _a.theme;
22
+ return theme.components.column.columnItem.mobile.margin.bottom;
23
+ }, media.tablet(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n margin-bottom: ", ";\n "], ["\n margin-bottom: ", ";\n "])), function (_a) {
24
+ var theme = _a.theme;
25
+ return theme.components.column.columnItem.tablet.margin.bottom;
26
+ }), media.desktop(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n margin-bottom: ", ";\n\n // For Columns block with 1 col\n // with a width less than 100%\n ", "\n "], ["\n margin-bottom: ", ";\n\n // For Columns block with 1 col\n // with a width less than 100%\n ", "\n "])), function (_a) {
27
+ var theme = _a.theme;
28
+ return theme.components.column.columnItem.desktop.margin.bottom;
29
+ }, function (_a) {
30
+ var width = _a.width;
31
+ return width && "\n width: " + width + ";\n margin-left: auto;\n margin-right: auto;\n ";
32
+ }));
33
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6;
34
+ export { ColumnContainer, ColumnItem };
@@ -0,0 +1,38 @@
1
+ import { __assign } from '../../_virtual/_tslib.js';
2
+ import { jsx } from 'react/jsx-runtime';
3
+ import Column from '../Column/Column.js';
4
+ import { ColumnsContainer } from './Columns.styles.js';
5
+
6
+ var Columns = function Columns(_a) {
7
+ var _b, _c;
8
+
9
+ var block = _a.block,
10
+ databaseId = _a.databaseId; // Restructure the data into easier format to handle
11
+ // Information needed: all blocks inside a column and column width
12
+
13
+ var columns = (_b = block === null || block === void 0 ? void 0 : block.innerBlocks) === null || _b === void 0 ? void 0 : _b.map(function (innerBlock) {
14
+ return {
15
+ innerBlocks: innerBlock.innerBlocks,
16
+ width: innerBlock.attributes.width,
17
+ anchor: innerBlock.attributes.anchor
18
+ };
19
+ }); // WP returns empty width if they're equal
20
+
21
+ var defaultWidth = (100 / (columns === null || columns === void 0 ? void 0 : columns.length)).toFixed(2) + "%";
22
+ return jsx(ColumnsContainer, __assign({
23
+ id: (_c = block.attributes) === null || _c === void 0 ? void 0 : _c.anchor
24
+ }, {
25
+ children: columns === null || columns === void 0 ? void 0 : columns.map(function (column, i) {
26
+ return jsx(Column, {
27
+ innerBlocks: column.innerBlocks,
28
+ width: column.width || defaultWidth,
29
+ anchor: column.anchor,
30
+ numberOfColumns: columns.length,
31
+ blockBackgroundColor: block.attributes.backgroundColor,
32
+ databaseId: databaseId
33
+ }, i);
34
+ })
35
+ }), void 0);
36
+ };
37
+
38
+ export { Columns, Columns as default };
@@ -0,0 +1,21 @@
1
+ import { __makeTemplateObject } from '../../_virtual/_tslib.js';
2
+ import styled from 'styled-components';
3
+ import media from '../../styles/media.js';
4
+ var ColumnsContainer = styled.div.withConfig({
5
+ displayName: "Columnsstyles__ColumnsContainer",
6
+ componentId: "sc-lbdd0-0"
7
+ })(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: flex;\n box-sizing: border-box;\n flex-wrap: wrap;\n column-gap: ", ";\n\n /* ts-styled-plugin complains about syntax errors but the code is actually valid\n red underlines dissapear when calc(...) is put completely to 1 line\n */\n\n margin-bottom: calc(", " * -1px);\n\n ", "\n\n ", "\n"], ["\n display: flex;\n box-sizing: border-box;\n flex-wrap: wrap;\n column-gap: ", ";\n\n /* ts-styled-plugin complains about syntax errors but the code is actually valid\n red underlines dissapear when calc(...) is put completely to 1 line\n */\n\n margin-bottom: calc(", " * -1px);\n\n ", "\n\n ", "\n"])), function (_a) {
8
+ var theme = _a.theme;
9
+ return theme.components.columns.columnGap;
10
+ }, function (_a) {
11
+ var theme = _a.theme;
12
+ return parseFloat(theme.components.column.columnItem.mobile.margin.bottom);
13
+ }, media.tablet(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n margin-bottom: calc(\n ", " * -1px\n );\n "], ["\n margin-bottom: calc(\n ", " * -1px\n );\n "])), function (_a) {
14
+ var theme = _a.theme;
15
+ return parseFloat(theme.components.column.tablet.margin.bottom) + parseFloat(theme.components.column.columnItem.tablet.margin.bottom);
16
+ }), media.desktop(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n flex-wrap: nowrap;\n margin-bottom: calc(\n ", " * -1px\n );\n "], ["\n flex-wrap: nowrap;\n margin-bottom: calc(\n ", " * -1px\n );\n "])), function (_a) {
17
+ var theme = _a.theme;
18
+ return parseFloat(theme.components.column.desktop.margin.bottom) + parseFloat(theme.components.column.columnItem.desktop.margin.bottom);
19
+ }));
20
+ var templateObject_1, templateObject_2, templateObject_3;
21
+ export { ColumnsContainer };
@@ -0,0 +1,54 @@
1
+ import { __assign } from '../../_virtual/_tslib.js';
2
+ import { jsx } from 'react/jsx-runtime';
3
+ import { forwardRef } from 'react';
4
+ import { EmbedContainer, ResponsiveIFrame } from './Embed.styles.js';
5
+
6
+ var verifyMediaUrl = function verifyMediaUrl(url) {
7
+ var dreambrokerSiteKey = 'dreambroker.com';
8
+ var dreambrokerIFrameKey = 'iframe';
9
+ var youtubeSiteKey = 'youtu';
10
+ var watchKey = 'watch?v=';
11
+ var embedKey = 'embed';
12
+ var delimeter = '/';
13
+ var verifiedUrl = url;
14
+
15
+ var trimLastSlash = function trimLastSlash() {
16
+ verifiedUrl = verifiedUrl.replace(/\/$/, ''); // trim the last slash
17
+ };
18
+
19
+ if (verifiedUrl.includes(dreambrokerSiteKey) && !verifiedUrl.includes(dreambrokerIFrameKey)) {
20
+ trimLastSlash();
21
+ var index = verifiedUrl.lastIndexOf(delimeter);
22
+ verifiedUrl = verifiedUrl.slice(0, index) + "/" + dreambrokerIFrameKey + verifiedUrl.slice(index);
23
+ }
24
+
25
+ if (verifiedUrl.includes(youtubeSiteKey)) {
26
+ trimLastSlash();
27
+ verifiedUrl = verifiedUrl.replace(watchKey, "" + embedKey + delimeter);
28
+
29
+ if (!verifiedUrl.includes(embedKey)) {
30
+ var parsedUrl = verifiedUrl.split(delimeter);
31
+
32
+ if (parsedUrl.length > 3) {
33
+ verifiedUrl = "https://www.youtube.com/" + embedKey + "/" + parsedUrl[parsedUrl.length - 1];
34
+ }
35
+ }
36
+ }
37
+
38
+ return verifiedUrl;
39
+ };
40
+
41
+ var Embed = forwardRef(function (_a, ref) {
42
+ var url = _a.url,
43
+ anchor = _a.anchor;
44
+ var verifiedUrl = verifyMediaUrl(url);
45
+ return jsx(EmbedContainer, __assign({
46
+ id: anchor,
47
+ ref: ref
48
+ }, {
49
+ children: jsx(ResponsiveIFrame, {
50
+ src: verifiedUrl
51
+ }, void 0)
52
+ }), void 0);
53
+ });
54
+ export { Embed, Embed as default, verifyMediaUrl };
@@ -0,0 +1,12 @@
1
+ import { __makeTemplateObject } from '../../_virtual/_tslib.js';
2
+ import styled from 'styled-components';
3
+ var EmbedContainer = styled.div.withConfig({
4
+ displayName: "Embedstyles__EmbedContainer",
5
+ componentId: "sc-yc4477-0"
6
+ })(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: relative;\n width: 100%;\n overflow: hidden;\n padding-top: 56.25%; /* 16:9 Aspect Ratio (divide 9 by 16 = 0.5625) */\n"], ["\n position: relative;\n width: 100%;\n overflow: hidden;\n padding-top: 56.25%; /* 16:9 Aspect Ratio (divide 9 by 16 = 0.5625) */\n"])));
7
+ var ResponsiveIFrame = styled.iframe.withConfig({
8
+ displayName: "Embedstyles__ResponsiveIFrame",
9
+ componentId: "sc-yc4477-1"
10
+ })(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n width: 100%;\n height: 100%;\n border: 0;\n"], ["\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n width: 100%;\n height: 100%;\n border: 0;\n"])));
11
+ var templateObject_1, templateObject_2;
12
+ export { EmbedContainer, ResponsiveIFrame };
@@ -0,0 +1,63 @@
1
+ import { __rest, __assign } from '../../_virtual/_tslib.js';
2
+ import { jsx, jsxs } from 'react/jsx-runtime';
3
+ import React, { forwardRef } from 'react';
4
+ import RestrictedWidthContainer from '../RestrictedWidthContainer/RestrictedWidthContainer.js';
5
+ import { FooterContainer, ContentContainer, LogoContainer, Logo, LinksContainer, CookieLinkButton, StyledLink, FooterLinkDivider } from './Footer.styles.js';
6
+ import { SLogo } from '../../assets/logos/logos.js';
7
+ import { parseLink, parseInternalLink } from '../utils.js';
8
+ var Footer = forwardRef(function (_a, ref) {
9
+ var links = _a.links,
10
+ _b = _a.language,
11
+ language = _b === void 0 ? 'FI' : _b,
12
+ logo = _a.logo,
13
+ logoUrl = _a.logoUrl,
14
+ rest = __rest(_a, ["links", "language", "logo", "logoUrl"]);
15
+
16
+ var onCookieLinkButtonClick = function onCookieLinkButtonClick(e, language) {
17
+ e.preventDefault();
18
+
19
+ if (typeof window === 'object' && typeof window.consentComponentApi === 'object') {
20
+ window.consentComponentApi.changeConsentUiLanguage(language.toLowerCase());
21
+ window.consentComponentApi.showConsentChooser();
22
+ } else if (typeof window === 'object' && typeof window.UC_UI === 'object') {
23
+ window.UC_UI.updateLanguage((language === null || language === void 0 ? void 0 : language.toLowerCase()) || 'fi');
24
+ window.UC_UI.showSecondLayer();
25
+ }
26
+ };
27
+
28
+ return jsx(FooterContainer, __assign({}, rest, {
29
+ ref: ref
30
+ }, {
31
+ children: jsx(RestrictedWidthContainer, {
32
+ children: jsxs(ContentContainer, {
33
+ children: [jsx(LogoContainer, {
34
+ children: logo ? logo : logoUrl ? jsx(Logo, {
35
+ src: logoUrl
36
+ }, void 0) : jsx(SLogo, {
37
+ color: "#FFFFFF"
38
+ }, void 0)
39
+ }, void 0), links && links.length > 0 && jsx(LinksContainer, {
40
+ children: links.map(function (link, i) {
41
+ return jsxs(React.Fragment, {
42
+ children: [link.path === '#cookies' ? jsx(CookieLinkButton, __assign({
43
+ onClick: function onClick(e) {
44
+ return onCookieLinkButtonClick(e, language);
45
+ }
46
+ }, {
47
+ children: link === null || link === void 0 ? void 0 : link.label
48
+ }), i) : jsx(StyledLink, __assign({
49
+ href: parseLink(link.path) ? link.path : parseInternalLink(link.path),
50
+ target: parseLink(link.path) ? '__blank' : '_self'
51
+ }, {
52
+ children: link.label
53
+ }), void 0), i < links.length - 1 && jsx(FooterLinkDivider, {
54
+ children: " | "
55
+ }, void 0)]
56
+ }, i);
57
+ })
58
+ }, void 0)]
59
+ }, void 0)
60
+ }, void 0)
61
+ }), void 0);
62
+ });
63
+ export { Footer, Footer as default };
@@ -0,0 +1,67 @@
1
+ import { __makeTemplateObject } from '../../_virtual/_tslib.js';
2
+ import styled, { css } from 'styled-components';
3
+ var LinkCss = css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n font-family: ", ";\n font-weight: ", ";\n font-size: ", ";\n color: ", ";\n word-break: break-word;\n text-align: center;\n margin: ", ";\n padding: 0;\n &:hover {\n filter: brightness(0.8);\n }\n"], ["\n font-family: ", ";\n font-weight: ", ";\n font-size: ", ";\n color: ", ";\n word-break: break-word;\n text-align: center;\n margin: ", ";\n padding: 0;\n &:hover {\n filter: brightness(0.8);\n }\n"])), function (_a) {
4
+ var theme = _a.theme;
5
+ return theme.components.footer.fontFamily;
6
+ }, function (_a) {
7
+ var theme = _a.theme;
8
+ return theme.components.footer.fontWeight;
9
+ }, function (_a) {
10
+ var theme = _a.theme;
11
+ return theme.components.footer.fontSizes.mobile.fontSize;
12
+ }, function (_a) {
13
+ var theme = _a.theme;
14
+ return theme.components.footer.linkColor;
15
+ }, function (_a) {
16
+ var theme = _a.theme;
17
+ return theme.spacings.spacing4;
18
+ });
19
+ var FooterContainer = styled.footer.withConfig({
20
+ displayName: "Footerstyles__FooterContainer",
21
+ componentId: "sc-hmmovc-0"
22
+ })(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n margin-top: auto;\n padding: ", ";\n background-color: ", ";\n"], ["\n width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n margin-top: auto;\n padding: ", ";\n background-color: ", ";\n"])), function (_a) {
23
+ var theme = _a.theme;
24
+ return theme.spacings.spacing32 + " 0}";
25
+ }, function (_a) {
26
+ var theme = _a.theme;
27
+ return theme.components.footer.backgroundColor;
28
+ });
29
+ var ContentContainer = styled.div.withConfig({
30
+ displayName: "Footerstyles__ContentContainer",
31
+ componentId: "sc-hmmovc-1"
32
+ })(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n width: 100%;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n row-gap: ", ";\n"], ["\n width: 100%;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n row-gap: ", ";\n"])), function (_a) {
33
+ var theme = _a.theme;
34
+ return theme.spacings.spacing16;
35
+ });
36
+ var LogoContainer = styled.div.withConfig({
37
+ displayName: "Footerstyles__LogoContainer",
38
+ componentId: "sc-hmmovc-2"
39
+ })(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n"])));
40
+ var Logo = styled.img.withConfig({
41
+ displayName: "Footerstyles__Logo",
42
+ componentId: "sc-hmmovc-3"
43
+ })(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n height: 100%;\n"], ["\n height: 100%;\n"])));
44
+ var LinksContainer = styled.div.withConfig({
45
+ displayName: "Footerstyles__LinksContainer",
46
+ componentId: "sc-hmmovc-4"
47
+ })(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n align-items: center;\n justify-content: center;\n"], ["\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n align-items: center;\n justify-content: center;\n"])));
48
+ var StyledLink = styled.a.withConfig({
49
+ displayName: "Footerstyles__StyledLink",
50
+ componentId: "sc-hmmovc-5"
51
+ })(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), LinkCss);
52
+ var FooterLinkDivider = styled.span.withConfig({
53
+ displayName: "Footerstyles__FooterLinkDivider",
54
+ componentId: "sc-hmmovc-6"
55
+ })(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n color: ", ";\n font-weight: ", ";\n"], ["\n color: ", ";\n font-weight: ", ";\n"])), function (_a) {
56
+ var theme = _a.theme;
57
+ return theme.components.footer.linkColor;
58
+ }, function (_a) {
59
+ var theme = _a.theme;
60
+ return theme.components.footer.fontWeight;
61
+ });
62
+ var CookieLinkButton = styled.button.withConfig({
63
+ displayName: "Footerstyles__CookieLinkButton",
64
+ componentId: "sc-hmmovc-7"
65
+ })(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n ", ";\n background: none;\n border: none;\n cursor: pointer;\n"], ["\n ", ";\n background: none;\n border: none;\n cursor: pointer;\n"])), LinkCss);
66
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9;
67
+ export { ContentContainer, CookieLinkButton, FooterContainer, FooterLinkDivider, LinkCss, LinksContainer, Logo, LogoContainer, StyledLink };