@coorpacademy/components 11.32.48-alpha.78 → 11.32.48

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 (185) hide show
  1. package/es/atom/button-link/index.d.ts +2 -0
  2. package/es/atom/button-link/index.d.ts.map +1 -1
  3. package/es/atom/button-link/index.js +26 -4
  4. package/es/atom/button-link/index.js.map +1 -1
  5. package/es/atom/button-link/style.css +14 -0
  6. package/es/atom/button-link/types.d.ts +4 -0
  7. package/es/atom/button-link/types.d.ts.map +1 -1
  8. package/es/atom/button-link/types.js +2 -0
  9. package/es/atom/button-link/types.js.map +1 -1
  10. package/es/atom/input-switch/style.css +1 -9
  11. package/es/molecule/banner/index.d.ts +4 -5
  12. package/es/molecule/banner/index.d.ts.map +1 -1
  13. package/es/molecule/banner/index.js +36 -84
  14. package/es/molecule/banner/index.js.map +1 -1
  15. package/es/molecule/banner/style.css +3 -12
  16. package/es/molecule/base-modal/index.d.ts +1 -0
  17. package/es/molecule/base-modal/index.d.ts.map +1 -1
  18. package/es/molecule/base-modal/index.js +52 -4
  19. package/es/molecule/base-modal/index.js.map +1 -1
  20. package/es/molecule/base-modal/style.css +7 -0
  21. package/es/molecule/cm-popin/types.d.ts +4 -0
  22. package/es/molecule/cm-popin/types.d.ts.map +1 -1
  23. package/es/molecule/expandible-actionable-table/index.d.ts +2 -0
  24. package/es/molecule/expandible-actionable-table/index.d.ts.map +1 -1
  25. package/es/molecule/expandible-actionable-table/types.d.ts +2 -0
  26. package/es/molecule/expandible-actionable-table/types.d.ts.map +1 -1
  27. package/es/molecule/skill-picker-modal/index.d.ts.map +1 -1
  28. package/es/molecule/skill-picker-modal/index.js +3 -1
  29. package/es/molecule/skill-picker-modal/index.js.map +1 -1
  30. package/es/molecule/translation-modal/index.d.ts +85 -0
  31. package/es/molecule/translation-modal/index.d.ts.map +1 -0
  32. package/es/molecule/translation-modal/index.js +149 -0
  33. package/es/molecule/translation-modal/index.js.map +1 -0
  34. package/es/molecule/translation-modal/style.css +45 -0
  35. package/es/organism/list-items/index.d.ts +4 -0
  36. package/es/organism/setup-header/index.d.ts +8 -0
  37. package/es/organism/wizard-contents/index.d.ts +6 -0
  38. package/es/template/app-player/loading/index.d.ts +4 -0
  39. package/es/template/app-player/player/index.d.ts +8 -0
  40. package/es/template/app-player/player/slides/index.d.ts +4 -0
  41. package/es/template/app-player/player/slides/index.d.ts.map +1 -1
  42. package/es/template/app-player/popin-correction/index.d.ts +4 -0
  43. package/es/template/app-player/popin-correction/index.d.ts.map +1 -1
  44. package/es/template/app-player/popin-end/index.d.ts +4 -0
  45. package/es/template/app-review/index.d.ts +4 -0
  46. package/es/template/app-review/index.d.ts.map +1 -1
  47. package/es/template/app-review/player/prop-types.d.ts +4 -0
  48. package/es/template/app-review/player/prop-types.d.ts.map +1 -1
  49. package/es/template/app-review/prop-types.d.ts +4 -0
  50. package/es/template/app-review/prop-types.d.ts.map +1 -1
  51. package/es/template/back-office/brand-create/index.d.ts +8 -0
  52. package/es/template/back-office/brand-create/index.d.ts.map +1 -1
  53. package/es/template/back-office/brand-list/index.d.ts +8 -0
  54. package/es/template/back-office/brand-list/index.d.ts.map +1 -1
  55. package/es/template/back-office/brand-update/index.d.ts +26 -5
  56. package/es/template/back-office/dashboard-preview/index.d.ts +8 -0
  57. package/es/template/back-office/layout/index.d.ts +8 -0
  58. package/es/template/back-office/layout/index.d.ts.map +1 -1
  59. package/es/template/common/dashboard/index.d.ts +8 -0
  60. package/es/template/common/search-page/index.d.ts +4 -0
  61. package/es/template/external-course/index.d.ts +4 -0
  62. package/es/template/playlist-detail/index.d.ts +0 -1
  63. package/es/template/playlist-detail/index.d.ts.map +1 -1
  64. package/es/template/playlist-detail/index.js +3 -6
  65. package/es/template/playlist-detail/index.js.map +1 -1
  66. package/es/template/skill-detail/all-courses.css +0 -4
  67. package/es/template/skill-detail/all-courses.d.ts +0 -1
  68. package/es/template/skill-detail/all-courses.d.ts.map +1 -1
  69. package/es/template/skill-detail/all-courses.js +2 -15
  70. package/es/template/skill-detail/all-courses.js.map +1 -1
  71. package/es/template/skill-detail/index.d.ts +0 -1
  72. package/es/template/skill-detail/index.d.ts.map +1 -1
  73. package/es/template/skill-detail/index.js +3 -6
  74. package/es/template/skill-detail/index.js.map +1 -1
  75. package/es/variables/colors.d.ts +0 -3
  76. package/es/variables/colors.d.ts.map +1 -1
  77. package/es/variables/colors.js +0 -3
  78. package/es/variables/colors.js.map +1 -1
  79. package/lib/atom/button-link/index.d.ts +2 -0
  80. package/lib/atom/button-link/index.d.ts.map +1 -1
  81. package/lib/atom/button-link/index.js +27 -4
  82. package/lib/atom/button-link/index.js.map +1 -1
  83. package/lib/atom/button-link/style.css +14 -0
  84. package/lib/atom/button-link/types.d.ts +4 -0
  85. package/lib/atom/button-link/types.d.ts.map +1 -1
  86. package/lib/atom/button-link/types.js +2 -0
  87. package/lib/atom/button-link/types.js.map +1 -1
  88. package/lib/atom/input-switch/style.css +1 -9
  89. package/lib/molecule/banner/index.d.ts +4 -5
  90. package/lib/molecule/banner/index.d.ts.map +1 -1
  91. package/lib/molecule/banner/index.js +37 -94
  92. package/lib/molecule/banner/index.js.map +1 -1
  93. package/lib/molecule/banner/style.css +3 -12
  94. package/lib/molecule/base-modal/index.d.ts +1 -0
  95. package/lib/molecule/base-modal/index.d.ts.map +1 -1
  96. package/lib/molecule/base-modal/index.js +50 -3
  97. package/lib/molecule/base-modal/index.js.map +1 -1
  98. package/lib/molecule/base-modal/style.css +7 -0
  99. package/lib/molecule/cm-popin/types.d.ts +4 -0
  100. package/lib/molecule/cm-popin/types.d.ts.map +1 -1
  101. package/lib/molecule/expandible-actionable-table/index.d.ts +2 -0
  102. package/lib/molecule/expandible-actionable-table/index.d.ts.map +1 -1
  103. package/lib/molecule/expandible-actionable-table/types.d.ts +2 -0
  104. package/lib/molecule/expandible-actionable-table/types.d.ts.map +1 -1
  105. package/lib/molecule/skill-picker-modal/index.d.ts.map +1 -1
  106. package/lib/molecule/skill-picker-modal/index.js +3 -1
  107. package/lib/molecule/skill-picker-modal/index.js.map +1 -1
  108. package/lib/molecule/translation-modal/index.d.ts +85 -0
  109. package/lib/molecule/translation-modal/index.d.ts.map +1 -0
  110. package/lib/molecule/translation-modal/index.js +168 -0
  111. package/lib/molecule/translation-modal/index.js.map +1 -0
  112. package/lib/molecule/translation-modal/style.css +45 -0
  113. package/lib/organism/list-items/index.d.ts +4 -0
  114. package/lib/organism/setup-header/index.d.ts +8 -0
  115. package/lib/organism/wizard-contents/index.d.ts +6 -0
  116. package/lib/template/app-player/loading/index.d.ts +4 -0
  117. package/lib/template/app-player/player/index.d.ts +8 -0
  118. package/lib/template/app-player/player/slides/index.d.ts +4 -0
  119. package/lib/template/app-player/player/slides/index.d.ts.map +1 -1
  120. package/lib/template/app-player/popin-correction/index.d.ts +4 -0
  121. package/lib/template/app-player/popin-correction/index.d.ts.map +1 -1
  122. package/lib/template/app-player/popin-end/index.d.ts +4 -0
  123. package/lib/template/app-review/index.d.ts +4 -0
  124. package/lib/template/app-review/index.d.ts.map +1 -1
  125. package/lib/template/app-review/player/prop-types.d.ts +4 -0
  126. package/lib/template/app-review/player/prop-types.d.ts.map +1 -1
  127. package/lib/template/app-review/prop-types.d.ts +4 -0
  128. package/lib/template/app-review/prop-types.d.ts.map +1 -1
  129. package/lib/template/back-office/brand-create/index.d.ts +8 -0
  130. package/lib/template/back-office/brand-create/index.d.ts.map +1 -1
  131. package/lib/template/back-office/brand-list/index.d.ts +8 -0
  132. package/lib/template/back-office/brand-list/index.d.ts.map +1 -1
  133. package/lib/template/back-office/brand-update/index.d.ts +26 -5
  134. package/lib/template/back-office/dashboard-preview/index.d.ts +8 -0
  135. package/lib/template/back-office/layout/index.d.ts +8 -0
  136. package/lib/template/back-office/layout/index.d.ts.map +1 -1
  137. package/lib/template/common/dashboard/index.d.ts +8 -0
  138. package/lib/template/common/search-page/index.d.ts +4 -0
  139. package/lib/template/external-course/index.d.ts +4 -0
  140. package/lib/template/playlist-detail/index.d.ts +0 -1
  141. package/lib/template/playlist-detail/index.d.ts.map +1 -1
  142. package/lib/template/playlist-detail/index.js +3 -6
  143. package/lib/template/playlist-detail/index.js.map +1 -1
  144. package/lib/template/skill-detail/all-courses.css +0 -4
  145. package/lib/template/skill-detail/all-courses.d.ts +0 -1
  146. package/lib/template/skill-detail/all-courses.d.ts.map +1 -1
  147. package/lib/template/skill-detail/all-courses.js +2 -16
  148. package/lib/template/skill-detail/all-courses.js.map +1 -1
  149. package/lib/template/skill-detail/index.d.ts +0 -1
  150. package/lib/template/skill-detail/index.d.ts.map +1 -1
  151. package/lib/template/skill-detail/index.js +3 -6
  152. package/lib/template/skill-detail/index.js.map +1 -1
  153. package/lib/variables/colors.d.ts +0 -3
  154. package/lib/variables/colors.d.ts.map +1 -1
  155. package/lib/variables/colors.js +0 -3
  156. package/lib/variables/colors.js.map +1 -1
  157. package/locales/bs/global.json +2 -0
  158. package/locales/cs/global.json +2 -0
  159. package/locales/de/global.json +2 -0
  160. package/locales/en/global.json +2 -2
  161. package/locales/es/global.json +2 -0
  162. package/locales/et/global.json +2 -0
  163. package/locales/fi/global.json +2 -0
  164. package/locales/fr/global.json +2 -0
  165. package/locales/hr/global.json +2 -0
  166. package/locales/hu/global.json +2 -0
  167. package/locales/hy/global.json +2 -0
  168. package/locales/it/global.json +2 -0
  169. package/locales/ja/global.json +2 -0
  170. package/locales/ko/global.json +2 -0
  171. package/locales/nl/global.json +2 -0
  172. package/locales/pl/global.json +2 -0
  173. package/locales/pt/global.json +2 -0
  174. package/locales/ro/global.json +2 -0
  175. package/locales/ru/global.json +2 -0
  176. package/locales/sk/global.json +2 -0
  177. package/locales/sl/global.json +2 -0
  178. package/locales/sv/global.json +2 -0
  179. package/locales/tl/global.json +2 -0
  180. package/locales/tr/global.json +2 -0
  181. package/locales/uk/global.json +2 -0
  182. package/locales/vi/global.json +2 -0
  183. package/locales/zh/global.json +2 -0
  184. package/locales/zh_TW/global.json +2 -0
  185. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/expandible-actionable-table/index.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAC,gBAAgB,EAAC,MAAM,iCAAiC,CAAC;AAOjE,OAAO,EAA2C,KAAK,EAAY,MAAM,SAAS,CAAC;AAqCnF,QAAA,MAAM,yBAAyB;YAAW,KAAK,iBAAiB,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoL/E,CAAC;AASF,eAAe,yBAAyB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/expandible-actionable-table/index.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAC,gBAAgB,EAAC,MAAM,iCAAiC,CAAC;AAOjE,OAAO,EAA2C,KAAK,EAAY,MAAM,SAAS,CAAC;AAqCnF,QAAA,MAAM,yBAAyB;YAAW,KAAK,iBAAiB,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoL/E,CAAC;AASF,eAAe,yBAAyB,CAAC"}
@@ -45,6 +45,8 @@ export declare const propTypes: {
45
45
  label: PropTypes.Requireable<string>;
46
46
  content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
47
47
  'aria-label': PropTypes.Requireable<string>;
48
+ tooltipText: PropTypes.Requireable<string>;
49
+ tooltipPlacement: PropTypes.Requireable<string>;
48
50
  'data-name': PropTypes.Requireable<string>;
49
51
  'data-testid': PropTypes.Requireable<string>;
50
52
  icon: PropTypes.Requireable<PropTypes.InferProps<{
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/molecule/expandible-actionable-table/types.ts"],"names":[],"m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sourceRoot":"","sources":["../../../src/molecule/skill-picker-modal/index.js"],"names":[],"mappings":";AAUA,gFAoKC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/skill-picker-modal/index.js"],"names":[],"mappings":";AAUA,gFAsKC"}
@@ -50,6 +50,7 @@ const SkillPickerModal = (props, context) => {
50
50
  const {
51
51
  translate
52
52
  } = context;
53
+ const detectScrollbar = true;
53
54
  const [sortedSkills, setSortedSkills] = (0, _react.useState)((0, _sortBy2.default)(skill => skillsLocales[skill], skills));
54
55
  const [currentSort, setCurrentSort] = (0, _react.useState)('alphabetical');
55
56
  const [selectedSkillList, setSelectedSkillList] = (0, _react.useState)(selectedSkills);
@@ -118,7 +119,8 @@ const SkillPickerModal = (props, context) => {
118
119
  headerIcon: {
119
120
  name: 'bullseye-arrow',
120
121
  backgroundColor: '#DDD1FF'
121
- }
122
+ },
123
+ detectScrollbar: detectScrollbar
122
124
  }, /*#__PURE__*/_react.default.createElement("div", {
123
125
  className: _style.default.skillPickerContainer
124
126
  }, isLoading ? /*#__PURE__*/_react.default.createElement("div", {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["SkillPickerModal","props","context","skills","selectedSkills","skillsLocales","skillsScore","isOpen","isLoading","maxSelectedSkills","minSelectedSkills","onCancel","onConfirm","onClose","translate","sortedSkills","setSortedSkills","useState","skill","currentSort","setCurrentSort","selectedSkillList","setSelectedSkillList","handleCancel","useCallback","handleClose","skillProgressAvailable","skillList","useMemo","map","skillTitle","skillRef","focus","includes","score","isError","length","footer","footerDescription","skillNumber","text","cancelButton","label","disabled","confirmButton","iconName","sorting","theme","options","value","name","selected","onChange","useEffect","prev","backgroundColor","style","skillPickerContainer","loaderContainer","loader","ctaWrapper","sortWrapper","display","gap","flexWrap","index","handleChipClick","newSelectedSkillList","selectedSkill","subText","toFixed","contextTypes","Provider","childContextTypes","propTypes","PropTypes","arrayOf","string","objectOf","number","bool","func"],"sources":["../../../src/molecule/skill-picker-modal/index.js"],"sourcesContent":["import React, {useMemo, useState, useCallback, useEffect} from 'react';\nimport PropTypes from 'prop-types';\nimport {filter, some, sortBy} from 'lodash/fp';\nimport BaseModal from '../base-modal';\nimport Chip from '../../atom/chip';\nimport Loader from '../../atom/loader';\nimport Select from '../../atom/select';\nimport Provider from '../../atom/provider';\nimport style from './style.css';\n\nconst SkillPickerModal = (props, context) => {\n const {\n skills,\n selectedSkills,\n skillsLocales,\n skillsScore,\n isOpen,\n isLoading,\n maxSelectedSkills = 6,\n minSelectedSkills = 3,\n onCancel,\n onConfirm,\n onClose\n } = props;\n const {translate} = context;\n\n const [sortedSkills, setSortedSkills] = useState(sortBy(skill => skillsLocales[skill], skills));\n const [currentSort, setCurrentSort] = useState('alphabetical');\n const [selectedSkillList, setSelectedSkillList] = useState(selectedSkills);\n\n const handleCancel = useCallback(() => {\n setSelectedSkillList(selectedSkills);\n onCancel();\n }, [setSelectedSkillList, selectedSkills, onCancel]);\n\n const handleClose = useCallback(() => {\n setSelectedSkillList(selectedSkills);\n onClose();\n }, [setSelectedSkillList, selectedSkills, onClose]);\n\n const skillProgressAvailable = some(skill => skillsScore[skill] > 0, skills);\n\n const skillList = useMemo(() => {\n return sortedSkills.map(skill => {\n return {\n skillTitle: skillsLocales[skill],\n skillRef: skill,\n focus: selectedSkillList.includes(skill),\n score: skillsScore[skill]\n };\n });\n }, [sortedSkills, selectedSkillList, skillsLocales, skillsScore]);\n\n const isError = useMemo(\n () =>\n selectedSkillList.length > maxSelectedSkills || selectedSkillList.length < minSelectedSkills,\n [selectedSkillList, maxSelectedSkills, minSelectedSkills]\n );\n\n const footer = useMemo(() => {\n const footerDescription =\n selectedSkillList.length > maxSelectedSkills\n ? translate('skill_focus_footer_error_description', {\n skillNumber: selectedSkillList.length - maxSelectedSkills\n })\n : translate('skill_focus_footer_description', {\n skillNumber: minSelectedSkills - selectedSkillList.length\n });\n return {\n text: isLoading || !isError ? '' : footerDescription,\n isError,\n cancelButton: {\n onCancel: handleCancel,\n label: translate('cancel'),\n disabled: isLoading || isError\n },\n confirmButton: {\n onConfirm: () => onConfirm(selectedSkillList),\n label: translate('confirm'),\n iconName: 'circle-check',\n disabled: isLoading || isError\n }\n };\n }, [\n isError,\n handleCancel,\n onConfirm,\n translate,\n selectedSkillList,\n isLoading,\n maxSelectedSkills,\n minSelectedSkills\n ]);\n\n const sorting = useMemo(\n () => ({\n theme: 'skillDetail',\n options: ['alphabetical', 'progress'].map(value => ({\n name: value === 'progress' ? translate('progress') : translate('alphabetical'),\n value,\n selected: currentSort === value\n })),\n onChange: value => setCurrentSort(value)\n }),\n [currentSort, translate]\n );\n\n useEffect(() => {\n // eslint-disable-next-line lodash-fp/no-extraneous-function-wrapping\n setSortedSkills(prev =>\n sortBy(\n skill => (currentSort === 'progress' ? -skillsScore[skill] : skillsLocales[skill]),\n prev\n )\n );\n }, [currentSort, skillsScore, skillsLocales, setSortedSkills]);\n\n if ((!isLoading && !skills) || !isOpen) return null;\n\n return (\n <BaseModal\n title={translate('skill_focus')}\n description={translate('skill_focus_description')}\n isOpen={isOpen}\n onClose={handleClose}\n footer={footer}\n headerIcon={{\n name: 'bullseye-arrow',\n backgroundColor: '#DDD1FF'\n }}\n >\n <div className={style.skillPickerContainer}>\n {isLoading ? (\n <div className={style.loaderContainer}>\n <Loader className={style.loader} theme=\"coorpmanager\" />\n </div>\n ) : (\n <>\n <div className={style.ctaWrapper}>\n <div>{`${selectedSkillList.length} ${translate('selected')}`}</div>\n {skillProgressAvailable ? (\n <div className={style.sortWrapper}>\n {translate('sort_by')}\n <Select {...sorting} aria-label=\"All courses sort\" />\n </div>\n ) : null}\n </div>\n <div style={{display: 'flex', gap: '16px', flexWrap: 'wrap'}}>\n {skillList.map((skill, index) => {\n const {skillTitle, skillRef, focus, score} = skill;\n function handleChipClick() {\n const newSelectedSkillList = focus\n ? filter(selectedSkill => selectedSkill !== skillRef, selectedSkillList)\n : [...selectedSkillList, skill.skillRef];\n setSelectedSkillList(newSelectedSkillList);\n }\n\n return (\n <Chip\n {...(skillProgressAvailable ? {subText: `${score.toFixed(1)}%`} : {})}\n text={skillTitle}\n selected={focus}\n onClick={handleChipClick}\n key={index}\n backgroundColor=\"skin\"\n />\n );\n })}\n </div>\n </>\n )}\n </div>\n </BaseModal>\n );\n};\n\nSkillPickerModal.contextTypes = {\n translate: Provider.childContextTypes.translate\n};\n\nSkillPickerModal.propTypes = {\n skills: PropTypes.arrayOf(PropTypes.string),\n selectedSkills: PropTypes.arrayOf(PropTypes.string),\n skillsLocales: PropTypes.objectOf(PropTypes.string),\n skillsScore: PropTypes.objectOf(PropTypes.number),\n isOpen: PropTypes.bool,\n isLoading: PropTypes.bool,\n minSelectedSkills: PropTypes.number,\n maxSelectedSkills: PropTypes.number,\n onCancel: PropTypes.func,\n onConfirm: PropTypes.func,\n onClose: PropTypes.func\n};\n\nexport default SkillPickerModal;\n"],"mappings":";;;;;;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;AAEA,MAAMA,gBAAgB,GAAG,CAACC,KAAD,EAAQC,OAAR,KAAoB;EAC3C,MAAM;IACJC,MADI;IAEJC,cAFI;IAGJC,aAHI;IAIJC,WAJI;IAKJC,MALI;IAMJC,SANI;IAOJC,iBAAiB,GAAG,CAPhB;IAQJC,iBAAiB,GAAG,CARhB;IASJC,QATI;IAUJC,SAVI;IAWJC;EAXI,IAYFZ,KAZJ;EAaA,MAAM;IAACa;EAAD,IAAcZ,OAApB;EAEA,MAAM,CAACa,YAAD,EAAeC,eAAf,IAAkC,IAAAC,eAAA,EAAS,sBAAOC,KAAK,IAAIb,aAAa,CAACa,KAAD,CAA7B,EAAsCf,MAAtC,CAAT,CAAxC;EACA,MAAM,CAACgB,WAAD,EAAcC,cAAd,IAAgC,IAAAH,eAAA,EAAS,cAAT,CAAtC;EACA,MAAM,CAACI,iBAAD,EAAoBC,oBAApB,IAA4C,IAAAL,eAAA,EAASb,cAAT,CAAlD;EAEA,MAAMmB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M,EAAEoE,kBAAA,CAAUK,IALS;EAM3BxE,SAAS,EAAEmE,kBAAA,CAAUK,IANM;EAO3BtE,iBAAiB,EAAEiE,kBAAA,CAAUI,MAPF;EAQ3BtE,iBAAiB,EAAEkE,kBAAA,CAAUI,MARF;EAS3BpE,QAAQ,EAAEgE,kBAAA,CAAUM,IATO;EAU3BrE,SAAS,EAAE+D,kBAAA,CAAUM,IAVM;EAW3BpE,OAAO,EAAE8D,kBAAA,CAAUM;AAXQ,CAA7B;eAcejF,gB"}
1
+ {"version":3,"file":"index.js","names":["SkillPickerModal","props","context","skills","selectedSkills","skillsLocales","skillsScore","isOpen","isLoading","maxSelectedSkills","minSelectedSkills","onCancel","onConfirm","onClose","translate","detectScrollbar","sortedSkills","setSortedSkills","useState","skill","currentSort","setCurrentSort","selectedSkillList","setSelectedSkillList","handleCancel","useCallback","handleClose","skillProgressAvailable","skillList","useMemo","map","skillTitle","skillRef","focus","includes","score","isError","length","footer","footerDescription","skillNumber","text","cancelButton","label","disabled","confirmButton","iconName","sorting","theme","options","value","name","selected","onChange","useEffect","prev","backgroundColor","style","skillPickerContainer","loaderContainer","loader","ctaWrapper","sortWrapper","display","gap","flexWrap","index","handleChipClick","newSelectedSkillList","selectedSkill","subText","toFixed","contextTypes","Provider","childContextTypes","propTypes","PropTypes","arrayOf","string","objectOf","number","bool","func"],"sources":["../../../src/molecule/skill-picker-modal/index.js"],"sourcesContent":["import React, {useMemo, useState, useCallback, useEffect} from 'react';\nimport PropTypes from 'prop-types';\nimport {filter, some, sortBy} from 'lodash/fp';\nimport BaseModal from '../base-modal';\nimport Chip from '../../atom/chip';\nimport Loader from '../../atom/loader';\nimport Select from '../../atom/select';\nimport Provider from '../../atom/provider';\nimport style from './style.css';\n\nconst SkillPickerModal = (props, context) => {\n const {\n skills,\n selectedSkills,\n skillsLocales,\n skillsScore,\n isOpen,\n isLoading,\n maxSelectedSkills = 6,\n minSelectedSkills = 3,\n onCancel,\n onConfirm,\n onClose\n } = props;\n const {translate} = context;\n\n const detectScrollbar = true;\n const [sortedSkills, setSortedSkills] = useState(sortBy(skill => skillsLocales[skill], skills));\n const [currentSort, setCurrentSort] = useState('alphabetical');\n const [selectedSkillList, setSelectedSkillList] = useState(selectedSkills);\n\n const handleCancel = useCallback(() => {\n setSelectedSkillList(selectedSkills);\n onCancel();\n }, [setSelectedSkillList, selectedSkills, onCancel]);\n\n const handleClose = useCallback(() => {\n setSelectedSkillList(selectedSkills);\n onClose();\n }, [setSelectedSkillList, selectedSkills, onClose]);\n\n const skillProgressAvailable = some(skill => skillsScore[skill] > 0, skills);\n\n const skillList = useMemo(() => {\n return sortedSkills.map(skill => {\n return {\n skillTitle: skillsLocales[skill],\n skillRef: skill,\n focus: selectedSkillList.includes(skill),\n score: skillsScore[skill]\n };\n });\n }, [sortedSkills, selectedSkillList, skillsLocales, skillsScore]);\n\n const isError = useMemo(\n () =>\n selectedSkillList.length > maxSelectedSkills || selectedSkillList.length < minSelectedSkills,\n [selectedSkillList, maxSelectedSkills, minSelectedSkills]\n );\n\n const footer = useMemo(() => {\n const footerDescription =\n selectedSkillList.length > maxSelectedSkills\n ? translate('skill_focus_footer_error_description', {\n skillNumber: selectedSkillList.length - maxSelectedSkills\n })\n : translate('skill_focus_footer_description', {\n skillNumber: minSelectedSkills - selectedSkillList.length\n });\n return {\n text: isLoading || !isError ? '' : footerDescription,\n isError,\n cancelButton: {\n onCancel: handleCancel,\n label: translate('cancel'),\n disabled: isLoading || isError\n },\n confirmButton: {\n onConfirm: () => onConfirm(selectedSkillList),\n label: translate('confirm'),\n iconName: 'circle-check',\n disabled: isLoading || isError\n }\n };\n }, [\n isError,\n handleCancel,\n onConfirm,\n translate,\n selectedSkillList,\n isLoading,\n maxSelectedSkills,\n minSelectedSkills\n ]);\n\n const sorting = useMemo(\n () => ({\n theme: 'skillDetail',\n options: ['alphabetical', 'progress'].map(value => ({\n name: value === 'progress' ? translate('progress') : translate('alphabetical'),\n value,\n selected: currentSort === value\n })),\n onChange: value => setCurrentSort(value)\n }),\n [currentSort, translate]\n );\n\n useEffect(() => {\n // eslint-disable-next-line lodash-fp/no-extraneous-function-wrapping\n setSortedSkills(prev =>\n sortBy(\n skill => (currentSort === 'progress' ? -skillsScore[skill] : skillsLocales[skill]),\n prev\n )\n );\n }, [currentSort, skillsScore, skillsLocales, setSortedSkills]);\n\n if ((!isLoading && !skills) || !isOpen) return null;\n\n return (\n <BaseModal\n title={translate('skill_focus')}\n description={translate('skill_focus_description')}\n isOpen={isOpen}\n onClose={handleClose}\n footer={footer}\n headerIcon={{\n name: 'bullseye-arrow',\n backgroundColor: '#DDD1FF'\n }}\n detectScrollbar={detectScrollbar}\n >\n <div className={style.skillPickerContainer}>\n {isLoading ? (\n <div className={style.loaderContainer}>\n <Loader className={style.loader} theme=\"coorpmanager\" />\n </div>\n ) : (\n <>\n <div className={style.ctaWrapper}>\n <div>{`${selectedSkillList.length} ${translate('selected')}`}</div>\n {skillProgressAvailable ? (\n <div className={style.sortWrapper}>\n {translate('sort_by')}\n <Select {...sorting} aria-label=\"All courses sort\" />\n </div>\n ) : null}\n </div>\n <div style={{display: 'flex', gap: '16px', flexWrap: 'wrap'}}>\n {skillList.map((skill, index) => {\n const {skillTitle, skillRef, focus, score} = skill;\n function handleChipClick() {\n const newSelectedSkillList = focus\n ? filter(selectedSkill => selectedSkill !== skillRef, selectedSkillList)\n : [...selectedSkillList, skill.skillRef];\n setSelectedSkillList(newSelectedSkillList);\n }\n\n return (\n <Chip\n {...(skillProgressAvailable ? {subText: `${score.toFixed(1)}%`} : {})}\n text={skillTitle}\n selected={focus}\n onClick={handleChipClick}\n key={index}\n backgroundColor=\"skin\"\n />\n );\n })}\n </div>\n </>\n )}\n </div>\n </BaseModal>\n );\n};\n\nSkillPickerModal.contextTypes = {\n translate: Provider.childContextTypes.translate\n};\n\nSkillPickerModal.propTypes = {\n skills: PropTypes.arrayOf(PropTypes.string),\n selectedSkills: PropTypes.arrayOf(PropTypes.string),\n skillsLocales: PropTypes.objectOf(PropTypes.string),\n skillsScore: PropTypes.objectOf(PropTypes.number),\n isOpen: PropTypes.bool,\n isLoading: PropTypes.bool,\n minSelectedSkills: PropTypes.number,\n maxSelectedSkills: PropTypes.number,\n onCancel: PropTypes.func,\n onConfirm: PropTypes.func,\n onClose: PropTypes.func\n};\n\nexport default SkillPickerModal;\n"],"mappings":";;;;;;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;AAEA,MAAMA,gBAAgB,GAAG,CAACC,KAAD,EAAQC,OAAR,KAAoB;EAC3C,MAAM;IACJC,MADI;IAEJC,cAFI;IAGJC,aAHI;IAIJC,WAJI;IAKJC,MALI;IAMJC,SANI;IAOJC,iBAAiB,GAAG,CAPhB;IAQJC,iBAAiB,GAAG,CARhB;IASJC,QATI;IAUJC,SAVI;IAWJC;EAXI,IAYFZ,KAZJ;EAaA,MAAM;IAACa;EAAD,IAAcZ,OAApB;EAEA,MAAMa,eAAe,GAAG,IAAxB;EACA,MAAM,CAACC,YAAD,EAAeC,eAAf,IAAkC,IAAAC,eAAA,EAAS,sBAAOC,KAAK,IAAId,aAAa,CAACc,KAAD,CAA7B,EAAsChB,MAAtC,CAAT,CAAxC;EACA,MAAM,CAACiB,WAAD,EAAcC,cAAd,IAAgC,IAAAH,eAAA,EAAS,cAAT,CAAtC;EACA,MAAM,CAACI,iBAAD,EAAoBC,oBAApB,IAA4C,IAAAL,eAAA,EAASd,cAAT,CAAlD;EAEA,MAAMoB,YAAY,GAAG,IAAAC,kBAAA,EAAY,MAAM;IACrCF,oBAAoB,CAACnB,cAAD,CAApB;IACAO,QAAQ;EACT,CAHoB,EAGlB,CAACY,oBAAD,EAAuBnB,cAAvB,EAAuCO,QAAvC,CAHkB,CAArB;EAKA,MAAMe,WAAW,GAAG,IAAAD,kBAAA,EAAY,MAAM;IACpCF,oBAAoB,CAACnB,cAAD,CAApB;IACAS,OAAO;EACR,CAHmB,EAGjB,CAACU,oBAAD,E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AAO,EAAE+D,kBAAA,CAAUM;AAXQ,CAA7B;eAcelF,gB"}
@@ -0,0 +1,85 @@
1
+ export default TranslationModal;
2
+ declare function TranslationModal(props: any, context: any): JSX.Element | null;
3
+ declare namespace TranslationModal {
4
+ namespace contextTypes {
5
+ const translate: PropTypes.Requireable<(...args: any[]) => any>;
6
+ }
7
+ namespace propTypes {
8
+ const isOpen: PropTypes.Requireable<boolean>;
9
+ const onCancel: PropTypes.Requireable<(...args: any[]) => any>;
10
+ const onConfirm: PropTypes.Requireable<(...args: any[]) => any>;
11
+ const onClose: PropTypes.Requireable<(...args: any[]) => any>;
12
+ const source: PropTypes.Requireable<PropTypes.InferProps<{
13
+ inputText: PropTypes.Requireable<PropTypes.InferProps<{
14
+ theme: PropTypes.Requireable<string>;
15
+ autoFocus: PropTypes.Requireable<boolean>;
16
+ title: PropTypes.Requireable<string>;
17
+ placeholder: PropTypes.Requireable<string>;
18
+ defaultValue: PropTypes.Requireable<string>;
19
+ disabled: PropTypes.Requireable<boolean>;
20
+ value: PropTypes.Requireable<string>;
21
+ hint: PropTypes.Requireable<string>;
22
+ error: PropTypes.Requireable<string>;
23
+ onChange: PropTypes.Requireable<(...args: any[]) => any>;
24
+ description: PropTypes.Requireable<string>;
25
+ modified: PropTypes.Requireable<boolean>;
26
+ type: PropTypes.Requireable<string>;
27
+ valid: PropTypes.Requireable<boolean>;
28
+ 'aria-label': PropTypes.Requireable<string>;
29
+ 'data-name': PropTypes.Requireable<string>;
30
+ }>>;
31
+ textArea: PropTypes.Requireable<PropTypes.InferProps<{
32
+ theme: PropTypes.Requireable<string>;
33
+ placeholder: PropTypes.Requireable<string>;
34
+ title: PropTypes.Requireable<string>;
35
+ name: PropTypes.Requireable<string>;
36
+ disabled: PropTypes.Requireable<boolean>;
37
+ value: PropTypes.Requireable<string>;
38
+ hint: PropTypes.Requireable<string>;
39
+ error: PropTypes.Requireable<string>;
40
+ onChange: PropTypes.Requireable<(...args: any[]) => any>;
41
+ description: PropTypes.Requireable<string>;
42
+ modified: PropTypes.Requireable<boolean>;
43
+ valid: PropTypes.Requireable<boolean>;
44
+ }>>;
45
+ inputLanguage: PropTypes.Requireable<string>;
46
+ }>>;
47
+ const target: PropTypes.Requireable<PropTypes.InferProps<{
48
+ inputText: PropTypes.Requireable<PropTypes.InferProps<{
49
+ theme: PropTypes.Requireable<string>;
50
+ autoFocus: PropTypes.Requireable<boolean>;
51
+ title: PropTypes.Requireable<string>;
52
+ placeholder: PropTypes.Requireable<string>;
53
+ defaultValue: PropTypes.Requireable<string>;
54
+ disabled: PropTypes.Requireable<boolean>;
55
+ value: PropTypes.Requireable<string>;
56
+ hint: PropTypes.Requireable<string>;
57
+ error: PropTypes.Requireable<string>;
58
+ onChange: PropTypes.Requireable<(...args: any[]) => any>;
59
+ description: PropTypes.Requireable<string>;
60
+ modified: PropTypes.Requireable<boolean>;
61
+ type: PropTypes.Requireable<string>;
62
+ valid: PropTypes.Requireable<boolean>;
63
+ 'aria-label': PropTypes.Requireable<string>;
64
+ 'data-name': PropTypes.Requireable<string>;
65
+ }>>;
66
+ textArea: PropTypes.Requireable<PropTypes.InferProps<{
67
+ theme: PropTypes.Requireable<string>;
68
+ placeholder: PropTypes.Requireable<string>;
69
+ title: PropTypes.Requireable<string>;
70
+ name: PropTypes.Requireable<string>;
71
+ disabled: PropTypes.Requireable<boolean>;
72
+ value: PropTypes.Requireable<string>;
73
+ hint: PropTypes.Requireable<string>;
74
+ error: PropTypes.Requireable<string>;
75
+ onChange: PropTypes.Requireable<(...args: any[]) => any>;
76
+ description: PropTypes.Requireable<string>;
77
+ modified: PropTypes.Requireable<boolean>;
78
+ valid: PropTypes.Requireable<boolean>;
79
+ }>>;
80
+ language: PropTypes.Requireable<string>;
81
+ }>>;
82
+ }
83
+ }
84
+ import PropTypes from "prop-types";
85
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/translation-modal/index.js"],"names":[],"mappings":";AAmBA,gFAkGC"}
@@ -0,0 +1,168 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.default = void 0;
5
+
6
+ var _react = _interopRequireWildcard(require("react"));
7
+
8
+ var _propTypes = _interopRequireDefault(require("prop-types"));
9
+
10
+ var _baseModal = _interopRequireDefault(require("../base-modal"));
11
+
12
+ var _provider = _interopRequireDefault(require("../../atom/provider"));
13
+
14
+ var _colors = require("../../variables/colors");
15
+
16
+ var _inputText = _interopRequireDefault(require("../../atom/input-text"));
17
+
18
+ var _inputTextarea = _interopRequireDefault(require("../../atom/input-textarea"));
19
+
20
+ var _style = _interopRequireDefault(require("./style.css"));
21
+
22
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
23
+
24
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
25
+
26
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
27
+
28
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
29
+
30
+ const renderInputGroup = ({
31
+ title,
32
+ inputProps,
33
+ textAreaProps,
34
+ disabled
35
+ }) => {
36
+ return /*#__PURE__*/_react.default.createElement("div", {
37
+ className: _style.default.inputGroup
38
+ }, /*#__PURE__*/_react.default.createElement("div", {
39
+ className: _style.default.title
40
+ }, title), /*#__PURE__*/_react.default.createElement(_inputText.default, _extends({}, inputProps, {
41
+ disabled: disabled
42
+ })), /*#__PURE__*/_react.default.createElement(_inputTextarea.default, _extends({}, textAreaProps, {
43
+ disabled: disabled
44
+ })));
45
+ };
46
+
47
+ const TranslationModal = (props, context) => {
48
+ const {
49
+ isOpen,
50
+ onCancel,
51
+ onConfirm,
52
+ onClose,
53
+ source: {
54
+ inputText: sourceInputText,
55
+ textArea: sourceTextArea,
56
+ inputLanguage
57
+ },
58
+ target: {
59
+ inputText: targetInputText,
60
+ textArea: targetTextArea,
61
+ language: outputLanguage
62
+ }
63
+ } = props;
64
+ const {
65
+ translate
66
+ } = context;
67
+ const detectScrollbar = true;
68
+ const [inputValue, setInputValue] = (0, _react.useState)(targetInputText?.value || '');
69
+ const [textAreaValue, setTextAreaValue] = (0, _react.useState)(targetTextArea?.value || '');
70
+ const handleCancel = (0, _react.useCallback)(() => {
71
+ onCancel();
72
+ }, [onCancel]);
73
+ const handleClose = (0, _react.useCallback)(() => {
74
+ onClose();
75
+ }, [onClose]);
76
+ const handleInputChange = (0, _react.useCallback)(e => {
77
+ setInputValue(e.target.value);
78
+ }, []);
79
+ const handleTextAreaChange = (0, _react.useCallback)(e => {
80
+ setTextAreaValue(e.target.value);
81
+ }, []);
82
+ const isConfirmDisabled = (0, _react.useMemo)(() => {
83
+ return !inputValue.trim() || !textAreaValue.trim();
84
+ }, [inputValue, textAreaValue]);
85
+ const footer = (0, _react.useMemo)(() => {
86
+ return {
87
+ cancelButton: {
88
+ onCancel: handleCancel,
89
+ label: translate('cancel')
90
+ },
91
+ confirmButton: {
92
+ onConfirm: () => {
93
+ onConfirm();
94
+ },
95
+ label: translate('confirm'),
96
+ iconName: 'plus',
97
+ disabled: isConfirmDisabled,
98
+ color: _colors.COLORS.cm_primary_blue
99
+ }
100
+ };
101
+ }, [handleCancel, onConfirm, translate, isConfirmDisabled]);
102
+ if (!isOpen) return null;
103
+ return /*#__PURE__*/_react.default.createElement(_baseModal.default, {
104
+ title: translate('translation_title'),
105
+ description: translate('translation_description'),
106
+ isOpen: isOpen,
107
+ onClose: handleClose,
108
+ footer: footer,
109
+ headerIcon: {
110
+ name: 'language',
111
+ backgroundColor: '#D6E6FF'
112
+ },
113
+ detectScrollbar: detectScrollbar
114
+ }, /*#__PURE__*/_react.default.createElement("div", {
115
+ className: _style.default.translationModal
116
+ }, /*#__PURE__*/_react.default.createElement("div", {
117
+ className: _style.default.horizontalSection
118
+ }, renderInputGroup({
119
+ title: inputLanguage,
120
+ inputProps: sourceInputText,
121
+ textAreaProps: sourceTextArea,
122
+ disabled: true
123
+ }), /*#__PURE__*/_react.default.createElement("div", {
124
+ className: _style.default.separator
125
+ }), renderInputGroup({
126
+ title: outputLanguage,
127
+ inputProps: _extends({}, targetInputText, {
128
+ value: inputValue,
129
+ onChange: handleInputChange
130
+ }),
131
+ textAreaProps: _extends({}, targetTextArea, {
132
+ value: textAreaValue,
133
+ onChange: handleTextAreaChange
134
+ }),
135
+ disabled: false
136
+ }))));
137
+ };
138
+
139
+ TranslationModal.contextTypes = {
140
+ translate: _provider.default.childContextTypes.translate
141
+ };
142
+ TranslationModal.propTypes = process.env.NODE_ENV !== "production" ? {
143
+ isOpen: _propTypes.default.bool,
144
+ onCancel: _propTypes.default.func,
145
+ onConfirm: _propTypes.default.func,
146
+ onClose: _propTypes.default.func,
147
+ source: _propTypes.default.shape({
148
+ inputText: _propTypes.default.shape(_extends({}, _inputText.default.propTypes, {
149
+ theme: _propTypes.default.string
150
+ })),
151
+ textArea: _propTypes.default.shape(_extends({}, _inputTextarea.default.propTypes, {
152
+ theme: _propTypes.default.string
153
+ })),
154
+ inputLanguage: _propTypes.default.string
155
+ }),
156
+ target: _propTypes.default.shape({
157
+ inputText: _propTypes.default.shape(_extends({}, _inputText.default.propTypes, {
158
+ theme: _propTypes.default.string
159
+ })),
160
+ textArea: _propTypes.default.shape(_extends({}, _inputTextarea.default.propTypes, {
161
+ theme: _propTypes.default.string
162
+ })),
163
+ language: _propTypes.default.string
164
+ })
165
+ } : {};
166
+ var _default = TranslationModal;
167
+ exports.default = _default;
168
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["renderInputGroup","title","inputProps","textAreaProps","disabled","style","inputGroup","TranslationModal","props","context","isOpen","onCancel","onConfirm","onClose","source","inputText","sourceInputText","textArea","sourceTextArea","inputLanguage","target","targetInputText","targetTextArea","language","outputLanguage","translate","detectScrollbar","inputValue","setInputValue","useState","value","textAreaValue","setTextAreaValue","handleCancel","useCallback","handleClose","handleInputChange","e","handleTextAreaChange","isConfirmDisabled","useMemo","trim","footer","cancelButton","label","confirmButton","iconName","color","COLORS","cm_primary_blue","name","backgroundColor","translationModal","horizontalSection","separator","onChange","contextTypes","Provider","childContextTypes","propTypes","PropTypes","bool","func","shape","InputText","theme","string","TextArea"],"sources":["../../../src/molecule/translation-modal/index.js"],"sourcesContent":["import React, {useMemo, useCallback, useState} from 'react';\nimport PropTypes from 'prop-types';\nimport BaseModal from '../base-modal';\nimport Provider from '../../atom/provider';\nimport {COLORS} from '../../variables/colors';\nimport InputText from '../../atom/input-text';\nimport TextArea from '../../atom/input-textarea';\nimport style from './style.css';\n\nconst renderInputGroup = ({title, inputProps, textAreaProps, disabled}) => {\n return (\n <div className={style.inputGroup}>\n <div className={style.title}>{title}</div>\n <InputText {...inputProps} disabled={disabled} />\n <TextArea {...textAreaProps} disabled={disabled} />\n </div>\n );\n};\n\nconst TranslationModal = (props, context) => {\n const {\n isOpen,\n onCancel,\n onConfirm,\n onClose,\n source: {inputText: sourceInputText, textArea: sourceTextArea, inputLanguage},\n target: {inputText: targetInputText, textArea: targetTextArea, language: outputLanguage}\n } = props;\n const {translate} = context;\n\n const detectScrollbar = true;\n\n const [inputValue, setInputValue] = useState(targetInputText?.value || '');\n const [textAreaValue, setTextAreaValue] = useState(targetTextArea?.value || '');\n\n const handleCancel = useCallback(() => {\n onCancel();\n }, [onCancel]);\n\n const handleClose = useCallback(() => {\n onClose();\n }, [onClose]);\n\n const handleInputChange = useCallback(e => {\n setInputValue(e.target.value);\n }, []);\n\n const handleTextAreaChange = useCallback(e => {\n setTextAreaValue(e.target.value);\n }, []);\n\n const isConfirmDisabled = useMemo(() => {\n return !inputValue.trim() || !textAreaValue.trim();\n }, [inputValue, textAreaValue]);\n\n const footer = useMemo(() => {\n return {\n cancelButton: {\n onCancel: handleCancel,\n label: translate('cancel')\n },\n confirmButton: {\n onConfirm: () => {\n onConfirm();\n },\n label: translate('confirm'),\n iconName: 'plus',\n disabled: isConfirmDisabled,\n color: COLORS.cm_primary_blue\n }\n };\n }, [handleCancel, onConfirm, translate, isConfirmDisabled]);\n\n if (!isOpen) return null;\n\n return (\n <BaseModal\n title={translate('translation_title')}\n description={translate('translation_description')}\n isOpen={isOpen}\n onClose={handleClose}\n footer={footer}\n headerIcon={{\n name: 'language',\n backgroundColor: '#D6E6FF'\n }}\n detectScrollbar={detectScrollbar}\n >\n <div className={style.translationModal}>\n <div className={style.horizontalSection}>\n {renderInputGroup({\n title: inputLanguage,\n inputProps: sourceInputText,\n textAreaProps: sourceTextArea,\n disabled: true\n })}\n\n <div className={style.separator} />\n\n {renderInputGroup({\n title: outputLanguage,\n inputProps: {\n ...targetInputText,\n value: inputValue,\n onChange: handleInputChange\n },\n textAreaProps: {\n ...targetTextArea,\n value: textAreaValue,\n onChange: handleTextAreaChange\n },\n disabled: false\n })}\n </div>\n </div>\n </BaseModal>\n );\n};\n\nTranslationModal.contextTypes = {\n translate: Provider.childContextTypes.translate\n};\n\nTranslationModal.propTypes = {\n isOpen: PropTypes.bool,\n onCancel: PropTypes.func,\n onConfirm: PropTypes.func,\n onClose: PropTypes.func,\n source: PropTypes.shape({\n inputText: PropTypes.shape({\n ...InputText.propTypes,\n theme: PropTypes.string\n }),\n textArea: PropTypes.shape({\n ...TextArea.propTypes,\n theme: PropTypes.string\n }),\n inputLanguage: PropTypes.string\n }),\n target: PropTypes.shape({\n inputText: PropTypes.shape({\n ...InputText.propTypes,\n theme: PropTypes.string\n }),\n textArea: PropTypes.shape({\n ...TextArea.propTypes,\n theme: PropTypes.string\n }),\n language: PropTypes.string\n })\n};\n\nexport default TranslationModal;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;AAEA,MAAMA,gBAAgB,GAAG,CAAC;EAACC,KAAD;EAAQC,UAAR;EAAoBC,aAApB;EAAmCC;AAAnC,CAAD,KAAkD;EACzE,oBACE;IAAK,SAAS,EAAEC,cAAA,CAAMC;EAAtB,gBACE;IAAK,SAAS,EAAED,cAAA,CAAMJ;EAAtB,GAA8BA,KAA9B,CADF,eAEE,6BAAC,kBAAD,eAAeC,UAAf;IAA2B,QAAQ,EAAEE;EAArC,GAFF,eAGE,6BAAC,sBAAD,eAAcD,aAAd;IAA6B,QAAQ,EAAEC;EAAvC,GAHF,CADF;AAOD,CARD;;AAUA,MAAMG,gBAAgB,GAAG,CAACC,KAAD,EAAQC,OAAR,KAAoB;EAC3C,MAAM;IACJC,MADI;IAEJC,QAFI;IAGJC,SAHI;IAIJC,OAJI;IAKJC,MAAM,EAAE;MAACC,SAAS,EAAEC,eAAZ;MAA6BC,QAAQ,EAAEC,cAAvC;MAAuDC;IAAvD,CALJ;IAMJC,MAAM,EAAE;MAACL,SAAS,EAAEM,eAAZ;MAA6BJ,QAAQ,EAAEK,cAAvC;MAAuDC,QAAQ,EAAEC;IAAjE;EANJ,IAOFhB,KAPJ;EAQA,MAAM;IAACiB;EAAD,IAAchB,OAApB;EAEA,MAAMiB,eAAe,GAAG,IAAx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lB,gBAAgB,CAACoD,SAAjB,2CAA6B;EAC3BjD,MAAM,EAAEkD,kBAAA,CAAUC,IADS;EAE3BlD,QAAQ,EAAEiD,kBAAA,CAAUE,IAFO;EAG3BlD,SAAS,EAAEgD,kBAAA,CAAUE,IAHM;EAI3BjD,OAAO,EAAE+C,kBAAA,CAAUE,IAJQ;EAK3BhD,MAAM,EAAE8C,kBAAA,CAAUG,KAAV,CAAgB;IACtBhD,SAAS,EAAE6C,kBAAA,CAAUG,KAAV,cACNC,kBAAA,CAAUL,SADJ;MAETM,KAAK,EAAEL,kBAAA,CAAUM;IAFR,GADW;IAKtBjD,QAAQ,EAAE2C,kBAAA,CAAUG,KAAV,cACLI,sBAAA,CAASR,SADJ;MAERM,KAAK,EAAEL,kBAAA,CAAUM;IAFT,GALY;IAStB/C,aAAa,EAAEyC,kBAAA,CAAUM;EATH,CAAhB,CALmB;EAgB3B9C,MAAM,EAAEwC,kBAAA,CAAUG,KAAV,CAAgB;IACtBhD,SAAS,EAAE6C,kBAAA,CAAUG,KAAV,cACNC,kBAAA,CAAUL,SADJ;MAETM,KAAK,EAAEL,kBAAA,CAAUM;IAFR,GADW;IAKtBjD,QAAQ,EAAE2C,kBAAA,CAAUG,KAAV,cACLI,sBAAA,CAASR,SADJ;MAERM,KAAK,EAAEL,kBAAA,CAAUM;IAFT,GALY;IAStB3C,QAAQ,EAAEqC,kBAAA,CAAUM;EATE,CAAhB;AAhBmB,CAA7B;eA6Be3D,gB"}
@@ -0,0 +1,45 @@
1
+ @value colors: "../../variables/colors.css";
2
+ @value cm_grey_100 from colors;
3
+ @value cm_grey_700 from colors;
4
+
5
+ .translationModal {
6
+ width: calc(71vw - 68px);
7
+ max-width: 612px;
8
+ }
9
+
10
+ @media mobile {
11
+ .translationModal {
12
+ width: 100%;
13
+ }
14
+ }
15
+
16
+ .title {
17
+ color: cm_grey_700;
18
+ font-family: Gilroy;
19
+ font-size: 16px;
20
+ font-style: normal;
21
+ font-weight: 600;
22
+ line-height: 22px;
23
+ }
24
+
25
+ .inputGroup {
26
+ display: flex;
27
+ flex-direction: column;
28
+ flex: 1;
29
+ gap: 30px;
30
+ }
31
+
32
+ .horizontalSection {
33
+ display: flex;
34
+ justify-content: space-between;
35
+ align-items: flex-start;
36
+ }
37
+
38
+ .separator {
39
+ width: 2px;
40
+ flex-shrink: 0;
41
+ height: auto;
42
+ align-self: stretch;
43
+ background: cm_grey_100;
44
+ margin: 0 16px;
45
+ }
@@ -16,6 +16,8 @@ declare namespace ListItems {
16
16
  label: PropTypes.Requireable<string>;
17
17
  content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
18
18
  'aria-label': PropTypes.Requireable<string>;
19
+ tooltipText: PropTypes.Requireable<string>;
20
+ tooltipPlacement: PropTypes.Requireable<string>;
19
21
  'data-name': PropTypes.Requireable<string>;
20
22
  'data-testid': PropTypes.Requireable<string>;
21
23
  icon: PropTypes.Requireable<PropTypes.InferProps<{
@@ -167,6 +169,8 @@ declare namespace ListItems {
167
169
  label: PropTypes.Requireable<string>;
168
170
  content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
169
171
  'aria-label': PropTypes.Requireable<string>;
172
+ tooltipText: PropTypes.Requireable<string>;
173
+ tooltipPlacement: PropTypes.Requireable<string>;
170
174
  'data-name': PropTypes.Requireable<string>;
171
175
  'data-testid': PropTypes.Requireable<string>;
172
176
  icon: PropTypes.Requireable<PropTypes.InferProps<{
@@ -9,6 +9,8 @@ declare namespace SetupHeader {
9
9
  label: PropTypes.Requireable<string>;
10
10
  content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
11
11
  'aria-label': PropTypes.Requireable<string>;
12
+ tooltipText: PropTypes.Requireable<string>;
13
+ tooltipPlacement: PropTypes.Requireable<string>;
12
14
  'data-name': PropTypes.Requireable<string>;
13
15
  'data-testid': PropTypes.Requireable<string>;
14
16
  icon: PropTypes.Requireable<PropTypes.InferProps<{
@@ -33,6 +35,8 @@ declare namespace SetupHeader {
33
35
  label: PropTypes.Requireable<string>;
34
36
  content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
35
37
  'aria-label': PropTypes.Requireable<string>;
38
+ tooltipText: PropTypes.Requireable<string>;
39
+ tooltipPlacement: PropTypes.Requireable<string>;
36
40
  'data-name': PropTypes.Requireable<string>;
37
41
  'data-testid': PropTypes.Requireable<string>;
38
42
  icon: PropTypes.Requireable<PropTypes.InferProps<{
@@ -57,6 +61,8 @@ declare namespace SetupHeader {
57
61
  label: PropTypes.Requireable<string>;
58
62
  content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
59
63
  'aria-label': PropTypes.Requireable<string>;
64
+ tooltipText: PropTypes.Requireable<string>;
65
+ tooltipPlacement: PropTypes.Requireable<string>;
60
66
  'data-name': PropTypes.Requireable<string>;
61
67
  'data-testid': PropTypes.Requireable<string>;
62
68
  icon: PropTypes.Requireable<PropTypes.InferProps<{
@@ -81,6 +87,8 @@ declare namespace SetupHeader {
81
87
  label: PropTypes.Requireable<string>;
82
88
  content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
83
89
  'aria-label': PropTypes.Requireable<string>;
90
+ tooltipText: PropTypes.Requireable<string>;
91
+ tooltipPlacement: PropTypes.Requireable<string>;
84
92
  'data-name': PropTypes.Requireable<string>;
85
93
  'data-testid': PropTypes.Requireable<string>;
86
94
  icon: PropTypes.Requireable<PropTypes.InferProps<{
@@ -25,6 +25,8 @@ declare namespace WizardContents {
25
25
  label: PropTypes.Requireable<string>;
26
26
  content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
27
27
  'aria-label': PropTypes.Requireable<string>;
28
+ tooltipText: PropTypes.Requireable<string>;
29
+ tooltipPlacement: PropTypes.Requireable<string>;
28
30
  'data-name': PropTypes.Requireable<string>;
29
31
  'data-testid': PropTypes.Requireable<string>;
30
32
  icon: PropTypes.Requireable<PropTypes.InferProps<{
@@ -49,6 +51,8 @@ declare namespace WizardContents {
49
51
  label: PropTypes.Requireable<string>;
50
52
  content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
51
53
  'aria-label': PropTypes.Requireable<string>;
54
+ tooltipText: PropTypes.Requireable<string>;
55
+ tooltipPlacement: PropTypes.Requireable<string>;
52
56
  'data-name': PropTypes.Requireable<string>;
53
57
  'data-testid': PropTypes.Requireable<string>;
54
58
  icon: PropTypes.Requireable<PropTypes.InferProps<{
@@ -448,6 +452,8 @@ declare namespace WizardContents {
448
452
  label: PropTypes.Requireable<string>;
449
453
  content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
450
454
  'aria-label': PropTypes.Requireable<string>;
455
+ tooltipText: PropTypes.Requireable<string>;
456
+ tooltipPlacement: PropTypes.Requireable<string>;
451
457
  'data-name': PropTypes.Requireable<string>;
452
458
  'data-testid': PropTypes.Requireable<string>;
453
459
  icon: PropTypes.Requireable<PropTypes.InferProps<{
@@ -97,6 +97,8 @@ declare namespace PlayerLoading {
97
97
  label: PropTypes.Requireable<string>;
98
98
  content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
99
99
  'aria-label': PropTypes.Requireable<string>;
100
+ tooltipText: PropTypes.Requireable<string>;
101
+ tooltipPlacement: PropTypes.Requireable<string>;
100
102
  'data-name': PropTypes.Requireable<string>;
101
103
  'data-testid': PropTypes.Requireable<string>;
102
104
  icon: PropTypes.Requireable<PropTypes.InferProps<{
@@ -248,6 +250,8 @@ declare namespace PlayerLoading {
248
250
  label: PropTypes.Requireable<string>;
249
251
  content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
250
252
  'aria-label': PropTypes.Requireable<string>;
253
+ tooltipText: PropTypes.Requireable<string>;
254
+ tooltipPlacement: PropTypes.Requireable<string>;
251
255
  'data-name': PropTypes.Requireable<string>;
252
256
  'data-testid': PropTypes.Requireable<string>;
253
257
  icon: PropTypes.Requireable<PropTypes.InferProps<{
@@ -148,6 +148,8 @@ declare namespace SlidePlayer {
148
148
  label: PropTypes.Requireable<string>;
149
149
  content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
150
150
  'aria-label': PropTypes.Requireable<string>;
151
+ tooltipText: PropTypes.Requireable<string>;
152
+ tooltipPlacement: PropTypes.Requireable<string>;
151
153
  'data-name': PropTypes.Requireable<string>;
152
154
  'data-testid': PropTypes.Requireable<string>;
153
155
  icon: PropTypes.Requireable<PropTypes.InferProps<{
@@ -299,6 +301,8 @@ declare namespace SlidePlayer {
299
301
  label: PropTypes.Requireable<string>;
300
302
  content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
301
303
  'aria-label': PropTypes.Requireable<string>;
304
+ tooltipText: PropTypes.Requireable<string>;
305
+ tooltipPlacement: PropTypes.Requireable<string>;
302
306
  'data-name': PropTypes.Requireable<string>;
303
307
  'data-testid': PropTypes.Requireable<string>;
304
308
  icon: PropTypes.Requireable<PropTypes.InferProps<{
@@ -453,6 +457,8 @@ declare namespace SlidePlayer {
453
457
  label: PropTypes.Requireable<string>;
454
458
  content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
455
459
  'aria-label': PropTypes.Requireable<string>;
460
+ tooltipText: PropTypes.Requireable<string>;
461
+ tooltipPlacement: PropTypes.Requireable<string>;
456
462
  'data-name': PropTypes.Requireable<string>;
457
463
  'data-testid': PropTypes.Requireable<string>;
458
464
  icon: PropTypes.Requireable<PropTypes.InferProps<{
@@ -604,6 +610,8 @@ declare namespace SlidePlayer {
604
610
  label: PropTypes.Requireable<string>;
605
611
  content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
606
612
  'aria-label': PropTypes.Requireable<string>;
613
+ tooltipText: PropTypes.Requireable<string>;
614
+ tooltipPlacement: PropTypes.Requireable<string>;
607
615
  'data-name': PropTypes.Requireable<string>;
608
616
  'data-testid': PropTypes.Requireable<string>;
609
617
  icon: PropTypes.Requireable<PropTypes.InferProps<{
@@ -154,6 +154,8 @@ declare namespace SlidesPlayer {
154
154
  label: PropTypes.Requireable<string>;
155
155
  content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
156
156
  'aria-label': PropTypes.Requireable<string>;
157
+ tooltipText: PropTypes.Requireable<string>;
158
+ tooltipPlacement: PropTypes.Requireable<string>;
157
159
  'data-name': PropTypes.Requireable<string>;
158
160
  'data-testid': PropTypes.Requireable<string>;
159
161
  icon: PropTypes.Requireable<PropTypes.InferProps<{
@@ -305,6 +307,8 @@ declare namespace SlidesPlayer {
305
307
  label: PropTypes.Requireable<string>;
306
308
  content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
307
309
  'aria-label': PropTypes.Requireable<string>;
310
+ tooltipText: PropTypes.Requireable<string>;
311
+ tooltipPlacement: PropTypes.Requireable<string>;
308
312
  'data-name': PropTypes.Requireable<string>;
309
313
  'data-testid': PropTypes.Requireable<string>;
310
314
  icon: PropTypes.Requireable<PropTypes.InferProps<{
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/template/app-player/player/slides/index.js"],"names":[],"mappings":";AA+aA,qEAkBC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA1ID;;uBAyBC;;;;;;;;;;;;;;;;;;;;;;;;;AArPD;;;gBAaC;;;;;;;;;;;;;AAyDD;;;;gBAEC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAlHD,oEAQC;;;;;;;;;AAgND;;gBAiBC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA/GD,qEAaC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/template/app-player/player/slides/index.js"],"names":[],"mappings":";AA+aA,qEAkBC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA1ID;;uBAyBC;;;;;;;;;;;;;;;;;;;;;;;;;AArPD;;;gBAaC;;;;;;;;;;;;;AAyDD;;;;gBAEC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAlHD,oEAQC;;;;;;;;;AAgND;;gBAiBC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA/GD,qEAaC"}
@@ -184,6 +184,8 @@ declare class PopinCorrection extends React.Component<any, any, any> {
184
184
  label: PropTypes.Requireable<string>;
185
185
  content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
186
186
  'aria-label': PropTypes.Requireable<string>;
187
+ tooltipText: PropTypes.Requireable<string>;
188
+ tooltipPlacement: PropTypes.Requireable<string>;
187
189
  'data-name': PropTypes.Requireable<string>;
188
190
  'data-testid': PropTypes.Requireable<string>;
189
191
  icon: PropTypes.Requireable<PropTypes.InferProps<{
@@ -335,6 +337,8 @@ declare class PopinCorrection extends React.Component<any, any, any> {
335
337
  label: PropTypes.Requireable<string>;
336
338
  content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
337
339
  'aria-label': PropTypes.Requireable<string>;
340
+ tooltipText: PropTypes.Requireable<string>;
341
+ tooltipPlacement: PropTypes.Requireable<string>;
338
342
  'data-name': PropTypes.Requireable<string>;
339
343
  'data-testid': PropTypes.Requireable<string>;
340
344
  icon: PropTypes.Requireable<PropTypes.InferProps<{
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/app-player/popin-correction/index.js"],"names":[],"mappings":";AAmGA;IACE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAmBE;IAEF;;;;;;;;;;;;;;;;;;;;;;MAEE;IAEF,wBAIC;IAFC;;MAA0B;IAkB5B,gCAEC;IAhBD,0BAEC;IAED,kBAQC;IALC,gCAIE;IAIF,aAAsB;IAGxB,sBAsEC;CACF"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/app-player/popin-correction/index.js"],"names":[],"mappings":";AAmGA;IACE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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