@ndla/ui 56.0.141-alpha.0 → 56.0.143-alpha.0
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.
- package/dist/panda.buildinfo.json +2 -10
- package/dist/styles.css +5 -35
- package/es/Article/Article.mjs +10 -12
- package/es/Article/Article.mjs.map +1 -1
- package/es/Article/ArticleByline.mjs.map +1 -1
- package/es/Article/ArticleFootNotes.mjs.map +1 -1
- package/es/AudioPlayer/AudioPlayer.mjs +3 -3
- package/es/AudioPlayer/AudioPlayer.mjs.map +1 -1
- package/es/AudioPlayer/Controls.mjs +1 -1
- package/es/AudioPlayer/Controls.mjs.map +1 -1
- package/es/AudioPlayer/SpeechControl.mjs +9 -11
- package/es/AudioPlayer/SpeechControl.mjs.map +1 -1
- package/es/Breadcrumb/Breadcrumb.mjs +2 -2
- package/es/Breadcrumb/Breadcrumb.mjs.map +1 -1
- package/es/Breadcrumb/BreadcrumbItem.mjs +1 -1
- package/es/Breadcrumb/BreadcrumbItem.mjs.map +1 -1
- package/es/Breadcrumb/HomeBreadcrumb.mjs +2 -2
- package/es/Breadcrumb/HomeBreadcrumb.mjs.map +1 -1
- package/es/CampaignBlock/CampaignBlock.mjs +1 -1
- package/es/CampaignBlock/CampaignBlock.mjs.map +1 -1
- package/es/CodeBlock/CodeBlock.mjs +1 -1
- package/es/CodeBlock/CodeBlock.mjs.map +1 -1
- package/es/CodeBlock/codeLanguageOptions.mjs.map +1 -1
- package/es/Concept/Concept.mjs +5 -5
- package/es/Concept/Concept.mjs.map +1 -1
- package/es/ContactBlock/ContactBlock.mjs.map +1 -1
- package/es/ContentTypeBadge/ContentTypeBadge.mjs.map +1 -1
- package/es/CopyParagraphButton/CopyParagraphButton.mjs +1 -1
- package/es/CopyParagraphButton/CopyParagraphButton.mjs.map +1 -1
- package/es/Embed/AudioEmbed.mjs +3 -3
- package/es/Embed/AudioEmbed.mjs.map +1 -1
- package/es/Embed/BrightcoveEmbed.mjs +2 -2
- package/es/Embed/BrightcoveEmbed.mjs.map +1 -1
- package/es/Embed/CodeEmbed.mjs +3 -4
- package/es/Embed/CodeEmbed.mjs.map +1 -1
- package/es/Embed/ConceptEmbed.mjs +2 -2
- package/es/Embed/ConceptEmbed.mjs.map +1 -1
- package/es/Embed/ConceptInlineTriggerButton.mjs.map +1 -1
- package/es/Embed/ContentLinkEmbed.mjs +1 -1
- package/es/Embed/ContentLinkEmbed.mjs.map +1 -1
- package/es/Embed/CopyrightEmbed.mjs +1 -1
- package/es/Embed/CopyrightEmbed.mjs.map +1 -1
- package/es/Embed/EmbedErrorPlaceholder.mjs +1 -1
- package/es/Embed/EmbedErrorPlaceholder.mjs.map +1 -1
- package/es/Embed/EmbedWrapper.mjs.map +1 -1
- package/es/Embed/ExternalEmbed.mjs +3 -3
- package/es/Embed/ExternalEmbed.mjs.map +1 -1
- package/es/Embed/FootnoteEmbed.mjs +1 -1
- package/es/Embed/FootnoteEmbed.mjs.map +1 -1
- package/es/Embed/GlossEmbed.mjs +2 -2
- package/es/Embed/GlossEmbed.mjs.map +1 -1
- package/es/Embed/H5pEmbed.mjs +2 -2
- package/es/Embed/H5pEmbed.mjs.map +1 -1
- package/es/Embed/IframeEmbed.mjs +3 -3
- package/es/Embed/IframeEmbed.mjs.map +1 -1
- package/es/Embed/ImageEmbed.mjs +2 -4
- package/es/Embed/ImageEmbed.mjs.map +1 -1
- package/es/Embed/InlineTriggerButton.mjs.map +1 -1
- package/es/Embed/RelatedContentEmbed.mjs +2 -3
- package/es/Embed/RelatedContentEmbed.mjs.map +1 -1
- package/es/Embed/UnknownEmbed.mjs +1 -1
- package/es/Embed/UnknownEmbed.mjs.map +1 -1
- package/es/Embed/UuDisclaimerEmbed.mjs +1 -1
- package/es/Embed/UuDisclaimerEmbed.mjs.map +1 -1
- package/es/FactBox/FactBox.mjs +1 -1
- package/es/FactBox/FactBox.mjs.map +1 -1
- package/es/FileList/File.mjs +34 -30
- package/es/FileList/File.mjs.map +1 -1
- package/es/FileList/FileList.mjs.map +1 -1
- package/es/FileList/PdfFile.mjs.map +1 -1
- package/es/Gloss/Gloss.mjs +5 -7
- package/es/Gloss/Gloss.mjs.map +1 -1
- package/es/Gloss/GlossExample.mjs +1 -1
- package/es/Gloss/GlossExample.mjs.map +1 -1
- package/es/Grid/Grid.mjs.map +1 -1
- package/es/Grid/GridParallaxItem.mjs.map +1 -1
- package/es/KeyFigure/KeyFigure.mjs +1 -1
- package/es/KeyFigure/KeyFigure.mjs.map +1 -1
- package/es/LicenseByline/EmbedByline.mjs +1 -2
- package/es/LicenseByline/EmbedByline.mjs.map +1 -1
- package/es/LicenseByline/LicenseLink.mjs.map +1 -1
- package/es/LinkBlock/LinkBlock.mjs +1 -1
- package/es/LinkBlock/LinkBlock.mjs.map +1 -1
- package/es/LinkBlock/LinkBlockSection.mjs +1 -1
- package/es/LinkBlock/LinkBlockSection.mjs.map +1 -1
- package/es/Pitch/Pitch.mjs.map +1 -1
- package/es/RelatedArticleList/RelatedArticleList.mjs.map +1 -1
- package/es/ResourceBox/ResourceBox.mjs +1 -1
- package/es/ResourceBox/ResourceBox.mjs.map +1 -1
- package/es/TagSelector/TagSelector.mjs.map +1 -1
- package/es/ZendeskButton/ZendeskButton.mjs.map +1 -1
- package/es/_virtual/rolldown_runtime.mjs +3 -1
- package/es/i18n/formatNestedMessages.mjs.map +1 -1
- package/es/i18n/useComponentTranslations.mjs +1 -2
- package/es/i18n/useComponentTranslations.mjs.map +1 -1
- package/es/index.mjs +34 -39
- package/es/locale/messages-en.mjs +2 -2
- package/es/locale/messages-en.mjs.map +1 -1
- package/es/locale/messages-nb.mjs +2 -2
- package/es/locale/messages-nb.mjs.map +1 -1
- package/es/locale/messages-nn.mjs +2 -2
- package/es/locale/messages-nn.mjs.map +1 -1
- package/es/locale/messages-se.mjs +2 -2
- package/es/locale/messages-se.mjs.map +1 -1
- package/es/model/ContentType.mjs.map +1 -1
- package/es/model/SubjectCategories.mjs +1 -2
- package/es/model/SubjectCategories.mjs.map +1 -1
- package/es/model/SubjectTypes.mjs +1 -2
- package/es/model/SubjectTypes.mjs.map +1 -1
- package/es/model/WordClass.mjs +1 -2
- package/es/model/WordClass.mjs.map +1 -1
- package/es/model/index.mjs +1 -1
- package/es/model/index.mjs.map +1 -1
- package/es/utils/licenseAttributes.mjs +1 -2
- package/es/utils/licenseAttributes.mjs.map +1 -1
- package/es/utils/relativeUrl.mjs.map +1 -1
- package/lib/Article/Article.js +24 -20
- package/lib/Article/Article.js.map +1 -1
- package/lib/Article/ArticleByline.js +18 -10
- package/lib/Article/ArticleByline.js.map +1 -1
- package/lib/Article/ArticleFootNotes.js +6 -3
- package/lib/Article/ArticleFootNotes.js.map +1 -1
- package/lib/AudioPlayer/AudioPlayer.js +17 -11
- package/lib/AudioPlayer/AudioPlayer.js.map +1 -1
- package/lib/AudioPlayer/Controls.js +15 -8
- package/lib/AudioPlayer/Controls.js.map +1 -1
- package/lib/AudioPlayer/SpeechControl.js +18 -15
- package/lib/AudioPlayer/SpeechControl.js.map +1 -1
- package/lib/Breadcrumb/Breadcrumb.js +11 -7
- package/lib/Breadcrumb/Breadcrumb.js.map +1 -1
- package/lib/Breadcrumb/BreadcrumbItem.js +11 -6
- package/lib/Breadcrumb/BreadcrumbItem.js.map +1 -1
- package/lib/Breadcrumb/HomeBreadcrumb.js +11 -7
- package/lib/Breadcrumb/HomeBreadcrumb.js.map +1 -1
- package/lib/CampaignBlock/CampaignBlock.js +17 -10
- package/lib/CampaignBlock/CampaignBlock.js.map +1 -1
- package/lib/CodeBlock/CodeBlock.js +9 -5
- package/lib/CodeBlock/CodeBlock.js.map +1 -1
- package/lib/CodeBlock/codeLanguageOptions.js.map +1 -1
- package/lib/Concept/Concept.js +19 -15
- package/lib/Concept/Concept.js.map +1 -1
- package/lib/ContactBlock/ContactBlock.js +10 -6
- package/lib/ContactBlock/ContactBlock.js.map +1 -1
- package/lib/ContentTypeBadge/ContentTypeBadge.js +28 -24
- package/lib/ContentTypeBadge/ContentTypeBadge.js.map +1 -1
- package/lib/CopyParagraphButton/CopyParagraphButton.js +13 -7
- package/lib/CopyParagraphButton/CopyParagraphButton.js.map +1 -1
- package/lib/Embed/AudioEmbed.js +16 -13
- package/lib/Embed/AudioEmbed.js.map +1 -1
- package/lib/Embed/BrightcoveEmbed.js +19 -13
- package/lib/Embed/BrightcoveEmbed.js.map +1 -1
- package/lib/Embed/CodeEmbed.js +19 -14
- package/lib/Embed/CodeEmbed.js.map +1 -1
- package/lib/Embed/ConceptEmbed.js +21 -15
- package/lib/Embed/ConceptEmbed.js.map +1 -1
- package/lib/Embed/ConceptInlineTriggerButton.js +4 -3
- package/lib/Embed/ConceptInlineTriggerButton.js.map +1 -1
- package/lib/Embed/ContentLinkEmbed.js +7 -4
- package/lib/Embed/ContentLinkEmbed.js.map +1 -1
- package/lib/Embed/CopyrightEmbed.js +7 -5
- package/lib/Embed/CopyrightEmbed.js.map +1 -1
- package/lib/Embed/EmbedErrorPlaceholder.js +13 -8
- package/lib/Embed/EmbedErrorPlaceholder.js.map +1 -1
- package/lib/Embed/EmbedWrapper.js +10 -5
- package/lib/Embed/EmbedWrapper.js.map +1 -1
- package/lib/Embed/ExternalEmbed.js +15 -10
- package/lib/Embed/ExternalEmbed.js.map +1 -1
- package/lib/Embed/FootnoteEmbed.js +7 -4
- package/lib/Embed/FootnoteEmbed.js.map +1 -1
- package/lib/Embed/GlossEmbed.js +17 -12
- package/lib/Embed/GlossEmbed.js.map +1 -1
- package/lib/Embed/H5pEmbed.js +11 -7
- package/lib/Embed/H5pEmbed.js.map +1 -1
- package/lib/Embed/IframeEmbed.js +15 -10
- package/lib/Embed/IframeEmbed.js.map +1 -1
- package/lib/Embed/ImageEmbed.js +21 -16
- package/lib/Embed/ImageEmbed.js.map +1 -1
- package/lib/Embed/InlineTriggerButton.js +8 -4
- package/lib/Embed/InlineTriggerButton.js.map +1 -1
- package/lib/Embed/RelatedContentEmbed.js +12 -11
- package/lib/Embed/RelatedContentEmbed.js.map +1 -1
- package/lib/Embed/UnknownEmbed.js +7 -4
- package/lib/Embed/UnknownEmbed.js.map +1 -1
- package/lib/Embed/UuDisclaimerEmbed.js +15 -8
- package/lib/Embed/UuDisclaimerEmbed.js.map +1 -1
- package/lib/FactBox/FactBox.js +13 -7
- package/lib/FactBox/FactBox.js.map +1 -1
- package/lib/FileList/File.js +51 -39
- package/lib/FileList/File.js.map +1 -1
- package/lib/FileList/FileList.js +8 -4
- package/lib/FileList/FileList.js.map +1 -1
- package/lib/FileList/PdfFile.js +6 -3
- package/lib/FileList/PdfFile.js.map +1 -1
- package/lib/Gloss/Gloss.js +23 -17
- package/lib/Gloss/Gloss.js.map +1 -1
- package/lib/Gloss/GlossExample.js +9 -5
- package/lib/Gloss/GlossExample.js.map +1 -1
- package/lib/Grid/Grid.js +6 -3
- package/lib/Grid/Grid.js.map +1 -1
- package/lib/Grid/GridParallaxItem.js +6 -3
- package/lib/Grid/GridParallaxItem.js.map +1 -1
- package/lib/KeyFigure/KeyFigure.js +7 -4
- package/lib/KeyFigure/KeyFigure.js.map +1 -1
- package/lib/LicenseByline/EmbedByline.js +17 -11
- package/lib/LicenseByline/EmbedByline.js.map +1 -1
- package/lib/LicenseByline/LicenseLink.js +8 -4
- package/lib/LicenseByline/LicenseLink.js.map +1 -1
- package/lib/LinkBlock/LinkBlock.js +17 -10
- package/lib/LinkBlock/LinkBlock.js.map +1 -1
- package/lib/LinkBlock/LinkBlockSection.js +7 -4
- package/lib/LinkBlock/LinkBlockSection.js.map +1 -1
- package/lib/Pitch/Pitch.js +14 -8
- package/lib/Pitch/Pitch.js.map +1 -1
- package/lib/RelatedArticleList/RelatedArticleList.js +20 -12
- package/lib/RelatedArticleList/RelatedArticleList.js.map +1 -1
- package/lib/ResourceBox/ResourceBox.js +14 -7
- package/lib/ResourceBox/ResourceBox.js.map +1 -1
- package/lib/TagSelector/TagSelector.js +12 -6
- package/lib/TagSelector/TagSelector.js.map +1 -1
- package/lib/ZendeskButton/ZendeskButton.js +6 -3
- package/lib/ZendeskButton/ZendeskButton.js.map +1 -1
- package/lib/_virtual/rolldown_runtime.js +5 -13
- package/lib/i18n/formatNestedMessages.js.map +1 -1
- package/lib/i18n/useComponentTranslations.js +5 -4
- package/lib/i18n/useComponentTranslations.js.map +1 -1
- package/lib/index.d.ts +51 -31
- package/lib/index.js +145 -154
- package/lib/locale/messages-en.js +5 -4
- package/lib/locale/messages-en.js.map +1 -1
- package/lib/locale/messages-nb.js +5 -4
- package/lib/locale/messages-nb.js.map +1 -1
- package/lib/locale/messages-nn.js +5 -4
- package/lib/locale/messages-nn.js.map +1 -1
- package/lib/locale/messages-se.js +5 -4
- package/lib/locale/messages-se.js.map +1 -1
- package/lib/model/ContentType.js.map +1 -1
- package/lib/model/SubjectCategories.js +1 -2
- package/lib/model/SubjectCategories.js.map +1 -1
- package/lib/model/SubjectTypes.js +1 -2
- package/lib/model/SubjectTypes.js.map +1 -1
- package/lib/model/WordClass.js +1 -2
- package/lib/model/WordClass.js.map +1 -1
- package/lib/model/index.js +11 -11
- package/lib/model/index.js.map +1 -1
- package/lib/utils/licenseAttributes.js +3 -3
- package/lib/utils/licenseAttributes.js.map +1 -1
- package/lib/utils/relativeUrl.js.map +1 -1
- package/package.json +8 -8
- package/src/Article/Article.tsx +8 -4
- package/src/AudioPlayer/SpeechControl.tsx +4 -9
- package/src/Concept/Concept.tsx +5 -1
- package/src/Embed/AudioEmbed.stories.tsx +1 -1
- package/src/Embed/AudioEmbed.tsx +2 -2
- package/src/Embed/BrightcoveEmbed.stories.tsx +1 -1
- package/src/Embed/BrightcoveEmbed.tsx +1 -1
- package/src/Embed/CodeEmbed.tsx +2 -2
- package/src/Embed/ConceptEmbed.stories.tsx +1 -1
- package/src/Embed/CopyrightEmbed.tsx +1 -1
- package/src/Embed/EmbedErrorPlaceholder.tsx +1 -2
- package/src/Embed/ExternalEmbed.stories.tsx +1 -1
- package/src/Embed/ExternalEmbed.tsx +1 -1
- package/src/Embed/FootnoteEmbed.stories.tsx +1 -1
- package/src/Embed/GlossEmbed.tsx +1 -1
- package/src/Embed/H5pEmbed.stories.tsx +1 -1
- package/src/Embed/IframeEmbed.stories.tsx +1 -1
- package/src/Embed/IframeEmbed.tsx +1 -1
- package/src/Embed/ImageEmbed.stories.tsx +2 -2
- package/src/Embed/ImageEmbed.tsx +1 -1
- package/src/Embed/RelatedContentEmbed.stories.tsx +2 -2
- package/src/Embed/UuDisclaimerEmbed.stories.tsx +3 -3
- package/src/FileList/File.tsx +18 -7
- package/src/LinkBlock/LinkBlock.stories.tsx +1 -1
- package/src/Pitch/Pitch.stories.tsx +2 -2
- package/src/index.ts +53 -63
- package/es/AudioPlayer/index.mjs +0 -8
- package/es/AudioPlayer/index.mjs.map +0 -1
- package/es/Breadcrumb/index.mjs +0 -9
- package/es/Breadcrumb/index.mjs.map +0 -1
- package/es/ContentTypeBlockQuote/ContentTypeBlockQuote.mjs +0 -25
- package/es/ContentTypeBlockQuote/ContentTypeBlockQuote.mjs.map +0 -1
- package/es/ContentTypeFramedContent/ContentTypeFramedContent.mjs +0 -25
- package/es/ContentTypeFramedContent/ContentTypeFramedContent.mjs.map +0 -1
- package/es/ContentTypeHero/ContentTypeHero.mjs +0 -39
- package/es/ContentTypeHero/ContentTypeHero.mjs.map +0 -1
- package/es/CopyParagraphButton/index.mjs +0 -8
- package/es/CopyParagraphButton/index.mjs.map +0 -1
- package/es/ErrorMessage/ErrorMessage.mjs +0 -54
- package/es/ErrorMessage/ErrorMessage.mjs.map +0 -1
- package/es/ErrorMessage/index.mjs +0 -8
- package/es/ErrorMessage/index.mjs.map +0 -1
- package/es/FactBox/index.mjs +0 -8
- package/es/FactBox/index.mjs.map +0 -1
- package/es/RelatedArticleList/index.mjs +0 -8
- package/es/RelatedArticleList/index.mjs.map +0 -1
- package/lib/Article/index.d.ts +0 -10
- package/lib/AudioPlayer/index.d.ts +0 -9
- package/lib/AudioPlayer/index.js +0 -8
- package/lib/AudioPlayer/index.js.map +0 -1
- package/lib/Breadcrumb/index.d.ts +0 -11
- package/lib/Breadcrumb/index.js +0 -9
- package/lib/Breadcrumb/index.js.map +0 -1
- package/lib/CampaignBlock/index.d.ts +0 -8
- package/lib/CodeBlock/index.d.ts +0 -9
- package/lib/ContactBlock/index.d.ts +0 -9
- package/lib/ContentTypeBlockQuote/ContentTypeBlockQuote.d.ts +0 -16
- package/lib/ContentTypeBlockQuote/ContentTypeBlockQuote.js +0 -26
- package/lib/ContentTypeBlockQuote/ContentTypeBlockQuote.js.map +0 -1
- package/lib/ContentTypeFramedContent/ContentTypeFramedContent.d.ts +0 -16
- package/lib/ContentTypeFramedContent/ContentTypeFramedContent.js +0 -26
- package/lib/ContentTypeFramedContent/ContentTypeFramedContent.js.map +0 -1
- package/lib/ContentTypeHero/ContentTypeHero.d.ts +0 -14
- package/lib/ContentTypeHero/ContentTypeHero.js +0 -40
- package/lib/ContentTypeHero/ContentTypeHero.js.map +0 -1
- package/lib/ContentTypeHero/index.d.ts +0 -9
- package/lib/CopyParagraphButton/index.d.ts +0 -10
- package/lib/CopyParagraphButton/index.js +0 -8
- package/lib/CopyParagraphButton/index.js.map +0 -1
- package/lib/Embed/index.d.ts +0 -27
- package/lib/ErrorMessage/ErrorMessage.d.ts +0 -27
- package/lib/ErrorMessage/ErrorMessage.js +0 -55
- package/lib/ErrorMessage/ErrorMessage.js.map +0 -1
- package/lib/ErrorMessage/index.d.ts +0 -9
- package/lib/ErrorMessage/index.js +0 -8
- package/lib/ErrorMessage/index.js.map +0 -1
- package/lib/FactBox/index.d.ts +0 -9
- package/lib/FactBox/index.js +0 -8
- package/lib/FactBox/index.js.map +0 -1
- package/lib/FileList/index.d.ts +0 -10
- package/lib/Gloss/index.d.ts +0 -9
- package/lib/Grid/index.d.ts +0 -10
- package/lib/KeyFigure/index.d.ts +0 -8
- package/lib/LicenseByline/index.d.ts +0 -9
- package/lib/LinkBlock/index.d.ts +0 -9
- package/lib/Pitch/index.d.ts +0 -8
- package/lib/RelatedArticleList/index.d.ts +0 -10
- package/lib/RelatedArticleList/index.js +0 -8
- package/lib/RelatedArticleList/index.js.map +0 -1
- package/lib/ResourceBox/index.d.ts +0 -9
- package/lib/i18n/index.d.ts +0 -9
- package/src/Article/index.ts +0 -20
- package/src/AudioPlayer/index.ts +0 -11
- package/src/Breadcrumb/index.ts +0 -15
- package/src/CampaignBlock/index.ts +0 -9
- package/src/CodeBlock/index.ts +0 -10
- package/src/ContactBlock/index.ts +0 -10
- package/src/ContentTypeBlockQuote/ContentTypeBlockQuote.tsx +0 -32
- package/src/ContentTypeFramedContent/ContentTypeFramedContent.tsx +0 -34
- package/src/ContentTypeHero/ContentTypeHero.stories.tsx +0 -75
- package/src/ContentTypeHero/ContentTypeHero.tsx +0 -56
- package/src/ContentTypeHero/index.ts +0 -10
- package/src/CopyParagraphButton/index.tsx +0 -12
- package/src/Embed/index.ts +0 -28
- package/src/ErrorMessage/ErrorMessage.stories.tsx +0 -57
- package/src/ErrorMessage/ErrorMessage.tsx +0 -108
- package/src/ErrorMessage/index.ts +0 -11
- package/src/FactBox/index.ts +0 -11
- package/src/FileList/index.ts +0 -11
- package/src/Gloss/index.tsx +0 -10
- package/src/Grid/index.ts +0 -12
- package/src/KeyFigure/index.ts +0 -9
- package/src/LicenseByline/index.tsx +0 -10
- package/src/LinkBlock/index.ts +0 -10
- package/src/Pitch/index.ts +0 -9
- package/src/RelatedArticleList/index.ts +0 -13
- package/src/ResourceBox/index.ts +0 -11
- package/src/i18n/index.ts +0 -19
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages-se.mjs","names":["constants"],"sources":["../../src/locale/messages-se.ts"],"sourcesContent":["/**\n * Copyright (c) 2018-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport { contributorTypes } from \"@ndla/licenses\";\nimport constants from \"../model\";\n\nconst { subjectCategories, subjectTypes, wordClass } = constants;\n\nconst messages = {\n ...Object.entries(contributorTypes).reduce<Record<string, string>>((acc, curr) => {\n acc[curr[0]] = curr[1].nb;\n return acc;\n }, {}),\n askNDLA: \"Jeara NDLA:s\",\n subjectCategories: {\n [subjectCategories.ACTIVE_SUBJECTS]: \"Doaimmas\",\n [subjectCategories.ARCHIVE_SUBJECTS]: \"Ii doaimmas šat\",\n [subjectCategories.BETA_SUBJECTS]: \"Boahttevaš\",\n [subjectCategories.OTHER]: \"Eará resurssat\",\n [subjectTypes.RESOURCE_COLLECTION]: \"Resursačoakkáldat\",\n },\n subjectTypes: {\n [subjectTypes.ARCHIVE_SUBJECT]: \"Arkivfag\",\n [subjectTypes.BETA_SUBJECT]: \"Betafága\",\n [subjectTypes.RESOURCE_COLLECTION]: \"Resursačoakkáldat\",\n [subjectTypes.SUBJECT]: \"Fága\",\n },\n meta: {\n description:\n \"Kvalitehta sihkarasttojuvvon ja nuvttá olamuttos neahttavuđot oahpponeavvut joatkkaskuvlla oahpahussii\",\n keywords: \"oahpponeavvu, fága, skuvla, joatkka, fidnohárjehalli, pensuma, fágaávnnas\",\n },\n logo: {\n altText: \"Našunála digitála oahppanarena\",\n },\n article: {\n lastUpdated: \"Maŋemusat ođastuvvon\",\n useContent: \"Čujuhit vai ođđasit atnit?\",\n authorsLabel_article: \"Dán lea/leat čállán \",\n authorsLabel_learningPath: \"Laget av\",\n authorsLabel_external: \"Denne lenken er lagt til av\",\n copyPageLinkCopied: \"Liŋka máŋgejuvvon\",\n copyHeaderLink: \"Máŋge liŋka bajilčállagii\",\n conjunction: \"ja\",\n supplierLabel_one: \"Vuoigatvuođaguoddi:\",\n supplierLabel_other: \"Vuoigatvuođaguoddit:\",\n printPage: \"Čálit teavstta\",\n access: {\n onlyTeacher: \"Dát resursa lea dušše olamuttus oahpaheddjiide geat leat Feide bokte sisaloggejuvvon.\",\n },\n footnotes: \"Fotnotar\",\n },\n external: {\n lastUpdated: \"Maŋemusat ođastuvvon\",\n },\n learningPath: {\n copiedFrom: \"Dette er en remiks av en annen læringsti\",\n lastUpdated: \"Maŋemusat ođastuvvon\",\n },\n license: {\n copyTitle: \"Máŋge gáldooainnu\",\n hasCopiedTitle: \"Máŋgejuvvon!\",\n embed: \"Hukse sisa\",\n embedCopied: \"Máŋgejuvvon sisahuksenkoda!\",\n copyText: {\n now: \"dál\",\n podcast: \"podkásta\",\n by: \"geas\",\n internet: \"[Interneahtta]. \",\n noTitle: \"Tihttela haga\",\n downloadedFrom: \"Gos vižžojuvvon: \",\n readDate: \"Lohkan: \",\n },\n download: \"Viečča\",\n openLink: \"Raba ođđa gilkoris\",\n tabs: {\n text: \"Teaksta\",\n images: \"Govat\",\n audio: \"Jietna\",\n video: \"Video\",\n h5p: \"H5P\",\n files: \"Fiillat\",\n embedlink: \"Sisahuksenliŋka\",\n concept: \"Čilgehusat\",\n gloss: \"Gloser\",\n podcast: \"Podkásta\",\n other: \"Eará sisdoallu\",\n },\n embedlink: {\n heading: \"Ná čájehat artihkkala eará sisdoalus\",\n description: \"Dát liŋka čájeha artihkkala konteavstta haga (fállu ja vuolleteaksta)\",\n copyTitle: \"Máŋge liŋkka\",\n hasCopiedTitle: \"Liŋka máŋgejuvvon\",\n },\n image: {\n rules: \"Njuolggadusat gova geavaheapmái:\",\n },\n images: {\n heading: \"Ná geavahat govaid ođđasit\",\n description: \"Muitte máŋget teavstta mii galgá mielddusin govvii go geavahat dan.\",\n rules: \"Njuolggadusat gova geavaheapmái\",\n itemImage: {\n ariaLabel: \"Raba gova ođđa siiddus\",\n zoomImageButtonLabel: \"Stuorit gova\",\n zoomOutImageButtonLabel: \"Unnit gova\",\n expandByline: \"Čájet byline\",\n minimizeByline: \"Čiega byline\",\n },\n licenseText: \"Dán govas lea liseansa\",\n restrictedUseText: \"Dán govas lea\",\n },\n text: {\n heading: \"Ná geavahat teavstta ođđasit\",\n description: \"Muitte čujuhit gáldui go nuppi teavstta anát.\",\n rules: \"Njuolggadusat teavstta geavaheapmái\",\n published: \"Almmuhanbeaivi\",\n licenseText: \"Dán teavsttas lea liseansa\",\n restrictedUseText: \"Dán teavsttas lea\",\n },\n audio: {\n heading: \"Ná geavahat jietnafiilla ođđasit\",\n description: \"Muitte máŋget teavstta mii galgá čuovvut jietnafiilla doppe gos geavahuvvo.\",\n rules: \"Njuolggadusat jietnafiilla geavaheapmái\",\n licenseText: \"Dán jietnafiillas lea liseansa\",\n restrictedUseText: \"Dán jietnafiillas lea\",\n },\n podcast: {\n heading: \"Ná geavahat podkásta ođđasit\",\n description: \"Muitte máŋget teavstta mii galgá čuovvut podkásta doppe gos geavahuvvo.\",\n rules: \"Njuolggadusat podkásta geavaheapmái\",\n licenseText: \"Dán podkasttas lea liseansa\",\n restrictedUseText: \"Dán podkasttas lea\",\n },\n video: {\n heading: \"Ná geavahat video ođđasit\",\n description: \"Muitte máŋget teavstta mii galgá čuovvut video doppe gos dat geavahuvvo.\",\n rules: \"Njuolggadusat video geavaheapmái\",\n itemImage: {\n ariaLabel: \"Raba video ođđa siiddus\",\n },\n licenseText: \"Dán videoi lea liseansa\",\n restrictedUseText: \"Dán videoi lea\",\n },\n other: {\n heading: \"Ná geavahat eará sisdoalu ođđasit\",\n description: \"Njuolggadusaid sisdoalu geavaheapmái gávnnat sisdoalloelemeanttas\",\n itemImage: {\n ariaLabel: \"Raba ođđa siiddus\",\n },\n },\n h5p: {\n heading: \"Ná geavahat H5P-sisdoalu ođđasit\",\n description: \"Njuolggadusaid sisdoalu geavaheapmái gávnnat H5P-elemeanttas\",\n rules: \"Njuolggadusat H5P geavaheapmái\",\n licenseText: \"Dát interaktiiva bargu (H5P) lea ožžon liseanssa\",\n restrictedUseText: \"Dát interaktiiva bargu (H5P) lea ožžon\",\n },\n concept: {\n heading: \"Ná geavahat čilgehusaid ođđasit\",\n description: \"Husk at innebygd innhald i ei forklaring kan ha ein anna lisens enn sjølve forklaringsteksten\",\n rules: \"Njuolggadusat čilgehusa geavaheapmái\",\n embedlink: {\n heading: \"Ná čájehat čilgehusa eará sisdoalus\",\n description: \"Dát liŋka čájeha čilgehusa konteavstta haga (fállu ja vuolleteaksta)\",\n copyTitle: \"Máŋge sisahuksenliŋkka\",\n hasCopiedTitle: \"Sisahuksenliŋka máŋgejuvvon\",\n },\n licenseText: \"Dán čilgehusas lea liseansa\",\n restrictedUseText: \"Dán čilgehusas lea\",\n },\n gloss: {\n heading: \"Movt geavahit ođđasit dajaldagaid\",\n description:\n \"Muitte ahte sisdoalus mii lea vuojuhuvvon ovtta gihppagii sáhttá leat eará liseansa go dušše jietnadat.\",\n rules: \"Glossa geavaheami njuolggadusat\",\n showOrHideExamples: \"Čájet dahje čiega ovdamearkkaid\",\n embedlink: {\n heading: \"Čájet jietnadaga eará sisdoaluin\",\n description: \"Dát liŋka čájeha teavstta konteavstta haga (fállu ja juolgeteaksta)\",\n copyTitle: \"Máŋge sisačálihanliŋkka\",\n hasCopiedTitle: \"Sajáiduhttinliŋka mángejuvvon\",\n },\n licenseText: \"Dán jietnadagas lea liseansa\",\n restrictedUseText: \"Dán jietnadagas lea\",\n },\n files: {\n heading: \"Ná geavahat fiillaid ođđasit\",\n description: \"Muitte máŋget teavsttaid mat galget čuovvut fiillaid doppe gos dat geavahuvvet.\",\n rules: \"Njuolggadusat fiilla geavaheapmái\",\n itemImage: {\n ariaLabel: \"Raba ođđa siiddus\",\n },\n },\n processed: \"Sisdoallu lea rievdaduvvon.\",\n },\n errorMessage: {\n title: \"Ops, juoga manai boastut\",\n description: \"Šállošit, boasttuvuohta čuožžilii.\",\n back: \"Mana ruovttoluotta\",\n goToFrontPage: \"Mana ovdasiidui\",\n },\n figure: {\n button: {\n alternative: \"Lonut siidui mas dulkojuvvo oaidninváttuid ektui\",\n original: \"Lonut orginála videoi\",\n },\n },\n contentTypes: {\n all: \"Buot\",\n article: \"Artikkel\",\n subject: \"Fága\",\n \"topic-article\": \"Fáddá\",\n learningpath: \"Oahppanbálggis\",\n \"learning-path\": \"Oahppanbálggis\",\n \"subject-material\": \"Fágaávdnasat\",\n \"tasks-and-activities\": \"Bihtát ja doaimmat\",\n \"source-material\": \"Gáldomateriála\",\n \"assessment-resources\": \"Árvoštallanresursa\",\n topic: \"Fáddá\",\n multidisciplinary: \"Fágaidrasttideaddji fáddá\",\n image: \"Govva\",\n concept: \"Čilgehus\",\n audio: \"Jietna\",\n podcast: \"Podkásta\",\n h5p: \"H5P\",\n video: \"Video\",\n missing: \"Ukjent\",\n external: \"Ekstern\",\n gloss: \"Glose\",\n programme: \"Programfag\",\n \"podcast-series\": \"Podkast-serie\",\n \"frontpage-article\": \"Om NDLA-artikkel\",\n },\n languages: {\n nb: \"Girjedárogiella\",\n nn: \"Ođđadárogiella\",\n en: \"Eŋgelasgiella\",\n fr: \"Fránskkagiella\",\n de: \"Duiskkagiella\",\n se: \"Davvisámegiella\",\n sma: \"Máttasámegiella\",\n es: \"Espánnjagiella\",\n zh: \"Kiinnágiella\",\n ukr: \"Ukrainsk\",\n unknown: \"Amas\",\n prefixChangeLanguage: \"Vállje giela\",\n },\n breadcrumb: {\n toFrontpage: \"NDLA ovdasiidu\",\n breadcrumb: \"Láibemoallobálggis\",\n },\n codeBlock: {\n copiedCode: \"Koda lea máŋgejuvvon vuorkátávvalii\",\n copyCode: \"Máŋge koda vuorkátávvalii\",\n },\n close: \"Govčča\",\n loading: \"Viežžá\",\n title: \"Tihttel\",\n cancel: \"Botkke\",\n save: \"Vurke\",\n email: \"E-boasta\",\n finished: \"Ferdig\",\n audio: {\n play: \"Čuojat\",\n pause: \"Boatkke\",\n progressBar: \"Fremdriftsindikator\",\n valueText: \"{{start}} av {{end}}\",\n controls: {\n forward15sec: \"Sirdde 15 sekundda ovddas\",\n rewind15sec: \"Sirdde 15 sekundda maŋos\",\n selectSpeed: \"Vállje čuojahanleahtu\",\n adjustVolume: \"Rievdat voluma\",\n },\n textVersion: {\n heading: \"Teakstavearšuvdna\",\n close: \"Govčča teakstavearšuvnna\",\n },\n readMoreDescriptionLabel: \"Čájet eanet\",\n readLessDescriptionLabel: \"Čájet unnit\",\n },\n source: \"Gáldu\",\n related: {\n title: \"Guoskevaš sisdoallu\",\n linkInfo: \"Neahttasiidu čuovvuvaččas\",\n showMore: \"Čájet eanet guoskevaš sisdoalu\",\n showLess: \"Čájet unnit\",\n },\n download: \"Viečča fiilla: \",\n factbox: {\n open: \"Raba fáktádoasa\",\n close: \"Govčča fáktádoasa\",\n },\n embed: {\n linkError: \"Ii sáhttán čájehit liŋkka.\",\n unsupported: `Embed {{type}} ii dorjojuvvo.`,\n embedError: `Šattai meattáhus {{type}} vieččadettiin. Geahččal viežžat siiddu ođđasit.`,\n type: {\n image: \"Govva\",\n video: \"Video\",\n audio: \"Jietna\",\n podcast: \"Podkast\",\n concept: \"Čilgehus\",\n h5p: \"H5P\",\n external: \"Olgguldas resursa\",\n gloss: \"Glose\",\n copyright: \"Tekst\",\n code: \"Kodeblokk\",\n disclaimer: \"UU-advarsel\",\n },\n },\n uuDisclaimer: { title: \"Tilgjengelighet\" },\n gloss: {\n examples: \"Ovdamearkkat\",\n showExamples: \"Vis eksempler\",\n wordClass: \"Sátneluohkká\",\n play: \"Čuojat glose\",\n transcriptions: {\n traditional: \"Árbevirolaš čállinvuohki\",\n pinyin: \"Pinyin\",\n },\n },\n wordClass: {\n [wordClass.wordClass.adjective]: \"Adjektiivvat\",\n [wordClass.wordClass.adverb]: \"Advearba\",\n [wordClass.wordClass.properNoun]: \"Iežas namma\",\n [wordClass.wordClass.auxiliary]: \"Veahkkesánit\",\n [wordClass.wordClass.complement]: \"Dievasmahttin\",\n [wordClass.wordClass.conjunction]: \"Konjunksjon\",\n [wordClass.wordClass.coverb]: \"Koverb\",\n [wordClass.wordClass.determiner]: \"Mearrádussánit\",\n [wordClass.wordClass.interjection]: \"Ovttastuvvon\",\n [wordClass.wordClass.quantifier]: \"Kvantor\",\n [wordClass.wordClass.marker]: \"Sieván\",\n [wordClass.wordClass.modalVerb]: \"Modálavearba\",\n [wordClass.wordClass.measureWord]: \"Olahussátni\",\n [wordClass.wordClass.noun]: \"Substantiivvat\",\n [wordClass.wordClass[\"noun-zh\"]]: \"Nome\",\n [wordClass.wordClass.nounPhrase]: \"Nomengihppu\",\n [wordClass.wordClass.onomatopoeia]: \"Onomatopoetikon\",\n [wordClass.wordClass.particle]: \"Partihkkalat\",\n [wordClass.wordClass.demonstrative]: \"Čujuhusat\",\n [wordClass.wordClass.personalPronoun]: \"Persovnnalaš pronomen\",\n [wordClass.wordClass.preposition]: \"Preposišuvdna\",\n [wordClass.wordClass.pronoun]: \"Pronomen\",\n [wordClass.wordClass.questionWord]: \"Jearaldatsánit\",\n [wordClass.wordClass.locationWord]: \"Báikesánit\",\n [wordClass.wordClass.suffix]: \"Suffivssat\",\n [wordClass.wordClass.numeral]: \"Lohkosánit\",\n [wordClass.wordClass.timeWord]: \"Áigebágo\",\n [wordClass.wordClass.timeExpression]: \"Áigemearka\",\n [wordClass.wordClass.stativeVerb]: \"Dili-vearbba\",\n [wordClass.wordClass.subordinatingConjunction]: \"Subjunkšuvdna\",\n [wordClass.wordClass.exclamationWord]: \"Ii-rohkossátni\",\n [wordClass.wordClass.expression]: \"Ovdanbuktin\",\n [wordClass.wordClass.verb]: \"Vearbbat\",\n [wordClass.wordClass.verbComplement]: \"Vearbasuorggideapmi\",\n [wordClass.wordClass.verbObject]: \"Vearbaobjeakta\",\n },\n login: \"Čálit sisa\",\n component: {\n tagsInput: {\n clearTriggerLabel: \"Fjern alle emneknagger\",\n deleteTagTriggerLabel: \"Fjern emneknagg {{tag}}\",\n tagAdded: \"Emneknagg {{tag}} lagt til\",\n tagsPasted: \"Limte inn {{length}} emneknagger\",\n tagEdited: \"Redigerer emneknagg {{tag}}. Trykk enter for å lagre, eller esc for å avbryte.\",\n tagUpdated: \"Emneknagg oppdatert til {{tag}}\",\n tagDeleted: \"Emneknagg {{tag}} slettet\",\n tagSelected: \"Emneknagg {{tag}} valgt. Trykk enter for å redigere. Trykk backspace eller delete for å slette\",\n },\n combobox: {\n triggerLabel: \"Vis resultater\",\n clearTriggerLabel: \"Fjern valg\",\n },\n pagination: {\n rootLabel: \"Sidenavigering\",\n prevTriggerLabel: \"Forrige side\",\n nextTriggerLabel: \"Neste side\",\n lastPage: \"Siste side, side {{page}}\",\n page: \"Side {{page}}\",\n },\n imageSearch: {\n searchPlaceholder: \"Søk i bilder\",\n searchButtonTitle: \"Søk\",\n imagePreview: {\n creatorsLabel: \"Bilde\",\n license: \"Lisens\",\n caption: \"Bildetekst\",\n altText: \"Alt-tekst\",\n modelRelease: \"Modellklarert\",\n tags: \"Emneknagger\",\n checkboxLabel: \"Sett som metabilde\",\n close: \"Lukk\",\n useImageTitle: \"Bruk bildet\",\n },\n },\n audioSearch: {\n searchPlaceholder: \"Søk i lydfiler\",\n searchButtonTitle: \"Søk\",\n useAudio: \"Velg lyd\",\n noResults: \"Ingen resultater funnet\",\n },\n videoSearch: {\n searchPlaceholder: \"Søk i videoar\",\n searchButtonTitle: \"Søk\",\n loadMoreVideos: \"Last fleire videoar\",\n noResults: \"Ingen videoar funnet\",\n addVideo: \"Bruk video\",\n previewVideo: \"Forhåndsvis\",\n is360Video: \"VR-video\",\n close: \"Lukk\",\n },\n datePicker: {\n dayCell: {\n unavailable: \"Ikke tilgjengelig dato. {{date}}\",\n selected: \"Valgt dato. {{date}}\",\n select: \"Velg dato. {{date}}\",\n },\n nextTrigger: {\n day: \"Gå til neste måned\",\n month: \"Gå til neste år\",\n year: \"Gå til neste tiår\",\n },\n prevTrigger: {\n day: \"Gå til forrige måned\",\n month: \"Gå til forrige år\",\n year: \"Gå til forrige tiår\",\n },\n monthSelect: \"Velg måned\",\n yearSelect: \"Velg år\",\n viewTrigger: {\n day: \"Bytt til dagvisning\",\n month: \"Bytt til månedvisning\",\n year: \"Bytt til årvisning\",\n },\n presetTrigger: {\n single: \"Velg {{date}}\",\n range: \"Velg fra {{start}} til {{end}}\",\n },\n clearTrigger: \"Fjern valgte datoer\",\n trigger: {\n open: \"Åpne datovelger\",\n close: \"Lukk datovelger\",\n },\n content: \"Kalender\",\n },\n },\n richTextEditor: {\n tooltip: {\n bold: \"Fet ({{shortcut}})\",\n code: \"Kode ({{shortcut}})\",\n sub: \"Senket skrift ({{shortcut}})\",\n sup: \"Hevet skrift ({{shortcut}})\",\n underlined: \"Understreket ({{shortcut}})\",\n italic: \"Kursiv ({{shortcut}})\",\n \"numbered-list\": \"Nummerert liste ({{shortcut}})\",\n \"letter-list\": \"Bokstavliste ({{shortcut}})\",\n \"bulleted-list\": \"Punktliste ({{shortcut}})\",\n heading: \"Overskrift {{level}} ({{shortcut}})\",\n paragraph: \"Paragraf ({{shortcut}})\",\n section: \"Seksjon ({{shortcut}})\",\n link: \"Lenke ({{shortcut}})\",\n },\n },\n};\n\nexport default messages;\n"],"mappings":";;;;AAWA,MAAM,EAAE,mBAAmB,cAAc,WAAW,GAAGA;AAEvD,MAAM,WAAW;CACf,GAAG,OAAO,QAAQ,iBAAiB,CAAC,OAA+B,CAAC,KAAK,SAAS;AAChF,MAAI,KAAK,MAAM,KAAK,GAAG;AACvB,SAAO;CACR,GAAE,CAAE,EAAC;CACN,SAAS;CACT,mBAAmB;GAChB,kBAAkB,kBAAkB;GACpC,kBAAkB,mBAAmB;GACrC,kBAAkB,gBAAgB;GAClC,kBAAkB,QAAQ;GAC1B,aAAa,sBAAsB;CACrC;CACD,cAAc;GACX,aAAa,kBAAkB;GAC/B,aAAa,eAAe;GAC5B,aAAa,sBAAsB;GACnC,aAAa,UAAU;CACzB;CACD,MAAM;EACJ,aACE;EACF,UAAU;CACX;CACD,MAAM,EACJ,SAAS,iCACV;CACD,SAAS;EACP,aAAa;EACb,YAAY;EACZ,sBAAsB;EACtB,2BAA2B;EAC3B,uBAAuB;EACvB,oBAAoB;EACpB,gBAAgB;EAChB,aAAa;EACb,mBAAmB;EACnB,qBAAqB;EACrB,WAAW;EACX,QAAQ,EACN,aAAa,wFACd;EACD,WAAW;CACZ;CACD,UAAU,EACR,aAAa,uBACd;CACD,cAAc;EACZ,YAAY;EACZ,aAAa;CACd;CACD,SAAS;EACP,WAAW;EACX,gBAAgB;EAChB,OAAO;EACP,aAAa;EACb,UAAU;GACR,KAAK;GACL,SAAS;GACT,IAAI;GACJ,UAAU;GACV,SAAS;GACT,gBAAgB;GAChB,UAAU;EACX;EACD,UAAU;EACV,UAAU;EACV,MAAM;GACJ,MAAM;GACN,QAAQ;GACR,OAAO;GACP,OAAO;GACP,KAAK;GACL,OAAO;GACP,WAAW;GACX,SAAS;GACT,OAAO;GACP,SAAS;GACT,OAAO;EACR;EACD,WAAW;GACT,SAAS;GACT,aAAa;GACb,WAAW;GACX,gBAAgB;EACjB;EACD,OAAO,EACL,OAAO,mCACR;EACD,QAAQ;GACN,SAAS;GACT,aAAa;GACb,OAAO;GACP,WAAW;IACT,WAAW;IACX,sBAAsB;IACtB,yBAAyB;IACzB,cAAc;IACd,gBAAgB;GACjB;GACD,aAAa;GACb,mBAAmB;EACpB;EACD,MAAM;GACJ,SAAS;GACT,aAAa;GACb,OAAO;GACP,WAAW;GACX,aAAa;GACb,mBAAmB;EACpB;EACD,OAAO;GACL,SAAS;GACT,aAAa;GACb,OAAO;GACP,aAAa;GACb,mBAAmB;EACpB;EACD,SAAS;GACP,SAAS;GACT,aAAa;GACb,OAAO;GACP,aAAa;GACb,mBAAmB;EACpB;EACD,OAAO;GACL,SAAS;GACT,aAAa;GACb,OAAO;GACP,WAAW,EACT,WAAW,0BACZ;GACD,aAAa;GACb,mBAAmB;EACpB;EACD,OAAO;GACL,SAAS;GACT,aAAa;GACb,WAAW,EACT,WAAW,oBACZ;EACF;EACD,KAAK;GACH,SAAS;GACT,aAAa;GACb,OAAO;GACP,aAAa;GACb,mBAAmB;EACpB;EACD,SAAS;GACP,SAAS;GACT,aAAa;GACb,OAAO;GACP,WAAW;IACT,SAAS;IACT,aAAa;IACb,WAAW;IACX,gBAAgB;GACjB;GACD,aAAa;GACb,mBAAmB;EACpB;EACD,OAAO;GACL,SAAS;GACT,aACE;GACF,OAAO;GACP,oBAAoB;GACpB,WAAW;IACT,SAAS;IACT,aAAa;IACb,WAAW;IACX,gBAAgB;GACjB;GACD,aAAa;GACb,mBAAmB;EACpB;EACD,OAAO;GACL,SAAS;GACT,aAAa;GACb,OAAO;GACP,WAAW,EACT,WAAW,oBACZ;EACF;EACD,WAAW;CACZ;CACD,cAAc;EACZ,OAAO;EACP,aAAa;EACb,MAAM;EACN,eAAe;CAChB;CACD,QAAQ,EACN,QAAQ;EACN,aAAa;EACb,UAAU;CACX,EACF;CACD,cAAc;EACZ,KAAK;EACL,SAAS;EACT,SAAS;EACT,iBAAiB;EACjB,cAAc;EACd,iBAAiB;EACjB,oBAAoB;EACpB,wBAAwB;EACxB,mBAAmB;EACnB,wBAAwB;EACxB,OAAO;EACP,mBAAmB;EACnB,OAAO;EACP,SAAS;EACT,OAAO;EACP,SAAS;EACT,KAAK;EACL,OAAO;EACP,SAAS;EACT,UAAU;EACV,OAAO;EACP,WAAW;EACX,kBAAkB;EAClB,qBAAqB;CACtB;CACD,WAAW;EACT,IAAI;EACJ,IAA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"}
|
|
1
|
+
{"version":3,"file":"messages-se.mjs","names":["constants"],"sources":["../../src/locale/messages-se.ts"],"sourcesContent":["/**\n * Copyright (c) 2018-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport { contributorTypes } from \"@ndla/licenses\";\nimport constants from \"../model\";\n\nconst { subjectCategories, subjectTypes, wordClass } = constants;\n\nconst messages = {\n ...Object.entries(contributorTypes).reduce<Record<string, string>>((acc, curr) => {\n acc[curr[0]] = curr[1].nb;\n return acc;\n }, {}),\n askNDLA: \"Jeara NDLA:s\",\n subjectCategories: {\n [subjectCategories.ACTIVE_SUBJECTS]: \"Doaimmas\",\n [subjectCategories.ARCHIVE_SUBJECTS]: \"Ii doaimmas šat\",\n [subjectCategories.BETA_SUBJECTS]: \"Boahttevaš\",\n [subjectCategories.OTHER]: \"Eará resurssat\",\n [subjectTypes.RESOURCE_COLLECTION]: \"Resursačoakkáldat\",\n },\n subjectTypes: {\n [subjectTypes.ARCHIVE_SUBJECT]: \"Arkivfag\",\n [subjectTypes.BETA_SUBJECT]: \"Betafága\",\n [subjectTypes.RESOURCE_COLLECTION]: \"Resursačoakkáldat\",\n [subjectTypes.SUBJECT]: \"Fága\",\n },\n meta: {\n description:\n \"Kvalitehta sihkarasttojuvvon ja nuvttá olamuttos neahttavuđot oahpponeavvut joatkkaskuvlla oahpahussii\",\n keywords: \"oahpponeavvu, fága, skuvla, joatkka, fidnohárjehalli, pensuma, fágaávnnas\",\n },\n logo: {\n altText: \"Našunála digitála oahppanarena\",\n },\n article: {\n lastUpdated: \"Maŋemusat ođastuvvon\",\n useContent: \"Čujuhit vai ođđasit atnit?\",\n authorsLabel_article: \"Dán lea/leat čállán \",\n authorsLabel_learningPath: \"Laget av\",\n authorsLabel_external: \"Denne lenken er lagt til av\",\n copyPageLinkCopied: \"Liŋka máŋgejuvvon\",\n copyHeaderLink: \"Máŋge liŋka bajilčállagii\",\n conjunction: \"ja\",\n supplierLabel_one: \"Vuoigatvuođaguoddi:\",\n supplierLabel_other: \"Vuoigatvuođaguoddit:\",\n printPage: \"Čálit teavstta\",\n access: {\n onlyTeacher: \"Dát resursa lea dušše olamuttus oahpaheddjiide geat leat Feide bokte sisaloggejuvvon.\",\n },\n footnotes: \"Fotnotar\",\n },\n external: {\n lastUpdated: \"Maŋemusat ođastuvvon\",\n },\n learningPath: {\n copiedFrom: \"Dette er en remiks av en annen læringsti\",\n lastUpdated: \"Maŋemusat ođastuvvon\",\n },\n license: {\n copyTitle: \"Máŋge gáldooainnu\",\n hasCopiedTitle: \"Máŋgejuvvon!\",\n embed: \"Hukse sisa\",\n embedCopied: \"Máŋgejuvvon sisahuksenkoda!\",\n copyText: {\n now: \"dál\",\n podcast: \"podkásta\",\n by: \"geas\",\n internet: \"[Interneahtta]. \",\n noTitle: \"Tihttela haga\",\n downloadedFrom: \"Gos vižžojuvvon: \",\n readDate: \"Lohkan: \",\n },\n download: \"Viečča\",\n openLink: \"Raba ođđa gilkoris\",\n tabs: {\n text: \"Teaksta\",\n images: \"Govat\",\n audio: \"Jietna\",\n video: \"Video\",\n h5p: \"H5P\",\n files: \"Fiillat\",\n embedlink: \"Sisahuksenliŋka\",\n concept: \"Čilgehusat\",\n gloss: \"Gloser\",\n podcast: \"Podkásta\",\n other: \"Eará sisdoallu\",\n },\n embedlink: {\n heading: \"Ná čájehat artihkkala eará sisdoalus\",\n description: \"Dát liŋka čájeha artihkkala konteavstta haga (fállu ja vuolleteaksta)\",\n copyTitle: \"Máŋge liŋkka\",\n hasCopiedTitle: \"Liŋka máŋgejuvvon\",\n },\n image: {\n rules: \"Njuolggadusat gova geavaheapmái:\",\n },\n images: {\n heading: \"Ná geavahat govaid ođđasit\",\n description: \"Muitte máŋget teavstta mii galgá mielddusin govvii go geavahat dan.\",\n rules: \"Njuolggadusat gova geavaheapmái\",\n itemImage: {\n ariaLabel: \"Raba gova ođđa siiddus\",\n zoomImageButtonLabel: \"Stuorit gova\",\n zoomOutImageButtonLabel: \"Unnit gova\",\n expandByline: \"Čájet byline\",\n minimizeByline: \"Čiega byline\",\n },\n licenseText: \"Dán govas lea liseansa\",\n restrictedUseText: \"Dán govas lea\",\n },\n text: {\n heading: \"Ná geavahat teavstta ođđasit\",\n description: \"Muitte čujuhit gáldui go nuppi teavstta anát.\",\n rules: \"Njuolggadusat teavstta geavaheapmái\",\n published: \"Almmuhanbeaivi\",\n licenseText: \"Dán teavsttas lea liseansa\",\n restrictedUseText: \"Dán teavsttas lea\",\n },\n audio: {\n heading: \"Ná geavahat jietnafiilla ođđasit\",\n description: \"Muitte máŋget teavstta mii galgá čuovvut jietnafiilla doppe gos geavahuvvo.\",\n rules: \"Njuolggadusat jietnafiilla geavaheapmái\",\n licenseText: \"Dán jietnafiillas lea liseansa\",\n restrictedUseText: \"Dán jietnafiillas lea\",\n },\n podcast: {\n heading: \"Ná geavahat podkásta ođđasit\",\n description: \"Muitte máŋget teavstta mii galgá čuovvut podkásta doppe gos geavahuvvo.\",\n rules: \"Njuolggadusat podkásta geavaheapmái\",\n licenseText: \"Dán podkasttas lea liseansa\",\n restrictedUseText: \"Dán podkasttas lea\",\n },\n video: {\n heading: \"Ná geavahat video ođđasit\",\n description: \"Muitte máŋget teavstta mii galgá čuovvut video doppe gos dat geavahuvvo.\",\n rules: \"Njuolggadusat video geavaheapmái\",\n itemImage: {\n ariaLabel: \"Raba video ođđa siiddus\",\n },\n licenseText: \"Dán videoi lea liseansa\",\n restrictedUseText: \"Dán videoi lea\",\n },\n other: {\n heading: \"Ná geavahat eará sisdoalu ođđasit\",\n description: \"Njuolggadusaid sisdoalu geavaheapmái gávnnat sisdoalloelemeanttas\",\n itemImage: {\n ariaLabel: \"Raba ođđa siiddus\",\n },\n },\n h5p: {\n heading: \"Ná geavahat H5P-sisdoalu ođđasit\",\n description: \"Njuolggadusaid sisdoalu geavaheapmái gávnnat H5P-elemeanttas\",\n rules: \"Njuolggadusat H5P geavaheapmái\",\n licenseText: \"Dát interaktiiva bargu (H5P) lea ožžon liseanssa\",\n restrictedUseText: \"Dát interaktiiva bargu (H5P) lea ožžon\",\n },\n concept: {\n heading: \"Ná geavahat čilgehusaid ođđasit\",\n description: \"Husk at innebygd innhald i ei forklaring kan ha ein anna lisens enn sjølve forklaringsteksten\",\n rules: \"Njuolggadusat čilgehusa geavaheapmái\",\n embedlink: {\n heading: \"Ná čájehat čilgehusa eará sisdoalus\",\n description: \"Dát liŋka čájeha čilgehusa konteavstta haga (fállu ja vuolleteaksta)\",\n copyTitle: \"Máŋge sisahuksenliŋkka\",\n hasCopiedTitle: \"Sisahuksenliŋka máŋgejuvvon\",\n },\n licenseText: \"Dán čilgehusas lea liseansa\",\n restrictedUseText: \"Dán čilgehusas lea\",\n },\n gloss: {\n heading: \"Movt geavahit ođđasit dajaldagaid\",\n description:\n \"Muitte ahte sisdoalus mii lea vuojuhuvvon ovtta gihppagii sáhttá leat eará liseansa go dušše jietnadat.\",\n rules: \"Glossa geavaheami njuolggadusat\",\n showOrHideExamples: \"Čájet dahje čiega ovdamearkkaid\",\n embedlink: {\n heading: \"Čájet jietnadaga eará sisdoaluin\",\n description: \"Dát liŋka čájeha teavstta konteavstta haga (fállu ja juolgeteaksta)\",\n copyTitle: \"Máŋge sisačálihanliŋkka\",\n hasCopiedTitle: \"Sajáiduhttinliŋka mángejuvvon\",\n },\n licenseText: \"Dán jietnadagas lea liseansa\",\n restrictedUseText: \"Dán jietnadagas lea\",\n },\n files: {\n heading: \"Ná geavahat fiillaid ođđasit\",\n description: \"Muitte máŋget teavsttaid mat galget čuovvut fiillaid doppe gos dat geavahuvvet.\",\n rules: \"Njuolggadusat fiilla geavaheapmái\",\n itemImage: {\n ariaLabel: \"Raba ođđa siiddus\",\n },\n },\n processed: \"Sisdoallu lea rievdaduvvon.\",\n },\n errorMessage: {\n title: \"Ops, juoga manai boastut\",\n description: \"Šállošit, boasttuvuohta čuožžilii.\",\n back: \"Mana ruovttoluotta\",\n goToFrontPage: \"Mana ovdasiidui\",\n },\n figure: {\n button: {\n alternative: \"Lonut siidui mas dulkojuvvo oaidninváttuid ektui\",\n original: \"Lonut orginála videoi\",\n },\n },\n contentTypes: {\n all: \"Buot\",\n article: \"Artikkel\",\n subject: \"Fága\",\n \"topic-article\": \"Fáddá\",\n learningpath: \"Oahppanbálggis\",\n \"learning-path\": \"Oahppanbálggis\",\n \"subject-material\": \"Fágaávdnasat\",\n \"tasks-and-activities\": \"Bihtát ja doaimmat\",\n \"source-material\": \"Gáldomateriála\",\n \"assessment-resources\": \"Árvoštallanresursa\",\n topic: \"Fáddá\",\n multidisciplinary: \"Fágaidrasttideaddji fáddá\",\n image: \"Govva\",\n concept: \"Čilgehus\",\n audio: \"Jietna\",\n podcast: \"Podkásta\",\n h5p: \"H5P\",\n video: \"Video\",\n missing: \"Ukjent\",\n external: \"Ekstern\",\n gloss: \"Glose\",\n programme: \"Programfag\",\n \"podcast-series\": \"Podkast-serie\",\n \"frontpage-article\": \"Om NDLA-artikkel\",\n },\n languages: {\n nb: \"Girjedárogiella\",\n nn: \"Ođđadárogiella\",\n en: \"Eŋgelasgiella\",\n fr: \"Fránskkagiella\",\n de: \"Duiskkagiella\",\n se: \"Davvisámegiella\",\n sma: \"Máttasámegiella\",\n es: \"Espánnjagiella\",\n zh: \"Kiinnágiella\",\n ukr: \"Ukrainsk\",\n unknown: \"Amas\",\n prefixChangeLanguage: \"Vállje giela\",\n },\n breadcrumb: {\n toFrontpage: \"NDLA ovdasiidu\",\n breadcrumb: \"Láibemoallobálggis\",\n },\n codeBlock: {\n copiedCode: \"Koda lea máŋgejuvvon vuorkátávvalii\",\n copyCode: \"Máŋge koda vuorkátávvalii\",\n },\n close: \"Govčča\",\n loading: \"Viežžá\",\n title: \"Tihttel\",\n cancel: \"Botkke\",\n save: \"Vurke\",\n email: \"E-boasta\",\n finished: \"Ferdig\",\n audio: {\n play: \"Čuojat\",\n pause: \"Boatkke\",\n progressBar: \"Fremdriftsindikator\",\n valueText: \"{{start}} av {{end}}\",\n controls: {\n forward15sec: \"Sirdde 15 sekundda ovddas\",\n rewind15sec: \"Sirdde 15 sekundda maŋos\",\n selectSpeed: \"Vállje čuojahanleahtu\",\n adjustVolume: \"Rievdat voluma\",\n },\n textVersion: {\n heading: \"Teakstavearšuvdna\",\n close: \"Govčča teakstavearšuvnna\",\n },\n readMoreDescriptionLabel: \"Čájet eanet\",\n readLessDescriptionLabel: \"Čájet unnit\",\n },\n source: \"Gáldu\",\n related: {\n title: \"Guoskevaš sisdoallu\",\n linkInfo: \"Neahttasiidu čuovvuvaččas\",\n showMore: \"Čájet eanet guoskevaš sisdoalu\",\n showLess: \"Čájet unnit\",\n },\n download: \"Viečča fiilla: \",\n factbox: {\n open: \"Raba fáktádoasa\",\n close: \"Govčča fáktádoasa\",\n },\n embed: {\n linkError: \"Ii sáhttán čájehit liŋkka.\",\n unsupported: `Embed {{type}} ii dorjojuvvo.`,\n embedError: `Šattai meattáhus {{type}} vieččadettiin. Geahččal viežžat siiddu ođđasit.`,\n type: {\n image: \"Govva\",\n video: \"Video\",\n audio: \"Jietna\",\n podcast: \"Podkast\",\n concept: \"Čilgehus\",\n h5p: \"H5P\",\n external: \"Olgguldas resursa\",\n gloss: \"Glose\",\n copyright: \"Tekst\",\n code: \"Kodeblokk\",\n disclaimer: \"UU-advarsel\",\n },\n },\n uuDisclaimer: { title: \"Tilgjengelighet\" },\n gloss: {\n examples: \"Ovdamearkkat\",\n showExamples: \"Vis eksempler\",\n wordClass: \"Sátneluohkká\",\n play: \"Čuojat glose\",\n transcriptions: {\n traditional: \"Árbevirolaš čállinvuohki\",\n pinyin: \"Pinyin\",\n },\n },\n wordClass: {\n [wordClass.wordClass.adjective]: \"Adjektiivvat\",\n [wordClass.wordClass.adverb]: \"Advearba\",\n [wordClass.wordClass.properNoun]: \"Iežas namma\",\n [wordClass.wordClass.auxiliary]: \"Veahkkesánit\",\n [wordClass.wordClass.complement]: \"Dievasmahttin\",\n [wordClass.wordClass.conjunction]: \"Konjunksjon\",\n [wordClass.wordClass.coverb]: \"Koverb\",\n [wordClass.wordClass.determiner]: \"Mearrádussánit\",\n [wordClass.wordClass.interjection]: \"Ovttastuvvon\",\n [wordClass.wordClass.quantifier]: \"Kvantor\",\n [wordClass.wordClass.marker]: \"Sieván\",\n [wordClass.wordClass.modalVerb]: \"Modálavearba\",\n [wordClass.wordClass.measureWord]: \"Olahussátni\",\n [wordClass.wordClass.noun]: \"Substantiivvat\",\n [wordClass.wordClass[\"noun-zh\"]]: \"Nome\",\n [wordClass.wordClass.nounPhrase]: \"Nomengihppu\",\n [wordClass.wordClass.onomatopoeia]: \"Onomatopoetikon\",\n [wordClass.wordClass.particle]: \"Partihkkalat\",\n [wordClass.wordClass.demonstrative]: \"Čujuhusat\",\n [wordClass.wordClass.personalPronoun]: \"Persovnnalaš pronomen\",\n [wordClass.wordClass.preposition]: \"Preposišuvdna\",\n [wordClass.wordClass.pronoun]: \"Pronomen\",\n [wordClass.wordClass.questionWord]: \"Jearaldatsánit\",\n [wordClass.wordClass.locationWord]: \"Báikesánit\",\n [wordClass.wordClass.suffix]: \"Suffivssat\",\n [wordClass.wordClass.numeral]: \"Lohkosánit\",\n [wordClass.wordClass.timeWord]: \"Áigebágo\",\n [wordClass.wordClass.timeExpression]: \"Áigemearka\",\n [wordClass.wordClass.stativeVerb]: \"Dili-vearbba\",\n [wordClass.wordClass.subordinatingConjunction]: \"Subjunkšuvdna\",\n [wordClass.wordClass.exclamationWord]: \"Ii-rohkossátni\",\n [wordClass.wordClass.expression]: \"Ovdanbuktin\",\n [wordClass.wordClass.verb]: \"Vearbbat\",\n [wordClass.wordClass.verbComplement]: \"Vearbasuorggideapmi\",\n [wordClass.wordClass.verbObject]: \"Vearbaobjeakta\",\n },\n login: \"Čálit sisa\",\n component: {\n tagsInput: {\n clearTriggerLabel: \"Fjern alle emneknagger\",\n deleteTagTriggerLabel: \"Fjern emneknagg {{tag}}\",\n tagAdded: \"Emneknagg {{tag}} lagt til\",\n tagsPasted: \"Limte inn {{length}} emneknagger\",\n tagEdited: \"Redigerer emneknagg {{tag}}. Trykk enter for å lagre, eller esc for å avbryte.\",\n tagUpdated: \"Emneknagg oppdatert til {{tag}}\",\n tagDeleted: \"Emneknagg {{tag}} slettet\",\n tagSelected: \"Emneknagg {{tag}} valgt. Trykk enter for å redigere. Trykk backspace eller delete for å slette\",\n },\n combobox: {\n triggerLabel: \"Vis resultater\",\n clearTriggerLabel: \"Fjern valg\",\n },\n pagination: {\n rootLabel: \"Sidenavigering\",\n prevTriggerLabel: \"Forrige side\",\n nextTriggerLabel: \"Neste side\",\n lastPage: \"Siste side, side {{page}}\",\n page: \"Side {{page}}\",\n },\n imageSearch: {\n searchPlaceholder: \"Søk i bilder\",\n searchButtonTitle: \"Søk\",\n imagePreview: {\n creatorsLabel: \"Bilde\",\n license: \"Lisens\",\n caption: \"Bildetekst\",\n altText: \"Alt-tekst\",\n modelRelease: \"Modellklarert\",\n tags: \"Emneknagger\",\n checkboxLabel: \"Sett som metabilde\",\n close: \"Lukk\",\n useImageTitle: \"Bruk bildet\",\n },\n },\n audioSearch: {\n searchPlaceholder: \"Søk i lydfiler\",\n searchButtonTitle: \"Søk\",\n useAudio: \"Velg lyd\",\n noResults: \"Ingen resultater funnet\",\n },\n videoSearch: {\n searchPlaceholder: \"Søk i videoar\",\n searchButtonTitle: \"Søk\",\n loadMoreVideos: \"Last fleire videoar\",\n noResults: \"Ingen videoar funnet\",\n addVideo: \"Bruk video\",\n previewVideo: \"Forhåndsvis\",\n is360Video: \"VR-video\",\n close: \"Lukk\",\n },\n datePicker: {\n dayCell: {\n unavailable: \"Ikke tilgjengelig dato. {{date}}\",\n selected: \"Valgt dato. {{date}}\",\n select: \"Velg dato. {{date}}\",\n },\n nextTrigger: {\n day: \"Gå til neste måned\",\n month: \"Gå til neste år\",\n year: \"Gå til neste tiår\",\n },\n prevTrigger: {\n day: \"Gå til forrige måned\",\n month: \"Gå til forrige år\",\n year: \"Gå til forrige tiår\",\n },\n monthSelect: \"Velg måned\",\n yearSelect: \"Velg år\",\n viewTrigger: {\n day: \"Bytt til dagvisning\",\n month: \"Bytt til månedvisning\",\n year: \"Bytt til årvisning\",\n },\n presetTrigger: {\n single: \"Velg {{date}}\",\n range: \"Velg fra {{start}} til {{end}}\",\n },\n clearTrigger: \"Fjern valgte datoer\",\n trigger: {\n open: \"Åpne datovelger\",\n close: \"Lukk datovelger\",\n },\n content: \"Kalender\",\n },\n },\n richTextEditor: {\n tooltip: {\n bold: \"Fet ({{shortcut}})\",\n code: \"Kode ({{shortcut}})\",\n sub: \"Senket skrift ({{shortcut}})\",\n sup: \"Hevet skrift ({{shortcut}})\",\n underlined: \"Understreket ({{shortcut}})\",\n italic: \"Kursiv ({{shortcut}})\",\n \"numbered-list\": \"Nummerert liste ({{shortcut}})\",\n \"letter-list\": \"Bokstavliste ({{shortcut}})\",\n \"bulleted-list\": \"Punktliste ({{shortcut}})\",\n heading: \"Overskrift {{level}} ({{shortcut}})\",\n paragraph: \"Paragraf ({{shortcut}})\",\n section: \"Seksjon ({{shortcut}})\",\n link: \"Lenke ({{shortcut}})\",\n },\n },\n};\n\nexport default messages;\n"],"mappings":";;;;AAWA,MAAM,EAAE,mBAAmB,cAAc,cAAcA;AAEvD,MAAM,WAAW;CACf,GAAG,OAAO,QAAQ,iBAAiB,CAAC,QAAgC,KAAK,SAAS;AAChF,MAAI,KAAK,MAAM,KAAK,GAAG;AACvB,SAAO;IACN,EAAE,CAAC;CACN,SAAS;CACT,mBAAmB;GAChB,kBAAkB,kBAAkB;GACpC,kBAAkB,mBAAmB;GACrC,kBAAkB,gBAAgB;GAClC,kBAAkB,QAAQ;GAC1B,aAAa,sBAAsB;EACrC;CACD,cAAc;GACX,aAAa,kBAAkB;GAC/B,aAAa,eAAe;GAC5B,aAAa,sBAAsB;GACnC,aAAa,UAAU;EACzB;CACD,MAAM;EACJ,aACE;EACF,UAAU;EACX;CACD,MAAM,EACJ,SAAS,kCACV;CACD,SAAS;EACP,aAAa;EACb,YAAY;EACZ,sBAAsB;EACtB,2BAA2B;EAC3B,uBAAuB;EACvB,oBAAoB;EACpB,gBAAgB;EAChB,aAAa;EACb,mBAAmB;EACnB,qBAAqB;EACrB,WAAW;EACX,QAAQ,EACN,aAAa,yFACd;EACD,WAAW;EACZ;CACD,UAAU,EACR,aAAa,wBACd;CACD,cAAc;EACZ,YAAY;EACZ,aAAa;EACd;CACD,SAAS;EACP,WAAW;EACX,gBAAgB;EAChB,OAAO;EACP,aAAa;EACb,UAAU;GACR,KAAK;GACL,SAAS;GACT,IAAI;GACJ,UAAU;GACV,SAAS;GACT,gBAAgB;GAChB,UAAU;GACX;EACD,UAAU;EACV,UAAU;EACV,MAAM;GACJ,MAAM;GACN,QAAQ;GACR,OAAO;GACP,OAAO;GACP,KAAK;GACL,OAAO;GACP,WAAW;GACX,SAAS;GACT,OAAO;GACP,SAAS;GACT,OAAO;GACR;EACD,WAAW;GACT,SAAS;GACT,aAAa;GACb,WAAW;GACX,gBAAgB;GACjB;EACD,OAAO,EACL,OAAO,oCACR;EACD,QAAQ;GACN,SAAS;GACT,aAAa;GACb,OAAO;GACP,WAAW;IACT,WAAW;IACX,sBAAsB;IACtB,yBAAyB;IACzB,cAAc;IACd,gBAAgB;IACjB;GACD,aAAa;GACb,mBAAmB;GACpB;EACD,MAAM;GACJ,SAAS;GACT,aAAa;GACb,OAAO;GACP,WAAW;GACX,aAAa;GACb,mBAAmB;GACpB;EACD,OAAO;GACL,SAAS;GACT,aAAa;GACb,OAAO;GACP,aAAa;GACb,mBAAmB;GACpB;EACD,SAAS;GACP,SAAS;GACT,aAAa;GACb,OAAO;GACP,aAAa;GACb,mBAAmB;GACpB;EACD,OAAO;GACL,SAAS;GACT,aAAa;GACb,OAAO;GACP,WAAW,EACT,WAAW,2BACZ;GACD,aAAa;GACb,mBAAmB;GACpB;EACD,OAAO;GACL,SAAS;GACT,aAAa;GACb,WAAW,EACT,WAAW,qBACZ;GACF;EACD,KAAK;GACH,SAAS;GACT,aAAa;GACb,OAAO;GACP,aAAa;GACb,mBAAmB;GACpB;EACD,SAAS;GACP,SAAS;GACT,aAAa;GACb,OAAO;GACP,WAAW;IACT,SAAS;IACT,aAAa;IACb,WAAW;IACX,gBAAgB;IACjB;GACD,aAAa;GACb,mBAAmB;GACpB;EACD,OAAO;GACL,SAAS;GACT,aACE;GACF,OAAO;GACP,oBAAoB;GACpB,WAAW;IACT,SAAS;IACT,aAAa;IACb,WAAW;IACX,gBAAgB;IACjB;GACD,aAAa;GACb,mBAAmB;GACpB;EACD,OAAO;GACL,SAAS;GACT,aAAa;GACb,OAAO;GACP,WAAW,EACT,WAAW,qBACZ;GACF;EACD,WAAW;EACZ;CACD,cAAc;EACZ,OAAO;EACP,aAAa;EACb,MAAM;EACN,eAAe;EAChB;CACD,QAAQ,EACN,QAAQ;EACN,aAAa;EACb,UAAU;EACX,EACF;CACD,cAAc;EACZ,KAAK;EACL,SAAS;EACT,SAAS;EACT,iBAAiB;EACjB,cAAc;EACd,iBAAiB;EACjB,oBAAoB;EACpB,wBAAwB;EACxB,mBAAmB;EACnB,wBAAwB;EACxB,OAAO;EACP,mBAAmB;EACnB,OAAO;EACP,SAAS;EACT,OAAO;EACP,SAAS;EACT,KAAK;EACL,OAAO;EACP,SAAS;EACT,UAAU;EACV,OAAO;EACP,WAAW;EACX,kBAAkB;EAClB,qBAAqB;EACtB;CACD,WAAW;EACT,IAAI;EACJ,IAAI;EACJ,IAAI;EAC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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentType.mjs","names":["contentTypeMapping: Record<string, string>","resourceEmbedTypeMapping: Record<string, string>"],"sources":["../../src/model/ContentType.ts"],"sourcesContent":["/**\n * Copyright (c) 2017-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nexport const SUBJECT_MATERIAL = \"subject-material\";\nexport const TASKS_AND_ACTIVITIES = \"tasks-and-activities\";\nexport const ASSESSMENT_RESOURCES = \"assessment-resources\";\nexport const SUBJECT = \"subject\";\nexport const SOURCE_MATERIAL = \"source-material\";\nexport const LEARNING_PATH = \"learning-path\";\nexport const TOPIC = \"topic\";\nexport const MULTIDISCIPLINARY = \"multidisciplinary\";\nexport const CONCEPT = \"concept\";\nexport const EXTERNAL = \"external\";\nexport const MISSING = \"missing\";\nexport const IMAGE = \"image\";\nexport const VIDEO = \"video\";\nexport const AUDIO = \"audio\";\nexport const PODCAST = \"podcast\";\nexport const GLOSS = \"gloss\";\nexport const PROGRAMME = \"programme\";\nexport const PODCAST_SERIES = \"podcast-series\";\nexport const FRONTPAGE_ARTICLE = \"frontpage-article\";\n\nexport const contentTypes = {\n SUBJECT_MATERIAL,\n TASKS_AND_ACTIVITIES,\n ASSESSMENT_RESOURCES,\n SUBJECT,\n SOURCE_MATERIAL,\n LEARNING_PATH,\n TOPIC,\n MULTIDISCIPLINARY,\n CONCEPT,\n EXTERNAL,\n MISSING,\n PROGRAMME,\n PODCAST_SERIES,\n};\n\nexport const RESOURCE_TYPE_LEARNING_PATH = \"urn:resourcetype:learningPath\";\nexport const RESOURCE_TYPE_SUBJECT_MATERIAL = \"urn:resourcetype:subjectMaterial\";\nexport const RESOURCE_TYPE_TASKS_AND_ACTIVITIES = \"urn:resourcetype:tasksAndActivities\";\nexport const RESOURCE_TYPE_ASSESSMENT_RESOURCES = \"urn:resourcetype:reviewResource\";\nexport const RESOURCE_TYPE_SOURCE_MATERIAL = \"urn:resourcetype:SourceMaterial\";\nexport const RESOURCE_TYPE_CONCEPT = \"urn:resourcetype:concept\";\n\nexport const contentTypeMapping: Record<string, string> = {\n [RESOURCE_TYPE_LEARNING_PATH]: LEARNING_PATH,\n [RESOURCE_TYPE_SUBJECT_MATERIAL]: SUBJECT_MATERIAL,\n [RESOURCE_TYPE_TASKS_AND_ACTIVITIES]: TASKS_AND_ACTIVITIES,\n [RESOURCE_TYPE_ASSESSMENT_RESOURCES]: ASSESSMENT_RESOURCES,\n [RESOURCE_TYPE_SOURCE_MATERIAL]: SOURCE_MATERIAL,\n [RESOURCE_TYPE_CONCEPT]: CONCEPT,\n [MULTIDISCIPLINARY]: MULTIDISCIPLINARY,\n [TOPIC]: TOPIC,\n [FRONTPAGE_ARTICLE]: FRONTPAGE_ARTICLE,\n default: SUBJECT_MATERIAL,\n};\n\nexport const resourceEmbedTypeMapping: Record<string, string> = {\n image: \"image\",\n video: \"video\",\n concept: \"concept\",\n audio: \"audio\",\n podcast: \"podcast\",\n gloss: \"gloss\",\n};\n"],"mappings":";;;;;;;;AAQA,MAAa,mBAAmB;AAChC,MAAa,uBAAuB;AACpC,MAAa,uBAAuB;AACpC,MAAa,UAAU;AACvB,MAAa,kBAAkB;AAC/B,MAAa,gBAAgB;AAC7B,MAAa,QAAQ;AACrB,MAAa,oBAAoB;AACjC,MAAa,UAAU;AACvB,MAAa,WAAW;AACxB,MAAa,UAAU;AACvB,MAAa,QAAQ;AACrB,MAAa,QAAQ;AACrB,MAAa,QAAQ;AACrB,MAAa,UAAU;AACvB,MAAa,QAAQ;AACrB,MAAa,YAAY;AACzB,MAAa,iBAAiB;AAC9B,MAAa,oBAAoB;AAEjC,MAAa,eAAe;CAC1B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;
|
|
1
|
+
{"version":3,"file":"ContentType.mjs","names":["contentTypeMapping: Record<string, string>","resourceEmbedTypeMapping: Record<string, string>"],"sources":["../../src/model/ContentType.ts"],"sourcesContent":["/**\n * Copyright (c) 2017-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nexport const SUBJECT_MATERIAL = \"subject-material\";\nexport const TASKS_AND_ACTIVITIES = \"tasks-and-activities\";\nexport const ASSESSMENT_RESOURCES = \"assessment-resources\";\nexport const SUBJECT = \"subject\";\nexport const SOURCE_MATERIAL = \"source-material\";\nexport const LEARNING_PATH = \"learning-path\";\nexport const TOPIC = \"topic\";\nexport const MULTIDISCIPLINARY = \"multidisciplinary\";\nexport const CONCEPT = \"concept\";\nexport const EXTERNAL = \"external\";\nexport const MISSING = \"missing\";\nexport const IMAGE = \"image\";\nexport const VIDEO = \"video\";\nexport const AUDIO = \"audio\";\nexport const PODCAST = \"podcast\";\nexport const GLOSS = \"gloss\";\nexport const PROGRAMME = \"programme\";\nexport const PODCAST_SERIES = \"podcast-series\";\nexport const FRONTPAGE_ARTICLE = \"frontpage-article\";\n\nexport const contentTypes = {\n SUBJECT_MATERIAL,\n TASKS_AND_ACTIVITIES,\n ASSESSMENT_RESOURCES,\n SUBJECT,\n SOURCE_MATERIAL,\n LEARNING_PATH,\n TOPIC,\n MULTIDISCIPLINARY,\n CONCEPT,\n EXTERNAL,\n MISSING,\n PROGRAMME,\n PODCAST_SERIES,\n};\n\nexport const RESOURCE_TYPE_LEARNING_PATH = \"urn:resourcetype:learningPath\";\nexport const RESOURCE_TYPE_SUBJECT_MATERIAL = \"urn:resourcetype:subjectMaterial\";\nexport const RESOURCE_TYPE_TASKS_AND_ACTIVITIES = \"urn:resourcetype:tasksAndActivities\";\nexport const RESOURCE_TYPE_ASSESSMENT_RESOURCES = \"urn:resourcetype:reviewResource\";\nexport const RESOURCE_TYPE_SOURCE_MATERIAL = \"urn:resourcetype:SourceMaterial\";\nexport const RESOURCE_TYPE_CONCEPT = \"urn:resourcetype:concept\";\n\nexport const contentTypeMapping: Record<string, string> = {\n [RESOURCE_TYPE_LEARNING_PATH]: LEARNING_PATH,\n [RESOURCE_TYPE_SUBJECT_MATERIAL]: SUBJECT_MATERIAL,\n [RESOURCE_TYPE_TASKS_AND_ACTIVITIES]: TASKS_AND_ACTIVITIES,\n [RESOURCE_TYPE_ASSESSMENT_RESOURCES]: ASSESSMENT_RESOURCES,\n [RESOURCE_TYPE_SOURCE_MATERIAL]: SOURCE_MATERIAL,\n [RESOURCE_TYPE_CONCEPT]: CONCEPT,\n [MULTIDISCIPLINARY]: MULTIDISCIPLINARY,\n [TOPIC]: TOPIC,\n [FRONTPAGE_ARTICLE]: FRONTPAGE_ARTICLE,\n default: SUBJECT_MATERIAL,\n};\n\nexport const resourceEmbedTypeMapping: Record<string, string> = {\n image: \"image\",\n video: \"video\",\n concept: \"concept\",\n audio: \"audio\",\n podcast: \"podcast\",\n gloss: \"gloss\",\n};\n"],"mappings":";;;;;;;;AAQA,MAAa,mBAAmB;AAChC,MAAa,uBAAuB;AACpC,MAAa,uBAAuB;AACpC,MAAa,UAAU;AACvB,MAAa,kBAAkB;AAC/B,MAAa,gBAAgB;AAC7B,MAAa,QAAQ;AACrB,MAAa,oBAAoB;AACjC,MAAa,UAAU;AACvB,MAAa,WAAW;AACxB,MAAa,UAAU;AACvB,MAAa,QAAQ;AACrB,MAAa,QAAQ;AACrB,MAAa,QAAQ;AACrB,MAAa,UAAU;AACvB,MAAa,QAAQ;AACrB,MAAa,YAAY;AACzB,MAAa,iBAAiB;AAC9B,MAAa,oBAAoB;AAEjC,MAAa,eAAe;CAC1B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD;AAED,MAAa,8BAA8B;AAC3C,MAAa,iCAAiC;AAC9C,MAAa,qCAAqC;AAClD,MAAa,qCAAqC;AAClD,MAAa,gCAAgC;AAC7C,MAAa,wBAAwB;AAErC,MAAaA,qBAA6C;EACvD,8BAA8B;EAC9B,iCAAiC;EACjC,qCAAqC;EACrC,qCAAqC;EACrC,gCAAgC;EAChC,wBAAwB;EACxB,oBAAoB;EACpB,QAAQ;EACR,oBAAoB;CACrB,SAAS;CACV;AAED,MAAaC,2BAAmD;CAC9D,OAAO;CACP,OAAO;CACP,SAAS;CACT,OAAO;CACP,SAAS;CACT,OAAO;CACR"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { __export } from "../_virtual/rolldown_runtime.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/model/SubjectCategories.ts
|
|
4
|
-
var SubjectCategories_exports = {
|
|
5
|
-
__export(SubjectCategories_exports, {
|
|
4
|
+
var SubjectCategories_exports = /* @__PURE__ */ __export({
|
|
6
5
|
ACTIVE_SUBJECTS: () => ACTIVE_SUBJECTS,
|
|
7
6
|
ARCHIVE_SUBJECTS: () => ARCHIVE_SUBJECTS,
|
|
8
7
|
BETA_SUBJECTS: () => BETA_SUBJECTS,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SubjectCategories.mjs","names":[],"sources":["../../src/model/SubjectCategories.ts"],"sourcesContent":["/**\n * Copyright (c) 2021-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nexport const ACTIVE_SUBJECTS = \"active\";\nexport const ARCHIVE_SUBJECTS = \"archive\";\nexport const BETA_SUBJECTS = \"beta\";\nexport const OTHER = \"otherResources\";\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"SubjectCategories.mjs","names":[],"sources":["../../src/model/SubjectCategories.ts"],"sourcesContent":["/**\n * Copyright (c) 2021-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nexport const ACTIVE_SUBJECTS = \"active\";\nexport const ARCHIVE_SUBJECTS = \"archive\";\nexport const BETA_SUBJECTS = \"beta\";\nexport const OTHER = \"otherResources\";\n"],"mappings":";;;;;;;;;;;;;;;;AAQA,MAAa,kBAAkB;AAC/B,MAAa,mBAAmB;AAChC,MAAa,gBAAgB;AAC7B,MAAa,QAAQ"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { __export } from "../_virtual/rolldown_runtime.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/model/SubjectTypes.ts
|
|
4
|
-
var SubjectTypes_exports = {
|
|
5
|
-
__export(SubjectTypes_exports, {
|
|
4
|
+
var SubjectTypes_exports = /* @__PURE__ */ __export({
|
|
6
5
|
ARCHIVE_SUBJECT: () => ARCHIVE_SUBJECT,
|
|
7
6
|
BETA_SUBJECT: () => BETA_SUBJECT,
|
|
8
7
|
RESOURCE_COLLECTION: () => RESOURCE_COLLECTION,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SubjectTypes.mjs","names":[],"sources":["../../src/model/SubjectTypes.ts"],"sourcesContent":["/**\n * Copyright (c) 2022-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nexport const BETA_SUBJECT = \"betaSubject\";\nexport const SUBJECT = \"subject\";\nexport const RESOURCE_COLLECTION = \"resourceCollection\";\nexport const ARCHIVE_SUBJECT = \"archiveSubject\";\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"SubjectTypes.mjs","names":[],"sources":["../../src/model/SubjectTypes.ts"],"sourcesContent":["/**\n * Copyright (c) 2022-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nexport const BETA_SUBJECT = \"betaSubject\";\nexport const SUBJECT = \"subject\";\nexport const RESOURCE_COLLECTION = \"resourceCollection\";\nexport const ARCHIVE_SUBJECT = \"archiveSubject\";\n"],"mappings":";;;;;;;;;;;;;;;;AAQA,MAAa,eAAe;AAC5B,MAAa,UAAU;AACvB,MAAa,sBAAsB;AACnC,MAAa,kBAAkB"}
|
package/es/model/WordClass.mjs
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { __export } from "../_virtual/rolldown_runtime.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/model/WordClass.ts
|
|
4
|
-
var WordClass_exports = {};
|
|
5
|
-
__export(WordClass_exports, { wordClass: () => wordClass });
|
|
4
|
+
var WordClass_exports = /* @__PURE__ */ __export({ wordClass: () => wordClass });
|
|
6
5
|
/**
|
|
7
6
|
* Copyright (c) 2023-present, NDLA.
|
|
8
7
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WordClass.mjs","names":[],"sources":["../../src/model/WordClass.ts"],"sourcesContent":["/**\n * Copyright (c) 2023-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nexport const wordClass = {\n adjective: \"adjective\",\n adverb: \"adverb\",\n properNoun: \"proper-noun\",\n auxiliary: \"auxiliary\",\n complement: \"complement\",\n conjunction: \"conjunction\",\n coverb: \"coverb\",\n determiner: \"determiner\",\n interjection: \"interjection\",\n quantifier: \"quantifier\",\n marker: \"marker\",\n modalVerb: \"modal-verb\",\n measureWord: \"measure-word\",\n noun: \"noun\",\n \"noun-zh\": \"noun-zh\",\n nounPhrase: \"noun-phrase\",\n onomatopoeia: \"onomatopoeia\",\n particle: \"particle\",\n demonstrative: \"demonstrative\",\n personalPronoun: \"personal-pronoun\",\n preposition: \"preposition\",\n pronoun: \"pronoun\",\n questionWord: \"question-word\",\n locationWord: \"location-word\",\n suffix: \"suffix\",\n numeral: \"numeral\",\n timeWord: \"time word\",\n timeExpression: \"time-expression\",\n stativeVerb: \"stative-verb\",\n subordinatingConjunction: \"subordinating-conjunction\",\n exclamationWord: \"exclamation-word\",\n expression: \"expression\",\n verb: \"verb\",\n verbComplement: \"verb-complement\",\n verbObject: \"verb-object\",\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"WordClass.mjs","names":[],"sources":["../../src/model/WordClass.ts"],"sourcesContent":["/**\n * Copyright (c) 2023-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nexport const wordClass = {\n adjective: \"adjective\",\n adverb: \"adverb\",\n properNoun: \"proper-noun\",\n auxiliary: \"auxiliary\",\n complement: \"complement\",\n conjunction: \"conjunction\",\n coverb: \"coverb\",\n determiner: \"determiner\",\n interjection: \"interjection\",\n quantifier: \"quantifier\",\n marker: \"marker\",\n modalVerb: \"modal-verb\",\n measureWord: \"measure-word\",\n noun: \"noun\",\n \"noun-zh\": \"noun-zh\",\n nounPhrase: \"noun-phrase\",\n onomatopoeia: \"onomatopoeia\",\n particle: \"particle\",\n demonstrative: \"demonstrative\",\n personalPronoun: \"personal-pronoun\",\n preposition: \"preposition\",\n pronoun: \"pronoun\",\n questionWord: \"question-word\",\n locationWord: \"location-word\",\n suffix: \"suffix\",\n numeral: \"numeral\",\n timeWord: \"time word\",\n timeExpression: \"time-expression\",\n stativeVerb: \"stative-verb\",\n subordinatingConjunction: \"subordinating-conjunction\",\n exclamationWord: \"exclamation-word\",\n expression: \"expression\",\n verb: \"verb\",\n verbComplement: \"verb-complement\",\n verbObject: \"verb-object\",\n};\n"],"mappings":";;;;;;;;;;;AAQA,MAAa,YAAY;CACvB,WAAW;CACX,QAAQ;CACR,YAAY;CACZ,WAAW;CACX,YAAY;CACZ,aAAa;CACb,QAAQ;CACR,YAAY;CACZ,cAAc;CACd,YAAY;CACZ,QAAQ;CACR,WAAW;CACX,aAAa;CACb,MAAM;CACN,WAAW;CACX,YAAY;CACZ,cAAc;CACd,UAAU;CACV,eAAe;CACf,iBAAiB;CACjB,aAAa;CACb,SAAS;CACT,cAAc;CACd,cAAc;CACd,QAAQ;CACR,SAAS;CACT,UAAU;CACV,gBAAgB;CAChB,aAAa;CACb,0BAA0B;CAC1B,iBAAiB;CACjB,YAAY;CACZ,MAAM;CACN,gBAAgB;CAChB,YAAY;CACb"}
|
package/es/model/index.mjs
CHANGED
package/es/model/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":[],"sources":["../../src/model/index.ts"],"sourcesContent":["/**\n * Copyright (c) 2017-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport { contentTypes, contentTypeMapping, resourceEmbedTypeMapping } from \"./ContentType\";\nimport * as subjectCategories from \"./SubjectCategories\";\nimport * as subjectTypes from \"./SubjectTypes\";\nimport * as wordClass from \"./WordClass\";\n\nconst model = {\n contentTypes,\n subjectCategories,\n subjectTypes,\n contentTypeMapping,\n resourceEmbedTypeMapping,\n wordClass,\n};\n\nexport default model;\n"],"mappings":";;;;;;AAaA,MAAM,QAAQ;CACZ;CACA;CACA;CACA;CACA;CACA;
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../../src/model/index.ts"],"sourcesContent":["/**\n * Copyright (c) 2017-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport { contentTypes, contentTypeMapping, resourceEmbedTypeMapping } from \"./ContentType\";\nimport * as subjectCategories from \"./SubjectCategories\";\nimport * as subjectTypes from \"./SubjectTypes\";\nimport * as wordClass from \"./WordClass\";\n\nconst model = {\n contentTypes,\n subjectCategories,\n subjectTypes,\n contentTypeMapping,\n resourceEmbedTypeMapping,\n wordClass,\n};\n\nexport default model;\n"],"mappings":";;;;;;AAaA,MAAM,QAAQ;CACZ;CACA;CACA;CACA;CACA;CACA;CACD;AAED,oBAAe"}
|
|
@@ -3,12 +3,11 @@ import { getLicenseByAbbreviation, isCreativeCommonsLicense } from "@ndla/licens
|
|
|
3
3
|
//#region src/utils/licenseAttributes.ts
|
|
4
4
|
const licenseAttributes = (license, lang, url) => {
|
|
5
5
|
const licenseAbbr = getLicenseByAbbreviation(license ? license : "", lang);
|
|
6
|
-
|
|
6
|
+
return isCreativeCommonsLicense(licenseAbbr.rights) ? {
|
|
7
7
|
"xmlns:cc": "https://creativecommons.org/ns#",
|
|
8
8
|
"xmlns:dct": "http://purl.org/dc/terms/",
|
|
9
9
|
about: url ?? void 0
|
|
10
10
|
} : {};
|
|
11
|
-
return licenseProps;
|
|
12
11
|
};
|
|
13
12
|
|
|
14
13
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"licenseAttributes.mjs","names":[
|
|
1
|
+
{"version":3,"file":"licenseAttributes.mjs","names":[],"sources":["../../src/utils/licenseAttributes.ts"],"sourcesContent":["/**\n * Copyright (c) 2024-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport { getLicenseByAbbreviation, isCreativeCommonsLicense } from \"@ndla/licenses\";\n\nexport const licenseAttributes = (license: string | undefined, lang: string | undefined, url: string | undefined) => {\n const licenseAbbr = getLicenseByAbbreviation(license ? license : \"\", lang);\n\n const licenseProps = isCreativeCommonsLicense(licenseAbbr.rights)\n ? {\n \"xmlns:cc\": \"https://creativecommons.org/ns#\",\n \"xmlns:dct\": \"http://purl.org/dc/terms/\",\n about: url ?? undefined,\n }\n : {};\n\n return licenseProps;\n};\n"],"mappings":";;;AAUA,MAAa,qBAAqB,SAA6B,MAA0B,QAA4B;CACnH,MAAM,cAAc,yBAAyB,UAAU,UAAU,IAAI,KAAK;AAU1E,QARqB,yBAAyB,YAAY,OAAO,GAC7D;EACE,YAAY;EACZ,aAAa;EACb,OAAO,OAAO;EACf,GACD,EAAE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"relativeUrl.mjs","names":[
|
|
1
|
+
{"version":3,"file":"relativeUrl.mjs","names":[],"sources":["../../src/utils/relativeUrl.ts"],"sourcesContent":["/**\n * Copyright (c) 2023-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nconst supportedTranslationLanguages = [\"nb\", \"nn\", \"en\", \"se\"] as const;\n\nconst ENV_REGEX = /(staging|test)\\.?/;\nconst LANGUAGE_REGEX = new RegExp(`^\\\\/((?:${supportedTranslationLanguages.join(\"|\")})(?:$|\\\\/))`, \"\");\n\nconst NDLA_URL = /(.*\\.)?ndla.no.*/;\nconst REPLACE_WWW = /^www\\./;\n\nexport const getPossiblyRelativeUrl = (url: string, path?: string) => {\n if (!path) return url;\n // If url is a mailto link, return url as is.\n if (url.startsWith(\"mailto:\")) return url;\n // If not on NDLA, or if url is not a NDLA url, return url as is\n if (!NDLA_URL.test(url) || !NDLA_URL.test(path)) return url;\n //Remove environment info\n const urlObj = new URL(url.replace(ENV_REGEX, \"\"));\n const pathObj = new URL(path.replace(ENV_REGEX, \"\"));\n // If the host is the same, return the relative path\n if (urlObj.hostname.replace(REPLACE_WWW, \"\") === pathObj.hostname.replace(REPLACE_WWW, \"\")) {\n // Replace the language part of the url with the language part of the path\n // Keep the search params if they exist\n const search = urlObj.search;\n // If the path language part does not exist, remove it.\n const urlMatch = urlObj.pathname.match(LANGUAGE_REGEX);\n const pathMatch = pathObj.pathname.match(LANGUAGE_REGEX);\n if (urlMatch?.[1] && urlMatch?.[1] !== pathMatch?.[1]) {\n return `${urlObj.pathname.replace(urlMatch[1], pathMatch?.[1] || \"\")}${search}`;\n }\n\n return `${urlObj.pathname}${search}`;\n }\n return url;\n};\n"],"mappings":";;;;;;;;AAQA,MAAM,gCAAgC;CAAC;CAAM;CAAM;CAAM;CAAK;AAE9D,MAAM,YAAY;AAClB,MAAM,iBAAiB,IAAI,OAAO,WAAW,8BAA8B,KAAK,IAAI,CAAC,cAAc,GAAG;AAEtG,MAAM,WAAW;AACjB,MAAM,cAAc;AAEpB,MAAa,0BAA0B,KAAa,SAAkB;AACpE,KAAI,CAAC,KAAM,QAAO;AAElB,KAAI,IAAI,WAAW,UAAU,CAAE,QAAO;AAEtC,KAAI,CAAC,SAAS,KAAK,IAAI,IAAI,CAAC,SAAS,KAAK,KAAK,CAAE,QAAO;CAExD,MAAM,SAAS,IAAI,IAAI,IAAI,QAAQ,WAAW,GAAG,CAAC;CAClD,MAAM,UAAU,IAAI,IAAI,KAAK,QAAQ,WAAW,GAAG,CAAC;AAEpD,KAAI,OAAO,SAAS,QAAQ,aAAa,GAAG,KAAK,QAAQ,SAAS,QAAQ,aAAa,GAAG,EAAE;EAG1F,MAAM,SAAS,OAAO;EAEtB,MAAM,WAAW,OAAO,SAAS,MAAM,eAAe;EACtD,MAAM,YAAY,QAAQ,SAAS,MAAM,eAAe;AACxD,MAAI,WAAW,MAAM,WAAW,OAAO,YAAY,GACjD,QAAO,GAAG,OAAO,SAAS,QAAQ,SAAS,IAAI,YAAY,MAAM,GAAG,GAAG;AAGzE,SAAO,GAAG,OAAO,WAAW;;AAE9B,QAAO"}
|
package/lib/Article/Article.js
CHANGED
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.js');
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
const require_ContentTypeBadge = require('../ContentTypeBadge/ContentTypeBadge.js');
|
|
3
|
+
const require_ArticleByline = require('./ArticleByline.js');
|
|
4
|
+
let react = require("react");
|
|
5
|
+
react = require_rolldown_runtime.__toESM(react);
|
|
6
|
+
let __ndla_primitives = require("@ndla/primitives");
|
|
7
|
+
__ndla_primitives = require_rolldown_runtime.__toESM(__ndla_primitives);
|
|
8
|
+
let __ndla_styled_system_jsx = require("@ndla/styled-system/jsx");
|
|
9
|
+
__ndla_styled_system_jsx = require_rolldown_runtime.__toESM(__ndla_styled_system_jsx);
|
|
10
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
11
|
+
react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
|
|
12
|
+
let __ark_ui_react = require("@ark-ui/react");
|
|
13
|
+
__ark_ui_react = require_rolldown_runtime.__toESM(__ark_ui_react);
|
|
14
|
+
let __ndla_styled_system_css = require("@ndla/styled-system/css");
|
|
15
|
+
__ndla_styled_system_css = require_rolldown_runtime.__toESM(__ndla_styled_system_css);
|
|
10
16
|
|
|
11
17
|
//#region src/Article/Article.tsx
|
|
12
18
|
const StyledArticleContent = (0, __ndla_styled_system_jsx.styled)(__ark_ui_react.ark.section, {}, { baseComponent: true });
|
|
@@ -59,7 +65,11 @@ const ArticleFooter = (0, __ndla_styled_system_jsx.styled)(__ark_ui_react.ark.fo
|
|
|
59
65
|
width: "100%",
|
|
60
66
|
"& > :is(:last-child)": { paddingBlockEnd: "5xlarge" }
|
|
61
67
|
} }, { baseComponent: true });
|
|
62
|
-
const
|
|
68
|
+
const InfoWrapper = (0, __ndla_styled_system_jsx.styled)("div", { base: {
|
|
69
|
+
display: "flex",
|
|
70
|
+
alignItems: "center",
|
|
71
|
+
justifyContent: "space-between",
|
|
72
|
+
gap: "small",
|
|
63
73
|
width: "100%",
|
|
64
74
|
minHeight: "xxlarge"
|
|
65
75
|
} });
|
|
@@ -71,16 +81,10 @@ const StyledWrapper = (0, __ndla_styled_system_jsx.styled)("div", { base: {
|
|
|
71
81
|
} });
|
|
72
82
|
const ArticleTitle = ({ contentType, heartButton, title, lang, id, introduction, contentTypeLabel, competenceGoals, disclaimer }) => {
|
|
73
83
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(ArticleHeader, { children: [
|
|
74
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(ArticleHGroup, { children: [(!!contentType || !!heartButton) && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
gap: "small",
|
|
79
|
-
children: [!!contentType && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require__Users_jec_code_ndla_frontend_packages_packages_ndla_ui_src_ContentTypeBadge_ContentTypeBadge.ContentTypeBadge, {
|
|
80
|
-
contentType,
|
|
81
|
-
children: contentTypeLabel
|
|
82
|
-
}), heartButton]
|
|
83
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ndla_primitives.Heading, {
|
|
84
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(ArticleHGroup, { children: [(!!contentType || !!heartButton) && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(InfoWrapper, { children: [!!contentType && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ContentTypeBadge.ContentTypeBadge, {
|
|
85
|
+
contentType,
|
|
86
|
+
children: contentTypeLabel
|
|
87
|
+
}), heartButton] }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ndla_primitives.Heading, {
|
|
84
88
|
textStyle: "heading.medium",
|
|
85
89
|
id,
|
|
86
90
|
lang,
|
|
@@ -113,7 +117,7 @@ const Article = ({ article, contentType, licenseBox, children, competenceGoals,
|
|
|
113
117
|
disclaimer
|
|
114
118
|
}),
|
|
115
119
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(ArticleContent, { children: content }),
|
|
116
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(ArticleFooter, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
120
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(ArticleFooter, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ArticleByline.ArticleByline, {
|
|
117
121
|
lang,
|
|
118
122
|
footnotes: footNotes,
|
|
119
123
|
authors,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Article.js","names":["ark","
|
|
1
|
+
{"version":3,"file":"Article.js","names":["ark","ContentTypeBadge","Heading","Text","ArticleByline"],"sources":["../../src/Article/Article.tsx"],"sourcesContent":["/**\n * Copyright (c) 2016-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport { type ComponentPropsWithRef, type ReactNode, forwardRef } from \"react\";\nimport { ark, type HTMLArkProps } from \"@ark-ui/react\";\nimport { Heading, Text } from \"@ndla/primitives\";\nimport { cx } from \"@ndla/styled-system/css\";\nimport { styled } from \"@ndla/styled-system/jsx\";\nimport type { StyledProps } from \"@ndla/styled-system/types\";\nimport { ArticleByline } from \"./ArticleByline\";\nimport { ContentTypeBadge, type ContentType } from \"../ContentTypeBadge/ContentTypeBadge\";\nimport type { Article as ArticleType } from \"../types\";\n\nconst StyledArticleContent = styled(ark.section, {}, { baseComponent: true });\n\nexport const ArticleContent = forwardRef<HTMLElement, HTMLArkProps<\"div\"> & StyledProps>(\n ({ className, ...props }, ref) => (\n <StyledArticleContent className={cx(\"ndla-article\", className)} {...props} ref={ref} />\n ),\n);\n\nconst StyledArticleWrapper = styled(\n ark.article,\n {\n base: {\n background: \"background.default\",\n display: \"flex\",\n flexDirection: \"column\",\n color: \"text.default\",\n alignItems: \"center\",\n width: \"100%\",\n overflowWrap: \"break-word\",\n position: \"relative\",\n \"& mjx-stretchy-v > mjx-ext > mjx-c\": {\n transform: \"scaleY(100) translateY(0.075em)\",\n },\n _after: {\n content: \"\",\n display: \"table\",\n clear: \"both\",\n },\n },\n },\n { baseComponent: true },\n);\n\nexport const ArticleWrapper = forwardRef<HTMLElement, ComponentPropsWithRef<\"article\"> & StyledProps>((props, ref) => (\n <StyledArticleWrapper data-ndla-article=\"\" ref={ref} {...props} />\n));\n\nexport const ArticleHGroup = styled(\n ark.hgroup,\n {\n base: {\n display: \"flex\",\n width: \"100%\",\n flexDirection: \"column\",\n alignItems: \"flex-start\",\n \"& h1\": {\n overflowWrap: \"anywhere\",\n },\n },\n },\n { baseComponent: true },\n);\n\nexport const ArticleHeader = styled(\n ark.header,\n {\n base: {\n display: \"flex\",\n flexDirection: \"column\",\n gap: \"medium\",\n alignItems: \"flex-start\",\n width: \"100%\",\n paddingBlockStart: \"xxlarge\",\n overflowWrap: \"anywhere\",\n },\n },\n { baseComponent: true },\n);\n\nexport const ArticleFooter = styled(\n ark.footer,\n {\n base: {\n display: \"flex\",\n flexDirection: \"column\",\n gap: \"xxlarge\",\n width: \"100%\",\n \"& > :is(:last-child)\": {\n paddingBlockEnd: \"5xlarge\",\n },\n },\n },\n { baseComponent: true },\n);\n\nconst InfoWrapper = styled(\"div\", {\n base: {\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"space-between\",\n gap: \"small\",\n width: \"100%\",\n minHeight: \"xxlarge\",\n },\n});\n\nconst StyledWrapper = styled(\"div\", {\n base: {\n display: \"flex\",\n gap: \"small\",\n flexWrap: \"wrap\",\n alignItems: \"center\",\n },\n});\n\ninterface ArticleTitleProps {\n heartButton?: ReactNode;\n contentType?: ContentType;\n contentTypeLabel?: ReactNode;\n competenceGoals?: ReactNode;\n id: string;\n lang?: string;\n title?: ReactNode;\n introduction?: ReactNode;\n disclaimer?: ReactNode;\n}\n\nexport const ArticleTitle = ({\n contentType,\n heartButton,\n title,\n lang,\n id,\n introduction,\n contentTypeLabel,\n competenceGoals,\n disclaimer,\n}: ArticleTitleProps) => {\n return (\n <ArticleHeader>\n <ArticleHGroup>\n {(!!contentType || !!heartButton) && (\n <InfoWrapper>\n {!!contentType && <ContentTypeBadge contentType={contentType}>{contentTypeLabel}</ContentTypeBadge>}\n {heartButton}\n </InfoWrapper>\n )}\n <Heading textStyle=\"heading.medium\" id={id} lang={lang} property=\"dct:title\">\n {title}\n </Heading>\n </ArticleHGroup>\n {!!introduction && (\n <Text lang={lang} textStyle=\"body.xlarge\" asChild consumeCss>\n <div>{introduction}</div>\n </Text>\n )}\n <StyledWrapper>\n {competenceGoals}\n {disclaimer}\n </StyledWrapper>\n </ArticleHeader>\n );\n};\n\ninterface Props {\n heartButton?: ReactNode;\n article: ArticleType;\n licenseBox?: ReactNode;\n contentType?: ContentType;\n contentTypeLabel?: ReactNode;\n children?: ReactNode;\n competenceGoals?: ReactNode;\n id: string;\n lang?: string;\n disclaimer?: ReactNode;\n}\n\nexport const Article = ({\n article,\n contentType,\n licenseBox,\n children,\n competenceGoals,\n contentTypeLabel,\n id,\n heartButton,\n lang,\n disclaimer,\n}: Props) => {\n const { title, introduction, published, content, footNotes, copyright } = article;\n\n const authors =\n copyright?.creators.length || copyright?.rightsholders.length ? copyright.creators : copyright?.processors;\n\n return (\n <ArticleWrapper>\n <ArticleTitle\n id={id}\n contentType={contentType}\n heartButton={heartButton}\n title={title}\n introduction={introduction}\n competenceGoals={competenceGoals}\n lang={lang}\n contentTypeLabel={contentTypeLabel}\n disclaimer={disclaimer}\n />\n <ArticleContent>{content}</ArticleContent>\n <ArticleFooter>\n <ArticleByline\n lang={lang}\n footnotes={footNotes}\n authors={authors}\n suppliers={copyright?.rightsholders}\n published={published}\n licenseBox={licenseBox}\n />\n {children}\n </ArticleFooter>\n </ArticleWrapper>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;AAkBA,MAAM,4DAA8BA,mBAAI,SAAS,EAAE,EAAE,EAAE,eAAe,MAAM,CAAC;AAE7E,MAAa,wCACV,EAAE,UAAW,GAAG,SAAS,QACxB,2CAAC;CAAqB,4CAAc,gBAAgB,UAAU;CAAE,GAAI;CAAY;EAAO,CAE1F;AAED,MAAM,4DACJA,mBAAI,SACJ,EACE,MAAM;CACJ,YAAY;CACZ,SAAS;CACT,eAAe;CACf,OAAO;CACP,YAAY;CACZ,OAAO;CACP,cAAc;CACd,UAAU;CACV,sCAAsC,EACpC,WAAW,mCACZ;CACD,QAAQ;EACN,SAAS;EACT,SAAS;EACT,OAAO;EACR;CACF,EACF,EACD,EAAE,eAAe,MAAM,CACxB;AAED,MAAa,wCAA0F,OAAO,QAC5G,2CAAC;CAAqB,qBAAkB;CAAQ;CAAK,GAAI;EAAS,CAClE;AAEF,MAAa,qDACXA,mBAAI,QACJ,EACE,MAAM;CACJ,SAAS;CACT,OAAO;CACP,eAAe;CACf,YAAY;CACZ,QAAQ,EACN,cAAc,YACf;CACF,EACF,EACD,EAAE,eAAe,MAAM,CACxB;AAED,MAAa,qDACXA,mBAAI,QACJ,EACE,MAAM;CACJ,SAAS;CACT,eAAe;CACf,KAAK;CACL,YAAY;CACZ,OAAO;CACP,mBAAmB;CACnB,cAAc;CACf,EACF,EACD,EAAE,eAAe,MAAM,CACxB;AAED,MAAa,qDACXA,mBAAI,QACJ,EACE,MAAM;CACJ,SAAS;CACT,eAAe;CACf,KAAK;CACL,OAAO;CACP,wBAAwB,EACtB,iBAAiB,WAClB;CACF,EACF,EACD,EAAE,eAAe,MAAM,CACxB;AAED,MAAM,mDAAqB,OAAO,EAChC,MAAM;CACJ,SAAS;CACT,YAAY;CACZ,gBAAgB;CAChB,KAAK;CACL,OAAO;CACP,WAAW;CACZ,EACF,CAAC;AAEF,MAAM,qDAAuB,OAAO,EAClC,MAAM;CACJ,SAAS;CACT,KAAK;CACL,UAAU;CACV,YAAY;CACb,EACF,CAAC;AAcF,MAAa,gBAAgB,EAC3B,aACA,aACA,OACA,MACA,IACA,cACA,kBACA,iBACA,iBACuB;AACvB,QACE,4CAAC;EACC,4CAAC,6BACG,CAAC,CAAC,eAAe,CAAC,CAAC,gBACnB,4CAAC,0BACE,CAAC,CAAC,eAAe,2CAACC;GAA8B;aAAc;IAAoC,EAClG,eACW,EAEhB,2CAACC;GAAQ,WAAU;GAAqB;GAAU;GAAM,UAAS;aAC9D;IACO,IACI;EACf,CAAC,CAAC,gBACD,2CAACC;GAAW;GAAM,WAAU;GAAc;GAAQ;aAChD,2CAAC,mBAAK,eAAmB;IACpB;EAET,4CAAC,4BACE,iBACA,cACa;KACF;;AAiBpB,MAAa,WAAW,EACtB,SACA,aACA,YACA,UACA,iBACA,kBACA,IACA,aACA,MACA,iBACW;CACX,MAAM,EAAE,OAAO,cAAc,WAAW,SAAS,WAAW,cAAc;CAE1E,MAAM,UACJ,WAAW,SAAS,UAAU,WAAW,cAAc,SAAS,UAAU,WAAW,WAAW;AAElG,QACE,4CAAC;EACC,2CAAC;GACK;GACS;GACA;GACN;GACO;GACG;GACX;GACY;GACN;IACZ;EACF,2CAAC,4BAAgB,UAAyB;EAC1C,4CAAC,4BACC,2CAACC;GACO;GACN,WAAW;GACF;GACT,WAAW,WAAW;GACX;GACC;IACZ,EACD,YACa;KACD"}
|
|
@@ -1,13 +1,21 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.js');
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
2
|
+
const require_ArticleFootNotes = require('./ArticleFootNotes.js');
|
|
3
|
+
let react = require("react");
|
|
4
|
+
react = require_rolldown_runtime.__toESM(react);
|
|
5
|
+
let __ndla_primitives = require("@ndla/primitives");
|
|
6
|
+
__ndla_primitives = require_rolldown_runtime.__toESM(__ndla_primitives);
|
|
7
|
+
let __ndla_styled_system_jsx = require("@ndla/styled-system/jsx");
|
|
8
|
+
__ndla_styled_system_jsx = require_rolldown_runtime.__toESM(__ndla_styled_system_jsx);
|
|
9
|
+
let react_i18next = require("react-i18next");
|
|
10
|
+
react_i18next = require_rolldown_runtime.__toESM(react_i18next);
|
|
11
|
+
let __ndla_icons = require("@ndla/icons");
|
|
12
|
+
__ndla_icons = require_rolldown_runtime.__toESM(__ndla_icons);
|
|
13
|
+
let __ndla_safelink = require("@ndla/safelink");
|
|
14
|
+
__ndla_safelink = require_rolldown_runtime.__toESM(__ndla_safelink);
|
|
15
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
16
|
+
react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
|
|
17
|
+
let react_router = require("react-router");
|
|
18
|
+
react_router = require_rolldown_runtime.__toESM(react_router);
|
|
11
19
|
|
|
12
20
|
//#region src/Article/ArticleByline.tsx
|
|
13
21
|
const Wrapper = (0, __ndla_styled_system_jsx.styled)("div", { base: {
|
|
@@ -93,7 +101,7 @@ const ArticleByline = ({ lang, authors = [], suppliers = [], footnotes, licenseB
|
|
|
93
101
|
}), !!footnotes?.length && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ArticleBylineAccordionItem, {
|
|
94
102
|
value: footnotesAccordionId,
|
|
95
103
|
accordionTitle: t("article.footnotes"),
|
|
96
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
104
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ArticleFootNotes.ArticleFootNotes, { footNotes: footnotes })
|
|
97
105
|
})]
|
|
98
106
|
})] });
|
|
99
107
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ArticleByline.js","names":["
|
|
1
|
+
{"version":3,"file":"ArticleByline.js","names":["AccordionRoot","SafeLink","ArticleFootNotes","AccordionItem","Heading","AccordionItemTrigger","AccordionItemIndicator","ArrowDownShortLine","AccordionItemContent"],"sources":["../../src/Article/ArticleByline.tsx"],"sourcesContent":["/**\n * Copyright (c) 2020-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport { type ReactNode, forwardRef, useCallback, useEffect, useState } from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { useLocation } from \"react-router\";\nimport { ArrowDownShortLine } from \"@ndla/icons\";\nimport {\n AccordionItem,\n AccordionItemContent,\n AccordionItemIndicator,\n type AccordionItemProps,\n AccordionItemTrigger,\n AccordionRoot,\n Heading,\n} from \"@ndla/primitives\";\nimport { SafeLink } from \"@ndla/safelink\";\nimport { styled } from \"@ndla/styled-system/jsx\";\nimport { ArticleFootNotes } from \"./ArticleFootNotes\";\nimport type { FootNote } from \"../types\";\n\nconst Wrapper = styled(\"div\", {\n base: {\n // TODO: Figure out if we want to remove this margin. It's only here to add some gap between the article content and the byline.\n marginBlockStart: \"medium\",\n paddingBlockStart: \"xsmall\",\n borderTop: \"1px solid\",\n borderColor: \"stroke.subtle\",\n },\n});\n\nconst TextWrapper = styled(\"div\", {\n base: {\n display: \"flex\",\n flexDirection: \"column\",\n gap: \"3xsmall\",\n width: \"100%\",\n justifyContent: \"space-between\",\n paddingBlock: \"xsmall\",\n textStyle: \"body.medium\",\n '& [data-contributors=\"false\"]': {\n marginInlineStart: \"auto\",\n },\n },\n variants: {\n learningpath: {\n true: {},\n false: {\n tabletWide: {\n flexDirection: \"row\",\n },\n },\n },\n },\n});\n\ntype AuthorProps = {\n name: string;\n};\n\ntype SupplierProps = {\n name: string;\n};\n\ntype Props = {\n lang?: string;\n authors?: AuthorProps[];\n suppliers?: SupplierProps[];\n published?: string;\n licenseBox?: ReactNode;\n footnotes?: FootNote[];\n displayByline?: boolean;\n bylineType?: \"article\" | \"learningPath\" | \"external\";\n bylineSuffix?: ReactNode;\n learningpathCopiedFrom?: string;\n};\n\nfunction formatList(list: SupplierProps[], listFormatter: Intl.ListFormat) {\n return listFormatter.format(list.map((l) => l.name));\n}\n\nconst StyledAccordionRoot = styled(AccordionRoot, {\n base: {\n paddingBlockStart: \"xxlarge\",\n },\n});\n\nconst refRegexp = /note\\d/;\nconst footnotesAccordionId = \"footnotes\";\n\nexport const ArticleByline = ({\n lang,\n authors = [],\n suppliers = [],\n footnotes,\n licenseBox,\n published,\n displayByline = true,\n bylineType = \"article\",\n bylineSuffix,\n learningpathCopiedFrom,\n}: Props) => {\n const { t } = useTranslation();\n const { pathname } = useLocation();\n const [openAccordions, setOpenAccordions] = useState<string[]>([]);\n const accordionItemValue = \"rulesForUse\";\n\n const onHashChange = useCallback(\n (e: HashChangeEvent) => {\n const hash = e.newURL.split(\"#\")[1];\n if (hash?.match(refRegexp) && !openAccordions.includes(footnotesAccordionId)) {\n setOpenAccordions([...openAccordions, footnotesAccordionId]);\n const el = document.getElementById(`#${hash}`);\n el?.click();\n el?.focus();\n }\n },\n [openAccordions],\n );\n\n useEffect(() => {\n setOpenAccordions((prev) => prev.filter((state) => state !== accordionItemValue));\n }, [pathname]);\n\n useEffect(() => {\n window.addEventListener(\"hashchange\", onHashChange);\n return () => window.removeEventListener(\"hashchange\", onHashChange);\n }, [onHashChange]);\n\n const showPrimaryContributors = suppliers.length > 0 || authors.length > 0;\n const listFormatter = new Intl.ListFormat(lang, { style: \"long\", type: \"conjunction\" });\n\n return (\n <Wrapper>\n {!!displayByline && (\n <TextWrapper learningpath={bylineType === \"learningPath\"}>\n {!!showPrimaryContributors && (\n <span>\n {authors.length > 0 &&\n `${t(\"article.authorsLabel\", { context: bylineType })} ${formatList(authors, listFormatter)}. `}\n {suppliers.length > 0 &&\n `${t(\"article.supplierLabel\", { count: suppliers.length })} ${formatList(suppliers, listFormatter)}.`}\n </span>\n )}\n {learningpathCopiedFrom ? (\n <SafeLink to={learningpathCopiedFrom}>{t(`learningPath.copiedFrom`)}</SafeLink>\n ) : null}\n {published ? (\n <div data-contributors={showPrimaryContributors}>\n {t(`${bylineType}.lastUpdated`)} {published}\n </div>\n ) : null}\n {bylineSuffix}\n </TextWrapper>\n )}\n {(!!licenseBox || !!footnotes?.length) && (\n <StyledAccordionRoot\n multiple\n value={openAccordions}\n onValueChange={(details) => setOpenAccordions(details.value)}\n >\n {!!licenseBox && (\n <ArticleBylineAccordionItem value={accordionItemValue} accordionTitle={t(\"article.useContent\")}>\n {licenseBox}\n </ArticleBylineAccordionItem>\n )}\n {!!footnotes?.length && (\n <ArticleBylineAccordionItem value={footnotesAccordionId} accordionTitle={t(\"article.footnotes\")}>\n <ArticleFootNotes footNotes={footnotes} />\n </ArticleBylineAccordionItem>\n )}\n </StyledAccordionRoot>\n )}\n </Wrapper>\n );\n};\n\ninterface ArticleBylineAccordionprops extends AccordionItemProps {\n accordionTitle: ReactNode;\n}\n\nexport const ArticleBylineAccordionItem = forwardRef<HTMLDivElement, ArticleBylineAccordionprops>(\n ({ value, accordionTitle, children, ...props }, ref) => {\n return (\n <AccordionItem value={value} ref={ref} {...props}>\n <Heading asChild consumeCss textStyle=\"label.medium\" fontWeight=\"bold\">\n <h2>\n <AccordionItemTrigger>\n {accordionTitle}\n <AccordionItemIndicator asChild>\n <ArrowDownShortLine />\n </AccordionItemIndicator>\n </AccordionItemTrigger>\n </h2>\n </Heading>\n <AccordionItemContent>{children}</AccordionItemContent>\n </AccordionItem>\n );\n },\n);\n"],"mappings":"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"}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.js');
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
let __ndla_primitives = require("@ndla/primitives");
|
|
3
|
+
__ndla_primitives = require_rolldown_runtime.__toESM(__ndla_primitives);
|
|
4
|
+
let __ndla_styled_system_jsx = require("@ndla/styled-system/jsx");
|
|
5
|
+
__ndla_styled_system_jsx = require_rolldown_runtime.__toESM(__ndla_styled_system_jsx);
|
|
6
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
|
+
react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
|
|
5
8
|
|
|
6
9
|
//#region src/Article/ArticleFootNotes.tsx
|
|
7
10
|
const citeDetailString = (description) => description ? `${description}. ` : "";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ArticleFootNotes.js","names":["
|
|
1
|
+
{"version":3,"file":"ArticleFootNotes.js","names":["Text"],"sources":["../../src/Article/ArticleFootNotes.tsx"],"sourcesContent":["/**\n * Copyright (c) 2017-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport { Text } from \"@ndla/primitives\";\nimport { styled } from \"@ndla/styled-system/jsx\";\nimport type { FootNote as FootNoteType } from \"../types\";\n\nconst citeDetailString = (description: string | undefined) => (description ? `${description}. ` : \"\");\n\ntype FootNoteProps = {\n footNote: FootNoteType;\n};\n\nconst StyledCite = styled(\"cite\", {\n base: {\n display: \"flex\",\n alignItems: \"center\",\n gap: \"xsmall\",\n },\n});\n\nconst FootNote = ({ footNote }: FootNoteProps) => (\n <li>\n <Text id={`note${footNote.ref}`} asChild consumeCss textStyle=\"body.medium\">\n <StyledCite>\n <a href={`#ref${footNote.ref}`} target=\"_self\">\n {footNote.ref}\n </a>\n {`«${footNote.title}». ${footNote.authors.join(\" \")}. ${citeDetailString(footNote.edition)}${citeDetailString(\n footNote.publisher,\n )}${footNote.year}. `}\n {footNote.url ? (\n <a href={footNote.url}>\n {footNote.url}\n {\".\"}\n </a>\n ) : null}\n </StyledCite>\n </Text>\n </li>\n);\n\ntype ArticleFootNotesProps = {\n footNotes: Array<FootNoteType>;\n};\n\nconst FootnoteList = styled(\"ol\", {\n base: {\n display: \"flex\",\n flexDirection: \"column\",\n gap: \"medium\",\n listStyle: \"none\",\n },\n});\n\nexport const ArticleFootNotes = ({ footNotes }: ArticleFootNotesProps) => (\n <FootnoteList>\n {footNotes.map((footNote) => (\n <FootNote key={footNote.ref} footNote={footNote} />\n ))}\n </FootnoteList>\n);\n"],"mappings":";;;;;;;;;AAYA,MAAM,oBAAoB,gBAAqC,cAAc,GAAG,YAAY,MAAM;AAMlG,MAAM,kDAAoB,QAAQ,EAChC,MAAM;CACJ,SAAS;CACT,YAAY;CACZ,KAAK;CACN,EACF,CAAC;AAEF,MAAM,YAAY,EAAE,eAClB,2CAAC,kBACC,2CAACA;CAAK,IAAI,OAAO,SAAS;CAAO;CAAQ;CAAW,WAAU;WAC5D,4CAAC;EACC,2CAAC;GAAE,MAAM,OAAO,SAAS;GAAO,QAAO;aACpC,SAAS;IACR;EACH,IAAI,SAAS,MAAM,KAAK,SAAS,QAAQ,KAAK,IAAI,CAAC,IAAI,iBAAiB,SAAS,QAAQ,GAAG,iBAC3F,SAAS,UACV,GAAG,SAAS,KAAK;EACjB,SAAS,MACR,4CAAC;GAAE,MAAM,SAAS;cACf,SAAS,KACT;IACC,GACF;KACO;EACR,GACJ;AAOP,MAAM,oDAAsB,MAAM,EAChC,MAAM;CACJ,SAAS;CACT,eAAe;CACf,KAAK;CACL,WAAW;CACZ,EACF,CAAC;AAEF,MAAa,oBAAoB,EAAE,gBACjC,2CAAC,0BACE,UAAU,KAAK,aACd,2CAAC,YAAsC,YAAxB,SAAS,IAA2B,CACnD,GACW"}
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.js');
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
const require_Controls = require('./Controls.js');
|
|
3
|
+
const require_SpeechControl = require('./SpeechControl.js');
|
|
4
|
+
let react = require("react");
|
|
5
|
+
react = require_rolldown_runtime.__toESM(react);
|
|
6
|
+
let __ndla_primitives = require("@ndla/primitives");
|
|
7
|
+
__ndla_primitives = require_rolldown_runtime.__toESM(__ndla_primitives);
|
|
8
|
+
let __ndla_styled_system_jsx = require("@ndla/styled-system/jsx");
|
|
9
|
+
__ndla_styled_system_jsx = require_rolldown_runtime.__toESM(__ndla_styled_system_jsx);
|
|
10
|
+
let react_i18next = require("react-i18next");
|
|
11
|
+
react_i18next = require_rolldown_runtime.__toESM(react_i18next);
|
|
12
|
+
let __ndla_safelink = require("@ndla/safelink");
|
|
13
|
+
__ndla_safelink = require_rolldown_runtime.__toESM(__ndla_safelink);
|
|
14
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
15
|
+
react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
|
|
10
16
|
|
|
11
17
|
//#region src/AudioPlayer/AudioPlayer.tsx
|
|
12
18
|
const AudioPlayerWrapper = (0, __ndla_styled_system_jsx.styled)("div", { base: {
|
|
@@ -93,7 +99,7 @@ const AudioPlayer = ({ src, title, subtitle, speech, description, img, textVersi
|
|
|
93
99
|
const [showFullDescription, setShowFullDescription] = (0, react.useState)(false);
|
|
94
100
|
const truncatedDescription = (0, react.useMemo)(() => description?.slice(0, DESCRIPTION_MAX_LENGTH), [description]);
|
|
95
101
|
const textDescriptionId = (0, react.useId)();
|
|
96
|
-
if (speech) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
102
|
+
if (speech) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_SpeechControl.default, {
|
|
97
103
|
src,
|
|
98
104
|
title
|
|
99
105
|
});
|
|
@@ -135,7 +141,7 @@ const AudioPlayer = ({ src, title, subtitle, speech, description, img, textVersi
|
|
|
135
141
|
!!textVersion && !!img && textVersionButton
|
|
136
142
|
]
|
|
137
143
|
})] }),
|
|
138
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
144
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Controls.default, {
|
|
139
145
|
src,
|
|
140
146
|
title
|
|
141
147
|
}),
|
|
@@ -154,5 +160,5 @@ const AudioPlayer = ({ src, title, subtitle, speech, description, img, textVersi
|
|
|
154
160
|
var AudioPlayer_default = AudioPlayer;
|
|
155
161
|
|
|
156
162
|
//#endregion
|
|
157
|
-
exports.
|
|
163
|
+
exports.default = AudioPlayer_default;
|
|
158
164
|
//# sourceMappingURL=AudioPlayer.js.map
|