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,33 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
- var _default = function _default() {
8
- return {
9
- type: "mock type",
10
- theme: {
11
- color: "blue",
12
- background: "purple",
13
- ctaOne: "bright",
14
- ctaTwo: "dark"
15
- },
16
- topSection: {
17
- header: "LF1 Header - Link Tiles",
18
- subHeader: "Desc",
19
- ctas: {
20
- ctaOne: {
21
- text: "Button",
22
- url: "/features"
23
- },
24
- ctaTwo: {
25
- text: "Second",
26
- url: "/listfeatures"
27
- }
28
- }
29
- },
30
- anchor: "mock anchor!"
31
- };
32
- };
33
- exports["default"] = _default;
@@ -1,53 +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 _formatCTAs = _interopRequireDefault(require("../formatCTAs"));
9
- var formatListFeatFive = function formatListFeatFive(listFeatFiveData, languageCode, languageEnabled, labels, fpoBox, formatLinks) {
10
- var _data$list, _data$list$;
11
- var data = listFeatFiveData || {};
12
- var header = data.intro_header;
13
- var subHeader = data.intro_description;
14
- var ctas = (0, _formatCTAs["default"])(data.ctas, languageCode, languageEnabled, formatLinks);
15
- var iconListItems = formatListFeatFiveItems(data === null || data === void 0 ? void 0 : (_data$list = data.list) === null || _data$list === void 0 ? void 0 : (_data$list$ = _data$list[0]) === null || _data$list$ === void 0 ? void 0 : _data$list$.list);
16
- var content = {
17
- header: header,
18
- subHeader: subHeader,
19
- ctas: ctas,
20
- iconListItems: iconListItems,
21
- type: "list_feat_5"
22
- };
23
- var anchor = data.anchor_toggle && data.anchor_text ? data.anchor_text : null;
24
- var theme = data.theme;
25
- var type = "list_feat_5";
26
- return {
27
- content: content,
28
- theme: theme,
29
- type: type,
30
- anchor: anchor
31
- };
32
- };
33
- var formatListFeatFiveItems = function formatListFeatFiveItems() {
34
- var items = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
35
- return items.map(function (item) {
36
- return {
37
- type: item.icon ? formatIcon(item.icon) : null,
38
- header: item.header,
39
- text: item.text
40
- };
41
- });
42
- };
43
- var formatIcon = function formatIcon(icon) {
44
- if (icon.startsWith("ter-icon--")) {
45
- icon = icon.replace("ter-icon--", "");
46
- }
47
- if (icon.startsWith("su-")) {
48
- icon = icon.replace("su-", "");
49
- }
50
- return icon;
51
- };
52
- var _default = formatListFeatFive;
53
- exports["default"] = _default;
@@ -1,32 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
- var formatListFeatFiveItemsV2 = function formatListFeatFiveItemsV2() {
8
- var listFeatFiveItemData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
9
- var theme = arguments.length > 1 ? arguments[1] : undefined;
10
- var data = listFeatFiveItemData || [];
11
- return data.map(function (item) {
12
- var _item$field_ili_icon, _item$field_ili_icon$, _item$field_ili_icon$2, _item$field_ili_icon2, _item$field_ili_icon3, _item$field_ili_icon4, _item$field_ili_heade, _item$field_ili_heade2, _item$field_ili_heade3, _item$field_ili_descr, _item$field_ili_descr2, _item$field_ili_descr3;
13
- return {
14
- type: item !== null && item !== void 0 && (_item$field_ili_icon = item.field_ili_icon) !== null && _item$field_ili_icon !== void 0 && (_item$field_ili_icon$ = _item$field_ili_icon.values) !== null && _item$field_ili_icon$ !== void 0 && (_item$field_ili_icon$2 = _item$field_ili_icon$[0]) !== null && _item$field_ili_icon$2 !== void 0 && _item$field_ili_icon$2.description ? formatIcon(item === null || item === void 0 ? void 0 : (_item$field_ili_icon2 = item.field_ili_icon) === null || _item$field_ili_icon2 === void 0 ? void 0 : (_item$field_ili_icon3 = _item$field_ili_icon2.values) === null || _item$field_ili_icon3 === void 0 ? void 0 : (_item$field_ili_icon4 = _item$field_ili_icon3[0]) === null || _item$field_ili_icon4 === void 0 ? void 0 : _item$field_ili_icon4.description) : null,
15
- header: item === null || item === void 0 ? void 0 : (_item$field_ili_heade = item.field_ili_header) === null || _item$field_ili_heade === void 0 ? void 0 : (_item$field_ili_heade2 = _item$field_ili_heade.values) === null || _item$field_ili_heade2 === void 0 ? void 0 : (_item$field_ili_heade3 = _item$field_ili_heade2[0]) === null || _item$field_ili_heade3 === void 0 ? void 0 : _item$field_ili_heade3.value,
16
- text: item === null || item === void 0 ? void 0 : (_item$field_ili_descr = item.field_ili_description) === null || _item$field_ili_descr === void 0 ? void 0 : (_item$field_ili_descr2 = _item$field_ili_descr.values) === null || _item$field_ili_descr2 === void 0 ? void 0 : (_item$field_ili_descr3 = _item$field_ili_descr2[0]) === null || _item$field_ili_descr3 === void 0 ? void 0 : _item$field_ili_descr3.value,
17
- color: theme === null || theme === void 0 ? void 0 : theme.color,
18
- backgroundColor: theme === null || theme === void 0 ? void 0 : theme.backgroundColor
19
- };
20
- });
21
- };
22
- var formatIcon = function formatIcon(icon) {
23
- if (icon.startsWith("ter-icon--")) {
24
- icon = icon.replace("ter-icon--", "");
25
- }
26
- if (icon.startsWith("su-")) {
27
- icon = icon.replace("su-", "");
28
- }
29
- return icon;
30
- };
31
- var _default = formatListFeatFiveItemsV2;
32
- exports["default"] = _default;
@@ -1,39 +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 _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
9
- var _formatListFeatV2 = _interopRequireDefault(require("./formatListFeatV2"));
10
- var _formatListFeatFiveItemsV = _interopRequireDefault(require("./formatListFeatFiveItemsV2"));
11
- var formatListFeatFiveV2 = function formatListFeatFiveV2() {
12
- var _data$field_s_icon_li, _data$field_s_icon_li2, _data$field_s_icon_li3, _data$field_s_icon_li4;
13
- var listFeatFiveData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
14
- var languageCode = arguments.length > 1 ? arguments[1] : undefined;
15
- var languageEnabled = arguments.length > 2 ? arguments[2] : undefined;
16
- var labels = arguments.length > 3 ? arguments[3] : undefined;
17
- var fpoBox = arguments.length > 4 ? arguments[4] : undefined;
18
- var formatLinks = arguments.length > 5 ? arguments[5] : undefined;
19
- var data = listFeatFiveData || {};
20
- var _formatListFeatV = (0, _formatListFeatV2["default"])(data, languageCode, languageEnabled, formatLinks),
21
- type = _formatListFeatV.type,
22
- theme = _formatListFeatV.theme,
23
- topSection = _formatListFeatV.topSection,
24
- anchor = _formatListFeatV.anchor;
25
- var items = data === null || data === void 0 ? void 0 : (_data$field_s_icon_li = data.field_s_icon_list) === null || _data$field_s_icon_li === void 0 ? void 0 : (_data$field_s_icon_li2 = _data$field_s_icon_li.values) === null || _data$field_s_icon_li2 === void 0 ? void 0 : (_data$field_s_icon_li3 = _data$field_s_icon_li2[0]) === null || _data$field_s_icon_li3 === void 0 ? void 0 : (_data$field_s_icon_li4 = _data$field_s_icon_li3.field_icon_list_items) === null || _data$field_s_icon_li4 === void 0 ? void 0 : _data$field_s_icon_li4.values;
26
- var iconListItems = (0, _formatListFeatFiveItemsV["default"])(items, theme);
27
- var content = (0, _objectSpread2["default"])((0, _objectSpread2["default"])({}, topSection), {}, {
28
- iconListItems: iconListItems,
29
- type: "list_feat_5",
30
- theme: theme
31
- });
32
- return {
33
- content: content,
34
- type: "list_feat_5",
35
- anchor: anchor
36
- };
37
- };
38
- var _default = formatListFeatFiveV2;
39
- exports["default"] = _default;
@@ -1,35 +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 _formatCTAs = _interopRequireDefault(require("../formatCTAs"));
9
- var _formatListFeatFourCards = _interopRequireDefault(require("./formatListFeatFourCards"));
10
- var formatListFeatFour = function formatListFeatFour(listFeatFourData, languageCode, languageEnabled, labels, fpoBox, formatLinks, fpoSquare) {
11
- var _data$list, _data$list$;
12
- var data = listFeatFourData || {};
13
- var header = data.intro_header;
14
- var subHeader = data.intro_description;
15
- var ctas = (0, _formatCTAs["default"])(data.ctas, languageCode, languageEnabled, formatLinks);
16
- var dumplings = (0, _formatListFeatFourCards["default"])((data === null || data === void 0 ? void 0 : (_data$list = data.list) === null || _data$list === void 0 ? void 0 : (_data$list$ = _data$list[0]) === null || _data$list$ === void 0 ? void 0 : _data$list$.list) || [], languageCode, languageEnabled, formatLinks);
17
- var content = {
18
- ctas: ctas,
19
- header: header,
20
- subHeader: subHeader,
21
- dumplings: dumplings,
22
- type: "list_feat_4"
23
- };
24
- var type = "list_feat_4";
25
- var theme = data.theme;
26
- var anchor = data.anchor_toggle && data.anchor_text ? data.anchor_text : null;
27
- return {
28
- content: content,
29
- type: type,
30
- theme: theme,
31
- anchor: anchor
32
- };
33
- };
34
- var _default = formatListFeatFour;
35
- exports["default"] = _default;
@@ -1,24 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
- var formatListFeatFourDumplings = function formatListFeatFourDumplings(dumplings, languageCode, languageEnabled, formatLinks) {
8
- return (dumplings === null || dumplings === void 0 ? void 0 : dumplings.map(function (dumpling) {
9
- return {
10
- header: dumpling === null || dumpling === void 0 ? void 0 : dumpling.text,
11
- // TODO - link is NECESSARY for header to also render. Adding below for now until it is added to the JSON
12
- link: {
13
- url: formatLinks("/", languageCode, languageEnabled)
14
- },
15
- size: "small",
16
- icon: {
17
- type: dumpling === null || dumpling === void 0 ? void 0 : dumpling.icon,
18
- size: "48px"
19
- }
20
- };
21
- })) || [];
22
- };
23
- var _default = formatListFeatFourDumplings;
24
- exports["default"] = _default;
@@ -1,36 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
- var formatListFeatFourDumplingsV2 = function formatListFeatFourDumplingsV2(dumplings, languageCode, languageEnabled, formatLinks, theme) {
8
- return dumplings.map(function (dumpling) {
9
- var _dumpling$field_dumpl, _dumpling$field_dumpl2, _dumpling$field_dumpl3, _dumpling$field_dumpl4, _dumpling$field_dumpl5, _dumpling$field_dumpl6, _dumpling$field_dumpl7, _dumpling$field_dumpl8, _dumpling$field_dumpl9;
10
- // TODO - add link from JSON - currently not in JSON
11
- return {
12
- 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,
13
- link: {
14
- url: formatLinks("/", languageCode, languageEnabled)
15
- },
16
- size: "small",
17
- icon: {
18
- type: dumpling !== null && dumpling !== void 0 && (_dumpling$field_dumpl4 = dumpling.field_dumpling_icon) !== null && _dumpling$field_dumpl4 !== void 0 && (_dumpling$field_dumpl5 = _dumpling$field_dumpl4.values) !== null && _dumpling$field_dumpl5 !== void 0 && (_dumpling$field_dumpl6 = _dumpling$field_dumpl5[0]) !== null && _dumpling$field_dumpl6 !== void 0 && _dumpling$field_dumpl6.name ? formatIcon(dumpling === null || dumpling === void 0 ? void 0 : (_dumpling$field_dumpl7 = dumpling.field_dumpling_icon) === null || _dumpling$field_dumpl7 === void 0 ? void 0 : (_dumpling$field_dumpl8 = _dumpling$field_dumpl7.values) === null || _dumpling$field_dumpl8 === void 0 ? void 0 : (_dumpling$field_dumpl9 = _dumpling$field_dumpl8[0]) === null || _dumpling$field_dumpl9 === void 0 ? void 0 : _dumpling$field_dumpl9.name) : null,
19
- size: "48px",
20
- color: theme === null || theme === void 0 ? void 0 : theme.color
21
- },
22
- color: theme === null || theme === void 0 ? void 0 : theme.color
23
- };
24
- });
25
- };
26
- var _default = formatListFeatFourDumplingsV2;
27
- exports["default"] = _default;
28
- var formatIcon = function formatIcon(icon) {
29
- if (icon.startsWith("ter-icon--")) {
30
- icon = icon.replace("ter-icon--", "");
31
- }
32
- if (icon.startsWith("su-")) {
33
- icon = icon.replace("su-", "");
34
- }
35
- return icon;
36
- };
@@ -1,38 +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 _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
9
- var _formatListFeatV2 = _interopRequireDefault(require("./formatListFeatV2"));
10
- var _formatListFeatFourDumplingsV = _interopRequireDefault(require("./formatListFeatFourDumplingsV2"));
11
- var formatListFeatTwoV2 = function formatListFeatTwoV2() {
12
- var _data$field_s_dumplin, _data$field_s_dumplin2, _data$field_s_dumplin3, _data$field_s_dumplin4, _data$field_s_dumplin5, _data$field_s_dumplin6, _data$field_s_dumplin7, _data$field_s_dumplin8;
13
- var listFeatSixData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
14
- var languageCode = arguments.length > 1 ? arguments[1] : undefined;
15
- var languageEnabled = arguments.length > 2 ? arguments[2] : undefined;
16
- var labels = arguments.length > 3 ? arguments[3] : undefined;
17
- var fpoBox = arguments.length > 4 ? arguments[4] : undefined;
18
- var formatLinks = arguments.length > 5 ? arguments[5] : undefined;
19
- var data = listFeatSixData || {};
20
- var _formatListFeatV = (0, _formatListFeatV2["default"])(data, languageCode, languageEnabled, formatLinks),
21
- type = _formatListFeatV.type,
22
- theme = _formatListFeatV.theme,
23
- topSection = _formatListFeatV.topSection,
24
- anchor = _formatListFeatV.anchor;
25
- var dumplings = data !== null && data !== void 0 && (_data$field_s_dumplin = data.field_s_dumpling_list) !== null && _data$field_s_dumplin !== void 0 && (_data$field_s_dumplin2 = _data$field_s_dumplin.values) !== null && _data$field_s_dumplin2 !== void 0 && (_data$field_s_dumplin3 = _data$field_s_dumplin2[0]) !== null && _data$field_s_dumplin3 !== void 0 && (_data$field_s_dumplin4 = _data$field_s_dumplin3.field_dumpling_list) !== null && _data$field_s_dumplin4 !== void 0 && _data$field_s_dumplin4.values ? (0, _formatListFeatFourDumplingsV["default"])(data === null || data === void 0 ? void 0 : (_data$field_s_dumplin5 = data.field_s_dumpling_list) === null || _data$field_s_dumplin5 === void 0 ? void 0 : (_data$field_s_dumplin6 = _data$field_s_dumplin5.values) === null || _data$field_s_dumplin6 === void 0 ? void 0 : (_data$field_s_dumplin7 = _data$field_s_dumplin6[0]) === null || _data$field_s_dumplin7 === void 0 ? void 0 : (_data$field_s_dumplin8 = _data$field_s_dumplin7.field_dumpling_list) === null || _data$field_s_dumplin8 === void 0 ? void 0 : _data$field_s_dumplin8.values, languageCode, languageEnabled, formatLinks, theme) : [];
26
- var content = (0, _objectSpread2["default"])((0, _objectSpread2["default"])({}, topSection), {}, {
27
- dumplings: dumplings,
28
- type: "list_feat_4",
29
- theme: theme
30
- });
31
- return {
32
- content: content,
33
- type: "list_feat_4",
34
- anchor: anchor
35
- };
36
- };
37
- var _default = formatListFeatTwoV2;
38
- exports["default"] = _default;
@@ -1,46 +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 _formatCTAs = _interopRequireDefault(require("../formatCTAs"));
9
- var _formatListFeatOneCards = _interopRequireDefault(require("./formatListFeatOneCards"));
10
- var formatListFeatOne = function formatListFeatOne()
11
- // TODO - assign this from Drupal
12
- {
13
- var _data$list;
14
- var listFeatOneData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
15
- var languageCode = arguments.length > 1 ? arguments[1] : undefined;
16
- var languageEnabled = arguments.length > 2 ? arguments[2] : undefined;
17
- var labels = arguments.length > 3 ? arguments[3] : undefined;
18
- var fpoBox = arguments.length > 4 ? arguments[4] : undefined;
19
- var formatLinks = arguments.length > 5 ? arguments[5] : undefined;
20
- var fpoSquare = arguments.length > 6 ? arguments[6] : undefined;
21
- var data = listFeatOneData || {};
22
- var ctas = (0, _formatCTAs["default"])(data.ctas, languageCode, languageEnabled, formatLinks);
23
- var anchor = data.anchor_toggle && data.anchor_text ? data.anchor_text : null;
24
- var content = {
25
- header: data.intro_header,
26
- subHeader: data.intro_description,
27
- ctas: ctas,
28
- type: "list_feat_1"
29
- };
30
- if (data !== null && data !== void 0 && (_data$list = data.list) !== null && _data$list !== void 0 && _data$list.length) {
31
- var _formatListFeatOneCar = (0, _formatListFeatOneCards["default"])(data.list, labels === null || labels === void 0 ? void 0 : labels.learnMoreText, languageCode, formatLinks, languageEnabled),
32
- cardOne = _formatListFeatOneCar.cardOne,
33
- cardTwo = _formatListFeatOneCar.cardTwo;
34
- content.cardOne = cardOne;
35
- content.cardTwo = cardTwo;
36
- }
37
- var theme = data.theme;
38
- return {
39
- theme: theme,
40
- content: content,
41
- type: "list_feat_1",
42
- anchor: anchor
43
- };
44
- };
45
- var _default = formatListFeatOne;
46
- exports["default"] = _default;
@@ -1,36 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
- var formatListFeatOneCards = function formatListFeatOneCards() {
8
- var listFeatOneCardData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
9
- var learnMoreText = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "Learn More";
10
- var languageCode = arguments.length > 2 ? arguments[2] : undefined;
11
- var formatLinks = arguments.length > 3 ? arguments[3] : undefined;
12
- var languageEnabled = arguments.length > 4 ? arguments[4] : undefined;
13
- var data = listFeatOneCardData || [];
14
- var list = Object.keys(data)[0] && data[Object.keys(data)[0]] && data[Object.keys(data)[0]].list ? data[Object.keys(data)[0]].list : null;
15
- if (list) {
16
- var keys = Object.values(list);
17
- if (keys) {
18
- var cards = keys.map(function (key) {
19
- return {
20
- header: key.header,
21
- text: key.description,
22
- cta: {
23
- url: key.cta && key.cta.url ? formatLinks(key.cta.url, languageCode, languageEnabled) : null,
24
- text: key.cta && key.cta.text ? key.cta.text : learnMoreText
25
- }
26
- };
27
- });
28
- return {
29
- cardOne: cards[0] || {},
30
- cardTwo: cards[1] || {}
31
- };
32
- }
33
- }
34
- };
35
- var _default = formatListFeatOneCards;
36
- 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 _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
9
- var _formatListFeatOneV2Cards = _interopRequireDefault(require("./formatListFeatOneV2Cards"));
10
- var _formatListFeatV2 = _interopRequireDefault(require("./formatListFeatV2"));
11
- var formatListFeatOneV2 = function formatListFeatOneV2() {
12
- var _data$field_s_list_it, _data$field_s_list_it2, _data$field_s_list_it3, _data$field_s_list_it4;
13
- var listFeatOneData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
14
- var languageCode = arguments.length > 1 ? arguments[1] : undefined;
15
- var languageEnabled = arguments.length > 2 ? arguments[2] : undefined;
16
- var labels = arguments.length > 3 ? arguments[3] : undefined;
17
- var fpoBox = arguments.length > 4 ? arguments[4] : undefined;
18
- var formatLinks = arguments.length > 5 ? arguments[5] : undefined;
19
- var data = listFeatOneData || {};
20
- var _formatListFeatV = (0, _formatListFeatV2["default"])(data, languageCode, languageEnabled, formatLinks),
21
- type = _formatListFeatV.type,
22
- theme = _formatListFeatV.theme,
23
- topSection = _formatListFeatV.topSection,
24
- anchor = _formatListFeatV.anchor;
25
- var cards = (0, _formatListFeatOneV2Cards["default"])(data === null || data === void 0 ? void 0 : (_data$field_s_list_it = data.field_s_list_items) === null || _data$field_s_list_it === void 0 ? void 0 : (_data$field_s_list_it2 = _data$field_s_list_it.values) === null || _data$field_s_list_it2 === void 0 ? void 0 : (_data$field_s_list_it3 = _data$field_s_list_it2[0]) === null || _data$field_s_list_it3 === void 0 ? void 0 : (_data$field_s_list_it4 = _data$field_s_list_it3.field_list_items) === null || _data$field_s_list_it4 === void 0 ? void 0 : _data$field_s_list_it4.values, labels === null || labels === void 0 ? void 0 : labels.learnMoreText, languageCode, formatLinks, languageEnabled, theme);
26
-
27
- // Provides header, subHeader, ctas, and type
28
- var content = (0, _objectSpread2["default"])((0, _objectSpread2["default"])({}, topSection), {}, {
29
- cardOne: cards === null || cards === void 0 ? void 0 : cards.cardOne,
30
- cardTwo: cards === null || cards === void 0 ? void 0 : cards.cardTwo,
31
- theme: theme,
32
- type: type
33
- });
34
- return {
35
- content: content,
36
- anchor: anchor,
37
- type: type
38
- };
39
- };
40
- var _default = formatListFeatOneV2;
41
- exports["default"] = _default;
@@ -1,64 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
- var formatListFeatOneV2Cards = function formatListFeatOneV2Cards() {
8
- var listFeatOneCardData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
9
- var learnMoreText = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "Learn More";
10
- var languageCode = arguments.length > 2 ? arguments[2] : undefined;
11
- var formatLinks = arguments.length > 3 ? arguments[3] : undefined;
12
- var languageEnabled = arguments.length > 4 ? arguments[4] : undefined;
13
- var theme = arguments.length > 5 ? arguments[5] : undefined;
14
- var data = listFeatOneCardData || [];
15
- var cardOneData = data === null || data === void 0 ? void 0 : data[0];
16
- var cardTwoData = data === null || data === void 0 ? void 0 : data[1];
17
- var generateCard = function generateCard(data) {
18
- if (data.type === "m_link_tile") {
19
- var _data$field_ltm_heade, _data$field_ltm_heade2, _data$field_ltm_heade3, _data$field_ltm_descr, _data$field_ltm_descr2, _data$field_ltm_descr3, _data$field_ltm_desti, _data$field_ltm_desti2;
20
- return {
21
- header: data === null || data === void 0 ? void 0 : (_data$field_ltm_heade = data.field_ltm_header) === null || _data$field_ltm_heade === void 0 ? void 0 : (_data$field_ltm_heade2 = _data$field_ltm_heade.values) === null || _data$field_ltm_heade2 === void 0 ? void 0 : (_data$field_ltm_heade3 = _data$field_ltm_heade2[0]) === null || _data$field_ltm_heade3 === void 0 ? void 0 : _data$field_ltm_heade3.value,
22
- text: data === null || data === void 0 ? void 0 : (_data$field_ltm_descr = data.field_ltm_description) === null || _data$field_ltm_descr === void 0 ? void 0 : (_data$field_ltm_descr2 = _data$field_ltm_descr.values) === null || _data$field_ltm_descr2 === void 0 ? void 0 : (_data$field_ltm_descr3 = _data$field_ltm_descr2[0]) === null || _data$field_ltm_descr3 === void 0 ? void 0 : _data$field_ltm_descr3.value,
23
- cta: generateLinkData(data === null || data === void 0 ? void 0 : (_data$field_ltm_desti = data.field_ltm_destination) === null || _data$field_ltm_desti === void 0 ? void 0 : (_data$field_ltm_desti2 = _data$field_ltm_desti.values) === null || _data$field_ltm_desti2 === void 0 ? void 0 : _data$field_ltm_desti2[0], learnMoreText, languageCode, languageEnabled, theme, formatLinks),
24
- type: data === null || data === void 0 ? void 0 : data.type
25
- };
26
- } else if ((data === null || data === void 0 ? void 0 : data.type) === "m_hyperlink_feature") {
27
- var _data$field_hyperfeat, _data$field_hyperfeat2, _data$field_hyperfeat3, _data$field_hyperfeat4, _data$field_hyperfeat5, _data$field_hyperfeat6, _data$field_hyperfeat7, _data$field_hyperfeat8;
28
- return {
29
- type: data === null || data === void 0 ? void 0 : data.type,
30
- header: data === null || data === void 0 ? void 0 : (_data$field_hyperfeat = data.field_hyperfeat_header) === null || _data$field_hyperfeat === void 0 ? void 0 : (_data$field_hyperfeat2 = _data$field_hyperfeat.values) === null || _data$field_hyperfeat2 === void 0 ? void 0 : (_data$field_hyperfeat3 = _data$field_hyperfeat2[0]) === null || _data$field_hyperfeat3 === void 0 ? void 0 : _data$field_hyperfeat3.value,
31
- text: data === null || data === void 0 ? void 0 : (_data$field_hyperfeat4 = data.field_hyperfeat_description) === null || _data$field_hyperfeat4 === void 0 ? void 0 : (_data$field_hyperfeat5 = _data$field_hyperfeat4.values) === null || _data$field_hyperfeat5 === void 0 ? void 0 : (_data$field_hyperfeat6 = _data$field_hyperfeat5[0]) === null || _data$field_hyperfeat6 === void 0 ? void 0 : _data$field_hyperfeat6.value,
32
- cta: generateLinkData(data === null || data === void 0 ? void 0 : (_data$field_hyperfeat7 = data.field_hyperfeat_destination) === null || _data$field_hyperfeat7 === void 0 ? void 0 : (_data$field_hyperfeat8 = _data$field_hyperfeat7.values) === null || _data$field_hyperfeat8 === void 0 ? void 0 : _data$field_hyperfeat8[0], learnMoreText, languageCode, languageEnabled, theme, formatLinks)
33
- };
34
- } else if ((data === null || data === void 0 ? void 0 : data.type) === "m_cta_text") {
35
- var _data$field_ctatext_h, _data$field_ctatext_h2, _data$field_ctatext_h3, _data$field_ctatext_d, _data$field_ctatext_d2, _data$field_ctatext_d3, _data$field_ctatext_d4, _data$field_ctatext_d5;
36
- return {
37
- header: data === null || data === void 0 ? void 0 : (_data$field_ctatext_h = data.field_ctatext_header) === null || _data$field_ctatext_h === void 0 ? void 0 : (_data$field_ctatext_h2 = _data$field_ctatext_h.values) === null || _data$field_ctatext_h2 === void 0 ? void 0 : (_data$field_ctatext_h3 = _data$field_ctatext_h2[0]) === null || _data$field_ctatext_h3 === void 0 ? void 0 : _data$field_ctatext_h3.value,
38
- text: data === null || data === void 0 ? void 0 : (_data$field_ctatext_d = data.field_ctatext_description) === null || _data$field_ctatext_d === void 0 ? void 0 : (_data$field_ctatext_d2 = _data$field_ctatext_d.values) === null || _data$field_ctatext_d2 === void 0 ? void 0 : (_data$field_ctatext_d3 = _data$field_ctatext_d2[0]) === null || _data$field_ctatext_d3 === void 0 ? void 0 : _data$field_ctatext_d3.value,
39
- cta: generateLinkData(data === null || data === void 0 ? void 0 : (_data$field_ctatext_d4 = data.field_ctatext_destination) === null || _data$field_ctatext_d4 === void 0 ? void 0 : (_data$field_ctatext_d5 = _data$field_ctatext_d4.values) === null || _data$field_ctatext_d5 === void 0 ? void 0 : _data$field_ctatext_d5[0], learnMoreText, languageCode, languageEnabled, theme, formatLinks)
40
- };
41
- } else {
42
- return null;
43
- }
44
- };
45
- var cardOne = cardOneData ? generateCard(cardOneData) : null;
46
- var cardTwo = cardTwoData ? generateCard(cardTwoData) : null;
47
- return {
48
- cardOne: cardOne,
49
- cardTwo: cardTwo
50
- };
51
- };
52
- var generateLinkData = function generateLinkData(data, learnMoreText, languageCode, languageEnabled, theme, formatLinks) {
53
- var linkText = (data === null || data === void 0 ? void 0 : data.title) || learnMoreText;
54
- var url = data !== null && data !== void 0 && data.url ? formatLinks(data === null || data === void 0 ? void 0 : data.url, languageCode, languageEnabled) : null;
55
- if (linkText && url) {
56
- return {
57
- url: url,
58
- text: linkText,
59
- className: theme === null || theme === void 0 ? void 0 : theme.ctaOne
60
- };
61
- } else return null;
62
- };
63
- var _default = formatListFeatOneV2Cards;
64
- 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 _formatCTAs = _interopRequireDefault(require("../formatCTAs"));
9
- var _formatListFeatSevenCards = _interopRequireDefault(require("./formatListFeatSevenCards"));
10
- var formatListFeatSeven = function formatListFeatSeven() {
11
- var listFeatSevenData = 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 = listFeatSevenData || {};
19
- var ctas = (0, _formatCTAs["default"])(data.ctas, languageCode, languageEnabled, formatLinks);
20
- var content = {
21
- header: data.intro_header,
22
- subHeader: data.intro_description,
23
- type: "list_feat_7",
24
- ctas: ctas ? ctas : null,
25
- cards: (0, _formatListFeatSevenCards["default"])(data.list, languageCode, languageEnabled, fpoBox, fpoSquare)
26
- };
27
- var theme = data.theme;
28
- var anchor = data.anchor_toggle && data.anchor_text ? data.anchor_text : null;
29
- return {
30
- theme: theme,
31
- type: "list_feat_7",
32
- content: content,
33
- anchor: anchor
34
- };
35
- };
36
- var _default = formatListFeatSeven;
37
- exports["default"] = _default;
@@ -1,46 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
- var formatListFeatSevenCards = function formatListFeatSevenCards(listFeatSevenData, languageCode, languageEnabled, fpoBox, fpoSquare) {
8
- var data = listFeatSevenData || {};
9
- var keys = Object.keys(data);
10
- return keys.map(function (key) {
11
- var _data$key, _data$key$image, _data$key2, _data$key2$image, _data$key3, _data$key3$video, _data$key6, _data$key6$big_image;
12
- var card = {
13
- header: data[key].header,
14
- text: data[key].description,
15
- thumbnail: {
16
- src: ((_data$key = data[key]) === null || _data$key === void 0 ? void 0 : (_data$key$image = _data$key.image) === null || _data$key$image === void 0 ? void 0 : _data$key$image.source) || fpoSquare,
17
- alt: ((_data$key2 = data[key]) === null || _data$key2 === void 0 ? void 0 : (_data$key2$image = _data$key2.image) === null || _data$key2$image === void 0 ? void 0 : _data$key2$image.alt) || "card image"
18
- }
19
- };
20
- if ((_data$key3 = data[key]) !== null && _data$key3 !== void 0 && (_data$key3$video = _data$key3.video) !== null && _data$key3$video !== void 0 && _data$key3$video.code) {
21
- var video = data[key].video;
22
- card.video = {
23
- url: video.source && video.source !== "vidyard" ? "https://www.youtube.com/watch?v=".concat(video.code) : null,
24
- uuid: video.source && video.source === "vidyard" ? video.code : null
25
- };
26
- card.vidyard = video.source && video.source === "vidyard" ? true : false;
27
- }
28
- if (card.video) {
29
- var _data$key4, _data$key4$video, _data$key4$video$post, _data$key5, _data$key5$video, _data$key5$video$post;
30
- card.thumbnail = {
31
- src: ((_data$key4 = data[key]) === null || _data$key4 === void 0 ? void 0 : (_data$key4$video = _data$key4.video) === null || _data$key4$video === void 0 ? void 0 : (_data$key4$video$post = _data$key4$video.poster) === null || _data$key4$video$post === void 0 ? void 0 : _data$key4$video$post.source) || fpoBox,
32
- alt: ((_data$key5 = data[key]) === null || _data$key5 === void 0 ? void 0 : (_data$key5$video = _data$key5.video) === null || _data$key5$video === void 0 ? void 0 : (_data$key5$video$post = _data$key5$video.poster) === null || _data$key5$video$post === void 0 ? void 0 : _data$key5$video$post.alt) || "placeholder image"
33
- };
34
- }
35
- if ((_data$key6 = data[key]) !== null && _data$key6 !== void 0 && (_data$key6$big_image = _data$key6.big_image) !== null && _data$key6$big_image !== void 0 && _data$key6$big_image.source) {
36
- card.image = {
37
- src: data[key].big_image.source,
38
- alt: data[key].big_image.alt
39
- };
40
- card.thumbnail = null;
41
- }
42
- return card;
43
- });
44
- };
45
- var _default = formatListFeatSevenCards;
46
- exports["default"] = _default;
@@ -1,48 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
- var formatListFeatSevenCardsV2 = function formatListFeatSevenCardsV2(listFeatSevenData, languageCode, languageEnabled, fpoBox, fpoSquare) {
8
- var data = listFeatSevenData || [];
9
- return data.map(function (item) {
10
- var _item$field_bi_header, _item$field_bi_header2, _item$field_bi_header3, _item$field_bi_desc, _item$field_bi_desc$v, _item$field_bi_desc$v2, _item$field_bi_image, _item$field_bi_image$, _item$field_bi_image$2, _item$field_bi_image$3, _item$field_bi_image$4, _item$field_bi_image$5, _item$field_bi_image2, _item$field_bi_image3, _item$field_bi_image4, _item$field_bi_image5, _item$field_bi_image6, _item$field_bi_image7, _item$field_bi_video, _item$field_bi_video$, _item$field_bi_image_;
11
- var card = {
12
- header: item === null || item === void 0 ? void 0 : (_item$field_bi_header = item.field_bi_header) === null || _item$field_bi_header === void 0 ? void 0 : (_item$field_bi_header2 = _item$field_bi_header.values) === null || _item$field_bi_header2 === void 0 ? void 0 : (_item$field_bi_header3 = _item$field_bi_header2[0]) === null || _item$field_bi_header3 === void 0 ? void 0 : _item$field_bi_header3.value,
13
- text: item === null || item === void 0 ? void 0 : (_item$field_bi_desc = item.field_bi_desc) === null || _item$field_bi_desc === void 0 ? void 0 : (_item$field_bi_desc$v = _item$field_bi_desc.values) === null || _item$field_bi_desc$v === void 0 ? void 0 : (_item$field_bi_desc$v2 = _item$field_bi_desc$v[0]) === null || _item$field_bi_desc$v2 === void 0 ? void 0 : _item$field_bi_desc$v2.value,
14
- thumbnail: {
15
- src: item === null || item === void 0 ? void 0 : (_item$field_bi_image = item.field_bi_image) === null || _item$field_bi_image === void 0 ? void 0 : (_item$field_bi_image$ = _item$field_bi_image.values) === null || _item$field_bi_image$ === void 0 ? void 0 : (_item$field_bi_image$2 = _item$field_bi_image$[0]) === null || _item$field_bi_image$2 === void 0 ? void 0 : (_item$field_bi_image$3 = _item$field_bi_image$2.field_media_image) === null || _item$field_bi_image$3 === void 0 ? void 0 : (_item$field_bi_image$4 = _item$field_bi_image$3.values) === null || _item$field_bi_image$4 === void 0 ? void 0 : (_item$field_bi_image$5 = _item$field_bi_image$4[0]) === null || _item$field_bi_image$5 === void 0 ? void 0 : _item$field_bi_image$5.source,
16
- alt: item === null || item === void 0 ? void 0 : (_item$field_bi_image2 = item.field_bi_image) === null || _item$field_bi_image2 === void 0 ? void 0 : (_item$field_bi_image3 = _item$field_bi_image2.values) === null || _item$field_bi_image3 === void 0 ? void 0 : (_item$field_bi_image4 = _item$field_bi_image3[0]) === null || _item$field_bi_image4 === void 0 ? void 0 : (_item$field_bi_image5 = _item$field_bi_image4.field_media_image) === null || _item$field_bi_image5 === void 0 ? void 0 : (_item$field_bi_image6 = _item$field_bi_image5.values) === null || _item$field_bi_image6 === void 0 ? void 0 : (_item$field_bi_image7 = _item$field_bi_image6[0]) === null || _item$field_bi_image7 === void 0 ? void 0 : _item$field_bi_image7.alt
17
- }
18
- };
19
- if (item !== null && item !== void 0 && (_item$field_bi_video = item.field_bi_video) !== null && _item$field_bi_video !== void 0 && (_item$field_bi_video$ = _item$field_bi_video.values) !== null && _item$field_bi_video$ !== void 0 && _item$field_bi_video$[0]) {
20
- var _item$field_bi_video2, _item$field_bi_video3, _videoData$field_vide, _videoData$field_vide2, _videoData$field_vide3, _videoData$field_vide4, _videoData$field_vide5, _videoData$field_vide6, _videoData$field_vide7, _videoData$field_vide8, _videoData$field_vide9, _videoData$field_vide10, _videoData$field_vide11, _videoData$field_vide12, _videoData$field_vide13, _videoData$field_vide14, _videoData$field_vide15;
21
- var videoData = item === null || item === void 0 ? void 0 : (_item$field_bi_video2 = item.field_bi_video) === null || _item$field_bi_video2 === void 0 ? void 0 : (_item$field_bi_video3 = _item$field_bi_video2.values) === null || _item$field_bi_video3 === void 0 ? void 0 : _item$field_bi_video3[0];
22
- card.video = {
23
- url: (videoData === null || videoData === void 0 ? void 0 : (_videoData$field_vide = videoData.field_video_source) === null || _videoData$field_vide === void 0 ? void 0 : (_videoData$field_vide2 = _videoData$field_vide.values) === null || _videoData$field_vide2 === void 0 ? void 0 : (_videoData$field_vide3 = _videoData$field_vide2[0]) === null || _videoData$field_vide3 === void 0 ? void 0 : _videoData$field_vide3.description) !== "vidyard" ? "https://www.youtube.com/watch?v=".concat(videoData === null || videoData === void 0 ? void 0 : (_videoData$field_vide4 = videoData.field_video_code) === null || _videoData$field_vide4 === void 0 ? void 0 : (_videoData$field_vide5 = _videoData$field_vide4.values) === null || _videoData$field_vide5 === void 0 ? void 0 : (_videoData$field_vide6 = _videoData$field_vide5[0]) === null || _videoData$field_vide6 === void 0 ? void 0 : _videoData$field_vide6.value) : null,
24
- uuid: (videoData === null || videoData === void 0 ? void 0 : (_videoData$field_vide7 = videoData.field_video_source) === null || _videoData$field_vide7 === void 0 ? void 0 : (_videoData$field_vide8 = _videoData$field_vide7.values) === null || _videoData$field_vide8 === void 0 ? void 0 : (_videoData$field_vide9 = _videoData$field_vide8[0]) === null || _videoData$field_vide9 === void 0 ? void 0 : _videoData$field_vide9.description) === "vidyard" ? videoData === null || videoData === void 0 ? void 0 : (_videoData$field_vide10 = videoData.field_video_code) === null || _videoData$field_vide10 === void 0 ? void 0 : (_videoData$field_vide11 = _videoData$field_vide10.values) === null || _videoData$field_vide11 === void 0 ? void 0 : (_videoData$field_vide12 = _videoData$field_vide11[0]) === null || _videoData$field_vide12 === void 0 ? void 0 : _videoData$field_vide12.value : null,
25
- vidyard: (videoData === null || videoData === void 0 ? void 0 : (_videoData$field_vide13 = videoData.field_video_source) === null || _videoData$field_vide13 === void 0 ? void 0 : (_videoData$field_vide14 = _videoData$field_vide13.values) === null || _videoData$field_vide14 === void 0 ? void 0 : (_videoData$field_vide15 = _videoData$field_vide14[0]) === null || _videoData$field_vide15 === void 0 ? void 0 : _videoData$field_vide15.description) === "vidyard" ? true : false
26
- };
27
- if (card.video) {
28
- var _videoData$field_vide16, _videoData$field_vide17, _videoData$field_vide18, _videoData$field_vide19, _videoData$field_vide20, _videoData$field_vide21, _videoData$field_vide22, _videoData$field_vide23, _videoData$field_vide24, _videoData$field_vide25, _videoData$field_vide26, _videoData$field_vide27;
29
- card.thumbnail = {
30
- src: videoData === null || videoData === void 0 ? void 0 : (_videoData$field_vide16 = videoData.field_video_poster) === null || _videoData$field_vide16 === void 0 ? void 0 : (_videoData$field_vide17 = _videoData$field_vide16.values) === null || _videoData$field_vide17 === void 0 ? void 0 : (_videoData$field_vide18 = _videoData$field_vide17[0]) === null || _videoData$field_vide18 === void 0 ? void 0 : (_videoData$field_vide19 = _videoData$field_vide18.field_media_image) === null || _videoData$field_vide19 === void 0 ? void 0 : (_videoData$field_vide20 = _videoData$field_vide19.values) === null || _videoData$field_vide20 === void 0 ? void 0 : (_videoData$field_vide21 = _videoData$field_vide20[0]) === null || _videoData$field_vide21 === void 0 ? void 0 : _videoData$field_vide21.source,
31
- alt: videoData === null || videoData === void 0 ? void 0 : (_videoData$field_vide22 = videoData.field_video_poster) === null || _videoData$field_vide22 === void 0 ? void 0 : (_videoData$field_vide23 = _videoData$field_vide22.values) === null || _videoData$field_vide23 === void 0 ? void 0 : (_videoData$field_vide24 = _videoData$field_vide23[0]) === null || _videoData$field_vide24 === void 0 ? void 0 : (_videoData$field_vide25 = _videoData$field_vide24.field_media_image) === null || _videoData$field_vide25 === void 0 ? void 0 : (_videoData$field_vide26 = _videoData$field_vide25.values) === null || _videoData$field_vide26 === void 0 ? void 0 : (_videoData$field_vide27 = _videoData$field_vide26[0]) === null || _videoData$field_vide27 === void 0 ? void 0 : _videoData$field_vide27.alt
32
- };
33
- }
34
- }
35
- if (item !== null && item !== void 0 && (_item$field_bi_image_ = item.field_bi_image_popup) !== null && _item$field_bi_image_ !== void 0 && _item$field_bi_image_.values[0]) {
36
- var _item$field_bi_image_2, _imageData$field_medi, _imageData$field_medi2, _imageData$field_medi3, _imageData$field_medi4, _imageData$field_medi5, _imageData$field_medi6;
37
- var imageData = item === null || item === void 0 ? void 0 : (_item$field_bi_image_2 = item.field_bi_image_popup) === null || _item$field_bi_image_2 === void 0 ? void 0 : _item$field_bi_image_2.values[0];
38
- card.image = {
39
- src: imageData === null || imageData === void 0 ? void 0 : (_imageData$field_medi = imageData.field_media_image) === null || _imageData$field_medi === void 0 ? void 0 : (_imageData$field_medi2 = _imageData$field_medi.values) === null || _imageData$field_medi2 === void 0 ? void 0 : (_imageData$field_medi3 = _imageData$field_medi2[0]) === null || _imageData$field_medi3 === void 0 ? void 0 : _imageData$field_medi3.source,
40
- alt: imageData === null || imageData === void 0 ? void 0 : (_imageData$field_medi4 = imageData.field_media_image) === null || _imageData$field_medi4 === void 0 ? void 0 : (_imageData$field_medi5 = _imageData$field_medi4.values) === null || _imageData$field_medi5 === void 0 ? void 0 : (_imageData$field_medi6 = _imageData$field_medi5[0]) === null || _imageData$field_medi6 === void 0 ? void 0 : _imageData$field_medi6.alt
41
- };
42
- card.thumbnail = null;
43
- }
44
- return card;
45
- });
46
- };
47
- var _default = formatListFeatSevenCardsV2;
48
- exports["default"] = _default;