@ndla/ui 35.0.27 → 35.0.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (255) hide show
  1. package/es/Animation/DisplayOnPageYOffset.js +4 -2
  2. package/es/Article/Article.js +5 -3
  3. package/es/Article/ArticleContent.js +4 -1
  4. package/es/Article/ArticleHeaderWrapper.js +6 -3
  5. package/es/Aside/Aside.js +4 -1
  6. package/es/AudioPlayer/AudioPlayer.js +2 -2
  7. package/es/AudioPlayer/Controls.js +2 -2
  8. package/es/Breadcrumb/Breadcrumb.js +6 -3
  9. package/es/Breadcrumblist/Breadcrumblist.js +2 -2
  10. package/es/CompetenceGoalTab/CompetenceGoalTab.js +2 -2
  11. package/es/CompetenceGoals/CompetenceGoalsDialog.js +4 -1
  12. package/es/ContentCard/ContentCard.js +4 -1
  13. package/es/ContentLoader/index.js +4 -1
  14. package/es/ContentTypeBadge/ContentTypeBadge.js +4 -1
  15. package/es/CopyParagraphButton/CopyParagraphButton.js +2 -2
  16. package/es/CopyParagraphButton/CopyParagraphButtonV2.js +2 -2
  17. package/es/Dialog/Dialog.js +4 -1
  18. package/es/Embed/AudioEmbed.js +2 -2
  19. package/es/Embed/BrightcoveEmbed.js +6 -3
  20. package/es/Embed/ConceptEmbed.js +2 -2
  21. package/es/Embed/ImageEmbed.js +2 -2
  22. package/es/Embed/conceptComponents.js +4 -1
  23. package/es/FactBox/FactBox.js +4 -1
  24. package/es/FactBox/FactBoxV2.js +6 -3
  25. package/es/Figure/Figure.js +4 -1
  26. package/es/Figure/FigureLicense.js +4 -1
  27. package/es/Figure/FigureLicenseDialog.js +4 -1
  28. package/es/Figure/FigureLicenseDialogContent.js +4 -1
  29. package/es/Filter/FilterButtons.js +2 -2
  30. package/es/Filter/FilterCarousel.js +6 -3
  31. package/es/Filter/FilterList.js +6 -3
  32. package/es/Filter/FilterListPhone.js +6 -3
  33. package/es/Filter/ToggleItem.js +4 -1
  34. package/es/Footer/FooterAuth.js +4 -1
  35. package/es/Frontpage/FrontpageAllSubjects.js +1 -1
  36. package/es/Frontpage/FrontpageProgramMenu.js +2 -2
  37. package/es/Hero/Hero.js +4 -1
  38. package/es/Image/Image.js +4 -1
  39. package/es/Image/ImageLink.js +4 -1
  40. package/es/Image/LazyLoadImage.js +4 -1
  41. package/es/Layout/PageContainer.js +4 -1
  42. package/es/LearningPaths/LearningPathMenu.js +2 -2
  43. package/es/Logo/Logo.js +4 -1
  44. package/es/Logo/SvgLogo.js +4 -1
  45. package/es/Masthead/MastheadAuthModal.js +4 -1
  46. package/es/Masthead/utils.js +2 -2
  47. package/es/MediaList/MediaList.js +4 -1
  48. package/es/MultidisciplinarySubject/List.js +4 -1
  49. package/es/MyNdla/Resource/FolderInput.js +4 -1
  50. package/es/NDLAFilm/AllMoviesAlphabetically.js +2 -2
  51. package/es/NDLAFilm/CategorySelect.js +2 -2
  52. package/es/NDLAFilm/FilmMovieList.js +4 -1
  53. package/es/NDLAFilm/FilmSlideshow.js +6 -3
  54. package/es/Notion/ConceptNotion.js +1 -1
  55. package/es/Notion/FigureNotion.js +1 -1
  56. package/es/RadioButtonGroup/RadioButtonGroup.js +4 -2
  57. package/es/RelatedArticleList/RelatedArticleList.js +4 -1
  58. package/es/RelatedArticleList/RelatedArticleV2.js +6 -3
  59. package/es/ResourceGroup/ResourceList.js +4 -1
  60. package/es/ResourcesWrapper/ResourcesWrapper.js +4 -1
  61. package/es/Search/ContentTypeResult.js +6 -3
  62. package/es/Search/SearchField.js +4 -1
  63. package/es/Search/SearchResult.js +3 -1
  64. package/es/Search/SearchResultSleeve.js +2 -2
  65. package/es/Search/ToggleSearchButton.js +4 -1
  66. package/es/SearchTypeResult/PopupFilter.js +2 -2
  67. package/es/SearchTypeResult/SearchFieldHeader.js +2 -2
  68. package/es/SearchTypeResult/SearchHeader.js +2 -2
  69. package/es/SearchTypeResult/SearchTypeResult.js +4 -1
  70. package/es/SearchTypeResult/components/SubjectFilters.js +6 -3
  71. package/es/SnackBar/SnackbarProvider.js +6 -3
  72. package/es/Table/Table.js +6 -3
  73. package/es/TagSelector/Control.js +4 -1
  74. package/es/TagSelector/DropdownIndicator.js +4 -1
  75. package/es/TagSelector/Input.js +4 -1
  76. package/es/TagSelector/Menu.js +4 -1
  77. package/es/TagSelector/MenuList.js +4 -1
  78. package/es/TagSelector/Option.js +4 -1
  79. package/es/TagSelector/SelectContainer.js +4 -1
  80. package/es/TagSelector/TagSelector.js +6 -3
  81. package/es/TagSelector/ValueButton.js +4 -1
  82. package/es/Translation/Translation.js +4 -1
  83. package/es/Translation/TranslationLine.js +4 -1
  84. package/es/TreeStructure/FolderItem.js +53 -22
  85. package/es/TreeStructure/FolderItems.js +4 -1
  86. package/es/TreeStructure/TreeStructure.js +2 -2
  87. package/es/TreeStructure/helperFunctions.js +4 -1
  88. package/es/User/UserInfo.js +2 -2
  89. package/es/User/parseUserObject.js +6 -3
  90. package/es/all.css +1 -1
  91. package/es/index.js +1 -0
  92. package/es/locale/messages-en.js +4 -1
  93. package/es/locale/messages-nb.js +4 -1
  94. package/es/locale/messages-nn.js +4 -1
  95. package/es/locale/messages-se.js +81 -78
  96. package/es/locale/messages-sma.js +4 -1
  97. package/es/model/ContentType.js +4 -1
  98. package/lib/Animation/DisplayOnPageYOffset.js +11 -3
  99. package/lib/Article/Article.js +12 -4
  100. package/lib/Article/ArticleAccessMessage.js +7 -1
  101. package/lib/Article/ArticleByline.js +7 -1
  102. package/lib/Article/ArticleContent.js +10 -1
  103. package/lib/Article/ArticleHeaderWrapper.js +12 -4
  104. package/lib/Aside/Aside.js +10 -1
  105. package/lib/AudioPlayer/AudioPlayer.js +9 -3
  106. package/lib/AudioPlayer/Controls.js +9 -3
  107. package/lib/Breadcrumb/Breadcrumb.js +12 -4
  108. package/lib/Breadcrumb/BreadcrumbItem.js +7 -1
  109. package/lib/Breadcrumb/HomeBreadcrumb.js +7 -1
  110. package/lib/Breadcrumblist/Breadcrumblist.js +9 -3
  111. package/lib/CompetenceGoalTab/CompetenceGoalItem.js +7 -1
  112. package/lib/CompetenceGoalTab/CompetenceGoalTab.js +9 -3
  113. package/lib/CompetenceGoalTab/CompetenceItem.js +7 -1
  114. package/lib/CompetenceGoals/CompetenceGoalsDialog.js +10 -2
  115. package/lib/ContentCard/ContentCard.js +4 -1
  116. package/lib/ContentLoader/index.js +11 -1
  117. package/lib/ContentPlaceholder/ContentPlaceholder.js +7 -1
  118. package/lib/ContentTypeBadge/ContentTypeBadge.js +4 -2
  119. package/lib/CopyParagraphButton/CopyParagraphButton.js +9 -3
  120. package/lib/CopyParagraphButton/CopyParagraphButtonV2.js +9 -3
  121. package/lib/CreatedBy/CreatedBy.js +7 -1
  122. package/lib/Dialog/Dialog.js +13 -1
  123. package/lib/Embed/AudioEmbed.js +9 -3
  124. package/lib/Embed/BrightcoveEmbed.js +13 -4
  125. package/lib/Embed/ConceptEmbed.js +9 -3
  126. package/lib/Embed/ConceptListEmbed.js +7 -1
  127. package/lib/Embed/ExternalEmbed.js +7 -1
  128. package/lib/Embed/H5pEmbed.js +7 -1
  129. package/lib/Embed/ImageEmbed.js +9 -3
  130. package/lib/Embed/conceptComponents.js +11 -2
  131. package/lib/FactBox/FactBox.js +10 -1
  132. package/lib/FactBox/FactBoxV2.js +12 -4
  133. package/lib/Figure/Figure.js +11 -1
  134. package/lib/Figure/FigureLicense.js +11 -1
  135. package/lib/Figure/FigureLicenseDialog.js +11 -1
  136. package/lib/Figure/FigureLicenseDialogContent.js +10 -1
  137. package/lib/FileList/FileListV2.js +7 -1
  138. package/lib/Filter/FilterButtons.js +9 -3
  139. package/lib/Filter/FilterCarousel.js +12 -4
  140. package/lib/Filter/FilterList.js +12 -4
  141. package/lib/Filter/FilterListPhone.js +12 -4
  142. package/lib/Filter/ToggleItem.js +10 -1
  143. package/lib/Footer/Footer.js +7 -1
  144. package/lib/Footer/FooterAuth.js +11 -2
  145. package/lib/Frontpage/FrontpageAllSubjects.js +1 -1
  146. package/lib/Frontpage/FrontpageProgramMenu.js +2 -2
  147. package/lib/Frontpage/illustrations/FrontpageSubjectIllustration.js +7 -1
  148. package/lib/Hero/Hero.js +10 -2
  149. package/lib/Image/Image.js +11 -2
  150. package/lib/Image/ImageLink.js +11 -2
  151. package/lib/Image/LazyLoadImage.js +11 -1
  152. package/lib/InfoBlock/InfoBlock.js +7 -1
  153. package/lib/LanguageSelector/LanguageSelector.js +7 -1
  154. package/lib/Layout/PageContainer.js +10 -1
  155. package/lib/LearningPaths/LearningPathLastStepNavigation.js +7 -1
  156. package/lib/LearningPaths/LearningPathMenu.js +9 -3
  157. package/lib/LearningPaths/LearningPathMenuIntro.js +7 -1
  158. package/lib/Logo/Logo.js +10 -1
  159. package/lib/Logo/SvgLogo.js +10 -1
  160. package/lib/Masthead/Masthead.js +7 -1
  161. package/lib/Masthead/MastheadAuthModal.js +11 -1
  162. package/lib/Masthead/utils.js +9 -3
  163. package/lib/MediaList/MediaList.js +10 -1
  164. package/lib/Messages/MessageBanner.js +7 -1
  165. package/lib/Messages/MessageBox.js +7 -1
  166. package/lib/Messages/MessageBoxTag.js +7 -1
  167. package/lib/MultidisciplinarySubject/List.js +4 -1
  168. package/lib/MyNdla/Resource/Folder.js +7 -1
  169. package/lib/MyNdla/Resource/FolderInput.js +10 -1
  170. package/lib/MyNdla/SettingsMenu.js +7 -1
  171. package/lib/NDLAFilm/AllMoviesAlphabetically.js +9 -3
  172. package/lib/NDLAFilm/CategorySelect.js +9 -2
  173. package/lib/NDLAFilm/FilmMovieList.js +9 -1
  174. package/lib/NDLAFilm/FilmSlideshow.js +12 -4
  175. package/lib/NDLAFilm/VisualElement.js +7 -1
  176. package/lib/Notion/ConceptNotion.js +6 -1
  177. package/lib/Notion/FigureNotion.js +6 -1
  178. package/lib/Notion/Notion.js +7 -1
  179. package/lib/Notion/NotionVisualElement.js +6 -1
  180. package/lib/RadioButtonGroup/RadioButtonGroup.js +10 -2
  181. package/lib/RelatedArticleList/RelatedArticleList.js +4 -2
  182. package/lib/RelatedArticleList/RelatedArticleV2.js +12 -3
  183. package/lib/Resource/BlockResource.js +7 -1
  184. package/lib/Resource/ListResource.js +7 -1
  185. package/lib/Resource/resourceComponents.js +7 -1
  186. package/lib/ResourceGroup/ResourceItem.js +7 -1
  187. package/lib/ResourceGroup/ResourceList.js +11 -1
  188. package/lib/ResourcesWrapper/ResourcesWrapper.js +11 -1
  189. package/lib/Search/ContentTypeResult.js +5 -3
  190. package/lib/Search/SearchField.js +10 -1
  191. package/lib/Search/SearchResult.js +3 -1
  192. package/lib/Search/SearchResultSleeve.js +8 -2
  193. package/lib/Search/ToggleSearchButton.js +11 -1
  194. package/lib/SearchTypeResult/ActiveFilterContent.js +7 -1
  195. package/lib/SearchTypeResult/ActiveFilters.js +7 -1
  196. package/lib/SearchTypeResult/PopupFilter.js +9 -3
  197. package/lib/SearchTypeResult/SearchFieldHeader.js +9 -3
  198. package/lib/SearchTypeResult/SearchFilterContent.js +7 -1
  199. package/lib/SearchTypeResult/SearchHeader.js +9 -3
  200. package/lib/SearchTypeResult/SearchItem.js +7 -1
  201. package/lib/SearchTypeResult/SearchItemList.js +7 -1
  202. package/lib/SearchTypeResult/SearchItems.js +7 -1
  203. package/lib/SearchTypeResult/SearchNotionItem.js +7 -1
  204. package/lib/SearchTypeResult/SearchSubjectItem.js +7 -1
  205. package/lib/SearchTypeResult/SearchTypeHeader.js +7 -1
  206. package/lib/SearchTypeResult/SearchTypeResult.js +9 -1
  207. package/lib/SearchTypeResult/SearchViewType.js +7 -1
  208. package/lib/SearchTypeResult/components/ItemContexts.js +7 -1
  209. package/lib/SearchTypeResult/components/ItemResourceHeader.js +7 -1
  210. package/lib/SearchTypeResult/components/ItemTopicHeader.js +7 -1
  211. package/lib/SearchTypeResult/components/SubjectFilters.js +12 -4
  212. package/lib/SnackBar/SnackbarProvider.js +12 -4
  213. package/lib/Table/Table.js +12 -4
  214. package/lib/TagSelector/Control.js +10 -1
  215. package/lib/TagSelector/DropdownIndicator.js +10 -2
  216. package/lib/TagSelector/Input.js +10 -1
  217. package/lib/TagSelector/Menu.js +11 -1
  218. package/lib/TagSelector/MenuList.js +10 -1
  219. package/lib/TagSelector/Option.js +10 -1
  220. package/lib/TagSelector/SelectContainer.js +10 -1
  221. package/lib/TagSelector/TagSelector.js +12 -4
  222. package/lib/TagSelector/ValueButton.js +10 -1
  223. package/lib/Topic/Topic.js +7 -1
  224. package/lib/Translation/Translation.js +10 -1
  225. package/lib/Translation/TranslationLine.js +10 -1
  226. package/lib/TreeStructure/AddFolderButton.js +7 -1
  227. package/lib/TreeStructure/FolderItem.js +60 -23
  228. package/lib/TreeStructure/FolderItems.js +11 -1
  229. package/lib/TreeStructure/TreeStructure.js +9 -3
  230. package/lib/TreeStructure/helperFunctions.js +4 -1
  231. package/lib/User/AuthModal.js +7 -1
  232. package/lib/User/UserInfo.js +8 -3
  233. package/lib/User/parseUserObject.js +12 -4
  234. package/lib/all.css +1 -1
  235. package/lib/index.d.ts +1 -0
  236. package/lib/index.js +7 -0
  237. package/lib/locale/messages-en.js +10 -1
  238. package/lib/locale/messages-nb.js +10 -1
  239. package/lib/locale/messages-nn.js +10 -1
  240. package/lib/locale/messages-se.js +87 -78
  241. package/lib/locale/messages-sma.js +10 -1
  242. package/lib/model/ContentType.js +4 -1
  243. package/package.json +12 -12
  244. package/src/BlogPost/BlogPost.stories.tsx +4 -3
  245. package/src/LanguageSelector/LanguageSelector.stories.tsx +4 -3
  246. package/src/LetterFilter/LetterFilter.stories.tsx +4 -3
  247. package/src/MyNdla/Resource/Folder.stories.tsx +39 -0
  248. package/src/Resource/BlockResource.stories.tsx +52 -0
  249. package/src/Resource/Resource.stories.tsx +52 -0
  250. package/src/TreeStructure/FolderItem.tsx +39 -20
  251. package/src/index.ts +1 -0
  252. package/src/locale/messages-se.ts +77 -77
  253. package/src/MyNdla/Resource/Folder.stories.mdx +0 -53
  254. package/src/Resource/BlockResource.stories.mdx +0 -58
  255. package/src/Resource/Resource.stories.mdx +0 -58
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
 
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
3
4
  Object.defineProperty(exports, "__esModule", {
4
5
  value: true
5
6
  });
@@ -16,10 +17,18 @@ var _excluded = ["isAuthenticated", "user", "onAuthenticateClick"];
16
17
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
17
18
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
18
19
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
19
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
20
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
21
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
22
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
20
23
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
21
24
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
22
- function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
25
+ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } /**
26
+ * Copyright (c) 2021-present, NDLA.
27
+ *
28
+ * This source code is licensed under the GPLv3 license found in the
29
+ * LICENSE file in the root directory of this source tree.
30
+ *
31
+ */
23
32
  var Wrapper = /*#__PURE__*/(0, _base["default"])("div", {
24
33
  target: "e1gu6tps6",
25
34
  label: "Wrapper"
@@ -23,7 +23,7 @@ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread n
23
23
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
24
24
  function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
25
25
  function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
26
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
26
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
27
27
  function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
28
28
  var StyledWrapper = /*#__PURE__*/(0, _base["default"])("nav", {
29
29
  target: "e1kk5ejg6",
@@ -19,8 +19,8 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
19
19
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
20
20
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
21
21
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
22
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
23
- function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
22
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
23
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
24
24
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
25
25
  var StyledWrapper = /*#__PURE__*/(0, _base["default"])("div", {
26
26
  target: "e1kv3ghm2",
@@ -8,7 +8,13 @@ var _react = _interopRequireDefault(require("react"));
8
8
  var _react2 = require("@emotion/react");
9
9
  var _jsxRuntime = require("@emotion/react/jsx-runtime");
10
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
- function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
11
+ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } /**
12
+ * Copyright (c) 2019-present, NDLA.
13
+ *
14
+ * This source code is licensed under the GPLv3 license found in the
15
+ * LICENSE file in the root directory of this source tree.
16
+ *
17
+ */
12
18
  var cssStyle = process.env.NODE_ENV === "production" ? {
13
19
  name: "16ynim7-cssStyle",
14
20
  styles: "position:relative;z-index:1;label:cssStyle;"
package/lib/Hero/Hero.js CHANGED
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
3
  Object.defineProperty(exports, "__esModule", {
5
4
  value: true
6
5
  });
@@ -13,11 +12,20 @@ var _excluded = ["hasImage"];
13
12
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
14
13
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
15
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
15
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
16
16
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
17
17
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
18
18
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
19
19
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
20
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
20
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
21
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
22
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } /**
23
+ * Copyright (c) 2016-present, NDLA.
24
+ *
25
+ * This source code is licensed under the GPLv3 license found in the
26
+ * LICENSE file in the root directory of this source tree.
27
+ *
28
+ */
21
29
  var classes = new _reactBemHelper["default"]({
22
30
  name: 'hero',
23
31
  prefix: 'c-'
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
 
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
3
4
  Object.defineProperty(exports, "__esModule", {
4
5
  value: true
5
6
  });
@@ -13,10 +14,18 @@ var _excluded = ["alt", "src", "lazyLoad", "lazyLoadSrc", "crop", "focalPoint",
13
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
14
15
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
15
16
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
16
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
17
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
18
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
19
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
17
20
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
18
21
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
19
- function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
22
+ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } /**
23
+ * Copyright (c) 2017-present, NDLA.
24
+ *
25
+ * This source code is licensed under the GPLv3 license found in the
26
+ * LICENSE file in the root directory of this source tree.
27
+ *
28
+ */
20
29
  var makeSrcQueryString = function makeSrcQueryString(width, crop, focalPoint) {
21
30
  var widthParams = width && "width=".concat(width);
22
31
  var cropParams = crop && "cropStartX=".concat(crop.startX, "&cropEndX=").concat(crop.endX, "&cropStartY=").concat(crop.startY, "&cropEndY=").concat(crop.endY);
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
 
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
3
4
  Object.defineProperty(exports, "__esModule", {
4
5
  value: true
5
6
  });
@@ -12,10 +13,18 @@ var _excluded = ["src", "crop", "children"];
12
13
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
13
14
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
14
15
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
15
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
16
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
17
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
18
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
16
19
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
17
20
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
18
- function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
21
+ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } /**
22
+ * Copyright (c) 2019-present, NDLA.
23
+ *
24
+ * This source code is licensed under the GPLv3 license found in the
25
+ * LICENSE file in the root directory of this source tree.
26
+ *
27
+ */
19
28
  var StyledLink = /*#__PURE__*/(0, _base["default"])("a", {
20
29
  target: "eo3pjlm0",
21
30
  label: "StyledLink"
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
 
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
3
4
  Object.defineProperty(exports, "__esModule", {
4
5
  value: true
5
6
  });
@@ -7,10 +8,19 @@ exports["default"] = void 0;
7
8
  var _react = _interopRequireDefault(require("react"));
8
9
  var _jsxRuntime = require("@emotion/react/jsx-runtime");
9
10
  var _excluded = ["alt", "src", "srcSet", "lazyLoadSrc", "sizes"];
11
+ /**
12
+ * Copyright (c) 2017-present, NDLA.
13
+ *
14
+ * This source code is licensed under the GPLv3 license found in the
15
+ * LICENSE file in the root directory of this source tree.
16
+ *
17
+ */
10
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
19
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
12
20
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
13
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
21
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
22
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
23
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
14
24
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
15
25
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
16
26
  // Lazyload image with lazysizes (https://github.com/aFarkas/lazysizes)
@@ -9,7 +9,13 @@ var _react = _interopRequireDefault(require("react"));
9
9
  var _core = require("@ndla/core");
10
10
  var _jsxRuntime = require("@emotion/react/jsx-runtime");
11
11
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
12
- function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
12
+ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } /*
13
+ * Copyright (c) 2022-present, NDLA.
14
+ *
15
+ * This source code is licensed under the GPLv3 license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ *
18
+ */
13
19
  var InfoBlockWrapper = /*#__PURE__*/(0, _base["default"])("div", {
14
20
  target: "eblg75e4",
15
21
  label: "InfoBlockWrapper"
@@ -13,7 +13,13 @@ var _common = require("@ndla/icons/common");
13
13
  var _core = require("@ndla/core");
14
14
  var _jsxRuntime = require("@emotion/react/jsx-runtime");
15
15
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
16
- function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
16
+ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } /**
17
+ * Copyright (c) 2022-present, NDLA.
18
+ *
19
+ * This source code is licensed under the GPLv3 license found in the
20
+ * LICENSE file in the root directory of this source tree.
21
+ *
22
+ */
17
23
  var PopoverContent = /*#__PURE__*/(0, _base["default"])(_reactDropdownMenu.Content, {
18
24
  target: "e11qxfkm4",
19
25
  label: "PopoverContent"
@@ -8,9 +8,18 @@ var _react = _interopRequireDefault(require("react"));
8
8
  var _reactBemHelper = _interopRequireDefault(require("react-bem-helper"));
9
9
  var _jsxRuntime = require("@emotion/react/jsx-runtime");
10
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
11
12
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
12
13
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
13
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
14
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
15
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
16
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } /**
17
+ * Copyright (c) 2016-present, NDLA.
18
+ *
19
+ * This source code is licensed under the GPLv3 license found in the
20
+ * LICENSE file in the root directory of this source tree.
21
+ *
22
+ */
14
23
  var classes = new _reactBemHelper["default"]({
15
24
  name: 'container',
16
25
  prefix: 'o-'
@@ -13,7 +13,13 @@ var _core = require("@ndla/core");
13
13
  var _index = require("../index");
14
14
  var _jsxRuntime = require("@emotion/react/jsx-runtime");
15
15
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
16
- function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
16
+ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } /**
17
+ * Copyright (c) 2019-present, NDLA.
18
+ *
19
+ * This source code is licensed under the GPLv3 license found in the
20
+ * LICENSE file in the root directory of this source tree.
21
+ *
22
+ */
17
23
  var StyledHeader = /*#__PURE__*/(0, _base["default"])("h1", {
18
24
  target: "eqtnnjc2",
19
25
  label: "StyledHeader"
@@ -24,9 +24,15 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
24
24
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
25
25
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
26
26
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
27
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
28
- function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
29
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
27
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
28
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
29
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } /**
30
+ * Copyright (c) 2019-present, NDLA.
31
+ *
32
+ * This source code is licensed under the GPLv3 license found in the
33
+ * LICENSE file in the root directory of this source tree.
34
+ *
35
+ */
30
36
  var SIDE_NAV_WIDTH = '372px';
31
37
  var StyledMenu = /*#__PURE__*/(0, _base["default"])("div", {
32
38
  target: "el16bnp1",
@@ -11,7 +11,13 @@ var _reactI18next = require("react-i18next");
11
11
  var _core = require("@ndla/core");
12
12
  var _jsxRuntime = require("@emotion/react/jsx-runtime");
13
13
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
14
- function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
14
+ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } /**
15
+ * Copyright (c) 2019-present, NDLA.
16
+ *
17
+ * This source code is licensed under the GPLv3 license found in the
18
+ * LICENSE file in the root directory of this source tree.
19
+ *
20
+ */
15
21
  var StyledInfoHeader = /*#__PURE__*/(0, _base["default"])("p", {
16
22
  target: "e1usg8db3",
17
23
  label: "StyledInfoHeader"
package/lib/Logo/Logo.js CHANGED
@@ -10,9 +10,18 @@ var _safelink = _interopRequireDefault(require("@ndla/safelink"));
10
10
  var _SvgLogo = _interopRequireDefault(require("./SvgLogo"));
11
11
  var _jsxRuntime = require("@emotion/react/jsx-runtime");
12
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
13
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
13
14
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
14
15
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
15
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
16
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
17
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
18
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } /**
19
+ * Copyright (c) 2016-present, NDLA.
20
+ *
21
+ * This source code is licensed under the GPLv3 license found in the
22
+ * LICENSE file in the root directory of this source tree.
23
+ *
24
+ */ /* eslint-disable max-len */
16
25
  var logoClasses = new _reactBemHelper["default"]({
17
26
  name: 'logo',
18
27
  prefix: 'c-'
@@ -8,9 +8,18 @@ var _react = _interopRequireDefault(require("react"));
8
8
  var _Logo = require("./Logo");
9
9
  var _jsxRuntime = require("@emotion/react/jsx-runtime");
10
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
11
12
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
12
13
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
13
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
14
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
15
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
16
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } /**
17
+ * Copyright (c) 2016-present, NDLA.
18
+ *
19
+ * This source code is licensed under the GPLv3 license found in the
20
+ * LICENSE file in the root directory of this source tree.
21
+ *
22
+ */ /* eslint-disable max-len */
14
23
  var LogoText = function LogoText(locale) {
15
24
  if (locale === 'en') {
16
25
  return (0, _jsxRuntime.jsx)("path", {
@@ -12,7 +12,13 @@ var _Messages = require("../Messages");
12
12
  var _SkipToMainContent = _interopRequireDefault(require("./SkipToMainContent"));
13
13
  var _jsxRuntime = require("@emotion/react/jsx-runtime");
14
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
15
- function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
15
+ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } /**
16
+ * Copyright (c) 2016-present, NDLA.
17
+ *
18
+ * This source code is licensed under the GPLv3 license found in the
19
+ * LICENSE file in the root directory of this source tree.
20
+ *
21
+ */
16
22
  var LeftMastheadItem = /*#__PURE__*/(0, _base["default"])("div", {
17
23
  target: "e18nenqf3",
18
24
  label: "LeftMastheadItem"
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
 
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
3
4
  Object.defineProperty(exports, "__esModule", {
4
5
  value: true
5
6
  });
@@ -13,10 +14,19 @@ var _reactI18next = require("react-i18next");
13
14
  var _AuthModal = _interopRequireDefault(require("../User/AuthModal"));
14
15
  var _jsxRuntime = require("@emotion/react/jsx-runtime");
15
16
  var _excluded = ["inverted"];
17
+ /**
18
+ * Copyright (c) 2021-present, NDLA.
19
+ *
20
+ * This source code is licensed under the GPLv3 license found in the
21
+ * LICENSE file in the root directory of this source tree.
22
+ *
23
+ */
16
24
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
17
25
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
18
26
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
19
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
27
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
28
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
29
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
20
30
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
21
31
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
22
32
  var StyledButton = /*#__PURE__*/(0, _base["default"])(_button.ButtonV2, {
@@ -9,9 +9,15 @@ var _util = require("@ndla/util");
9
9
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
10
10
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
11
11
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
12
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
13
- function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
14
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
12
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
13
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
14
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } /**
15
+ * Copyright (c) 2022-present, NDLA.
16
+ *
17
+ * This source code is licensed under the GPLv3 license found in the
18
+ * LICENSE file in the root directory of this source tree.
19
+ *
20
+ */
15
21
  var getMastheadHeight = function getMastheadHeight() {
16
22
  if (typeof window !== 'undefined') {
17
23
  var masthead = document.getElementById('masthead');
@@ -11,9 +11,18 @@ var _reactBemHelper = _interopRequireDefault(require("react-bem-helper"));
11
11
  var _util = require("@ndla/util");
12
12
  var _jsxRuntime = require("@emotion/react/jsx-runtime");
13
13
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
14
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
14
15
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
15
16
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
16
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
17
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
18
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
19
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } /*
20
+ * Copyright (c) 2016-present, NDLA.
21
+ *
22
+ * This source code is licensed under the GPLv3 license found in the
23
+ * LICENSE file in the root directory of this source tree.
24
+ *
25
+ */
17
26
  var oClasses = new _reactBemHelper["default"]({
18
27
  name: 'media',
19
28
  prefix: 'o-'
@@ -11,7 +11,13 @@ var _remarkable = require("remarkable");
11
11
  var _button = require("@ndla/button");
12
12
  var _jsxRuntime = require("@emotion/react/jsx-runtime");
13
13
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
14
- function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
14
+ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } /**
15
+ * Copyright (c) 2022-present, NDLA.
16
+ *
17
+ * This source code is licensed under the GPLv3 license found in the
18
+ * LICENSE file in the root directory of this source tree.
19
+ *
20
+ */ // @ts-ignore
15
21
  var MessageBannerWrapper = /*#__PURE__*/(0, _base["default"])("div", {
16
22
  target: "eb5ubi52",
17
23
  label: "MessageBannerWrapper"
@@ -13,7 +13,13 @@ var _button = require("@ndla/button");
13
13
  var _react2 = require("@emotion/react");
14
14
  var _jsxRuntime = require("@emotion/react/jsx-runtime");
15
15
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
16
- function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
16
+ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } /**
17
+ * Copyright (c) 2022-present, NDLA.
18
+ *
19
+ * This source code is licensed under the GPLv3 license found in the
20
+ * LICENSE file in the root directory of this source tree.
21
+ *
22
+ */ // @ts-ignore
17
23
  var markdown = new _remarkable.Remarkable({
18
24
  breaks: true
19
25
  });
@@ -9,7 +9,13 @@ var _react = _interopRequireDefault(require("react"));
9
9
  var _reactI18next = require("react-i18next");
10
10
  var _jsxRuntime = require("@emotion/react/jsx-runtime");
11
11
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
12
- function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
12
+ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } /**
13
+ * Copyright (c) 2022-present, NDLA.
14
+ *
15
+ * This source code is licensed under the GPLv3 license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ *
18
+ */
13
19
  var MiniMesssage = /*#__PURE__*/(0, _base["default"])("div", {
14
20
  target: "e1l3cce60",
15
21
  label: "MiniMesssage"