@mgdis/mg-components 5.19.2 → 5.19.3

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 (178) hide show
  1. package/dist/cjs/{components.utils-dc9c8a53.js → components.utils-69435877.js} +2 -2
  2. package/dist/cjs/components.utils-69435877.js.map +1 -0
  3. package/dist/cjs/{index-c042e24b.js → index-60dd0c56.js} +143 -58
  4. package/dist/cjs/index-60dd0c56.js.map +1 -0
  5. package/dist/cjs/loader.cjs.js +2 -2
  6. package/dist/cjs/mg-action-more_34.cjs.entry.js +306 -238
  7. package/dist/cjs/mg-action-more_34.cjs.entry.js.map +1 -1
  8. package/dist/cjs/mg-components.cjs.js +3 -3
  9. package/dist/cjs/mg-components.cjs.js.map +1 -1
  10. package/dist/cjs/mg-item-more.cjs.entry.js +2 -2
  11. package/dist/cjs/mg-item-more.cjs.entry.js.map +1 -1
  12. package/dist/collection/assets/icons/index.js +190 -182
  13. package/dist/collection/collection-manifest.json +3 -3
  14. package/dist/collection/components/atoms/mg-button/mg-button.js +15 -0
  15. package/dist/collection/components/atoms/mg-button/mg-button.js.map +1 -1
  16. package/dist/collection/components/atoms/mg-button/test/mg-button.e2e.js +1 -1
  17. package/dist/collection/components/atoms/mg-button/test/mg-button.e2e.js.map +1 -1
  18. package/dist/collection/components/atoms/mg-button/test/mg-button.spec.js +54 -4
  19. package/dist/collection/components/atoms/mg-button/test/mg-button.spec.js.map +1 -1
  20. package/dist/collection/components/atoms/mg-card/test/mg-card.e2e.js +2 -2
  21. package/dist/collection/components/atoms/mg-card/test/mg-card.e2e.js.map +1 -1
  22. package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.js +1 -1
  23. package/dist/collection/components/atoms/mg-tooltip/test/mg-tooltip.spec.js +1 -1
  24. package/dist/collection/components/atoms/mg-tooltip/test/mg-tooltip.spec.js.map +1 -1
  25. package/dist/collection/components/molecules/inputs/MgInput.conf.js +8 -0
  26. package/dist/collection/components/molecules/inputs/MgInput.conf.js.map +1 -1
  27. package/dist/collection/components/molecules/inputs/MgInput.js.map +1 -1
  28. package/dist/collection/components/molecules/inputs/mg-input-checkbox/MgInputCheckboxList.js +2 -2
  29. package/dist/collection/components/molecules/inputs/mg-input-checkbox/MgInputCheckboxList.js.map +1 -1
  30. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.js +13 -12
  31. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.js.map +1 -1
  32. package/dist/collection/components/molecules/inputs/mg-input-checkbox/test/mg-input-checkbox.spec.js +4 -10
  33. package/dist/collection/components/molecules/inputs/mg-input-checkbox/test/mg-input-checkbox.spec.js.map +1 -1
  34. package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.js +9 -2
  35. package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.js.map +1 -1
  36. package/dist/collection/components/molecules/inputs/mg-input-date/test/mg-input-date.spec.js +4 -0
  37. package/dist/collection/components/molecules/inputs/mg-input-date/test/mg-input-date.spec.js.map +1 -1
  38. package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.js +11 -4
  39. package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.js.map +1 -1
  40. package/dist/collection/components/molecules/inputs/mg-input-numeric/test/mg-input-numeric.spec.js +4 -0
  41. package/dist/collection/components/molecules/inputs/mg-input-numeric/test/mg-input-numeric.spec.js.map +1 -1
  42. package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.js +9 -2
  43. package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.js.map +1 -1
  44. package/dist/collection/components/molecules/inputs/mg-input-password/test/mg-input-password.spec.js +4 -0
  45. package/dist/collection/components/molecules/inputs/mg-input-password/test/mg-input-password.spec.js.map +1 -1
  46. package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.js +7 -1
  47. package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.js.map +1 -1
  48. package/dist/collection/components/molecules/inputs/mg-input-radio/test/mg-input-radio.spec.js +4 -0
  49. package/dist/collection/components/molecules/inputs/mg-input-radio/test/mg-input-radio.spec.js.map +1 -1
  50. package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.js +9 -2
  51. package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.js.map +1 -1
  52. package/dist/collection/components/molecules/inputs/mg-input-select/test/mg-input-select.spec.js +4 -0
  53. package/dist/collection/components/molecules/inputs/mg-input-select/test/mg-input-select.spec.js.map +1 -1
  54. package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.conf.js +0 -4
  55. package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.conf.js.map +1 -1
  56. package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.js +9 -2
  57. package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.js.map +1 -1
  58. package/dist/collection/components/molecules/inputs/mg-input-text/test/mg-input-text.spec.js +2 -0
  59. package/dist/collection/components/molecules/inputs/mg-input-text/test/mg-input-text.spec.js.map +1 -1
  60. package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.js +9 -2
  61. package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.js.map +1 -1
  62. package/dist/collection/components/molecules/inputs/mg-input-textarea/test/mg-input-textarea.spec.js +2 -0
  63. package/dist/collection/components/molecules/inputs/mg-input-textarea/test/mg-input-textarea.spec.js.map +1 -1
  64. package/dist/collection/components/molecules/inputs/mg-input-toggle/test/mg-input-toggle.e2e.playwright.js +1 -1
  65. package/dist/collection/components/molecules/inputs/mg-input-toggle/test/mg-input-toggle.e2e.playwright.js.map +1 -1
  66. package/dist/collection/components/molecules/menu/mg-menu-item/mg-menu-item.js +1 -1
  67. package/dist/collection/components/molecules/menu/mg-menu-item/mg-menu-item.js.map +1 -1
  68. package/dist/collection/components/molecules/menu/mg-menu-item/test/mg-menu-item.e2e.playwright.js +2 -2
  69. package/dist/collection/components/molecules/menu/mg-menu-item/test/mg-menu-item.e2e.playwright.js.map +1 -1
  70. package/dist/collection/components/molecules/mg-action-more/mg-action-more.conf.js.map +1 -1
  71. package/dist/collection/components/molecules/mg-action-more/mg-action-more.js +2 -2
  72. package/dist/collection/components/molecules/mg-action-more/mg-action-more.js.map +1 -1
  73. package/dist/collection/components/molecules/mg-action-more/test/mg-action-more.e2e.playwright.js +8 -0
  74. package/dist/collection/components/molecules/mg-action-more/test/mg-action-more.e2e.playwright.js.map +1 -1
  75. package/dist/collection/components/molecules/mg-action-more/test/mg-action-more.spec.js +8 -0
  76. package/dist/collection/components/molecules/mg-action-more/test/mg-action-more.spec.js.map +1 -1
  77. package/dist/collection/components/molecules/mg-form/mg-form.js +1 -9
  78. package/dist/collection/components/molecules/mg-form/mg-form.js.map +1 -1
  79. package/dist/collection/components/molecules/mg-form/test/mg-form.spec.js +44 -29
  80. package/dist/collection/components/molecules/mg-form/test/mg-form.spec.js.map +1 -1
  81. package/dist/collection/components/molecules/mg-modal/test/mg-modal.e2e.playwright.js +1 -1
  82. package/dist/collection/components/molecules/mg-modal/test/mg-modal.e2e.playwright.js.map +1 -1
  83. package/dist/collection/components/molecules/mg-panel/test/mg-panel.e2e.playwright.js +1 -1
  84. package/dist/collection/components/molecules/mg-panel/test/mg-panel.e2e.playwright.js.map +1 -1
  85. package/dist/collection/components/molecules/mg-popover/mg-popover.js +1 -1
  86. package/dist/collection/utils/behaviors.utils.js.map +1 -1
  87. package/dist/collection/utils/components.utils.js +1 -1
  88. package/dist/collection/utils/components.utils.js.map +1 -1
  89. package/dist/collection/utils/components.utils.spec.js +5 -0
  90. package/dist/collection/utils/components.utils.spec.js.map +1 -1
  91. package/dist/components/MgInput.js +9 -1
  92. package/dist/components/MgInput.js.map +1 -1
  93. package/dist/components/components.utils.js +1 -1
  94. package/dist/components/components.utils.js.map +1 -1
  95. package/dist/components/mg-action-more.js +1 -1
  96. package/dist/components/mg-action-more.js.map +1 -1
  97. package/dist/components/mg-button2.js +15 -0
  98. package/dist/components/mg-button2.js.map +1 -1
  99. package/dist/components/mg-form.js +1 -9
  100. package/dist/components/mg-form.js.map +1 -1
  101. package/dist/components/mg-icon2.js +198 -182
  102. package/dist/components/mg-icon2.js.map +1 -1
  103. package/dist/components/mg-input-checkbox-paginated2.js +2 -2
  104. package/dist/components/mg-input-checkbox-paginated2.js.map +1 -1
  105. package/dist/components/mg-input-checkbox.js +13 -12
  106. package/dist/components/mg-input-checkbox.js.map +1 -1
  107. package/dist/components/mg-input-date.js +9 -3
  108. package/dist/components/mg-input-date.js.map +1 -1
  109. package/dist/components/mg-input-numeric.js +11 -5
  110. package/dist/components/mg-input-numeric.js.map +1 -1
  111. package/dist/components/mg-input-password.js +9 -3
  112. package/dist/components/mg-input-password.js.map +1 -1
  113. package/dist/components/mg-input-radio.js +8 -3
  114. package/dist/components/mg-input-radio.js.map +1 -1
  115. package/dist/components/mg-input-select2.js +9 -3
  116. package/dist/components/mg-input-select2.js.map +1 -1
  117. package/dist/components/mg-input-text2.js +9 -3
  118. package/dist/components/mg-input-text2.js.map +1 -1
  119. package/dist/components/mg-input-textarea.js +9 -3
  120. package/dist/components/mg-input-textarea.js.map +1 -1
  121. package/dist/components/mg-item-more.js.map +1 -1
  122. package/dist/components/mg-menu-item2.js +2 -2
  123. package/dist/components/mg-menu-item2.js.map +1 -1
  124. package/dist/components/mg-message.js +1 -1
  125. package/dist/components/mg-message.js.map +1 -1
  126. package/dist/components/mg-popover-content2.js +1 -1
  127. package/dist/components/mg-popover-content2.js.map +1 -1
  128. package/dist/components/popper.js +6 -12
  129. package/dist/components/popper.js.map +1 -1
  130. package/dist/esm/{components.utils-0f76010d.js → components.utils-6cf27db1.js} +2 -2
  131. package/dist/esm/components.utils-6cf27db1.js.map +1 -0
  132. package/dist/esm/{index-ce01e63b.js → index-0f833068.js} +143 -58
  133. package/dist/esm/index-0f833068.js.map +1 -0
  134. package/dist/esm/loader.js +3 -3
  135. package/dist/esm/mg-action-more_34.entry.js +306 -238
  136. package/dist/esm/mg-action-more_34.entry.js.map +1 -1
  137. package/dist/esm/mg-components.js +4 -4
  138. package/dist/esm/mg-components.js.map +1 -1
  139. package/dist/esm/mg-item-more.entry.js +2 -2
  140. package/dist/esm/mg-item-more.entry.js.map +1 -1
  141. package/dist/mg-components/mg-components.css +1 -1
  142. package/dist/mg-components/mg-components.esm.js +1 -1
  143. package/dist/mg-components/mg-components.esm.js.map +1 -1
  144. package/dist/mg-components/p-10ed4425.entry.js +2 -0
  145. package/dist/mg-components/p-10ed4425.entry.js.map +1 -0
  146. package/dist/mg-components/{p-c9e2c669.js → p-36a51c5e.js} +2 -2
  147. package/dist/mg-components/p-36a51c5e.js.map +1 -0
  148. package/dist/mg-components/{p-01ebc95a.entry.js → p-91feda5a.entry.js} +2 -2
  149. package/dist/mg-components/p-91feda5a.entry.js.map +1 -0
  150. package/dist/mg-components/p-9b12021b.js +3 -0
  151. package/dist/mg-components/p-9b12021b.js.map +1 -0
  152. package/dist/types/components/atoms/mg-button/mg-button.d.ts +4 -0
  153. package/dist/types/components/molecules/inputs/MgInput.conf.d.ts +7 -0
  154. package/dist/types/components/molecules/inputs/MgInput.d.ts +2 -1
  155. package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.d.ts +4 -2
  156. package/dist/types/components/molecules/inputs/mg-input-date/mg-input-date.d.ts +1 -0
  157. package/dist/types/components/molecules/inputs/mg-input-numeric/mg-input-numeric.d.ts +1 -0
  158. package/dist/types/components/molecules/inputs/mg-input-password/mg-input-password.d.ts +1 -0
  159. package/dist/types/components/molecules/inputs/mg-input-radio/mg-input-radio.d.ts +1 -0
  160. package/dist/types/components/molecules/inputs/mg-input-select/mg-input-select.d.ts +1 -0
  161. package/dist/types/components/molecules/inputs/mg-input-text/mg-input-text.conf.d.ts +1 -6
  162. package/dist/types/components/molecules/inputs/mg-input-text/mg-input-text.d.ts +1 -0
  163. package/dist/types/components/molecules/inputs/mg-input-textarea/mg-input-textarea.d.ts +1 -0
  164. package/dist/types/components/molecules/menu/mg-menu-item/mg-menu-item.d.ts +1 -1
  165. package/dist/types/components/molecules/mg-action-more/mg-action-more.conf.d.ts +1 -0
  166. package/dist/types/components/molecules/mg-form/mg-form.d.ts +0 -1
  167. package/dist/types/components.d.ts +2 -2
  168. package/package.json +35 -35
  169. package/dist/cjs/components.utils-dc9c8a53.js.map +0 -1
  170. package/dist/cjs/index-c042e24b.js.map +0 -1
  171. package/dist/esm/components.utils-0f76010d.js.map +0 -1
  172. package/dist/esm/index-ce01e63b.js.map +0 -1
  173. package/dist/mg-components/p-01ebc95a.entry.js.map +0 -1
  174. package/dist/mg-components/p-1aa89acf.js +0 -3
  175. package/dist/mg-components/p-1aa89acf.js.map +0 -1
  176. package/dist/mg-components/p-71a5a848.entry.js +0 -2
  177. package/dist/mg-components/p-71a5a848.entry.js.map +0 -1
  178. package/dist/mg-components/p-c9e2c669.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"names":["localeCurrency","number","locale","currency","Intl","NumberFormat","style","format","localeNumber","dateRegExp","localeDate","date","test","DateTimeFormat","Date","getLocaleMessages","element","messages","defaultLocale","closestLangAttribute","closest","closestLang","supportedLocalesOf","lang","length","navigator","language","localeSubtag","split","shift","en","fr","initLocales","Direction","sizes","createID","prefix","chars","charsLength","ID","now","Math","pow","index","charAt","ClassList","constructor","classlist","this","add","className","has","classes","push","delete","indexOf","splice","includes","join","allItemsAreString","items","Array","isArray","every","item","isTagName","tagNames","tagName","toLowerCase","focusableElements","getWindows","localWindow","parentWindows","getParentWindows","childWindows","getChildWindows","windows","self","top","parentWindow","parent","err","console","error","frames","childWindow","from","isValidString","value","trim","cleanString","text","toLocaleLowerCase","normalize","replaceAll"],"sources":["src/utils/locale.utils.ts","src/locales/index.ts","src/components/molecules/menu/mg-menu/mg-menu.conf.ts","src/utils/components.utils.ts"],"sourcesContent":["/**\n * Format number to the locale currency\n * @param number - number to format\n * @param locale - locale to apply\n * @param currency - currency to apply\n * @returns formatted currency\n */\nexport const localeCurrency = (number: number, locale: string, currency: string): string => {\n return new Intl.NumberFormat(locale, { style: 'currency', currency }).format(number);\n};\n\n/**\n * Format number to locale\n * @param number - number to format\n * @param locale - locale to apply\n * @returns formatted number\n */\nexport const localeNumber = (number: number, locale: string): string => {\n return new Intl.NumberFormat(locale).format(number);\n};\n\n/**\n * Date RegExp\n */\nexport const dateRegExp = /^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$/;\n\n/**\n * Locale date format\n * @param date - date to format\n * @param locale - locale to apply\n * @returns formatted date\n */\nexport const localeDate = (date: string, locale: string): string => {\n if (typeof date !== 'string' || date === '' || !dateRegExp.test(date)) {\n return '';\n }\n return new Intl.DateTimeFormat(locale).format(new Date(date));\n};\n\n/**\n * Get locale and messages\n * We load the defined locale but for now we only support the first subtag for messages\n * @param element - element we need to get the language\n * @param messages - messages to use\n * @param defaultLocale - default messages locale\n * @returns messages object\n */\nexport const getLocaleMessages = (element: HTMLElement, messages: unknown, defaultLocale: string): { locale: string; messages: Record<string, unknown> } => {\n // Get local\n const closestLangAttribute: HTMLElement = element.closest('[lang]');\n const closestLang: string[] = Intl.NumberFormat.supportedLocalesOf(closestLangAttribute?.lang);\n const locale = closestLang.length > 0 ? closestLang[0] : navigator.language || defaultLocale;\n // Only keep first subtag\n const localeSubtag = locale.split('-').shift();\n // Return\n return {\n locale,\n messages: messages[localeSubtag] || messages[defaultLocale],\n };\n};\n","import en from './en/messages.json';\nimport fr from './fr/messages.json';\nimport { getLocaleMessages } from '../utils/locale.utils';\n\nconst defaultLocale = 'en';\nconst messages = { en, fr };\n\n/**\n * Get Intl object\n * @param element - element we need to get the language\n * @returns messages object\n */\nexport const initLocales = (element: HTMLElement): { locale: string; messages: Record<string, unknown> } => getLocaleMessages(element, messages, defaultLocale);\n","import { MgItemMore } from '../../mg-item-more/mg-item-more';\n\n/**\n * Menu direction type\n */\nexport enum Direction {\n VERTICAL = 'vertical',\n HORIZONTAL = 'horizontal',\n}\n\n/**\n * ItemMore prop type\n */\nexport type ItemMoreType = Pick<MgItemMore, 'icon' | 'slotlabel' | 'size'>;\n\n/**\n * List of all possibles sizes\n */\nexport const sizes = ['regular', 'medium', 'large'] as const;\n\n/**\n * item Size from sizes\n */\nexport type MenuSizeType = (typeof sizes)[number];\n","/**\n * Create random ID\n * @param prefix - add prefix to created ID\n * @param length - ID length\n * @returns ID\n */\nexport const createID = (prefix = '', length = 10): string => {\n const chars = 'abcdefghijklmnopqrstuvwxyz0123456789';\n const charsLength = chars.length;\n\n let ID = '';\n let now = Date.now();\n while (length > 0) {\n now += Math.pow(10, 6); // Add 1 millisecond to the timestamp\n const index = now % charsLength;\n ID += chars.charAt(index);\n length--;\n }\n return (prefix !== '' ? `${prefix}-` : '') + ID;\n};\n\n/**\n * Class to manage component classlist\n * Set() are not working when imported in project\n */\nexport class ClassList {\n /**\n * Available classes\n */\n classes: string[];\n\n constructor(classlist: string[] = []) {\n this.classes = classlist;\n }\n\n /**\n * Add class\n * @param className - class name to add\n */\n add = (className: string): void => {\n if (!this.has(className)) {\n this.classes.push(className);\n }\n };\n\n /**\n * Delete class\n * @param className - class name to delete\n */\n delete = (className: string): void => {\n const index = this.classes.indexOf(className);\n if (index > -1) {\n this.classes.splice(index, 1);\n }\n };\n\n /**\n * Check if class exist in list\n * @param className - class name to check\n * @returns class name is in the list\n */\n has = (className: string): boolean => {\n return this.classes.includes(className);\n };\n\n /**\n * Join classes seperated by spaces\n * @returns joined values\n */\n join = (): string => {\n return this.classes.join(' ');\n };\n}\n\n/**\n * Check if all items are string\n * @param items - items to check\n * @returns all items are string\n */\nexport const allItemsAreString = (items: unknown): items is string[] => Array.isArray(items) && items.every(item => typeof item === 'string');\n\n/**\n * Check if element is a heading\n * @param element - slotted element\n * @param tagNames - allowed tag names list\n * @returns element is a heading\n */\nexport const isTagName = (element: Element, tagNames: string[]): boolean => {\n return tagNames.includes(element?.tagName.toLowerCase());\n};\n\n/**\n * Focusable elements query selector\n */\nexport const focusableElements = 'a[href], button, input, textarea, select, details, [tabindex]:not([tabindex=\"-1\"]), [identifier]';\n\n/**\n * Get windows\n * @param localWindow - the window we are lookink for other windows\n * @returns The list of windows found\n */\nexport const getWindows = (localWindow: Window): Window[] => {\n const parentWindows = getParentWindows(localWindow);\n const childWindows = getChildWindows(localWindow);\n return [localWindow, ...parentWindows, ...childWindows];\n};\n\n/**\n * Get parent windows\n * @param localWindow - the window we are lookink for parents\n * @param windows - The list of allready found windows\n * @returns The list of windows found\n */\nexport const getParentWindows = (localWindow: Window, windows: Window[] = []): Window[] => {\n // Check if is in iframe\n if (localWindow.self !== localWindow.top) {\n // Check if we have permission to access parent\n try {\n const parentWindow: Window = localWindow.parent;\n windows.push(parentWindow);\n return getParentWindows(parentWindow, windows);\n } catch (err) {\n console.error('Different hosts between iframes:', err);\n return windows;\n }\n }\n return windows;\n};\n\n/**\n * Get child windows\n * @param localWindow - the window we are lookink for children\n * @param windows - The list of allready found windows\n * @returns The list of windows found\n */\nconst getChildWindows = (localWindow: Window, windows: Window[] = []): Window[] => {\n if (localWindow.frames.length > 0) {\n for (const childWindow of Array.from(localWindow.frames)) {\n windows.push(childWindow);\n getChildWindows(childWindow, windows);\n }\n }\n return windows;\n};\n\n/**\n * Validate string\n * @param value - value to check\n * @returns if string is valid\n */\nexport const isValidString = (value: unknown): boolean => typeof value === 'string' && value.trim() !== '';\n\n/**\n * Clean string caraters\n * @param text - text to cliean\n * @returns cleanded string\n */\nexport const cleanString = (text: string): string =>\n typeof text === 'string' &&\n text\n .toLocaleLowerCase()\n .normalize('NFD')\n .replaceAll(/[\\u0300-\\u036f]/g, '');\n"],"mappings":"g/HAOaA,EAAiB,CAACC,EAAgBC,EAAgBC,IACtD,IAAIC,KAAKC,aAAaH,EAAQ,CAAEI,MAAO,WAAYH,aAAYI,OAAON,G,MASlEO,EAAe,CAACP,EAAgBC,IACpC,IAAIE,KAAKC,aAAaH,GAAQK,OAAON,G,MAMjCQ,EAAa,gD,MAQbC,EAAa,CAACC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