luna-one 3.1.593 → 3.1.595

Sign up to get free protection for your applications and to get access to all the features.
Files changed (411) hide show
  1. package/dist/index.js +15 -294
  2. package/dist/luna/components/2x2/2x2.stories.js +456 -0
  3. package/dist/luna/components/2x2/2x2Documentation.mdx +77 -0
  4. package/dist/luna/components/Accordion/Accordion.stories.js +100 -0
  5. package/dist/luna/components/Accordion/AccordionDocumentation.mdx +46 -0
  6. package/dist/luna/components/AdminCategoryData/AdminCategoryData.stories.js +43 -0
  7. package/dist/luna/components/AdminCategoryData/CategoryTranslationData.js +4 -4
  8. package/dist/luna/components/AdminProductData/AdminProductData.js +4 -4
  9. package/dist/luna/components/AdminProductData/AdminProductData.stories.js +44 -0
  10. package/dist/luna/components/BlockListItems/BlockListItem.stories.js +2381 -0
  11. package/dist/luna/components/BlockListItems/BlockListItemsDocumentation.mdx +339 -0
  12. package/dist/luna/components/BrowserSupportBanner/BrowserSupportBrowser.stories.js +19 -0
  13. package/dist/luna/components/CTAButtons/CTAButtons.stories.js +142 -0
  14. package/dist/luna/components/CTAButtons/CTAButtonsDocumentation.mdx +33 -0
  15. package/dist/luna/components/Carousel/Carousel.stories.js +257 -0
  16. package/dist/luna/components/Carousel/CarouselDocumentation.mdx +161 -0
  17. package/dist/luna/components/ComparisonTable/ComparisonTable.stories.js +608 -0
  18. package/dist/luna/components/ComparisonTable/ComparisonTableDocumentation.mdx +159 -0
  19. package/dist/luna/components/CtaWithHeader/CTAHeaderText.stories.js +192 -0
  20. package/dist/luna/components/CtaWithHeader/CTAHeaderTextDocumentation.mdx +45 -0
  21. package/dist/luna/components/DataPoint/DataPoint.stories.js +235 -0
  22. package/dist/luna/components/DataPoint/DataPointDocumentation.mdx +40 -0
  23. package/dist/luna/components/EventCard/EventCard.js +3 -3
  24. package/dist/luna/components/EventCard/EventCard.stories.js +56 -0
  25. package/dist/luna/components/EventCard/EventCardDocumentation.mdx +46 -0
  26. package/dist/luna/components/FilterHero/FilterHero.stories.js +129 -0
  27. package/dist/luna/components/FilterSection/FilterSection.stories.js +174 -0
  28. package/dist/luna/{other-organisms → components}/Flyout/Flyout.js +4 -5
  29. package/dist/luna/components/Flyout/Flyout.stories.js +216 -0
  30. package/dist/luna/components/Flyout/FlyoutDocumentation.mdx +60 -0
  31. package/dist/luna/components/Footer/Footer.stories.js +418 -0
  32. package/dist/luna/components/Footer/FooterDocumentation.mdx +133 -0
  33. package/dist/{application → luna}/components/FooterHandler/FooterHandler.js +1 -1
  34. package/dist/luna/components/FullBackgroundHero/FullBackgroundHero.stories.js +574 -0
  35. package/dist/luna/components/FullBackgroundHero/FullBackgroundHeroDocumentation.mdx +94 -0
  36. package/dist/luna/components/HTMLEmbed/HTMLEmbed.stories.js +136 -0
  37. package/dist/luna/components/HTMLEmbed/HTMLEmbedDocumentation.mdx +31 -0
  38. package/dist/luna/components/Header/Header.stories.js +75 -0
  39. package/dist/luna/components/Header/HeaderDocumentation.mdx +24 -0
  40. package/dist/luna/components/IconTextList/IconTextList.stories.js +100 -0
  41. package/dist/luna/components/IconTextList/IconTextListDocumentation.mdx +46 -0
  42. package/dist/luna/components/ImageGallery/ImageGallery.stories.js +194 -0
  43. package/dist/luna/components/ImageGallery/ImageGalleryDocumentation.mdx +90 -0
  44. package/dist/luna/components/InPageJumpNav/InPageJumpNav.stories.js +104 -0
  45. package/dist/luna/components/InPageJumpNav/InPageJumpNavDocumentation.mdx +23 -0
  46. package/dist/luna/components/JobPosting/JobPosting.stories.js +76 -0
  47. package/dist/luna/components/JobPosting/JobPostingDocumentation.mdx +69 -0
  48. package/dist/luna/{other-organisms → components}/LanguageSelector/LanguageSelector.js +3 -4
  49. package/dist/luna/components/LanguageSelector/LanguageSelector.stories.js +128 -0
  50. package/dist/luna/components/LanguageSelector/LanguageSelectorDocumentation.mdx +120 -0
  51. package/dist/luna/components/LinkList/LinkList.stories.js +170 -0
  52. package/dist/luna/components/LinkList/LinkListDocumentation.mdx +54 -0
  53. package/dist/luna/components/LoadingSpinner/LoadingSpinner.stories.js +53 -0
  54. package/dist/luna/components/Login/Login.js +3 -4
  55. package/dist/luna/components/Login/Login.stories.js +86 -0
  56. package/dist/luna/components/MarketoForm/MarketoForm.stories.js +65 -0
  57. package/dist/luna/components/MarketoForm/MarketoFormDocumentation.mdx +1 -0
  58. package/dist/luna/components/MegaMenu/MegaMenu.js +6 -7
  59. package/dist/luna/components/MegaMenu/menu-generators/FullSubMenu.js +1 -1
  60. package/dist/luna/components/MegaMenu/menu-generators/PartialSubMenu.js +4 -5
  61. package/dist/luna/components/MegaMenu/menu-generators/SubMenu.js +16 -14
  62. package/dist/luna/components/MegaMenu/menu-generators/TertiaryMenu.js +13 -11
  63. package/dist/luna/components/MegaMenu/menu-generators/UncollapsedLinks.js +4 -5
  64. package/dist/luna/components/MobileLogin/MobileLogin.js +3 -4
  65. package/dist/luna/components/MobileMegaMenu/MobileMegaMenu.js +6 -6
  66. package/dist/luna/components/MobileMegaMenu/MobileMegaMenuCategory.js +9 -9
  67. package/dist/luna/components/MobileMegaMenu/MobileMegaMenuPartialCategory.js +3 -3
  68. package/dist/luna/components/MobileMegaMenu/MobileMegaMenuSubCategory.js +8 -9
  69. package/dist/luna/components/MobileNav/MobileNav.js +3 -4
  70. package/dist/luna/{other-organisms → components}/NavBar/NavMiniMenu.js +3 -4
  71. package/dist/luna/components/NavBar/NavigationBar.stories.js +2297 -0
  72. package/dist/luna/components/NavBar/NavigationBarDocumentation.mdx +245 -0
  73. package/dist/luna/{other-organisms → components}/NavBar/UtilityNav.js +5 -5
  74. package/dist/{application → luna}/components/NavBarHandler/NavBarHandler.js +1 -1
  75. package/dist/luna/components/NavBarTop/NavBarTop.js +9 -10
  76. package/dist/luna/components/NavSearch/NavSearch.js +1 -1
  77. package/dist/luna/components/NonTimeBasedListEntries/NonTimeBasedListEntries.stories.js +118 -0
  78. package/dist/luna/components/NonTimeBasedListEntries/NonTimeBasedListEntriesDocumentation.mdx +89 -0
  79. package/dist/luna/components/NonTimeBasedListEntries/NonTimeBasedListEntriesMethods.js +1 -1
  80. package/dist/luna/components/OverlayNotice/OverlayNotice.stories.js +96 -0
  81. package/dist/luna/components/OverlayNotice/OverlayNoticeDocumentation.mdx +45 -0
  82. package/dist/luna/components/ProductSummary/ProductSummary.stories.js +163 -0
  83. package/dist/luna/components/ProductsPackage/ProductsPackage.stories.js +384 -0
  84. package/dist/luna/components/ProseLayout/ProseLayout.stories.js +187 -0
  85. package/dist/luna/components/ProseLayout/ProseLayoutDocumentation.mdx +93 -0
  86. package/dist/luna/components/PullQuote/PullQuote.stories.js +556 -0
  87. package/dist/luna/components/PullQuote/PullQuoteDocumentation.mdx +60 -0
  88. package/dist/luna/components/RegionCard/RegionCard.js +4 -4
  89. package/dist/luna/components/ResourceGrid/ResourceGrid.stories.js +765 -0
  90. package/dist/luna/components/ResourceGrid/ResourceGridDocumentation.mdx +102 -0
  91. package/dist/luna/components/ScrollInPlace/ScrollInPlace.stories.js +171 -0
  92. package/dist/luna/components/ScrollInPlace/ScrollInPlaceDocumentation.mdx +123 -0
  93. package/dist/luna/components/SketchUpPricingCard/SketchUpPricingCard.stories.js +91 -0
  94. package/dist/luna/components/SlideOutFeat/SlideOutFeat.stories.js +32 -0
  95. package/dist/luna/components/StoreFrontCard/StoreFrontCard.js +1 -2
  96. package/dist/luna/components/StoreFrontCard/StoreFrontCard.stories.js +46 -0
  97. package/dist/luna/{other-organisms → components}/SubNav/SiblingsMenu.js +3 -3
  98. package/dist/luna/{other-organisms → components}/SubNav/SubNav.js +6 -7
  99. package/dist/luna/components/SuperHero/SuperHero.stories.js +806 -0
  100. package/dist/luna/components/SuperHero/SuperHeroDocumentation.mdx +57 -0
  101. package/dist/luna/components/SupportCard/SupportCard.stories.js +76 -0
  102. package/dist/luna/components/Tabs/Tabs.js +1 -2
  103. package/dist/luna/components/Tabs/Tabs.stories.js +585 -0
  104. package/dist/luna/components/Tabs/TabsDocumentation.mdx +94 -0
  105. package/dist/luna/components/TimeBasedList/TimeBasedList.stories.js +297 -0
  106. package/dist/luna/components/TimeBasedList/TimeBasedListDocumentation.mdx +123 -0
  107. package/dist/luna/components/TrainerCard/TrainerCard.stories.js +39 -0
  108. package/dist/luna/components/TrialForm/TrialFormStart/TrialFormStart.stories.js +69 -0
  109. package/dist/luna/components/VariableContentCard/VariableContentCard.js +4 -4
  110. package/dist/luna/components/Video/Video.stories.js +135 -0
  111. package/dist/luna/components/Video/VideoDocumentation.mdx +56 -0
  112. package/dist/luna/components/WaffleMenu/WaffleMenu.js +1 -1
  113. package/package.json +3 -3
  114. package/dist/application/components/HelmetHandler/HelmetHandler.js +0 -40
  115. package/dist/application/components/Loading/Loading.js +0 -22
  116. package/dist/application/components/Loading/Loading.scss +0 -10
  117. package/dist/application/components/Stack/Stack.js +0 -413
  118. package/dist/application/hooks/tests/useErrorPageData.test.js +0 -74
  119. package/dist/application/hooks/tests/useFetch.test.js +0 -70
  120. package/dist/application/hooks/tests/useFooterData.test.js +0 -106
  121. package/dist/application/hooks/tests/useFooterResponse.test.js +0 -70
  122. package/dist/application/hooks/tests/useFooterURL.test.js +0 -46
  123. package/dist/application/hooks/tests/useInnerPageNav.test.js +0 -36
  124. package/dist/application/hooks/tests/useLanguage.test.js +0 -57
  125. package/dist/application/hooks/tests/useLanguages.test.js +0 -133
  126. package/dist/application/hooks/tests/useMetadata.test.js +0 -33
  127. package/dist/application/hooks/tests/useNavResponse.test.js +0 -136
  128. package/dist/application/hooks/tests/useNavURL.test.js +0 -49
  129. package/dist/application/hooks/tests/usePageFetch.test.js +0 -203
  130. package/dist/application/hooks/tests/useRegions.test.js +0 -234
  131. package/dist/application/hooks/tests/useRoutes.test.js +0 -116
  132. package/dist/application/hooks/tests/useSiteData.test.js +0 -86
  133. package/dist/application/hooks/useErrorPageData.js +0 -59
  134. package/dist/application/hooks/useFetch.js +0 -67
  135. package/dist/application/hooks/useFooterData.js +0 -45
  136. package/dist/application/hooks/useFooterResponse.js +0 -56
  137. package/dist/application/hooks/useFooterURL.js +0 -32
  138. package/dist/application/hooks/useLanguage.js +0 -44
  139. package/dist/application/hooks/useLanguages.js +0 -66
  140. package/dist/application/hooks/useMetadata.js +0 -23
  141. package/dist/application/hooks/useNavData.js +0 -45
  142. package/dist/application/hooks/useNavResponse.js +0 -59
  143. package/dist/application/hooks/useNavURL.js +0 -41
  144. package/dist/application/hooks/usePageFetch.js +0 -109
  145. package/dist/application/hooks/useRegions.js +0 -149
  146. package/dist/application/hooks/useRoutes.js +0 -59
  147. package/dist/application/hooks/useScrollTo.js +0 -60
  148. package/dist/application/hooks/useSiteData.js +0 -58
  149. package/dist/application/methods/__mocks__/formatFooterDataMethods.js +0 -54
  150. package/dist/application/methods/formatContentSections.js +0 -130
  151. package/dist/application/methods/formatFooterDataMethods.js +0 -82
  152. package/dist/application/methods/formatMenuSiteData.js +0 -45
  153. package/dist/application/methods/formatMenus.js +0 -120
  154. package/dist/application/methods/locationRedirect.js +0 -16
  155. package/dist/application/methods/organismFormat/__mocks__/formatAnchors.js +0 -11
  156. package/dist/application/methods/organismFormat/__mocks__/formatCTAs.js +0 -10
  157. package/dist/application/methods/organismFormat/__mocks__/formatTheme.js +0 -15
  158. package/dist/application/methods/organismFormat/feats/__mocks__/formatFeatFive.js +0 -12
  159. package/dist/application/methods/organismFormat/feats/__mocks__/formatFeatFour.js +0 -12
  160. package/dist/application/methods/organismFormat/feats/__mocks__/formatFeatOne.js +0 -12
  161. package/dist/application/methods/organismFormat/feats/__mocks__/formatFeatSeven.js +0 -12
  162. package/dist/application/methods/organismFormat/feats/__mocks__/formatFeatThree.js +0 -12
  163. package/dist/application/methods/organismFormat/feats/__mocks__/formatFeatTwoA.js +0 -12
  164. package/dist/application/methods/organismFormat/feats/__mocks__/formatFeatTwoB.js +0 -12
  165. package/dist/application/methods/organismFormat/feats/__mocks__/formatFeatTwoBIcons.js +0 -14
  166. package/dist/application/methods/organismFormat/feats/__mocks__/formatPullQuote.js +0 -12
  167. package/dist/application/methods/organismFormat/feats/formatFeatFive.js +0 -39
  168. package/dist/application/methods/organismFormat/feats/formatFeatFour.js +0 -36
  169. package/dist/application/methods/organismFormat/feats/formatFeatOne.js +0 -52
  170. package/dist/application/methods/organismFormat/feats/formatFeatSeven.js +0 -193
  171. package/dist/application/methods/organismFormat/feats/formatFeatThree.js +0 -41
  172. package/dist/application/methods/organismFormat/feats/formatFeatTwoA.js +0 -37
  173. package/dist/application/methods/organismFormat/feats/formatFeatTwoAFolds.js +0 -27
  174. package/dist/application/methods/organismFormat/feats/formatFeatTwoB.js +0 -40
  175. package/dist/application/methods/organismFormat/feats/formatFeatTwoBIcons.js +0 -20
  176. package/dist/application/methods/organismFormat/feats/formatPullQuote.js +0 -49
  177. package/dist/application/methods/organismFormat/feats/tests/formatFeatFive.test.js +0 -173
  178. package/dist/application/methods/organismFormat/feats/tests/formatFeatFour.test.js +0 -140
  179. package/dist/application/methods/organismFormat/feats/tests/formatFeatOne.test.js +0 -204
  180. package/dist/application/methods/organismFormat/feats/tests/formatFeatSeven.test.js +0 -680
  181. package/dist/application/methods/organismFormat/feats/tests/formatFeatThree.test.js +0 -142
  182. package/dist/application/methods/organismFormat/feats/tests/formatFeatTwoA.test.js +0 -342
  183. package/dist/application/methods/organismFormat/feats/tests/formatFeatTwoAFolds.test.js +0 -99
  184. package/dist/application/methods/organismFormat/feats/tests/formatFeatTwoB.test.js +0 -293
  185. package/dist/application/methods/organismFormat/feats/tests/formatFeatTwoBIcons.test.js +0 -78
  186. package/dist/application/methods/organismFormat/feats/tests/formatPullQuote.test.js +0 -178
  187. package/dist/application/methods/organismFormat/formatAnchors.js +0 -16
  188. package/dist/application/methods/organismFormat/formatCTAs.js +0 -34
  189. package/dist/application/methods/organismFormat/formatTheme.js +0 -29
  190. package/dist/application/methods/organismFormat/heroes/__mocks__/formatHeroFour.js +0 -12
  191. package/dist/application/methods/organismFormat/heroes/__mocks__/formatHeroOne.js +0 -12
  192. package/dist/application/methods/organismFormat/heroes/__mocks__/formatHeroSix.js +0 -12
  193. package/dist/application/methods/organismFormat/heroes/__mocks__/formatHeroThree.js +0 -12
  194. package/dist/application/methods/organismFormat/heroes/__mocks__/formatHeroTwo.js +0 -12
  195. package/dist/application/methods/organismFormat/heroes/formatHeroFour.js +0 -39
  196. package/dist/application/methods/organismFormat/heroes/formatHeroOne.js +0 -56
  197. package/dist/application/methods/organismFormat/heroes/formatHeroSeven.js +0 -56
  198. package/dist/application/methods/organismFormat/heroes/formatHeroSix.js +0 -51
  199. package/dist/application/methods/organismFormat/heroes/formatHeroThree.js +0 -58
  200. package/dist/application/methods/organismFormat/heroes/formatHeroTwo.js +0 -42
  201. package/dist/application/methods/organismFormat/heroes/tests/formatHeroFour.test.js +0 -245
  202. package/dist/application/methods/organismFormat/heroes/tests/formatHeroOne.test.js +0 -165
  203. package/dist/application/methods/organismFormat/heroes/tests/formatHeroSeven.test.js +0 -198
  204. package/dist/application/methods/organismFormat/heroes/tests/formatHeroSix.test.js +0 -196
  205. package/dist/application/methods/organismFormat/heroes/tests/formatHeroThree.test.js +0 -185
  206. package/dist/application/methods/organismFormat/heroes/tests/formatHeroTwo.test.js +0 -205
  207. package/dist/application/methods/organismFormat/listFeats/__mocks__/formatListFeatFive.js +0 -12
  208. package/dist/application/methods/organismFormat/listFeats/__mocks__/formatListFeatFour.js +0 -12
  209. package/dist/application/methods/organismFormat/listFeats/__mocks__/formatListFeatFourCards.js +0 -10
  210. package/dist/application/methods/organismFormat/listFeats/__mocks__/formatListFeatOne.js +0 -12
  211. package/dist/application/methods/organismFormat/listFeats/__mocks__/formatListFeatOneCards.js +0 -17
  212. package/dist/application/methods/organismFormat/listFeats/__mocks__/formatListFeatOneV2Cards.js +0 -27
  213. package/dist/application/methods/organismFormat/listFeats/__mocks__/formatListFeatSeven.js +0 -12
  214. package/dist/application/methods/organismFormat/listFeats/__mocks__/formatListFeatSevenCards.js +0 -10
  215. package/dist/application/methods/organismFormat/listFeats/__mocks__/formatListFeatSix.js +0 -12
  216. package/dist/application/methods/organismFormat/listFeats/__mocks__/formatListFeatSixCards.js +0 -10
  217. package/dist/application/methods/organismFormat/listFeats/__mocks__/formatListFeatThree.js +0 -12
  218. package/dist/application/methods/organismFormat/listFeats/__mocks__/formatListFeatThreeCards.js +0 -10
  219. package/dist/application/methods/organismFormat/listFeats/__mocks__/formatListFeatThreeV2Cards.js +0 -32
  220. package/dist/application/methods/organismFormat/listFeats/__mocks__/formatListFeatTopSection.js +0 -23
  221. package/dist/application/methods/organismFormat/listFeats/__mocks__/formatListFeatTwo.js +0 -12
  222. package/dist/application/methods/organismFormat/listFeats/__mocks__/formatListFeatTwoCards.js +0 -10
  223. package/dist/application/methods/organismFormat/listFeats/__mocks__/formatListFeatTwoV2Cards.js +0 -34
  224. package/dist/application/methods/organismFormat/listFeats/__mocks__/formatListFeatType.js +0 -10
  225. package/dist/application/methods/organismFormat/listFeats/__mocks__/formatListFeatV2.js +0 -33
  226. package/dist/application/methods/organismFormat/listFeats/formatListFeatFive.js +0 -53
  227. package/dist/application/methods/organismFormat/listFeats/formatListFeatFiveItemsV2.js +0 -32
  228. package/dist/application/methods/organismFormat/listFeats/formatListFeatFiveV2.js +0 -39
  229. package/dist/application/methods/organismFormat/listFeats/formatListFeatFour.js +0 -35
  230. package/dist/application/methods/organismFormat/listFeats/formatListFeatFourCards.js +0 -24
  231. package/dist/application/methods/organismFormat/listFeats/formatListFeatFourDumplingsV2.js +0 -36
  232. package/dist/application/methods/organismFormat/listFeats/formatListFeatFourV2.js +0 -38
  233. package/dist/application/methods/organismFormat/listFeats/formatListFeatOne.js +0 -46
  234. package/dist/application/methods/organismFormat/listFeats/formatListFeatOneCards.js +0 -36
  235. package/dist/application/methods/organismFormat/listFeats/formatListFeatOneV2.js +0 -41
  236. package/dist/application/methods/organismFormat/listFeats/formatListFeatOneV2Cards.js +0 -64
  237. package/dist/application/methods/organismFormat/listFeats/formatListFeatSeven.js +0 -37
  238. package/dist/application/methods/organismFormat/listFeats/formatListFeatSevenCards.js +0 -46
  239. package/dist/application/methods/organismFormat/listFeats/formatListFeatSevenCardsV2.js +0 -48
  240. package/dist/application/methods/organismFormat/listFeats/formatListFeatSevenV2.js +0 -39
  241. package/dist/application/methods/organismFormat/listFeats/formatListFeatSix.js +0 -36
  242. package/dist/application/methods/organismFormat/listFeats/formatListFeatSixCards.js +0 -15
  243. package/dist/application/methods/organismFormat/listFeats/formatListFeatSixCardsV2.js +0 -16
  244. package/dist/application/methods/organismFormat/listFeats/formatListFeatSixV2.js +0 -38
  245. package/dist/application/methods/organismFormat/listFeats/formatListFeatThree.js +0 -40
  246. package/dist/application/methods/organismFormat/listFeats/formatListFeatThreeCards.js +0 -48
  247. package/dist/application/methods/organismFormat/listFeats/formatListFeatThreeV2.js +0 -40
  248. package/dist/application/methods/organismFormat/listFeats/formatListFeatThreeV2Cards.js +0 -39
  249. package/dist/application/methods/organismFormat/listFeats/formatListFeatTopSection.js +0 -33
  250. package/dist/application/methods/organismFormat/listFeats/formatListFeatTwo.js +0 -36
  251. package/dist/application/methods/organismFormat/listFeats/formatListFeatTwoCards.js +0 -34
  252. package/dist/application/methods/organismFormat/listFeats/formatListFeatTwoV2.js +0 -40
  253. package/dist/application/methods/organismFormat/listFeats/formatListFeatTwoV2Cards.js +0 -46
  254. package/dist/application/methods/organismFormat/listFeats/formatListFeatType.js +0 -27
  255. package/dist/application/methods/organismFormat/listFeats/formatListFeatV2.js +0 -21
  256. package/dist/application/methods/organismFormat/listFeats/tests/formatFeatSevenV2.test.js +0 -463
  257. package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatFive.test.js +0 -89
  258. package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatFiveV2.test.js +0 -238
  259. package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatFour.test.js +0 -75
  260. package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatFourCards.test.js +0 -65
  261. package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatFourV2.test.js +0 -358
  262. package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatOne.test.js +0 -98
  263. package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatOneCards.test.js +0 -67
  264. package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatOneV2.test.js +0 -191
  265. package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatOneV2Cards.test.js +0 -87
  266. package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatSeven.test.js +0 -120
  267. package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatSevenCards.test.js +0 -111
  268. package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatSix.test.js +0 -67
  269. package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatSixCards.test.js +0 -25
  270. package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatSixV2.test.js +0 -242
  271. package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatThree.test.js +0 -96
  272. package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatThreeCards.test.js +0 -94
  273. package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatThreeV2.test.js +0 -242
  274. package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatThreeV2Cards.test.js +0 -96
  275. package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatTopSection.test.js +0 -63
  276. package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatTwo.test.js +0 -86
  277. package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatTwoCards.test.js +0 -81
  278. package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatTwoV2.test.js +0 -299
  279. package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatTwoV2Cards.test.js +0 -159
  280. package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatV2.test.js +0 -69
  281. package/dist/application/methods/organismFormat/listFeats/tests/mockData/listFeatOneV2MockData.js +0 -125
  282. package/dist/application/methods/organismFormat/tests/formatAnchors.test.js +0 -20
  283. package/dist/application/methods/organismFormat/tests/formatCTAs.test.js +0 -109
  284. package/dist/application/methods/organismFormat/tests/formatTheme.test.js +0 -54
  285. package/dist/application/methods/tests/formatContentSections.test.js +0 -237
  286. package/dist/application/methods/tests/formatFooterDataMethods.test.js +0 -138
  287. package/dist/luna/components/MiniFeatDropdown/MiniFeatDropdown.js +0 -78
  288. package/dist/luna/components/MiniFeatDropdown/MiniFeatDropdown.scss +0 -107
  289. package/dist/luna/featurettes/CustomFeat/CustomFeat.js +0 -157
  290. package/dist/luna/featurettes/CustomFeat/CustomFeat.scss +0 -18
  291. package/dist/luna/featurettes/Feat1/Feat1.js +0 -122
  292. package/dist/luna/featurettes/Feat1/Feat1.scss +0 -110
  293. package/dist/luna/featurettes/Feat1/feat1Methods.js +0 -18
  294. package/dist/luna/featurettes/Feat1/feat1Methods.test.js +0 -21
  295. package/dist/luna/featurettes/Feat2A/Feat2A.js +0 -101
  296. package/dist/luna/featurettes/Feat2A/Feat2A.scss +0 -132
  297. package/dist/luna/featurettes/Feat2B/Feat2B.js +0 -131
  298. package/dist/luna/featurettes/Feat2B/Feat2B.scss +0 -231
  299. package/dist/luna/featurettes/Feat2B/Feat2BMethods.js +0 -75
  300. package/dist/luna/featurettes/Feat2B/Feat2BMethods.test.js +0 -38
  301. package/dist/luna/featurettes/Feat3/Feat3.js +0 -89
  302. package/dist/luna/featurettes/Feat3/Feat3.scss +0 -49
  303. package/dist/luna/featurettes/Feat4/Feat4.js +0 -95
  304. package/dist/luna/featurettes/Feat4/Feat4.scss +0 -86
  305. package/dist/luna/featurettes/Feat5/Feat5.js +0 -194
  306. package/dist/luna/featurettes/Feat5/Feat5.scss +0 -235
  307. package/dist/luna/featurettes/Feat5/Feat5Methods.js +0 -19
  308. package/dist/luna/featurettes/Feat5/Feat5Methods.test.js +0 -23
  309. package/dist/luna/featurettes/Feat7/Feat7.js +0 -79
  310. package/dist/luna/featurettes/Feat7/Feat7.scss +0 -49
  311. package/dist/luna/featurettes/Feat7/Feat7Methods.js +0 -41
  312. package/dist/luna/featurettes/Feat8/Feat8.js +0 -75
  313. package/dist/luna/featurettes/Feat8/Feat8.scss +0 -103
  314. package/dist/luna/featurettes/Feat8/feat8Methods.js +0 -18
  315. package/dist/luna/featurettes/Feat8/feat8Methods.test.js +0 -21
  316. package/dist/luna/heroes/Hero1/Hero1.js +0 -111
  317. package/dist/luna/heroes/Hero1/Hero1.scss +0 -223
  318. package/dist/luna/heroes/Hero1/Hero1Methods.js +0 -84
  319. package/dist/luna/heroes/Hero1/useWindowSize.js +0 -47
  320. package/dist/luna/heroes/Hero2/Hero2.js +0 -130
  321. package/dist/luna/heroes/Hero2/Hero2.scss +0 -165
  322. package/dist/luna/heroes/Hero3/Hero3.js +0 -246
  323. package/dist/luna/heroes/Hero3/Hero3.scss +0 -250
  324. package/dist/luna/heroes/Hero3/Hero3Methods.js +0 -37
  325. package/dist/luna/heroes/Hero4/Hero4.js +0 -175
  326. package/dist/luna/heroes/Hero4/Hero4.scss +0 -112
  327. package/dist/luna/heroes/Hero4/hero4Methods.js +0 -18
  328. package/dist/luna/heroes/Hero6/Hero6.js +0 -179
  329. package/dist/luna/heroes/Hero6/Hero6.scss +0 -127
  330. package/dist/luna/heroes/Hero7/Hero7.js +0 -118
  331. package/dist/luna/heroes/Hero7/Hero7.scss +0 -193
  332. package/dist/luna/heroes/Hero7/Hero7Methods.js +0 -39
  333. package/dist/luna/heroes/Hero7/Hero7Methods.test.js +0 -109
  334. package/dist/luna/heroes/Hero7/useWindowWidth.js +0 -40
  335. package/dist/luna/list-feats/ListFeat/ListFeat.js +0 -149
  336. package/dist/luna/list-feats/ListFeat/ListFeat.scss +0 -112
  337. package/dist/luna/list-feats/ListFeat1/ListFeat1.js +0 -91
  338. package/dist/luna/list-feats/ListFeat1/ListFeat1.scss +0 -94
  339. package/dist/luna/list-feats/ListFeat1/listFeat1Methods.js +0 -14
  340. package/dist/luna/list-feats/ListFeat1/listFeat1Methods.test.js +0 -17
  341. package/dist/luna/list-feats/ListFeat2/ListFeat2.js +0 -30
  342. package/dist/luna/list-feats/ListFeat2/ListFeat2.scss +0 -20
  343. package/dist/luna/list-feats/ListFeat2/ListFeat2Methods.js +0 -33
  344. package/dist/luna/list-feats/ListFeat2/ListFeat2Methods.test.js +0 -11
  345. package/dist/luna/list-feats/ListFeat4/ListFeat4.js +0 -34
  346. package/dist/luna/list-feats/ListFeat4/ListFeat4.scss +0 -32
  347. package/dist/luna/list-feats/ListFeat5/ListFeat5.js +0 -28
  348. package/dist/luna/list-feats/ListFeat5/ListFeat5.scss +0 -27
  349. package/dist/luna/list-feats/ListFeat5/ListFeat5Methods.js +0 -24
  350. package/dist/luna/list-feats/ListFeat6/ListFeat6.js +0 -59
  351. package/dist/luna/list-feats/ListFeat6/ListFeat6.scss +0 -34
  352. package/dist/luna/list-feats/ListFeat7/ListFeat7.js +0 -51
  353. package/dist/luna/list-feats/ListFeat7/ListFeat7.scss +0 -14
  354. package/dist/luna/list-feats/ListFeat7/ListFeat7Methods.js +0 -49
  355. package/dist/luna/list-feats/ListFeatCustom/ListFeatCustom.js +0 -25
  356. package/dist/luna/list-feats/ListFeatCustom/ListFeatCustom.scss +0 -8
  357. package/dist/luna/list-feats/methods/listFeatMethods.js +0 -119
  358. /package/dist/luna/{featurettes → components}/Accordion/Accordion.js +0 -0
  359. /package/dist/luna/{featurettes → components}/Accordion/Accordion.scss +0 -0
  360. /package/dist/luna/{featurettes → components}/Accordion/AccordionItem.js +0 -0
  361. /package/dist/luna/{other-organisms → components}/Carousel/Carousel.js +0 -0
  362. /package/dist/luna/{other-organisms → components}/Carousel/Carousel.scss +0 -0
  363. /package/dist/luna/{heroes → components}/FilterHero/FilterHero.js +0 -0
  364. /package/dist/luna/{heroes → components}/FilterHero/FilterHero.scss +0 -0
  365. /package/dist/luna/{heroes → components}/FilterHero/FilterHeroMethods.js +0 -0
  366. /package/dist/luna/{other-organisms → components}/Flyout/Flyout.scss +0 -0
  367. /package/dist/luna/{other-organisms → components}/Footer/ExportedFooter.js +0 -0
  368. /package/dist/luna/{other-organisms → components}/Footer/Footer.js +0 -0
  369. /package/dist/luna/{other-organisms → components}/Footer/Footer.scss +0 -0
  370. /package/dist/luna/{other-organisms → components}/Footer/GlobalFooter.js +0 -0
  371. /package/dist/luna/{other-organisms → components}/Footer/SectorFooter.js +0 -0
  372. /package/dist/luna/{heroes → components}/FullBackgroundHero/FullBackgroundHero.js +0 -0
  373. /package/dist/luna/{heroes → components}/FullBackgroundHero/FullBackgroundHero.scss +0 -0
  374. /package/dist/luna/{heroes → components}/FullBackgroundHero/FullBackgroundHeroMethods.js +0 -0
  375. /package/dist/luna/{featurettes → components}/IconTextList/IconTextList.js +0 -0
  376. /package/dist/luna/{featurettes → components}/IconTextList/IconTextList.scss +0 -0
  377. /package/dist/luna/{other-organisms → components}/LanguageSelector/LanguageSelector.scss +0 -0
  378. /package/dist/luna/{other-organisms → components}/MarketoForm/MarketoForm.js +0 -0
  379. /package/dist/luna/{other-organisms → components}/MarketoForm/MarketoForm.scss +0 -0
  380. /package/dist/luna/{other-organisms → components}/NavBar/NavBar.js +0 -0
  381. /package/dist/luna/{other-organisms → components}/NavBar/NavBar.scss +0 -0
  382. /package/dist/luna/{other-organisms → components}/NavBar/NavOption.js +0 -0
  383. /package/dist/luna/{other-organisms → components}/NavBar/useNavPosition.js +0 -0
  384. /package/dist/luna/{featurettes → components}/ProductsPackage/ProductsPackage.js +0 -0
  385. /package/dist/luna/{featurettes → components}/ProductsPackage/ProductsPackage.scss +0 -0
  386. /package/dist/luna/{featurettes → components}/ProductsPackage/ProductsPackageMethods.js +0 -0
  387. /package/dist/luna/{featurettes → components}/PullQuote/PullQuote.js +0 -0
  388. /package/dist/luna/{featurettes → components}/PullQuote/PullQuote.scss +0 -0
  389. /package/dist/luna/{featurettes → components}/PullQuote/ico-quote-white.svg +0 -0
  390. /package/dist/luna/{featurettes → components}/PullQuote/ico-quote.svg +0 -0
  391. /package/dist/luna/{other-organisms → components}/SubNav/SubNav.scss +0 -0
  392. /package/dist/luna/{heroes → components}/SuperHero/SuperHero.js +0 -0
  393. /package/dist/luna/{heroes → components}/SuperHero/SuperHero.scss +0 -0
  394. /package/dist/luna/{heroes → components}/SuperHero/SuperHeroMethods.js +0 -0
  395. /package/dist/luna/{heroes → components}/SuperHero/useCompareContainerHeights.js +0 -0
  396. /package/dist/{application/assets → luna}/images/carat-down.svg +0 -0
  397. /package/dist/{application/assets → luna}/images/carat-up.svg +0 -0
  398. /package/dist/{application/assets → luna}/images/close-blue.svg +0 -0
  399. /package/dist/{application/assets → luna}/images/close.svg +0 -0
  400. /package/dist/{application/assets → luna}/images/ellipses.svg +0 -0
  401. /package/dist/{application/assets → luna}/images/facebook.svg +0 -0
  402. /package/dist/{application/assets → luna}/images/favicon.ico +0 -0
  403. /package/dist/{application/assets → luna}/images/fpoBox.png +0 -0
  404. /package/dist/{application/assets → luna}/images/fpoSquare.png +0 -0
  405. /package/dist/{application/assets → luna}/images/instagram.svg +0 -0
  406. /package/dist/{application/assets → luna}/images/linkedin.svg +0 -0
  407. /package/dist/{application/assets → luna}/images/loading-mini.gif +0 -0
  408. /package/dist/{application/assets → luna}/images/trimble_logo.png +0 -0
  409. /package/dist/{application/assets → luna}/images/twitter.svg +0 -0
  410. /package/dist/{application/assets → luna}/images/youtube.svg +0 -0
  411. /package/dist/{application → luna/utils}/hooks/useInnerPageNav.js +0 -0
@@ -1,193 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.formatThemesForTabbedSections = exports.formatTabsForFeatSeven = exports.formatTabbedListFeatThree = exports.formatTabbedListFeatFour = exports.formatTabbedListFeatFive = exports["default"] = void 0;
7
- var formatFeatSeven = function formatFeatSeven() {
8
- var _data$field_intro_hea, _data$field_intro_hea2, _data$field_intro_hea3, _data$field_intro_des, _data$field_intro_des2, _data$field_intro_des3, _data$field_s_tab_sec, _data$field_anchor_to, _data$field_anchor_to2, _data$field_anchor_te, _data$field_anchor_te2, _data$field_anchor_te3, _data$field_anchor_te4, _data$field_anchor_te5, _data$field_anchor_te6;
9
- var featSevenData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
10
- var languageCode = arguments.length > 1 ? arguments[1] : undefined;
11
- var languageEnabled = arguments.length > 2 ? arguments[2] : undefined;
12
- var data = featSevenData || {};
13
- var header = data === null || data === void 0 ? void 0 : (_data$field_intro_hea = data.field_intro_header) === null || _data$field_intro_hea === void 0 ? void 0 : (_data$field_intro_hea2 = _data$field_intro_hea.values) === null || _data$field_intro_hea2 === void 0 ? void 0 : (_data$field_intro_hea3 = _data$field_intro_hea2[0]) === null || _data$field_intro_hea3 === void 0 ? void 0 : _data$field_intro_hea3.value;
14
- var subHeader = data === null || data === void 0 ? void 0 : (_data$field_intro_des = data.field_intro_description) === null || _data$field_intro_des === void 0 ? void 0 : (_data$field_intro_des2 = _data$field_intro_des.values) === null || _data$field_intro_des2 === void 0 ? void 0 : (_data$field_intro_des3 = _data$field_intro_des2[0]) === null || _data$field_intro_des3 === void 0 ? void 0 : _data$field_intro_des3.value;
15
-
16
- // TODO - GET FROM DRUPAL - currently not in JSON.
17
- var formatThemeForFeat7 = function formatThemeForFeat7(data) {
18
- var _data$values, _data$values$, _data$values$$name, _data$values2, _data$values2$, _data$values2$$name, _data$values3, _data$values3$, _data$values3$$field_, _data$values3$$field_2, _data$values3$$field_3, _data$values4, _data$values4$, _data$values4$$field_, _data$values4$$field_2, _data$values4$$field_3;
19
- var themeName = data !== null && data !== void 0 && (_data$values = data.values) !== null && _data$values !== void 0 && (_data$values$ = _data$values[0]) !== null && _data$values$ !== void 0 && (_data$values$$name = _data$values$.name) !== null && _data$values$$name !== void 0 && _data$values$$name.toLowerCase() ? data === null || data === void 0 ? void 0 : (_data$values2 = data.values) === null || _data$values2 === void 0 ? void 0 : (_data$values2$ = _data$values2[0]) === null || _data$values2$ === void 0 ? void 0 : (_data$values2$$name = _data$values2$.name) === null || _data$values2$$name === void 0 ? void 0 : _data$values2$$name.toLowerCase() : "theme 1";
20
- var backgroundColor = data !== null && data !== void 0 && (_data$values3 = data.values) !== null && _data$values3 !== void 0 && (_data$values3$ = _data$values3[0]) !== null && _data$values3$ !== void 0 && (_data$values3$$field_ = _data$values3$.field_theme_background_color) !== null && _data$values3$$field_ !== void 0 && (_data$values3$$field_2 = _data$values3$$field_.values) !== null && _data$values3$$field_2 !== void 0 && (_data$values3$$field_3 = _data$values3$$field_2[0]) !== null && _data$values3$$field_3 !== void 0 && _data$values3$$field_3.value ? data === null || data === void 0 ? void 0 : (_data$values4 = data.values) === null || _data$values4 === void 0 ? void 0 : (_data$values4$ = _data$values4[0]) === null || _data$values4$ === void 0 ? void 0 : (_data$values4$$field_ = _data$values4$.field_theme_background_color) === null || _data$values4$$field_ === void 0 ? void 0 : (_data$values4$$field_2 = _data$values4$$field_.values) === null || _data$values4$$field_2 === void 0 ? void 0 : (_data$values4$$field_3 = _data$values4$$field_2[0]) === null || _data$values4$$field_3 === void 0 ? void 0 : _data$values4$$field_3.value : "#f9f9fb";
21
- var color = "#363545";
22
- var activeTabTextColor;
23
- var activeTabBarColor;
24
- if (themeName === "theme 1" || themeName === "theme 2" || themeName === "theme 3") {
25
- activeTabTextColor = "#0e6ba8";
26
- activeTabBarColor = "#0e6ba8";
27
- } else if (themeName === "theme 4" || themeName === "theme 5") {
28
- activeTabTextColor = "#ffffff";
29
- activeTabBarColor = "#009ad9";
30
- } else {
31
- activeTabTextColor = "#0e6ba8";
32
- activeTabBarColor = "#0e6ba8";
33
- }
34
- return {
35
- color: color,
36
- backgroundColor: backgroundColor,
37
- activeTabBarColor: activeTabBarColor,
38
- activeTabTextColor: activeTabTextColor,
39
- theme: themeName
40
- };
41
- };
42
- var theme = formatThemeForFeat7(data === null || data === void 0 ? void 0 : data.field_section_theme);
43
- var tabs = formatTabsForFeatSeven(data === null || data === void 0 ? void 0 : (_data$field_s_tab_sec = data.field_s_tab_sections) === null || _data$field_s_tab_sec === void 0 ? void 0 : _data$field_s_tab_sec.values, languageCode, languageEnabled, theme);
44
- var anchor = data !== null && data !== void 0 && (_data$field_anchor_to = data.field_anchor_toggle) !== null && _data$field_anchor_to !== void 0 && (_data$field_anchor_to2 = _data$field_anchor_to.values) !== null && _data$field_anchor_to2 !== void 0 && _data$field_anchor_to2[0] && data !== null && data !== void 0 && (_data$field_anchor_te = data.field_anchor_text) !== null && _data$field_anchor_te !== void 0 && (_data$field_anchor_te2 = _data$field_anchor_te.values) !== null && _data$field_anchor_te2 !== void 0 && (_data$field_anchor_te3 = _data$field_anchor_te2[0]) !== null && _data$field_anchor_te3 !== void 0 && _data$field_anchor_te3.value ? data === null || data === void 0 ? void 0 : (_data$field_anchor_te4 = data.field_anchor_text) === null || _data$field_anchor_te4 === void 0 ? void 0 : (_data$field_anchor_te5 = _data$field_anchor_te4.values) === null || _data$field_anchor_te5 === void 0 ? void 0 : (_data$field_anchor_te6 = _data$field_anchor_te5[0]) === null || _data$field_anchor_te6 === void 0 ? void 0 : _data$field_anchor_te6.value : null;
45
- var content = {
46
- header: header,
47
- subHeader: subHeader,
48
- tabs: tabs,
49
- theme: theme
50
- };
51
- return {
52
- content: content,
53
- type: "feat_7",
54
- anchor: anchor
55
- };
56
- // TODO Write this when JSON is returned from application
57
- };
58
-
59
- // themes are weird for Feat7.. Tabs must always be color #363545, but for darker themes we need to make sure the color is #ffffff inside the content block. Potentially need to rename tabs so there is nothing hardcoded here.
60
- var formatThemesForTabbedSections = function formatThemesForTabbedSections(theme) {
61
- if (theme) {
62
- if ((theme === null || theme === void 0 ? void 0 : theme.theme) === "theme 4" || (theme === null || theme === void 0 ? void 0 : theme.theme) === "theme 5") {
63
- return {
64
- backgroundColor: theme === null || theme === void 0 ? void 0 : theme.backgroundColor,
65
- color: "#ffffff",
66
- theme: theme === null || theme === void 0 ? void 0 : theme.theme
67
- };
68
- } else {
69
- return theme;
70
- }
71
- }
72
- };
73
- exports.formatThemesForTabbedSections = formatThemesForTabbedSections;
74
- var formatTabsForFeatSeven = function formatTabsForFeatSeven() {
75
- var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
76
- var languageCode = arguments.length > 1 ? arguments[1] : undefined;
77
- var languageEnabled = arguments.length > 2 ? arguments[2] : undefined;
78
- var theme = arguments.length > 3 ? arguments[3] : undefined;
79
- var newTheme = formatThemesForTabbedSections(theme);
80
- if (data && data.length) {
81
- var listFeatThreeLabel = {
82
- label: "s_tab_section_cards",
83
- method: formatTabbedListFeatThree
84
- };
85
- var listFeatFourLabel = {
86
- label: "s_tab_section_icon_dumplings",
87
- method: formatTabbedListFeatFour
88
- };
89
- var listFeatFiveLabel = {
90
- label: "s_tab_section_icon_items",
91
- method: formatTabbedListFeatFive
92
- };
93
- var types = [listFeatThreeLabel, listFeatFourLabel, listFeatFiveLabel];
94
- return data.map(function (tab) {
95
- var method = types.reduce(function (result, resultLabel) {
96
- if (tab.type === resultLabel.label) {
97
- result = resultLabel.method;
98
- }
99
- return result;
100
- }, function () {});
101
- return method(tab, languageCode, languageEnabled, newTheme);
102
- });
103
- }
104
- };
105
- exports.formatTabsForFeatSeven = formatTabsForFeatSeven;
106
- var formatTabbedListFeatThree = function formatTabbedListFeatThree(data, languageCode, languageEnabled, theme) {
107
- var _data$field_tab_name, _data$field_tab_name$, _data$field_tab_name$2, _data$field_tab_list_;
108
- var newTheme = formatThemesForTabbedSections(theme);
109
- // TODO need subheader for these cards
110
-
111
- var type = "list_feat_3";
112
- var header = data === null || data === void 0 ? void 0 : (_data$field_tab_name = data.field_tab_name) === null || _data$field_tab_name === void 0 ? void 0 : (_data$field_tab_name$ = _data$field_tab_name.values) === null || _data$field_tab_name$ === void 0 ? void 0 : (_data$field_tab_name$2 = _data$field_tab_name$[0]) === null || _data$field_tab_name$2 === void 0 ? void 0 : _data$field_tab_name$2.value;
113
- var cards = data === null || data === void 0 ? void 0 : (_data$field_tab_list_ = data.field_tab_list_cards) === null || _data$field_tab_list_ === void 0 ? void 0 : _data$field_tab_list_.values.map(function (card) {
114
- var _card$field_card_head, _card$field_card_head2, _card$field_card_head3, _card$field_card_imag, _card$field_card_imag2, _card$field_card_imag3, _card$field_card_imag4, _card$field_card_imag5, _card$field_card_imag6, _card$field_card_imag7, _card$field_card_imag8, _card$field_card_imag9, _card$field_card_imag10, _card$field_card_desc, _card$field_card_desc2, _card$field_card_desc3, _card$field_card_cta, _card$field_card_cta$, _card$field_card_cta$2, _card$field_card_cta2, _card$field_card_cta3, _card$field_card_cta4, _card$field_card_cta5, _card$field_card_cta6, _card$field_card_cta7;
115
- return {
116
- header: card === null || card === void 0 ? void 0 : (_card$field_card_head = card.field_card_header) === null || _card$field_card_head === void 0 ? void 0 : (_card$field_card_head2 = _card$field_card_head.values) === null || _card$field_card_head2 === void 0 ? void 0 : (_card$field_card_head3 = _card$field_card_head2[0]) === null || _card$field_card_head3 === void 0 ? void 0 : _card$field_card_head3.value,
117
- image: {
118
- url: card === null || card === void 0 ? void 0 : (_card$field_card_imag = card.field_card_image) === null || _card$field_card_imag === void 0 ? void 0 : (_card$field_card_imag2 = _card$field_card_imag.values) === null || _card$field_card_imag2 === void 0 ? void 0 : (_card$field_card_imag3 = _card$field_card_imag2[0].field_media_image) === null || _card$field_card_imag3 === void 0 ? void 0 : (_card$field_card_imag4 = _card$field_card_imag3.values) === null || _card$field_card_imag4 === void 0 ? void 0 : (_card$field_card_imag5 = _card$field_card_imag4[0]) === null || _card$field_card_imag5 === void 0 ? void 0 : _card$field_card_imag5.source,
119
- altText: (_card$field_card_imag6 = card.field_card_image) === null || _card$field_card_imag6 === void 0 ? void 0 : (_card$field_card_imag7 = _card$field_card_imag6.values) === null || _card$field_card_imag7 === void 0 ? void 0 : (_card$field_card_imag8 = _card$field_card_imag7[0].field_media_image) === null || _card$field_card_imag8 === void 0 ? void 0 : (_card$field_card_imag9 = _card$field_card_imag8.values) === null || _card$field_card_imag9 === void 0 ? void 0 : (_card$field_card_imag10 = _card$field_card_imag9[0]) === null || _card$field_card_imag10 === void 0 ? void 0 : _card$field_card_imag10.alt
120
- },
121
- text: card === null || card === void 0 ? void 0 : (_card$field_card_desc = card.field_card_description) === null || _card$field_card_desc === void 0 ? void 0 : (_card$field_card_desc2 = _card$field_card_desc.values) === null || _card$field_card_desc2 === void 0 ? void 0 : (_card$field_card_desc3 = _card$field_card_desc2[0]) === null || _card$field_card_desc3 === void 0 ? void 0 : _card$field_card_desc3.value,
122
- link: {
123
- url: languageEnabled ? "/".concat(languageCode).concat((_card$field_card_cta = card.field_card_cta) === null || _card$field_card_cta === void 0 ? void 0 : (_card$field_card_cta$ = _card$field_card_cta.values) === null || _card$field_card_cta$ === void 0 ? void 0 : (_card$field_card_cta$2 = _card$field_card_cta$[0]) === null || _card$field_card_cta$2 === void 0 ? void 0 : _card$field_card_cta$2.url) : card === null || card === void 0 ? void 0 : (_card$field_card_cta2 = card.field_card_cta) === null || _card$field_card_cta2 === void 0 ? void 0 : (_card$field_card_cta3 = _card$field_card_cta2.values) === null || _card$field_card_cta3 === void 0 ? void 0 : (_card$field_card_cta4 = _card$field_card_cta3[0]) === null || _card$field_card_cta4 === void 0 ? void 0 : _card$field_card_cta4.url,
124
- text: card === null || card === void 0 ? void 0 : (_card$field_card_cta5 = card.field_card_cta) === null || _card$field_card_cta5 === void 0 ? void 0 : (_card$field_card_cta6 = _card$field_card_cta5.values) === null || _card$field_card_cta6 === void 0 ? void 0 : (_card$field_card_cta7 = _card$field_card_cta6[0]) === null || _card$field_card_cta7 === void 0 ? void 0 : _card$field_card_cta7.title
125
- }
126
- };
127
- });
128
- return {
129
- type: type,
130
- header: header,
131
- cards: cards,
132
- theme: newTheme
133
- };
134
- };
135
- exports.formatTabbedListFeatThree = formatTabbedListFeatThree;
136
- var formatTabbedListFeatFour = function formatTabbedListFeatFour(data, languageCode, languageEnabled, theme) {
137
- var _data$field_tab_name2, _data$field_tab_name3, _data$field_tab_name4, _data$field_tab_list_2, _data$field_tab_list_3;
138
- var newTheme = formatThemesForTabbedSections(theme);
139
-
140
- // leaving the languageCode/languageEnabled arguments in the event that we start to see JSON for the CTAs
141
-
142
- // TODO need subheader
143
- var type = "list_feat_4";
144
- var header = data === null || data === void 0 ? void 0 : (_data$field_tab_name2 = data.field_tab_name) === null || _data$field_tab_name2 === void 0 ? void 0 : (_data$field_tab_name3 = _data$field_tab_name2.values) === null || _data$field_tab_name3 === void 0 ? void 0 : (_data$field_tab_name4 = _data$field_tab_name3[0]) === null || _data$field_tab_name4 === void 0 ? void 0 : _data$field_tab_name4.value;
145
- var dumplings = data === null || data === void 0 ? void 0 : (_data$field_tab_list_2 = data.field_tab_list_dumplings) === null || _data$field_tab_list_2 === void 0 ? void 0 : (_data$field_tab_list_3 = _data$field_tab_list_2.values) === null || _data$field_tab_list_3 === void 0 ? void 0 : _data$field_tab_list_3.map(function (dumpling) {
146
- var _dumpling$field_dumpl, _dumpling$field_dumpl2, _dumpling$field_dumpl3, _dumpling$field_dumpl4, _dumpling$field_dumpl5, _dumpling$field_dumpl6;
147
- return {
148
- header: dumpling === null || dumpling === void 0 ? void 0 : (_dumpling$field_dumpl = dumpling.field_dumpling_text) === null || _dumpling$field_dumpl === void 0 ? void 0 : (_dumpling$field_dumpl2 = _dumpling$field_dumpl.values) === null || _dumpling$field_dumpl2 === void 0 ? void 0 : (_dumpling$field_dumpl3 = _dumpling$field_dumpl2[0]) === null || _dumpling$field_dumpl3 === void 0 ? void 0 : _dumpling$field_dumpl3.value,
149
- link: null,
150
- size: "small",
151
- icon: {
152
- type: (dumpling === null || dumpling === void 0 ? void 0 : (_dumpling$field_dumpl4 = dumpling.field_dumpling_icon) === null || _dumpling$field_dumpl4 === void 0 ? void 0 : (_dumpling$field_dumpl5 = _dumpling$field_dumpl4.values) === null || _dumpling$field_dumpl5 === void 0 ? void 0 : (_dumpling$field_dumpl6 = _dumpling$field_dumpl5[0]) === null || _dumpling$field_dumpl6 === void 0 ? void 0 : _dumpling$field_dumpl6.value) || "enclosed-check-dark-48px",
153
- size: "48px",
154
- color: (newTheme === null || newTheme === void 0 ? void 0 : newTheme.color) || "#000000"
155
- },
156
- color: (newTheme === null || newTheme === void 0 ? void 0 : newTheme.color) || "#000000"
157
- };
158
- });
159
- return {
160
- type: type,
161
- header: header,
162
- dumplings: dumplings,
163
- theme: newTheme
164
- };
165
- };
166
- exports.formatTabbedListFeatFour = formatTabbedListFeatFour;
167
- var formatTabbedListFeatFive = function formatTabbedListFeatFive(data, languageCode, languageEnabled, theme) {
168
- var _data$field_tab_name5, _data$field_tab_name6, _data$field_tab_name7, _data$field_tab_list_4, _data$field_tab_list_5;
169
- // leaving the languageCode/languageEnabled arguments in the event that we start to see JSON for the CTAs
170
-
171
- // TODO need subheader
172
- var newTheme = formatThemesForTabbedSections(theme);
173
- var type = "list_feat_5";
174
- var header = data === null || data === void 0 ? void 0 : (_data$field_tab_name5 = data.field_tab_name) === null || _data$field_tab_name5 === void 0 ? void 0 : (_data$field_tab_name6 = _data$field_tab_name5.values) === null || _data$field_tab_name6 === void 0 ? void 0 : (_data$field_tab_name7 = _data$field_tab_name6[0]) === null || _data$field_tab_name7 === void 0 ? void 0 : _data$field_tab_name7.value;
175
- var iconListItems = data === null || data === void 0 ? void 0 : (_data$field_tab_list_4 = data.field_tab_list_icon_items) === null || _data$field_tab_list_4 === void 0 ? void 0 : (_data$field_tab_list_5 = _data$field_tab_list_4.values) === null || _data$field_tab_list_5 === void 0 ? void 0 : _data$field_tab_list_5.map(function (icon) {
176
- var _icon$field_ili_descr, _icon$field_ili_descr2, _icon$field_ili_descr3, _icon$field_ili_descr4, _icon$field_ili_descr5, _icon$field_ili_descr6;
177
- return {
178
- header: icon === null || icon === void 0 ? void 0 : (_icon$field_ili_descr = icon.field_ili_description) === null || _icon$field_ili_descr === void 0 ? void 0 : (_icon$field_ili_descr2 = _icon$field_ili_descr.values) === null || _icon$field_ili_descr2 === void 0 ? void 0 : (_icon$field_ili_descr3 = _icon$field_ili_descr2[0]) === null || _icon$field_ili_descr3 === void 0 ? void 0 : _icon$field_ili_descr3.value,
179
- text: icon === null || icon === void 0 ? void 0 : (_icon$field_ili_descr4 = icon.field_ili_description) === null || _icon$field_ili_descr4 === void 0 ? void 0 : (_icon$field_ili_descr5 = _icon$field_ili_descr4.values) === null || _icon$field_ili_descr5 === void 0 ? void 0 : (_icon$field_ili_descr6 = _icon$field_ili_descr5[0]) === null || _icon$field_ili_descr6 === void 0 ? void 0 : _icon$field_ili_descr6.value,
180
- color: (newTheme === null || newTheme === void 0 ? void 0 : newTheme.color) || "#000000",
181
- backgroundColor: newTheme === null || newTheme === void 0 ? void 0 : newTheme.backgroundColor
182
- };
183
- });
184
- return {
185
- type: type,
186
- header: header,
187
- iconListItems: iconListItems,
188
- theme: newTheme
189
- };
190
- };
191
- exports.formatTabbedListFeatFive = formatTabbedListFeatFive;
192
- var _default = formatFeatSeven;
193
- exports["default"] = _default;
@@ -1,41 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports["default"] = void 0;
8
- var _formatTheme = _interopRequireDefault(require("../formatTheme"));
9
- var formatFeatThree = function formatFeatThree(featThreeData) {
10
- var _data$field_m_image_c, _data$field_m_image_c2, _data$field_m_image_c3, _data$field_m_image, _data$field_m_image$v, _data$field_m_image$v2, _data$field_m_image$v3, _data$field_m_image$v4, _data$field_m_image2, _data$field_m_image2$, _data$field_m_image2$2, _data$field_m_image2$3, _data$field_m_image2$4, _data$image_small, _data$image_small2, _data$image_small3, _data$field_anchor_to, _data$field_anchor_to2, _data$field_anchor_te, _data$field_anchor_te2, _data$field_anchor_te3, _data$field_anchor_te4, _data$field_anchor_te5, _data$field_anchor_te6;
11
- var data = featThreeData || {};
12
- var header = data === null || data === void 0 ? void 0 : (_data$field_m_image_c = data.field_m_image_caption) === null || _data$field_m_image_c === void 0 ? void 0 : (_data$field_m_image_c2 = _data$field_m_image_c.values) === null || _data$field_m_image_c2 === void 0 ? void 0 : (_data$field_m_image_c3 = _data$field_m_image_c2[0]) === null || _data$field_m_image_c3 === void 0 ? void 0 : _data$field_m_image_c3.value;
13
- var theme = (0, _formatTheme["default"])(data === null || data === void 0 ? void 0 : data.field_section_theme);
14
- var largeImage = {
15
- url: data === null || data === void 0 ? void 0 : (_data$field_m_image = data.field_m_image) === null || _data$field_m_image === void 0 ? void 0 : (_data$field_m_image$v = _data$field_m_image.values) === null || _data$field_m_image$v === void 0 ? void 0 : (_data$field_m_image$v2 = _data$field_m_image$v[0].field_media_image) === null || _data$field_m_image$v2 === void 0 ? void 0 : (_data$field_m_image$v3 = _data$field_m_image$v2.values) === null || _data$field_m_image$v3 === void 0 ? void 0 : (_data$field_m_image$v4 = _data$field_m_image$v3[0]) === null || _data$field_m_image$v4 === void 0 ? void 0 : _data$field_m_image$v4.source,
16
- altText: data === null || data === void 0 ? void 0 : (_data$field_m_image2 = data.field_m_image) === null || _data$field_m_image2 === void 0 ? void 0 : (_data$field_m_image2$ = _data$field_m_image2.values) === null || _data$field_m_image2$ === void 0 ? void 0 : (_data$field_m_image2$2 = _data$field_m_image2$[0].field_media_image) === null || _data$field_m_image2$2 === void 0 ? void 0 : (_data$field_m_image2$3 = _data$field_m_image2$2.values) === null || _data$field_m_image2$3 === void 0 ? void 0 : (_data$field_m_image2$4 = _data$field_m_image2$3[0]) === null || _data$field_m_image2$4 === void 0 ? void 0 : _data$field_m_image2$4.alt
17
- };
18
- // TODO - no JSON for subheader
19
- // TODO - no JSON for mobile images
20
- var images = {
21
- desktop: largeImage,
22
- mobile: data !== null && data !== void 0 && (_data$image_small = data.image_small) !== null && _data$image_small !== void 0 && _data$image_small.source ? {
23
- url: data === null || data === void 0 ? void 0 : (_data$image_small2 = data.image_small) === null || _data$image_small2 === void 0 ? void 0 : _data$image_small2.source,
24
- altText: data === null || data === void 0 ? void 0 : (_data$image_small3 = data.image_small) === null || _data$image_small3 === void 0 ? void 0 : _data$image_small3.alt
25
- } : largeImage
26
- };
27
- var content = {
28
- header: header,
29
- images: images,
30
- theme: theme
31
- };
32
- var type = data.type;
33
- var anchor = data !== null && data !== void 0 && (_data$field_anchor_to = data.field_anchor_toggle) !== null && _data$field_anchor_to !== void 0 && (_data$field_anchor_to2 = _data$field_anchor_to.values) !== null && _data$field_anchor_to2 !== void 0 && _data$field_anchor_to2[0] && data !== null && data !== void 0 && (_data$field_anchor_te = data.field_anchor_text) !== null && _data$field_anchor_te !== void 0 && (_data$field_anchor_te2 = _data$field_anchor_te.values) !== null && _data$field_anchor_te2 !== void 0 && (_data$field_anchor_te3 = _data$field_anchor_te2[0]) !== null && _data$field_anchor_te3 !== void 0 && _data$field_anchor_te3.value ? data === null || data === void 0 ? void 0 : (_data$field_anchor_te4 = data.field_anchor_text) === null || _data$field_anchor_te4 === void 0 ? void 0 : (_data$field_anchor_te5 = _data$field_anchor_te4.values) === null || _data$field_anchor_te5 === void 0 ? void 0 : (_data$field_anchor_te6 = _data$field_anchor_te5[0]) === null || _data$field_anchor_te6 === void 0 ? void 0 : _data$field_anchor_te6.value : null;
34
- return {
35
- content: content,
36
- type: type,
37
- anchor: anchor
38
- };
39
- };
40
- var _default = formatFeatThree;
41
- exports["default"] = _default;
@@ -1,37 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports["default"] = void 0;
8
- var _formatFeatTwoAFolds = _interopRequireDefault(require("./formatFeatTwoAFolds"));
9
- var _formatTheme = _interopRequireDefault(require("../formatTheme"));
10
- var formatFeatTwoA = function formatFeatTwoA(featTwoAData) {
11
- var _data$field_intro_hea, _data$field_intro_hea2, _data$field_intro_hea3, _data$field_intro_des, _data$field_intro_des2, _data$field_intro_des3, _data$field_m_image_, _data$field_m_image_$, _data$field_m_image_$2, _data$field_m_image_$3, _data$field_m_image_$4, _data$field_m_image_$5, _data$field_m_image_2, _data$field_m_image_3, _data$field_m_image_4, _data$field_m_image_5, _data$field_m_image_6, _data$field_m_image_7, _data$field_s_list, _data$field_s_list$va, _data$field_s_list$va2, _data$field_s_list$va3, _data$field_anchor_to, _data$field_anchor_to2, _data$field_anchor_te, _data$field_anchor_te2, _data$field_anchor_te3, _data$field_anchor_te4, _data$field_anchor_te5, _data$field_anchor_te6;
12
- var data = featTwoAData || {};
13
- var type = "feat_2a";
14
- var header = data === null || data === void 0 ? void 0 : (_data$field_intro_hea = data.field_intro_header) === null || _data$field_intro_hea === void 0 ? void 0 : (_data$field_intro_hea2 = _data$field_intro_hea.values) === null || _data$field_intro_hea2 === void 0 ? void 0 : (_data$field_intro_hea3 = _data$field_intro_hea2[0]) === null || _data$field_intro_hea3 === void 0 ? void 0 : _data$field_intro_hea3.value;
15
- var subHeader = data === null || data === void 0 ? void 0 : (_data$field_intro_des = data.field_intro_description) === null || _data$field_intro_des === void 0 ? void 0 : (_data$field_intro_des2 = _data$field_intro_des.values) === null || _data$field_intro_des2 === void 0 ? void 0 : (_data$field_intro_des3 = _data$field_intro_des2[0]) === null || _data$field_intro_des3 === void 0 ? void 0 : _data$field_intro_des3.value;
16
- var image = {
17
- url: data === null || data === void 0 ? void 0 : (_data$field_m_image_ = data.field_m_image_1_1) === null || _data$field_m_image_ === void 0 ? void 0 : (_data$field_m_image_$ = _data$field_m_image_.values) === null || _data$field_m_image_$ === void 0 ? void 0 : (_data$field_m_image_$2 = _data$field_m_image_$[0]) === null || _data$field_m_image_$2 === void 0 ? void 0 : (_data$field_m_image_$3 = _data$field_m_image_$2.field_media_image) === null || _data$field_m_image_$3 === void 0 ? void 0 : (_data$field_m_image_$4 = _data$field_m_image_$3.values) === null || _data$field_m_image_$4 === void 0 ? void 0 : (_data$field_m_image_$5 = _data$field_m_image_$4[0]) === null || _data$field_m_image_$5 === void 0 ? void 0 : _data$field_m_image_$5.source,
18
- altText: data === null || data === void 0 ? void 0 : (_data$field_m_image_2 = data.field_m_image_1_1) === null || _data$field_m_image_2 === void 0 ? void 0 : (_data$field_m_image_3 = _data$field_m_image_2.values) === null || _data$field_m_image_3 === void 0 ? void 0 : (_data$field_m_image_4 = _data$field_m_image_3[0]) === null || _data$field_m_image_4 === void 0 ? void 0 : (_data$field_m_image_5 = _data$field_m_image_4.field_media_image) === null || _data$field_m_image_5 === void 0 ? void 0 : (_data$field_m_image_6 = _data$field_m_image_5.values) === null || _data$field_m_image_6 === void 0 ? void 0 : (_data$field_m_image_7 = _data$field_m_image_6[0]) === null || _data$field_m_image_7 === void 0 ? void 0 : _data$field_m_image_7.alt
19
- };
20
- var theme = (0, _formatTheme["default"])(data === null || data === void 0 ? void 0 : data.field_section_theme);
21
- var children = (0, _formatFeatTwoAFolds["default"])((_data$field_s_list = data.field_s_list) === null || _data$field_s_list === void 0 ? void 0 : (_data$field_s_list$va = _data$field_s_list.values) === null || _data$field_s_list$va === void 0 ? void 0 : (_data$field_s_list$va2 = _data$field_s_list$va[0]) === null || _data$field_s_list$va2 === void 0 ? void 0 : (_data$field_s_list$va3 = _data$field_s_list$va2.field_accordion_tabs) === null || _data$field_s_list$va3 === void 0 ? void 0 : _data$field_s_list$va3.values, theme);
22
- var anchor = data !== null && data !== void 0 && (_data$field_anchor_to = data.field_anchor_toggle) !== null && _data$field_anchor_to !== void 0 && (_data$field_anchor_to2 = _data$field_anchor_to.values) !== null && _data$field_anchor_to2 !== void 0 && _data$field_anchor_to2[0] && data !== null && data !== void 0 && (_data$field_anchor_te = data.field_anchor_text) !== null && _data$field_anchor_te !== void 0 && (_data$field_anchor_te2 = _data$field_anchor_te.values) !== null && _data$field_anchor_te2 !== void 0 && (_data$field_anchor_te3 = _data$field_anchor_te2[0]) !== null && _data$field_anchor_te3 !== void 0 && _data$field_anchor_te3.value ? data === null || data === void 0 ? void 0 : (_data$field_anchor_te4 = data.field_anchor_text) === null || _data$field_anchor_te4 === void 0 ? void 0 : (_data$field_anchor_te5 = _data$field_anchor_te4.values) === null || _data$field_anchor_te5 === void 0 ? void 0 : (_data$field_anchor_te6 = _data$field_anchor_te5[0]) === null || _data$field_anchor_te6 === void 0 ? void 0 : _data$field_anchor_te6.value : null;
23
- var content = {
24
- header: header,
25
- subHeader: subHeader,
26
- image: image,
27
- children: children,
28
- theme: theme
29
- };
30
- return {
31
- type: type,
32
- content: content,
33
- anchor: anchor
34
- };
35
- };
36
- var _default = formatFeatTwoA;
37
- exports["default"] = _default;
@@ -1,27 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
- var formatFolds = function formatFolds() {
8
- var foldsData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
9
- var theme = arguments.length > 1 ? arguments[1] : undefined;
10
- var data = foldsData || [];
11
- // Format the individual accordion folds
12
- if (data && data.length) {
13
- return data.map(function (fold) {
14
- var _fold$field_accordion, _fold$field_accordion2, _fold$field_accordion3, _fold$field_accordion4, _fold$field_accordion5, _fold$field_accordion6;
15
- return {
16
- header: fold === null || fold === void 0 ? void 0 : (_fold$field_accordion = fold.field_accordion_header) === null || _fold$field_accordion === void 0 ? void 0 : (_fold$field_accordion2 = _fold$field_accordion.values) === null || _fold$field_accordion2 === void 0 ? void 0 : (_fold$field_accordion3 = _fold$field_accordion2[0]) === null || _fold$field_accordion3 === void 0 ? void 0 : _fold$field_accordion3.value,
17
- text: fold === null || fold === void 0 ? void 0 : (_fold$field_accordion4 = fold.field_accordion_content) === null || _fold$field_accordion4 === void 0 ? void 0 : (_fold$field_accordion5 = _fold$field_accordion4.values) === null || _fold$field_accordion5 === void 0 ? void 0 : (_fold$field_accordion6 = _fold$field_accordion5[0]) === null || _fold$field_accordion6 === void 0 ? void 0 : _fold$field_accordion6.value,
18
- color: theme === null || theme === void 0 ? void 0 : theme.color,
19
- backgroundColor: theme === null || theme === void 0 ? void 0 : theme.backgroundColor
20
- };
21
- });
22
- } else {
23
- return [];
24
- }
25
- };
26
- var _default = formatFolds;
27
- exports["default"] = _default;
@@ -1,40 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports["default"] = void 0;
8
- var _formatTheme = _interopRequireDefault(require("../formatTheme"));
9
- var _formatFeatTwoBIcons = _interopRequireDefault(require("./formatFeatTwoBIcons"));
10
- var formatFeatTwoB = function formatFeatTwoB() {
11
- var _data$field_s_list, _data$field_s_list$va, _data$field_s_list$va2, _data$field_s_list$va3, _data$field_m_image_, _data$field_m_image_$, _data$field_m_image_$2, _data$field_m_image_$3, _data$field_m_image_$4, _data$field_m_image_$5, _data$field_m_image_2, _data$field_m_image_3, _data$field_m_image_4, _data$field_m_image_5, _data$field_m_image_6, _data$field_m_image_7, _data$field_intro_hea, _data$field_intro_hea2, _data$field_intro_hea3, _data$field_intro_des, _data$field_intro_des2, _data$field_intro_des3, _data$field_anchor_to, _data$field_anchor_to2, _data$field_anchor_te, _data$field_anchor_te2, _data$field_anchor_te3, _data$field_anchor_te4, _data$field_anchor_te5, _data$field_anchor_te6;
12
- var featTwoBData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
13
- var languageCode = arguments.length > 1 ? arguments[1] : undefined;
14
- var languageEnabled = arguments.length > 2 ? arguments[2] : undefined;
15
- var labels = arguments.length > 3 ? arguments[3] : undefined;
16
- var fpoBox = arguments.length > 4 ? arguments[4] : undefined;
17
- var data = featTwoBData || {};
18
- var theme = (0, _formatTheme["default"])(data === null || data === void 0 ? void 0 : data.field_section_theme);
19
- var cards = ((_data$field_s_list = data.field_s_list) === null || _data$field_s_list === void 0 ? void 0 : (_data$field_s_list$va = _data$field_s_list.values) === null || _data$field_s_list$va === void 0 ? void 0 : (_data$field_s_list$va2 = _data$field_s_list$va[0]) === null || _data$field_s_list$va2 === void 0 ? void 0 : (_data$field_s_list$va3 = _data$field_s_list$va2.field_icon_list_items) === null || _data$field_s_list$va3 === void 0 ? void 0 : _data$field_s_list$va3.values) || [];
20
- var content = {
21
- images: {
22
- desktop: {
23
- url: (data === null || data === void 0 ? void 0 : (_data$field_m_image_ = data.field_m_image_1_1) === null || _data$field_m_image_ === void 0 ? void 0 : (_data$field_m_image_$ = _data$field_m_image_.values) === null || _data$field_m_image_$ === void 0 ? void 0 : (_data$field_m_image_$2 = _data$field_m_image_$[0]) === null || _data$field_m_image_$2 === void 0 ? void 0 : (_data$field_m_image_$3 = _data$field_m_image_$2.field_media_image) === null || _data$field_m_image_$3 === void 0 ? void 0 : (_data$field_m_image_$4 = _data$field_m_image_$3.values) === null || _data$field_m_image_$4 === void 0 ? void 0 : (_data$field_m_image_$5 = _data$field_m_image_$4[0]) === null || _data$field_m_image_$5 === void 0 ? void 0 : _data$field_m_image_$5.source) || fpoBox,
24
- altText: data === null || data === void 0 ? void 0 : (_data$field_m_image_2 = data.field_m_image_1_1) === null || _data$field_m_image_2 === void 0 ? void 0 : (_data$field_m_image_3 = _data$field_m_image_2.values) === null || _data$field_m_image_3 === void 0 ? void 0 : (_data$field_m_image_4 = _data$field_m_image_3[0]) === null || _data$field_m_image_4 === void 0 ? void 0 : (_data$field_m_image_5 = _data$field_m_image_4.field_media_image) === null || _data$field_m_image_5 === void 0 ? void 0 : (_data$field_m_image_6 = _data$field_m_image_5.values) === null || _data$field_m_image_6 === void 0 ? void 0 : (_data$field_m_image_7 = _data$field_m_image_6[0]) === null || _data$field_m_image_7 === void 0 ? void 0 : _data$field_m_image_7.alt
25
- }
26
- },
27
- header: data === null || data === void 0 ? void 0 : (_data$field_intro_hea = data.field_intro_header) === null || _data$field_intro_hea === void 0 ? void 0 : (_data$field_intro_hea2 = _data$field_intro_hea.values) === null || _data$field_intro_hea2 === void 0 ? void 0 : (_data$field_intro_hea3 = _data$field_intro_hea2[0]) === null || _data$field_intro_hea3 === void 0 ? void 0 : _data$field_intro_hea3.value,
28
- subHeader: data === null || data === void 0 ? void 0 : (_data$field_intro_des = data.field_intro_description) === null || _data$field_intro_des === void 0 ? void 0 : (_data$field_intro_des2 = _data$field_intro_des.values) === null || _data$field_intro_des2 === void 0 ? void 0 : (_data$field_intro_des3 = _data$field_intro_des2[0]) === null || _data$field_intro_des3 === void 0 ? void 0 : _data$field_intro_des3.value,
29
- cards: (0, _formatFeatTwoBIcons["default"])(cards, theme),
30
- theme: theme
31
- };
32
- var anchor = data !== null && data !== void 0 && (_data$field_anchor_to = data.field_anchor_toggle) !== null && _data$field_anchor_to !== void 0 && (_data$field_anchor_to2 = _data$field_anchor_to.values) !== null && _data$field_anchor_to2 !== void 0 && _data$field_anchor_to2[0] && data !== null && data !== void 0 && (_data$field_anchor_te = data.field_anchor_text) !== null && _data$field_anchor_te !== void 0 && (_data$field_anchor_te2 = _data$field_anchor_te.values) !== null && _data$field_anchor_te2 !== void 0 && (_data$field_anchor_te3 = _data$field_anchor_te2[0]) !== null && _data$field_anchor_te3 !== void 0 && _data$field_anchor_te3.value ? data === null || data === void 0 ? void 0 : (_data$field_anchor_te4 = data.field_anchor_text) === null || _data$field_anchor_te4 === void 0 ? void 0 : (_data$field_anchor_te5 = _data$field_anchor_te4.values) === null || _data$field_anchor_te5 === void 0 ? void 0 : (_data$field_anchor_te6 = _data$field_anchor_te5[0]) === null || _data$field_anchor_te6 === void 0 ? void 0 : _data$field_anchor_te6.value : null;
33
- return {
34
- content: content,
35
- type: "feat_2b",
36
- anchor: anchor
37
- };
38
- };
39
- var _default = formatFeatTwoB;
40
- exports["default"] = _default;
@@ -1,20 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
- var formatIcons = function formatIcons() {
8
- var iconData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
9
- var data = iconData || [];
10
- return data.map(function (icon, theme) {
11
- var _icon$field_ili_heade, _icon$field_ili_heade2, _icon$field_ili_descr, _icon$field_ili_descr2;
12
- return {
13
- header: icon === null || icon === void 0 ? void 0 : (_icon$field_ili_heade = icon.field_ili_header) === null || _icon$field_ili_heade === void 0 ? void 0 : (_icon$field_ili_heade2 = _icon$field_ili_heade.values) === null || _icon$field_ili_heade2 === void 0 ? void 0 : _icon$field_ili_heade2[0].value,
14
- text: icon === null || icon === void 0 ? void 0 : (_icon$field_ili_descr = icon.field_ili_description) === null || _icon$field_ili_descr === void 0 ? void 0 : (_icon$field_ili_descr2 = _icon$field_ili_descr.values) === null || _icon$field_ili_descr2 === void 0 ? void 0 : _icon$field_ili_descr2[0].value,
15
- color: theme === null || theme === void 0 ? void 0 : theme.color
16
- };
17
- });
18
- };
19
- var _default = formatIcons;
20
- exports["default"] = _default;
@@ -1,49 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports["default"] = void 0;
8
- var _formatTheme = _interopRequireDefault(require("../formatTheme"));
9
- var formatPullQuote = function formatPullQuote() {
10
- var _data$field_anchor_to, _data$field_anchor_to2, _data$field_anchor_te, _data$field_anchor_te2, _data$field_anchor_te3, _data$field_anchor_te4, _data$field_quote_bod, _data$field_quote_bod2, _data$field_quote_bod3, _data$field_quote_aut, _data$field_quote_aut2, _data$field_quote_aut3, _data$field_quote_aut4, _data$field_quote_aut5, _data$field_quote_aut6, _data$field_quote_ima, _data$field_quote_ima2, _data$field_quote_ima3, _data$field_quote_ima4, _data$field_quote_ima5, _data$field_quote_ima6, _data$field_quote_ima7, _data$field_quote_ima8, _data$field_quote_ima9, _data$field_quote_ima10, _data$field_quote_ima11, _data$field_quote_ima12, _data$field_quote_cta, _data$field_quote_cta2, _data$field_quote_cta3, _data$field_quote_cta4, _data$field_quote_cta5, _data$field_quote_cta6, _data$field_quote_cta7, _data$field_quote_cta8, _data$field_quote_cta9;
11
- var pullQuoteData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
12
- var languageCode = arguments.length > 1 ? arguments[1] : undefined;
13
- var languageEnabled = arguments.length > 2 ? arguments[2] : undefined;
14
- var labels = arguments.length > 3 ? arguments[3] : undefined;
15
- var fpoBox = arguments.length > 4 ? arguments[4] : undefined;
16
- var formatLinks = arguments.length > 5 ? arguments[5] : undefined;
17
- var fpoSquare = arguments.length > 6 ? arguments[6] : undefined;
18
- var data = pullQuoteData || {};
19
- var type = data.type;
20
- var theme = (0, _formatTheme["default"])(data === null || data === void 0 ? void 0 : data.field_section_theme);
21
- var anchor = (_data$field_anchor_to = data.field_anchor_toggle) !== null && _data$field_anchor_to !== void 0 && (_data$field_anchor_to2 = _data$field_anchor_to.values) !== null && _data$field_anchor_to2 !== void 0 && _data$field_anchor_to2[0] && (_data$field_anchor_te = data.field_anchor_text.values) !== null && _data$field_anchor_te !== void 0 && (_data$field_anchor_te2 = _data$field_anchor_te[0]) !== null && _data$field_anchor_te2 !== void 0 && _data$field_anchor_te2.value ? (_data$field_anchor_te3 = data.field_anchor_text.values) === null || _data$field_anchor_te3 === void 0 ? void 0 : (_data$field_anchor_te4 = _data$field_anchor_te3[0]) === null || _data$field_anchor_te4 === void 0 ? void 0 : _data$field_anchor_te4.value : null;
22
- var quote = {
23
- text: (data === null || data === void 0 ? void 0 : (_data$field_quote_bod = data.field_quote_body) === null || _data$field_quote_bod === void 0 ? void 0 : (_data$field_quote_bod2 = _data$field_quote_bod.values) === null || _data$field_quote_bod2 === void 0 ? void 0 : (_data$field_quote_bod3 = _data$field_quote_bod2[0]) === null || _data$field_quote_bod3 === void 0 ? void 0 : _data$field_quote_bod3.value) || null,
24
- source: (data === null || data === void 0 ? void 0 : (_data$field_quote_aut = data.field_quote_author) === null || _data$field_quote_aut === void 0 ? void 0 : (_data$field_quote_aut2 = _data$field_quote_aut.values) === null || _data$field_quote_aut2 === void 0 ? void 0 : (_data$field_quote_aut3 = _data$field_quote_aut2[0]) === null || _data$field_quote_aut3 === void 0 ? void 0 : _data$field_quote_aut3.value) || null,
25
- sourceTitle: (data === null || data === void 0 ? void 0 : (_data$field_quote_aut4 = data.field_quote_author_title) === null || _data$field_quote_aut4 === void 0 ? void 0 : (_data$field_quote_aut5 = _data$field_quote_aut4.values) === null || _data$field_quote_aut5 === void 0 ? void 0 : (_data$field_quote_aut6 = _data$field_quote_aut5[0]) === null || _data$field_quote_aut6 === void 0 ? void 0 : _data$field_quote_aut6.value) || null
26
- };
27
- var image = {
28
- url: ((_data$field_quote_ima = data.field_quote_image) === null || _data$field_quote_ima === void 0 ? void 0 : (_data$field_quote_ima2 = _data$field_quote_ima.values) === null || _data$field_quote_ima2 === void 0 ? void 0 : (_data$field_quote_ima3 = _data$field_quote_ima2[0]) === null || _data$field_quote_ima3 === void 0 ? void 0 : (_data$field_quote_ima4 = _data$field_quote_ima3.field_media_image) === null || _data$field_quote_ima4 === void 0 ? void 0 : (_data$field_quote_ima5 = _data$field_quote_ima4.values) === null || _data$field_quote_ima5 === void 0 ? void 0 : (_data$field_quote_ima6 = _data$field_quote_ima5[0]) === null || _data$field_quote_ima6 === void 0 ? void 0 : _data$field_quote_ima6.source) || fpoSquare,
29
- altText: ((_data$field_quote_ima7 = data.field_quote_image) === null || _data$field_quote_ima7 === void 0 ? void 0 : (_data$field_quote_ima8 = _data$field_quote_ima7.values) === null || _data$field_quote_ima8 === void 0 ? void 0 : (_data$field_quote_ima9 = _data$field_quote_ima8[0]) === null || _data$field_quote_ima9 === void 0 ? void 0 : (_data$field_quote_ima10 = _data$field_quote_ima9.field_media_image) === null || _data$field_quote_ima10 === void 0 ? void 0 : (_data$field_quote_ima11 = _data$field_quote_ima10.values) === null || _data$field_quote_ima11 === void 0 ? void 0 : (_data$field_quote_ima12 = _data$field_quote_ima11[0]) === null || _data$field_quote_ima12 === void 0 ? void 0 : _data$field_quote_ima12.alt) || "Double quotes"
30
- };
31
- var cta = {
32
- url: (_data$field_quote_cta = data.field_quote_cta) !== null && _data$field_quote_cta !== void 0 && (_data$field_quote_cta2 = _data$field_quote_cta.values) !== null && _data$field_quote_cta2 !== void 0 && (_data$field_quote_cta3 = _data$field_quote_cta2[0]) !== null && _data$field_quote_cta3 !== void 0 && _data$field_quote_cta3.url ? formatLinks((_data$field_quote_cta4 = data.field_quote_cta) === null || _data$field_quote_cta4 === void 0 ? void 0 : (_data$field_quote_cta5 = _data$field_quote_cta4.values) === null || _data$field_quote_cta5 === void 0 ? void 0 : (_data$field_quote_cta6 = _data$field_quote_cta5[0]) === null || _data$field_quote_cta6 === void 0 ? void 0 : _data$field_quote_cta6.url, languageCode, languageEnabled) : null,
33
- text: (_data$field_quote_cta7 = data.field_quote_cta) === null || _data$field_quote_cta7 === void 0 ? void 0 : (_data$field_quote_cta8 = _data$field_quote_cta7.values) === null || _data$field_quote_cta8 === void 0 ? void 0 : (_data$field_quote_cta9 = _data$field_quote_cta8[0]) === null || _data$field_quote_cta9 === void 0 ? void 0 : _data$field_quote_cta9.title,
34
- className: theme.ctaOne || "primary--1"
35
- };
36
- var content = {
37
- quote: quote,
38
- image: image,
39
- cta: cta,
40
- theme: theme
41
- };
42
- return {
43
- content: content,
44
- type: type,
45
- anchor: anchor
46
- };
47
- };
48
- var _default = formatPullQuote;
49
- exports["default"] = _default;
@@ -1,173 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
4
- var _formatFeatFive = _interopRequireDefault(require("../formatFeatFive"));
5
- var _fpoBox = "./fpobox.jpg";
6
- describe("formatFeatFive", function () {
7
- var _featFiveData = {
8
- id: "1691",
9
- entity_type: "paragraph",
10
- type: "pbo_feat_5",
11
- field_anchor_text: null,
12
- field_anchor_toggle: {
13
- field_type: "boolean",
14
- values: [false]
15
- },
16
- field_animation_toggle: {
17
- field_type: "boolean",
18
- values: [false]
19
- },
20
- field_intro_cta: {
21
- field_type: "paragraph",
22
- values: [{
23
- id: "1681",
24
- entity_type: "paragraph",
25
- type: "cta_section_1",
26
- published: true,
27
- fields: ["parent_field_name", "field_cta_primary_1", "field_cta_secondary_1"],
28
- parent_field_name: {
29
- field_type: "string",
30
- values: [{
31
- value: "field_intro_cta"
32
- }]
33
- },
34
- field_cta_primary_1: null,
35
- field_cta_secondary_1: {
36
- field_type: "links",
37
- values: [{
38
- uri: "internal:/",
39
- title: "Secondary Button ",
40
- options: [],
41
- url: "/en"
42
- }]
43
- }
44
- }]
45
- },
46
- field_intro_description: {
47
- field_type: "text_long",
48
- values: [{
49
- value: "<p>This is an HTML block</p>",
50
- format: "full_html"
51
- }]
52
- },
53
- field_intro_header: null,
54
- field_s_video: {
55
- field_type: "paragraph",
56
- values: [{
57
- id: "1686",
58
- entity_type: "paragraph",
59
- type: "m_video",
60
- published: true,
61
- fields: ["parent_field_name", "field_video_code", "field_video_poster", "field_video_source"],
62
- parent_field_name: {
63
- field_type: "string",
64
- values: [{
65
- value: "field_s_video"
66
- }]
67
- },
68
- field_video_code: null,
69
- field_video_poster: null,
70
- field_video_source: null
71
- }]
72
- },
73
- field_section_theme: {
74
- field_type: "taxonomy_term",
75
- values: [{
76
- id: "1",
77
- entity_type: "taxonomy_term",
78
- type: "organism_themes",
79
- name: "Theme 1",
80
- description: "theme-1",
81
- children: [],
82
- published: true,
83
- fields: ["field_theme_background_color", "field_theme_color", "field_theme_cta_one", "field_theme_cta_two"],
84
- field_theme_background_color: {
85
- field_type: "string",
86
- values: [{
87
- value: "#f2f2f2"
88
- }]
89
- },
90
- field_theme_color: {
91
- field_type: "string",
92
- values: [{
93
- value: "#000000"
94
- }]
95
- },
96
- field_theme_cta_one: {
97
- field_type: "string",
98
- values: [{
99
- value: "primary--5"
100
- }]
101
- },
102
- field_theme_cta_two: {
103
- field_type: "string",
104
- values: [{
105
- value: "secondary--5"
106
- }]
107
- }
108
- }]
109
- }
110
- };
111
- var expected = {
112
- type: "pbo_feat_5",
113
- content: {
114
- header: undefined,
115
- subHeader: "<p>This is an HTML block</p>",
116
- thumbnail: {
117
- url: "./fpobox.jpg",
118
- altText: "video thumbnail"
119
- },
120
- video: {
121
- url: null,
122
- allowFullScreen: true,
123
- uuid: null,
124
- vidyard: false
125
- },
126
- theme: {
127
- backgroundColor: "#f2f2f2",
128
- color: "#000000",
129
- ctaOne: "primary--5",
130
- ctaTwo: "secondary--5",
131
- theme: "theme-1"
132
- }
133
- },
134
- anchor: null
135
- };
136
- var bad_data = {};
137
- test("it should return formatted data", function () {
138
- var response = (0, _formatFeatFive["default"])(_featFiveData, null, null, null, _fpoBox);
139
- expect(response).toStrictEqual(expected);
140
- });
141
- test("it should handle junk data without crashing", function () {
142
- var _junkData = {
143
- data: "junk"
144
- };
145
- var expected = {
146
- content: {
147
- header: undefined,
148
- subHeader: undefined,
149
- thumbnail: {
150
- url: "./fpobox.jpg",
151
- altText: "video thumbnail"
152
- },
153
- video: {
154
- url: null,
155
- allowFullScreen: true,
156
- uuid: null,
157
- vidyard: false
158
- },
159
- theme: {
160
- backgroundColor: undefined,
161
- color: undefined,
162
- ctaOne: undefined,
163
- ctaTwo: undefined,
164
- theme: undefined
165
- }
166
- },
167
- anchor: null,
168
- type: undefined
169
- };
170
- var response = (0, _formatFeatFive["default"])(_junkData, null, null, null, _fpoBox);
171
- expect(response).toStrictEqual(expected);
172
- });
173
- });