@ndla/ui 56.0.123-alpha.0 → 56.0.124-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.
Files changed (347) hide show
  1. package/es/Article/Article.js +122 -194
  2. package/es/Article/Article.js.map +1 -0
  3. package/es/Article/ArticleByline.js +121 -170
  4. package/es/Article/ArticleByline.js.map +1 -0
  5. package/es/Article/ArticleFootNotes.js +38 -58
  6. package/es/Article/ArticleFootNotes.js.map +1 -0
  7. package/es/AudioPlayer/AudioPlayer.js +151 -212
  8. package/es/AudioPlayer/AudioPlayer.js.map +1 -0
  9. package/es/AudioPlayer/Controls.js +246 -324
  10. package/es/AudioPlayer/Controls.js.map +1 -0
  11. package/es/AudioPlayer/SpeechControl.js +36 -52
  12. package/es/AudioPlayer/SpeechControl.js.map +1 -0
  13. package/es/AudioPlayer/index.js +7 -9
  14. package/es/AudioPlayer/index.js.map +1 -0
  15. package/es/Breadcrumb/Breadcrumb.js +42 -58
  16. package/es/Breadcrumb/Breadcrumb.js.map +1 -0
  17. package/es/Breadcrumb/BreadcrumbItem.js +33 -59
  18. package/es/Breadcrumb/BreadcrumbItem.js.map +1 -0
  19. package/es/Breadcrumb/HomeBreadcrumb.js +41 -74
  20. package/es/Breadcrumb/HomeBreadcrumb.js.map +1 -0
  21. package/es/Breadcrumb/index.js +8 -10
  22. package/es/Breadcrumb/index.js.map +1 -0
  23. package/es/CampaignBlock/CampaignBlock.js +124 -173
  24. package/es/CampaignBlock/CampaignBlock.js.map +1 -0
  25. package/es/CodeBlock/CodeBlock.js +21 -31
  26. package/es/CodeBlock/CodeBlock.js.map +1 -0
  27. package/es/CodeBlock/codeLanguageOptions.js +112 -82
  28. package/es/CodeBlock/codeLanguageOptions.js.map +1 -0
  29. package/es/Concept/Concept.js +46 -68
  30. package/es/Concept/Concept.js.map +1 -0
  31. package/es/ContactBlock/ContactBlock.js +137 -191
  32. package/es/ContactBlock/ContactBlock.js.map +1 -0
  33. package/es/ContentTypeBadge/ContentTypeBadge.js +38 -47
  34. package/es/ContentTypeBadge/ContentTypeBadge.js.map +1 -0
  35. package/es/ContentTypeBlockQuote/ContentTypeBlockQuote.js +21 -28
  36. package/es/ContentTypeBlockQuote/ContentTypeBlockQuote.js.map +1 -0
  37. package/es/ContentTypeFramedContent/ContentTypeFramedContent.js +21 -28
  38. package/es/ContentTypeFramedContent/ContentTypeFramedContent.js.map +1 -0
  39. package/es/ContentTypeHero/ContentTypeHero.js +36 -47
  40. package/es/ContentTypeHero/ContentTypeHero.js.map +1 -0
  41. package/es/CopyParagraphButton/CopyParagraphButton.js +57 -78
  42. package/es/CopyParagraphButton/CopyParagraphButton.js.map +1 -0
  43. package/es/CopyParagraphButton/index.js +7 -10
  44. package/es/CopyParagraphButton/index.js.map +1 -0
  45. package/es/Embed/AudioEmbed.js +49 -73
  46. package/es/Embed/AudioEmbed.js.map +1 -0
  47. package/es/Embed/BrightcoveEmbed.js +90 -127
  48. package/es/Embed/BrightcoveEmbed.js.map +1 -0
  49. package/es/Embed/CodeEmbed.js +55 -73
  50. package/es/Embed/CodeEmbed.js.map +1 -0
  51. package/es/Embed/ConceptEmbed.js +72 -117
  52. package/es/Embed/ConceptEmbed.js.map +1 -0
  53. package/es/Embed/ConceptInlineTriggerButton.js +39 -44
  54. package/es/Embed/ConceptInlineTriggerButton.js.map +1 -0
  55. package/es/Embed/ContentLinkEmbed.js +29 -49
  56. package/es/Embed/ContentLinkEmbed.js.map +1 -0
  57. package/es/Embed/CopyrightEmbed.js +21 -31
  58. package/es/Embed/CopyrightEmbed.js.map +1 -0
  59. package/es/Embed/EmbedErrorPlaceholder.js +40 -55
  60. package/es/Embed/EmbedErrorPlaceholder.js.map +1 -0
  61. package/es/Embed/EmbedWrapper.js +21 -46
  62. package/es/Embed/EmbedWrapper.js.map +1 -0
  63. package/es/Embed/ExternalEmbed.js +50 -70
  64. package/es/Embed/ExternalEmbed.js.map +1 -0
  65. package/es/Embed/FootnoteEmbed.js +25 -42
  66. package/es/Embed/FootnoteEmbed.js.map +1 -0
  67. package/es/Embed/GlossEmbed.js +49 -77
  68. package/es/Embed/GlossEmbed.js.map +1 -0
  69. package/es/Embed/H5pEmbed.js +35 -58
  70. package/es/Embed/H5pEmbed.js.map +1 -0
  71. package/es/Embed/IframeEmbed.js +65 -89
  72. package/es/Embed/IframeEmbed.js.map +1 -0
  73. package/es/Embed/ImageEmbed.js +167 -225
  74. package/es/Embed/ImageEmbed.js.map +1 -0
  75. package/es/Embed/InlineTriggerButton.js +20 -32
  76. package/es/Embed/InlineTriggerButton.js.map +1 -0
  77. package/es/Embed/RelatedContentEmbed.js +36 -53
  78. package/es/Embed/RelatedContentEmbed.js.map +1 -0
  79. package/es/Embed/UnknownEmbed.js +18 -29
  80. package/es/Embed/UnknownEmbed.js.map +1 -0
  81. package/es/Embed/UuDisclaimerEmbed.js +51 -85
  82. package/es/Embed/UuDisclaimerEmbed.js.map +1 -0
  83. package/es/ErrorMessage/ErrorMessage.js +51 -92
  84. package/es/ErrorMessage/ErrorMessage.js.map +1 -0
  85. package/es/ErrorMessage/index.js +7 -9
  86. package/es/ErrorMessage/index.js.map +1 -0
  87. package/es/FactBox/FactBox.js +114 -170
  88. package/es/FactBox/FactBox.js.map +1 -0
  89. package/es/FactBox/index.js +7 -9
  90. package/es/FactBox/index.js.map +1 -0
  91. package/es/FileList/File.js +70 -95
  92. package/es/FileList/File.js.map +1 -0
  93. package/es/FileList/FileList.js +31 -46
  94. package/es/FileList/FileList.js.map +1 -0
  95. package/es/FileList/PdfFile.js +27 -49
  96. package/es/FileList/PdfFile.js.map +1 -0
  97. package/es/Gloss/Gloss.js +133 -166
  98. package/es/Gloss/Gloss.js.map +1 -0
  99. package/es/Gloss/GlossExample.js +42 -60
  100. package/es/Gloss/GlossExample.js.map +1 -0
  101. package/es/Grid/Grid.js +63 -91
  102. package/es/Grid/Grid.js.map +1 -0
  103. package/es/Grid/GridParallaxItem.js +19 -30
  104. package/es/Grid/GridParallaxItem.js.map +1 -0
  105. package/es/KeyFigure/KeyFigure.js +44 -61
  106. package/es/KeyFigure/KeyFigure.js.map +1 -0
  107. package/es/LicenseByline/EmbedByline.js +126 -206
  108. package/es/LicenseByline/EmbedByline.js.map +1 -0
  109. package/es/LicenseByline/LicenseLink.js +28 -53
  110. package/es/LicenseByline/LicenseLink.js.map +1 -0
  111. package/es/LinkBlock/LinkBlock.js +70 -99
  112. package/es/LinkBlock/LinkBlock.js.map +1 -0
  113. package/es/LinkBlock/LinkBlockSection.js +20 -32
  114. package/es/LinkBlock/LinkBlockSection.js.map +1 -0
  115. package/es/Pitch/Pitch.js +59 -80
  116. package/es/Pitch/Pitch.js.map +1 -0
  117. package/es/RelatedArticleList/RelatedArticleList.js +91 -129
  118. package/es/RelatedArticleList/RelatedArticleList.js.map +1 -0
  119. package/es/RelatedArticleList/index.js +7 -10
  120. package/es/RelatedArticleList/index.js.map +1 -0
  121. package/es/ResourceBox/ResourceBox.js +71 -96
  122. package/es/ResourceBox/ResourceBox.js.map +1 -0
  123. package/es/TagSelector/TagSelector.js +93 -136
  124. package/es/TagSelector/TagSelector.js.map +1 -0
  125. package/es/ZendeskButton/ZendeskButton.js +38 -52
  126. package/es/ZendeskButton/ZendeskButton.js.map +1 -0
  127. package/es/_virtual/rolldown_runtime.js +11 -0
  128. package/es/i18n/formatNestedMessages.js +16 -24
  129. package/es/i18n/formatNestedMessages.js.map +1 -0
  130. package/es/i18n/i18n.js +25 -31
  131. package/es/i18n/i18n.js.map +1 -0
  132. package/es/i18n/useComponentTranslations.js +147 -203
  133. package/es/i18n/useComponentTranslations.js.map +1 -0
  134. package/es/index.js +64 -44
  135. package/es/locale/messages-en.js +435 -459
  136. package/es/locale/messages-en.js.map +1 -0
  137. package/es/locale/messages-nb.js +435 -459
  138. package/es/locale/messages-nb.js.map +1 -0
  139. package/es/locale/messages-nn.js +435 -459
  140. package/es/locale/messages-nn.js.map +1 -0
  141. package/es/locale/messages-se.js +435 -459
  142. package/es/locale/messages-se.js.map +1 -0
  143. package/es/model/ContentType.js +69 -65
  144. package/es/model/ContentType.js.map +1 -0
  145. package/es/model/SubjectCategories.js +23 -10
  146. package/es/model/SubjectCategories.js.map +1 -0
  147. package/es/model/SubjectTypes.js +21 -9
  148. package/es/model/SubjectTypes.js.map +1 -0
  149. package/es/model/WordClass.js +51 -43
  150. package/es/model/WordClass.js.map +1 -0
  151. package/es/model/index.js +16 -18
  152. package/es/model/index.js.map +1 -0
  153. package/es/utils/licenseAttributes.js +15 -17
  154. package/es/utils/licenseAttributes.js.map +1 -0
  155. package/es/utils/relativeUrl.js +21 -32
  156. package/es/utils/relativeUrl.js.map +1 -0
  157. package/lib/Article/Article.js +130 -203
  158. package/lib/Article/Article.js.map +1 -0
  159. package/lib/Article/ArticleByline.js +125 -179
  160. package/lib/Article/ArticleByline.js.map +1 -0
  161. package/lib/Article/ArticleFootNotes.js +39 -65
  162. package/lib/Article/ArticleFootNotes.js.map +1 -0
  163. package/lib/AudioPlayer/AudioPlayer.js +155 -221
  164. package/lib/AudioPlayer/AudioPlayer.js.map +1 -0
  165. package/lib/AudioPlayer/Controls.js +249 -332
  166. package/lib/AudioPlayer/Controls.js.map +1 -0
  167. package/lib/AudioPlayer/SpeechControl.js +39 -60
  168. package/lib/AudioPlayer/SpeechControl.js.map +1 -0
  169. package/lib/AudioPlayer/index.js +7 -15
  170. package/lib/AudioPlayer/index.js.map +1 -0
  171. package/lib/Breadcrumb/Breadcrumb.js +43 -65
  172. package/lib/Breadcrumb/Breadcrumb.js.map +1 -0
  173. package/lib/Breadcrumb/BreadcrumbItem.js +34 -65
  174. package/lib/Breadcrumb/BreadcrumbItem.js.map +1 -0
  175. package/lib/Breadcrumb/HomeBreadcrumb.js +43 -82
  176. package/lib/Breadcrumb/HomeBreadcrumb.js.map +1 -0
  177. package/lib/Breadcrumb/index.js +8 -22
  178. package/lib/Breadcrumb/index.js.map +1 -0
  179. package/lib/CampaignBlock/CampaignBlock.js +128 -183
  180. package/lib/CampaignBlock/CampaignBlock.js.map +1 -0
  181. package/lib/CodeBlock/CodeBlock.js +23 -38
  182. package/lib/CodeBlock/CodeBlock.js.map +1 -0
  183. package/lib/CodeBlock/codeLanguageOptions.js +112 -87
  184. package/lib/CodeBlock/codeLanguageOptions.js.map +1 -0
  185. package/lib/Concept/Concept.js +48 -75
  186. package/lib/Concept/Concept.js.map +1 -0
  187. package/lib/ContactBlock/ContactBlock.js +141 -200
  188. package/lib/ContactBlock/ContactBlock.js.map +1 -0
  189. package/lib/ContentTypeBadge/ContentTypeBadge.js +40 -54
  190. package/lib/ContentTypeBadge/ContentTypeBadge.js.map +1 -0
  191. package/lib/ContentTypeBlockQuote/ContentTypeBlockQuote.js +23 -35
  192. package/lib/ContentTypeBlockQuote/ContentTypeBlockQuote.js.map +1 -0
  193. package/lib/ContentTypeFramedContent/ContentTypeFramedContent.js +23 -35
  194. package/lib/ContentTypeFramedContent/ContentTypeFramedContent.js.map +1 -0
  195. package/lib/ContentTypeHero/ContentTypeHero.js +37 -54
  196. package/lib/ContentTypeHero/ContentTypeHero.js.map +1 -0
  197. package/lib/CopyParagraphButton/CopyParagraphButton.js +61 -87
  198. package/lib/CopyParagraphButton/CopyParagraphButton.js.map +1 -0
  199. package/lib/CopyParagraphButton/index.js +7 -21
  200. package/lib/CopyParagraphButton/index.js.map +1 -0
  201. package/lib/Embed/AudioEmbed.js +51 -82
  202. package/lib/Embed/AudioEmbed.js.map +1 -0
  203. package/lib/Embed/BrightcoveEmbed.js +93 -138
  204. package/lib/Embed/BrightcoveEmbed.js.map +1 -0
  205. package/lib/Embed/CodeEmbed.js +59 -83
  206. package/lib/Embed/CodeEmbed.js.map +1 -0
  207. package/lib/Embed/ConceptEmbed.js +77 -127
  208. package/lib/Embed/ConceptEmbed.js.map +1 -0
  209. package/lib/Embed/ConceptInlineTriggerButton.js +39 -49
  210. package/lib/Embed/ConceptInlineTriggerButton.js.map +1 -0
  211. package/lib/Embed/ContentLinkEmbed.js +30 -55
  212. package/lib/Embed/ContentLinkEmbed.js.map +1 -0
  213. package/lib/Embed/CopyrightEmbed.js +22 -37
  214. package/lib/Embed/CopyrightEmbed.js.map +1 -0
  215. package/lib/Embed/EmbedErrorPlaceholder.js +42 -62
  216. package/lib/Embed/EmbedErrorPlaceholder.js.map +1 -0
  217. package/lib/Embed/EmbedWrapper.js +24 -54
  218. package/lib/Embed/EmbedWrapper.js.map +1 -0
  219. package/lib/Embed/ExternalEmbed.js +53 -79
  220. package/lib/Embed/ExternalEmbed.js.map +1 -0
  221. package/lib/Embed/FootnoteEmbed.js +26 -48
  222. package/lib/Embed/FootnoteEmbed.js.map +1 -0
  223. package/lib/Embed/GlossEmbed.js +51 -86
  224. package/lib/Embed/GlossEmbed.js.map +1 -0
  225. package/lib/Embed/H5pEmbed.js +37 -66
  226. package/lib/Embed/H5pEmbed.js.map +1 -0
  227. package/lib/Embed/IframeEmbed.js +68 -98
  228. package/lib/Embed/IframeEmbed.js.map +1 -0
  229. package/lib/Embed/ImageEmbed.js +173 -238
  230. package/lib/Embed/ImageEmbed.js.map +1 -0
  231. package/lib/Embed/InlineTriggerButton.js +23 -40
  232. package/lib/Embed/InlineTriggerButton.js.map +1 -0
  233. package/lib/Embed/RelatedContentEmbed.js +37 -59
  234. package/lib/Embed/RelatedContentEmbed.js.map +1 -0
  235. package/lib/Embed/UnknownEmbed.js +19 -35
  236. package/lib/Embed/UnknownEmbed.js.map +1 -0
  237. package/lib/Embed/UuDisclaimerEmbed.js +53 -92
  238. package/lib/Embed/UuDisclaimerEmbed.js.map +1 -0
  239. package/lib/ErrorMessage/ErrorMessage.js +53 -99
  240. package/lib/ErrorMessage/ErrorMessage.js.map +1 -0
  241. package/lib/ErrorMessage/index.js +7 -15
  242. package/lib/ErrorMessage/index.js.map +1 -0
  243. package/lib/FactBox/FactBox.js +118 -180
  244. package/lib/FactBox/FactBox.js.map +1 -0
  245. package/lib/FactBox/index.js +7 -15
  246. package/lib/FactBox/index.js.map +1 -0
  247. package/lib/FileList/File.js +75 -105
  248. package/lib/FileList/File.js.map +1 -0
  249. package/lib/FileList/FileList.js +33 -52
  250. package/lib/FileList/FileList.js.map +1 -0
  251. package/lib/FileList/PdfFile.js +27 -55
  252. package/lib/FileList/PdfFile.js.map +1 -0
  253. package/lib/Gloss/Gloss.js +138 -176
  254. package/lib/Gloss/Gloss.js.map +1 -0
  255. package/lib/Gloss/GlossExample.js +45 -68
  256. package/lib/Gloss/GlossExample.js.map +1 -0
  257. package/lib/Grid/Grid.js +64 -98
  258. package/lib/Grid/Grid.js.map +1 -0
  259. package/lib/Grid/GridParallaxItem.js +19 -36
  260. package/lib/Grid/GridParallaxItem.js.map +1 -0
  261. package/lib/KeyFigure/KeyFigure.js +45 -68
  262. package/lib/KeyFigure/KeyFigure.js.map +1 -0
  263. package/lib/LicenseByline/EmbedByline.js +130 -216
  264. package/lib/LicenseByline/EmbedByline.js.map +1 -0
  265. package/lib/LicenseByline/LicenseLink.js +29 -59
  266. package/lib/LicenseByline/LicenseLink.js.map +1 -0
  267. package/lib/LinkBlock/LinkBlock.js +73 -108
  268. package/lib/LinkBlock/LinkBlock.js.map +1 -0
  269. package/lib/LinkBlock/LinkBlockSection.js +22 -39
  270. package/lib/LinkBlock/LinkBlockSection.js.map +1 -0
  271. package/lib/Pitch/Pitch.js +61 -89
  272. package/lib/Pitch/Pitch.js.map +1 -0
  273. package/lib/RelatedArticleList/RelatedArticleList.js +96 -140
  274. package/lib/RelatedArticleList/RelatedArticleList.js.map +1 -0
  275. package/lib/RelatedArticleList/index.js +7 -20
  276. package/lib/RelatedArticleList/index.js.map +1 -0
  277. package/lib/ResourceBox/ResourceBox.js +73 -104
  278. package/lib/ResourceBox/ResourceBox.js.map +1 -0
  279. package/lib/TagSelector/TagSelector.js +103 -145
  280. package/lib/TagSelector/TagSelector.js.map +1 -0
  281. package/lib/ZendeskButton/ZendeskButton.js +39 -58
  282. package/lib/ZendeskButton/ZendeskButton.js.map +1 -0
  283. package/lib/_virtual/rolldown_runtime.js +42 -0
  284. package/lib/i18n/formatNestedMessages.js +16 -30
  285. package/lib/i18n/formatNestedMessages.js.map +1 -0
  286. package/lib/i18n/i18n.js +28 -38
  287. package/lib/i18n/i18n.js.map +1 -0
  288. package/lib/i18n/useComponentTranslations.js +154 -215
  289. package/lib/i18n/useComponentTranslations.js.map +1 -0
  290. package/lib/index.js +156 -598
  291. package/lib/locale/messages-en.js +436 -466
  292. package/lib/locale/messages-en.js.map +1 -0
  293. package/lib/locale/messages-nb.js +436 -466
  294. package/lib/locale/messages-nb.js.map +1 -0
  295. package/lib/locale/messages-nn.js +436 -466
  296. package/lib/locale/messages-nn.js.map +1 -0
  297. package/lib/locale/messages-se.js +436 -466
  298. package/lib/locale/messages-se.js.map +1 -0
  299. package/lib/model/ContentType.js +90 -70
  300. package/lib/model/ContentType.js.map +1 -0
  301. package/lib/model/SubjectCategories.js +26 -14
  302. package/lib/model/SubjectCategories.js.map +1 -0
  303. package/lib/model/SubjectTypes.js +24 -13
  304. package/lib/model/SubjectTypes.js.map +1 -0
  305. package/lib/model/WordClass.js +55 -48
  306. package/lib/model/WordClass.js.map +1 -0
  307. package/lib/model/index.js +16 -25
  308. package/lib/model/index.js.map +1 -0
  309. package/lib/utils/licenseAttributes.js +14 -22
  310. package/lib/utils/licenseAttributes.js.map +1 -0
  311. package/lib/utils/relativeUrl.js +20 -38
  312. package/lib/utils/relativeUrl.js.map +1 -0
  313. package/package.json +12 -11
  314. package/es/Article/index.js +0 -11
  315. package/es/CampaignBlock/index.js +0 -9
  316. package/es/CodeBlock/index.js +0 -10
  317. package/es/ContactBlock/index.js +0 -9
  318. package/es/ContentTypeHero/index.js +0 -9
  319. package/es/Embed/index.js +0 -25
  320. package/es/Embed/types.js +0 -1
  321. package/es/FileList/index.js +0 -11
  322. package/es/Gloss/index.js +0 -10
  323. package/es/Grid/index.js +0 -10
  324. package/es/KeyFigure/index.js +0 -9
  325. package/es/LicenseByline/index.js +0 -10
  326. package/es/LinkBlock/index.js +0 -10
  327. package/es/Pitch/index.js +0 -9
  328. package/es/ResourceBox/index.js +0 -10
  329. package/es/i18n/index.js +0 -11
  330. package/es/types.js +0 -1
  331. package/lib/Article/index.js +0 -68
  332. package/lib/CampaignBlock/index.js +0 -13
  333. package/lib/CodeBlock/index.js +0 -20
  334. package/lib/ContactBlock/index.js +0 -18
  335. package/lib/ContentTypeHero/index.js +0 -12
  336. package/lib/Embed/index.js +0 -150
  337. package/lib/Embed/types.js +0 -5
  338. package/lib/FileList/index.js +0 -44
  339. package/lib/Gloss/index.js +0 -20
  340. package/lib/Grid/index.js +0 -19
  341. package/lib/KeyFigure/index.js +0 -13
  342. package/lib/LicenseByline/index.js +0 -19
  343. package/lib/LinkBlock/index.js +0 -20
  344. package/lib/Pitch/index.js +0 -12
  345. package/lib/ResourceBox/index.js +0 -13
  346. package/lib/i18n/index.js +0 -68
  347. package/lib/types.js +0 -5
@@ -1,224 +1,163 @@
1
- "use strict";
1
+ const require_rolldown_runtime = require('../_virtual/rolldown_runtime.js');
2
+ const react = require_rolldown_runtime.__toESM(require("react"));
3
+ const react_i18next = require_rolldown_runtime.__toESM(require("react-i18next"));
2
4
 
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.useVideoSearchTranslations = exports.useTagsInputTranslations = exports.useTagSelectorTranslations = exports.usePaginationTranslations = exports.useImageSearchTranslations = exports.useDatePickerTranslations = exports.useComboboxTranslations = exports.useAudioSearchTranslations = void 0;
7
- var _reactI18next = require("react-i18next");
8
- var _react = require("react");
9
- /**
10
- * Copyright (c) 2024-present, NDLA.
11
- *
12
- * This source code is licensed under the GPLv3 license found in the
13
- * LICENSE file in the root directory of this source tree.
14
- *
15
- */
16
-
17
- const useTagsInputTranslations = translations => {
18
- const {
19
- t
20
- } = (0, _reactI18next.useTranslation)("translation", {
21
- keyPrefix: "component.tagsInput"
22
- });
23
- return (0, _react.useMemo)(() => ({
24
- clearTriggerLabel: t("clearTriggerLabel"),
25
- deleteTagTriggerLabel: tag => t("deleteTagTriggerLabel", {
26
- tag
27
- }),
28
- tagAdded: tag => t("tagAdded", {
29
- tag
30
- }),
31
- tagsPasted: tag => t("tagsPasted", {
32
- length: tag.length
33
- }),
34
- tagEdited: tag => t("tagEdited", {
35
- tag
36
- }),
37
- tagUpdated: tag => t("tagUpdated", {
38
- tag
39
- }),
40
- tagDeleted: tag => t("tagDeleted", {
41
- tag
42
- }),
43
- tagSelected: tag => t("tagSelected", {
44
- tag
45
- }),
46
- ...translations
47
- }), [t, translations]);
5
+ //#region src/i18n/useComponentTranslations.ts
6
+ const useTagsInputTranslations = (translations) => {
7
+ const { t } = (0, react_i18next.useTranslation)("translation", { keyPrefix: "component.tagsInput" });
8
+ return (0, react.useMemo)(() => ({
9
+ clearTriggerLabel: t("clearTriggerLabel"),
10
+ deleteTagTriggerLabel: (tag) => t("deleteTagTriggerLabel", { tag }),
11
+ tagAdded: (tag) => t("tagAdded", { tag }),
12
+ tagsPasted: (tag) => t("tagsPasted", { length: tag.length }),
13
+ tagEdited: (tag) => t("tagEdited", { tag }),
14
+ tagUpdated: (tag) => t("tagUpdated", { tag }),
15
+ tagDeleted: (tag) => t("tagDeleted", { tag }),
16
+ tagSelected: (tag) => t("tagSelected", { tag }),
17
+ ...translations
18
+ }), [t, translations]);
48
19
  };
49
- exports.useTagsInputTranslations = useTagsInputTranslations;
50
- const useComboboxTranslations = translations => {
51
- const {
52
- t
53
- } = (0, _reactI18next.useTranslation)("translation", {
54
- keyPrefix: "component.combobox"
55
- });
56
- return (0, _react.useMemo)(() => ({
57
- triggerLabel: t("triggerLabel"),
58
- clearTriggerLabel: t("clearTriggerLabel"),
59
- ...translations
60
- }), [t, translations]);
20
+ const useComboboxTranslations = (translations) => {
21
+ const { t } = (0, react_i18next.useTranslation)("translation", { keyPrefix: "component.combobox" });
22
+ return (0, react.useMemo)(() => ({
23
+ triggerLabel: t("triggerLabel"),
24
+ clearTriggerLabel: t("clearTriggerLabel"),
25
+ ...translations
26
+ }), [t, translations]);
61
27
  };
62
- exports.useComboboxTranslations = useComboboxTranslations;
63
- const useTagSelectorTranslations = translations => {
64
- const tagsInputTranslations = useTagsInputTranslations();
65
- const comboboxTranslations = useComboboxTranslations();
66
- return (0, _react.useMemo)(() => ({
67
- ...comboboxTranslations,
68
- ...tagsInputTranslations,
69
- ...translations
70
- }), [comboboxTranslations, tagsInputTranslations, translations]);
28
+ const useTagSelectorTranslations = (translations) => {
29
+ const tagsInputTranslations = useTagsInputTranslations();
30
+ const comboboxTranslations = useComboboxTranslations();
31
+ return (0, react.useMemo)(() => ({
32
+ ...comboboxTranslations,
33
+ ...tagsInputTranslations,
34
+ ...translations
35
+ }), [
36
+ comboboxTranslations,
37
+ tagsInputTranslations,
38
+ translations
39
+ ]);
71
40
  };
72
- exports.useTagSelectorTranslations = useTagSelectorTranslations;
73
- const usePaginationTranslations = translations => {
74
- const {
75
- t
76
- } = (0, _reactI18next.useTranslation)("translation", {
77
- keyPrefix: "component.pagination"
78
- });
79
- return (0, _react.useMemo)(() => ({
80
- rootLabel: t("rootLabel"),
81
- prevTriggerLabel: t("prevTriggerLabel"),
82
- nextTriggerLabel: t("nextTriggerLabel"),
83
- itemLabel: details => {
84
- const lastPage = details.totalPages > 1 && details.page === details.totalPages;
85
- return lastPage ? t("lastPage", {
86
- page: details.page
87
- }) : t("page", {
88
- page: details.page
89
- });
90
- },
91
- ...translations
92
- }), [translations, t]);
41
+ const usePaginationTranslations = (translations) => {
42
+ const { t } = (0, react_i18next.useTranslation)("translation", { keyPrefix: "component.pagination" });
43
+ return (0, react.useMemo)(() => ({
44
+ rootLabel: t("rootLabel"),
45
+ prevTriggerLabel: t("prevTriggerLabel"),
46
+ nextTriggerLabel: t("nextTriggerLabel"),
47
+ itemLabel: (details) => {
48
+ const lastPage = details.totalPages > 1 && details.page === details.totalPages;
49
+ return lastPage ? t("lastPage", { page: details.page }) : t("page", { page: details.page });
50
+ },
51
+ ...translations
52
+ }), [translations, t]);
93
53
  };
94
-
95
- // TODO: Deduplicate this and place it somewhere smart. Maybe core?
96
- exports.usePaginationTranslations = usePaginationTranslations;
97
- const useImageSearchTranslations = function () {
98
- let translations = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
99
- const {
100
- t
101
- } = (0, _reactI18next.useTranslation)("translation", {
102
- keyPrefix: "component.imageSearch"
103
- });
104
- const paginationTranslations = usePaginationTranslations();
105
- const {
106
- imagePreview,
107
- paginationTranslations: fallbackPaginationTranslations,
108
- ...remaining
109
- } = translations;
110
- return (0, _react.useMemo)(() => ({
111
- searchPlaceholder: t("searchPlaceholder"),
112
- searchButtonTitle: t("searchButtonTitle"),
113
- imagePreview: {
114
- creatorsLabel: t("imagePreview.creatorsLabel"),
115
- license: t("imagePreview.license"),
116
- caption: t("imagePreview.caption"),
117
- altText: t("imagePreview.altText"),
118
- modelRelease: t("imagePreview.modelRelease"),
119
- tags: t("imagePreview.tags"),
120
- close: t("close"),
121
- checkboxLabel: t("imagePreview.checkboxLabel"),
122
- useImageTitle: t("imagePreview.useImageTitle"),
123
- ...imagePreview
124
- },
125
- paginationTranslations: {
126
- ...paginationTranslations,
127
- ...fallbackPaginationTranslations
128
- },
129
- ...remaining
130
- }), [t, paginationTranslations, imagePreview, fallbackPaginationTranslations, remaining]);
54
+ const useImageSearchTranslations = (translations = {}) => {
55
+ const { t } = (0, react_i18next.useTranslation)("translation", { keyPrefix: "component.imageSearch" });
56
+ const paginationTranslations = usePaginationTranslations();
57
+ const { imagePreview, paginationTranslations: fallbackPaginationTranslations,...remaining } = translations;
58
+ return (0, react.useMemo)(() => ({
59
+ searchPlaceholder: t("searchPlaceholder"),
60
+ searchButtonTitle: t("searchButtonTitle"),
61
+ imagePreview: {
62
+ creatorsLabel: t("imagePreview.creatorsLabel"),
63
+ license: t("imagePreview.license"),
64
+ caption: t("imagePreview.caption"),
65
+ altText: t("imagePreview.altText"),
66
+ modelRelease: t("imagePreview.modelRelease"),
67
+ tags: t("imagePreview.tags"),
68
+ close: t("close"),
69
+ checkboxLabel: t("imagePreview.checkboxLabel"),
70
+ useImageTitle: t("imagePreview.useImageTitle"),
71
+ ...imagePreview
72
+ },
73
+ paginationTranslations: {
74
+ ...paginationTranslations,
75
+ ...fallbackPaginationTranslations
76
+ },
77
+ ...remaining
78
+ }), [
79
+ t,
80
+ paginationTranslations,
81
+ imagePreview,
82
+ fallbackPaginationTranslations,
83
+ remaining
84
+ ]);
131
85
  };
132
- exports.useImageSearchTranslations = useImageSearchTranslations;
133
- const useAudioSearchTranslations = function () {
134
- let translations = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
135
- const {
136
- t
137
- } = (0, _reactI18next.useTranslation)("translation", {
138
- keyPrefix: "component.audioSearch"
139
- });
140
- const paginationTranslations = usePaginationTranslations();
141
- const {
142
- paginationTranslations: fallbackPaginationTranslations,
143
- ...remaining
144
- } = translations;
145
- return (0, _react.useMemo)(() => ({
146
- searchPlaceholder: t("searchPlaceholder"),
147
- searchButtonTitle: t("searchButtonTitle"),
148
- useAudio: t("useAudio"),
149
- noResults: t("noResults"),
150
- paginationTranslations: {
151
- ...paginationTranslations,
152
- ...fallbackPaginationTranslations
153
- },
154
- ...remaining
155
- }), [t, paginationTranslations, fallbackPaginationTranslations, remaining]);
86
+ const useAudioSearchTranslations = (translations = {}) => {
87
+ const { t } = (0, react_i18next.useTranslation)("translation", { keyPrefix: "component.audioSearch" });
88
+ const paginationTranslations = usePaginationTranslations();
89
+ const { paginationTranslations: fallbackPaginationTranslations,...remaining } = translations;
90
+ return (0, react.useMemo)(() => ({
91
+ searchPlaceholder: t("searchPlaceholder"),
92
+ searchButtonTitle: t("searchButtonTitle"),
93
+ useAudio: t("useAudio"),
94
+ noResults: t("noResults"),
95
+ paginationTranslations: {
96
+ ...paginationTranslations,
97
+ ...fallbackPaginationTranslations
98
+ },
99
+ ...remaining
100
+ }), [
101
+ t,
102
+ paginationTranslations,
103
+ fallbackPaginationTranslations,
104
+ remaining
105
+ ]);
156
106
  };
157
- exports.useAudioSearchTranslations = useAudioSearchTranslations;
158
- const useVideoSearchTranslations = translations => {
159
- const {
160
- t
161
- } = (0, _reactI18next.useTranslation)("translation", {
162
- keyPrefix: "component.videoSearch"
163
- });
164
- return (0, _react.useMemo)(() => ({
165
- searchPlaceholder: t("searchPlaceholder"),
166
- searchButtonTitle: t("searchButtonTitle"),
167
- loadMoreVideos: t("loadMoreVideos"),
168
- noResults: t("noResults"),
169
- is360Video: t("is360Video"),
170
- previewVideo: t("previewVideo"),
171
- addVideo: t("addVideo"),
172
- close: t("close"),
173
- ...translations
174
- }), [t, translations]);
107
+ const useVideoSearchTranslations = (translations) => {
108
+ const { t } = (0, react_i18next.useTranslation)("translation", { keyPrefix: "component.videoSearch" });
109
+ return (0, react.useMemo)(() => ({
110
+ searchPlaceholder: t("searchPlaceholder"),
111
+ searchButtonTitle: t("searchButtonTitle"),
112
+ loadMoreVideos: t("loadMoreVideos"),
113
+ noResults: t("noResults"),
114
+ is360Video: t("is360Video"),
115
+ previewVideo: t("previewVideo"),
116
+ addVideo: t("addVideo"),
117
+ close: t("close"),
118
+ ...translations
119
+ }), [t, translations]);
175
120
  };
176
- exports.useVideoSearchTranslations = useVideoSearchTranslations;
177
- const useDatePickerTranslations = translations => {
178
- const {
179
- t
180
- } = (0, _reactI18next.useTranslation)("translation", {
181
- keyPrefix: "component.datePicker"
182
- });
183
- return (0, _react.useMemo)(() => ({
184
- dayCell: state => {
185
- if (state.unavailable) {
186
- return t("dayCell.unavailable", {
187
- date: state.formattedDate
188
- });
189
- } else if (state.selected) {
190
- return t("dayCell.selected", {
191
- date: state.formattedDate
192
- });
193
- } else return t("dayCell.select", {
194
- date: state.formattedDate
195
- });
196
- },
197
- nextTrigger: view => t(`nextTrigger.${view}`),
198
- prevTrigger: view => t(`prevTrigger.${view}`),
199
- monthSelect: t("monthSelect"),
200
- yearSelect: t("yearSelect"),
201
- viewTrigger: view => t(`viewTrigger.${view}`),
202
- presetTrigger: value => {
203
- if (Array.isArray(value)) {
204
- return t("presetTrigger.range", {
205
- start: value[0],
206
- end: value[1]
207
- });
208
- } else return t("presetTrigger.single", {
209
- date: value
210
- });
211
- },
212
- clearTrigger: t("clearTrigger"),
213
- trigger: open => t(`trigger.${open ? "close" : "open"}`),
214
- content: t("content"),
215
- placeholder: _locale => {
216
- return {
217
- day: "dd",
218
- month: "mm",
219
- year: "yyyy"
220
- };
221
- }
222
- }), [t, translations]);
121
+ const useDatePickerTranslations = (translations) => {
122
+ const { t } = (0, react_i18next.useTranslation)("translation", { keyPrefix: "component.datePicker" });
123
+ return (0, react.useMemo)(() => ({
124
+ dayCell: (state) => {
125
+ if (state.unavailable) return t("dayCell.unavailable", { date: state.formattedDate });
126
+ else if (state.selected) return t("dayCell.selected", { date: state.formattedDate });
127
+ else return t("dayCell.select", { date: state.formattedDate });
128
+ },
129
+ nextTrigger: (view) => t(`nextTrigger.${view}`),
130
+ prevTrigger: (view) => t(`prevTrigger.${view}`),
131
+ monthSelect: t("monthSelect"),
132
+ yearSelect: t("yearSelect"),
133
+ viewTrigger: (view) => t(`viewTrigger.${view}`),
134
+ presetTrigger: (value) => {
135
+ if (Array.isArray(value)) return t("presetTrigger.range", {
136
+ start: value[0],
137
+ end: value[1]
138
+ });
139
+ else return t("presetTrigger.single", { date: value });
140
+ },
141
+ clearTrigger: t("clearTrigger"),
142
+ trigger: (open) => t(`trigger.${open ? "close" : "open"}`),
143
+ content: t("content"),
144
+ placeholder: (_locale) => {
145
+ return {
146
+ day: "dd",
147
+ month: "mm",
148
+ year: "yyyy"
149
+ };
150
+ }
151
+ }), [t, translations]);
223
152
  };
224
- exports.useDatePickerTranslations = useDatePickerTranslations;
153
+
154
+ //#endregion
155
+ exports.useAudioSearchTranslations = useAudioSearchTranslations;
156
+ exports.useComboboxTranslations = useComboboxTranslations;
157
+ exports.useDatePickerTranslations = useDatePickerTranslations;
158
+ exports.useImageSearchTranslations = useImageSearchTranslations;
159
+ exports.usePaginationTranslations = usePaginationTranslations;
160
+ exports.useTagSelectorTranslations = useTagSelectorTranslations;
161
+ exports.useTagsInputTranslations = useTagsInputTranslations;
162
+ exports.useVideoSearchTranslations = useVideoSearchTranslations;
163
+ //# sourceMappingURL=useComponentTranslations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useComponentTranslations.js","names":["translations?: Partial<TagsInputRootProps[\"translations\"]>","translations?: Partial<ComboboxRootProps<T>[\"translations\"]>","translations?: Partial<TagSelectorRootProps<T>[\"translations\"]>","translations?: Partial<PaginationRootProps[\"translations\"]>","translations: DeepPartial<ImageSearchTranslations>","translations: DeepPartial<AudioSearchTranslations>","translations?: Partial<VideoTranslations>","translations?: Partial<DatePickerRootProps[\"translations\"]>"],"sources":["../../src/i18n/useComponentTranslations.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 { useTranslation } from \"react-i18next\";\nimport type { CollectionItem } from \"@ark-ui/react\";\nimport type { ComboboxRootProps, PaginationRootProps, TagsInputRootProps, DatePickerRootProps } from \"@ndla/primitives\";\nimport { type TagSelectorRootProps } from \"../TagSelector/TagSelector\";\nimport { useMemo } from \"react\";\n\ntype DeepPartial<T> = {\n [K in keyof T]?: T[K] extends object ? DeepPartial<T[K]> : T[K];\n};\n\nexport const useTagsInputTranslations = (\n translations?: Partial<TagsInputRootProps[\"translations\"]>,\n): TagsInputRootProps[\"translations\"] => {\n const { t } = useTranslation(\"translation\", { keyPrefix: \"component.tagsInput\" });\n\n return useMemo(\n () => ({\n clearTriggerLabel: t(\"clearTriggerLabel\"),\n deleteTagTriggerLabel: (tag) => t(\"deleteTagTriggerLabel\", { tag }),\n tagAdded: (tag) => t(\"tagAdded\", { tag }),\n tagsPasted: (tag) => t(\"tagsPasted\", { length: tag.length }),\n tagEdited: (tag) => t(\"tagEdited\", { tag }),\n tagUpdated: (tag) => t(\"tagUpdated\", { tag }),\n tagDeleted: (tag) => t(\"tagDeleted\", { tag }),\n tagSelected: (tag) => t(\"tagSelected\", { tag }),\n ...translations,\n }),\n [t, translations],\n );\n};\n\nexport const useComboboxTranslations = <T extends CollectionItem>(\n translations?: Partial<ComboboxRootProps<T>[\"translations\"]>,\n): ComboboxRootProps<T>[\"translations\"] => {\n const { t } = useTranslation(\"translation\", { keyPrefix: \"component.combobox\" });\n\n return useMemo(\n () => ({\n triggerLabel: t(\"triggerLabel\"),\n clearTriggerLabel: t(\"clearTriggerLabel\"),\n ...translations,\n }),\n [t, translations],\n );\n};\n\nexport const useTagSelectorTranslations = <T extends CollectionItem>(\n translations?: Partial<TagSelectorRootProps<T>[\"translations\"]>,\n): TagSelectorRootProps<T>[\"translations\"] => {\n const tagsInputTranslations = useTagsInputTranslations();\n const comboboxTranslations = useComboboxTranslations();\n\n return useMemo(\n () =>\n ({\n ...comboboxTranslations,\n ...tagsInputTranslations,\n ...translations,\n }) as TagSelectorRootProps<T>[\"translations\"],\n [comboboxTranslations, tagsInputTranslations, translations],\n );\n};\n\nexport const usePaginationTranslations = (\n translations?: Partial<PaginationRootProps[\"translations\"]>,\n): PaginationRootProps[\"translations\"] => {\n const { t } = useTranslation(\"translation\", { keyPrefix: \"component.pagination\" });\n\n return useMemo(\n () => ({\n rootLabel: t(\"rootLabel\"),\n prevTriggerLabel: t(\"prevTriggerLabel\"),\n nextTriggerLabel: t(\"nextTriggerLabel\"),\n itemLabel: (details) => {\n const lastPage = details.totalPages > 1 && details.page === details.totalPages;\n return lastPage ? t(\"lastPage\", { page: details.page }) : t(\"page\", { page: details.page });\n },\n ...translations,\n }),\n [translations, t],\n );\n};\n\n// TODO: Deduplicate this and place it somewhere smart. Maybe core?\ninterface AudioSearchTranslations {\n searchPlaceholder: string;\n searchButtonTitle: string;\n useAudio: string;\n noResults: string;\n paginationTranslations: PaginationRootProps[\"translations\"];\n}\n\ninterface VideoTranslations {\n searchPlaceholder: string;\n searchButtonTitle: string;\n loadMoreVideos: string;\n noResults: string;\n is360Video: string;\n previewVideo: string;\n addVideo: string;\n close: string;\n}\ninterface PreviewTranslations {\n creatorsLabel: string;\n license: string;\n caption: string;\n altText: string;\n modelRelease: string;\n tags: string;\n close: string;\n checkboxLabel?: string;\n missingTitleFallback?: string;\n useImageTitle: string;\n}\n\ninterface ImageSearchTranslations {\n searchPlaceholder: string;\n searchButtonTitle: string;\n imagePreview: PreviewTranslations;\n paginationTranslations: PaginationRootProps[\"translations\"];\n}\n\nexport const useImageSearchTranslations = (\n translations: DeepPartial<ImageSearchTranslations> = {},\n): ImageSearchTranslations => {\n const { t } = useTranslation(\"translation\", { keyPrefix: \"component.imageSearch\" });\n const paginationTranslations = usePaginationTranslations();\n\n const { imagePreview, paginationTranslations: fallbackPaginationTranslations, ...remaining } = translations;\n\n return useMemo(\n () => ({\n searchPlaceholder: t(\"searchPlaceholder\"),\n searchButtonTitle: t(\"searchButtonTitle\"),\n imagePreview: {\n creatorsLabel: t(\"imagePreview.creatorsLabel\"),\n license: t(\"imagePreview.license\"),\n caption: t(\"imagePreview.caption\"),\n altText: t(\"imagePreview.altText\"),\n modelRelease: t(\"imagePreview.modelRelease\"),\n tags: t(\"imagePreview.tags\"),\n close: t(\"close\"),\n checkboxLabel: t(\"imagePreview.checkboxLabel\"),\n useImageTitle: t(\"imagePreview.useImageTitle\"),\n ...imagePreview,\n },\n paginationTranslations: { ...paginationTranslations, ...fallbackPaginationTranslations },\n ...remaining,\n }),\n [t, paginationTranslations, imagePreview, fallbackPaginationTranslations, remaining],\n );\n};\n\nexport const useAudioSearchTranslations = (\n translations: DeepPartial<AudioSearchTranslations> = {},\n): AudioSearchTranslations => {\n const { t } = useTranslation(\"translation\", { keyPrefix: \"component.audioSearch\" });\n const paginationTranslations = usePaginationTranslations();\n\n const { paginationTranslations: fallbackPaginationTranslations, ...remaining } = translations;\n\n return useMemo(\n () => ({\n searchPlaceholder: t(\"searchPlaceholder\"),\n searchButtonTitle: t(\"searchButtonTitle\"),\n useAudio: t(\"useAudio\"),\n noResults: t(\"noResults\"),\n paginationTranslations: { ...paginationTranslations, ...fallbackPaginationTranslations },\n ...remaining,\n }),\n [t, paginationTranslations, fallbackPaginationTranslations, remaining],\n );\n};\n\nexport const useVideoSearchTranslations = (translations?: Partial<VideoTranslations>): VideoTranslations => {\n const { t } = useTranslation(\"translation\", { keyPrefix: \"component.videoSearch\" });\n\n return useMemo(\n () => ({\n searchPlaceholder: t(\"searchPlaceholder\"),\n searchButtonTitle: t(\"searchButtonTitle\"),\n loadMoreVideos: t(\"loadMoreVideos\"),\n noResults: t(\"noResults\"),\n is360Video: t(\"is360Video\"),\n previewVideo: t(\"previewVideo\"),\n addVideo: t(\"addVideo\"),\n close: t(\"close\"),\n ...translations,\n }),\n [t, translations],\n );\n};\n\nexport const useDatePickerTranslations = (\n translations?: Partial<DatePickerRootProps[\"translations\"]>,\n): NonNullable<DatePickerRootProps[\"translations\"]> => {\n const { t } = useTranslation(\"translation\", { keyPrefix: \"component.datePicker\" });\n\n return useMemo(\n () => ({\n dayCell: (state) => {\n if (state.unavailable) {\n return t(\"dayCell.unavailable\", { date: state.formattedDate });\n } else if (state.selected) {\n return t(\"dayCell.selected\", { date: state.formattedDate });\n } else return t(\"dayCell.select\", { date: state.formattedDate });\n },\n nextTrigger: (view) => t(`nextTrigger.${view}`),\n prevTrigger: (view) => t(`prevTrigger.${view}`),\n monthSelect: t(\"monthSelect\"),\n yearSelect: t(\"yearSelect\"),\n viewTrigger: (view) => t(`viewTrigger.${view}`),\n presetTrigger: (value) => {\n if (Array.isArray(value)) {\n return t(\"presetTrigger.range\", { start: value[0], end: value[1] });\n } else return t(\"presetTrigger.single\", { date: value });\n },\n clearTrigger: t(\"clearTrigger\"),\n trigger: (open) => t(`trigger.${open ? \"close\" : \"open\"}`),\n content: t(\"content\"),\n placeholder: (_locale) => {\n return { day: \"dd\", month: \"mm\", year: \"yyyy\" };\n },\n }),\n [t, translations],\n );\n};\n"],"mappings":";;;;;AAkBA,MAAa,2BAA2B,CACtCA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