@lotte-innovate/ui-component-test 0.0.115 → 0.0.117

Sign up to get free protection for your applications and to get access to all the features.
Files changed (559) hide show
  1. package/dist/globals.css +3 -3
  2. package/dist/lib/color/alpha.mjs.map +1 -0
  3. package/dist/lib/color/constants.mjs.map +1 -0
  4. package/dist/lib/color/light.mjs.map +1 -0
  5. package/dist/lib/components/AlertDialog/index.mjs.map +1 -0
  6. package/dist/lib/components/BarChart/index.mjs.map +1 -0
  7. package/dist/lib/components/Breadcrumb/BreadcrumbEllipsis.mjs.map +1 -0
  8. package/dist/lib/components/Breadcrumb/BreadcrumbItem.mjs.map +1 -0
  9. package/dist/lib/components/Breadcrumb/BreadcrumbLink.mjs.map +1 -0
  10. package/dist/lib/components/Breadcrumb/BreadcrumbList.mjs.map +1 -0
  11. package/dist/lib/components/Breadcrumb/BreadcrumbPage.mjs.map +1 -0
  12. package/dist/lib/components/Breadcrumb/BreadcrumbSeparator.mjs.map +1 -0
  13. package/dist/lib/components/Breadcrumb/index.mjs.map +1 -0
  14. package/dist/lib/components/BubbleChart/index.mjs.map +1 -0
  15. package/dist/lib/components/Callout/index.mjs.map +1 -0
  16. package/dist/lib/components/CheckboxGroup/index.mjs.map +1 -0
  17. package/dist/lib/components/ContextMenu/ContextMenuGroup.mjs.map +1 -0
  18. package/dist/lib/components/ContextMenu/ContextMenuSeparator.mjs.map +1 -0
  19. package/dist/lib/components/ContextMenu/ContextMenuTrigger.mjs.map +1 -0
  20. package/dist/lib/components/ContextMenu/index.mjs.map +1 -0
  21. package/dist/lib/components/DataList/index.mjs.map +1 -0
  22. package/dist/lib/components/Dialog/DialogTrigger.mjs.map +1 -0
  23. package/dist/lib/components/Dialog/index.mjs.map +1 -0
  24. package/dist/lib/components/DoughnutChart/index.mjs.map +1 -0
  25. package/dist/lib/components/DropdownMenu/DropdonMenuRadioGroup.mjs.map +1 -0
  26. package/dist/lib/components/DropdownMenu/DropdownMenuSeparator.mjs.map +1 -0
  27. package/dist/lib/components/DropdownMenu/DropdownMenuSub.mjs.map +1 -0
  28. package/dist/lib/components/DropdownMenu/index.mjs.map +1 -0
  29. package/dist/lib/components/Editor/index.d.ts +15 -14
  30. package/dist/lib/components/Editor/index.js +50 -34
  31. package/dist/lib/components/Editor/index.mjs +3 -0
  32. package/dist/lib/components/Gnb/GnbLogo.mjs.map +1 -0
  33. package/dist/lib/components/Gnb/index.mjs.map +1 -0
  34. package/dist/lib/components/Grid/Pagination.mjs.map +1 -0
  35. package/dist/lib/components/HoverCard/HoverCardTrigger.mjs.map +1 -0
  36. package/dist/lib/components/HoverCard/index.mjs.map +1 -0
  37. package/dist/lib/components/LineChart/index.mjs.map +1 -0
  38. package/dist/lib/components/Menubar/MenubarMenu.mjs.map +1 -0
  39. package/dist/lib/components/Menubar/MenubarSeparator.mjs.map +1 -0
  40. package/dist/lib/components/Menubar/MenubarSub.mjs.map +1 -0
  41. package/dist/lib/components/Menubar/index.mjs.map +1 -0
  42. package/dist/lib/components/NavigationMenu/NavigationMenuIndicator.mjs.map +1 -0
  43. package/dist/lib/components/NavigationMenu/NavigationMenuItem.mjs.map +1 -0
  44. package/dist/lib/components/NavigationMenu/index.mjs.map +1 -0
  45. package/dist/lib/components/PieChart/index.mjs.map +1 -0
  46. package/dist/lib/components/Popover/PopoverTrigger.mjs.map +1 -0
  47. package/dist/lib/components/Popover/index.mjs.map +1 -0
  48. package/dist/lib/components/RadarChart/index.mjs.map +1 -0
  49. package/dist/lib/components/RadioCards/index.mjs.map +1 -0
  50. package/dist/lib/components/RadioGroup/index.mjs.map +1 -0
  51. package/dist/lib/components/SegmentedControl/SegmentedControlItem.mjs.map +1 -0
  52. package/dist/lib/components/SegmentedControl/index.mjs.map +1 -0
  53. package/dist/lib/components/Select/index.d.ts +1 -1
  54. package/dist/lib/components/Select/index.js +2 -2
  55. package/dist/lib/components/Select/index.mjs +3 -0
  56. package/dist/lib/components/Toast/index.mjs.map +1 -0
  57. package/dist/lib/components/ToggleGroup/index.mjs.map +1 -0
  58. package/dist/lib/constants.mjs.map +1 -0
  59. package/dist/lib/utils/utils.mjs.map +1 -0
  60. package/dist/public/tinymce/icons/default/index.js +2 -1
  61. package/dist/tsconfig.tsbuildinfo +1 -1
  62. package/package.json +3 -1
  63. package/public/tinymce/CHANGELOG.md +3453 -0
  64. package/public/tinymce/README.md +73 -0
  65. package/public/tinymce/bower.json +27 -0
  66. package/public/tinymce/composer.json +52 -0
  67. package/public/tinymce/icons/default/icons.js +194 -0
  68. package/{dist/lib/public/tinymce/icons/default/icons.mjs → public/tinymce/icons/default/icons.min.js} +1 -3
  69. package/public/tinymce/icons/default/index.js +7 -0
  70. package/public/tinymce/license.txt +21 -0
  71. package/public/tinymce/models/dom/index.js +7 -0
  72. package/public/tinymce/models/dom/model.js +8040 -0
  73. package/public/tinymce/models/dom/model.min.js +4 -0
  74. package/public/tinymce/package.json +32 -0
  75. package/public/tinymce/plugins/advlist/index.js +7 -0
  76. package/public/tinymce/plugins/advlist/plugin.js +259 -0
  77. package/public/tinymce/plugins/advlist/plugin.min.js +4 -0
  78. package/{dist/public → public}/tinymce/plugins/autolink/index.js +1 -2
  79. package/public/tinymce/plugins/autolink/plugin.js +228 -0
  80. package/public/tinymce/plugins/autolink/plugin.min.js +4 -0
  81. package/public/tinymce/plugins/code/index.js +7 -0
  82. package/public/tinymce/plugins/code/plugin.js +85 -0
  83. package/public/tinymce/plugins/code/plugin.min.js +4 -0
  84. package/public/tinymce/plugins/codesample/index.js +7 -0
  85. package/public/tinymce/plugins/codesample/plugin.js +2463 -0
  86. package/public/tinymce/plugins/codesample/plugin.min.js +4 -0
  87. package/public/tinymce/plugins/image/index.js +7 -0
  88. package/public/tinymce/plugins/image/plugin.js +1505 -0
  89. package/public/tinymce/plugins/image/plugin.min.js +4 -0
  90. package/public/tinymce/plugins/link/index.js +7 -0
  91. package/public/tinymce/plugins/link/plugin.js +1242 -0
  92. package/public/tinymce/plugins/link/plugin.min.js +4 -0
  93. package/public/tinymce/plugins/lists/index.js +7 -0
  94. package/public/tinymce/plugins/lists/plugin.js +2172 -0
  95. package/public/tinymce/plugins/lists/plugin.min.js +4 -0
  96. package/public/tinymce/plugins/table/index.js +7 -0
  97. package/public/tinymce/plugins/table/plugin.js +3462 -0
  98. package/public/tinymce/plugins/table/plugin.min.js +4 -0
  99. package/public/tinymce/skins/content/default/content.css +61 -0
  100. package/public/tinymce/skins/content/default/content.js +2 -0
  101. package/public/tinymce/skins/content/default/content.min.css +1 -0
  102. package/public/tinymce/skins/ui/oxide/content.css +785 -0
  103. package/public/tinymce/skins/ui/oxide/content.inline.css +779 -0
  104. package/{dist/public → public}/tinymce/skins/ui/oxide/content.inline.js +1 -2
  105. package/public/tinymce/skins/ui/oxide/content.inline.min.css +1 -0
  106. package/public/tinymce/skins/ui/oxide/content.js +2 -0
  107. package/public/tinymce/skins/ui/oxide/content.min.css +1 -0
  108. package/public/tinymce/skins/ui/oxide/skin.css +3763 -0
  109. package/public/tinymce/skins/ui/oxide/skin.js +2 -0
  110. package/public/tinymce/skins/ui/oxide/skin.min.css +1 -0
  111. package/public/tinymce/skins/ui/oxide/skin.shadowdom.css +30 -0
  112. package/{dist/public → public}/tinymce/skins/ui/oxide/skin.shadowdom.js +1 -2
  113. package/public/tinymce/skins/ui/oxide/skin.shadowdom.min.css +1 -0
  114. package/public/tinymce/skins/ui/oxide-dark/content.css +766 -0
  115. package/public/tinymce/skins/ui/oxide-dark/content.inline.css +779 -0
  116. package/{dist/public → public}/tinymce/skins/ui/oxide-dark/content.inline.js +1 -2
  117. package/public/tinymce/skins/ui/oxide-dark/content.inline.min.css +1 -0
  118. package/{dist/public → public}/tinymce/skins/ui/oxide-dark/content.js +1 -2
  119. package/public/tinymce/skins/ui/oxide-dark/content.min.css +1 -0
  120. package/public/tinymce/skins/ui/oxide-dark/skin.css +3766 -0
  121. package/{dist/public → public}/tinymce/skins/ui/oxide-dark/skin.js +1 -2
  122. package/public/tinymce/skins/ui/oxide-dark/skin.min.css +1 -0
  123. package/public/tinymce/skins/ui/oxide-dark/skin.shadowdom.css +30 -0
  124. package/{dist/public → public}/tinymce/skins/ui/oxide-dark/skin.shadowdom.js +1 -2
  125. package/public/tinymce/skins/ui/oxide-dark/skin.shadowdom.min.css +1 -0
  126. package/public/tinymce/themes/silver/index.js +7 -0
  127. package/public/tinymce/themes/silver/theme.js +30775 -0
  128. package/public/tinymce/themes/silver/theme.min.js +384 -0
  129. package/public/tinymce/tinymce.d.ts +3238 -0
  130. package/public/tinymce/tinymce.js +31779 -0
  131. package/public/tinymce/tinymce.min.js +384 -0
  132. package/dist/lib/_virtual/index.mjs +0 -2
  133. package/dist/lib/_virtual/index10.mjs +0 -2
  134. package/dist/lib/_virtual/index10.mjs.map +0 -1
  135. package/dist/lib/_virtual/index11.mjs +0 -2
  136. package/dist/lib/_virtual/index11.mjs.map +0 -1
  137. package/dist/lib/_virtual/index12.mjs +0 -2
  138. package/dist/lib/_virtual/index12.mjs.map +0 -1
  139. package/dist/lib/_virtual/index13.mjs +0 -2
  140. package/dist/lib/_virtual/index13.mjs.map +0 -1
  141. package/dist/lib/_virtual/index14.mjs +0 -2
  142. package/dist/lib/_virtual/index14.mjs.map +0 -1
  143. package/dist/lib/_virtual/index2.mjs +0 -2
  144. package/dist/lib/_virtual/index2.mjs.map +0 -1
  145. package/dist/lib/_virtual/index3.mjs +0 -2
  146. package/dist/lib/_virtual/index3.mjs.map +0 -1
  147. package/dist/lib/_virtual/index4.mjs +0 -2
  148. package/dist/lib/_virtual/index4.mjs.map +0 -1
  149. package/dist/lib/_virtual/index5.mjs +0 -2
  150. package/dist/lib/_virtual/index5.mjs.map +0 -1
  151. package/dist/lib/_virtual/index6.mjs +0 -2
  152. package/dist/lib/_virtual/index6.mjs.map +0 -1
  153. package/dist/lib/_virtual/index7.mjs +0 -2
  154. package/dist/lib/_virtual/index7.mjs.map +0 -1
  155. package/dist/lib/_virtual/index8.mjs +0 -2
  156. package/dist/lib/_virtual/index8.mjs.map +0 -1
  157. package/dist/lib/_virtual/index9.mjs +0 -2
  158. package/dist/lib/_virtual/index9.mjs.map +0 -1
  159. package/dist/lib/_virtual/model.mjs +0 -2
  160. package/dist/lib/_virtual/model.mjs.map +0 -1
  161. package/dist/lib/_virtual/plugin.mjs +0 -2
  162. package/dist/lib/_virtual/plugin.mjs.map +0 -1
  163. package/dist/lib/_virtual/plugin2.mjs +0 -2
  164. package/dist/lib/_virtual/plugin2.mjs.map +0 -1
  165. package/dist/lib/_virtual/plugin3.mjs +0 -2
  166. package/dist/lib/_virtual/plugin3.mjs.map +0 -1
  167. package/dist/lib/_virtual/plugin4.mjs +0 -2
  168. package/dist/lib/_virtual/plugin4.mjs.map +0 -1
  169. package/dist/lib/_virtual/plugin5.mjs +0 -2
  170. package/dist/lib/_virtual/plugin5.mjs.map +0 -1
  171. package/dist/lib/_virtual/theme.mjs +0 -2
  172. package/dist/lib/_virtual/theme.mjs.map +0 -1
  173. package/dist/lib/lib/color/alpha.mjs.map +0 -1
  174. package/dist/lib/lib/color/constants.mjs.map +0 -1
  175. package/dist/lib/lib/color/light.mjs.map +0 -1
  176. package/dist/lib/lib/components/AlertDialog/index.mjs.map +0 -1
  177. package/dist/lib/lib/components/BarChart/index.mjs.map +0 -1
  178. package/dist/lib/lib/components/Breadcrumb/BreadcrumbEllipsis.mjs.map +0 -1
  179. package/dist/lib/lib/components/Breadcrumb/BreadcrumbItem.mjs.map +0 -1
  180. package/dist/lib/lib/components/Breadcrumb/BreadcrumbLink.mjs.map +0 -1
  181. package/dist/lib/lib/components/Breadcrumb/BreadcrumbList.mjs.map +0 -1
  182. package/dist/lib/lib/components/Breadcrumb/BreadcrumbPage.mjs.map +0 -1
  183. package/dist/lib/lib/components/Breadcrumb/BreadcrumbSeparator.mjs.map +0 -1
  184. package/dist/lib/lib/components/Breadcrumb/index.mjs.map +0 -1
  185. package/dist/lib/lib/components/BubbleChart/index.mjs.map +0 -1
  186. package/dist/lib/lib/components/Callout/index.mjs.map +0 -1
  187. package/dist/lib/lib/components/CheckboxGroup/index.mjs.map +0 -1
  188. package/dist/lib/lib/components/ContextMenu/ContextMenuGroup.mjs.map +0 -1
  189. package/dist/lib/lib/components/ContextMenu/ContextMenuSeparator.mjs.map +0 -1
  190. package/dist/lib/lib/components/ContextMenu/ContextMenuTrigger.mjs.map +0 -1
  191. package/dist/lib/lib/components/ContextMenu/index.mjs.map +0 -1
  192. package/dist/lib/lib/components/DataList/index.mjs.map +0 -1
  193. package/dist/lib/lib/components/Dialog/DialogTrigger.mjs.map +0 -1
  194. package/dist/lib/lib/components/Dialog/index.mjs.map +0 -1
  195. package/dist/lib/lib/components/DoughnutChart/index.mjs.map +0 -1
  196. package/dist/lib/lib/components/DropdownMenu/DropdonMenuRadioGroup.mjs.map +0 -1
  197. package/dist/lib/lib/components/DropdownMenu/DropdownMenuSeparator.mjs.map +0 -1
  198. package/dist/lib/lib/components/DropdownMenu/DropdownMenuSub.mjs.map +0 -1
  199. package/dist/lib/lib/components/DropdownMenu/index.mjs.map +0 -1
  200. package/dist/lib/lib/components/Editor/index.mjs +0 -3
  201. package/dist/lib/lib/components/Gnb/GnbLogo.mjs.map +0 -1
  202. package/dist/lib/lib/components/Gnb/index.mjs.map +0 -1
  203. package/dist/lib/lib/components/Grid/Pagination.mjs.map +0 -1
  204. package/dist/lib/lib/components/HoverCard/HoverCardTrigger.mjs.map +0 -1
  205. package/dist/lib/lib/components/HoverCard/index.mjs.map +0 -1
  206. package/dist/lib/lib/components/LineChart/index.mjs.map +0 -1
  207. package/dist/lib/lib/components/Menubar/MenubarMenu.mjs.map +0 -1
  208. package/dist/lib/lib/components/Menubar/MenubarSeparator.mjs.map +0 -1
  209. package/dist/lib/lib/components/Menubar/MenubarSub.mjs.map +0 -1
  210. package/dist/lib/lib/components/Menubar/index.mjs.map +0 -1
  211. package/dist/lib/lib/components/NavigationMenu/NavigationMenuIndicator.mjs.map +0 -1
  212. package/dist/lib/lib/components/NavigationMenu/NavigationMenuItem.mjs.map +0 -1
  213. package/dist/lib/lib/components/NavigationMenu/index.mjs.map +0 -1
  214. package/dist/lib/lib/components/PieChart/index.mjs.map +0 -1
  215. package/dist/lib/lib/components/Popover/PopoverTrigger.mjs.map +0 -1
  216. package/dist/lib/lib/components/Popover/index.mjs.map +0 -1
  217. package/dist/lib/lib/components/RadarChart/index.mjs.map +0 -1
  218. package/dist/lib/lib/components/RadioCards/index.mjs.map +0 -1
  219. package/dist/lib/lib/components/RadioGroup/index.mjs.map +0 -1
  220. package/dist/lib/lib/components/SegmentedControl/SegmentedControlItem.mjs.map +0 -1
  221. package/dist/lib/lib/components/SegmentedControl/index.mjs.map +0 -1
  222. package/dist/lib/lib/components/Select/index.mjs +0 -3
  223. package/dist/lib/lib/components/Toast/index.mjs.map +0 -1
  224. package/dist/lib/lib/components/ToggleGroup/index.mjs.map +0 -1
  225. package/dist/lib/lib/constants.mjs.map +0 -1
  226. package/dist/lib/lib/index.mjs.map +0 -1
  227. package/dist/lib/lib/utils/utils.mjs.map +0 -1
  228. package/dist/lib/public/tinymce/icons/default/icons.mjs.map +0 -1
  229. package/dist/lib/public/tinymce/models/dom/index.mjs +0 -2
  230. package/dist/lib/public/tinymce/models/dom/index.mjs.map +0 -1
  231. package/dist/lib/public/tinymce/models/dom/model.mjs +0 -2
  232. package/dist/lib/public/tinymce/models/dom/model.mjs.map +0 -1
  233. package/dist/lib/public/tinymce/plugins/advlist/index.mjs +0 -2
  234. package/dist/lib/public/tinymce/plugins/advlist/index.mjs.map +0 -1
  235. package/dist/lib/public/tinymce/plugins/advlist/plugin.mjs +0 -2
  236. package/dist/lib/public/tinymce/plugins/advlist/plugin.mjs.map +0 -1
  237. package/dist/lib/public/tinymce/plugins/code/index.mjs +0 -2
  238. package/dist/lib/public/tinymce/plugins/code/index.mjs.map +0 -1
  239. package/dist/lib/public/tinymce/plugins/code/plugin.mjs +0 -2
  240. package/dist/lib/public/tinymce/plugins/code/plugin.mjs.map +0 -1
  241. package/dist/lib/public/tinymce/plugins/link/index.mjs +0 -2
  242. package/dist/lib/public/tinymce/plugins/link/index.mjs.map +0 -1
  243. package/dist/lib/public/tinymce/plugins/link/plugin.mjs +0 -2
  244. package/dist/lib/public/tinymce/plugins/link/plugin.mjs.map +0 -1
  245. package/dist/lib/public/tinymce/plugins/lists/index.mjs +0 -2
  246. package/dist/lib/public/tinymce/plugins/lists/index.mjs.map +0 -1
  247. package/dist/lib/public/tinymce/plugins/lists/plugin.mjs +0 -2
  248. package/dist/lib/public/tinymce/plugins/lists/plugin.mjs.map +0 -1
  249. package/dist/lib/public/tinymce/plugins/table/index.mjs +0 -2
  250. package/dist/lib/public/tinymce/plugins/table/index.mjs.map +0 -1
  251. package/dist/lib/public/tinymce/plugins/table/plugin.mjs +0 -2
  252. package/dist/lib/public/tinymce/plugins/table/plugin.mjs.map +0 -1
  253. package/dist/lib/public/tinymce/skins/content/default/content.mjs +0 -3
  254. package/dist/lib/public/tinymce/skins/content/default/content.mjs.map +0 -1
  255. package/dist/lib/public/tinymce/skins/ui/oxide/content.mjs +0 -3
  256. package/dist/lib/public/tinymce/skins/ui/oxide/content.mjs.map +0 -1
  257. package/dist/lib/public/tinymce/skins/ui/oxide/skin.mjs +0 -3
  258. package/dist/lib/public/tinymce/skins/ui/oxide/skin.mjs.map +0 -1
  259. package/dist/lib/public/tinymce/themes/silver/index.mjs +0 -2
  260. package/dist/lib/public/tinymce/themes/silver/index.mjs.map +0 -1
  261. package/dist/lib/public/tinymce/themes/silver/theme.mjs +0 -2
  262. package/dist/lib/public/tinymce/themes/silver/theme.mjs.map +0 -1
  263. package/dist/lib/tailwind.config.d.ts +0 -3
  264. package/dist/lib/tsconfig.tsbuildinfo +0 -1
  265. package/dist/public/tinymce/plugins/autolink/index.d.ts +0 -1
  266. package/dist/public/tinymce/plugins/autolink/plugin.d.ts +0 -0
  267. package/dist/public/tinymce/plugins/autolink/plugin.js +0 -221
  268. package/dist/public/tinymce/skins/ui/oxide/content.inline.d.ts +0 -0
  269. package/dist/public/tinymce/skins/ui/oxide/skin.shadowdom.d.ts +0 -0
  270. package/dist/public/tinymce/skins/ui/oxide-dark/content.d.ts +0 -0
  271. package/dist/public/tinymce/skins/ui/oxide-dark/content.inline.d.ts +0 -0
  272. package/dist/public/tinymce/skins/ui/oxide-dark/skin.d.ts +0 -0
  273. package/dist/public/tinymce/skins/ui/oxide-dark/skin.shadowdom.d.ts +0 -0
  274. package/dist/public/tinymce/tinymce.d.ts +0 -1
  275. package/dist/public/tinymce/tinymce.js +0 -31974
  276. /package/dist/lib/{lib/Typography → Typography}/Header/index.mjs +0 -0
  277. /package/dist/lib/{lib/Typography → Typography}/Header/index.mjs.map +0 -0
  278. /package/dist/lib/{lib/Typography → Typography}/Text/index.mjs +0 -0
  279. /package/dist/lib/{lib/Typography → Typography}/Text/index.mjs.map +0 -0
  280. /package/dist/lib/{lib/color → color}/alpha.mjs +0 -0
  281. /package/dist/lib/{lib/color → color}/constants.mjs +0 -0
  282. /package/dist/lib/{lib/color → color}/light.mjs +0 -0
  283. /package/dist/lib/{lib/components → components}/Accordion/index.mjs +0 -0
  284. /package/dist/lib/{lib/components → components}/Accordion/index.mjs.map +0 -0
  285. /package/dist/lib/{lib/components → components}/AlertDialog/AlertDialogAction.mjs +0 -0
  286. /package/dist/lib/{lib/components → components}/AlertDialog/AlertDialogAction.mjs.map +0 -0
  287. /package/dist/lib/{lib/components → components}/AlertDialog/AlertDialogCancel.mjs +0 -0
  288. /package/dist/lib/{lib/components → components}/AlertDialog/AlertDialogCancel.mjs.map +0 -0
  289. /package/dist/lib/{lib/components → components}/AlertDialog/AlertDialogContent.mjs +0 -0
  290. /package/dist/lib/{lib/components → components}/AlertDialog/AlertDialogContent.mjs.map +0 -0
  291. /package/dist/lib/{lib/components → components}/AlertDialog/AlertDialogDescription.mjs +0 -0
  292. /package/dist/lib/{lib/components → components}/AlertDialog/AlertDialogDescription.mjs.map +0 -0
  293. /package/dist/lib/{lib/components → components}/AlertDialog/AlertDialogRoot.mjs +0 -0
  294. /package/dist/lib/{lib/components → components}/AlertDialog/AlertDialogRoot.mjs.map +0 -0
  295. /package/dist/lib/{lib/components → components}/AlertDialog/AlertDialogTitle.mjs +0 -0
  296. /package/dist/lib/{lib/components → components}/AlertDialog/AlertDialogTitle.mjs.map +0 -0
  297. /package/dist/lib/{lib/components → components}/AlertDialog/AlertDialogTrigger.mjs +0 -0
  298. /package/dist/lib/{lib/components → components}/AlertDialog/AlertDialogTrigger.mjs.map +0 -0
  299. /package/dist/lib/{lib/components → components}/AlertDialog/index.mjs +0 -0
  300. /package/dist/lib/{lib/components → components}/AspectRatio/index.mjs +0 -0
  301. /package/dist/lib/{lib/components → components}/AspectRatio/index.mjs.map +0 -0
  302. /package/dist/lib/{lib/components → components}/Avatar/index.mjs +0 -0
  303. /package/dist/lib/{lib/components → components}/Avatar/index.mjs.map +0 -0
  304. /package/dist/lib/{lib/components → components}/Badge/index.mjs +0 -0
  305. /package/dist/lib/{lib/components → components}/Badge/index.mjs.map +0 -0
  306. /package/dist/lib/{lib/components → components}/BarChart/index.mjs +0 -0
  307. /package/dist/lib/{lib/components → components}/Breadcrumb/BreadcrumbEllipsis.mjs +0 -0
  308. /package/dist/lib/{lib/components → components}/Breadcrumb/BreadcrumbItem.mjs +0 -0
  309. /package/dist/lib/{lib/components → components}/Breadcrumb/BreadcrumbLink.mjs +0 -0
  310. /package/dist/lib/{lib/components → components}/Breadcrumb/BreadcrumbList.mjs +0 -0
  311. /package/dist/lib/{lib/components → components}/Breadcrumb/BreadcrumbPage.mjs +0 -0
  312. /package/dist/lib/{lib/components → components}/Breadcrumb/BreadcrumbRoot.mjs +0 -0
  313. /package/dist/lib/{lib/components → components}/Breadcrumb/BreadcrumbRoot.mjs.map +0 -0
  314. /package/dist/lib/{lib/components → components}/Breadcrumb/BreadcrumbSeparator.mjs +0 -0
  315. /package/dist/lib/{lib/components → components}/Breadcrumb/index.mjs +0 -0
  316. /package/dist/lib/{lib/components → components}/BubbleChart/index.mjs +0 -0
  317. /package/dist/lib/{lib/components → components}/Button/index.mjs +0 -0
  318. /package/dist/lib/{lib/components → components}/Button/index.mjs.map +0 -0
  319. /package/dist/lib/{lib/components → components}/Callout/CalloutIcon.mjs +0 -0
  320. /package/dist/lib/{lib/components → components}/Callout/CalloutIcon.mjs.map +0 -0
  321. /package/dist/lib/{lib/components → components}/Callout/CalloutRoot.mjs +0 -0
  322. /package/dist/lib/{lib/components → components}/Callout/CalloutRoot.mjs.map +0 -0
  323. /package/dist/lib/{lib/components → components}/Callout/CalloutText.mjs +0 -0
  324. /package/dist/lib/{lib/components → components}/Callout/CalloutText.mjs.map +0 -0
  325. /package/dist/lib/{lib/components → components}/Callout/index.mjs +0 -0
  326. /package/dist/lib/{lib/components → components}/Card/index.mjs +0 -0
  327. /package/dist/lib/{lib/components → components}/Card/index.mjs.map +0 -0
  328. /package/dist/lib/{lib/components → components}/Checkbox/index.mjs +0 -0
  329. /package/dist/lib/{lib/components → components}/Checkbox/index.mjs.map +0 -0
  330. /package/dist/lib/{lib/components → components}/CheckboxCard/index.mjs +0 -0
  331. /package/dist/lib/{lib/components → components}/CheckboxCard/index.mjs.map +0 -0
  332. /package/dist/lib/{lib/components → components}/CheckboxGroup/CheckboxGroupItem.mjs +0 -0
  333. /package/dist/lib/{lib/components → components}/CheckboxGroup/CheckboxGroupItem.mjs.map +0 -0
  334. /package/dist/lib/{lib/components → components}/CheckboxGroup/CheckboxGroupRoot.mjs +0 -0
  335. /package/dist/lib/{lib/components → components}/CheckboxGroup/CheckboxGroupRoot.mjs.map +0 -0
  336. /package/dist/lib/{lib/components → components}/CheckboxGroup/index.mjs +0 -0
  337. /package/dist/lib/{lib/components → components}/Collapsible/index.mjs +0 -0
  338. /package/dist/lib/{lib/components → components}/Collapsible/index.mjs.map +0 -0
  339. /package/dist/lib/{lib/components → components}/ContextMenu/ContextMenuCheckboxItem.mjs +0 -0
  340. /package/dist/lib/{lib/components → components}/ContextMenu/ContextMenuCheckboxItem.mjs.map +0 -0
  341. /package/dist/lib/{lib/components → components}/ContextMenu/ContextMenuContent.mjs +0 -0
  342. /package/dist/lib/{lib/components → components}/ContextMenu/ContextMenuContent.mjs.map +0 -0
  343. /package/dist/lib/{lib/components → components}/ContextMenu/ContextMenuGroup.mjs +0 -0
  344. /package/dist/lib/{lib/components → components}/ContextMenu/ContextMenuItem.mjs +0 -0
  345. /package/dist/lib/{lib/components → components}/ContextMenu/ContextMenuItem.mjs.map +0 -0
  346. /package/dist/lib/{lib/components → components}/ContextMenu/ContextMenuItemIndicator.mjs +0 -0
  347. /package/dist/lib/{lib/components → components}/ContextMenu/ContextMenuItemIndicator.mjs.map +0 -0
  348. /package/dist/lib/{lib/components → components}/ContextMenu/ContextMenuLabel.mjs +0 -0
  349. /package/dist/lib/{lib/components → components}/ContextMenu/ContextMenuLabel.mjs.map +0 -0
  350. /package/dist/lib/{lib/components → components}/ContextMenu/ContextMenuRadioGroup.mjs +0 -0
  351. /package/dist/lib/{lib/components → components}/ContextMenu/ContextMenuRadioGroup.mjs.map +0 -0
  352. /package/dist/lib/{lib/components → components}/ContextMenu/ContextMenuRadioItem.mjs +0 -0
  353. /package/dist/lib/{lib/components → components}/ContextMenu/ContextMenuRadioItem.mjs.map +0 -0
  354. /package/dist/lib/{lib/components → components}/ContextMenu/ContextMenuRoot.mjs +0 -0
  355. /package/dist/lib/{lib/components → components}/ContextMenu/ContextMenuRoot.mjs.map +0 -0
  356. /package/dist/lib/{lib/components → components}/ContextMenu/ContextMenuSeparator.mjs +0 -0
  357. /package/dist/lib/{lib/components → components}/ContextMenu/ContextMenuSubContent.mjs +0 -0
  358. /package/dist/lib/{lib/components → components}/ContextMenu/ContextMenuSubContent.mjs.map +0 -0
  359. /package/dist/lib/{lib/components → components}/ContextMenu/ContextMenuSubTrigger.mjs +0 -0
  360. /package/dist/lib/{lib/components → components}/ContextMenu/ContextMenuSubTrigger.mjs.map +0 -0
  361. /package/dist/lib/{lib/components → components}/ContextMenu/ContextMenuTrigger.mjs +0 -0
  362. /package/dist/lib/{lib/components → components}/ContextMenu/index.mjs +0 -0
  363. /package/dist/lib/{lib/components → components}/DataList/DataListItem.mjs +0 -0
  364. /package/dist/lib/{lib/components → components}/DataList/DataListItem.mjs.map +0 -0
  365. /package/dist/lib/{lib/components → components}/DataList/DataListLabel.mjs +0 -0
  366. /package/dist/lib/{lib/components → components}/DataList/DataListLabel.mjs.map +0 -0
  367. /package/dist/lib/{lib/components → components}/DataList/DataListRoot.mjs +0 -0
  368. /package/dist/lib/{lib/components → components}/DataList/DataListRoot.mjs.map +0 -0
  369. /package/dist/lib/{lib/components → components}/DataList/DataListValue.mjs +0 -0
  370. /package/dist/lib/{lib/components → components}/DataList/DataListValue.mjs.map +0 -0
  371. /package/dist/lib/{lib/components → components}/DataList/index.mjs +0 -0
  372. /package/dist/lib/{lib/components → components}/Dialog/DialogAction.mjs +0 -0
  373. /package/dist/lib/{lib/components → components}/Dialog/DialogAction.mjs.map +0 -0
  374. /package/dist/lib/{lib/components → components}/Dialog/DialogCancel.mjs +0 -0
  375. /package/dist/lib/{lib/components → components}/Dialog/DialogCancel.mjs.map +0 -0
  376. /package/dist/lib/{lib/components → components}/Dialog/DialogContent.mjs +0 -0
  377. /package/dist/lib/{lib/components → components}/Dialog/DialogContent.mjs.map +0 -0
  378. /package/dist/lib/{lib/components → components}/Dialog/DialogDescription.mjs +0 -0
  379. /package/dist/lib/{lib/components → components}/Dialog/DialogDescription.mjs.map +0 -0
  380. /package/dist/lib/{lib/components → components}/Dialog/DialogRoot.mjs +0 -0
  381. /package/dist/lib/{lib/components → components}/Dialog/DialogRoot.mjs.map +0 -0
  382. /package/dist/lib/{lib/components → components}/Dialog/DialogSlot.mjs +0 -0
  383. /package/dist/lib/{lib/components → components}/Dialog/DialogSlot.mjs.map +0 -0
  384. /package/dist/lib/{lib/components → components}/Dialog/DialogTitle.mjs +0 -0
  385. /package/dist/lib/{lib/components → components}/Dialog/DialogTitle.mjs.map +0 -0
  386. /package/dist/lib/{lib/components → components}/Dialog/DialogTrigger.mjs +0 -0
  387. /package/dist/lib/{lib/components → components}/Dialog/index.mjs +0 -0
  388. /package/dist/lib/{lib/components → components}/DoughnutChart/index.mjs +0 -0
  389. /package/dist/lib/{lib/components → components}/DropdownMenu/DropdonMenuRadioGroup.mjs +0 -0
  390. /package/dist/lib/{lib/components → components}/DropdownMenu/DropdonMenuSubContent.mjs +0 -0
  391. /package/dist/lib/{lib/components → components}/DropdownMenu/DropdonMenuSubContent.mjs.map +0 -0
  392. /package/dist/lib/{lib/components → components}/DropdownMenu/DropdownMenuCheckboxItem.mjs +0 -0
  393. /package/dist/lib/{lib/components → components}/DropdownMenu/DropdownMenuCheckboxItem.mjs.map +0 -0
  394. /package/dist/lib/{lib/components → components}/DropdownMenu/DropdownMenuContent.mjs +0 -0
  395. /package/dist/lib/{lib/components → components}/DropdownMenu/DropdownMenuContent.mjs.map +0 -0
  396. /package/dist/lib/{lib/components → components}/DropdownMenu/DropdownMenuItem.mjs +0 -0
  397. /package/dist/lib/{lib/components → components}/DropdownMenu/DropdownMenuItem.mjs.map +0 -0
  398. /package/dist/lib/{lib/components → components}/DropdownMenu/DropdownMenuItemIndicator.mjs +0 -0
  399. /package/dist/lib/{lib/components → components}/DropdownMenu/DropdownMenuItemIndicator.mjs.map +0 -0
  400. /package/dist/lib/{lib/components → components}/DropdownMenu/DropdownMenuLable.mjs +0 -0
  401. /package/dist/lib/{lib/components → components}/DropdownMenu/DropdownMenuLable.mjs.map +0 -0
  402. /package/dist/lib/{lib/components → components}/DropdownMenu/DropdownMenuRadioItem.mjs +0 -0
  403. /package/dist/lib/{lib/components → components}/DropdownMenu/DropdownMenuRadioItem.mjs.map +0 -0
  404. /package/dist/lib/{lib/components → components}/DropdownMenu/DropdownMenuRoot.mjs +0 -0
  405. /package/dist/lib/{lib/components → components}/DropdownMenu/DropdownMenuRoot.mjs.map +0 -0
  406. /package/dist/lib/{lib/components → components}/DropdownMenu/DropdownMenuSeparator.mjs +0 -0
  407. /package/dist/lib/{lib/components → components}/DropdownMenu/DropdownMenuSub.mjs +0 -0
  408. /package/dist/lib/{lib/components → components}/DropdownMenu/DropdownMenuSubTrigger.mjs +0 -0
  409. /package/dist/lib/{lib/components → components}/DropdownMenu/DropdownMenuSubTrigger.mjs.map +0 -0
  410. /package/dist/lib/{lib/components → components}/DropdownMenu/DropdownMenuTrigger.mjs +0 -0
  411. /package/dist/lib/{lib/components → components}/DropdownMenu/DropdownMenuTrigger.mjs.map +0 -0
  412. /package/dist/lib/{lib/components → components}/DropdownMenu/index.mjs +0 -0
  413. /package/dist/lib/{lib/components → components}/Editor/index.mjs.map +0 -0
  414. /package/dist/lib/{lib/components → components}/Footer/index.mjs +0 -0
  415. /package/dist/lib/{lib/components → components}/Footer/index.mjs.map +0 -0
  416. /package/dist/lib/{lib/components → components}/Gnb/GnbInfo.mjs +0 -0
  417. /package/dist/lib/{lib/components → components}/Gnb/GnbInfo.mjs.map +0 -0
  418. /package/dist/lib/{lib/components → components}/Gnb/GnbLogo.mjs +0 -0
  419. /package/dist/lib/{lib/components → components}/Gnb/GnbMenu.mjs +0 -0
  420. /package/dist/lib/{lib/components → components}/Gnb/GnbMenu.mjs.map +0 -0
  421. /package/dist/lib/{lib/components → components}/Gnb/GnbRoot.mjs +0 -0
  422. /package/dist/lib/{lib/components → components}/Gnb/GnbRoot.mjs.map +0 -0
  423. /package/dist/lib/{lib/components → components}/Gnb/index.mjs +0 -0
  424. /package/dist/lib/{lib/components → components}/Grid/Pagination.mjs +0 -0
  425. /package/dist/lib/{lib/components → components}/Grid/index.mjs +0 -0
  426. /package/dist/lib/{lib/components → components}/Grid/index.mjs.map +0 -0
  427. /package/dist/lib/{lib/components → components}/Grid/useGrid.mjs +0 -0
  428. /package/dist/lib/{lib/components → components}/Grid/useGrid.mjs.map +0 -0
  429. /package/dist/lib/{lib/components → components}/HoverCard/HoverCardContent.mjs +0 -0
  430. /package/dist/lib/{lib/components → components}/HoverCard/HoverCardContent.mjs.map +0 -0
  431. /package/dist/lib/{lib/components → components}/HoverCard/HoverCardRoot.mjs +0 -0
  432. /package/dist/lib/{lib/components → components}/HoverCard/HoverCardRoot.mjs.map +0 -0
  433. /package/dist/lib/{lib/components → components}/HoverCard/HoverCardTrigger.mjs +0 -0
  434. /package/dist/lib/{lib/components → components}/HoverCard/index.mjs +0 -0
  435. /package/dist/lib/{lib/components → components}/IconButton/index.mjs +0 -0
  436. /package/dist/lib/{lib/components → components}/IconButton/index.mjs.map +0 -0
  437. /package/dist/lib/{lib/components → components}/Inset/index.mjs +0 -0
  438. /package/dist/lib/{lib/components → components}/Inset/index.mjs.map +0 -0
  439. /package/dist/lib/{lib/components → components}/Label/index.mjs +0 -0
  440. /package/dist/lib/{lib/components → components}/Label/index.mjs.map +0 -0
  441. /package/dist/lib/{lib/components → components}/LineChart/index.mjs +0 -0
  442. /package/dist/lib/{lib/components → components}/Menubar/MenubarCheckboxItem.mjs +0 -0
  443. /package/dist/lib/{lib/components → components}/Menubar/MenubarCheckboxItem.mjs.map +0 -0
  444. /package/dist/lib/{lib/components → components}/Menubar/MenubarContent.mjs +0 -0
  445. /package/dist/lib/{lib/components → components}/Menubar/MenubarContent.mjs.map +0 -0
  446. /package/dist/lib/{lib/components → components}/Menubar/MenubarItem.mjs +0 -0
  447. /package/dist/lib/{lib/components → components}/Menubar/MenubarItem.mjs.map +0 -0
  448. /package/dist/lib/{lib/components → components}/Menubar/MenubarItemIndicator.mjs +0 -0
  449. /package/dist/lib/{lib/components → components}/Menubar/MenubarItemIndicator.mjs.map +0 -0
  450. /package/dist/lib/{lib/components → components}/Menubar/MenubarMenu.mjs +0 -0
  451. /package/dist/lib/{lib/components → components}/Menubar/MenubarRadioGroup.mjs +0 -0
  452. /package/dist/lib/{lib/components → components}/Menubar/MenubarRadioGroup.mjs.map +0 -0
  453. /package/dist/lib/{lib/components → components}/Menubar/MenubarRadioItem.mjs +0 -0
  454. /package/dist/lib/{lib/components → components}/Menubar/MenubarRadioItem.mjs.map +0 -0
  455. /package/dist/lib/{lib/components → components}/Menubar/MenubarRoot.mjs +0 -0
  456. /package/dist/lib/{lib/components → components}/Menubar/MenubarRoot.mjs.map +0 -0
  457. /package/dist/lib/{lib/components → components}/Menubar/MenubarSeparator.mjs +0 -0
  458. /package/dist/lib/{lib/components → components}/Menubar/MenubarSub.mjs +0 -0
  459. /package/dist/lib/{lib/components → components}/Menubar/MenubarSubContent.mjs +0 -0
  460. /package/dist/lib/{lib/components → components}/Menubar/MenubarSubContent.mjs.map +0 -0
  461. /package/dist/lib/{lib/components → components}/Menubar/MenubarSubTrigger.mjs +0 -0
  462. /package/dist/lib/{lib/components → components}/Menubar/MenubarSubTrigger.mjs.map +0 -0
  463. /package/dist/lib/{lib/components → components}/Menubar/MenubarTrigger.mjs +0 -0
  464. /package/dist/lib/{lib/components → components}/Menubar/MenubarTrigger.mjs.map +0 -0
  465. /package/dist/lib/{lib/components → components}/Menubar/index.mjs +0 -0
  466. /package/dist/lib/{lib/components → components}/NavigationMenu/NavigationMenuContent.mjs +0 -0
  467. /package/dist/lib/{lib/components → components}/NavigationMenu/NavigationMenuContent.mjs.map +0 -0
  468. /package/dist/lib/{lib/components → components}/NavigationMenu/NavigationMenuIndicator.mjs +0 -0
  469. /package/dist/lib/{lib/components → components}/NavigationMenu/NavigationMenuItem.mjs +0 -0
  470. /package/dist/lib/{lib/components → components}/NavigationMenu/NavigationMenuLink.mjs +0 -0
  471. /package/dist/lib/{lib/components → components}/NavigationMenu/NavigationMenuLink.mjs.map +0 -0
  472. /package/dist/lib/{lib/components → components}/NavigationMenu/NavigationMenuList.mjs +0 -0
  473. /package/dist/lib/{lib/components → components}/NavigationMenu/NavigationMenuList.mjs.map +0 -0
  474. /package/dist/lib/{lib/components → components}/NavigationMenu/NavigationMenuRoot.mjs +0 -0
  475. /package/dist/lib/{lib/components → components}/NavigationMenu/NavigationMenuRoot.mjs.map +0 -0
  476. /package/dist/lib/{lib/components → components}/NavigationMenu/NavigationMenuTrigger.mjs +0 -0
  477. /package/dist/lib/{lib/components → components}/NavigationMenu/NavigationMenuTrigger.mjs.map +0 -0
  478. /package/dist/lib/{lib/components → components}/NavigationMenu/NavigationMenuViewport.mjs +0 -0
  479. /package/dist/lib/{lib/components → components}/NavigationMenu/NavigationMenuViewport.mjs.map +0 -0
  480. /package/dist/lib/{lib/components → components}/NavigationMenu/index.mjs +0 -0
  481. /package/dist/lib/{lib/components → components}/PieChart/index.mjs +0 -0
  482. /package/dist/lib/{lib/components → components}/Popover/PopoverClose.mjs +0 -0
  483. /package/dist/lib/{lib/components → components}/Popover/PopoverClose.mjs.map +0 -0
  484. /package/dist/lib/{lib/components → components}/Popover/PopoverContent.mjs +0 -0
  485. /package/dist/lib/{lib/components → components}/Popover/PopoverContent.mjs.map +0 -0
  486. /package/dist/lib/{lib/components → components}/Popover/PopoverRoot.mjs +0 -0
  487. /package/dist/lib/{lib/components → components}/Popover/PopoverRoot.mjs.map +0 -0
  488. /package/dist/lib/{lib/components → components}/Popover/PopoverTrigger.mjs +0 -0
  489. /package/dist/lib/{lib/components → components}/Popover/index.mjs +0 -0
  490. /package/dist/lib/{lib/components → components}/Progress/index.mjs +0 -0
  491. /package/dist/lib/{lib/components → components}/Progress/index.mjs.map +0 -0
  492. /package/dist/lib/{lib/components → components}/RadarChart/index.mjs +0 -0
  493. /package/dist/lib/{lib/components → components}/Radio/index.mjs +0 -0
  494. /package/dist/lib/{lib/components → components}/Radio/index.mjs.map +0 -0
  495. /package/dist/lib/{lib/components → components}/RadioCards/RadioCardsItem.mjs +0 -0
  496. /package/dist/lib/{lib/components → components}/RadioCards/RadioCardsItem.mjs.map +0 -0
  497. /package/dist/lib/{lib/components → components}/RadioCards/RadioCardsRoot.mjs +0 -0
  498. /package/dist/lib/{lib/components → components}/RadioCards/RadioCardsRoot.mjs.map +0 -0
  499. /package/dist/lib/{lib/components → components}/RadioCards/index.mjs +0 -0
  500. /package/dist/lib/{lib/components → components}/RadioGroup/RadioGroupItem.mjs +0 -0
  501. /package/dist/lib/{lib/components → components}/RadioGroup/RadioGroupItem.mjs.map +0 -0
  502. /package/dist/lib/{lib/components → components}/RadioGroup/RadioGroupRoot.mjs +0 -0
  503. /package/dist/lib/{lib/components → components}/RadioGroup/RadioGroupRoot.mjs.map +0 -0
  504. /package/dist/lib/{lib/components → components}/RadioGroup/index.mjs +0 -0
  505. /package/dist/lib/{lib/components → components}/ScrollArea/index.mjs +0 -0
  506. /package/dist/lib/{lib/components → components}/ScrollArea/index.mjs.map +0 -0
  507. /package/dist/lib/{lib/components → components}/SegmentedControl/SegmentedControlItem.mjs +0 -0
  508. /package/dist/lib/{lib/components → components}/SegmentedControl/SegmentedControlRoot.mjs +0 -0
  509. /package/dist/lib/{lib/components → components}/SegmentedControl/SegmentedControlRoot.mjs.map +0 -0
  510. /package/dist/lib/{lib/components → components}/SegmentedControl/index.mjs +0 -0
  511. /package/dist/lib/{lib/components → components}/Select/index.mjs.map +0 -0
  512. /package/dist/lib/{lib/components → components}/Separator/index.mjs +0 -0
  513. /package/dist/lib/{lib/components → components}/Separator/index.mjs.map +0 -0
  514. /package/dist/lib/{lib/components → components}/Skeleton/index.mjs +0 -0
  515. /package/dist/lib/{lib/components → components}/Skeleton/index.mjs.map +0 -0
  516. /package/dist/lib/{lib/components → components}/Slider/index.mjs +0 -0
  517. /package/dist/lib/{lib/components → components}/Slider/index.mjs.map +0 -0
  518. /package/dist/lib/{lib/components → components}/Spinner/index.mjs +0 -0
  519. /package/dist/lib/{lib/components → components}/Spinner/index.mjs.map +0 -0
  520. /package/dist/lib/{lib/components → components}/TabNav/index.mjs +0 -0
  521. /package/dist/lib/{lib/components → components}/TabNav/index.mjs.map +0 -0
  522. /package/dist/lib/{lib/components → components}/Table/index.mjs +0 -0
  523. /package/dist/lib/{lib/components → components}/Table/index.mjs.map +0 -0
  524. /package/dist/lib/{lib/components → components}/Tabs/index.mjs +0 -0
  525. /package/dist/lib/{lib/components → components}/Tabs/index.mjs.map +0 -0
  526. /package/dist/lib/{lib/components → components}/TextArea/index.mjs +0 -0
  527. /package/dist/lib/{lib/components → components}/TextArea/index.mjs.map +0 -0
  528. /package/dist/lib/{lib/components → components}/TextField/index.mjs +0 -0
  529. /package/dist/lib/{lib/components → components}/TextField/index.mjs.map +0 -0
  530. /package/dist/lib/{lib/components → components}/Toast/ToastActionButton.mjs +0 -0
  531. /package/dist/lib/{lib/components → components}/Toast/ToastActionButton.mjs.map +0 -0
  532. /package/dist/lib/{lib/components → components}/Toast/ToastDescription.mjs +0 -0
  533. /package/dist/lib/{lib/components → components}/Toast/ToastDescription.mjs.map +0 -0
  534. /package/dist/lib/{lib/components → components}/Toast/ToastRoot.mjs +0 -0
  535. /package/dist/lib/{lib/components → components}/Toast/ToastRoot.mjs.map +0 -0
  536. /package/dist/lib/{lib/components → components}/Toast/ToastTitle.mjs +0 -0
  537. /package/dist/lib/{lib/components → components}/Toast/ToastTitle.mjs.map +0 -0
  538. /package/dist/lib/{lib/components → components}/Toast/index.mjs +0 -0
  539. /package/dist/lib/{lib/components → components}/Toggle/ToggleWithText.mjs +0 -0
  540. /package/dist/lib/{lib/components → components}/Toggle/ToggleWithText.mjs.map +0 -0
  541. /package/dist/lib/{lib/components → components}/Toggle/index.mjs +0 -0
  542. /package/dist/lib/{lib/components → components}/Toggle/index.mjs.map +0 -0
  543. /package/dist/lib/{lib/components → components}/ToggleGroup/ToggleGroupItem.mjs +0 -0
  544. /package/dist/lib/{lib/components → components}/ToggleGroup/ToggleGroupItem.mjs.map +0 -0
  545. /package/dist/lib/{lib/components → components}/ToggleGroup/ToggleGroupRoot.mjs +0 -0
  546. /package/dist/lib/{lib/components → components}/ToggleGroup/ToggleGroupRoot.mjs.map +0 -0
  547. /package/dist/lib/{lib/components → components}/ToggleGroup/index.mjs +0 -0
  548. /package/dist/lib/{lib/components → components}/ToggleSwitch/index.mjs +0 -0
  549. /package/dist/lib/{lib/components → components}/ToggleSwitch/index.mjs.map +0 -0
  550. /package/dist/lib/{lib/components → components}/Tooltip/index.mjs +0 -0
  551. /package/dist/lib/{lib/components → components}/Tooltip/index.mjs.map +0 -0
  552. /package/dist/lib/{lib/constants.mjs → constants.mjs} +0 -0
  553. /package/dist/lib/{lib/index.mjs → index.mjs} +0 -0
  554. /package/dist/lib/{_virtual/index.mjs.map → index.mjs.map} +0 -0
  555. /package/dist/lib/{lib/theme → theme}/ThemeProvider.mjs +0 -0
  556. /package/dist/lib/{lib/theme → theme}/ThemeProvider.mjs.map +0 -0
  557. /package/dist/lib/{lib/utils → utils}/useDarkMode.mjs +0 -0
  558. /package/dist/lib/{lib/utils → utils}/useDarkMode.mjs.map +0 -0
  559. /package/dist/lib/{lib/utils → utils}/utils.mjs +0 -0
@@ -1,2 +0,0 @@
1
- import{__exports as r}from"../../../../_virtual/index12.mjs";import{__require as e}from"./plugin.mjs";var i;function o(){return i||(i=1,e()),r}export{o as __require};
2
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../../../public/tinymce/plugins/advlist/index.js"],"sourcesContent":["\"use strict\";\n// Exports the \"advlist\" plugin for usage with module loaders\n// Usage:\n// CommonJS:\n// require('tinymce/plugins/advlist')\n// ES2015:\n// import 'tinymce/plugins/advlist'\nrequire('./plugin.js');\n"],"names":["require$$0"],"mappings":"wIAOsBA"}
@@ -1,2 +0,0 @@
1
- import{__exports as t}from"../../../../_virtual/plugin5.mjs";var e;function n(){return e||(e=1,function(){var t=tinymce.util.Tools.resolve("tinymce.PluginManager"),e=function(t,e,n){var r="UL"===e?"InsertUnorderedList":"InsertOrderedList";t.execCommand(r,!1,!1===n?null:{"list-style-type":n})},n=function(t){return function(e){return e.options.get(t)}},r=n("advlist_number_styles"),o=n("advlist_bullet_styles"),i=function(t){return null==t},u=function(t){return!i(t)},s=tinymce.util.Tools.resolve("tinymce.util.Tools"),l=function(){function t(t,e){this.tag=t,this.value=e}return t.some=function(e){return new t(!0,e)},t.none=function(){return t.singletonNone},t.prototype.fold=function(t,e){return this.tag?e(this.value):t()},t.prototype.isSome=function(){return this.tag},t.prototype.isNone=function(){return!this.tag},t.prototype.map=function(e){return this.tag?t.some(e(this.value)):t.none()},t.prototype.bind=function(e){return this.tag?e(this.value):t.none()},t.prototype.exists=function(t){return this.tag&&t(this.value)},t.prototype.forall=function(t){return!this.tag||t(this.value)},t.prototype.filter=function(e){return!this.tag||e(this.value)?this:t.none()},t.prototype.getOr=function(t){return this.tag?this.value:t},t.prototype.or=function(t){return this.tag?this:t},t.prototype.getOrThunk=function(t){return this.tag?this.value:t()},t.prototype.orThunk=function(t){return this.tag?this:t()},t.prototype.getOrDie=function(t){if(this.tag)return this.value;throw new Error(null!=t?t:"Called getOrDie on None")},t.from=function(e){return u(e)?t.some(e):t.none()},t.prototype.getOrNull=function(){return this.tag?this.value:null},t.prototype.getOrUndefined=function(){return this.value},t.prototype.each=function(t){this.tag&&t(this.value)},t.prototype.toArray=function(){return this.tag?[this.value]:[]},t.prototype.toString=function(){return this.tag?"some(".concat(this.value,")"):"none()"},t}();l.singletonNone=new l(!1);var a=function(t){return function(e){return u(e)&&t.test(e.nodeName)}},c=a(/^(OL|UL|DL)$/),f=a(/^(TH|TD)$/),p=function(t,e,n){return function(t,e,n){for(var r=0,o=t.length;r<o;r++){var i=t[r];if(e(i,r))return l.some(i);if(n(i,r))break}return l.none()}(e,(function(t){return c(t)&&!/\btox\-/.test(t.className)}),f).exists((function(e){return e.nodeName===n&&function(t,e){return t.dom.isChildOf(e,t.getBody())}(t,e)}))},d=function(t){return i(t)||"default"===t?"":t},g=function(t,e){return function(n){return function(t,e){var n=t.selection.getNode();return e({parents:t.dom.getParents(n),element:n}),t.on("NodeChange",e),function(){return t.off("NodeChange",e)}}(t,(function(r){return function(t,r){var o=t.selection.getStart(!0);n.setActive(p(t,r,e)),n.setEnabled(!function(t,e){var n=t.dom.getParent(e,"ol,ul,dl");return function(t,e){return null!==e&&!t.dom.isEditable(e)}(t,n)&&t.selection.isEditable()}(t,o)&&t.selection.isEditable())}(t,r.parents)}))}},h=function(t,n,r,o,i,u){t.ui.registry.addSplitButton(n,{tooltip:r,icon:"OL"===i?"ordered-list":"unordered-list",presets:"listpreview",columns:3,fetch:function(t){t(s.map(u,(function(t){var e="OL"===i?"num":"bull",n="disc"===t||"decimal"===t?"default":t,r=d(t),o=function(t){return t.replace(/\-/g," ").replace(/\b\w/g,(function(t){return t.toUpperCase()}))}(t);return{type:"choiceitem",value:r,icon:"list-"+e+"-"+n,text:o}})))},onAction:function(){return t.execCommand(o)},onItemAction:function(n,r){e(t,i,r)},select:function(e){var n=function(t){var e=t.dom.getParent(t.selection.getNode(),"ol,ul"),n=t.dom.getStyle(e,"listStyleType");return l.from(n)}(t);return n.map((function(t){return e===t})).getOr(!1)},onSetup:g(t,i)})},m=function(t,n,r,o,i,u){u.length>1?h(t,n,r,o,i,u):function(t,n,r,o,i,u){t.ui.registry.addToggleButton(n,{active:!1,tooltip:r,icon:"OL"===i?"ordered-list":"unordered-list",onSetup:g(t,i),onAction:function(){return t.queryCommandState(o)||""===u?t.execCommand(o):e(t,i,u)}})}(t,n,r,o,i,d(u[0]))};t.add("advlist",(function(t){t.hasPlugin("lists")?(function(t){var e=t.options.register;e("advlist_number_styles",{processor:"string[]",default:"default,lower-alpha,lower-greek,lower-roman,upper-alpha,upper-roman".split(",")}),e("advlist_bullet_styles",{processor:"string[]",default:"default,circle,square".split(",")})}(t),function(t){m(t,"numlist","Numbered list","InsertOrderedList","OL",r(t)),m(t,"bullist","Bullet list","InsertUnorderedList","UL",o(t))}(t),function(t){t.addCommand("ApplyUnorderedListStyle",(function(n,r){e(t,"UL",r["list-style-type"])})),t.addCommand("ApplyOrderedListStyle",(function(n,r){e(t,"OL",r["list-style-type"])}))}(t)):console.error("Please use the Lists plugin together with the Advanced List plugin.")}))}()),t}export{n as __require};
2
- //# sourceMappingURL=plugin.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugin.mjs","sources":["../../../../../public/tinymce/plugins/advlist/plugin.js"],"sourcesContent":["\"use strict\";\n/**\n * TinyMCE version 6.8.5 (TBD)\n */\n(function () {\n 'use strict';\n var global$1 = tinymce.util.Tools.resolve('tinymce.PluginManager');\n var applyListFormat = function (editor, listName, styleValue) {\n var cmd = listName === 'UL' ? 'InsertUnorderedList' : 'InsertOrderedList';\n editor.execCommand(cmd, false, styleValue === false ? null : { 'list-style-type': styleValue });\n };\n var register$2 = function (editor) {\n editor.addCommand('ApplyUnorderedListStyle', function (ui, value) {\n applyListFormat(editor, 'UL', value['list-style-type']);\n });\n editor.addCommand('ApplyOrderedListStyle', function (ui, value) {\n applyListFormat(editor, 'OL', value['list-style-type']);\n });\n };\n var option = function (name) { return function (editor) { return editor.options.get(name); }; };\n var register$1 = function (editor) {\n var registerOption = editor.options.register;\n registerOption('advlist_number_styles', {\n processor: 'string[]',\n default: 'default,lower-alpha,lower-greek,lower-roman,upper-alpha,upper-roman'.split(',')\n });\n registerOption('advlist_bullet_styles', {\n processor: 'string[]',\n default: 'default,circle,square'.split(',')\n });\n };\n var getNumberStyles = option('advlist_number_styles');\n var getBulletStyles = option('advlist_bullet_styles');\n var isNullable = function (a) { return a === null || a === undefined; };\n var isNonNullable = function (a) { return !isNullable(a); };\n var global = tinymce.util.Tools.resolve('tinymce.util.Tools');\n var Optional = /** @class */ (function () {\n function Optional(tag, value) {\n this.tag = tag;\n this.value = value;\n }\n Optional.some = function (value) {\n return new Optional(true, value);\n };\n Optional.none = function () {\n return Optional.singletonNone;\n };\n Optional.prototype.fold = function (onNone, onSome) {\n if (this.tag) {\n return onSome(this.value);\n }\n else {\n return onNone();\n }\n };\n Optional.prototype.isSome = function () {\n return this.tag;\n };\n Optional.prototype.isNone = function () {\n return !this.tag;\n };\n Optional.prototype.map = function (mapper) {\n if (this.tag) {\n return Optional.some(mapper(this.value));\n }\n else {\n return Optional.none();\n }\n };\n Optional.prototype.bind = function (binder) {\n if (this.tag) {\n return binder(this.value);\n }\n else {\n return Optional.none();\n }\n };\n Optional.prototype.exists = function (predicate) {\n return this.tag && predicate(this.value);\n };\n Optional.prototype.forall = function (predicate) {\n return !this.tag || predicate(this.value);\n };\n Optional.prototype.filter = function (predicate) {\n if (!this.tag || predicate(this.value)) {\n return this;\n }\n else {\n return Optional.none();\n }\n };\n Optional.prototype.getOr = function (replacement) {\n return this.tag ? this.value : replacement;\n };\n Optional.prototype.or = function (replacement) {\n return this.tag ? this : replacement;\n };\n Optional.prototype.getOrThunk = function (thunk) {\n return this.tag ? this.value : thunk();\n };\n Optional.prototype.orThunk = function (thunk) {\n return this.tag ? this : thunk();\n };\n Optional.prototype.getOrDie = function (message) {\n if (!this.tag) {\n throw new Error(message !== null && message !== void 0 ? message : 'Called getOrDie on None');\n }\n else {\n return this.value;\n }\n };\n Optional.from = function (value) {\n return isNonNullable(value) ? Optional.some(value) : Optional.none();\n };\n Optional.prototype.getOrNull = function () {\n return this.tag ? this.value : null;\n };\n Optional.prototype.getOrUndefined = function () {\n return this.value;\n };\n Optional.prototype.each = function (worker) {\n if (this.tag) {\n worker(this.value);\n }\n };\n Optional.prototype.toArray = function () {\n return this.tag ? [this.value] : [];\n };\n Optional.prototype.toString = function () {\n return this.tag ? \"some(\".concat(this.value, \")\") : 'none()';\n };\n return Optional;\n }());\n Optional.singletonNone = new Optional(false);\n var findUntil = function (xs, pred, until) {\n for (var i = 0, len = xs.length; i < len; i++) {\n var x = xs[i];\n if (pred(x, i)) {\n return Optional.some(x);\n }\n else if (until(x, i)) {\n break;\n }\n }\n return Optional.none();\n };\n var isCustomList = function (list) { return /\\btox\\-/.test(list.className); };\n var isChildOfBody = function (editor, elm) {\n return editor.dom.isChildOf(elm, editor.getBody());\n };\n var matchNodeNames = function (regex) { return function (node) { return isNonNullable(node) && regex.test(node.nodeName); }; };\n var isListNode = matchNodeNames(/^(OL|UL|DL)$/);\n var isTableCellNode = matchNodeNames(/^(TH|TD)$/);\n var inList = function (editor, parents, nodeName) { return findUntil(parents, function (parent) { return isListNode(parent) && !isCustomList(parent); }, isTableCellNode).exists(function (list) { return list.nodeName === nodeName && isChildOfBody(editor, list); }); };\n var getSelectedStyleType = function (editor) {\n var listElm = editor.dom.getParent(editor.selection.getNode(), 'ol,ul');\n var style = editor.dom.getStyle(listElm, 'listStyleType');\n return Optional.from(style);\n };\n var isWithinNonEditable = function (editor, element) { return element !== null && !editor.dom.isEditable(element); };\n var isWithinNonEditableList = function (editor, element) {\n var parentList = editor.dom.getParent(element, 'ol,ul,dl');\n return isWithinNonEditable(editor, parentList) && editor.selection.isEditable();\n };\n var setNodeChangeHandler = function (editor, nodeChangeHandler) {\n var initialNode = editor.selection.getNode();\n nodeChangeHandler({\n parents: editor.dom.getParents(initialNode),\n element: initialNode\n });\n editor.on('NodeChange', nodeChangeHandler);\n return function () { return editor.off('NodeChange', nodeChangeHandler); };\n };\n var styleValueToText = function (styleValue) {\n return styleValue.replace(/\\-/g, ' ').replace(/\\b\\w/g, function (chr) {\n return chr.toUpperCase();\n });\n };\n var normalizeStyleValue = function (styleValue) { return isNullable(styleValue) || styleValue === 'default' ? '' : styleValue; };\n var makeSetupHandler = function (editor, nodeName) { return function (api) {\n var updateButtonState = function (editor, parents) {\n var element = editor.selection.getStart(true);\n api.setActive(inList(editor, parents, nodeName));\n api.setEnabled(!isWithinNonEditableList(editor, element) && editor.selection.isEditable());\n };\n var nodeChangeHandler = function (e) { return updateButtonState(editor, e.parents); };\n return setNodeChangeHandler(editor, nodeChangeHandler);\n }; };\n var addSplitButton = function (editor, id, tooltip, cmd, nodeName, styles) {\n editor.ui.registry.addSplitButton(id, {\n tooltip: tooltip,\n icon: nodeName === 'OL' ? 'ordered-list' : 'unordered-list',\n presets: 'listpreview',\n columns: 3,\n fetch: function (callback) {\n var items = global.map(styles, function (styleValue) {\n var iconStyle = nodeName === 'OL' ? 'num' : 'bull';\n var iconName = styleValue === 'disc' || styleValue === 'decimal' ? 'default' : styleValue;\n var itemValue = normalizeStyleValue(styleValue);\n var displayText = styleValueToText(styleValue);\n return {\n type: 'choiceitem',\n value: itemValue,\n icon: 'list-' + iconStyle + '-' + iconName,\n text: displayText\n };\n });\n callback(items);\n },\n onAction: function () { return editor.execCommand(cmd); },\n onItemAction: function (_splitButtonApi, value) {\n applyListFormat(editor, nodeName, value);\n },\n select: function (value) {\n var listStyleType = getSelectedStyleType(editor);\n return listStyleType.map(function (listStyle) { return value === listStyle; }).getOr(false);\n },\n onSetup: makeSetupHandler(editor, nodeName)\n });\n };\n var addButton = function (editor, id, tooltip, cmd, nodeName, styleValue) {\n editor.ui.registry.addToggleButton(id, {\n active: false,\n tooltip: tooltip,\n icon: nodeName === 'OL' ? 'ordered-list' : 'unordered-list',\n onSetup: makeSetupHandler(editor, nodeName),\n onAction: function () { return editor.queryCommandState(cmd) || styleValue === '' ? editor.execCommand(cmd) : applyListFormat(editor, nodeName, styleValue); }\n });\n };\n var addControl = function (editor, id, tooltip, cmd, nodeName, styles) {\n if (styles.length > 1) {\n addSplitButton(editor, id, tooltip, cmd, nodeName, styles);\n }\n else {\n addButton(editor, id, tooltip, cmd, nodeName, normalizeStyleValue(styles[0]));\n }\n };\n var register = function (editor) {\n addControl(editor, 'numlist', 'Numbered list', 'InsertOrderedList', 'OL', getNumberStyles(editor));\n addControl(editor, 'bullist', 'Bullet list', 'InsertUnorderedList', 'UL', getBulletStyles(editor));\n };\n var Plugin = function () {\n global$1.add('advlist', function (editor) {\n if (editor.hasPlugin('lists')) {\n register$1(editor);\n register(editor);\n register$2(editor);\n }\n else {\n console.error('Please use the Lists plugin together with the Advanced List plugin.');\n }\n });\n };\n Plugin();\n})();\n"],"names":["global$1","tinymce","util","Tools","resolve","applyListFormat","editor","listName","styleValue","cmd","execCommand","option","name","options","get","getNumberStyles","getBulletStyles","isNullable","a","isNonNullable","global","Optional","tag","value","this","some","none","singletonNone","prototype","fold","onNone","onSome","isSome","isNone","map","mapper","bind","binder","exists","predicate","forall","filter","getOr","replacement","or","getOrThunk","thunk","orThunk","getOrDie","message","Error","from","getOrNull","getOrUndefined","each","worker","toArray","toString","concat","matchNodeNames","regex","node","test","nodeName","isListNode","isTableCellNode","inList","parents","xs","pred","until","i","len","length","x","findUntil","parent","className","list","elm","dom","isChildOf","getBody","isChildOfBody","normalizeStyleValue","makeSetupHandler","api","nodeChangeHandler","initialNode","selection","getNode","getParents","element","on","off","setNodeChangeHandler","e","getStart","setActive","setEnabled","parentList","getParent","isEditable","isWithinNonEditable","isWithinNonEditableList","updateButtonState","addSplitButton","id","tooltip","styles","ui","registry","icon","presets","columns","fetch","callback","iconStyle","iconName","itemValue","displayText","replace","chr","toUpperCase","styleValueToText","type","text","onAction","onItemAction","_splitButtonApi","select","listStyleType","listElm","style","getStyle","getSelectedStyleType","listStyle","onSetup","addControl","addToggleButton","active","queryCommandState","addButton","add","hasPlugin","registerOption","register","processor","default","split","register$1","addCommand","register$2","console","error"],"mappings":"+FAIA,WAEI,IAAIA,EAAWC,QAAQC,KAAKC,MAAMC,QAAQ,yBACtCC,EAAkB,SAAUC,EAAQC,EAAUC,GAC9C,IAAIC,EAAmB,OAAbF,EAAoB,sBAAwB,oBACtDD,EAAOI,YAAYD,GAAK,GAAsB,IAAfD,EAAuB,KAAO,CAAE,kBAAmBA,KAUlFG,EAAS,SAAUC,GAAQ,OAAO,SAAUN,GAAU,OAAOA,EAAOO,QAAQC,IAAIF,EAAM,CAAG,EAYzFG,EAAkBJ,EAAO,yBACzBK,EAAkBL,EAAO,yBACzBM,EAAa,SAAUC,GAAK,OAAOA,SACnCC,EAAgB,SAAUD,GAAK,OAAQD,EAAWC,IAClDE,EAASnB,QAAQC,KAAKC,MAAMC,QAAQ,sBACpCiB,EAA0B,WAC1B,SAASA,EAASC,EAAKC,GACnBC,KAAKF,IAAMA,EACXE,KAAKD,MAAQA,CACzB,CA2FQ,OA1FAF,EAASI,KAAO,SAAUF,GACtB,OAAO,IAAIF,GAAS,EAAME,IAE9BF,EAASK,KAAO,WACZ,OAAOL,EAASM,eAEpBN,EAASO,UAAUC,KAAO,SAAUC,EAAQC,GACxC,OAAIP,KAAKF,IACES,EAAOP,KAAKD,O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rBoI,EAAWpI,EAAQ,UAAW,gBAAiB,oBAAqB,KAAMS,EAAgBT,IAC1FoI,EAAWpI,EAAQ,UAAW,cAAe,sBAAuB,KAAMU,EAAgBV,IAMlF4I,CAAS5I,GA1OJ,SAAUA,GACvBA,EAAOiJ,WAAW,2BAA2B,SAAUzC,EAAIvF,GACvDlB,EAAgBC,EAAQ,KAAMiB,EAAM,mBAChD,IACQjB,EAAOiJ,WAAW,yBAAyB,SAAUzC,EAAIvF,GACrDlB,EAAgBC,EAAQ,KAAMiB,EAAM,mBAChD,IAqOgBiI,CAAWlJ,IAGXmJ,QAAQC,MAAM,sEAE9B,GAGC,CA1PD"}
@@ -1,2 +0,0 @@
1
- import{__exports as r}from"../../../../_virtual/index4.mjs";import{__require as e}from"./plugin.mjs";var i;function o(){return i||(i=1,e()),r}export{o as __require};
2
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../../../public/tinymce/plugins/code/index.js"],"sourcesContent":["\"use strict\";\n// Exports the \"code\" plugin for usage with module loaders\n// Usage:\n// CommonJS:\n// require('tinymce/plugins/code')\n// ES2015:\n// import 'tinymce/plugins/code'\nrequire('./plugin.js');\n"],"names":["require$$0"],"mappings":"uIAOsBA"}
@@ -1,2 +0,0 @@
1
- import{__exports as e}from"../../../../_virtual/plugin2.mjs";var t;function n(){return t||(t=1,tinymce.util.Tools.resolve("tinymce.PluginManager").add("code",(function(e){return function(e){e.addCommand("mceCodeEditor",(function(){!function(e){var t=function(e){return e.getContent({source_view:!0})}(e);e.windowManager.open({title:"Source Code",size:"large",body:{type:"panel",items:[{type:"textarea",name:"code"}]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:{code:t},onSubmit:function(t){!function(e,t){e.focus(),e.undoManager.transact((function(){e.setContent(t)})),e.selection.setCursorLocation(),e.nodeChanged()}(e,t.getData().code),t.close()}})}(e)}))}(e),function(e){var t=function(){return e.execCommand("mceCodeEditor")};e.ui.registry.addButton("code",{icon:"sourcecode",tooltip:"Source code",onAction:t}),e.ui.registry.addMenuItem("code",{icon:"sourcecode",text:"Source code",onAction:t})}(e),{}}))),e}export{n as __require};
2
- //# sourceMappingURL=plugin.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugin.mjs","sources":["../../../../../public/tinymce/plugins/code/plugin.js"],"sourcesContent":["\"use strict\";\n/**\n * TinyMCE version 6.8.5 (TBD)\n */\n(function () {\n 'use strict';\n var global = tinymce.util.Tools.resolve('tinymce.PluginManager');\n var setContent = function (editor, html) {\n editor.focus();\n editor.undoManager.transact(function () {\n editor.setContent(html);\n });\n editor.selection.setCursorLocation();\n editor.nodeChanged();\n };\n var getContent = function (editor) {\n return editor.getContent({ source_view: true });\n };\n var open = function (editor) {\n var editorContent = getContent(editor);\n editor.windowManager.open({\n title: 'Source Code',\n size: 'large',\n body: {\n type: 'panel',\n items: [{\n type: 'textarea',\n name: 'code'\n }]\n },\n buttons: [\n {\n type: 'cancel',\n name: 'cancel',\n text: 'Cancel'\n },\n {\n type: 'submit',\n name: 'save',\n text: 'Save',\n primary: true\n }\n ],\n initialData: { code: editorContent },\n onSubmit: function (api) {\n setContent(editor, api.getData().code);\n api.close();\n }\n });\n };\n var register$1 = function (editor) {\n editor.addCommand('mceCodeEditor', function () {\n open(editor);\n });\n };\n var register = function (editor) {\n var onAction = function () { return editor.execCommand('mceCodeEditor'); };\n editor.ui.registry.addButton('code', {\n icon: 'sourcecode',\n tooltip: 'Source code',\n onAction: onAction\n });\n editor.ui.registry.addMenuItem('code', {\n icon: 'sourcecode',\n text: 'Source code',\n onAction: onAction\n });\n };\n var Plugin = function () {\n global.add('code', function (editor) {\n register$1(editor);\n register(editor);\n return {};\n });\n };\n Plugin();\n})();\n"],"names":["tinymce","util","Tools","resolve","add","editor","addCommand","editorContent","getContent","source_view","windowManager","open","title","size","body","type","items","name","buttons","text","primary","initialData","code","onSubmit","api","html","focus","undoManager","transact","setContent","selection","setCursorLocation","nodeChanged","getData","close","register$1","onAction","execCommand","ui","registry","addButton","icon","tooltip","addMenuItem","register"],"mappings":"+FAMiBA,QAAQC,KAAKC,MAAMC,QAAQ,yBA+D7BC,IAAI,QAAQ,SAAUC,GAGzB,OAtBS,SAAUA,GACvBA,EAAOC,WAAW,iBAAiB,YAjC5B,SAAUD,GACjB,IAAIE,EAJS,SAAUF,GACvB,OAAOA,EAAOG,WAAW,CAAEC,aAAa,IAGpBD,CAAWH,GAC/BA,EAAOK,cAAcC,KAAK,CACtBC,MAAO,cACPC,KAAM,QACNC,KAAM,CACFC,KAAM,QACNC,MAAO,CAAC,CACAD,KAAM,WACNE,KAAM,UAGlBC,QAAS,CACL,CACIH,KAAM,SACNE,KAAM,SACNE,KAAM,UAEV,CACIJ,KAAM,SACNE,KAAM,OACNE,KAAM,OACNC,SAAS,IAGjBC,YAAa,CAAEC,KAAMf,GACrBgB,SAAU,SAAUC,IArCX,SAAUnB,EAAQoB,GAC/BpB,EAAOqB,QACPrB,EAAOsB,YAAYC,UAAS,WACxBvB,EAAOwB,WAAWJ,EAC9B,IACQpB,EAAOyB,UAAUC,oBACjB1B,EAAO2B,cAgCCH,CAAWxB,EAAQmB,EAAIS,UAAUX,MACjCE,EAAIU,OACpB,IAKYvB,CAAKN,EACjB,IAiBY8B,CAAW9B,GAfJ,SAAUA,GACrB,IAAI+B,EAAW,WAAc,OAAO/B,EAAOgC,YAAY,kBACvDhC,EAAOiC,GAAGC,SAASC,UAAU,OAAQ,CACjCC,KAAM,aACNC,QAAS,cACTN,SAAUA,IAEd/B,EAAOiC,GAAGC,SAASI,YAAY,OAAQ,CACnCF,KAAM,aACNtB,KAAM,cACNiB,SAAUA,IAMVQ,CAASvC,GACF,EACnB"}
@@ -1,2 +0,0 @@
1
- import{__exports as r}from"../../../../_virtual/index2.mjs";import{__require as e}from"./plugin.mjs";var i;function o(){return i||(i=1,e()),r}export{o as __require};
2
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../../../public/tinymce/plugins/link/index.js"],"sourcesContent":["\"use strict\";\n// Exports the \"link\" plugin for usage with module loaders\n// Usage:\n// CommonJS:\n// require('tinymce/plugins/link')\n// ES2015:\n// import 'tinymce/plugins/link'\nrequire('./plugin.js');\n"],"names":["require$$0"],"mappings":"uIAOsBA"}
@@ -1,2 +0,0 @@
1
- import{__exports as t}from"../../../../_virtual/plugin.mjs";var n;function e(){if(n)return t;n=1;var e=t&&t.__assign||function(){return e=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var o in n=arguments[e])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},e.apply(this,arguments)};return function(){var t,n=tinymce.util.Tools.resolve("tinymce.PluginManager"),r=function(t){return function(n){return u=typeof(e=n),(null===e?"null":"object"===u&&Array.isArray(e)?"array":"object"===u&&(a=r=e,(o=String).prototype.isPrototypeOf(a)||(null===(i=r.constructor)||void 0===i?void 0:i.name)===o.name)?"string":u)===t;var e,r,o,i,u,a}},o=function(t){return function(n){return typeof n===t}},i=r("string"),u=r("object"),a=r("array"),l=(t=null,function(n){return t===n}),c=o("boolean"),f=function(t){return!function(t){return null==t}(t)},s=o("function"),g=function(t,n){if(a(t)){for(var e=0,r=t.length;e<r;++e)if(!n(t[e]))return!1;return!0}return!1},d=function(){},m=function(t,n){return t===n},h=function(){function t(t,n){this.tag=t,this.value=n}return t.some=function(n){return new t(!0,n)},t.none=function(){return t.singletonNone},t.prototype.fold=function(t,n){return this.tag?n(this.value):t()},t.prototype.isSome=function(){return this.tag},t.prototype.isNone=function(){return!this.tag},t.prototype.map=function(n){return this.tag?t.some(n(this.value)):t.none()},t.prototype.bind=function(n){return this.tag?n(this.value):t.none()},t.prototype.exists=function(t){return this.tag&&t(this.value)},t.prototype.forall=function(t){return!this.tag||t(this.value)},t.prototype.filter=function(n){return!this.tag||n(this.value)?this:t.none()},t.prototype.getOr=function(t){return this.tag?this.value:t},t.prototype.or=function(t){return this.tag?this:t},t.prototype.getOrThunk=function(t){return this.tag?this.value:t()},t.prototype.orThunk=function(t){return this.tag?this:t()},t.prototype.getOrDie=function(t){if(this.tag)return this.value;throw new Error(null!=t?t:"Called getOrDie on None")},t.from=function(n){return f(n)?t.some(n):t.none()},t.prototype.getOrNull=function(){return this.tag?this.value:null},t.prototype.getOrUndefined=function(){return this.value},t.prototype.each=function(t){this.tag&&t(this.value)},t.prototype.toArray=function(){return this.tag?[this.value]:[]},t.prototype.toString=function(){return this.tag?"some(".concat(this.value,")"):"none()"},t}();h.singletonNone=new h(!1);var p=Array.prototype.indexOf,v=Array.prototype.push,k=function(t,n){return function(t,n){return p.call(t,n)}(t,n)>-1},y=function(t){for(var n=[],e=0,r=t.length;e<r;++e){if(!a(t[e]))throw new Error("Arr.flatten item "+e+" was not an array, input: "+t);v.apply(n,t[e])}return n},x=function(t,n){return y(function(t,n){for(var e=t.length,r=new Array(e),o=0;o<e;o++){var i=t[o];r[o]=n(i,o)}return r}(t,n))},b=function(t,n){for(var e=0;e<t.length;e++){var r=n(t[e],e);if(r.isSome())return r}return h.none()},_=function(t,n,e){return void 0===e&&(e=m),t.exists((function(t){return e(t,n)}))},w=function(t){for(var n=[],e=function(t){n.push(t)},r=0;r<t.length;r++)t[r].each(e);return n},O=function(t,n){return t?h.some(n):h.none()},C=function(t){return function(n){return n.options.get(t)}},N=C("link_assume_external_targets"),A=C("link_context_toolbar"),S=C("link_list"),E=C("link_default_target"),T=C("link_default_protocol"),P=C("link_target_list"),R=C("link_rel_list"),L=C("link_class_list"),M=C("link_title"),D=C("allow_unsafe_link_target"),U=C("link_quicklink"),j=tinymce.util.Tools.resolve("tinymce.util.Tools"),B=function(t){return i(t.value)?t.value:""},I=function(t,n){var e=[];return j.each(t,(function(t){var r=function(t){return i(t.text)?t.text:i(t.title)?t.title:""}(t);if(void 0!==t.menu){var o=I(t.menu,n);e.push({text:r,items:o})}else{var u=n(t);e.push({text:r,value:u})}})),e},K=function(t){return void 0===t&&(t=B),function(n){return h.from(n).map((function(n){return I(n,t)}))}},z={sanitize:function(t){return K(B)(t)},sanitizeWith:K,createUi:function(t,n){return function(e){return{name:t,type:"listbox",label:n,items:e}}},getValue:B},q=Object.keys,V=Object.hasOwnProperty,F=function(t,n,e,r){!function(t,n){for(var e=q(t),r=0,o=e.length;r<o;r++){var i=e[r];n(t[i],i)}}(t,(function(t,o){(n(t,o)?e:r)(t,o)}))},W=function(t,n){return V.call(t,n)},G=tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"),H=tinymce.util.Tools.resolve("tinymce.util.URI"),J=function(t){return f(t)&&"a"===t.nodeName.toLowerCase()},Q=function(t){return J(t)&&!!Z(t)},X=function(t,n){if(t.collapsed)return[];var e=t.cloneContents(),r=e.firstChild,o=new G(r,e),i=[],u=r;do{n(u)&&i.push(u)}while(u=o.next());return i},Y=function(t){return/^\w+:/i.test(t)},Z=function(t){var n,e;return null!==(e=null!==(n=t.getAttribute("data-mce-href"))&&void 0!==n?n:t.getAttribute("href"))&&void 0!==e?e:""},$=function(t,n){var e=["noopener"],r=t?t.split(/\s+/):[],o=function(t){return t.filter((function(t){return-1===j.inArray(e,t)}))},i=n?function(t){return(t=o(t)).length>0?t.concat(e):e}(r):o(r);return i.length>0?function(t){return j.trim(t.sort().join(" "))}(i):""},tt=function(t,n){return n=n||rt(t.selection.getRng())[0]||t.selection.getNode(),at(n)?h.from(t.dom.select("a[href]",n)[0]):h.from(t.dom.getParent(n,"a[href]"))},nt=function(t,n){return tt(t,n).isSome()},et=function(t,n){return function(t){return t.replace(/\uFEFF/g,"")}(n.fold((function(){return t.getContent({format:"text"})}),(function(t){return t.innerText||t.textContent||""})))},rt=function(t){return X(t,Q)},ot=function(t){return j.grep(t,Q)},it=function(t){return ot(t).length>0},ut=function(t){var n=t.schema.getTextInlineElements();if(tt(t).exists((function(t){return t.hasAttribute("data-mce-block")})))return!1;var e=t.selection.getRng();return!!e.collapsed||0===X(e,(function(t){return 1===t.nodeType&&!J(t)&&!W(n,t.nodeName.toLowerCase())})).length},at=function(t){return f(t)&&"FIGURE"===t.nodeName&&/\bimage\b/i.test(t.className)},lt=function(t,n){var r=e({},n);if(0===R(t).length&&!D(t)){var o=$(r.rel,"_blank"===r.target);r.rel=o||null}return h.from(r.target).isNone()&&!1===P(t)&&(r.target=E(t)),r.href=function(t,n){return"http"!==n&&"https"!==n||Y(t)?t:n+"://"+t}(r.href,N(t)),r},ct=function(t,n,e){var r=t.selection.getNode(),o=tt(t,r),i=lt(t,function(t){var n,e,r;return n=["title","rel","class","target"],e=function(n,e){return t[e].each((function(t){n[e]=t.length>0?t:null})),n},r={href:t.href},function(t,n){for(var e=0,r=t.length;e<r;e++)n(t[e],e)}(n,(function(t,n){r=e(r,t,n)})),r}(e));t.undoManager.transact((function(){e.href===n.href&&n.attach(),o.fold((function(){!function(t,n,e,r){var o=t.dom;at(n)?mt(o,n,r):e.fold((function(){t.execCommand("mceInsertLink",!1,r)}),(function(n){t.insertContent(o.createHTML("a",r,o.encode(n)))}))}(t,r,e.text,i)}),(function(n){t.focus(),function(t,n,e,r){e.each((function(t){W(n,"innerText")?n.innerText=t:n.textContent=t})),t.dom.setAttribs(n,r),t.selection.select(n)}(t,n,e.text,i)}))}))},ft=function(t){var n=t.class,e=t.href,r=t.rel,o=t.target,i=t.text,u=t.title;return function(t,n){var e,r={};return F(t,n,(e=r,function(t,n){e[n]=t}),d),r}({class:n.getOrNull(),href:e,rel:r.getOrNull(),target:o.getOrNull(),text:i.getOrNull(),title:u.getOrNull()},(function(t,n){return!1===l(t)}))},st=function(t,n,r){var o=function(t,n){var r=t.options.get,o={allow_html_data_urls:r("allow_html_data_urls"),allow_script_urls:r("allow_script_urls"),allow_svg_data_urls:r("allow_svg_data_urls")},i=n.href;return e(e({},n),{href:H.isDomSafe(i,"a",o)?i:""})}(t,r);t.hasPlugin("rtc",!0)?t.execCommand("createlink",!1,ft(o)):ct(t,n,o)},gt=function(t){t.hasPlugin("rtc",!0)?t.execCommand("unlink"):function(t){t.undoManager.transact((function(){var n=t.selection.getNode();at(n)?dt(t,n):function(t){var n=t.dom,e=t.selection,r=e.getBookmark(),o=e.getRng().cloneRange(),i=n.getParent(o.startContainer,"a[href]",t.getBody()),u=n.getParent(o.endContainer,"a[href]",t.getBody());i&&o.setStartBefore(i),u&&o.setEndAfter(u),e.setRng(o),t.execCommand("unlink"),e.moveToBookmark(r)}(t),t.focus()}))}(t)},dt=function(t,n){var e,r=t.dom.select("img",n)[0];if(r){var o=t.dom.getParents(r,"a[href]",n)[0];o&&(null===(e=o.parentNode)||void 0===e||e.insertBefore(r,o),t.dom.remove(o))}},mt=function(t,n,e){var r,o=t.select("img",n)[0];if(o){var i=t.create("a",e);null===(r=o.parentNode)||void 0===r||r.insertBefore(i,o),i.appendChild(o)}},ht=function(t){return W(n=t,e="items")&&void 0!==n[e]&&null!==n[e];var n,e},pt=function(t,n){return b(n,(function(n){return ht(n)?pt(t,n.items):O(n.value===t,n)}))},vt=function(t,n,e,r){var o=r[n],i=t.length>0;return void 0!==o?pt(o,e).map((function(n){return{url:{value:n.value,meta:{text:i?t:n.text,attach:d}},text:i?t:n.text}})):h.none()},kt=function(t,n){var r={text:t.text,title:t.title},o=function(t){var n,o,i=(n=t.url,O(r.text.length<=0,h.from(null===(o=n.meta)||void 0===o?void 0:o.text).getOr(n.value))),u=function(t){var n;return O(r.title.length<=0,h.from(null===(n=t.meta)||void 0===n?void 0:n.title).getOr(""))}(t.url);return i.isSome()||u.isSome()?h.some(e(e({},i.map((function(t){return{text:t}})).getOr({})),u.map((function(t){return{title:t}})).getOr({}))):h.none()},i=function(t,e){var o,i,u=(o=n,i=e,"link"===i?o.link:"anchor"===i?o.anchor:h.none()).getOr([]);return vt(r.text,e,u,t)};return{onChange:function(t,n){var e=n.name;return"url"===e?o(t()):k(["anchor","link"],e)?i(t(),e):"text"===e||"title"===e?(r[e]=t()[e],h.none()):h.none()}}},yt=tinymce.util.Tools.resolve("tinymce.util.Delay"),xt=function(t){var n=t.href;return n.indexOf("@")>0&&-1===n.indexOf("/")&&-1===n.indexOf("mailto:")?h.some({message:"The URL you entered seems to be an email address. Do you want to add the required mailto: prefix?",preprocess:function(t){return e(e({},t),{href:"mailto:"+n})}}):h.none()},bt=function(t,n){return function(r){var o=r.href;return 1===t&&!Y(o)||0===t&&/^\s*www(\.|\d\.)/i.test(o)?h.some({message:"The URL you entered seems to be an external link. Do you want to add the required ".concat(n,":// prefix?"),preprocess:function(t){return e(e({},t),{href:n+"://"+o})}}):h.none()}},_t=function(t,n){return b([xt,bt(N(t),T(t))],(function(t){return t(n)})).fold((function(){return Promise.resolve(n)}),(function(e){return new Promise((function(r){!function(t,n,e){var r=t.selection.getRng();yt.setEditorTimeout(t,(function(){t.windowManager.confirm(n,(function(n){t.selection.setRng(r),e(n)}))}))}(t,e.message,(function(t){r(t?e.preprocess(n):n)}))}))}))},wt=function(t){var n=t.dom.select("a:not([href])"),e=x(n,(function(t){var n=t.name||t.id;return n?[{text:n,value:"#"+n}]:[]}));return e.length>0?h.some([{text:"None",value:""}].concat(e)):h.none()},Ot=function(t){var n=L(t);return n.length>0?z.sanitize(n):h.none()},Ct=function(t){try{return h.some(JSON.parse(t))}catch(t){return h.none()}},Nt=function(t){var n=function(n){return t.convertURL(n.value||n.url||"","href")},e=S(t);return new Promise((function(t){i(e)?fetch(e).then((function(t){return t.ok?t.text().then(Ct):Promise.reject()})).then(t,(function(){return t(h.none())})):s(e)?e((function(n){return t(h.some(n))})):t(h.from(e))})).then((function(t){return t.bind(z.sanitizeWith(n)).map((function(t){if(t.length>0){return[{text:"None",value:""}].concat(t)}return t}))}))},At=function(t,n){var e=R(t);if(e.length>0){var r=_(n,"_blank");return(!1===D(t)?z.sanitizeWith((function(t){return $(z.getValue(t),r)})):z.sanitize)(e)}return h.none()},St=[{text:"Current window",value:""},{text:"New window",value:"_blank"}],Et=function(t){var n=P(t);return a(n)?z.sanitize(n).orThunk((function(){return h.some(St)})):!1===n?h.none():h.some(St)},Tt=function(t,n,e){var r=t.getAttrib(n,e);return null!==r&&r.length>0?h.some(r):h.none()},Pt=function(t,n){return Nt(t).then((function(e){var r=function(t,n){var e=t.dom,r=ut(t)?h.some(et(t.selection,n)):h.none(),o=n.bind((function(t){return h.from(e.getAttrib(t,"href"))})),i=n.bind((function(t){return h.from(e.getAttrib(t,"target"))})),u=n.bind((function(t){return Tt(e,t,"rel")})),a=n.bind((function(t){return Tt(e,t,"class")}));return{url:o,text:r,title:n.bind((function(t){return Tt(e,t,"title")})),target:i,rel:u,linkClass:a}}(t,n);return{anchor:r,catalogs:{targets:Et(t),rels:At(t,r.target),classes:Ot(t),anchor:wt(t),link:e},optNode:n,flags:{titleEnabled:M(t)}}}))},Rt=function(t){var n=function(t){var n=tt(t);return Pt(t,n)}(t);n.then((function(n){var e=function(t,n){return function(e){var r=e.getData();if(!r.url.value)return gt(t),void e.close();var o=function(t){return h.from(r[t]).filter((function(e){return!_(n.anchor[t],e)}))},i={href:r.url.value,text:o("text"),target:o("target"),rel:o("rel"),class:o("linkClass"),title:o("title")},u={href:r.url.value,attach:void 0!==r.url.meta&&r.url.meta.attach?r.url.meta.attach:d};_t(t,i).then((function(n){st(t,u,n)})),e.close()}}(t,n);return function(t,n,e){var r=t.anchor.text.map((function(){return{name:"text",type:"input",label:"Text to display"}})).toArray(),o=t.flags.titleEnabled?[{name:"title",type:"input",label:"Title"}]:[],i=function(t,n){var e=t.anchor,r=e.url.getOr("");return{url:{value:r,meta:{original:{value:r}}},text:e.text.getOr(""),title:e.title.getOr(""),anchor:r,link:r,rel:e.rel.getOr(""),target:e.target.or(n).getOr(""),linkClass:e.linkClass.getOr("")}}(t,h.from(E(e))),u=t.catalogs,a=kt(i,u);return{title:"Insert/Edit Link",size:"normal",body:{type:"panel",items:y([[{name:"url",type:"urlinput",filetype:"file",label:"URL",picker_text:"Browse links"}],r,o,w([u.anchor.map(z.createUi("anchor","Anchors")),u.rels.map(z.createUi("rel","Rel")),u.targets.map(z.createUi("target","Open link in...")),u.link.map(z.createUi("link","Link list")),u.classes.map(z.createUi("linkClass","Class"))])])},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:i,onChange:function(t,n){var e=n.name;a.onChange(t.getData,{name:e}).each((function(n){t.setData(n)}))},onSubmit:n}}(n,e,t)})).then((function(n){t.windowManager.open(n)}))},Lt=tinymce.util.Tools.resolve("tinymce.util.VK"),Mt=function(t){var n=document.createElement("a");n.target="_blank",n.href=t,n.rel="noreferrer noopener";var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),function(t,n){document.body.appendChild(t),t.dispatchEvent(n),document.body.removeChild(t)}(n,e)},Dt=function(t,n){return t.dom.getParent(n,"a[href]")},Ut=function(t){return Dt(t,t.selection.getStart())},jt=function(t,n){if(n){var e=Z(n);if(/^#/.test(e)){var r=t.dom.select(e);r.length&&t.selection.scrollIntoView(r[0],!0)}else Mt(n.href)}},Bt=function(t){return function(){t.execCommand("mceLink",!1,{dialog:!0})}},It=function(t){return function(){jt(t,Ut(t))}},Kt=function(t,n){return t.on("NodeChange",n),function(){return t.off("NodeChange",n)}},zt=function(t){return function(n){var e=function(){n.setActive(!t.mode.isReadOnly()&&nt(t,t.selection.getNode())),n.setEnabled(t.selection.isEditable())};return e(),Kt(t,e)}},qt=function(t){return function(n){var e=function(){n.setEnabled(t.selection.isEditable())};return e(),Kt(t,e)}},Vt=function(t){return function(n){var e=function(){return n.setEnabled(function(t){return 1===(t.selection.isCollapsed()?ot(t.dom.getParents(t.selection.getStart())):rt(t.selection.getRng())).length}(t))};return e(),Kt(t,e)}},Ft=function(t){return function(n){var e=function(n){return it(n)||(e=t.selection.getRng(),rt(e).length>0);var e},r=t.dom.getParents(t.selection.getStart()),o=function(r){n.setEnabled(e(r)&&t.selection.isEditable())};return o(r),Kt(t,(function(t){return o(t.parents)}))}},Wt=function(t){var n=function(n){var e=t.selection.getNode();return n.setEnabled(nt(t,e)),d};t.ui.registry.addContextForm("quicklink",{launch:{type:"contextformtogglebutton",icon:"link",tooltip:"Link",onSetup:zt(t)},label:"Link",predicate:function(n){return A(t)&&nt(t,n)},initValue:function(){var n;return tt(t).fold((n="",function(){return n}),Z)},commands:[{type:"contextformtogglebutton",icon:"link",tooltip:"Link",primary:!0,onSetup:function(n){var e=t.selection.getNode();return n.setActive(nt(t,e)),zt(t)(n)},onAction:function(n){var e=n.getValue(),r=function(n){var e=tt(t),r=ut(t);if(e.isNone()&&r){var o=et(t.selection,e);return O(0===o.length,n)}return h.none()}(e);st(t,{href:e,attach:d},{href:e,text:r,title:h.none(),rel:h.none(),target:h.none(),class:h.none()}),function(t){t.selection.collapse(!1)}(t),n.hide()}},{type:"contextformbutton",icon:"unlink",tooltip:"Remove link",onSetup:n,onAction:function(n){gt(t),n.hide()}},{type:"contextformbutton",icon:"new-tab",tooltip:"Open link",onSetup:n,onAction:function(n){It(t)(),n.hide()}}]})};n.add("link",(function(t){!function(t){var n=t.options.register;n("link_assume_external_targets",{processor:function(t){var n=i(t)||c(t);return n?!0===t?{value:1,valid:n}:"http"===t||"https"===t?{value:t,valid:n}:{value:0,valid:n}:{valid:!1,message:"Must be a string or a boolean."}},default:!1}),n("link_context_toolbar",{processor:"boolean",default:!1}),n("link_list",{processor:function(t){return i(t)||s(t)||g(t,u)}}),n("link_default_target",{processor:"string"}),n("link_default_protocol",{processor:"string",default:"https"}),n("link_target_list",{processor:function(t){return c(t)||g(t,u)},default:!0}),n("link_rel_list",{processor:"object[]",default:[]}),n("link_class_list",{processor:"object[]",default:[]}),n("link_title",{processor:"boolean",default:!0}),n("allow_unsafe_link_target",{processor:"boolean",default:!1}),n("link_quicklink",{processor:"boolean",default:!1})}(t),function(t){t.ui.registry.addToggleButton("link",{icon:"link",tooltip:"Insert/edit link",onAction:Bt(t),onSetup:zt(t)}),t.ui.registry.addButton("openlink",{icon:"new-tab",tooltip:"Open link",onAction:It(t),onSetup:Vt(t)}),t.ui.registry.addButton("unlink",{icon:"unlink",tooltip:"Remove link",onAction:function(){return gt(t)},onSetup:Ft(t)})}(t),function(t){t.ui.registry.addMenuItem("openlink",{text:"Open link",icon:"new-tab",onAction:It(t),onSetup:Vt(t)}),t.ui.registry.addMenuItem("link",{icon:"link",text:"Link...",shortcut:"Meta+K",onSetup:qt(t),onAction:Bt(t)}),t.ui.registry.addMenuItem("unlink",{icon:"unlink",text:"Remove link",onAction:function(){return gt(t)},onSetup:Ft(t)})}(t),function(t){t.ui.registry.addContextMenu("link",{update:function(n){return t.dom.isEditable(n)?it(t.dom.getParents(n,"a"))?"link unlink openlink":"link":""}})}(t),Wt(t),function(t){t.on("click",(function(n){var e=Dt(t,n.target);e&&Lt.metaKeyPressed(n)&&(n.preventDefault(),jt(t,e))})),t.on("keydown",(function(n){if(!n.isDefaultPrevented()&&13===n.keyCode&&function(t){return!0===t.altKey&&!1===t.shiftKey&&!1===t.ctrlKey&&!1===t.metaKey}(n)){var e=Ut(t);e&&(n.preventDefault(),jt(t,e))}}))}(t),function(t){t.addCommand("mceLink",(function(n,e){!0!==(null==e?void 0:e.dialog)&&U(t)?t.dispatch("contexttoolbar-show",{toolbarKey:"quicklink"}):Rt(t)}))}(t),function(t){t.addShortcut("Meta+K","",(function(){t.execCommand("mceLink")}))}(t)}))}(),t}export{e as __require};
2
- //# sourceMappingURL=plugin.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugin.mjs","sources":["../../../../../public/tinymce/plugins/link/plugin.js"],"sourcesContent":["\"use strict\";\n/**\n * TinyMCE version 6.8.5 (TBD)\n */\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\n(function () {\n 'use strict';\n var global$5 = tinymce.util.Tools.resolve('tinymce.PluginManager');\n var hasProto = function (v, constructor, predicate) {\n var _a;\n if (predicate(v, constructor.prototype)) {\n return true;\n }\n else {\n return ((_a = v.constructor) === null || _a === void 0 ? void 0 : _a.name) === constructor.name;\n }\n };\n var typeOf = function (x) {\n var t = typeof x;\n if (x === null) {\n return 'null';\n }\n else if (t === 'object' && Array.isArray(x)) {\n return 'array';\n }\n else if (t === 'object' && hasProto(x, String, function (o, proto) { return proto.isPrototypeOf(o); })) {\n return 'string';\n }\n else {\n return t;\n }\n };\n var isType = function (type) { return function (value) { return typeOf(value) === type; }; };\n var isSimpleType = function (type) { return function (value) { return typeof value === type; }; };\n var eq = function (t) { return function (a) { return t === a; }; };\n var isString = isType('string');\n var isObject = isType('object');\n var isArray = isType('array');\n var isNull = eq(null);\n var isBoolean = isSimpleType('boolean');\n var isNullable = function (a) { return a === null || a === undefined; };\n var isNonNullable = function (a) { return !isNullable(a); };\n var isFunction = isSimpleType('function');\n var isArrayOf = function (value, pred) {\n if (isArray(value)) {\n for (var i = 0, len = value.length; i < len; ++i) {\n if (!pred(value[i])) {\n return false;\n }\n }\n return true;\n }\n return false;\n };\n var noop = function () {\n };\n var constant = function (value) {\n return function () {\n return value;\n };\n };\n var tripleEquals = function (a, b) {\n return a === b;\n };\n var Optional = /** @class */ (function () {\n function Optional(tag, value) {\n this.tag = tag;\n this.value = value;\n }\n Optional.some = function (value) {\n return new Optional(true, value);\n };\n Optional.none = function () {\n return Optional.singletonNone;\n };\n Optional.prototype.fold = function (onNone, onSome) {\n if (this.tag) {\n return onSome(this.value);\n }\n else {\n return onNone();\n }\n };\n Optional.prototype.isSome = function () {\n return this.tag;\n };\n Optional.prototype.isNone = function () {\n return !this.tag;\n };\n Optional.prototype.map = function (mapper) {\n if (this.tag) {\n return Optional.some(mapper(this.value));\n }\n else {\n return Optional.none();\n }\n };\n Optional.prototype.bind = function (binder) {\n if (this.tag) {\n return binder(this.value);\n }\n else {\n return Optional.none();\n }\n };\n Optional.prototype.exists = function (predicate) {\n return this.tag && predicate(this.value);\n };\n Optional.prototype.forall = function (predicate) {\n return !this.tag || predicate(this.value);\n };\n Optional.prototype.filter = function (predicate) {\n if (!this.tag || predicate(this.value)) {\n return this;\n }\n else {\n return Optional.none();\n }\n };\n Optional.prototype.getOr = function (replacement) {\n return this.tag ? this.value : replacement;\n };\n Optional.prototype.or = function (replacement) {\n return this.tag ? this : replacement;\n };\n Optional.prototype.getOrThunk = function (thunk) {\n return this.tag ? this.value : thunk();\n };\n Optional.prototype.orThunk = function (thunk) {\n return this.tag ? this : thunk();\n };\n Optional.prototype.getOrDie = function (message) {\n if (!this.tag) {\n throw new Error(message !== null && message !== void 0 ? message : 'Called getOrDie on None');\n }\n else {\n return this.value;\n }\n };\n Optional.from = function (value) {\n return isNonNullable(value) ? Optional.some(value) : Optional.none();\n };\n Optional.prototype.getOrNull = function () {\n return this.tag ? this.value : null;\n };\n Optional.prototype.getOrUndefined = function () {\n return this.value;\n };\n Optional.prototype.each = function (worker) {\n if (this.tag) {\n worker(this.value);\n }\n };\n Optional.prototype.toArray = function () {\n return this.tag ? [this.value] : [];\n };\n Optional.prototype.toString = function () {\n return this.tag ? \"some(\".concat(this.value, \")\") : 'none()';\n };\n return Optional;\n }());\n Optional.singletonNone = new Optional(false);\n var nativeIndexOf = Array.prototype.indexOf;\n var nativePush = Array.prototype.push;\n var rawIndexOf = function (ts, t) { return nativeIndexOf.call(ts, t); };\n var contains = function (xs, x) { return rawIndexOf(xs, x) > -1; };\n var map = function (xs, f) {\n var len = xs.length;\n var r = new Array(len);\n for (var i = 0; i < len; i++) {\n var x = xs[i];\n r[i] = f(x, i);\n }\n return r;\n };\n var each$1 = function (xs, f) {\n for (var i = 0, len = xs.length; i < len; i++) {\n var x = xs[i];\n f(x, i);\n }\n };\n var foldl = function (xs, f, acc) {\n each$1(xs, function (x, i) {\n acc = f(acc, x, i);\n });\n return acc;\n };\n var flatten = function (xs) {\n var r = [];\n for (var i = 0, len = xs.length; i < len; ++i) {\n if (!isArray(xs[i])) {\n throw new Error('Arr.flatten item ' + i + ' was not an array, input: ' + xs);\n }\n nativePush.apply(r, xs[i]);\n }\n return r;\n };\n var bind = function (xs, f) { return flatten(map(xs, f)); };\n var findMap = function (arr, f) {\n for (var i = 0; i < arr.length; i++) {\n var r = f(arr[i], i);\n if (r.isSome()) {\n return r;\n }\n }\n return Optional.none();\n };\n var is = function (lhs, rhs, comparator) {\n if (comparator === void 0) { comparator = tripleEquals; }\n return lhs.exists(function (left) { return comparator(left, rhs); });\n };\n var cat = function (arr) {\n var r = [];\n var push = function (x) {\n r.push(x);\n };\n for (var i = 0; i < arr.length; i++) {\n arr[i].each(push);\n }\n return r;\n };\n var someIf = function (b, a) { return b ? Optional.some(a) : Optional.none(); };\n var option = function (name) { return function (editor) { return editor.options.get(name); }; };\n var register$1 = function (editor) {\n var registerOption = editor.options.register;\n registerOption('link_assume_external_targets', {\n processor: function (value) {\n var valid = isString(value) || isBoolean(value);\n if (valid) {\n if (value === true) {\n return {\n value: 1,\n valid: valid\n };\n }\n else if (value === 'http' || value === 'https') {\n return {\n value: value,\n valid: valid\n };\n }\n else {\n return {\n value: 0,\n valid: valid\n };\n }\n }\n else {\n return {\n valid: false,\n message: 'Must be a string or a boolean.'\n };\n }\n },\n default: false\n });\n registerOption('link_context_toolbar', {\n processor: 'boolean',\n default: false\n });\n registerOption('link_list', { processor: function (value) { return isString(value) || isFunction(value) || isArrayOf(value, isObject); } });\n registerOption('link_default_target', { processor: 'string' });\n registerOption('link_default_protocol', {\n processor: 'string',\n default: 'https'\n });\n registerOption('link_target_list', {\n processor: function (value) { return isBoolean(value) || isArrayOf(value, isObject); },\n default: true\n });\n registerOption('link_rel_list', {\n processor: 'object[]',\n default: []\n });\n registerOption('link_class_list', {\n processor: 'object[]',\n default: []\n });\n registerOption('link_title', {\n processor: 'boolean',\n default: true\n });\n registerOption('allow_unsafe_link_target', {\n processor: 'boolean',\n default: false\n });\n registerOption('link_quicklink', {\n processor: 'boolean',\n default: false\n });\n };\n var assumeExternalTargets = option('link_assume_external_targets');\n var hasContextToolbar = option('link_context_toolbar');\n var getLinkList = option('link_list');\n var getDefaultLinkTarget = option('link_default_target');\n var getDefaultLinkProtocol = option('link_default_protocol');\n var getTargetList = option('link_target_list');\n var getRelList = option('link_rel_list');\n var getLinkClassList = option('link_class_list');\n var shouldShowLinkTitle = option('link_title');\n var allowUnsafeLinkTarget = option('allow_unsafe_link_target');\n var useQuickLink = option('link_quicklink');\n var global$4 = tinymce.util.Tools.resolve('tinymce.util.Tools');\n var getValue = function (item) { return isString(item.value) ? item.value : ''; };\n var getText = function (item) {\n if (isString(item.text)) {\n return item.text;\n }\n else if (isString(item.title)) {\n return item.title;\n }\n else {\n return '';\n }\n };\n var sanitizeList = function (list, extractValue) {\n var out = [];\n global$4.each(list, function (item) {\n var text = getText(item);\n if (item.menu !== undefined) {\n var items = sanitizeList(item.menu, extractValue);\n out.push({\n text: text,\n items: items\n });\n }\n else {\n var value = extractValue(item);\n out.push({\n text: text,\n value: value\n });\n }\n });\n return out;\n };\n var sanitizeWith = function (extracter) {\n if (extracter === void 0) { extracter = getValue; }\n return function (list) { return Optional.from(list).map(function (list) { return sanitizeList(list, extracter); }); };\n };\n var sanitize = function (list) { return sanitizeWith(getValue)(list); };\n var createUi = function (name, label) { return function (items) { return ({\n name: name,\n type: 'listbox',\n label: label,\n items: items\n }); }; };\n var ListOptions = {\n sanitize: sanitize,\n sanitizeWith: sanitizeWith,\n createUi: createUi,\n getValue: getValue\n };\n var keys = Object.keys;\n var hasOwnProperty = Object.hasOwnProperty;\n var each = function (obj, f) {\n var props = keys(obj);\n for (var k = 0, len = props.length; k < len; k++) {\n var i = props[k];\n var x = obj[i];\n f(x, i);\n }\n };\n var objAcc = function (r) { return function (x, i) {\n r[i] = x;\n }; };\n var internalFilter = function (obj, pred, onTrue, onFalse) {\n each(obj, function (x, i) {\n (pred(x, i) ? onTrue : onFalse)(x, i);\n });\n };\n var filter = function (obj, pred) {\n var t = {};\n internalFilter(obj, pred, objAcc(t), noop);\n return t;\n };\n var has = function (obj, key) { return hasOwnProperty.call(obj, key); };\n var hasNonNullableKey = function (obj, key) { return has(obj, key) && obj[key] !== undefined && obj[key] !== null; };\n var global$3 = tinymce.util.Tools.resolve('tinymce.dom.TreeWalker');\n var global$2 = tinymce.util.Tools.resolve('tinymce.util.URI');\n var isAnchor = function (elm) { return isNonNullable(elm) && elm.nodeName.toLowerCase() === 'a'; };\n var isLink = function (elm) { return isAnchor(elm) && !!getHref(elm); };\n var collectNodesInRange = function (rng, predicate) {\n if (rng.collapsed) {\n return [];\n }\n else {\n var contents = rng.cloneContents();\n var firstChild = contents.firstChild;\n var walker = new global$3(firstChild, contents);\n var elements = [];\n var current = firstChild;\n do {\n if (predicate(current)) {\n elements.push(current);\n }\n } while (current = walker.next());\n return elements;\n }\n };\n var hasProtocol = function (url) { return /^\\w+:/i.test(url); };\n var getHref = function (elm) {\n var _a, _b;\n return (_b = (_a = elm.getAttribute('data-mce-href')) !== null && _a !== void 0 ? _a : elm.getAttribute('href')) !== null && _b !== void 0 ? _b : '';\n };\n var applyRelTargetRules = function (rel, isUnsafe) {\n var rules = ['noopener'];\n var rels = rel ? rel.split(/\\s+/) : [];\n var toString = function (rels) { return global$4.trim(rels.sort().join(' ')); };\n var addTargetRules = function (rels) {\n rels = removeTargetRules(rels);\n return rels.length > 0 ? rels.concat(rules) : rules;\n };\n var removeTargetRules = function (rels) { return rels.filter(function (val) { return global$4.inArray(rules, val) === -1; }); };\n var newRels = isUnsafe ? addTargetRules(rels) : removeTargetRules(rels);\n return newRels.length > 0 ? toString(newRels) : '';\n };\n var trimCaretContainers = function (text) { return text.replace(/\\uFEFF/g, ''); };\n var getAnchorElement = function (editor, selectedElm) {\n selectedElm = selectedElm || getLinksInSelection(editor.selection.getRng())[0] || editor.selection.getNode();\n if (isImageFigure(selectedElm)) {\n return Optional.from(editor.dom.select('a[href]', selectedElm)[0]);\n }\n else {\n return Optional.from(editor.dom.getParent(selectedElm, 'a[href]'));\n }\n };\n var isInAnchor = function (editor, selectedElm) { return getAnchorElement(editor, selectedElm).isSome(); };\n var getAnchorText = function (selection, anchorElm) {\n var text = anchorElm.fold(function () { return selection.getContent({ format: 'text' }); }, function (anchorElm) { return anchorElm.innerText || anchorElm.textContent || ''; });\n return trimCaretContainers(text);\n };\n var getLinksInSelection = function (rng) { return collectNodesInRange(rng, isLink); };\n var getLinks$1 = function (elements) { return global$4.grep(elements, isLink); };\n var hasLinks = function (elements) { return getLinks$1(elements).length > 0; };\n var hasLinksInSelection = function (rng) { return getLinksInSelection(rng).length > 0; };\n var isOnlyTextSelected = function (editor) {\n var inlineTextElements = editor.schema.getTextInlineElements();\n var isElement = function (elm) { return elm.nodeType === 1 && !isAnchor(elm) && !has(inlineTextElements, elm.nodeName.toLowerCase()); };\n var isInBlockAnchor = getAnchorElement(editor).exists(function (anchor) { return anchor.hasAttribute('data-mce-block'); });\n if (isInBlockAnchor) {\n return false;\n }\n var rng = editor.selection.getRng();\n if (!rng.collapsed) {\n var elements = collectNodesInRange(rng, isElement);\n return elements.length === 0;\n }\n else {\n return true;\n }\n };\n var isImageFigure = function (elm) { return isNonNullable(elm) && elm.nodeName === 'FIGURE' && /\\bimage\\b/i.test(elm.className); };\n var getLinkAttrs = function (data) {\n var attrs = [\n 'title',\n 'rel',\n 'class',\n 'target'\n ];\n return foldl(attrs, function (acc, key) {\n data[key].each(function (value) {\n acc[key] = value.length > 0 ? value : null;\n });\n return acc;\n }, { href: data.href });\n };\n var handleExternalTargets = function (href, assumeExternalTargets) {\n if ((assumeExternalTargets === 'http' || assumeExternalTargets === 'https') && !hasProtocol(href)) {\n return assumeExternalTargets + '://' + href;\n }\n return href;\n };\n var applyLinkOverrides = function (editor, linkAttrs) {\n var newLinkAttrs = __assign({}, linkAttrs);\n if (getRelList(editor).length === 0 && !allowUnsafeLinkTarget(editor)) {\n var newRel = applyRelTargetRules(newLinkAttrs.rel, newLinkAttrs.target === '_blank');\n newLinkAttrs.rel = newRel ? newRel : null;\n }\n if (Optional.from(newLinkAttrs.target).isNone() && getTargetList(editor) === false) {\n newLinkAttrs.target = getDefaultLinkTarget(editor);\n }\n newLinkAttrs.href = handleExternalTargets(newLinkAttrs.href, assumeExternalTargets(editor));\n return newLinkAttrs;\n };\n var updateLink = function (editor, anchorElm, text, linkAttrs) {\n text.each(function (text) {\n if (has(anchorElm, 'innerText')) {\n anchorElm.innerText = text;\n }\n else {\n anchorElm.textContent = text;\n }\n });\n editor.dom.setAttribs(anchorElm, linkAttrs);\n editor.selection.select(anchorElm);\n };\n var createLink = function (editor, selectedElm, text, linkAttrs) {\n var dom = editor.dom;\n if (isImageFigure(selectedElm)) {\n linkImageFigure(dom, selectedElm, linkAttrs);\n }\n else {\n text.fold(function () {\n editor.execCommand('mceInsertLink', false, linkAttrs);\n }, function (text) {\n editor.insertContent(dom.createHTML('a', linkAttrs, dom.encode(text)));\n });\n }\n };\n var linkDomMutation = function (editor, attachState, data) {\n var selectedElm = editor.selection.getNode();\n var anchorElm = getAnchorElement(editor, selectedElm);\n var linkAttrs = applyLinkOverrides(editor, getLinkAttrs(data));\n editor.undoManager.transact(function () {\n if (data.href === attachState.href) {\n attachState.attach();\n }\n anchorElm.fold(function () {\n createLink(editor, selectedElm, data.text, linkAttrs);\n }, function (elm) {\n editor.focus();\n updateLink(editor, elm, data.text, linkAttrs);\n });\n });\n };\n var unlinkSelection = function (editor) {\n var dom = editor.dom, selection = editor.selection;\n var bookmark = selection.getBookmark();\n var rng = selection.getRng().cloneRange();\n var startAnchorElm = dom.getParent(rng.startContainer, 'a[href]', editor.getBody());\n var endAnchorElm = dom.getParent(rng.endContainer, 'a[href]', editor.getBody());\n if (startAnchorElm) {\n rng.setStartBefore(startAnchorElm);\n }\n if (endAnchorElm) {\n rng.setEndAfter(endAnchorElm);\n }\n selection.setRng(rng);\n editor.execCommand('unlink');\n selection.moveToBookmark(bookmark);\n };\n var unlinkDomMutation = function (editor) {\n editor.undoManager.transact(function () {\n var node = editor.selection.getNode();\n if (isImageFigure(node)) {\n unlinkImageFigure(editor, node);\n }\n else {\n unlinkSelection(editor);\n }\n editor.focus();\n });\n };\n var unwrapOptions = function (data) {\n var cls = data.class, href = data.href, rel = data.rel, target = data.target, text = data.text, title = data.title;\n return filter({\n class: cls.getOrNull(),\n href: href,\n rel: rel.getOrNull(),\n target: target.getOrNull(),\n text: text.getOrNull(),\n title: title.getOrNull()\n }, function (v, _k) { return isNull(v) === false; });\n };\n var sanitizeData = function (editor, data) {\n var getOption = editor.options.get;\n var uriOptions = {\n allow_html_data_urls: getOption('allow_html_data_urls'),\n allow_script_urls: getOption('allow_script_urls'),\n allow_svg_data_urls: getOption('allow_svg_data_urls')\n };\n var href = data.href;\n return __assign(__assign({}, data), { href: global$2.isDomSafe(href, 'a', uriOptions) ? href : '' });\n };\n var link = function (editor, attachState, data) {\n var sanitizedData = sanitizeData(editor, data);\n editor.hasPlugin('rtc', true) ? editor.execCommand('createlink', false, unwrapOptions(sanitizedData)) : linkDomMutation(editor, attachState, sanitizedData);\n };\n var unlink = function (editor) {\n editor.hasPlugin('rtc', true) ? editor.execCommand('unlink') : unlinkDomMutation(editor);\n };\n var unlinkImageFigure = function (editor, fig) {\n var _a;\n var img = editor.dom.select('img', fig)[0];\n if (img) {\n var a = editor.dom.getParents(img, 'a[href]', fig)[0];\n if (a) {\n (_a = a.parentNode) === null || _a === void 0 ? void 0 : _a.insertBefore(img, a);\n editor.dom.remove(a);\n }\n }\n };\n var linkImageFigure = function (dom, fig, attrs) {\n var _a;\n var img = dom.select('img', fig)[0];\n if (img) {\n var a = dom.create('a', attrs);\n (_a = img.parentNode) === null || _a === void 0 ? void 0 : _a.insertBefore(a, img);\n a.appendChild(img);\n }\n };\n var isListGroup = function (item) { return hasNonNullableKey(item, 'items'); };\n var findTextByValue = function (value, catalog) { return findMap(catalog, function (item) {\n if (isListGroup(item)) {\n return findTextByValue(value, item.items);\n }\n else {\n return someIf(item.value === value, item);\n }\n }); };\n var getDelta = function (persistentText, fieldName, catalog, data) {\n var value = data[fieldName];\n var hasPersistentText = persistentText.length > 0;\n return value !== undefined ? findTextByValue(value, catalog).map(function (i) { return ({\n url: {\n value: i.value,\n meta: {\n text: hasPersistentText ? persistentText : i.text,\n attach: noop\n }\n },\n text: hasPersistentText ? persistentText : i.text\n }); }) : Optional.none();\n };\n var findCatalog = function (catalogs, fieldName) {\n if (fieldName === 'link') {\n return catalogs.link;\n }\n else if (fieldName === 'anchor') {\n return catalogs.anchor;\n }\n else {\n return Optional.none();\n }\n };\n var init = function (initialData, linkCatalog) {\n var persistentData = {\n text: initialData.text,\n title: initialData.title\n };\n var getTitleFromUrlChange = function (url) {\n var _a;\n return someIf(persistentData.title.length <= 0, Optional.from((_a = url.meta) === null || _a === void 0 ? void 0 : _a.title).getOr(''));\n };\n var getTextFromUrlChange = function (url) {\n var _a;\n return someIf(persistentData.text.length <= 0, Optional.from((_a = url.meta) === null || _a === void 0 ? void 0 : _a.text).getOr(url.value));\n };\n var onUrlChange = function (data) {\n var text = getTextFromUrlChange(data.url);\n var title = getTitleFromUrlChange(data.url);\n if (text.isSome() || title.isSome()) {\n return Optional.some(__assign(__assign({}, text.map(function (text) { return ({ text: text }); }).getOr({})), title.map(function (title) { return ({ title: title }); }).getOr({})));\n }\n else {\n return Optional.none();\n }\n };\n var onCatalogChange = function (data, change) {\n var catalog = findCatalog(linkCatalog, change).getOr([]);\n return getDelta(persistentData.text, change, catalog, data);\n };\n var onChange = function (getData, change) {\n var name = change.name;\n if (name === 'url') {\n return onUrlChange(getData());\n }\n else if (contains([\n 'anchor',\n 'link'\n ], name)) {\n return onCatalogChange(getData(), name);\n }\n else if (name === 'text' || name === 'title') {\n persistentData[name] = getData()[name];\n return Optional.none();\n }\n else {\n return Optional.none();\n }\n };\n return { onChange: onChange };\n };\n var DialogChanges = {\n init: init,\n getDelta: getDelta\n };\n var global$1 = tinymce.util.Tools.resolve('tinymce.util.Delay');\n var delayedConfirm = function (editor, message, callback) {\n var rng = editor.selection.getRng();\n global$1.setEditorTimeout(editor, function () {\n editor.windowManager.confirm(message, function (state) {\n editor.selection.setRng(rng);\n callback(state);\n });\n });\n };\n var tryEmailTransform = function (data) {\n var url = data.href;\n var suggestMailTo = url.indexOf('@') > 0 && url.indexOf('/') === -1 && url.indexOf('mailto:') === -1;\n return suggestMailTo ? Optional.some({\n message: 'The URL you entered seems to be an email address. Do you want to add the required mailto: prefix?',\n preprocess: function (oldData) { return (__assign(__assign({}, oldData), { href: 'mailto:' + url })); }\n }) : Optional.none();\n };\n var tryProtocolTransform = function (assumeExternalTargets, defaultLinkProtocol) { return function (data) {\n var url = data.href;\n var suggestProtocol = assumeExternalTargets === 1 && !hasProtocol(url) || assumeExternalTargets === 0 && /^\\s*www(\\.|\\d\\.)/i.test(url);\n return suggestProtocol ? Optional.some({\n message: \"The URL you entered seems to be an external link. Do you want to add the required \".concat(defaultLinkProtocol, \":// prefix?\"),\n preprocess: function (oldData) { return (__assign(__assign({}, oldData), { href: defaultLinkProtocol + '://' + url })); }\n }) : Optional.none();\n }; };\n var preprocess = function (editor, data) { return findMap([\n tryEmailTransform,\n tryProtocolTransform(assumeExternalTargets(editor), getDefaultLinkProtocol(editor))\n ], function (f) { return f(data); }).fold(function () { return Promise.resolve(data); }, function (transform) { return new Promise(function (callback) {\n delayedConfirm(editor, transform.message, function (state) {\n callback(state ? transform.preprocess(data) : data);\n });\n }); }); };\n var DialogConfirms = { preprocess: preprocess };\n var getAnchors = function (editor) {\n var anchorNodes = editor.dom.select('a:not([href])');\n var anchors = bind(anchorNodes, function (anchor) {\n var id = anchor.name || anchor.id;\n return id ? [{\n text: id,\n value: '#' + id\n }] : [];\n });\n return anchors.length > 0 ? Optional.some([{\n text: 'None',\n value: ''\n }].concat(anchors)) : Optional.none();\n };\n var AnchorListOptions = { getAnchors: getAnchors };\n var getClasses = function (editor) {\n var list = getLinkClassList(editor);\n if (list.length > 0) {\n return ListOptions.sanitize(list);\n }\n return Optional.none();\n };\n var ClassListOptions = { getClasses: getClasses };\n var parseJson = function (text) {\n try {\n return Optional.some(JSON.parse(text));\n }\n catch (err) {\n return Optional.none();\n }\n };\n var getLinks = function (editor) {\n var extractor = function (item) { return editor.convertURL(item.value || item.url || '', 'href'); };\n var linkList = getLinkList(editor);\n return new Promise(function (resolve) {\n if (isString(linkList)) {\n fetch(linkList).then(function (res) { return res.ok ? res.text().then(parseJson) : Promise.reject(); }).then(resolve, function () { return resolve(Optional.none()); });\n }\n else if (isFunction(linkList)) {\n linkList(function (output) { return resolve(Optional.some(output)); });\n }\n else {\n resolve(Optional.from(linkList));\n }\n }).then(function (optItems) { return optItems.bind(ListOptions.sanitizeWith(extractor)).map(function (items) {\n if (items.length > 0) {\n var noneItem = [{\n text: 'None',\n value: ''\n }];\n return noneItem.concat(items);\n }\n else {\n return items;\n }\n }); });\n };\n var LinkListOptions = { getLinks: getLinks };\n var getRels = function (editor, initialTarget) {\n var list = getRelList(editor);\n if (list.length > 0) {\n var isTargetBlank_1 = is(initialTarget, '_blank');\n var enforceSafe = allowUnsafeLinkTarget(editor) === false;\n var safeRelExtractor = function (item) { return applyRelTargetRules(ListOptions.getValue(item), isTargetBlank_1); };\n var sanitizer = enforceSafe ? ListOptions.sanitizeWith(safeRelExtractor) : ListOptions.sanitize;\n return sanitizer(list);\n }\n return Optional.none();\n };\n var RelOptions = { getRels: getRels };\n var fallbacks = [\n {\n text: 'Current window',\n value: ''\n },\n {\n text: 'New window',\n value: '_blank'\n }\n ];\n var getTargets = function (editor) {\n var list = getTargetList(editor);\n if (isArray(list)) {\n return ListOptions.sanitize(list).orThunk(function () { return Optional.some(fallbacks); });\n }\n else if (list === false) {\n return Optional.none();\n }\n return Optional.some(fallbacks);\n };\n var TargetOptions = { getTargets: getTargets };\n var nonEmptyAttr = function (dom, elem, name) {\n var val = dom.getAttrib(elem, name);\n return val !== null && val.length > 0 ? Optional.some(val) : Optional.none();\n };\n var extractFromAnchor = function (editor, anchor) {\n var dom = editor.dom;\n var onlyText = isOnlyTextSelected(editor);\n var text = onlyText ? Optional.some(getAnchorText(editor.selection, anchor)) : Optional.none();\n var url = anchor.bind(function (anchorElm) { return Optional.from(dom.getAttrib(anchorElm, 'href')); });\n var target = anchor.bind(function (anchorElm) { return Optional.from(dom.getAttrib(anchorElm, 'target')); });\n var rel = anchor.bind(function (anchorElm) { return nonEmptyAttr(dom, anchorElm, 'rel'); });\n var linkClass = anchor.bind(function (anchorElm) { return nonEmptyAttr(dom, anchorElm, 'class'); });\n var title = anchor.bind(function (anchorElm) { return nonEmptyAttr(dom, anchorElm, 'title'); });\n return {\n url: url,\n text: text,\n title: title,\n target: target,\n rel: rel,\n linkClass: linkClass\n };\n };\n var collect = function (editor, linkNode) { return LinkListOptions.getLinks(editor).then(function (links) {\n var anchor = extractFromAnchor(editor, linkNode);\n return {\n anchor: anchor,\n catalogs: {\n targets: TargetOptions.getTargets(editor),\n rels: RelOptions.getRels(editor, anchor.target),\n classes: ClassListOptions.getClasses(editor),\n anchor: AnchorListOptions.getAnchors(editor),\n link: links\n },\n optNode: linkNode,\n flags: { titleEnabled: shouldShowLinkTitle(editor) }\n };\n }); };\n var DialogInfo = { collect: collect };\n var handleSubmit = function (editor, info) { return function (api) {\n var data = api.getData();\n if (!data.url.value) {\n unlink(editor);\n api.close();\n return;\n }\n var getChangedValue = function (key) { return Optional.from(data[key]).filter(function (value) { return !is(info.anchor[key], value); }); };\n var changedData = {\n href: data.url.value,\n text: getChangedValue('text'),\n target: getChangedValue('target'),\n rel: getChangedValue('rel'),\n class: getChangedValue('linkClass'),\n title: getChangedValue('title')\n };\n var attachState = {\n href: data.url.value,\n attach: data.url.meta !== undefined && data.url.meta.attach ? data.url.meta.attach : noop\n };\n DialogConfirms.preprocess(editor, changedData).then(function (pData) {\n link(editor, attachState, pData);\n });\n api.close();\n }; };\n var collectData = function (editor) {\n var anchorNode = getAnchorElement(editor);\n return DialogInfo.collect(editor, anchorNode);\n };\n var getInitialData = function (info, defaultTarget) {\n var anchor = info.anchor;\n var url = anchor.url.getOr('');\n return {\n url: {\n value: url,\n meta: { original: { value: url } }\n },\n text: anchor.text.getOr(''),\n title: anchor.title.getOr(''),\n anchor: url,\n link: url,\n rel: anchor.rel.getOr(''),\n target: anchor.target.or(defaultTarget).getOr(''),\n linkClass: anchor.linkClass.getOr('')\n };\n };\n var makeDialog = function (settings, onSubmit, editor) {\n var urlInput = [{\n name: 'url',\n type: 'urlinput',\n filetype: 'file',\n label: 'URL',\n picker_text: 'Browse links'\n }];\n var displayText = settings.anchor.text.map(function () { return ({\n name: 'text',\n type: 'input',\n label: 'Text to display'\n }); }).toArray();\n var titleText = settings.flags.titleEnabled ? [{\n name: 'title',\n type: 'input',\n label: 'Title'\n }] : [];\n var defaultTarget = Optional.from(getDefaultLinkTarget(editor));\n var initialData = getInitialData(settings, defaultTarget);\n var catalogs = settings.catalogs;\n var dialogDelta = DialogChanges.init(initialData, catalogs);\n var body = {\n type: 'panel',\n items: flatten([\n urlInput,\n displayText,\n titleText,\n cat([\n catalogs.anchor.map(ListOptions.createUi('anchor', 'Anchors')),\n catalogs.rels.map(ListOptions.createUi('rel', 'Rel')),\n catalogs.targets.map(ListOptions.createUi('target', 'Open link in...')),\n catalogs.link.map(ListOptions.createUi('link', 'Link list')),\n catalogs.classes.map(ListOptions.createUi('linkClass', 'Class'))\n ])\n ])\n };\n return {\n title: 'Insert/Edit Link',\n size: 'normal',\n body: body,\n buttons: [\n {\n type: 'cancel',\n name: 'cancel',\n text: 'Cancel'\n },\n {\n type: 'submit',\n name: 'save',\n text: 'Save',\n primary: true\n }\n ],\n initialData: initialData,\n onChange: function (api, _c) {\n var name = _c.name;\n dialogDelta.onChange(api.getData, { name: name }).each(function (newData) {\n api.setData(newData);\n });\n },\n onSubmit: onSubmit\n };\n };\n var open$1 = function (editor) {\n var data = collectData(editor);\n data.then(function (info) {\n var onSubmit = handleSubmit(editor, info);\n return makeDialog(info, onSubmit, editor);\n }).then(function (spec) {\n editor.windowManager.open(spec);\n });\n };\n var register = function (editor) {\n editor.addCommand('mceLink', function (_ui, value) {\n if ((value === null || value === void 0 ? void 0 : value.dialog) === true || !useQuickLink(editor)) {\n open$1(editor);\n }\n else {\n editor.dispatch('contexttoolbar-show', { toolbarKey: 'quicklink' });\n }\n });\n };\n var global = tinymce.util.Tools.resolve('tinymce.util.VK');\n var appendClickRemove = function (link, evt) {\n document.body.appendChild(link);\n link.dispatchEvent(evt);\n document.body.removeChild(link);\n };\n var open = function (url) {\n var link = document.createElement('a');\n link.target = '_blank';\n link.href = url;\n link.rel = 'noreferrer noopener';\n var evt = document.createEvent('MouseEvents');\n evt.initMouseEvent('click', true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null);\n appendClickRemove(link, evt);\n };\n var getLink = function (editor, elm) { return editor.dom.getParent(elm, 'a[href]'); };\n var getSelectedLink = function (editor) { return getLink(editor, editor.selection.getStart()); };\n var hasOnlyAltModifier = function (e) {\n return e.altKey === true && e.shiftKey === false && e.ctrlKey === false && e.metaKey === false;\n };\n var gotoLink = function (editor, a) {\n if (a) {\n var href = getHref(a);\n if (/^#/.test(href)) {\n var targetEl = editor.dom.select(href);\n if (targetEl.length) {\n editor.selection.scrollIntoView(targetEl[0], true);\n }\n }\n else {\n open(a.href);\n }\n }\n };\n var openDialog = function (editor) { return function () {\n editor.execCommand('mceLink', false, { dialog: true });\n }; };\n var gotoSelectedLink = function (editor) { return function () {\n gotoLink(editor, getSelectedLink(editor));\n }; };\n var setupGotoLinks = function (editor) {\n editor.on('click', function (e) {\n var link = getLink(editor, e.target);\n if (link && global.metaKeyPressed(e)) {\n e.preventDefault();\n gotoLink(editor, link);\n }\n });\n editor.on('keydown', function (e) {\n if (!e.isDefaultPrevented() && e.keyCode === 13 && hasOnlyAltModifier(e)) {\n var link_1 = getSelectedLink(editor);\n if (link_1) {\n e.preventDefault();\n gotoLink(editor, link_1);\n }\n }\n });\n };\n var toggleState = function (editor, toggler) {\n editor.on('NodeChange', toggler);\n return function () { return editor.off('NodeChange', toggler); };\n };\n var toggleLinkState = function (editor) { return function (api) {\n var updateState = function () {\n api.setActive(!editor.mode.isReadOnly() && isInAnchor(editor, editor.selection.getNode()));\n api.setEnabled(editor.selection.isEditable());\n };\n updateState();\n return toggleState(editor, updateState);\n }; };\n var toggleLinkMenuState = function (editor) { return function (api) {\n var updateState = function () {\n api.setEnabled(editor.selection.isEditable());\n };\n updateState();\n return toggleState(editor, updateState);\n }; };\n var hasExactlyOneLinkInSelection = function (editor) {\n var links = editor.selection.isCollapsed() ? getLinks$1(editor.dom.getParents(editor.selection.getStart())) : getLinksInSelection(editor.selection.getRng());\n return links.length === 1;\n };\n var toggleGotoLinkState = function (editor) { return function (api) {\n var updateState = function () { return api.setEnabled(hasExactlyOneLinkInSelection(editor)); };\n updateState();\n return toggleState(editor, updateState);\n }; };\n var toggleUnlinkState = function (editor) { return function (api) {\n var hasLinks$1 = function (parents) { return hasLinks(parents) || hasLinksInSelection(editor.selection.getRng()); };\n var parents = editor.dom.getParents(editor.selection.getStart());\n var updateEnabled = function (parents) {\n api.setEnabled(hasLinks$1(parents) && editor.selection.isEditable());\n };\n updateEnabled(parents);\n return toggleState(editor, function (e) { return updateEnabled(e.parents); });\n }; };\n var setup = function (editor) {\n editor.addShortcut('Meta+K', '', function () {\n editor.execCommand('mceLink');\n });\n };\n var setupButtons = function (editor) {\n editor.ui.registry.addToggleButton('link', {\n icon: 'link',\n tooltip: 'Insert/edit link',\n onAction: openDialog(editor),\n onSetup: toggleLinkState(editor)\n });\n editor.ui.registry.addButton('openlink', {\n icon: 'new-tab',\n tooltip: 'Open link',\n onAction: gotoSelectedLink(editor),\n onSetup: toggleGotoLinkState(editor)\n });\n editor.ui.registry.addButton('unlink', {\n icon: 'unlink',\n tooltip: 'Remove link',\n onAction: function () { return unlink(editor); },\n onSetup: toggleUnlinkState(editor)\n });\n };\n var setupMenuItems = function (editor) {\n editor.ui.registry.addMenuItem('openlink', {\n text: 'Open link',\n icon: 'new-tab',\n onAction: gotoSelectedLink(editor),\n onSetup: toggleGotoLinkState(editor)\n });\n editor.ui.registry.addMenuItem('link', {\n icon: 'link',\n text: 'Link...',\n shortcut: 'Meta+K',\n onSetup: toggleLinkMenuState(editor),\n onAction: openDialog(editor)\n });\n editor.ui.registry.addMenuItem('unlink', {\n icon: 'unlink',\n text: 'Remove link',\n onAction: function () { return unlink(editor); },\n onSetup: toggleUnlinkState(editor)\n });\n };\n var setupContextMenu = function (editor) {\n var inLink = 'link unlink openlink';\n var noLink = 'link';\n editor.ui.registry.addContextMenu('link', {\n update: function (element) {\n var isEditable = editor.dom.isEditable(element);\n if (!isEditable) {\n return '';\n }\n return hasLinks(editor.dom.getParents(element, 'a')) ? inLink : noLink;\n }\n });\n };\n var setupContextToolbars = function (editor) {\n var collapseSelectionToEnd = function (editor) {\n editor.selection.collapse(false);\n };\n var onSetupLink = function (buttonApi) {\n var node = editor.selection.getNode();\n buttonApi.setEnabled(isInAnchor(editor, node));\n return noop;\n };\n var getLinkText = function (value) {\n var anchor = getAnchorElement(editor);\n var onlyText = isOnlyTextSelected(editor);\n if (anchor.isNone() && onlyText) {\n var text = getAnchorText(editor.selection, anchor);\n return someIf(text.length === 0, value);\n }\n else {\n return Optional.none();\n }\n };\n editor.ui.registry.addContextForm('quicklink', {\n launch: {\n type: 'contextformtogglebutton',\n icon: 'link',\n tooltip: 'Link',\n onSetup: toggleLinkState(editor)\n },\n label: 'Link',\n predicate: function (node) { return hasContextToolbar(editor) && isInAnchor(editor, node); },\n initValue: function () {\n var elm = getAnchorElement(editor);\n return elm.fold(constant(''), getHref);\n },\n commands: [\n {\n type: 'contextformtogglebutton',\n icon: 'link',\n tooltip: 'Link',\n primary: true,\n onSetup: function (buttonApi) {\n var node = editor.selection.getNode();\n buttonApi.setActive(isInAnchor(editor, node));\n return toggleLinkState(editor)(buttonApi);\n },\n onAction: function (formApi) {\n var value = formApi.getValue();\n var text = getLinkText(value);\n var attachState = {\n href: value,\n attach: noop\n };\n link(editor, attachState, {\n href: value,\n text: text,\n title: Optional.none(),\n rel: Optional.none(),\n target: Optional.none(),\n class: Optional.none()\n });\n collapseSelectionToEnd(editor);\n formApi.hide();\n }\n },\n {\n type: 'contextformbutton',\n icon: 'unlink',\n tooltip: 'Remove link',\n onSetup: onSetupLink,\n onAction: function (formApi) {\n unlink(editor);\n formApi.hide();\n }\n },\n {\n type: 'contextformbutton',\n icon: 'new-tab',\n tooltip: 'Open link',\n onSetup: onSetupLink,\n onAction: function (formApi) {\n gotoSelectedLink(editor)();\n formApi.hide();\n }\n }\n ]\n });\n };\n var Plugin = function () {\n global$5.add('link', function (editor) {\n register$1(editor);\n setupButtons(editor);\n setupMenuItems(editor);\n setupContextMenu(editor);\n setupContextToolbars(editor);\n setupGotoLinks(editor);\n register(editor);\n setup(editor);\n });\n };\n Plugin();\n})();\n"],"names":["__assign","this","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","global$5","tinymce","util","Tools","resolve","isType","type","value","x","Array","isArray","o","v","constructor","String","isPrototypeOf","_a","name","isSimpleType","isString","isObject","isNull","a","isBoolean","isNonNullable","isNullable","isFunction","isArrayOf","pred","len","noop","tripleEquals","b","Optional","tag","some","none","singletonNone","fold","onNone","onSome","isSome","isNone","map","mapper","bind","binder","exists","predicate","forall","filter","getOr","replacement","or","getOrThunk","thunk","orThunk","getOrDie","message","Error","from","getOrNull","getOrUndefined","each","worker","toArray","toString","concat","nativeIndexOf","indexOf","nativePush","push","contains","xs","ts","rawIndexOf","flatten","r","f","findMap","arr","is","lhs","rhs","comparator","left","cat","someIf","option","editor","options","get","assumeExternalTargets","hasContextToolbar","getLinkList","getDefaultLinkTarget","getDefaultLinkProtocol","getTargetList","getRelList","getLinkClassList","shouldShowLinkTitle","allowUnsafeLinkTarget","useQuickLink","global$4","getValue","item","sanitizeList","list","extractValue","out","text","title","getText","undefined","menu","items","sanitizeWith","extracter","ListOptions","sanitize","createUi","label","keys","internalFilter","obj","onTrue","onFalse","props","k","has","key","global$3","global$2","isAnchor","elm","nodeName","toLowerCase","isLink","getHref","collectNodesInRange","rng","collapsed","contents","cloneContents","firstChild","walker","elements","current","next","hasProtocol","url","test","_b","getAttribute","applyRelTargetRules","rel","isUnsafe","rules","rels","split","removeTargetRules","val","inArray","newRels","addTargetRules","trim","sort","join","getAnchorElement","selectedElm","getLinksInSelection","selection","getRng","getNode","isImageFigure","dom","select","getParent","isInAnchor","getAnchorText","anchorElm","replace","trimCaretContainers","getContent","format","innerText","textContent","getLinks$1","grep","hasLinks","isOnlyTextSelected","inlineTextElements","schema","getTextInlineElements","anchor","hasAttribute","nodeType","className","applyLinkOverrides","linkAttrs","newLinkAttrs","newRel","target","href","handleExternalTargets","linkDomMutation","attachState","data","acc","each$1","getLinkAttrs","undoManager","transact","attach","linkImageFigure","execCommand","insertContent","createHTML","encode","createLink","focus","setAttribs","updateLink","unwrapOptions","cls","class","_k","link","sanitizedData","getOption","uriOptions","allow_html_data_urls","allow_script_urls","allow_svg_data_urls","isDomSafe","sanitizeData","hasPlugin","unlink","node","unlinkImageFigure","bookmark","getBookmark","cloneRange","startAnchorElm","startContainer","getBody","endAnchorElm","endContainer","setStartBefore","setEndAfter","setRng","moveToBookmark","unlinkSelection","unlinkDomMutation","fig","img","getParents","parentNode","insertBefore","remove","attrs","create","appendChild","isListGroup","findTextByValue","catalog","getDelta","persistentText","fieldName","hasPersistentText","meta","DialogChanges","initialData","linkCatalog","persistentData","onUrlChange","getTitleFromUrlChange","onCatalogChange","change","catalogs","onChange","getData","global$1","tryEmailTransform","preprocess","oldData","tryProtocolTransform","defaultLinkProtocol","DialogConfirms","Promise","transform","callback","setEditorTimeout","windowManager","confirm","state","delayedConfirm","AnchorListOptions","anchorNodes","anchors","id","ClassListOptions","parseJson","JSON","parse","err","LinkListOptions","extractor","convertURL","linkList","fetch","then","res","ok","reject","output","optItems","RelOptions","initialTarget","isTargetBlank_1","fallbacks","TargetOptions","nonEmptyAttr","elem","getAttrib","DialogInfo","linkNode","links","linkClass","extractFromAnchor","targets","classes","optNode","flags","titleEnabled","open$1","anchorNode","collectData","info","onSubmit","api","close","getChangedValue","changedData","pData","handleSubmit","settings","displayText","titleText","defaultTarget","original","getInitialData","dialogDelta","size","body","filetype","picker_text","buttons","primary","_c","newData","setData","makeDialog","spec","open","global","document","createElement","evt","createEvent","initMouseEvent","window","dispatchEvent","removeChild","appendClickRemove","getLink","getSelectedLink","getStart","gotoLink","targetEl","scrollIntoView","openDialog","dialog","gotoSelectedLink","toggleState","toggler","on","off","toggleLinkState","updateState","setActive","mode","isReadOnly","setEnabled","isEditable","toggleLinkMenuState","toggleGotoLinkState","isCollapsed","hasExactlyOneLinkInSelection","toggleUnlinkState","hasLinks$1","parents","updateEnabled","e","setupContextToolbars","onSetupLink","buttonApi","ui","registry","addContextForm","launch","icon","tooltip","onSetup","initValue","commands","onAction","formApi","onlyText","getLinkText","collapse","collapseSelectionToEnd","hide","add","registerOption","register","processor","valid","default","register$1","addToggleButton","addButton","setupButtons","addMenuItem","shortcut","setupMenuItems","addContextMenu","update","element","setupContextMenu","metaKeyPressed","preventDefault","isDefaultPrevented","keyCode","altKey","shiftKey","ctrlKey","metaKey","hasOnlyAltModifier","link_1","setupGotoLinks","addCommand","_ui","dispatch","toolbarKey","addShortcut","setup"],"mappings":"iGAIA,IAAIA,EAAYC,GAAQA,EAAKD,UAAa,WAStC,OARAA,EAAWE,OAAOC,QAAU,SAASC,GACjC,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAII,KADTL,EAAIG,UAAUF,GACOJ,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,KACzDN,EAAEM,GAAKL,EAAEK,IAEjB,OAAON,GAEJJ,EAASc,MAAMb,KAAMO,mBAEhC,WAEI,IA2BmBJ,EA3BfW,EAAWC,QAAQC,KAAKC,MAAMC,QAAQ,yBAyBtCC,EAAS,SAAUC,GA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GAGC,CA9sCD"}
@@ -1,2 +0,0 @@
1
- import{__exports as r}from"../../../../_virtual/index8.mjs";import{__require as e}from"./plugin.mjs";var i;function o(){return i||(i=1,e()),r}export{o as __require};
2
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../../../public/tinymce/plugins/lists/index.js"],"sourcesContent":["\"use strict\";\n// Exports the \"lists\" plugin for usage with module loaders\n// Usage:\n// CommonJS:\n// require('tinymce/plugins/lists')\n// ES2015:\n// import 'tinymce/plugins/lists'\nrequire('./plugin.js');\n"],"names":["require$$0"],"mappings":"uIAOsBA"}
@@ -1,2 +0,0 @@
1
- import{__exports as t}from"../../../../_virtual/plugin4.mjs";var n;function e(){if(n)return t;n=1;var e=t&&t.__assign||function(){return e=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var o in n=arguments[e])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},e.apply(this,arguments)},r=t&&t.__spreadArray||function(t,n,e){if(e||2===arguments.length)for(var r,o=0,i=n.length;o<i;o++)!r&&o in n||(r||(r=Array.prototype.slice.call(n,0,o)),r[o]=n[o]);return t.concat(r||Array.prototype.slice.call(n))};return function(){var t=tinymce.util.Tools.resolve("tinymce.PluginManager"),n=function(t){return function(n){return u=typeof(e=n),(null===e?"null":"object"===u&&Array.isArray(e)?"array":"object"===u&&(a=r=e,(o=String).prototype.isPrototypeOf(a)||(null===(i=r.constructor)||void 0===i?void 0:i.name)===o.name)?"string":u)===t;var e,r,o,i,u,a}},o=function(t){return function(n){return typeof n===t}},i=n("string"),u=n("object"),a=n("array"),c=o("boolean"),s=function(t){return!function(t){return null==t}(t)},f=o("function"),l=o("number"),d=function(){},m=function(t){return function(){return t}},p=function(t,n){return t===n};var v=function(t){return function(n){return!t(n)}},g=m(!1),h=function(){function t(t,n){this.tag=t,this.value=n}return t.some=function(n){return new t(!0,n)},t.none=function(){return t.singletonNone},t.prototype.fold=function(t,n){return this.tag?n(this.value):t()},t.prototype.isSome=function(){return this.tag},t.prototype.isNone=function(){return!this.tag},t.prototype.map=function(n){return this.tag?t.some(n(this.value)):t.none()},t.prototype.bind=function(n){return this.tag?n(this.value):t.none()},t.prototype.exists=function(t){return this.tag&&t(this.value)},t.prototype.forall=function(t){return!this.tag||t(this.value)},t.prototype.filter=function(n){return!this.tag||n(this.value)?this:t.none()},t.prototype.getOr=function(t){return this.tag?this.value:t},t.prototype.or=function(t){return this.tag?this:t},t.prototype.getOrThunk=function(t){return this.tag?this.value:t()},t.prototype.orThunk=function(t){return this.tag?this:t()},t.prototype.getOrDie=function(t){if(this.tag)return this.value;throw new Error(null!=t?t:"Called getOrDie on None")},t.from=function(n){return s(n)?t.some(n):t.none()},t.prototype.getOrNull=function(){return this.tag?this.value:null},t.prototype.getOrUndefined=function(){return this.value},t.prototype.each=function(t){this.tag&&t(this.value)},t.prototype.toArray=function(){return this.tag?[this.value]:[]},t.prototype.toString=function(){return this.tag?"some(".concat(this.value,")"):"none()"},t}();h.singletonNone=new h(!1);var y,C=Array.prototype.slice,b=Array.prototype.indexOf,N=Array.prototype.push,S=function(t,n){return e=t,r=n,b.call(e,r)>-1;var e,r},L=function(t,n){for(var e=0,r=t.length;e<r;e++){if(n(t[e],e))return!0}return!1},D=function(t,n){for(var e=t.length,r=new Array(e),o=0;o<e;o++){var i=t[o];r[o]=n(i,o)}return r},O=function(t,n){for(var e=0,r=t.length;e<r;e++){n(t[e],e)}},T=function(t,n){for(var e=[],r=0,o=t.length;r<o;r++){var i=t[r];n(i,r)&&e.push(i)}return e},A=function(t,n,e){return O(t,(function(t,r){e=n(e,t,r)})),e},x=function(t,n,e){for(var r=0,o=t.length;r<o;r++){var i=t[r];if(n(i,r))return h.some(i);if(e(i,r))break}return h.none()},w=function(t,n){return x(t,n,g)},E=function(t,n){return function(t){for(var n=[],e=0,r=t.length;e<r;++e){if(!a(t[e]))throw new Error("Arr.flatten item "+e+" was not an array, input: "+t);N.apply(n,t[e])}return n}(D(t,n))},k=function(t){var n=C.call(t,0);return n.reverse(),n},B=function(t,n){return n>=0&&n<t.length?h.some(t[n]):h.none()},P=function(t){return B(t,0)},M=function(t){return B(t,t.length-1)},I=function(t,n){for(var e=[],r=f(n)?function(t){return L(e,(function(e){return n(e,t)}))}:function(t){return S(e,t)},o=0,i=t.length;o<i;o++){var u=t[o];r(u)||e.push(u)}return e},R=function(t,n,e){return void 0===e&&(e=p),t.exists((function(t){return e(t,n)}))},_=function(t,n,e){return t.isSome()&&n.isSome()?h.some(e(t.getOrDie(),n.getOrDie())):h.none()},U=function(t){if(null==t)throw new Error("Node cannot be null or undefined");return{dom:t}},H={fromHtml:function(t,n){var e=(n||document).createElement("div");if(e.innerHTML=t,!e.hasChildNodes()||e.childNodes.length>1){var r="HTML does not have a single root node";throw console.error(r,t),new Error(r)}return U(e.childNodes[0])},fromTag:function(t,n){var e=(n||document).createElement(t);return U(e)},fromText:function(t,n){var e=(n||document).createTextNode(t);return U(e)},fromDom:U,fromPoint:function(t,n,e){return h.from(t.dom.elementFromPoint(n,e)).map(U)}},$=function(t,n){var e=t.dom;if(1!==e.nodeType)return!1;var r=e;if(void 0!==r.matches)return r.matches(n);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(n);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(n);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(n);throw new Error("Browser lacks native selectors")},j=function(t,n){return t.dom===n.dom},F=$,V="undefined"!=typeof window?window:Function("return this;")(),K=function(t,n){return function(t,n){for(var e=null!=n?n:V,r=0;r<t.length&&null!=e;++r)e=e[t[r]];return e}(t.split("."),n)},z=function(t,n){var e=function(t,n){return K(t,n)}(t,n);if(null==e)throw new Error(t+" not available on this browser");return e},Q=Object.getPrototypeOf,W=function(t){var n=K("ownerDocument.defaultView",t);return u(t)&&(function(t){return z("HTMLElement",t)}(n).prototype.isPrototypeOf(t)||/^HTML\w*Element$/.test(Q(t).constructor.name))},q=function(t){return t.dom.nodeName.toLowerCase()},Z=function(t){return t.dom.nodeType},G=function(t){return function(n){return Z(n)===t}},J=function(t){return X(t)&&W(t.dom)},X=G(1),Y=G(3),tt=G(9),nt=G(11),et=function(t){return function(n){return X(n)&&q(n)===t}},rt=function(t){return h.from(t.dom.parentNode).map(H.fromDom)},ot=function(t){return D(t.dom.childNodes,H.fromDom)},it=function(t,n){var e=t.dom.childNodes;return h.from(e[n]).map(H.fromDom)},ut=function(t){return it(t,0)},at=function(t){return it(t,t.dom.childNodes.length-1)},ct=f(Element.prototype.attachShadow)&&f(Node.prototype.getRootNode),st=ct?function(t){return H.fromDom(t.dom.getRootNode())}:function(t){return tt(t)?t:(n=t,H.fromDom(n.dom.ownerDocument));var n},ft=function(t){var n,e=st(t);return nt(n=e)&&s(n.dom.host)?h.some(e):h.none()},lt=function(t){return H.fromDom(t.dom.host)},dt=function(t){var n=Y(t)?t.dom.parentNode:t.dom;if(null==n||null===n.ownerDocument)return!1;var e,r,o=n.ownerDocument;return ft(H.fromDom(n)).fold((function(){return o.body.contains(n)}),(e=dt,r=lt,function(t){return e(r(t))}))},mt=function(t,n,e,r,o){return t(e,r)?h.some(e):f(o)&&o(e)?h.none():n(e,r,o)},pt=function(t,n,e){for(var r=t.dom,o=f(e)?e:g;r.parentNode;){r=r.parentNode;var i=H.fromDom(r);if(n(i))return h.some(i);if(o(i))break}return h.none()},vt=function(t,n,e){return mt((function(t,n){return n(t)}),pt,t,n,e)},gt=function(t,n,e){return pt(t,(function(t){return $(t,n)}),e)},ht=function(t){return mt((function(t,n){return $(t,n)}),gt,t,"[contenteditable]",n);var n},yt=function(t){return t.dom.contentEditable},Ct=function(t,n){rt(t).each((function(e){e.dom.insertBefore(n.dom,t.dom)}))},bt=function(t,n){var e=function(t){return h.from(t.dom.nextSibling).map(H.fromDom)}(t);e.fold((function(){rt(t).each((function(t){Nt(t,n)}))}),(function(t){Ct(t,n)}))},Nt=function(t,n){t.dom.appendChild(n.dom)},St=function(t,n){O(n,(function(n){Nt(t,n)}))},Lt=function(t){t.dom.textContent="",O(ot(t),(function(t){Dt(t)}))},Dt=function(t){var n=t.dom;null!==n.parentNode&&n.parentNode.removeChild(n)},Ot=tinymce.util.Tools.resolve("tinymce.dom.RangeUtils"),Tt=tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"),At=tinymce.util.Tools.resolve("tinymce.util.VK"),xt=function(t){return D(t,H.fromDom)},wt=Object.keys,Et=function(t,n){for(var e=wt(t),r=0,o=e.length;r<o;r++){var i=e[r];n(t[i],i)}},kt=function(t,n){var e,r={};return function(t,n,e,r){Et(t,(function(t,o){(n(t,o)?e:r)(t,o)}))}(t,n,(e=r,function(t,n){e[n]=t}),d),r},Bt=function(t,n){var e=t.dom;Et(n,(function(t,n){!function(t,n,e){if(!(i(e)||c(e)||l(e)))throw console.error("Invalid call to Attribute.set. Key ",n,":: Value ",e,":: Element ",t),new Error("Attribute value was not simple");t.setAttribute(n,e+"")}(e,n,t)}))},Pt=function(t){return A(t.dom.attributes,(function(t,n){return t[n.name]=n.value,t}),{})},Mt=function(t){return function(t,n){return H.fromDom(t.dom.cloneNode(n))}(t,!0)},It=function(t,n){var e=function(t,n){var e=H.fromTag(n),r=Pt(t);return Bt(e,r),e}(t,n);bt(t,e);var r=ot(t);return St(e,r),Dt(t),e},Rt=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),_t=tinymce.util.Tools.resolve("tinymce.util.Tools"),Ut=function(t){return function(n){return s(n)&&n.nodeName.toLowerCase()===t}},Ht=function(t){return function(n){return s(n)&&t.test(n.nodeName)}},$t=function(t){return s(t)&&3===t.nodeType},jt=function(t){return s(t)&&1===t.nodeType},Ft=Ht(/^(OL|UL|DL)$/),Vt=Ht(/^(OL|UL)$/),Kt=Ut("ol"),zt=Ht(/^(LI|DT|DD)$/),Qt=Ht(/^(DT|DD)$/),Wt=Ht(/^(TH|TD)$/),qt=Ut("br"),Zt=function(t,n){return s(n)&&n.nodeName in t.schema.getTextBlockElements()},Gt=function(t,n){return s(t)&&t.nodeName in n},Jt=function(t,n){return s(n)&&n.nodeName in t.schema.getVoidElements()},Xt=function(t,n,e){var r=t.isEmpty(n);return!(e&&t.select("span[data-mce-type=bookmark]",n).length>0)&&r},Yt=function(t,n){return t.isChildOf(n,t.getRoot())},tn=function(t){return function(n){return n.options.get(t)}},nn=tn("lists_indent_on_tab"),en=tn("forced_root_block"),rn=tn("forced_root_block_attrs"),on=function(t,n){var e,r,o=t.dom,i=t.schema.getBlockElements(),u=o.createFragment(),a=en(t),c=rn(t),s=!1;for(r=o.create(a,c),Gt(n.firstChild,i)||u.appendChild(r);e=n.firstChild;){var f=e.nodeName;s||"SPAN"===f&&"bookmark"===e.getAttribute("data-mce-type")||(s=!0),Gt(e,i)?(u.appendChild(e),r=null):(r||(r=o.create(a,c),u.appendChild(r)),r.appendChild(e))}return!s&&r&&r.appendChild(o.create("br",{"data-mce-bogus":"1"})),u},un=Rt.DOM,an=et("dd"),cn=et("dt"),sn=function(t,n){var e;an(n)?It(n,"dt"):cn(n)&&(e=n,h.from(e.dom.parentElement).map(H.fromDom)).each((function(e){return function(t,n,e){var r=un.select('span[data-mce-type="bookmark"]',n),o=on(t,e),i=un.createRng();i.setStartAfter(e),i.setEndAfter(n);for(var u=i.extractContents(),a=u.firstChild;a;a=a.firstChild)if("LI"===a.nodeName&&t.dom.isEmpty(a)){un.remove(a);break}t.dom.isEmpty(u)||un.insertAfter(u,n),un.insertAfter(o,n);var c=e.parentElement;c&&Xt(t.dom,c)&&function(t){var n=t.parentNode;n&&_t.each(r,(function(t){n.insertBefore(t,e.parentNode)})),un.remove(t)}(c),un.remove(e),Xt(t.dom,n)&&un.remove(n)}(t,e.dom,n.dom)}))},fn=function(t){cn(t)&&It(t,"dd")},ln=function(t,n){if($t(t))return{container:t,offset:n};var e=Ot.getNode(t,n);return $t(e)?{container:e,offset:n>=t.childNodes.length?e.data.length:0}:e.previousSibling&&$t(e.previousSibling)?{container:e.previousSibling,offset:e.previousSibling.data.length}:e.nextSibling&&$t(e.nextSibling)?{container:e.nextSibling,offset:0}:{container:t,offset:n}},dn=function(t){var n=t.cloneRange(),e=ln(t.startContainer,t.startOffset);n.setStart(e.container,e.offset);var r=ln(t.endContainer,t.endOffset);return n.setEnd(r.container,r.offset),n},mn=["OL","UL","DL"],pn=mn.join(","),vn=function(t,n){var e=n||t.selection.getStart(!0);return t.dom.getParent(e,pn,Cn(t,e))},gn=function(t){var n=vn(t),e=t.selection.getSelectedBlocks();return function(t,n){return s(t)&&1===n.length&&n[0]===t}(n,e)?function(t){return T(t.querySelectorAll(pn),Ft)}(n):T(e,(function(t){return Ft(t)&&n!==t}))},hn=function(t){var n=t.selection.getSelectedBlocks();return T(function(t,n){var e=_t.map(n,(function(n){return t.dom.getParent(n,"li,dd,dt",Cn(t,n))||n}));return I(e)}(t,n),zt)},yn=function(t,n){var e=t.dom.getParents(n,"TD,TH");return e.length>0?e[0]:t.getBody()},Cn=function(t,n){var e=t.dom.getParents(n,t.dom.isBlock),r=w(e,(function(n){return e=t.schema,!Ft(r=n)&&!zt(r)&&L(mn,(function(t){return e.isValidChild(r.nodeName,t)}));var e,r}));return r.getOr(t.getBody())},bn=function(t,n){var e=t.dom.getParents(n,"ol,ul",Cn(t,n));return M(e)},Nn=function(t){var n=function(t){var n=bn(t,t.selection.getStart()),e=T(t.selection.getSelectedBlocks(),Vt);return n.toArray().concat(e)}(t),e=function(t){var n=t.selection.getStart();return t.dom.getParents(n,"ol,ul",Cn(t,n))}(t);return w(e,(function(t){return n=H.fromDom(t),rt(n).exists((function(t){return zt(t.dom)&&ut(t).exists((function(t){return!Ft(t.dom)}))&&at(t).exists((function(t){return!Ft(t.dom)}))}));var n})).fold((function(){return Sn(t,n)}),(function(t){return[t]}))},Sn=function(t,n){var e=D(n,(function(n){return bn(t,n).getOr(n)}));return I(e)},Ln=function(t){return/\btox\-/.test(t.className)},Dn=function(t,n){return x(t,Ft,Wt).exists((function(t){return t.nodeName===n&&!Ln(t)}))},On=function(t,n){return null!==n&&!t.dom.isEditable(n)},Tn=function(t,n){var e=t.dom.getParent(n,"ol,ul,dl");return On(t,e)},An=function(t,n){var e=t.selection.getNode();return n({parents:t.dom.getParents(e),element:e}),t.on("NodeChange",n),function(){return t.off("NodeChange",n)}},xn=function(t,n){var e=(n||document).createDocumentFragment();return O(t,(function(t){e.appendChild(t.dom)})),H.fromDom(e)},wn=function(t,n,e){return t.dispatch("ListMutation",{action:n,element:e})},En=(y=/^\s+|\s+$/g,function(t){return t.replace(y,"")}),kn=function(t,n,e){if(!i(e))throw console.error("Invalid call to CSS.set. Property ",n,":: Value ",e,":: Element ",t),new Error("CSS value must be a string: "+e);(function(t){return void 0!==t.style&&f(t.style.getPropertyValue)})(t)&&t.style.setProperty(n,e)},Bn=function(t){return F(t,"OL,UL")},Pn=function(t){return ut(t).exists(Bn)},Mn=function(t){return"listAttributes"in t},In=function(t){return"isComment"in t},Rn=function(t){return t.depth>0},_n=function(t){return t.isSelected},Un=function(t){var n=ot(t),e=at(t).exists(Bn)?n.slice(0,-1):n;return D(e,Mt)},Hn=function(t,n){Nt(t.item,n.list)},$n=function(t,n){var e={list:H.fromTag(n,t),item:H.fromTag("li",t)};return Nt(e.list,e.item),e},jn=function(t,n,e){var r=n.slice(0,e.depth);return M(r).each((function(n){if(Mn(e)){var r=function(t,n,e){var r=H.fromTag("li",t);return Bt(r,n),St(r,e),r}(t,e.itemAttributes,e.content);!function(t,n){Nt(t.list,n),t.item=n}(n,r),function(t,n){q(t.list)!==n.listType&&(t.list=It(t.list,n.listType)),Bt(t.list,n.listAttributes)}(n,e)}else if(function(t){return"isFragment"in t}(e))St(n.item,e.content);else{r=H.fromHtml("\x3c!--".concat(e.content,"--\x3e"));Nt(n.list,r)}})),r},Fn=function(t,n,e){var r,o=function(t,n,e){for(var r=[],o=0;o<e;o++)r.push($n(t,Mn(n)?n.listType:n.parentListType));return r}(t,e,e.depth-n.length);return function(t){for(var n=1;n<t.length;n++)Hn(t[n-1],t[n])}(o),function(t,n){for(var e=0;e<t.length-1;e++)r=t[e].item,o="list-style-type",i="none",u=void 0,u=r.dom,kn(u,o,i);var r,o,i,u;M(t).each((function(t){Mn(n)&&(Bt(t.list,n.listAttributes),Bt(t.item,n.itemAttributes)),St(t.item,n.content)}))}(o,e),r=o,_(M(n),P(r),Hn),n.concat(o)},Vn=function(t,n){var e=h.none(),r=A(n,(function(n,r,o){return In(r)?0===o?(e=h.some(r),n):jn(t,n,r):r.depth>n.length?Fn(t,n,r):jn(t,n,r)}),[]);return e.each((function(t){var n=H.fromHtml("\x3c!--".concat(t.content,"--\x3e"));P(r).each((function(t){!function(t,n){ut(t).fold((function(){Nt(t,n)}),(function(e){t.dom.insertBefore(n.dom,e.dom)}))}(t.list,n)}))})),P(r).map((function(t){return t.list}))},Kn=function(t){return O(t,(function(n,r){(function(t,n){var e=t[n].depth,r=function(t){return t.depth===e&&!t.dirty},o=function(t){return t.depth<e};return x(k(t.slice(0,n)),r,o).orThunk((function(){return x(t.slice(n+1),r,o)}))})(t,r).fold((function(){n.dirty&&Mn(n)&&function(t){t.listAttributes=kt(t.listAttributes,(function(t,n){return"start"!==n}))}(n)}),(function(t){return o=t,void(Mn(r=n)&&Mn(o)&&(r.listType=o.listType,r.listAttributes=e({},o.listAttributes)));var r,o}))})),t},zn=function(t,n,e,r){var o,i;if(8===Z(i=r)||"#comment"===q(i))return[{depth:t+1,content:null!==(o=r.dom.nodeValue)&&void 0!==o?o:"",dirty:!1,isSelected:!1,isComment:!0}];n.each((function(t){j(t.start,r)&&e.set(!0)}));var u=function(t,n,e){return rt(t).filter(X).map((function(r){return{depth:n,dirty:!1,isSelected:e,content:Un(t),itemAttributes:Pt(t),listAttributes:Pt(r),listType:q(r),isInPreviousLi:!1}}))}(r,t,e.get());n.each((function(t){j(t.end,r)&&e.set(!1)}));var a=at(r).filter(Bn).map((function(r){return Wn(t,n,e,r)})).getOr([]);return u.toArray().concat(a)},Qn=function(t,n,e,r){return ut(r).filter(Bn).fold((function(){return zn(t,n,e,r)}),(function(o){var i=A(ot(r),(function(r,i,u){if(0===u)return r;if(F(i,"LI"))return r.concat(zn(t,n,e,i));var a={isFragment:!0,depth:t,content:[i],isSelected:!1,dirty:!1,parentListType:q(o)};return r.concat(a)}),[]);return Wn(t,n,e,o).concat(i)}))},Wn=function(t,n,e,r){return E(ot(r),(function(r){return(Bn(r)?Wn:Qn)(t+1,n,e,r)}))},qn=function(t,n){return E(function(t,n){if(0===t.length)return[];for(var e=n(t[0]),r=[],o=[],i=0,u=t.length;i<u;i++){var a=t[i],c=n(a);c!==e&&(r.push(o),o=[]),e=c,o.push(a)}return 0!==o.length&&r.push(o),r}(n,Rn),(function(n){return P(n).exists(Rn)?function(t,n){var e=Kn(n);return Vn(t.contentDocument,e).toArray()}(t,n):function(t,n){var e=Kn(n);return D(e,(function(n){var e=In(n)?xn([H.fromHtml("\x3c!--".concat(n.content,"--\x3e"))]):xn(n.content);return H.fromDom(on(t,e.dom))}))}(t,n)}))},Zn=function(t,n,e){var r=function(t,n){var e,r=(e=!1,{get:function(){return e},set:function(t){e=t}});return D(t,(function(t){return{sourceList:t,entries:Wn(0,n,r,t)}}))}(n,function(t){var n=D(hn(t),H.fromDom);return _(w(n,v(Pn)),w(k(n),v(Pn)),(function(t,n){return{start:t,end:n}}))}(t));O(r,(function(n){!function(t,n){O(T(t,_n),(function(t){return function(t,n){switch(t){case"Indent":n.depth++;break;case"Outdent":n.depth--;break;case"Flatten":n.depth=0}n.dirty=!0}(n,t)}))}(n.entries,e);var r,o=qn(t,n.entries);O(o,(function(n){wn(t,"Indent"===e?"IndentList":"OutdentList",n.dom)})),r=n.sourceList,O(o,(function(t){Ct(r,t)})),Dt(n.sourceList)}))},Gn=function(t,n){var e=xt(Nn(t)),r=xt(function(t){return T(hn(t),Qt)}(t)),o=!1;if(e.length||r.length){var i=t.selection.getBookmark();Zn(t,e,n),function(t,n,e){O(e,"Indent"===n?fn:function(n){return sn(t,n)})}(t,n,r),t.selection.moveToBookmark(i),t.selection.setRng(dn(t.selection.getRng())),t.nodeChanged(),o=!0}return o},Jn=function(t,n){return!function(t){var n=vn(t);return On(t,n)}(t)&&Gn(t,n)},Xn=function(t){return Jn(t,"Indent")},Yn=function(t){return Jn(t,"Outdent")},te=function(t){return Jn(t,"Flatten")},ne=function(t){return"\ufeff"===t},ee=function(t,n){return e=t,r=function(t){for(var n=[],e=1;e<arguments.length;e++)n[e-1]=arguments[e];return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var o=n.concat(e);return t.apply(null,o)}}(j,n),pt(e,r,o).isSome();var e,r,o},re=tinymce.util.Tools.resolve("tinymce.dom.BookmarkManager"),oe=Rt.DOM,ie=function(t){var n={},e=function(e){var r=t[e?"startContainer":"endContainer"],o=t[e?"startOffset":"endOffset"];if(jt(r)){var i=oe.create("span",{"data-mce-type":"bookmark"});r.hasChildNodes()?(o=Math.min(o,r.childNodes.length-1),e?r.insertBefore(i,r.childNodes[o]):oe.insertAfter(i,r.childNodes[o])):r.appendChild(i),r=i,o=0}n[e?"startContainer":"endContainer"]=r,n[e?"startOffset":"endOffset"]=o};return e(!0),t.collapsed||e(),n},ue=function(t){var n=function(n){var e=t[n?"startContainer":"endContainer"],r=t[n?"startOffset":"endOffset"];if(e){if(jt(e)&&e.parentNode){var o=e;r=function(t){for(var n,e=null===(n=t.parentNode)||void 0===n?void 0:n.firstChild,r=0;e;){if(e===t)return r;jt(e)&&"bookmark"===e.getAttribute("data-mce-type")||r++,e=e.nextSibling}return-1}(e),e=e.parentNode,oe.remove(o),!e.hasChildNodes()&&oe.isBlock(e)&&e.appendChild(oe.create("br"))}t[n?"startContainer":"endContainer"]=e,t[n?"startOffset":"endOffset"]=r}};n(!0),n();var e=oe.createRng();return e.setStart(t.startContainer,t.startOffset),t.endContainer&&e.setEnd(t.endContainer,t.endOffset),dn(e)},ae=function(t){switch(t){case"UL":return"ToggleUlList";case"OL":return"ToggleOlList";case"DL":return"ToggleDLList"}},ce=function(t,n){_t.each(n,(function(n,e){t.setAttribute(e,n)}))},se=function(t,n,e){!function(t,n,e){var r=e["list-style-type"]?e["list-style-type"]:null;t.setStyle(n,"list-style-type",r)}(t,n,e),function(t,n,e){ce(n,e["list-attributes"]),_t.each(t.select("li",n),(function(t){ce(t,e["list-item-attributes"])}))}(t,n,e)},fe=function(t,n){return s(n)&&!Gt(n,t.schema.getBlockElements())},le=function(t,n,e,r){var o=n[e?"startContainer":"endContainer"],i=n[e?"startOffset":"endOffset"];jt(o)&&(o=o.childNodes[Math.min(i,o.childNodes.length-1)]||o),!e&&qt(o.nextSibling)&&(o=o.nextSibling);var u=function(n,e){for(var o,i,u=new Tt(n,function(n){for(;!t.dom.isBlock(n)&&n.parentNode&&r!==n;)n=n.parentNode;return n}(n)),a=e?"next":"prev";i=u[a]();)if(!Jt(t,i)&&!ne(i.textContent)&&0!==(null===(o=i.textContent)||void 0===o?void 0:o.length))return h.some(i);return h.none()};if(e&&$t(o))if(ne(o.textContent))o=u(o,!1).getOr(o);else for(null!==o.parentNode&&fe(t,o.parentNode)&&(o=o.parentNode);null!==o.previousSibling&&(fe(t,o.previousSibling)||$t(o.previousSibling));)o=o.previousSibling;if(!e&&$t(o))if(ne(o.textContent))o=u(o,!0).getOr(o);else for(null!==o.parentNode&&fe(t,o.parentNode)&&(o=o.parentNode);null!==o.nextSibling&&(fe(t,o.nextSibling)||$t(o.nextSibling));)o=o.nextSibling;for(;o.parentNode!==r;){var a=o.parentNode;if(Zt(t,o))return o;if(/^(TD|TH)$/.test(a.nodeName))return o;o=a}return o},de=function(t,n,e){var r=t.selection.getRng(),o="LI",i=Cn(t,function(t,n){var e=t.selection.getStart(!0),r=le(t,n,!0,t.getBody());return ee(H.fromDom(r),H.fromDom(n.commonAncestorContainer))?n.commonAncestorContainer:e}(t,r)),u=t.dom;if("false"!==u.getContentEditable(t.selection.getNode())){"DL"===(n=n.toUpperCase())&&(o="DT");var a=ie(r),c=T(function(t,n,e){for(var r,o=[],i=t.dom,u=le(t,n,!0,e),a=le(t,n,!1,e),c=[],s=u;s&&(c.push(s),s!==a);s=s.nextSibling);return _t.each(c,(function(n){var u;if(Zt(t,n))return o.push(n),void(r=null);if(i.isBlock(n)||qt(n))return qt(n)&&i.remove(n),void(r=null);var a=n.nextSibling;re.isBookmarkNode(n)&&(Ft(a)||Zt(t,a)||!a&&n.parentNode===e)?r=null:(r||(r=i.create("p"),null===(u=n.parentNode)||void 0===u||u.insertBefore(r,n),o.push(r)),r.appendChild(n))})),o}(t,r,i),t.dom.isEditable);_t.each(c,(function(r){var i,a=r.previousSibling,c=r.parentNode;zt(c)||(a&&Ft(a)&&a.nodeName===n&&function(t,n,e){var r=t.getStyle(n,"list-style-type"),o=e?e["list-style-type"]:"";return r===(null===o?"":o)}(u,a,e)?(i=a,r=u.rename(r,o),a.appendChild(r)):(i=u.create(n),c.insertBefore(i,r),i.appendChild(r),r=u.rename(r,o)),function(t,n,e){_t.each(e,(function(e){return t.setStyle(n,e,"")}))}(u,r,["margin","margin-right","margin-bottom","margin-left","margin-top","padding","padding-right","padding-bottom","padding-left","padding-top"]),se(u,i,e),pe(t.dom,i))})),t.selection.setRng(ue(a))}},me=function(t,n,e){return function(t,n){return Ft(t)&&t.nodeName===(null==n?void 0:n.nodeName)}(n,e)&&function(t,n,e){return t.getStyle(n,"list-style-type",!0)===t.getStyle(e,"list-style-type",!0)}(t,n,e)&&(r=e,n.className===r.className);var r},pe=function(t,n){var e,r=n.nextSibling;if(me(t,n,r)){for(var o=r;e=o.firstChild;)n.appendChild(e);t.remove(o)}if(r=n.previousSibling,me(t,n,r)){for(o=r;e=o.lastChild;)n.insertBefore(e,n.firstChild);t.remove(o)}},ve=function(t,n,e,r){if(n.nodeName!==e){var o=t.dom.rename(n,e);se(t.dom,o,r),wn(t,ae(e),o)}else se(t.dom,n,r),wn(t,ae(e),n)},ge=function(t,n,e,r){if(n.classList.forEach((function(t,e,r){t.startsWith("tox-")&&(r.remove(t),0===r.length&&n.removeAttribute("class"))})),n.nodeName!==e){var o=t.dom.rename(n,e);se(t.dom,o,r),wn(t,ae(e),o)}else se(t.dom,n,r),wn(t,ae(e),n)},he=function(t){return"list-style-type"in t},ye=function(t,n,e){var o=vn(t);if(!Tn(t,o)){var i=gn(t),a=u(e)?e:{};i.length>0?function(t,n,e,o,i){var u=Ft(n);if(!u||n.nodeName!==o||he(i)||Ln(n)){de(t,o,i);var a=ie(t.selection.getRng()),c=u?r([n],e,!0):e,s=u&&Ln(n)?ge:ve;_t.each(c,(function(n){s(t,n,o,i)})),t.selection.setRng(ue(a))}else te(t)}(t,o,i,n,a):function(t,n,e,r){if(n!==t.getBody())if(n)if(n.nodeName!==e||he(r)||Ln(n)){var o=ie(t.selection.getRng());Ln(n)&&n.classList.forEach((function(t,e,r){t.startsWith("tox-")&&(r.remove(t),0===r.length&&n.removeAttribute("class"))})),se(t.dom,n,r);var i=t.dom.rename(n,e);pe(t.dom,i),t.selection.setRng(ue(o)),de(t,e,r),wn(t,ae(e),i)}else te(t);else de(t,e,r),wn(t,ae(e),n)}(t,o,n,a)}},Ce=Rt.DOM,be=function(t,n){var e=_t.grep(t.select("ol,ul",n));_t.each(e,(function(n){!function(t,n){var e,r=n.parentElement;r&&"LI"===r.nodeName&&r.firstChild===n&&((e=r.previousSibling)&&"LI"===e.nodeName?(e.appendChild(n),Xt(t,r)&&Ce.remove(r)):Ce.setStyle(r,"listStyleType","none")),Ft(r)&&(e=r.previousSibling)&&"LI"===e.nodeName&&e.appendChild(n)}(t,n)}))},Ne=function(t,n,e,r){var o=n.startContainer,i=n.startOffset;if($t(o)&&(e?i<o.data.length:i>0))return o;var u=t.schema.getNonEmptyElements();jt(o)&&(o=Ot.getNode(o,i));var a=new Tt(o,r);e&&function(t,n){return!!qt(n)&&t.isBlock(n.nextSibling)&&!qt(n.previousSibling)}(t.dom,o)&&a.next();for(var c=e?a.next.bind(a):a.prev2.bind(a);o=c();){if("LI"===o.nodeName&&!o.hasChildNodes())return o;if(u[o.nodeName])return o;if($t(o)&&o.data.length>0)return o}return null},Se=function(t,n){var e=n.childNodes;return 1===e.length&&!Ft(e[0])&&t.isBlock(e[0])},Le=function(t){return h.from(t).map(H.fromDom).filter(J).exists((function(t){return void 0===e&&(e=!1),(dt(n=t)?n.dom.isContentEditable:ht(n).fold(m(e),(function(t){return"true"===yt(t)})))&&!S(["details"],q(t));var n,e}))},De=function(t,n,e){var r,o=Se(t,e)?e.firstChild:e;if(function(t,n){Se(t,n)&&Le(n.firstChild)&&t.remove(n.firstChild,!0)}(t,n),!Xt(t,n,!0))for(;r=n.firstChild;)o.appendChild(r)},Oe=function(t,n,e){var r,o=n.parentNode;if(Yt(t,n)&&Yt(t,e)){Ft(e.lastChild)&&(r=e.lastChild),o===e.lastChild&&qt(o.previousSibling)&&t.remove(o.previousSibling);var i=e.lastChild;i&&qt(i)&&n.hasChildNodes()&&t.remove(i),Xt(t,e,!0)&&Lt(H.fromDom(e)),De(t,n,e),r&&e.appendChild(r);var u,a,c,s,f=(u=H.fromDom(e),a=H.fromDom(n),c=u.dom,s=a.dom,c!==s&&c.contains(s))?t.getParents(n,Ft,e):[];t.remove(n),O(f,(function(n){Xt(t,n)&&n!==t.getRoot()&&t.remove(n)}))}},Te=function(t,n,e,r){var o=t.dom;if(o.isEmpty(r))!function(t,n,e){Lt(H.fromDom(e)),Oe(t.dom,n,e),t.selection.setCursorLocation(e,0)}(t,e,r);else{var i=ie(n);Oe(o,e,r),t.selection.setRng(ue(i))}},Ae=function(t,n){var e=t.dom,r=t.selection,o=r.getStart(),i=yn(t,o),u=e.getParent(r.getStart(),"LI",i);if(u){var a=u.parentElement;if(a===t.getBody()&&Xt(e,a))return!0;var c=dn(r.getRng()),s=e.getParent(Ne(t,c,n,i),"LI",i),f=s&&(n?e.isChildOf(u,s):e.isChildOf(s,u));if(s&&s!==u&&!f)return t.undoManager.transact((function(){var e,r;n?Te(t,c,s,u):(null===(r=(e=u).parentNode)||void 0===r?void 0:r.firstChild)===e?Yn(t):function(t,n,e,r){var o=ie(n);Oe(t.dom,e,r);var i=ue(o);t.selection.setRng(i)}(t,c,u,s)})),!0;if(f&&!n&&s!==u)return t.undoManager.transact((function(){if(c.commonAncestorContainer.parentElement){var n=ie(c),r=c.commonAncestorContainer.parentElement;De(e,c.commonAncestorContainer.parentElement,s),r.remove();var o=ue(n);t.selection.setRng(o)}})),!0;if(!s&&!n&&0===c.startOffset&&0===c.endOffset)return t.undoManager.transact((function(){te(t)})),!0}return!1},xe=function(t,n){var e,r,o,i=t.dom,u=t.selection.getStart(),a=yn(t,u),c=i.getParent(u,i.isBlock,a);if(c&&i.isEmpty(c)){var s=dn(t.selection.getRng()),f=i.getParent(Ne(t,s,n,a),"LI",a);if(f){var l=function(t){return S(["td","th","caption"],q(t))},d=function(t){return t.dom===a},m=vt(H.fromDom(f),l,d),v=vt(H.fromDom(s.startContainer),l,d);return void 0===(o=j)&&(o=p),_(e=m,r=v,o).getOr(e.isNone()&&r.isNone())?(t.undoManager.transact((function(){var e=f.parentNode;!function(t,n,e){var r=t.getParent(n.parentNode,t.isBlock,e);t.remove(n),r&&t.isEmpty(r)&&t.remove(r)}(i,c,a),pe(i,e),t.selection.select(f,!0),t.selection.collapse(n)})),!0):!1}}return!1},we=function(t){var n=t.selection.getStart(),e=yn(t,n);return t.dom.getParent(n,"LI,DT,DD",e)||hn(t).length>0},Ee=function(t,n){var e=t.selection;return!Tn(t,e.getNode())&&(e.isCollapsed()?function(t,n){return Ae(t,n)||xe(t,n)}(t,n):function(t){return!!we(t)&&(t.undoManager.transact((function(){t.execCommand("Delete"),be(t.dom,t.getBody())})),!0)}(t))},ke=function(t){var n=k(En(t).split("")),e=D(n,(function(t,n){var e=t.toUpperCase().charCodeAt(0)-"A".charCodeAt(0)+1;return Math.pow(26,n)*e}));return A(e,(function(t,n){return t+n}),0)},Be=function(t){if(--t<0)return"";var n=t%26,e=Math.floor(t/26);return Be(e)+String.fromCharCode("A".charCodeAt(0)+n)},Pe=function(t){var n,e,r=vn(t);Kt(r)&&!Tn(t,r)&&t.windowManager.open({title:"List Properties",body:{type:"panel",items:[{type:"input",name:"start",label:"Start list at number",inputMode:"numeric"}]},initialData:{start:(n={start:t.dom.getAttrib(r,"start","1"),listStyleType:h.from(t.dom.getStyle(r,"list-style-type"))},e=parseInt(n.start,10),R(n.listStyleType,"upper-alpha")?Be(e):R(n.listStyleType,"lower-alpha")?Be(e).toLowerCase():n.start)},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],onSubmit:function(n){(function(t){switch(function(t){return/^[0-9]+$/.test(t)?2:/^[A-Z]+$/.test(t)?0:function(t){return/^[a-z]+$/.test(t)}(t)?1:t.length>0?4:3}(t)){case 2:return h.some({listStyleType:h.none(),start:t});case 0:return h.some({listStyleType:h.some("upper-alpha"),start:ke(t).toString()});case 1:return h.some({listStyleType:h.some("lower-alpha"),start:ke(t).toString()});case 3:return h.some({listStyleType:h.none(),start:""});case 4:return h.none()}})(n.getData().start).each((function(n){t.execCommand("mceListUpdate",!1,{attrs:{start:"1"===n.start?"":n.start},styles:{"list-style-type":n.listStyleType.getOr("")}})})),n.close()}})},Me=function(t,n){return function(){var e=vn(t);return s(e)&&e.nodeName===n}},Ie=function(t){t.addCommand("mceListProps",(function(){Pe(t)}))},Re=function(t){t.on("BeforeExecCommand",(function(n){var e=n.command.toLowerCase();"indent"===e?Xn(t):"outdent"===e&&Yn(t)})),t.addCommand("InsertUnorderedList",(function(n,e){ye(t,"UL",e)})),t.addCommand("InsertOrderedList",(function(n,e){ye(t,"OL",e)})),t.addCommand("InsertDefinitionList",(function(n,e){ye(t,"DL",e)})),t.addCommand("RemoveList",(function(){te(t)})),Ie(t),t.addCommand("mceListUpdate",(function(n,e){u(e)&&function(t,n){var e=vn(t);null===e||Tn(t,e)||t.undoManager.transact((function(){u(n.styles)&&t.dom.setStyles(e,n.styles),u(n.attrs)&&Et(n.attrs,(function(n,r){return t.dom.setAttrib(e,r,n)}))}))}(t,e)})),t.addQueryStateHandler("InsertUnorderedList",Me(t,"UL")),t.addQueryStateHandler("InsertOrderedList",Me(t,"OL")),t.addQueryStateHandler("InsertDefinitionList",Me(t,"DL"))},_e=tinymce.util.Tools.resolve("tinymce.html.Node"),Ue=function(t){return 3===t.type},He=function(t){return 0===t.length},$e=function(t){var n=function(n,e){var r=_e.create("li");O(n,(function(t){return r.append(t)})),e?t.insert(r,e,!0):t.append(r)},e=A(t.children(),(function(t,e){return Ue(e)?r(r([],t,!0),[e],!1):He(t)||Ue(e)?t:(n(t,e),[])}),[]);He(e)||n(e)},je=function(t){nn(t)&&function(t){t.on("keydown",(function(n){n.keyCode!==At.TAB||At.metaKeyPressed(n)||t.undoManager.transact((function(){(n.shiftKey?Yn(t):Xn(t))&&n.preventDefault()}))}))}(t),function(t){t.on("ExecCommand",(function(n){var e=n.command.toLowerCase();"delete"!==e&&"forwarddelete"!==e||!we(t)||be(t.dom,t.getBody())})),t.on("keydown",(function(n){n.keyCode===At.BACKSPACE?Ee(t,!1)&&n.preventDefault():n.keyCode===At.DELETE&&Ee(t,!0)&&n.preventDefault()}))}(t)},Fe=function(t,n){return function(e){return e.setEnabled(t.selection.isEditable()),An(t,(function(r){e.setActive(Dn(r.parents,n)),e.setEnabled(!Tn(t,r.element)&&t.selection.isEditable())}))}},Ve=function(t,n){return function(e){return An(t,(function(r){return e.setEnabled(Dn(r.parents,n)&&!Tn(t,r.element))}))}};t.add("lists",(function(t){return function(t){(0,t.options.register)("lists_indent_on_tab",{processor:"boolean",default:!0})}(t),function(t){t.on("PreInit",(function(){t.parser.addNodeFilter("ul,ol",(function(t){return O(t,$e)}))}))}(t),t.hasPlugin("rtc",!0)?Ie(t):(je(t),Re(t)),function(t){var n=function(n){return function(){return t.execCommand(n)}};t.hasPlugin("advlist")||(t.ui.registry.addToggleButton("numlist",{icon:"ordered-list",active:!1,tooltip:"Numbered list",onAction:n("InsertOrderedList"),onSetup:Fe(t,"OL")}),t.ui.registry.addToggleButton("bullist",{icon:"unordered-list",active:!1,tooltip:"Bullet list",onAction:n("InsertUnorderedList"),onSetup:Fe(t,"UL")}))}(t),function(t){var n={text:"List properties...",icon:"ordered-list",onAction:function(){return t.execCommand("mceListProps")},onSetup:Ve(t,"OL")};t.ui.registry.addMenuItem("listprops",n),t.ui.registry.addContextMenu("lists",{update:function(n){var e=vn(t,n);return Kt(e)?["listprops"]:[]}})}(t),function(t){return{backspaceDelete:function(n){Ee(t,n)}}}(t)}))}(),t}export{e as __require};
2
- //# sourceMappingURL=plugin.mjs.map