@lotte-innovate/ui-component-test 0.0.115 → 0.0.116
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/globals.css +3 -3
- package/dist/lib/color/alpha.mjs.map +1 -0
- package/dist/lib/color/constants.mjs.map +1 -0
- package/dist/lib/color/light.mjs.map +1 -0
- package/dist/lib/components/AlertDialog/index.mjs.map +1 -0
- package/dist/lib/components/BarChart/index.mjs.map +1 -0
- package/dist/lib/components/Breadcrumb/BreadcrumbEllipsis.mjs.map +1 -0
- package/dist/lib/components/Breadcrumb/BreadcrumbItem.mjs.map +1 -0
- package/dist/lib/components/Breadcrumb/BreadcrumbLink.mjs.map +1 -0
- package/dist/lib/components/Breadcrumb/BreadcrumbList.mjs.map +1 -0
- package/dist/lib/components/Breadcrumb/BreadcrumbPage.mjs.map +1 -0
- package/dist/lib/components/Breadcrumb/BreadcrumbSeparator.mjs.map +1 -0
- package/dist/lib/components/Breadcrumb/index.mjs.map +1 -0
- package/dist/lib/components/BubbleChart/index.mjs.map +1 -0
- package/dist/lib/components/Callout/index.mjs.map +1 -0
- package/dist/lib/components/CheckboxGroup/index.mjs.map +1 -0
- package/dist/lib/components/ContextMenu/ContextMenuGroup.mjs.map +1 -0
- package/dist/lib/components/ContextMenu/ContextMenuSeparator.mjs.map +1 -0
- package/dist/lib/components/ContextMenu/ContextMenuTrigger.mjs.map +1 -0
- package/dist/lib/components/ContextMenu/index.mjs.map +1 -0
- package/dist/lib/components/DataList/index.mjs.map +1 -0
- package/dist/lib/components/Dialog/DialogTrigger.mjs.map +1 -0
- package/dist/lib/components/Dialog/index.mjs.map +1 -0
- package/dist/lib/components/DoughnutChart/index.mjs.map +1 -0
- package/dist/lib/components/DropdownMenu/DropdonMenuRadioGroup.mjs.map +1 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuSeparator.mjs.map +1 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuSub.mjs.map +1 -0
- package/dist/lib/components/DropdownMenu/index.mjs.map +1 -0
- package/dist/lib/components/Editor/index.d.ts +15 -14
- package/dist/lib/components/Editor/index.js +50 -34
- package/dist/lib/components/Editor/index.mjs +3 -0
- package/dist/lib/components/Gnb/GnbLogo.mjs.map +1 -0
- package/dist/lib/components/Gnb/index.mjs.map +1 -0
- package/dist/lib/components/Grid/Pagination.mjs.map +1 -0
- package/dist/lib/components/HoverCard/HoverCardTrigger.mjs.map +1 -0
- package/dist/lib/components/HoverCard/index.mjs.map +1 -0
- package/dist/lib/components/LineChart/index.mjs.map +1 -0
- package/dist/lib/components/Menubar/MenubarMenu.mjs.map +1 -0
- package/dist/lib/components/Menubar/MenubarSeparator.mjs.map +1 -0
- package/dist/lib/components/Menubar/MenubarSub.mjs.map +1 -0
- package/dist/lib/components/Menubar/index.mjs.map +1 -0
- package/dist/lib/components/NavigationMenu/NavigationMenuIndicator.mjs.map +1 -0
- package/dist/lib/components/NavigationMenu/NavigationMenuItem.mjs.map +1 -0
- package/dist/lib/components/NavigationMenu/index.mjs.map +1 -0
- package/dist/lib/components/PieChart/index.mjs.map +1 -0
- package/dist/lib/components/Popover/PopoverTrigger.mjs.map +1 -0
- package/dist/lib/components/Popover/index.mjs.map +1 -0
- package/dist/lib/components/RadarChart/index.mjs.map +1 -0
- package/dist/lib/components/RadioCards/index.mjs.map +1 -0
- package/dist/lib/components/RadioGroup/index.mjs.map +1 -0
- package/dist/lib/components/SegmentedControl/SegmentedControlItem.mjs.map +1 -0
- package/dist/lib/components/SegmentedControl/index.mjs.map +1 -0
- package/dist/lib/components/Select/index.d.ts +1 -1
- package/dist/lib/components/Select/index.js +2 -2
- package/dist/lib/components/Select/index.mjs +3 -0
- package/dist/lib/components/Toast/index.mjs.map +1 -0
- package/dist/lib/components/ToggleGroup/index.mjs.map +1 -0
- package/dist/lib/constants.mjs.map +1 -0
- package/dist/lib/utils/utils.mjs.map +1 -0
- package/dist/public/tinymce/icons/default/index.js +2 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -1
- package/public/tinymce/CHANGELOG.md +3453 -0
- package/public/tinymce/README.md +73 -0
- package/public/tinymce/bower.json +27 -0
- package/public/tinymce/composer.json +52 -0
- package/public/tinymce/icons/default/icons.js +194 -0
- package/{dist/lib/public/tinymce/icons/default/icons.mjs → public/tinymce/icons/default/icons.min.js} +1 -3
- package/public/tinymce/icons/default/index.js +7 -0
- package/public/tinymce/license.txt +21 -0
- package/public/tinymce/models/dom/index.js +7 -0
- package/public/tinymce/models/dom/model.js +8040 -0
- package/public/tinymce/models/dom/model.min.js +4 -0
- package/public/tinymce/package.json +32 -0
- package/public/tinymce/plugins/advlist/index.js +7 -0
- package/public/tinymce/plugins/advlist/plugin.js +259 -0
- package/public/tinymce/plugins/advlist/plugin.min.js +4 -0
- package/{dist/public → public}/tinymce/plugins/autolink/index.js +1 -2
- package/public/tinymce/plugins/autolink/plugin.js +228 -0
- package/public/tinymce/plugins/autolink/plugin.min.js +4 -0
- package/public/tinymce/plugins/code/index.js +7 -0
- package/public/tinymce/plugins/code/plugin.js +85 -0
- package/public/tinymce/plugins/code/plugin.min.js +4 -0
- package/public/tinymce/plugins/codesample/index.js +7 -0
- package/public/tinymce/plugins/codesample/plugin.js +2463 -0
- package/public/tinymce/plugins/codesample/plugin.min.js +4 -0
- package/public/tinymce/plugins/image/index.js +7 -0
- package/public/tinymce/plugins/image/plugin.js +1505 -0
- package/public/tinymce/plugins/image/plugin.min.js +4 -0
- package/public/tinymce/plugins/link/index.js +7 -0
- package/public/tinymce/plugins/link/plugin.js +1242 -0
- package/public/tinymce/plugins/link/plugin.min.js +4 -0
- package/public/tinymce/plugins/lists/index.js +7 -0
- package/public/tinymce/plugins/lists/plugin.js +2172 -0
- package/public/tinymce/plugins/lists/plugin.min.js +4 -0
- package/public/tinymce/plugins/table/index.js +7 -0
- package/public/tinymce/plugins/table/plugin.js +3462 -0
- package/public/tinymce/plugins/table/plugin.min.js +4 -0
- package/public/tinymce/skins/content/default/content.css +61 -0
- package/public/tinymce/skins/content/default/content.js +2 -0
- package/public/tinymce/skins/content/default/content.min.css +1 -0
- package/public/tinymce/skins/ui/oxide/content.css +785 -0
- package/public/tinymce/skins/ui/oxide/content.inline.css +779 -0
- package/{dist/public → public}/tinymce/skins/ui/oxide/content.inline.js +1 -2
- package/public/tinymce/skins/ui/oxide/content.inline.min.css +1 -0
- package/public/tinymce/skins/ui/oxide/content.js +2 -0
- package/public/tinymce/skins/ui/oxide/content.min.css +1 -0
- package/public/tinymce/skins/ui/oxide/skin.css +3763 -0
- package/public/tinymce/skins/ui/oxide/skin.js +2 -0
- package/public/tinymce/skins/ui/oxide/skin.min.css +1 -0
- package/public/tinymce/skins/ui/oxide/skin.shadowdom.css +30 -0
- package/{dist/public → public}/tinymce/skins/ui/oxide/skin.shadowdom.js +1 -2
- package/public/tinymce/skins/ui/oxide/skin.shadowdom.min.css +1 -0
- package/public/tinymce/skins/ui/oxide-dark/content.css +766 -0
- package/public/tinymce/skins/ui/oxide-dark/content.inline.css +779 -0
- package/{dist/public → public}/tinymce/skins/ui/oxide-dark/content.inline.js +1 -2
- package/public/tinymce/skins/ui/oxide-dark/content.inline.min.css +1 -0
- package/{dist/public → public}/tinymce/skins/ui/oxide-dark/content.js +1 -2
- package/public/tinymce/skins/ui/oxide-dark/content.min.css +1 -0
- package/public/tinymce/skins/ui/oxide-dark/skin.css +3766 -0
- package/{dist/public → public}/tinymce/skins/ui/oxide-dark/skin.js +1 -2
- package/public/tinymce/skins/ui/oxide-dark/skin.min.css +1 -0
- package/public/tinymce/skins/ui/oxide-dark/skin.shadowdom.css +30 -0
- package/{dist/public → public}/tinymce/skins/ui/oxide-dark/skin.shadowdom.js +1 -2
- package/public/tinymce/skins/ui/oxide-dark/skin.shadowdom.min.css +1 -0
- package/public/tinymce/themes/silver/index.js +7 -0
- package/public/tinymce/themes/silver/theme.js +30775 -0
- package/public/tinymce/themes/silver/theme.min.js +384 -0
- package/public/tinymce/tinymce.d.ts +3238 -0
- package/public/tinymce/tinymce.js +31779 -0
- package/public/tinymce/tinymce.min.js +384 -0
- package/dist/lib/_virtual/index.mjs +0 -2
- package/dist/lib/_virtual/index10.mjs +0 -2
- package/dist/lib/_virtual/index10.mjs.map +0 -1
- package/dist/lib/_virtual/index11.mjs +0 -2
- package/dist/lib/_virtual/index11.mjs.map +0 -1
- package/dist/lib/_virtual/index12.mjs +0 -2
- package/dist/lib/_virtual/index12.mjs.map +0 -1
- package/dist/lib/_virtual/index13.mjs +0 -2
- package/dist/lib/_virtual/index13.mjs.map +0 -1
- package/dist/lib/_virtual/index14.mjs +0 -2
- package/dist/lib/_virtual/index14.mjs.map +0 -1
- package/dist/lib/_virtual/index2.mjs +0 -2
- package/dist/lib/_virtual/index2.mjs.map +0 -1
- package/dist/lib/_virtual/index3.mjs +0 -2
- package/dist/lib/_virtual/index3.mjs.map +0 -1
- package/dist/lib/_virtual/index4.mjs +0 -2
- package/dist/lib/_virtual/index4.mjs.map +0 -1
- package/dist/lib/_virtual/index5.mjs +0 -2
- package/dist/lib/_virtual/index5.mjs.map +0 -1
- package/dist/lib/_virtual/index6.mjs +0 -2
- package/dist/lib/_virtual/index6.mjs.map +0 -1
- package/dist/lib/_virtual/index7.mjs +0 -2
- package/dist/lib/_virtual/index7.mjs.map +0 -1
- package/dist/lib/_virtual/index8.mjs +0 -2
- package/dist/lib/_virtual/index8.mjs.map +0 -1
- package/dist/lib/_virtual/index9.mjs +0 -2
- package/dist/lib/_virtual/index9.mjs.map +0 -1
- package/dist/lib/_virtual/model.mjs +0 -2
- package/dist/lib/_virtual/model.mjs.map +0 -1
- package/dist/lib/_virtual/plugin.mjs +0 -2
- package/dist/lib/_virtual/plugin.mjs.map +0 -1
- package/dist/lib/_virtual/plugin2.mjs +0 -2
- package/dist/lib/_virtual/plugin2.mjs.map +0 -1
- package/dist/lib/_virtual/plugin3.mjs +0 -2
- package/dist/lib/_virtual/plugin3.mjs.map +0 -1
- package/dist/lib/_virtual/plugin4.mjs +0 -2
- package/dist/lib/_virtual/plugin4.mjs.map +0 -1
- package/dist/lib/_virtual/plugin5.mjs +0 -2
- package/dist/lib/_virtual/plugin5.mjs.map +0 -1
- package/dist/lib/_virtual/theme.mjs +0 -2
- package/dist/lib/_virtual/theme.mjs.map +0 -1
- package/dist/lib/lib/color/alpha.mjs.map +0 -1
- package/dist/lib/lib/color/constants.mjs.map +0 -1
- package/dist/lib/lib/color/light.mjs.map +0 -1
- package/dist/lib/lib/components/AlertDialog/index.mjs.map +0 -1
- package/dist/lib/lib/components/BarChart/index.mjs.map +0 -1
- package/dist/lib/lib/components/Breadcrumb/BreadcrumbEllipsis.mjs.map +0 -1
- package/dist/lib/lib/components/Breadcrumb/BreadcrumbItem.mjs.map +0 -1
- package/dist/lib/lib/components/Breadcrumb/BreadcrumbLink.mjs.map +0 -1
- package/dist/lib/lib/components/Breadcrumb/BreadcrumbList.mjs.map +0 -1
- package/dist/lib/lib/components/Breadcrumb/BreadcrumbPage.mjs.map +0 -1
- package/dist/lib/lib/components/Breadcrumb/BreadcrumbSeparator.mjs.map +0 -1
- package/dist/lib/lib/components/Breadcrumb/index.mjs.map +0 -1
- package/dist/lib/lib/components/BubbleChart/index.mjs.map +0 -1
- package/dist/lib/lib/components/Callout/index.mjs.map +0 -1
- package/dist/lib/lib/components/CheckboxGroup/index.mjs.map +0 -1
- package/dist/lib/lib/components/ContextMenu/ContextMenuGroup.mjs.map +0 -1
- package/dist/lib/lib/components/ContextMenu/ContextMenuSeparator.mjs.map +0 -1
- package/dist/lib/lib/components/ContextMenu/ContextMenuTrigger.mjs.map +0 -1
- package/dist/lib/lib/components/ContextMenu/index.mjs.map +0 -1
- package/dist/lib/lib/components/DataList/index.mjs.map +0 -1
- package/dist/lib/lib/components/Dialog/DialogTrigger.mjs.map +0 -1
- package/dist/lib/lib/components/Dialog/index.mjs.map +0 -1
- package/dist/lib/lib/components/DoughnutChart/index.mjs.map +0 -1
- package/dist/lib/lib/components/DropdownMenu/DropdonMenuRadioGroup.mjs.map +0 -1
- package/dist/lib/lib/components/DropdownMenu/DropdownMenuSeparator.mjs.map +0 -1
- package/dist/lib/lib/components/DropdownMenu/DropdownMenuSub.mjs.map +0 -1
- package/dist/lib/lib/components/DropdownMenu/index.mjs.map +0 -1
- package/dist/lib/lib/components/Editor/index.mjs +0 -3
- package/dist/lib/lib/components/Gnb/GnbLogo.mjs.map +0 -1
- package/dist/lib/lib/components/Gnb/index.mjs.map +0 -1
- package/dist/lib/lib/components/Grid/Pagination.mjs.map +0 -1
- package/dist/lib/lib/components/HoverCard/HoverCardTrigger.mjs.map +0 -1
- package/dist/lib/lib/components/HoverCard/index.mjs.map +0 -1
- package/dist/lib/lib/components/LineChart/index.mjs.map +0 -1
- package/dist/lib/lib/components/Menubar/MenubarMenu.mjs.map +0 -1
- package/dist/lib/lib/components/Menubar/MenubarSeparator.mjs.map +0 -1
- package/dist/lib/lib/components/Menubar/MenubarSub.mjs.map +0 -1
- package/dist/lib/lib/components/Menubar/index.mjs.map +0 -1
- package/dist/lib/lib/components/NavigationMenu/NavigationMenuIndicator.mjs.map +0 -1
- package/dist/lib/lib/components/NavigationMenu/NavigationMenuItem.mjs.map +0 -1
- package/dist/lib/lib/components/NavigationMenu/index.mjs.map +0 -1
- package/dist/lib/lib/components/PieChart/index.mjs.map +0 -1
- package/dist/lib/lib/components/Popover/PopoverTrigger.mjs.map +0 -1
- package/dist/lib/lib/components/Popover/index.mjs.map +0 -1
- package/dist/lib/lib/components/RadarChart/index.mjs.map +0 -1
- package/dist/lib/lib/components/RadioCards/index.mjs.map +0 -1
- package/dist/lib/lib/components/RadioGroup/index.mjs.map +0 -1
- package/dist/lib/lib/components/SegmentedControl/SegmentedControlItem.mjs.map +0 -1
- package/dist/lib/lib/components/SegmentedControl/index.mjs.map +0 -1
- package/dist/lib/lib/components/Select/index.mjs +0 -3
- package/dist/lib/lib/components/Toast/index.mjs.map +0 -1
- package/dist/lib/lib/components/ToggleGroup/index.mjs.map +0 -1
- package/dist/lib/lib/constants.mjs.map +0 -1
- package/dist/lib/lib/index.mjs.map +0 -1
- package/dist/lib/lib/utils/utils.mjs.map +0 -1
- package/dist/lib/public/tinymce/icons/default/icons.mjs.map +0 -1
- package/dist/lib/public/tinymce/models/dom/index.mjs +0 -2
- package/dist/lib/public/tinymce/models/dom/index.mjs.map +0 -1
- package/dist/lib/public/tinymce/models/dom/model.mjs +0 -2
- package/dist/lib/public/tinymce/models/dom/model.mjs.map +0 -1
- package/dist/lib/public/tinymce/plugins/advlist/index.mjs +0 -2
- package/dist/lib/public/tinymce/plugins/advlist/index.mjs.map +0 -1
- package/dist/lib/public/tinymce/plugins/advlist/plugin.mjs +0 -2
- package/dist/lib/public/tinymce/plugins/advlist/plugin.mjs.map +0 -1
- package/dist/lib/public/tinymce/plugins/code/index.mjs +0 -2
- package/dist/lib/public/tinymce/plugins/code/index.mjs.map +0 -1
- package/dist/lib/public/tinymce/plugins/code/plugin.mjs +0 -2
- package/dist/lib/public/tinymce/plugins/code/plugin.mjs.map +0 -1
- package/dist/lib/public/tinymce/plugins/link/index.mjs +0 -2
- package/dist/lib/public/tinymce/plugins/link/index.mjs.map +0 -1
- package/dist/lib/public/tinymce/plugins/link/plugin.mjs +0 -2
- package/dist/lib/public/tinymce/plugins/link/plugin.mjs.map +0 -1
- package/dist/lib/public/tinymce/plugins/lists/index.mjs +0 -2
- package/dist/lib/public/tinymce/plugins/lists/index.mjs.map +0 -1
- package/dist/lib/public/tinymce/plugins/lists/plugin.mjs +0 -2
- package/dist/lib/public/tinymce/plugins/lists/plugin.mjs.map +0 -1
- package/dist/lib/public/tinymce/plugins/table/index.mjs +0 -2
- package/dist/lib/public/tinymce/plugins/table/index.mjs.map +0 -1
- package/dist/lib/public/tinymce/plugins/table/plugin.mjs +0 -2
- package/dist/lib/public/tinymce/plugins/table/plugin.mjs.map +0 -1
- package/dist/lib/public/tinymce/skins/content/default/content.mjs +0 -3
- package/dist/lib/public/tinymce/skins/content/default/content.mjs.map +0 -1
- package/dist/lib/public/tinymce/skins/ui/oxide/content.mjs +0 -3
- package/dist/lib/public/tinymce/skins/ui/oxide/content.mjs.map +0 -1
- package/dist/lib/public/tinymce/skins/ui/oxide/skin.mjs +0 -3
- package/dist/lib/public/tinymce/skins/ui/oxide/skin.mjs.map +0 -1
- package/dist/lib/public/tinymce/themes/silver/index.mjs +0 -2
- package/dist/lib/public/tinymce/themes/silver/index.mjs.map +0 -1
- package/dist/lib/public/tinymce/themes/silver/theme.mjs +0 -2
- package/dist/lib/public/tinymce/themes/silver/theme.mjs.map +0 -1
- package/dist/lib/tailwind.config.d.ts +0 -3
- package/dist/lib/tsconfig.tsbuildinfo +0 -1
- package/dist/public/tinymce/plugins/autolink/index.d.ts +0 -1
- package/dist/public/tinymce/plugins/autolink/plugin.d.ts +0 -0
- package/dist/public/tinymce/plugins/autolink/plugin.js +0 -221
- package/dist/public/tinymce/skins/ui/oxide/content.inline.d.ts +0 -0
- package/dist/public/tinymce/skins/ui/oxide/skin.shadowdom.d.ts +0 -0
- package/dist/public/tinymce/skins/ui/oxide-dark/content.d.ts +0 -0
- package/dist/public/tinymce/skins/ui/oxide-dark/content.inline.d.ts +0 -0
- package/dist/public/tinymce/skins/ui/oxide-dark/skin.d.ts +0 -0
- package/dist/public/tinymce/skins/ui/oxide-dark/skin.shadowdom.d.ts +0 -0
- package/dist/public/tinymce/tinymce.d.ts +0 -1
- package/dist/public/tinymce/tinymce.js +0 -31974
- /package/dist/lib/{lib/Typography → Typography}/Header/index.mjs +0 -0
- /package/dist/lib/{lib/Typography → Typography}/Header/index.mjs.map +0 -0
- /package/dist/lib/{lib/Typography → Typography}/Text/index.mjs +0 -0
- /package/dist/lib/{lib/Typography → Typography}/Text/index.mjs.map +0 -0
- /package/dist/lib/{lib/color → color}/alpha.mjs +0 -0
- /package/dist/lib/{lib/color → color}/constants.mjs +0 -0
- /package/dist/lib/{lib/color → color}/light.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Accordion/index.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Accordion/index.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/AlertDialog/AlertDialogAction.mjs +0 -0
- /package/dist/lib/{lib/components → components}/AlertDialog/AlertDialogAction.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/AlertDialog/AlertDialogCancel.mjs +0 -0
- /package/dist/lib/{lib/components → components}/AlertDialog/AlertDialogCancel.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/AlertDialog/AlertDialogContent.mjs +0 -0
- /package/dist/lib/{lib/components → components}/AlertDialog/AlertDialogContent.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/AlertDialog/AlertDialogDescription.mjs +0 -0
- /package/dist/lib/{lib/components → components}/AlertDialog/AlertDialogDescription.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/AlertDialog/AlertDialogRoot.mjs +0 -0
- /package/dist/lib/{lib/components → components}/AlertDialog/AlertDialogRoot.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/AlertDialog/AlertDialogTitle.mjs +0 -0
- /package/dist/lib/{lib/components → components}/AlertDialog/AlertDialogTitle.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/AlertDialog/AlertDialogTrigger.mjs +0 -0
- /package/dist/lib/{lib/components → components}/AlertDialog/AlertDialogTrigger.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/AlertDialog/index.mjs +0 -0
- /package/dist/lib/{lib/components → components}/AspectRatio/index.mjs +0 -0
- /package/dist/lib/{lib/components → components}/AspectRatio/index.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/Avatar/index.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Avatar/index.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/Badge/index.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Badge/index.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/BarChart/index.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Breadcrumb/BreadcrumbEllipsis.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Breadcrumb/BreadcrumbItem.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Breadcrumb/BreadcrumbLink.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Breadcrumb/BreadcrumbList.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Breadcrumb/BreadcrumbPage.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Breadcrumb/BreadcrumbRoot.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Breadcrumb/BreadcrumbRoot.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/Breadcrumb/BreadcrumbSeparator.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Breadcrumb/index.mjs +0 -0
- /package/dist/lib/{lib/components → components}/BubbleChart/index.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Button/index.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Button/index.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/Callout/CalloutIcon.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Callout/CalloutIcon.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/Callout/CalloutRoot.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Callout/CalloutRoot.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/Callout/CalloutText.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Callout/CalloutText.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/Callout/index.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Card/index.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Card/index.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/Checkbox/index.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Checkbox/index.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/CheckboxCard/index.mjs +0 -0
- /package/dist/lib/{lib/components → components}/CheckboxCard/index.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/CheckboxGroup/CheckboxGroupItem.mjs +0 -0
- /package/dist/lib/{lib/components → components}/CheckboxGroup/CheckboxGroupItem.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/CheckboxGroup/CheckboxGroupRoot.mjs +0 -0
- /package/dist/lib/{lib/components → components}/CheckboxGroup/CheckboxGroupRoot.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/CheckboxGroup/index.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Collapsible/index.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Collapsible/index.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/ContextMenu/ContextMenuCheckboxItem.mjs +0 -0
- /package/dist/lib/{lib/components → components}/ContextMenu/ContextMenuCheckboxItem.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/ContextMenu/ContextMenuContent.mjs +0 -0
- /package/dist/lib/{lib/components → components}/ContextMenu/ContextMenuContent.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/ContextMenu/ContextMenuGroup.mjs +0 -0
- /package/dist/lib/{lib/components → components}/ContextMenu/ContextMenuItem.mjs +0 -0
- /package/dist/lib/{lib/components → components}/ContextMenu/ContextMenuItem.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/ContextMenu/ContextMenuItemIndicator.mjs +0 -0
- /package/dist/lib/{lib/components → components}/ContextMenu/ContextMenuItemIndicator.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/ContextMenu/ContextMenuLabel.mjs +0 -0
- /package/dist/lib/{lib/components → components}/ContextMenu/ContextMenuLabel.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/ContextMenu/ContextMenuRadioGroup.mjs +0 -0
- /package/dist/lib/{lib/components → components}/ContextMenu/ContextMenuRadioGroup.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/ContextMenu/ContextMenuRadioItem.mjs +0 -0
- /package/dist/lib/{lib/components → components}/ContextMenu/ContextMenuRadioItem.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/ContextMenu/ContextMenuRoot.mjs +0 -0
- /package/dist/lib/{lib/components → components}/ContextMenu/ContextMenuRoot.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/ContextMenu/ContextMenuSeparator.mjs +0 -0
- /package/dist/lib/{lib/components → components}/ContextMenu/ContextMenuSubContent.mjs +0 -0
- /package/dist/lib/{lib/components → components}/ContextMenu/ContextMenuSubContent.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/ContextMenu/ContextMenuSubTrigger.mjs +0 -0
- /package/dist/lib/{lib/components → components}/ContextMenu/ContextMenuSubTrigger.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/ContextMenu/ContextMenuTrigger.mjs +0 -0
- /package/dist/lib/{lib/components → components}/ContextMenu/index.mjs +0 -0
- /package/dist/lib/{lib/components → components}/DataList/DataListItem.mjs +0 -0
- /package/dist/lib/{lib/components → components}/DataList/DataListItem.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/DataList/DataListLabel.mjs +0 -0
- /package/dist/lib/{lib/components → components}/DataList/DataListLabel.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/DataList/DataListRoot.mjs +0 -0
- /package/dist/lib/{lib/components → components}/DataList/DataListRoot.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/DataList/DataListValue.mjs +0 -0
- /package/dist/lib/{lib/components → components}/DataList/DataListValue.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/DataList/index.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Dialog/DialogAction.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Dialog/DialogAction.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/Dialog/DialogCancel.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Dialog/DialogCancel.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/Dialog/DialogContent.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Dialog/DialogContent.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/Dialog/DialogDescription.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Dialog/DialogDescription.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/Dialog/DialogRoot.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Dialog/DialogRoot.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/Dialog/DialogSlot.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Dialog/DialogSlot.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/Dialog/DialogTitle.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Dialog/DialogTitle.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/Dialog/DialogTrigger.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Dialog/index.mjs +0 -0
- /package/dist/lib/{lib/components → components}/DoughnutChart/index.mjs +0 -0
- /package/dist/lib/{lib/components → components}/DropdownMenu/DropdonMenuRadioGroup.mjs +0 -0
- /package/dist/lib/{lib/components → components}/DropdownMenu/DropdonMenuSubContent.mjs +0 -0
- /package/dist/lib/{lib/components → components}/DropdownMenu/DropdonMenuSubContent.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/DropdownMenu/DropdownMenuCheckboxItem.mjs +0 -0
- /package/dist/lib/{lib/components → components}/DropdownMenu/DropdownMenuCheckboxItem.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/DropdownMenu/DropdownMenuContent.mjs +0 -0
- /package/dist/lib/{lib/components → components}/DropdownMenu/DropdownMenuContent.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/DropdownMenu/DropdownMenuItem.mjs +0 -0
- /package/dist/lib/{lib/components → components}/DropdownMenu/DropdownMenuItem.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/DropdownMenu/DropdownMenuItemIndicator.mjs +0 -0
- /package/dist/lib/{lib/components → components}/DropdownMenu/DropdownMenuItemIndicator.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/DropdownMenu/DropdownMenuLable.mjs +0 -0
- /package/dist/lib/{lib/components → components}/DropdownMenu/DropdownMenuLable.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/DropdownMenu/DropdownMenuRadioItem.mjs +0 -0
- /package/dist/lib/{lib/components → components}/DropdownMenu/DropdownMenuRadioItem.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/DropdownMenu/DropdownMenuRoot.mjs +0 -0
- /package/dist/lib/{lib/components → components}/DropdownMenu/DropdownMenuRoot.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/DropdownMenu/DropdownMenuSeparator.mjs +0 -0
- /package/dist/lib/{lib/components → components}/DropdownMenu/DropdownMenuSub.mjs +0 -0
- /package/dist/lib/{lib/components → components}/DropdownMenu/DropdownMenuSubTrigger.mjs +0 -0
- /package/dist/lib/{lib/components → components}/DropdownMenu/DropdownMenuSubTrigger.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/DropdownMenu/DropdownMenuTrigger.mjs +0 -0
- /package/dist/lib/{lib/components → components}/DropdownMenu/DropdownMenuTrigger.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/DropdownMenu/index.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Editor/index.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/Footer/index.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Footer/index.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/Gnb/GnbInfo.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Gnb/GnbInfo.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/Gnb/GnbLogo.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Gnb/GnbMenu.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Gnb/GnbMenu.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/Gnb/GnbRoot.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Gnb/GnbRoot.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/Gnb/index.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Grid/Pagination.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Grid/index.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Grid/index.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/Grid/useGrid.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Grid/useGrid.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/HoverCard/HoverCardContent.mjs +0 -0
- /package/dist/lib/{lib/components → components}/HoverCard/HoverCardContent.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/HoverCard/HoverCardRoot.mjs +0 -0
- /package/dist/lib/{lib/components → components}/HoverCard/HoverCardRoot.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/HoverCard/HoverCardTrigger.mjs +0 -0
- /package/dist/lib/{lib/components → components}/HoverCard/index.mjs +0 -0
- /package/dist/lib/{lib/components → components}/IconButton/index.mjs +0 -0
- /package/dist/lib/{lib/components → components}/IconButton/index.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/Inset/index.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Inset/index.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/Label/index.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Label/index.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/LineChart/index.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Menubar/MenubarCheckboxItem.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Menubar/MenubarCheckboxItem.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/Menubar/MenubarContent.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Menubar/MenubarContent.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/Menubar/MenubarItem.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Menubar/MenubarItem.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/Menubar/MenubarItemIndicator.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Menubar/MenubarItemIndicator.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/Menubar/MenubarMenu.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Menubar/MenubarRadioGroup.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Menubar/MenubarRadioGroup.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/Menubar/MenubarRadioItem.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Menubar/MenubarRadioItem.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/Menubar/MenubarRoot.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Menubar/MenubarRoot.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/Menubar/MenubarSeparator.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Menubar/MenubarSub.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Menubar/MenubarSubContent.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Menubar/MenubarSubContent.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/Menubar/MenubarSubTrigger.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Menubar/MenubarSubTrigger.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/Menubar/MenubarTrigger.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Menubar/MenubarTrigger.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/Menubar/index.mjs +0 -0
- /package/dist/lib/{lib/components → components}/NavigationMenu/NavigationMenuContent.mjs +0 -0
- /package/dist/lib/{lib/components → components}/NavigationMenu/NavigationMenuContent.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/NavigationMenu/NavigationMenuIndicator.mjs +0 -0
- /package/dist/lib/{lib/components → components}/NavigationMenu/NavigationMenuItem.mjs +0 -0
- /package/dist/lib/{lib/components → components}/NavigationMenu/NavigationMenuLink.mjs +0 -0
- /package/dist/lib/{lib/components → components}/NavigationMenu/NavigationMenuLink.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/NavigationMenu/NavigationMenuList.mjs +0 -0
- /package/dist/lib/{lib/components → components}/NavigationMenu/NavigationMenuList.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/NavigationMenu/NavigationMenuRoot.mjs +0 -0
- /package/dist/lib/{lib/components → components}/NavigationMenu/NavigationMenuRoot.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/NavigationMenu/NavigationMenuTrigger.mjs +0 -0
- /package/dist/lib/{lib/components → components}/NavigationMenu/NavigationMenuTrigger.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/NavigationMenu/NavigationMenuViewport.mjs +0 -0
- /package/dist/lib/{lib/components → components}/NavigationMenu/NavigationMenuViewport.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/NavigationMenu/index.mjs +0 -0
- /package/dist/lib/{lib/components → components}/PieChart/index.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Popover/PopoverClose.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Popover/PopoverClose.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/Popover/PopoverContent.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Popover/PopoverContent.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/Popover/PopoverRoot.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Popover/PopoverRoot.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/Popover/PopoverTrigger.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Popover/index.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Progress/index.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Progress/index.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/RadarChart/index.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Radio/index.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Radio/index.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/RadioCards/RadioCardsItem.mjs +0 -0
- /package/dist/lib/{lib/components → components}/RadioCards/RadioCardsItem.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/RadioCards/RadioCardsRoot.mjs +0 -0
- /package/dist/lib/{lib/components → components}/RadioCards/RadioCardsRoot.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/RadioCards/index.mjs +0 -0
- /package/dist/lib/{lib/components → components}/RadioGroup/RadioGroupItem.mjs +0 -0
- /package/dist/lib/{lib/components → components}/RadioGroup/RadioGroupItem.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/RadioGroup/RadioGroupRoot.mjs +0 -0
- /package/dist/lib/{lib/components → components}/RadioGroup/RadioGroupRoot.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/RadioGroup/index.mjs +0 -0
- /package/dist/lib/{lib/components → components}/ScrollArea/index.mjs +0 -0
- /package/dist/lib/{lib/components → components}/ScrollArea/index.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/SegmentedControl/SegmentedControlItem.mjs +0 -0
- /package/dist/lib/{lib/components → components}/SegmentedControl/SegmentedControlRoot.mjs +0 -0
- /package/dist/lib/{lib/components → components}/SegmentedControl/SegmentedControlRoot.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/SegmentedControl/index.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Select/index.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/Separator/index.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Separator/index.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/Skeleton/index.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Skeleton/index.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/Slider/index.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Slider/index.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/Spinner/index.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Spinner/index.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/TabNav/index.mjs +0 -0
- /package/dist/lib/{lib/components → components}/TabNav/index.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/Table/index.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Table/index.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/Tabs/index.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Tabs/index.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/TextArea/index.mjs +0 -0
- /package/dist/lib/{lib/components → components}/TextArea/index.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/TextField/index.mjs +0 -0
- /package/dist/lib/{lib/components → components}/TextField/index.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/Toast/ToastActionButton.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Toast/ToastActionButton.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/Toast/ToastDescription.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Toast/ToastDescription.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/Toast/ToastRoot.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Toast/ToastRoot.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/Toast/ToastTitle.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Toast/ToastTitle.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/Toast/index.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Toggle/ToggleWithText.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Toggle/ToggleWithText.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/Toggle/index.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Toggle/index.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/ToggleGroup/ToggleGroupItem.mjs +0 -0
- /package/dist/lib/{lib/components → components}/ToggleGroup/ToggleGroupItem.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/ToggleGroup/ToggleGroupRoot.mjs +0 -0
- /package/dist/lib/{lib/components → components}/ToggleGroup/ToggleGroupRoot.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/ToggleGroup/index.mjs +0 -0
- /package/dist/lib/{lib/components → components}/ToggleSwitch/index.mjs +0 -0
- /package/dist/lib/{lib/components → components}/ToggleSwitch/index.mjs.map +0 -0
- /package/dist/lib/{lib/components → components}/Tooltip/index.mjs +0 -0
- /package/dist/lib/{lib/components → components}/Tooltip/index.mjs.map +0 -0
- /package/dist/lib/{lib/constants.mjs → constants.mjs} +0 -0
- /package/dist/lib/{lib/index.mjs → index.mjs} +0 -0
- /package/dist/lib/{_virtual/index.mjs.map → index.mjs.map} +0 -0
- /package/dist/lib/{lib/theme → theme}/ThemeProvider.mjs +0 -0
- /package/dist/lib/{lib/theme → theme}/ThemeProvider.mjs.map +0 -0
- /package/dist/lib/{lib/utils → utils}/useDarkMode.mjs +0 -0
- /package/dist/lib/{lib/utils → utils}/useDarkMode.mjs.map +0 -0
- /package/dist/lib/{lib/utils → utils}/utils.mjs +0 -0
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"plugin.mjs","sources":["../../../../../public/tinymce/plugins/table/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};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\n(function () {\n 'use strict';\n var global$3 = 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$1 = function (type) { return function (value) { return typeOf(value) === type; }; };\n var isSimpleType = function (type) { return function (value) { return typeof value === type; }; };\n var eq$1 = function (t) { return function (a) { return t === a; }; };\n var isString = isType$1('string');\n var isArray = isType$1('array');\n var isBoolean = isSimpleType('boolean');\n var isUndefined = eq$1(undefined);\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 isNumber = isSimpleType('number');\n var noop = function () {\n };\n var compose1 = function (fbc, fab) { return function (a) { return fbc(fab(a)); }; };\n var constant = function (value) {\n return function () {\n return value;\n };\n };\n var identity = function (x) {\n return x;\n };\n var tripleEquals = function (a, b) {\n return a === b;\n };\n function curry(fn) {\n var initialArgs = [];\n for (var _i = 1; _i < arguments.length; _i++) {\n initialArgs[_i - 1] = arguments[_i];\n }\n return function () {\n var restArgs = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n restArgs[_i] = arguments[_i];\n }\n var all = initialArgs.concat(restArgs);\n return fn.apply(null, all);\n };\n }\n var call = function (f) {\n f();\n };\n var never = constant(false);\n var always = constant(true);\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 keys = Object.keys;\n var hasOwnProperty = Object.hasOwnProperty;\n var each$1 = 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$1(obj, function (x, i) {\n (pred(x, i) ? onTrue : onFalse)(x, i);\n });\n };\n var filter$1 = function (obj, pred) {\n var t = {};\n internalFilter(obj, pred, objAcc(t), noop);\n return t;\n };\n var mapToArray = function (obj, f) {\n var r = [];\n each$1(obj, function (value, name) {\n r.push(f(value, name));\n });\n return r;\n };\n var values = function (obj) {\n return mapToArray(obj, identity);\n };\n var size = function (obj) {\n return keys(obj).length;\n };\n var get$4 = function (obj, key) {\n return has(obj, key) ? Optional.from(obj[key]) : Optional.none();\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 isEmpty$1 = function (r) {\n for (var x in r) {\n if (hasOwnProperty.call(r, x)) {\n return false;\n }\n }\n return true;\n };\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 exists = function (xs, pred) {\n for (var i = 0, len = xs.length; i < len; i++) {\n var x = xs[i];\n if (pred(x, i)) {\n return true;\n }\n }\n return false;\n };\n var range = function (num, f) {\n var r = [];\n for (var i = 0; i < num; i++) {\n r.push(f(i));\n }\n return r;\n };\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 = 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 eachr = function (xs, f) {\n for (var i = xs.length - 1; i >= 0; i--) {\n var x = xs[i];\n f(x, i);\n }\n };\n var partition = function (xs, pred) {\n var pass = [];\n var fail = [];\n for (var i = 0, len = xs.length; i < len; i++) {\n var x = xs[i];\n var arr = pred(x, i) ? pass : fail;\n arr.push(x);\n }\n return {\n pass: pass,\n fail: fail\n };\n };\n var filter = function (xs, pred) {\n var r = [];\n for (var i = 0, len = xs.length; i < len; i++) {\n var x = xs[i];\n if (pred(x, i)) {\n r.push(x);\n }\n }\n return r;\n };\n var foldr = function (xs, f, acc) {\n eachr(xs, function (x, i) {\n acc = f(acc, x, i);\n });\n return acc;\n };\n var foldl = function (xs, f, acc) {\n each(xs, function (x, i) {\n acc = f(acc, x, i);\n });\n return acc;\n };\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 find = function (xs, pred) {\n return findUntil(xs, pred, never);\n };\n var flatten$1 = 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$1(map(xs, f)); };\n var forall = function (xs, pred) {\n for (var i = 0, len = xs.length; i < len; ++i) {\n var x = xs[i];\n if (pred(x, i) !== true) {\n return false;\n }\n }\n return true;\n };\n var mapToObject = function (xs, f) {\n var r = {};\n for (var i = 0, len = xs.length; i < len; i++) {\n var x = xs[i];\n r[String(x)] = f(x, i);\n }\n return r;\n };\n var get$3 = function (xs, i) { return i >= 0 && i < xs.length ? Optional.some(xs[i]) : Optional.none(); };\n var head = function (xs) { return get$3(xs, 0); };\n var last = function (xs) { return get$3(xs, xs.length - 1); };\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 COMMENT = 8;\n var DOCUMENT = 9;\n var DOCUMENT_FRAGMENT = 11;\n var ELEMENT = 1;\n var TEXT = 3;\n var fromHtml = function (html, scope) {\n var doc = scope || document;\n var div = doc.createElement('div');\n div.innerHTML = html;\n if (!div.hasChildNodes() || div.childNodes.length > 1) {\n var message = 'HTML does not have a single root node';\n console.error(message, html);\n throw new Error(message);\n }\n return fromDom$1(div.childNodes[0]);\n };\n var fromTag = function (tag, scope) {\n var doc = scope || document;\n var node = doc.createElement(tag);\n return fromDom$1(node);\n };\n var fromText = function (text, scope) {\n var doc = scope || document;\n var node = doc.createTextNode(text);\n return fromDom$1(node);\n };\n var fromDom$1 = function (node) {\n if (node === null || node === undefined) {\n throw new Error('Node cannot be null or undefined');\n }\n return { dom: node };\n };\n var fromPoint = function (docElm, x, y) { return Optional.from(docElm.dom.elementFromPoint(x, y)).map(fromDom$1); };\n var SugarElement = {\n fromHtml: fromHtml,\n fromTag: fromTag,\n fromText: fromText,\n fromDom: fromDom$1,\n fromPoint: fromPoint\n };\n var is$2 = function (element, selector) {\n var dom = element.dom;\n if (dom.nodeType !== ELEMENT) {\n return false;\n }\n else {\n var elem = dom;\n if (elem.matches !== undefined) {\n return elem.matches(selector);\n }\n else if (elem.msMatchesSelector !== undefined) {\n return elem.msMatchesSelector(selector);\n }\n else if (elem.webkitMatchesSelector !== undefined) {\n return elem.webkitMatchesSelector(selector);\n }\n else if (elem.mozMatchesSelector !== undefined) {\n return elem.mozMatchesSelector(selector);\n }\n else {\n throw new Error('Browser lacks native selectors');\n }\n }\n };\n var bypassSelector = function (dom) { return dom.nodeType !== ELEMENT && dom.nodeType !== DOCUMENT && dom.nodeType !== DOCUMENT_FRAGMENT || dom.childElementCount === 0; };\n var all$1 = function (selector, scope) {\n var base = scope === undefined ? document : scope.dom;\n return bypassSelector(base) ? [] : map(base.querySelectorAll(selector), SugarElement.fromDom);\n };\n var one = function (selector, scope) {\n var base = scope === undefined ? document : scope.dom;\n return bypassSelector(base) ? Optional.none() : Optional.from(base.querySelector(selector)).map(SugarElement.fromDom);\n };\n var eq = function (e1, e2) { return e1.dom === e2.dom; };\n var is$1 = is$2;\n typeof window !== 'undefined' ? window : Function('return this;')();\n var name = function (element) {\n var r = element.dom.nodeName;\n return r.toLowerCase();\n };\n var type = function (element) { return element.dom.nodeType; };\n var isType = function (t) { return function (element) { return type(element) === t; }; };\n var isComment = function (element) { return type(element) === COMMENT || name(element) === '#comment'; };\n var isElement = isType(ELEMENT);\n var isText = isType(TEXT);\n var isDocument = isType(DOCUMENT);\n var isDocumentFragment = isType(DOCUMENT_FRAGMENT);\n var isTag = function (tag) { return function (e) { return isElement(e) && name(e) === tag; }; };\n var owner = function (element) { return SugarElement.fromDom(element.dom.ownerDocument); };\n var documentOrOwner = function (dos) { return isDocument(dos) ? dos : owner(dos); };\n var parent = function (element) { return Optional.from(element.dom.parentNode).map(SugarElement.fromDom); };\n var parents = function (element, isRoot) {\n var stop = isFunction(isRoot) ? isRoot : never;\n var dom = element.dom;\n var ret = [];\n while (dom.parentNode !== null && dom.parentNode !== undefined) {\n var rawParent = dom.parentNode;\n var p = SugarElement.fromDom(rawParent);\n ret.push(p);\n if (stop(p) === true) {\n break;\n }\n else {\n dom = rawParent;\n }\n }\n return ret;\n };\n var prevSibling = function (element) { return Optional.from(element.dom.previousSibling).map(SugarElement.fromDom); };\n var nextSibling = function (element) { return Optional.from(element.dom.nextSibling).map(SugarElement.fromDom); };\n var children$3 = function (element) { return map(element.dom.childNodes, SugarElement.fromDom); };\n var child$3 = function (element, index) {\n var cs = element.dom.childNodes;\n return Optional.from(cs[index]).map(SugarElement.fromDom);\n };\n var firstChild = function (element) { return child$3(element, 0); };\n var isShadowRoot = function (dos) { return isDocumentFragment(dos) && isNonNullable(dos.dom.host); };\n var supported = isFunction(Element.prototype.attachShadow) && isFunction(Node.prototype.getRootNode);\n var getRootNode = supported ? function (e) { return SugarElement.fromDom(e.dom.getRootNode()); } : documentOrOwner;\n var getShadowRoot = function (e) {\n var r = getRootNode(e);\n return isShadowRoot(r) ? Optional.some(r) : Optional.none();\n };\n var getShadowHost = function (e) { return SugarElement.fromDom(e.dom.host); };\n var inBody = function (element) {\n var dom = isText(element) ? element.dom.parentNode : element.dom;\n if (dom === undefined || dom === null || dom.ownerDocument === null) {\n return false;\n }\n var doc = dom.ownerDocument;\n return getShadowRoot(SugarElement.fromDom(dom)).fold(function () { return doc.body.contains(dom); }, compose1(inBody, getShadowHost));\n };\n var ClosestOrAncestor = function (is, ancestor, scope, a, isRoot) {\n if (is(scope, a)) {\n return Optional.some(scope);\n }\n else if (isFunction(isRoot) && isRoot(scope)) {\n return Optional.none();\n }\n else {\n return ancestor(scope, a, isRoot);\n }\n };\n var ancestor$1 = function (scope, predicate, isRoot) {\n var element = scope.dom;\n var stop = isFunction(isRoot) ? isRoot : never;\n while (element.parentNode) {\n element = element.parentNode;\n var el = SugarElement.fromDom(element);\n if (predicate(el)) {\n return Optional.some(el);\n }\n else if (stop(el)) {\n break;\n }\n }\n return Optional.none();\n };\n var closest$2 = function (scope, predicate, isRoot) {\n var is = function (s, test) { return test(s); };\n return ClosestOrAncestor(is, ancestor$1, scope, predicate, isRoot);\n };\n var child$2 = function (scope, predicate) {\n var pred = function (node) { return predicate(SugarElement.fromDom(node)); };\n var result = find(scope.dom.childNodes, pred);\n return result.map(SugarElement.fromDom);\n };\n var ancestor = function (scope, selector, isRoot) { return ancestor$1(scope, function (e) { return is$2(e, selector); }, isRoot); };\n var child$1 = function (scope, selector) { return child$2(scope, function (e) { return is$2(e, selector); }); };\n var descendant = function (scope, selector) { return one(selector, scope); };\n var closest$1 = function (scope, selector, isRoot) {\n var is = function (element, selector) { return is$2(element, selector); };\n return ClosestOrAncestor(is, ancestor, scope, selector, isRoot);\n };\n var closest = function (target) { return closest$1(target, '[contenteditable]'); };\n var isEditable = function (element, assumeEditable) {\n if (assumeEditable === void 0) { assumeEditable = false; }\n if (inBody(element)) {\n return element.dom.isContentEditable;\n }\n else {\n return closest(element).fold(constant(assumeEditable), function (editable) { return getRaw$1(editable) === 'true'; });\n }\n };\n var getRaw$1 = function (element) { return element.dom.contentEditable; };\n var getNodeName = function (elm) { return elm.nodeName.toLowerCase(); };\n var getBody = function (editor) { return SugarElement.fromDom(editor.getBody()); };\n var getIsRoot = function (editor) { return function (element) { return eq(element, getBody(editor)); }; };\n var removePxSuffix = function (size) { return size ? size.replace(/px$/, '') : ''; };\n var addPxSuffix = function (size) { return /^\\d+(\\.\\d+)?$/.test(size) ? size + 'px' : size; };\n var getSelectionStart = function (editor) { return SugarElement.fromDom(editor.selection.getStart()); };\n var getSelectionEnd = function (editor) { return SugarElement.fromDom(editor.selection.getEnd()); };\n var isInEditableContext = function (cell) { return closest$2(cell, isTag('table')).forall(isEditable); };\n var children$2 = function (scope, predicate) { return filter(children$3(scope), predicate); };\n var descendants$1 = function (scope, predicate) {\n var result = [];\n each(children$3(scope), function (x) {\n if (predicate(x)) {\n result = result.concat([x]);\n }\n result = result.concat(descendants$1(x, predicate));\n });\n return result;\n };\n var children$1 = function (scope, selector) { return children$2(scope, function (e) { return is$2(e, selector); }); };\n var descendants = function (scope, selector) { return all$1(selector, scope); };\n var rawSet = function (dom, key, value) {\n if (isString(value) || isBoolean(value) || isNumber(value)) {\n dom.setAttribute(key, value + '');\n }\n else {\n console.error('Invalid call to Attribute.set. Key ', key, ':: Value ', value, ':: Element ', dom);\n throw new Error('Attribute value was not simple');\n }\n };\n var set$2 = function (element, key, value) {\n rawSet(element.dom, key, value);\n };\n var setAll = function (element, attrs) {\n var dom = element.dom;\n each$1(attrs, function (v, k) {\n rawSet(dom, k, v);\n });\n };\n var get$2 = function (element, key) {\n var v = element.dom.getAttribute(key);\n return v === null ? undefined : v;\n };\n var getOpt = function (element, key) { return Optional.from(get$2(element, key)); };\n var remove$2 = function (element, key) {\n element.dom.removeAttribute(key);\n };\n var clone = function (element) { return foldl(element.dom.attributes, function (acc, attr) {\n acc[attr.name] = attr.value;\n return acc;\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 lift2 = function (oa, ob, f) { return oa.isSome() && ob.isSome() ? Optional.some(f(oa.getOrDie(), ob.getOrDie())) : Optional.none(); };\n var flatten = function (oot) { return oot.bind(identity); };\n var someIf = function (b, a) { return b ? Optional.some(a) : Optional.none(); };\n var removeFromStart = function (str, numChars) {\n return str.substring(numChars);\n };\n var checkRange = function (str, substr, start) { return substr === '' || str.length >= substr.length && str.substr(start, start + substr.length) === substr; };\n var removeLeading = function (str, prefix) {\n return startsWith(str, prefix) ? removeFromStart(str, prefix.length) : str;\n };\n var startsWith = function (str, prefix) {\n return checkRange(str, prefix, 0);\n };\n var blank = function (r) { return function (s) { return s.replace(r, ''); }; };\n var trim = blank(/^\\s+|\\s+$/g);\n var isNotEmpty = function (s) { return s.length > 0; };\n var isEmpty = function (s) { return !isNotEmpty(s); };\n var toInt = function (value, radix) {\n if (radix === void 0) { radix = 10; }\n var num = parseInt(value, radix);\n return isNaN(num) ? Optional.none() : Optional.some(num);\n };\n var toFloat = function (value) {\n var num = parseFloat(value);\n return isNaN(num) ? Optional.none() : Optional.some(num);\n };\n var isSupported = function (dom) { return dom.style !== undefined && isFunction(dom.style.getPropertyValue); };\n var internalSet = function (dom, property, value) {\n if (!isString(value)) {\n console.error('Invalid call to CSS.set. Property ', property, ':: Value ', value, ':: Element ', dom);\n throw new Error('CSS value must be a string: ' + value);\n }\n if (isSupported(dom)) {\n dom.style.setProperty(property, value);\n }\n };\n var internalRemove = function (dom, property) {\n if (isSupported(dom)) {\n dom.style.removeProperty(property);\n }\n };\n var set$1 = function (element, property, value) {\n var dom = element.dom;\n internalSet(dom, property, value);\n };\n var get$1 = function (element, property) {\n var dom = element.dom;\n var styles = window.getComputedStyle(dom);\n var r = styles.getPropertyValue(property);\n return r === '' && !inBody(element) ? getUnsafeProperty(dom, property) : r;\n };\n var getUnsafeProperty = function (dom, property) { return isSupported(dom) ? dom.style.getPropertyValue(property) : ''; };\n var getRaw = function (element, property) {\n var dom = element.dom;\n var raw = getUnsafeProperty(dom, property);\n return Optional.from(raw).filter(function (r) { return r.length > 0; });\n };\n var remove$1 = function (element, property) {\n var dom = element.dom;\n internalRemove(dom, property);\n if (is(getOpt(element, 'style').map(trim), '')) {\n remove$2(element, 'style');\n }\n };\n var getAttrValue = function (cell, name, fallback) {\n if (fallback === void 0) { fallback = 0; }\n return getOpt(cell, name).map(function (value) { return parseInt(value, 10); }).getOr(fallback);\n };\n var firstLayer = function (scope, selector) {\n return filterFirstLayer(scope, selector, always);\n };\n var filterFirstLayer = function (scope, selector, predicate) {\n return bind(children$3(scope), function (x) {\n if (is$2(x, selector)) {\n return predicate(x) ? [x] : [];\n }\n else {\n return filterFirstLayer(x, selector, predicate);\n }\n });\n };\n var validSectionList = [\n 'tfoot',\n 'thead',\n 'tbody',\n 'colgroup'\n ];\n var isValidSection = function (parentName) { return contains(validSectionList, parentName); };\n var grid = function (rows, columns) { return ({\n rows: rows,\n columns: columns\n }); };\n var detail = function (element, rowspan, colspan) { return ({\n element: element,\n rowspan: rowspan,\n colspan: colspan\n }); };\n var extended = function (element, rowspan, colspan, row, column, isLocked) { return ({\n element: element,\n rowspan: rowspan,\n colspan: colspan,\n row: row,\n column: column,\n isLocked: isLocked\n }); };\n var rowdetail = function (element, cells, section) { return ({\n element: element,\n cells: cells,\n section: section\n }); };\n var bounds = function (startRow, startCol, finishRow, finishCol) { return ({\n startRow: startRow,\n startCol: startCol,\n finishRow: finishRow,\n finishCol: finishCol\n }); };\n var columnext = function (element, colspan, column) { return ({\n element: element,\n colspan: colspan,\n column: column\n }); };\n var colgroup = function (element, columns) { return ({\n element: element,\n columns: columns\n }); };\n var lookup = function (tags, element, isRoot) {\n if (isRoot === void 0) { isRoot = never; }\n if (isRoot(element)) {\n return Optional.none();\n }\n if (contains(tags, name(element))) {\n return Optional.some(element);\n }\n var isRootOrUpperTable = function (elm) { return is$2(elm, 'table') || isRoot(elm); };\n return ancestor(element, tags.join(','), isRootOrUpperTable);\n };\n var cell = function (element, isRoot) { return lookup([\n 'td',\n 'th'\n ], element, isRoot); };\n var cells = function (ancestor) { return firstLayer(ancestor, 'th,td'); };\n var columns = function (ancestor) {\n if (is$2(ancestor, 'colgroup')) {\n return children$1(ancestor, 'col');\n }\n else {\n return bind(columnGroups(ancestor), function (columnGroup) { return children$1(columnGroup, 'col'); });\n }\n };\n var table = function (element, isRoot) { return closest$1(element, 'table', isRoot); };\n var rows = function (ancestor) { return firstLayer(ancestor, 'tr'); };\n var columnGroups = function (ancestor) { return table(ancestor).fold(constant([]), function (table) { return children$1(table, 'colgroup'); }); };\n var fromRowsOrColGroups = function (elems, getSection) { return map(elems, function (row) {\n if (name(row) === 'colgroup') {\n var cells_1 = map(columns(row), function (column) {\n var colspan = getAttrValue(column, 'span', 1);\n return detail(column, 1, colspan);\n });\n return rowdetail(row, cells_1, 'colgroup');\n }\n else {\n var cells$1 = map(cells(row), function (cell) {\n var rowspan = getAttrValue(cell, 'rowspan', 1);\n var colspan = getAttrValue(cell, 'colspan', 1);\n return detail(cell, rowspan, colspan);\n });\n return rowdetail(row, cells$1, getSection(row));\n }\n }); };\n var getParentSection = function (group) { return parent(group).map(function (parent) {\n var parentName = name(parent);\n return isValidSection(parentName) ? parentName : 'tbody';\n }).getOr('tbody'); };\n var fromTable$1 = function (table) {\n var rows$1 = rows(table);\n var columnGroups$1 = columnGroups(table);\n var elems = __spreadArray(__spreadArray([], columnGroups$1, true), rows$1, true);\n return fromRowsOrColGroups(elems, getParentSection);\n };\n var LOCKED_COL_ATTR = 'data-snooker-locked-cols';\n var getLockedColumnsFromTable = function (table) { return getOpt(table, LOCKED_COL_ATTR).bind(function (lockedColStr) { return Optional.from(lockedColStr.match(/\\d+/g)); }).map(function (lockedCols) { return mapToObject(lockedCols, always); }); };\n var key = function (row, column) {\n return row + ',' + column;\n };\n var getAt = function (warehouse, row, column) { return Optional.from(warehouse.access[key(row, column)]); };\n var findItem = function (warehouse, item, comparator) {\n var filtered = filterItems(warehouse, function (detail) {\n return comparator(item, detail.element);\n });\n return filtered.length > 0 ? Optional.some(filtered[0]) : Optional.none();\n };\n var filterItems = function (warehouse, predicate) {\n var all = bind(warehouse.all, function (r) {\n return r.cells;\n });\n return filter(all, predicate);\n };\n var generateColumns = function (rowData) {\n var columnsGroup = {};\n var index = 0;\n each(rowData.cells, function (column) {\n var colspan = column.colspan;\n range(colspan, function (columnIndex) {\n var colIndex = index + columnIndex;\n columnsGroup[colIndex] = columnext(column.element, colspan, colIndex);\n });\n index += colspan;\n });\n return columnsGroup;\n };\n var generate$1 = function (list) {\n var access = {};\n var cells = [];\n var tableOpt = head(list).map(function (rowData) { return rowData.element; }).bind(table);\n var lockedColumns = tableOpt.bind(getLockedColumnsFromTable).getOr({});\n var maxRows = 0;\n var maxColumns = 0;\n var rowCount = 0;\n var _b = partition(list, function (rowData) { return rowData.section === 'colgroup'; }), colgroupRows = _b.pass, rows = _b.fail;\n each(rows, function (rowData) {\n var currentRow = [];\n each(rowData.cells, function (rowCell) {\n var start = 0;\n while (access[key(rowCount, start)] !== undefined) {\n start++;\n }\n var isLocked = hasNonNullableKey(lockedColumns, start.toString());\n var current = extended(rowCell.element, rowCell.rowspan, rowCell.colspan, rowCount, start, isLocked);\n for (var occupiedColumnPosition = 0; occupiedColumnPosition < rowCell.colspan; occupiedColumnPosition++) {\n for (var occupiedRowPosition = 0; occupiedRowPosition < rowCell.rowspan; occupiedRowPosition++) {\n var rowPosition = rowCount + occupiedRowPosition;\n var columnPosition = start + occupiedColumnPosition;\n var newpos = key(rowPosition, columnPosition);\n access[newpos] = current;\n maxColumns = Math.max(maxColumns, columnPosition + 1);\n }\n }\n currentRow.push(current);\n });\n maxRows++;\n cells.push(rowdetail(rowData.element, currentRow, rowData.section));\n rowCount++;\n });\n var _c = last(colgroupRows).map(function (rowData) {\n var columns = generateColumns(rowData);\n var colgroup$1 = colgroup(rowData.element, values(columns));\n return {\n colgroups: [colgroup$1],\n columns: columns\n };\n }).getOrThunk(function () { return ({\n colgroups: [],\n columns: {}\n }); }), columns = _c.columns, colgroups = _c.colgroups;\n var grid$1 = grid(maxRows, maxColumns);\n return {\n grid: grid$1,\n access: access,\n all: cells,\n columns: columns,\n colgroups: colgroups\n };\n };\n var fromTable = function (table) {\n var list = fromTable$1(table);\n return generate$1(list);\n };\n var justCells = function (warehouse) { return bind(warehouse.all, function (w) { return w.cells; }); };\n var justColumns = function (warehouse) { return values(warehouse.columns); };\n var hasColumns = function (warehouse) { return keys(warehouse.columns).length > 0; };\n var getColumnAt = function (warehouse, columnIndex) { return Optional.from(warehouse.columns[columnIndex]); };\n var Warehouse = {\n fromTable: fromTable,\n generate: generate$1,\n getAt: getAt,\n findItem: findItem,\n filterItems: filterItems,\n justCells: justCells,\n justColumns: justColumns,\n hasColumns: hasColumns,\n getColumnAt: getColumnAt\n };\n var global$2 = tinymce.util.Tools.resolve('tinymce.util.Tools');\n var getTDTHOverallStyle = function (dom, elm, name) {\n var cells = dom.select('td,th', elm);\n var firstChildStyle;\n for (var i = 0; i < cells.length; i++) {\n var currentStyle = dom.getStyle(cells[i], name);\n if (isUndefined(firstChildStyle)) {\n firstChildStyle = currentStyle;\n }\n if (firstChildStyle !== currentStyle) {\n return '';\n }\n }\n return firstChildStyle;\n };\n var setAlign = function (editor, elm, name) {\n global$2.each('left center right'.split(' '), function (align) {\n if (align !== name) {\n editor.formatter.remove('align' + align, {}, elm);\n }\n });\n if (name) {\n editor.formatter.apply('align' + name, {}, elm);\n }\n };\n var setVAlign = function (editor, elm, name) {\n global$2.each('top middle bottom'.split(' '), function (align) {\n if (align !== name) {\n editor.formatter.remove('valign' + align, {}, elm);\n }\n });\n if (name) {\n editor.formatter.apply('valign' + name, {}, elm);\n }\n };\n var fireTableModified = function (editor, table, data) {\n editor.dispatch('TableModified', __assign(__assign({}, data), { table: table }));\n };\n var toNumber = function (px, fallback) { return toFloat(px).getOr(fallback); };\n var getProp = function (element, name, fallback) { return toNumber(get$1(element, name), fallback); };\n var calcContentBoxSize = function (element, size, upper, lower) {\n var paddingUpper = getProp(element, \"padding-\".concat(upper), 0);\n var paddingLower = getProp(element, \"padding-\".concat(lower), 0);\n var borderUpper = getProp(element, \"border-\".concat(upper, \"-width\"), 0);\n var borderLower = getProp(element, \"border-\".concat(lower, \"-width\"), 0);\n return size - paddingUpper - paddingLower - borderUpper - borderLower;\n };\n var getCalculatedWidth = function (element, boxSizing) {\n var dom = element.dom;\n var width = dom.getBoundingClientRect().width || dom.offsetWidth;\n return boxSizing === 'border-box' ? width : calcContentBoxSize(element, width, 'left', 'right');\n };\n var getInnerWidth = function (element) { return getCalculatedWidth(element, 'content-box'); };\n var getInner = getInnerWidth;\n var global$1 = tinymce.util.Tools.resolve('tinymce.Env');\n var defaultTableToolbar = 'tableprops tabledelete | tableinsertrowbefore tableinsertrowafter tabledeleterow | tableinsertcolbefore tableinsertcolafter tabledeletecol';\n var defaultCellBorderWidths = range(5, function (i) {\n var size = \"\".concat(i + 1, \"px\");\n return {\n title: size,\n value: size\n };\n });\n var defaultCellBorderStyles = map([\n 'Solid',\n 'Dotted',\n 'Dashed',\n 'Double',\n 'Groove',\n 'Ridge',\n 'Inset',\n 'Outset',\n 'None',\n 'Hidden'\n ], function (type) {\n return {\n title: type,\n value: type.toLowerCase()\n };\n });\n var defaultWidth = '100%';\n var getPixelForcedWidth = function (editor) {\n var _a;\n var dom = editor.dom;\n var parentBlock = (_a = dom.getParent(editor.selection.getStart(), dom.isBlock)) !== null && _a !== void 0 ? _a : editor.getBody();\n return getInner(SugarElement.fromDom(parentBlock)) + 'px';\n };\n var determineDefaultStyles = function (editor, defaultStyles) {\n if (isResponsiveForced(editor) || !shouldStyleWithCss(editor)) {\n return defaultStyles;\n }\n else if (isPixelsForced(editor)) {\n return __assign(__assign({}, defaultStyles), { width: getPixelForcedWidth(editor) });\n }\n else {\n return __assign(__assign({}, defaultStyles), { width: defaultWidth });\n }\n };\n var determineDefaultAttributes = function (editor, defaultAttributes) {\n if (isResponsiveForced(editor) || shouldStyleWithCss(editor)) {\n return defaultAttributes;\n }\n else if (isPixelsForced(editor)) {\n return __assign(__assign({}, defaultAttributes), { width: getPixelForcedWidth(editor) });\n }\n else {\n return __assign(__assign({}, defaultAttributes), { width: defaultWidth });\n }\n };\n var option = function (name) { return function (editor) { return editor.options.get(name); }; };\n var register = function (editor) {\n var registerOption = editor.options.register;\n registerOption('table_border_widths', {\n processor: 'object[]',\n default: defaultCellBorderWidths\n });\n registerOption('table_border_styles', {\n processor: 'object[]',\n default: defaultCellBorderStyles\n });\n registerOption('table_cell_advtab', {\n processor: 'boolean',\n default: true\n });\n registerOption('table_row_advtab', {\n processor: 'boolean',\n default: true\n });\n registerOption('table_advtab', {\n processor: 'boolean',\n default: true\n });\n registerOption('table_appearance_options', {\n processor: 'boolean',\n default: true\n });\n registerOption('table_grid', {\n processor: 'boolean',\n default: !global$1.deviceType.isTouch()\n });\n registerOption('table_cell_class_list', {\n processor: 'object[]',\n default: []\n });\n registerOption('table_row_class_list', {\n processor: 'object[]',\n default: []\n });\n registerOption('table_class_list', {\n processor: 'object[]',\n default: []\n });\n registerOption('table_toolbar', {\n processor: 'string',\n default: defaultTableToolbar\n });\n registerOption('table_background_color_map', {\n processor: 'object[]',\n default: []\n });\n registerOption('table_border_color_map', {\n processor: 'object[]',\n default: []\n });\n };\n var getTableSizingMode = option('table_sizing_mode');\n var getTableBorderWidths = option('table_border_widths');\n var getTableBorderStyles = option('table_border_styles');\n var hasAdvancedCellTab = option('table_cell_advtab');\n var hasAdvancedRowTab = option('table_row_advtab');\n var hasAdvancedTableTab = option('table_advtab');\n var hasAppearanceOptions = option('table_appearance_options');\n var hasTableGrid = option('table_grid');\n var shouldStyleWithCss = option('table_style_by_css');\n var getCellClassList = option('table_cell_class_list');\n var getRowClassList = option('table_row_class_list');\n var getTableClassList = option('table_class_list');\n var getToolbar = option('table_toolbar');\n var getTableBackgroundColorMap = option('table_background_color_map');\n var getTableBorderColorMap = option('table_border_color_map');\n var isPixelsForced = function (editor) { return getTableSizingMode(editor) === 'fixed'; };\n var isResponsiveForced = function (editor) { return getTableSizingMode(editor) === 'responsive'; };\n var getDefaultStyles = function (editor) {\n var options = editor.options;\n var defaultStyles = options.get('table_default_styles');\n return options.isSet('table_default_styles') ? defaultStyles : determineDefaultStyles(editor, defaultStyles);\n };\n var getDefaultAttributes = function (editor) {\n var options = editor.options;\n var defaultAttributes = options.get('table_default_attributes');\n return options.isSet('table_default_attributes') ? defaultAttributes : determineDefaultAttributes(editor, defaultAttributes);\n };\n var isWithin = function (bounds, detail) {\n return detail.column >= bounds.startCol && detail.column + detail.colspan - 1 <= bounds.finishCol && detail.row >= bounds.startRow && detail.row + detail.rowspan - 1 <= bounds.finishRow;\n };\n var isRectangular = function (warehouse, bounds) {\n var isRect = true;\n var detailIsWithin = curry(isWithin, bounds);\n for (var i = bounds.startRow; i <= bounds.finishRow; i++) {\n for (var j = bounds.startCol; j <= bounds.finishCol; j++) {\n isRect = isRect && Warehouse.getAt(warehouse, i, j).exists(detailIsWithin);\n }\n }\n return isRect ? Optional.some(bounds) : Optional.none();\n };\n var getBounds = function (detailA, detailB) {\n return bounds(Math.min(detailA.row, detailB.row), Math.min(detailA.column, detailB.column), Math.max(detailA.row + detailA.rowspan - 1, detailB.row + detailB.rowspan - 1), Math.max(detailA.column + detailA.colspan - 1, detailB.column + detailB.colspan - 1));\n };\n var getAnyBox = function (warehouse, startCell, finishCell) {\n var startCoords = Warehouse.findItem(warehouse, startCell, eq);\n var finishCoords = Warehouse.findItem(warehouse, finishCell, eq);\n return startCoords.bind(function (sc) {\n return finishCoords.map(function (fc) {\n return getBounds(sc, fc);\n });\n });\n };\n var getBox$1 = function (warehouse, startCell, finishCell) {\n return getAnyBox(warehouse, startCell, finishCell).bind(function (bounds) {\n return isRectangular(warehouse, bounds);\n });\n };\n var getBox = function (table, first, last) {\n var warehouse = getWarehouse(table);\n return getBox$1(warehouse, first, last);\n };\n var getWarehouse = Warehouse.fromTable;\n var before = function (marker, element) {\n var parent$1 = parent(marker);\n parent$1.each(function (v) {\n v.dom.insertBefore(element.dom, marker.dom);\n });\n };\n var after$1 = function (marker, element) {\n var sibling = nextSibling(marker);\n sibling.fold(function () {\n var parent$1 = parent(marker);\n parent$1.each(function (v) {\n append$1(v, element);\n });\n }, function (v) {\n before(v, element);\n });\n };\n var prepend = function (parent, element) {\n var firstChild$1 = firstChild(parent);\n firstChild$1.fold(function () {\n append$1(parent, element);\n }, function (v) {\n parent.dom.insertBefore(element.dom, v.dom);\n });\n };\n var append$1 = function (parent, element) {\n parent.dom.appendChild(element.dom);\n };\n var wrap = function (element, wrapper) {\n before(element, wrapper);\n append$1(wrapper, element);\n };\n var after = function (marker, elements) {\n each(elements, function (x, i) {\n var e = i === 0 ? marker : elements[i - 1];\n after$1(e, x);\n });\n };\n var append = function (parent, elements) {\n each(elements, function (x) {\n append$1(parent, x);\n });\n };\n var remove = function (element) {\n var dom = element.dom;\n if (dom.parentNode !== null) {\n dom.parentNode.removeChild(dom);\n }\n };\n var unwrap = function (wrapper) {\n var children = children$3(wrapper);\n if (children.length > 0) {\n after(wrapper, children);\n }\n remove(wrapper);\n };\n var NodeValue = function (is, name) {\n var get = function (element) {\n if (!is(element)) {\n throw new Error('Can only get ' + name + ' value of a ' + name + ' node');\n }\n return getOption(element).getOr('');\n };\n var getOption = function (element) { return is(element) ? Optional.from(element.dom.nodeValue) : Optional.none(); };\n var set = function (element, value) {\n if (!is(element)) {\n throw new Error('Can only set raw ' + name + ' value of a ' + name + ' node');\n }\n element.dom.nodeValue = value;\n };\n return {\n get: get,\n getOption: getOption,\n set: set\n };\n };\n var api = NodeValue(isText, 'text');\n var get = function (element) { return api.get(element); };\n var set = function (element, value) { return api.set(element, value); };\n var TagBoundaries = [\n 'body',\n 'p',\n 'div',\n 'article',\n 'aside',\n 'figcaption',\n 'figure',\n 'footer',\n 'header',\n 'nav',\n 'section',\n 'ol',\n 'ul',\n 'li',\n 'table',\n 'thead',\n 'tbody',\n 'tfoot',\n 'caption',\n 'tr',\n 'td',\n 'th',\n 'h1',\n 'h2',\n 'h3',\n 'h4',\n 'h5',\n 'h6',\n 'blockquote',\n 'pre',\n 'address'\n ];\n var DomUniverse = function () {\n var clone$1 = function (element) {\n return SugarElement.fromDom(element.dom.cloneNode(false));\n };\n var document = function (element) { return documentOrOwner(element).dom; };\n var isBoundary = function (element) {\n if (!isElement(element)) {\n return false;\n }\n if (name(element) === 'body') {\n return true;\n }\n return contains(TagBoundaries, name(element));\n };\n var isEmptyTag = function (element) {\n if (!isElement(element)) {\n return false;\n }\n return contains([\n 'br',\n 'img',\n 'hr',\n 'input'\n ], name(element));\n };\n var isNonEditable = function (element) { return isElement(element) && get$2(element, 'contenteditable') === 'false'; };\n var comparePosition = function (element, other) {\n return element.dom.compareDocumentPosition(other.dom);\n };\n var copyAttributesTo = function (source, destination) {\n var as = clone(source);\n setAll(destination, as);\n };\n var isSpecial = function (element) {\n var tag = name(element);\n return contains([\n 'script',\n 'noscript',\n 'iframe',\n 'noframes',\n 'noembed',\n 'title',\n 'style',\n 'textarea',\n 'xmp'\n ], tag);\n };\n var getLanguage = function (element) { return isElement(element) ? getOpt(element, 'lang') : Optional.none(); };\n return {\n up: constant({\n selector: ancestor,\n closest: closest$1,\n predicate: ancestor$1,\n all: parents\n }),\n down: constant({\n selector: descendants,\n predicate: descendants$1\n }),\n styles: constant({\n get: get$1,\n getRaw: getRaw,\n set: set$1,\n remove: remove$1\n }),\n attrs: constant({\n get: get$2,\n set: set$2,\n remove: remove$2,\n copyTo: copyAttributesTo\n }),\n insert: constant({\n before: before,\n after: after$1,\n afterAll: after,\n append: append$1,\n appendAll: append,\n prepend: prepend,\n wrap: wrap\n }),\n remove: constant({\n unwrap: unwrap,\n remove: remove\n }),\n create: constant({\n nu: SugarElement.fromTag,\n clone: clone$1,\n text: SugarElement.fromText\n }),\n query: constant({\n comparePosition: comparePosition,\n prevSibling: prevSibling,\n nextSibling: nextSibling\n }),\n property: constant({\n children: children$3,\n name: name,\n parent: parent,\n document: document,\n isText: isText,\n isComment: isComment,\n isElement: isElement,\n isSpecial: isSpecial,\n getLanguage: getLanguage,\n getText: get,\n setText: set,\n isBoundary: isBoundary,\n isEmptyTag: isEmptyTag,\n isNonEditable: isNonEditable\n }),\n eq: eq,\n is: is$1\n };\n };\n var all = function (universe, look, elements, f) {\n var head = elements[0];\n var tail = elements.slice(1);\n return f(universe, look, head, tail);\n };\n var oneAll = function (universe, look, elements) {\n return elements.length > 0 ? all(universe, look, elements, unsafeOne) : Optional.none();\n };\n var unsafeOne = function (universe, look, head, tail) {\n var start = look(universe, head);\n return foldr(tail, function (b, a) {\n var current = look(universe, a);\n return commonElement(universe, b, current);\n }, start);\n };\n var commonElement = function (universe, start, end) {\n return start.bind(function (s) {\n return end.filter(curry(universe.eq, s));\n });\n };\n var sharedOne$1 = oneAll;\n var universe = DomUniverse();\n var sharedOne = function (look, elements) {\n return sharedOne$1(universe, function (_universe, element) {\n return look(element);\n }, elements);\n };\n var lookupTable = function (container) {\n return ancestor(container, 'table');\n };\n var retrieve$1 = function (container, selector) {\n var sels = descendants(container, selector);\n return sels.length > 0 ? Optional.some(sels) : Optional.none();\n };\n var getEdges = function (container, firstSelectedSelector, lastSelectedSelector) {\n return descendant(container, firstSelectedSelector).bind(function (first) {\n return descendant(container, lastSelectedSelector).bind(function (last) {\n return sharedOne(lookupTable, [\n first,\n last\n ]).map(function (table) {\n return {\n first: first,\n last: last,\n table: table\n };\n });\n });\n });\n };\n var retrieve = function (container, selector) {\n return retrieve$1(container, selector);\n };\n var retrieveBox = function (container, firstSelectedSelector, lastSelectedSelector) {\n return getEdges(container, firstSelectedSelector, lastSelectedSelector).bind(function (edges) {\n var isRoot = function (ancestor) {\n return eq(container, ancestor);\n };\n var sectionSelector = 'thead,tfoot,tbody,table';\n var firstAncestor = ancestor(edges.first, sectionSelector, isRoot);\n var lastAncestor = ancestor(edges.last, sectionSelector, isRoot);\n return firstAncestor.bind(function (fA) {\n return lastAncestor.bind(function (lA) {\n return eq(fA, lA) ? getBox(edges.table, edges.first, edges.last) : Optional.none();\n });\n });\n });\n };\n var fromDom = function (nodes) { return map(nodes, SugarElement.fromDom); };\n var strSelected = 'data-mce-selected';\n var strSelectedSelector = 'td[' + strSelected + '],th[' + strSelected + ']';\n var strFirstSelected = 'data-mce-first-selected';\n var strFirstSelectedSelector = 'td[' + strFirstSelected + '],th[' + strFirstSelected + ']';\n var strLastSelected = 'data-mce-last-selected';\n var strLastSelectedSelector = 'td[' + strLastSelected + '],th[' + strLastSelected + ']';\n var ephemera = {\n selected: strSelected,\n selectedSelector: strSelectedSelector,\n firstSelected: strFirstSelected,\n firstSelectedSelector: strFirstSelectedSelector,\n lastSelected: strLastSelected,\n lastSelectedSelector: strLastSelectedSelector\n };\n var getSelectionCellFallback = function (element) { return table(element).bind(function (table) { return retrieve(table, ephemera.firstSelectedSelector); }).fold(constant(element), function (cells) { return cells[0]; }); };\n var getSelectionFromSelector = function (selector) { return function (initCell, isRoot) {\n var cellName = name(initCell);\n var cell = cellName === 'col' || cellName === 'colgroup' ? getSelectionCellFallback(initCell) : initCell;\n return closest$1(cell, selector, isRoot);\n }; };\n var getSelectionCellOrCaption = getSelectionFromSelector('th,td,caption');\n var getSelectionCell = getSelectionFromSelector('th,td');\n var getCellsFromSelection = function (editor) { return fromDom(editor.model.table.getSelectedCells()); };\n var getRowsFromSelection = function (selected, selector) {\n var cellOpt = getSelectionCell(selected);\n var rowsOpt = cellOpt.bind(function (cell) { return table(cell); }).map(function (table) { return rows(table); });\n return lift2(cellOpt, rowsOpt, function (cell, rows) { return filter(rows, function (row) { return exists(fromDom(row.dom.cells), function (rowCell) { return get$2(rowCell, selector) === '1' || eq(rowCell, cell); }); }); }).getOr([]);\n };\n var verticalAlignValues = [\n {\n text: 'None',\n value: ''\n },\n {\n text: 'Top',\n value: 'top'\n },\n {\n text: 'Middle',\n value: 'middle'\n },\n {\n text: 'Bottom',\n value: 'bottom'\n }\n ];\n var hexColour = function (value) { return ({ value: normalizeHex(value) }); };\n var shorthandRegex = /^#?([a-f\\d])([a-f\\d])([a-f\\d])$/i;\n var longformRegex = /^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i;\n var isHexString = function (hex) { return shorthandRegex.test(hex) || longformRegex.test(hex); };\n var normalizeHex = function (hex) { return removeLeading(hex, '#').toUpperCase(); };\n var fromString$1 = function (hex) { return isHexString(hex) ? Optional.some({ value: normalizeHex(hex) }) : Optional.none(); };\n var toHex = function (component) {\n var hex = component.toString(16);\n return (hex.length === 1 ? '0' + hex : hex).toUpperCase();\n };\n var fromRgba = function (rgbaColour) {\n var value = toHex(rgbaColour.red) + toHex(rgbaColour.green) + toHex(rgbaColour.blue);\n return hexColour(value);\n };\n var rgbRegex = /^\\s*rgb\\s*\\(\\s*(\\d+)\\s*,\\s*(\\d+)\\s*,\\s*(\\d+)\\s*\\)\\s*$/i;\n var rgbaRegex = /^\\s*rgba\\s*\\(\\s*(\\d+)\\s*,\\s*(\\d+)\\s*,\\s*(\\d+)\\s*,\\s*(\\d?(?:\\.\\d+)?)\\s*\\)\\s*$/i;\n var rgbaColour = function (red, green, blue, alpha) { return ({\n red: red,\n green: green,\n blue: blue,\n alpha: alpha\n }); };\n var fromStringValues = function (red, green, blue, alpha) {\n var r = parseInt(red, 10);\n var g = parseInt(green, 10);\n var b = parseInt(blue, 10);\n var a = parseFloat(alpha);\n return rgbaColour(r, g, b, a);\n };\n var fromString = function (rgbaString) {\n if (rgbaString === 'transparent') {\n return Optional.some(rgbaColour(0, 0, 0, 0));\n }\n var rgbMatch = rgbRegex.exec(rgbaString);\n if (rgbMatch !== null) {\n return Optional.some(fromStringValues(rgbMatch[1], rgbMatch[2], rgbMatch[3], '1'));\n }\n var rgbaMatch = rgbaRegex.exec(rgbaString);\n if (rgbaMatch !== null) {\n return Optional.some(fromStringValues(rgbaMatch[1], rgbaMatch[2], rgbaMatch[3], rgbaMatch[4]));\n }\n return Optional.none();\n };\n var anyToHex = function (color) { return fromString$1(color).orThunk(function () { return fromString(color).map(fromRgba); }).getOrThunk(function () {\n var canvas = document.createElement('canvas');\n canvas.height = 1;\n canvas.width = 1;\n var canvasContext = canvas.getContext('2d');\n canvasContext.clearRect(0, 0, canvas.width, canvas.height);\n canvasContext.fillStyle = '#FFFFFF';\n canvasContext.fillStyle = color;\n canvasContext.fillRect(0, 0, 1, 1);\n var rgba = canvasContext.getImageData(0, 0, 1, 1).data;\n var r = rgba[0];\n var g = rgba[1];\n var b = rgba[2];\n var a = rgba[3];\n return fromRgba(rgbaColour(r, g, b, a));\n }); };\n var rgbaToHexString = function (color) { return fromString(color).map(fromRgba).map(function (h) { return '#' + h.value; }).getOr(color); };\n var Cell = function (initial) {\n var value = initial;\n var get = function () {\n return value;\n };\n var set = function (v) {\n value = v;\n };\n return {\n get: get,\n set: set\n };\n };\n var singleton = function (doRevoke) {\n var subject = Cell(Optional.none());\n var revoke = function () { return subject.get().each(doRevoke); };\n var clear = function () {\n revoke();\n subject.set(Optional.none());\n };\n var isSet = function () { return subject.get().isSome(); };\n var get = function () { return subject.get(); };\n var set = function (s) {\n revoke();\n subject.set(Optional.some(s));\n };\n return {\n clear: clear,\n isSet: isSet,\n get: get,\n set: set\n };\n };\n var unbindable = function () { return singleton(function (s) { return s.unbind(); }); };\n var onSetupToggle = function (editor, formatName, formatValue) {\n return function (api) {\n var boundCallback = unbindable();\n var isNone = isEmpty(formatValue);\n var init = function () {\n var selectedCells = getCellsFromSelection(editor);\n var checkNode = function (cell) { return editor.formatter.match(formatName, { value: formatValue }, cell.dom, isNone); };\n if (isNone) {\n api.setActive(!exists(selectedCells, checkNode));\n boundCallback.set(editor.formatter.formatChanged(formatName, function (match) { return api.setActive(!match); }, true));\n }\n else {\n api.setActive(forall(selectedCells, checkNode));\n boundCallback.set(editor.formatter.formatChanged(formatName, api.setActive, false, { value: formatValue }));\n }\n };\n editor.initialized ? init() : editor.on('init', init);\n return boundCallback.clear;\n };\n };\n var isListGroup = function (item) { return hasNonNullableKey(item, 'menu'); };\n var buildListItems = function (items) { return map(items, function (item) {\n var text = item.text || item.title || '';\n if (isListGroup(item)) {\n return {\n text: text,\n items: buildListItems(item.menu)\n };\n }\n else {\n return {\n text: text,\n value: item.value\n };\n }\n }); };\n var buildMenuItems = function (editor, items, format, onAction) { return map(items, function (item) {\n var text = item.text || item.title;\n if (isListGroup(item)) {\n return {\n type: 'nestedmenuitem',\n text: text,\n getSubmenuItems: function () { return buildMenuItems(editor, item.menu, format, onAction); }\n };\n }\n else {\n return {\n text: text,\n type: 'togglemenuitem',\n onAction: function () { return onAction(item.value); },\n onSetup: onSetupToggle(editor, format, item.value)\n };\n }\n }); };\n var applyTableCellStyle = function (editor, style) { return function (value) {\n var _b;\n editor.execCommand('mceTableApplyCellStyle', false, (_b = {}, _b[style] = value, _b));\n }; };\n var filterNoneItem = function (list) { return bind(list, function (item) {\n if (isListGroup(item)) {\n return [__assign(__assign({}, item), { menu: filterNoneItem(item.menu) })];\n }\n else {\n return isNotEmpty(item.value) ? [item] : [];\n }\n }); };\n var generateMenuItemsCallback = function (editor, items, format, onAction) { return function (callback) { return callback(buildMenuItems(editor, items, format, onAction)); }; };\n var buildColorMenu = function (editor, colorList, style) {\n var colorMap = map(colorList, function (entry) { return ({\n text: entry.title,\n value: '#' + anyToHex(entry.value).value,\n type: 'choiceitem'\n }); });\n return [{\n type: 'fancymenuitem',\n fancytype: 'colorswatch',\n initData: {\n colors: colorMap.length > 0 ? colorMap : undefined,\n allowCustomColors: false\n },\n onAction: function (data) {\n var _b;\n var value = data.value === 'remove' ? '' : data.value;\n editor.execCommand('mceTableApplyCellStyle', false, (_b = {}, _b[style] = value, _b));\n }\n }];\n };\n var changeRowHeader = function (editor) { return function () {\n var currentType = editor.queryCommandValue('mceTableRowType');\n var newType = currentType === 'header' ? 'body' : 'header';\n editor.execCommand('mceTableRowType', false, { type: newType });\n }; };\n var changeColumnHeader = function (editor) { return function () {\n var currentType = editor.queryCommandValue('mceTableColType');\n var newType = currentType === 'th' ? 'td' : 'th';\n editor.execCommand('mceTableColType', false, { type: newType });\n }; };\n var getClassList$1 = function (editor) {\n var classes = buildListItems(getCellClassList(editor));\n if (classes.length > 0) {\n return Optional.some({\n name: 'class',\n type: 'listbox',\n label: 'Class',\n items: classes\n });\n }\n return Optional.none();\n };\n var children = [\n {\n name: 'width',\n type: 'input',\n label: 'Width'\n },\n {\n name: 'height',\n type: 'input',\n label: 'Height'\n },\n {\n name: 'celltype',\n type: 'listbox',\n label: 'Cell type',\n items: [\n {\n text: 'Cell',\n value: 'td'\n },\n {\n text: 'Header cell',\n value: 'th'\n }\n ]\n },\n {\n name: 'scope',\n type: 'listbox',\n label: 'Scope',\n items: [\n {\n text: 'None',\n value: ''\n },\n {\n text: 'Row',\n value: 'row'\n },\n {\n text: 'Column',\n value: 'col'\n },\n {\n text: 'Row group',\n value: 'rowgroup'\n },\n {\n text: 'Column group',\n value: 'colgroup'\n }\n ]\n },\n {\n name: 'halign',\n type: 'listbox',\n label: 'Horizontal align',\n items: [\n {\n text: 'None',\n value: ''\n },\n {\n text: 'Left',\n value: 'left'\n },\n {\n text: 'Center',\n value: 'center'\n },\n {\n text: 'Right',\n value: 'right'\n }\n ]\n },\n {\n name: 'valign',\n type: 'listbox',\n label: 'Vertical align',\n items: verticalAlignValues\n }\n ];\n var getItems$2 = function (editor) { return children.concat(getClassList$1(editor).toArray()); };\n var getAdvancedTab = function (editor, dialogName) {\n var emptyBorderStyle = [{\n text: 'Select...',\n value: ''\n }];\n var advTabItems = [\n {\n name: 'borderstyle',\n type: 'listbox',\n label: 'Border style',\n items: emptyBorderStyle.concat(buildListItems(getTableBorderStyles(editor)))\n },\n {\n name: 'bordercolor',\n type: 'colorinput',\n label: 'Border color'\n },\n {\n name: 'backgroundcolor',\n type: 'colorinput',\n label: 'Background color'\n }\n ];\n var borderWidth = {\n name: 'borderwidth',\n type: 'input',\n label: 'Border width'\n };\n var items = dialogName === 'cell' ? [borderWidth].concat(advTabItems) : advTabItems;\n return {\n title: 'Advanced',\n name: 'advanced',\n items: items\n };\n };\n var normal = function (editor, element) {\n var dom = editor.dom;\n var setAttrib = function (attr, value) {\n dom.setAttrib(element, attr, value);\n };\n var setStyle = function (prop, value) {\n dom.setStyle(element, prop, value);\n };\n var setFormat = function (formatName, value) {\n if (value === '') {\n editor.formatter.remove(formatName, { value: null }, element, true);\n }\n else {\n editor.formatter.apply(formatName, { value: value }, element);\n }\n };\n return {\n setAttrib: setAttrib,\n setStyle: setStyle,\n setFormat: setFormat\n };\n };\n var DomModifier = { normal: normal };\n var isHeaderCell = isTag('th');\n var getRowHeaderType = function (isHeaderRow, isHeaderCells) {\n if (isHeaderRow && isHeaderCells) {\n return 'sectionCells';\n }\n else if (isHeaderRow) {\n return 'section';\n }\n else {\n return 'cells';\n }\n };\n var getRowType$1 = function (row) {\n var isHeaderRow = row.section === 'thead';\n var isHeaderCells = is(findCommonCellType(row.cells), 'th');\n if (row.section === 'tfoot') {\n return { type: 'footer' };\n }\n else if (isHeaderRow || isHeaderCells) {\n return {\n type: 'header',\n subType: getRowHeaderType(isHeaderRow, isHeaderCells)\n };\n }\n else {\n return { type: 'body' };\n }\n };\n var findCommonCellType = function (cells) {\n var headerCells = filter(cells, function (cell) { return isHeaderCell(cell.element); });\n if (headerCells.length === 0) {\n return Optional.some('td');\n }\n else if (headerCells.length === cells.length) {\n return Optional.some('th');\n }\n else {\n return Optional.none();\n }\n };\n var findCommonRowType = function (rows) {\n var rowTypes = map(rows, function (row) { return getRowType$1(row).type; });\n var hasHeader = contains(rowTypes, 'header');\n var hasFooter = contains(rowTypes, 'footer');\n if (!hasHeader && !hasFooter) {\n return Optional.some('body');\n }\n else {\n var hasBody = contains(rowTypes, 'body');\n if (hasHeader && !hasBody && !hasFooter) {\n return Optional.some('header');\n }\n else if (!hasHeader && !hasBody && hasFooter) {\n return Optional.some('footer');\n }\n else {\n return Optional.none();\n }\n }\n };\n var cached = function (f) {\n var called = false;\n var r;\n return function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n if (!called) {\n called = true;\n r = f.apply(null, args);\n }\n return r;\n };\n };\n var findInWarehouse = function (warehouse, element) { return findMap(warehouse.all, function (r) { return find(r.cells, function (e) { return eq(element, e.element); }); }); };\n var extractCells = function (warehouse, target, predicate) {\n var details = map(target.selection, function (cell$1) {\n return cell(cell$1).bind(function (lc) { return findInWarehouse(warehouse, lc); }).filter(predicate);\n });\n var cells = cat(details);\n return someIf(cells.length > 0, cells);\n };\n var onMergable = function (_warehouse, target) { return target.mergable; };\n var onUnmergable = function (_warehouse, target) { return target.unmergable; };\n var onCells = function (warehouse, target) { return extractCells(warehouse, target, always); };\n var isUnlockedTableCell = function (warehouse, cell) { return findInWarehouse(warehouse, cell).exists(function (detail) { return !detail.isLocked; }); };\n var allUnlocked = function (warehouse, cells) { return forall(cells, function (cell) { return isUnlockedTableCell(warehouse, cell); }); };\n var onUnlockedMergable = function (warehouse, target) { return onMergable(warehouse, target).filter(function (mergeable) { return allUnlocked(warehouse, mergeable.cells); }); };\n var onUnlockedUnmergable = function (warehouse, target) { return onUnmergable(warehouse, target).filter(function (cells) { return allUnlocked(warehouse, cells); }); };\n var generate = function (cases) {\n if (!isArray(cases)) {\n throw new Error('cases must be an array');\n }\n if (cases.length === 0) {\n throw new Error('there must be at least one case');\n }\n var constructors = [];\n var adt = {};\n each(cases, function (acase, count) {\n var keys$1 = keys(acase);\n if (keys$1.length !== 1) {\n throw new Error('one and only one name per case');\n }\n var key = keys$1[0];\n var value = acase[key];\n if (adt[key] !== undefined) {\n throw new Error('duplicate key detected:' + key);\n }\n else if (key === 'cata') {\n throw new Error('cannot have a case named cata (sorry)');\n }\n else if (!isArray(value)) {\n throw new Error('case arguments must be an array');\n }\n constructors.push(key);\n adt[key] = function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n var argLength = args.length;\n if (argLength !== value.length) {\n throw new Error('Wrong number of arguments to case ' + key + '. Expected ' + value.length + ' (' + value + '), got ' + argLength);\n }\n var match = function (branches) {\n var branchKeys = keys(branches);\n if (constructors.length !== branchKeys.length) {\n throw new Error('Wrong number of arguments to match. Expected: ' + constructors.join(',') + '\\nActual: ' + branchKeys.join(','));\n }\n var allReqd = forall(constructors, function (reqKey) {\n return contains(branchKeys, reqKey);\n });\n if (!allReqd) {\n throw new Error('Not all branches were specified when using match. Specified: ' + branchKeys.join(', ') + '\\nRequired: ' + constructors.join(', '));\n }\n return branches[key].apply(null, args);\n };\n return {\n fold: function () {\n var foldArgs = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n foldArgs[_i] = arguments[_i];\n }\n if (foldArgs.length !== cases.length) {\n throw new Error('Wrong number of arguments to fold. Expected ' + cases.length + ', got ' + foldArgs.length);\n }\n var target = foldArgs[count];\n return target.apply(null, args);\n },\n match: match,\n log: function (label) {\n console.log(label, {\n constructors: constructors,\n constructor: key,\n params: args\n });\n }\n };\n };\n });\n return adt;\n };\n var Adt = { generate: generate };\n var adt = Adt.generate([\n { none: [] },\n { only: ['index'] },\n {\n left: [\n 'index',\n 'next'\n ]\n },\n {\n middle: [\n 'prev',\n 'index',\n 'next'\n ]\n },\n {\n right: [\n 'prev',\n 'index'\n ]\n }\n ]);\n (__assign({}, adt));\n var opGetRowsType = function (table, target) {\n var house = Warehouse.fromTable(table);\n var details = onCells(house, target);\n return details.bind(function (selectedCells) {\n var lastSelectedCell = selectedCells[selectedCells.length - 1];\n var minRowRange = selectedCells[0].row;\n var maxRowRange = lastSelectedCell.row + lastSelectedCell.rowspan;\n var selectedRows = house.all.slice(minRowRange, maxRowRange);\n return findCommonRowType(selectedRows);\n }).getOr('');\n };\n var getRowsType = opGetRowsType;\n var rgbToHex = function (value) { return startsWith(value, 'rgb') ? rgbaToHexString(value) : value; };\n var extractAdvancedStyles = function (elm) {\n var element = SugarElement.fromDom(elm);\n return {\n borderwidth: getRaw(element, 'border-width').getOr(''),\n borderstyle: getRaw(element, 'border-style').getOr(''),\n bordercolor: getRaw(element, 'border-color').map(rgbToHex).getOr(''),\n backgroundcolor: getRaw(element, 'background-color').map(rgbToHex).getOr('')\n };\n };\n var getSharedValues = function (data) {\n var baseData = data[0];\n var comparisonData = data.slice(1);\n each(comparisonData, function (items) {\n each(keys(baseData), function (key) {\n each$1(items, function (itemValue, itemKey) {\n var comparisonValue = baseData[key];\n if (comparisonValue !== '' && key === itemKey) {\n if (comparisonValue !== itemValue) {\n baseData[key] = '';\n }\n }\n });\n });\n });\n return baseData;\n };\n var getAlignment = function (formats, formatName, editor, elm) { return find(formats, function (name) { return !isUndefined(editor.formatter.matchNode(elm, formatName + name)); }).getOr(''); };\n var getHAlignment = curry(getAlignment, [\n 'left',\n 'center',\n 'right'\n ], 'align');\n var getVAlignment = curry(getAlignment, [\n 'top',\n 'middle',\n 'bottom'\n ], 'valign');\n var extractDataFromSettings = function (editor, hasAdvTableTab) {\n var style = getDefaultStyles(editor);\n var attrs = getDefaultAttributes(editor);\n var extractAdvancedStyleData = function () { return ({\n borderstyle: get$4(style, 'border-style').getOr(''),\n bordercolor: rgbToHex(get$4(style, 'border-color').getOr('')),\n backgroundcolor: rgbToHex(get$4(style, 'background-color').getOr(''))\n }); };\n var defaultData = {\n height: '',\n width: '100%',\n cellspacing: '',\n cellpadding: '',\n caption: false,\n class: '',\n align: '',\n border: ''\n };\n var getBorder = function () {\n var borderWidth = style['border-width'];\n if (shouldStyleWithCss(editor) && borderWidth) {\n return { border: borderWidth };\n }\n return get$4(attrs, 'border').fold(function () { return ({}); }, function (border) { return ({ border: border }); });\n };\n var advStyle = hasAdvTableTab ? extractAdvancedStyleData() : {};\n var getCellPaddingCellSpacing = function () {\n var spacing = get$4(style, 'border-spacing').or(get$4(attrs, 'cellspacing')).fold(function () { return ({}); }, function (cellspacing) { return ({ cellspacing: cellspacing }); });\n var padding = get$4(style, 'border-padding').or(get$4(attrs, 'cellpadding')).fold(function () { return ({}); }, function (cellpadding) { return ({ cellpadding: cellpadding }); });\n return __assign(__assign({}, spacing), padding);\n };\n var data = __assign(__assign(__assign(__assign(__assign(__assign({}, defaultData), style), attrs), advStyle), getBorder()), getCellPaddingCellSpacing());\n return data;\n };\n var getRowType = function (elm) { return table(SugarElement.fromDom(elm)).map(function (table) {\n var target = { selection: fromDom(elm.cells) };\n return getRowsType(table, target);\n }).getOr(''); };\n var extractDataFromTableElement = function (editor, elm, hasAdvTableTab) {\n var getBorder = function (dom, elm) {\n var optBorderWidth = getRaw(SugarElement.fromDom(elm), 'border-width');\n if (shouldStyleWithCss(editor) && optBorderWidth.isSome()) {\n return optBorderWidth.getOr('');\n }\n return dom.getAttrib(elm, 'border') || getTDTHOverallStyle(editor.dom, elm, 'border-width') || getTDTHOverallStyle(editor.dom, elm, 'border') || '';\n };\n var dom = editor.dom;\n var cellspacing = shouldStyleWithCss(editor) ? dom.getStyle(elm, 'border-spacing') || dom.getAttrib(elm, 'cellspacing') : dom.getAttrib(elm, 'cellspacing') || dom.getStyle(elm, 'border-spacing');\n var cellpadding = shouldStyleWithCss(editor) ? getTDTHOverallStyle(dom, elm, 'padding') || dom.getAttrib(elm, 'cellpadding') : dom.getAttrib(elm, 'cellpadding') || getTDTHOverallStyle(dom, elm, 'padding');\n return __assign({ width: dom.getStyle(elm, 'width') || dom.getAttrib(elm, 'width'), height: dom.getStyle(elm, 'height') || dom.getAttrib(elm, 'height'), cellspacing: cellspacing !== null && cellspacing !== void 0 ? cellspacing : '', cellpadding: cellpadding !== null && cellpadding !== void 0 ? cellpadding : '', border: getBorder(dom, elm), caption: !!dom.select('caption', elm)[0], class: dom.getAttrib(elm, 'class', ''), align: getHAlignment(editor, elm) }, hasAdvTableTab ? extractAdvancedStyles(elm) : {});\n };\n var extractDataFromRowElement = function (editor, elm, hasAdvancedRowTab) {\n var dom = editor.dom;\n return __assign({ height: dom.getStyle(elm, 'height') || dom.getAttrib(elm, 'height'), class: dom.getAttrib(elm, 'class', ''), type: getRowType(elm), align: getHAlignment(editor, elm) }, hasAdvancedRowTab ? extractAdvancedStyles(elm) : {});\n };\n var extractDataFromCellElement = function (editor, cell, hasAdvancedCellTab, column) {\n var dom = editor.dom;\n var colElm = column.getOr(cell);\n var getStyle = function (element, style) { return dom.getStyle(element, style) || dom.getAttrib(element, style); };\n return __assign({ width: getStyle(colElm, 'width'), height: getStyle(cell, 'height'), scope: dom.getAttrib(cell, 'scope'), celltype: getNodeName(cell), class: dom.getAttrib(cell, 'class', ''), halign: getHAlignment(editor, cell), valign: getVAlignment(editor, cell) }, hasAdvancedCellTab ? extractAdvancedStyles(cell) : {});\n };\n var getSelectedCells = function (table, cells) {\n var warehouse = Warehouse.fromTable(table);\n var allCells = Warehouse.justCells(warehouse);\n var filtered = filter(allCells, function (cellA) { return exists(cells, function (cellB) { return eq(cellA.element, cellB); }); });\n return map(filtered, function (cell) { return ({\n element: cell.element.dom,\n column: Warehouse.getColumnAt(warehouse, cell.column).map(function (col) { return col.element.dom; })\n }); });\n };\n var updateSimpleProps$1 = function (modifier, colModifier, data, shouldUpdate) {\n if (shouldUpdate('scope')) {\n modifier.setAttrib('scope', data.scope);\n }\n if (shouldUpdate('class')) {\n modifier.setAttrib('class', data.class);\n }\n if (shouldUpdate('height')) {\n modifier.setStyle('height', addPxSuffix(data.height));\n }\n if (shouldUpdate('width')) {\n colModifier.setStyle('width', addPxSuffix(data.width));\n }\n };\n var updateAdvancedProps$1 = function (modifier, data, shouldUpdate) {\n if (shouldUpdate('backgroundcolor')) {\n modifier.setFormat('tablecellbackgroundcolor', data.backgroundcolor);\n }\n if (shouldUpdate('bordercolor')) {\n modifier.setFormat('tablecellbordercolor', data.bordercolor);\n }\n if (shouldUpdate('borderstyle')) {\n modifier.setFormat('tablecellborderstyle', data.borderstyle);\n }\n if (shouldUpdate('borderwidth')) {\n modifier.setFormat('tablecellborderwidth', addPxSuffix(data.borderwidth));\n }\n };\n var applyStyleData$1 = function (editor, cells, data, wasChanged) {\n var isSingleCell = cells.length === 1;\n each(cells, function (item) {\n var cellElm = item.element;\n var shouldOverrideCurrentValue = isSingleCell ? always : wasChanged;\n var modifier = DomModifier.normal(editor, cellElm);\n var colModifier = item.column.map(function (col) { return DomModifier.normal(editor, col); }).getOr(modifier);\n updateSimpleProps$1(modifier, colModifier, data, shouldOverrideCurrentValue);\n if (hasAdvancedCellTab(editor)) {\n updateAdvancedProps$1(modifier, data, shouldOverrideCurrentValue);\n }\n if (wasChanged('halign')) {\n setAlign(editor, cellElm, data.halign);\n }\n if (wasChanged('valign')) {\n setVAlign(editor, cellElm, data.valign);\n }\n });\n };\n var applyStructureData$1 = function (editor, data) {\n editor.execCommand('mceTableCellType', false, {\n type: data.celltype,\n no_events: true\n });\n };\n var applyCellData = function (editor, cells, oldData, data) {\n var modifiedData = filter$1(data, function (value, key) { return oldData[key] !== value; });\n if (size(modifiedData) > 0 && cells.length >= 1) {\n table(cells[0]).each(function (table) {\n var selectedCells = getSelectedCells(table, cells);\n var styleModified = size(filter$1(modifiedData, function (_value, key) { return key !== 'scope' && key !== 'celltype'; })) > 0;\n var structureModified = has(modifiedData, 'celltype');\n if (styleModified || has(modifiedData, 'scope')) {\n applyStyleData$1(editor, selectedCells, data, curry(has, modifiedData));\n }\n if (structureModified) {\n applyStructureData$1(editor, data);\n }\n fireTableModified(editor, table.dom, {\n structure: structureModified,\n style: styleModified\n });\n });\n }\n };\n var onSubmitCellForm = function (editor, cells, oldData, api) {\n var data = api.getData();\n api.close();\n editor.undoManager.transact(function () {\n applyCellData(editor, cells, oldData, data);\n editor.focus();\n });\n };\n var getData$1 = function (editor, cells) {\n var cellsData = table(cells[0]).map(function (table) { return map(getSelectedCells(table, cells), function (item) { return extractDataFromCellElement(editor, item.element, hasAdvancedCellTab(editor), item.column); }); });\n return getSharedValues(cellsData.getOrDie());\n };\n var open$2 = function (editor) {\n var cells = getCellsFromSelection(editor);\n if (cells.length === 0) {\n return;\n }\n var data = getData$1(editor, cells);\n var dialogTabPanel = {\n type: 'tabpanel',\n tabs: [\n {\n title: 'General',\n name: 'general',\n items: getItems$2(editor)\n },\n getAdvancedTab(editor, 'cell')\n ]\n };\n var dialogPanel = {\n type: 'panel',\n items: [{\n type: 'grid',\n columns: 2,\n items: getItems$2(editor)\n }]\n };\n editor.windowManager.open({\n title: 'Cell Properties',\n size: 'normal',\n body: hasAdvancedCellTab(editor) ? dialogTabPanel : dialogPanel,\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: data,\n onSubmit: curry(onSubmitCellForm, editor, cells, data)\n });\n };\n var getClassList = function (editor) {\n var classes = buildListItems(getRowClassList(editor));\n if (classes.length > 0) {\n return Optional.some({\n name: 'class',\n type: 'listbox',\n label: 'Class',\n items: classes\n });\n }\n return Optional.none();\n };\n var formChildren = [\n {\n type: 'listbox',\n name: 'type',\n label: 'Row type',\n items: [\n {\n text: 'Header',\n value: 'header'\n },\n {\n text: 'Body',\n value: 'body'\n },\n {\n text: 'Footer',\n value: 'footer'\n }\n ]\n },\n {\n type: 'listbox',\n name: 'align',\n label: 'Alignment',\n items: [\n {\n text: 'None',\n value: ''\n },\n {\n text: 'Left',\n value: 'left'\n },\n {\n text: 'Center',\n value: 'center'\n },\n {\n text: 'Right',\n value: 'right'\n }\n ]\n },\n {\n label: 'Height',\n name: 'height',\n type: 'input'\n }\n ];\n var getItems$1 = function (editor) { return formChildren.concat(getClassList(editor).toArray()); };\n var updateSimpleProps = function (modifier, data, shouldUpdate) {\n if (shouldUpdate('class')) {\n modifier.setAttrib('class', data.class);\n }\n if (shouldUpdate('height')) {\n modifier.setStyle('height', addPxSuffix(data.height));\n }\n };\n var updateAdvancedProps = function (modifier, data, shouldUpdate) {\n if (shouldUpdate('backgroundcolor')) {\n modifier.setStyle('background-color', data.backgroundcolor);\n }\n if (shouldUpdate('bordercolor')) {\n modifier.setStyle('border-color', data.bordercolor);\n }\n if (shouldUpdate('borderstyle')) {\n modifier.setStyle('border-style', data.borderstyle);\n }\n };\n var applyStyleData = function (editor, rows, data, wasChanged) {\n var isSingleRow = rows.length === 1;\n var shouldOverrideCurrentValue = isSingleRow ? always : wasChanged;\n each(rows, function (rowElm) {\n var modifier = DomModifier.normal(editor, rowElm);\n updateSimpleProps(modifier, data, shouldOverrideCurrentValue);\n if (hasAdvancedRowTab(editor)) {\n updateAdvancedProps(modifier, data, shouldOverrideCurrentValue);\n }\n if (wasChanged('align')) {\n setAlign(editor, rowElm, data.align);\n }\n });\n };\n var applyStructureData = function (editor, data) {\n editor.execCommand('mceTableRowType', false, {\n type: data.type,\n no_events: true\n });\n };\n var applyRowData = function (editor, rows, oldData, data) {\n var modifiedData = filter$1(data, function (value, key) { return oldData[key] !== value; });\n if (size(modifiedData) > 0) {\n var typeModified_1 = has(modifiedData, 'type');\n var styleModified_1 = typeModified_1 ? size(modifiedData) > 1 : true;\n if (styleModified_1) {\n applyStyleData(editor, rows, data, curry(has, modifiedData));\n }\n if (typeModified_1) {\n applyStructureData(editor, data);\n }\n table(SugarElement.fromDom(rows[0])).each(function (table) { return fireTableModified(editor, table.dom, {\n structure: typeModified_1,\n style: styleModified_1\n }); });\n }\n };\n var onSubmitRowForm = function (editor, rows, oldData, api) {\n var data = api.getData();\n api.close();\n editor.undoManager.transact(function () {\n applyRowData(editor, rows, oldData, data);\n editor.focus();\n });\n };\n var open$1 = function (editor) {\n var rows = getRowsFromSelection(getSelectionStart(editor), ephemera.selected);\n if (rows.length === 0) {\n return;\n }\n var rowsData = map(rows, function (rowElm) { return extractDataFromRowElement(editor, rowElm.dom, hasAdvancedRowTab(editor)); });\n var data = getSharedValues(rowsData);\n var dialogTabPanel = {\n type: 'tabpanel',\n tabs: [\n {\n title: 'General',\n name: 'general',\n items: getItems$1(editor)\n },\n getAdvancedTab(editor, 'row')\n ]\n };\n var dialogPanel = {\n type: 'panel',\n items: [{\n type: 'grid',\n columns: 2,\n items: getItems$1(editor)\n }]\n };\n editor.windowManager.open({\n title: 'Row Properties',\n size: 'normal',\n body: hasAdvancedRowTab(editor) ? dialogTabPanel : dialogPanel,\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: data,\n onSubmit: curry(onSubmitRowForm, editor, map(rows, function (r) { return r.dom; }), data)\n });\n };\n var getItems = function (editor, classes, insertNewTable) {\n var rowColCountItems = !insertNewTable ? [] : [\n {\n type: 'input',\n name: 'cols',\n label: 'Cols',\n inputMode: 'numeric'\n },\n {\n type: 'input',\n name: 'rows',\n label: 'Rows',\n inputMode: 'numeric'\n }\n ];\n var alwaysItems = [\n {\n type: 'input',\n name: 'width',\n label: 'Width'\n },\n {\n type: 'input',\n name: 'height',\n label: 'Height'\n }\n ];\n var appearanceItems = hasAppearanceOptions(editor) ? [\n {\n type: 'input',\n name: 'cellspacing',\n label: 'Cell spacing',\n inputMode: 'numeric'\n },\n {\n type: 'input',\n name: 'cellpadding',\n label: 'Cell padding',\n inputMode: 'numeric'\n },\n {\n type: 'input',\n name: 'border',\n label: 'Border width'\n },\n {\n type: 'label',\n label: 'Caption',\n items: [{\n type: 'checkbox',\n name: 'caption',\n label: 'Show caption'\n }]\n }\n ] : [];\n var alignmentItem = [{\n type: 'listbox',\n name: 'align',\n label: 'Alignment',\n items: [\n {\n text: 'None',\n value: ''\n },\n {\n text: 'Left',\n value: 'left'\n },\n {\n text: 'Center',\n value: 'center'\n },\n {\n text: 'Right',\n value: 'right'\n }\n ]\n }];\n var classListItem = classes.length > 0 ? [{\n type: 'listbox',\n name: 'class',\n label: 'Class',\n items: classes\n }] : [];\n return rowColCountItems.concat(alwaysItems).concat(appearanceItems).concat(alignmentItem).concat(classListItem);\n };\n var styleTDTH = function (dom, elm, name, value) {\n if (elm.tagName === 'TD' || elm.tagName === 'TH') {\n if (isString(name) && isNonNullable(value)) {\n dom.setStyle(elm, name, value);\n }\n else {\n dom.setStyles(elm, name);\n }\n }\n else {\n if (elm.children) {\n for (var i = 0; i < elm.children.length; i++) {\n styleTDTH(dom, elm.children[i], name, value);\n }\n }\n }\n };\n var applyDataToElement = function (editor, tableElm, data, shouldApplyOnCell) {\n var dom = editor.dom;\n var attrs = {};\n var styles = {};\n var shouldStyleWithCss$1 = shouldStyleWithCss(editor);\n var hasAdvancedTableTab$1 = hasAdvancedTableTab(editor);\n if (!isUndefined(data.class)) {\n attrs.class = data.class;\n }\n styles.height = addPxSuffix(data.height);\n if (shouldStyleWithCss$1) {\n styles.width = addPxSuffix(data.width);\n }\n else if (dom.getAttrib(tableElm, 'width')) {\n attrs.width = removePxSuffix(data.width);\n }\n if (shouldStyleWithCss$1) {\n styles['border-width'] = addPxSuffix(data.border);\n styles['border-spacing'] = addPxSuffix(data.cellspacing);\n }\n else {\n attrs.border = data.border;\n attrs.cellpadding = data.cellpadding;\n attrs.cellspacing = data.cellspacing;\n }\n if (shouldStyleWithCss$1 && tableElm.children) {\n var cellStyles = {};\n if (shouldApplyOnCell.border) {\n cellStyles['border-width'] = addPxSuffix(data.border);\n }\n if (shouldApplyOnCell.cellpadding) {\n cellStyles.padding = addPxSuffix(data.cellpadding);\n }\n if (hasAdvancedTableTab$1 && shouldApplyOnCell.bordercolor) {\n cellStyles['border-color'] = data.bordercolor;\n }\n if (!isEmpty$1(cellStyles)) {\n for (var i = 0; i < tableElm.children.length; i++) {\n styleTDTH(dom, tableElm.children[i], cellStyles);\n }\n }\n }\n if (hasAdvancedTableTab$1) {\n var advData = data;\n styles['background-color'] = advData.backgroundcolor;\n styles['border-color'] = advData.bordercolor;\n styles['border-style'] = advData.borderstyle;\n }\n dom.setStyles(tableElm, __assign(__assign({}, getDefaultStyles(editor)), styles));\n dom.setAttribs(tableElm, __assign(__assign({}, getDefaultAttributes(editor)), attrs));\n };\n var onSubmitTableForm = function (editor, tableElm, oldData, api) {\n var dom = editor.dom;\n var data = api.getData();\n var modifiedData = filter$1(data, function (value, key) { return oldData[key] !== value; });\n api.close();\n if (data.class === '') {\n delete data.class;\n }\n editor.undoManager.transact(function () {\n if (!tableElm) {\n var cols = toInt(data.cols).getOr(1);\n var rows_1 = toInt(data.rows).getOr(1);\n editor.execCommand('mceInsertTable', false, {\n rows: rows_1,\n columns: cols\n });\n tableElm = getSelectionCell(getSelectionStart(editor), getIsRoot(editor)).bind(function (cell) { return table(cell, getIsRoot(editor)); }).map(function (table) { return table.dom; }).getOrDie();\n }\n if (size(modifiedData) > 0) {\n var applicableCellProperties = {\n border: has(modifiedData, 'border'),\n bordercolor: has(modifiedData, 'bordercolor'),\n cellpadding: has(modifiedData, 'cellpadding')\n };\n applyDataToElement(editor, tableElm, data, applicableCellProperties);\n var captionElm = dom.select('caption', tableElm)[0];\n if (captionElm && !data.caption || !captionElm && data.caption) {\n editor.execCommand('mceTableToggleCaption');\n }\n setAlign(editor, tableElm, data.align);\n }\n editor.focus();\n editor.addVisual();\n if (size(modifiedData) > 0) {\n var captionModified = has(modifiedData, 'caption');\n var styleModified = captionModified ? size(modifiedData) > 1 : true;\n fireTableModified(editor, tableElm, {\n structure: captionModified,\n style: styleModified\n });\n }\n });\n };\n var open = function (editor, insertNewTable) {\n var dom = editor.dom;\n var tableElm;\n var data = extractDataFromSettings(editor, hasAdvancedTableTab(editor));\n if (insertNewTable) {\n data.cols = '1';\n data.rows = '1';\n if (hasAdvancedTableTab(editor)) {\n data.borderstyle = '';\n data.bordercolor = '';\n data.backgroundcolor = '';\n }\n }\n else {\n tableElm = dom.getParent(editor.selection.getStart(), 'table', editor.getBody());\n if (tableElm) {\n data = extractDataFromTableElement(editor, tableElm, hasAdvancedTableTab(editor));\n }\n else {\n if (hasAdvancedTableTab(editor)) {\n data.borderstyle = '';\n data.bordercolor = '';\n data.backgroundcolor = '';\n }\n }\n }\n var classes = buildListItems(getTableClassList(editor));\n if (classes.length > 0) {\n if (data.class) {\n data.class = data.class.replace(/\\s*mce\\-item\\-table\\s*/g, '');\n }\n }\n var generalPanel = {\n type: 'grid',\n columns: 2,\n items: getItems(editor, classes, insertNewTable)\n };\n var nonAdvancedForm = function () { return ({\n type: 'panel',\n items: [generalPanel]\n }); };\n var advancedForm = function () { return ({\n type: 'tabpanel',\n tabs: [\n {\n title: 'General',\n name: 'general',\n items: [generalPanel]\n },\n getAdvancedTab(editor, 'table')\n ]\n }); };\n var dialogBody = hasAdvancedTableTab(editor) ? advancedForm() : nonAdvancedForm();\n editor.windowManager.open({\n title: 'Table Properties',\n size: 'normal',\n body: dialogBody,\n onSubmit: curry(onSubmitTableForm, editor, tableElm, data),\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: data\n });\n };\n var registerCommands = function (editor) {\n var runAction = function (f) {\n if (isInEditableContext(getSelectionStart(editor))) {\n f();\n }\n };\n each$1({\n mceTableProps: curry(open, editor, false),\n mceTableRowProps: curry(open$1, editor),\n mceTableCellProps: curry(open$2, editor),\n mceInsertTableDialog: curry(open, editor, true)\n }, function (func, name) { return editor.addCommand(name, function () { return runAction(func); }); });\n };\n var child = function (scope, selector) { return child$1(scope, selector).isSome(); };\n var selection = identity;\n var unmergable = function (selectedCells) {\n var hasSpan = function (elem, type) { return getOpt(elem, type).exists(function (span) { return parseInt(span, 10) > 1; }); };\n var hasRowOrColSpan = function (elem) { return hasSpan(elem, 'rowspan') || hasSpan(elem, 'colspan'); };\n return selectedCells.length > 0 && forall(selectedCells, hasRowOrColSpan) ? Optional.some(selectedCells) : Optional.none();\n };\n var mergable = function (table, selectedCells, ephemera) {\n if (selectedCells.length <= 1) {\n return Optional.none();\n }\n else {\n return retrieveBox(table, ephemera.firstSelectedSelector, ephemera.lastSelectedSelector).map(function (bounds) { return ({\n bounds: bounds,\n cells: selectedCells\n }); });\n }\n };\n var noMenu = function (cell) { return ({\n element: cell,\n mergable: Optional.none(),\n unmergable: Optional.none(),\n selection: [cell]\n }); };\n var forMenu = function (selectedCells, table, cell) { return ({\n element: cell,\n mergable: mergable(table, selectedCells, ephemera),\n unmergable: unmergable(selectedCells),\n selection: selection(selectedCells)\n }); };\n var getSelectionTargets = function (editor) {\n var targets = Cell(Optional.none());\n var changeHandlers = Cell([]);\n var selectionDetails = Optional.none();\n var isCaption = isTag('caption');\n var isDisabledForSelection = function (key) { return selectionDetails.forall(function (details) { return !details[key]; }); };\n var getStart = function () { return getSelectionCellOrCaption(getSelectionStart(editor), getIsRoot(editor)); };\n var getEnd = function () { return getSelectionCellOrCaption(getSelectionEnd(editor), getIsRoot(editor)); };\n var findTargets = function () { return getStart().bind(function (startCellOrCaption) { return flatten(lift2(table(startCellOrCaption), getEnd().bind(table), function (startTable, endTable) {\n if (eq(startTable, endTable)) {\n if (isCaption(startCellOrCaption)) {\n return Optional.some(noMenu(startCellOrCaption));\n }\n else {\n return Optional.some(forMenu(getCellsFromSelection(editor), startTable, startCellOrCaption));\n }\n }\n return Optional.none();\n })); }); };\n var getExtractedDetails = function (targets) {\n var tableOpt = table(targets.element);\n return tableOpt.map(function (table) {\n var warehouse = Warehouse.fromTable(table);\n var selectedCells = onCells(warehouse, targets).getOr([]);\n var locked = foldl(selectedCells, function (acc, cell) {\n if (cell.isLocked) {\n acc.onAny = true;\n if (cell.column === 0) {\n acc.onFirst = true;\n }\n else if (cell.column + cell.colspan >= warehouse.grid.columns) {\n acc.onLast = true;\n }\n }\n return acc;\n }, {\n onAny: false,\n onFirst: false,\n onLast: false\n });\n return {\n mergeable: onUnlockedMergable(warehouse, targets).isSome(),\n unmergeable: onUnlockedUnmergable(warehouse, targets).isSome(),\n locked: locked\n };\n });\n };\n var resetTargets = function () {\n targets.set(cached(findTargets)());\n selectionDetails = targets.get().bind(getExtractedDetails);\n each(changeHandlers.get(), call);\n };\n var setupHandler = function (handler) {\n handler();\n changeHandlers.set(changeHandlers.get().concat([handler]));\n return function () {\n changeHandlers.set(filter(changeHandlers.get(), function (h) { return h !== handler; }));\n };\n };\n var onSetup = function (api, isDisabled) { return setupHandler(function () { return targets.get().fold(function () {\n api.setEnabled(false);\n }, function (targets) {\n api.setEnabled(!isDisabled(targets) && editor.selection.isEditable());\n }); }); };\n var onSetupWithToggle = function (api, isDisabled, isActive) { return setupHandler(function () { return targets.get().fold(function () {\n api.setEnabled(false);\n api.setActive(false);\n }, function (targets) {\n api.setEnabled(!isDisabled(targets) && editor.selection.isEditable());\n api.setActive(isActive(targets));\n }); }); };\n var isDisabledFromLocked = function (lockedDisable) { return selectionDetails.exists(function (details) { return details.locked[lockedDisable]; }); };\n var onSetupTable = function (api) { return onSetup(api, function (_) { return false; }); };\n var onSetupCellOrRow = function (api) { return onSetup(api, function (targets) { return isCaption(targets.element); }); };\n var onSetupColumn = function (lockedDisable) { return function (api) { return onSetup(api, function (targets) { return isCaption(targets.element) || isDisabledFromLocked(lockedDisable); }); }; };\n var onSetupPasteable = function (getClipboardData) { return function (api) { return onSetup(api, function (targets) { return isCaption(targets.element) || getClipboardData().isNone(); }); }; };\n var onSetupPasteableColumn = function (getClipboardData, lockedDisable) { return function (api) { return onSetup(api, function (targets) { return isCaption(targets.element) || getClipboardData().isNone() || isDisabledFromLocked(lockedDisable); }); }; };\n var onSetupMergeable = function (api) { return onSetup(api, function (_targets) { return isDisabledForSelection('mergeable'); }); };\n var onSetupUnmergeable = function (api) { return onSetup(api, function (_targets) { return isDisabledForSelection('unmergeable'); }); };\n var onSetupTableWithCaption = function (api) {\n return onSetupWithToggle(api, never, function (targets) {\n var tableOpt = table(targets.element, getIsRoot(editor));\n return tableOpt.exists(function (table) { return child(table, 'caption'); });\n });\n };\n var onSetupTableHeaders = function (command, headerType) { return function (api) {\n return onSetupWithToggle(api, function (targets) { return isCaption(targets.element); }, function () { return editor.queryCommandValue(command) === headerType; });\n }; };\n var onSetupTableRowHeaders = onSetupTableHeaders('mceTableRowType', 'header');\n var onSetupTableColumnHeaders = onSetupTableHeaders('mceTableColType', 'th');\n editor.on('NodeChange ExecCommand TableSelectorChange', resetTargets);\n return {\n onSetupTable: onSetupTable,\n onSetupCellOrRow: onSetupCellOrRow,\n onSetupColumn: onSetupColumn,\n onSetupPasteable: onSetupPasteable,\n onSetupPasteableColumn: onSetupPasteableColumn,\n onSetupMergeable: onSetupMergeable,\n onSetupUnmergeable: onSetupUnmergeable,\n resetTargets: resetTargets,\n onSetupTableWithCaption: onSetupTableWithCaption,\n onSetupTableRowHeaders: onSetupTableRowHeaders,\n onSetupTableColumnHeaders: onSetupTableColumnHeaders,\n targets: targets.get\n };\n };\n var global = tinymce.util.Tools.resolve('tinymce.FakeClipboard');\n var tableTypeBase = 'x-tinymce/dom-table-';\n var tableTypeRow = tableTypeBase + 'rows';\n var tableTypeColumn = tableTypeBase + 'columns';\n var getData = function (type) {\n var _a;\n var items = (_a = global.read()) !== null && _a !== void 0 ? _a : [];\n return findMap(items, function (item) { return Optional.from(item.getType(type)); });\n };\n var getRows = function () { return getData(tableTypeRow); };\n var getColumns = function () { return getData(tableTypeColumn); };\n var onSetupEditable$1 = function (editor) { return function (api) {\n var nodeChanged = function () {\n api.setEnabled(editor.selection.isEditable());\n };\n editor.on('NodeChange', nodeChanged);\n nodeChanged();\n return function () {\n editor.off('NodeChange', nodeChanged);\n };\n }; };\n var addButtons = function (editor, selectionTargets) {\n editor.ui.registry.addMenuButton('table', {\n tooltip: 'Table',\n icon: 'table',\n onSetup: onSetupEditable$1(editor),\n fetch: function (callback) { return callback('inserttable | cell row column | advtablesort | tableprops deletetable'); }\n });\n var cmd = function (command) { return function () { return editor.execCommand(command); }; };\n var addButtonIfRegistered = function (name, spec) {\n if (editor.queryCommandSupported(spec.command)) {\n editor.ui.registry.addButton(name, __assign(__assign({}, spec), { onAction: isFunction(spec.onAction) ? spec.onAction : cmd(spec.command) }));\n }\n };\n var addToggleButtonIfRegistered = function (name, spec) {\n if (editor.queryCommandSupported(spec.command)) {\n editor.ui.registry.addToggleButton(name, __assign(__assign({}, spec), { onAction: isFunction(spec.onAction) ? spec.onAction : cmd(spec.command) }));\n }\n };\n addButtonIfRegistered('tableprops', {\n tooltip: 'Table properties',\n command: 'mceTableProps',\n icon: 'table',\n onSetup: selectionTargets.onSetupTable\n });\n addButtonIfRegistered('tabledelete', {\n tooltip: 'Delete table',\n command: 'mceTableDelete',\n icon: 'table-delete-table',\n onSetup: selectionTargets.onSetupTable\n });\n addButtonIfRegistered('tablecellprops', {\n tooltip: 'Cell properties',\n command: 'mceTableCellProps',\n icon: 'table-cell-properties',\n onSetup: selectionTargets.onSetupCellOrRow\n });\n addButtonIfRegistered('tablemergecells', {\n tooltip: 'Merge cells',\n command: 'mceTableMergeCells',\n icon: 'table-merge-cells',\n onSetup: selectionTargets.onSetupMergeable\n });\n addButtonIfRegistered('tablesplitcells', {\n tooltip: 'Split cell',\n command: 'mceTableSplitCells',\n icon: 'table-split-cells',\n onSetup: selectionTargets.onSetupUnmergeable\n });\n addButtonIfRegistered('tableinsertrowbefore', {\n tooltip: 'Insert row before',\n command: 'mceTableInsertRowBefore',\n icon: 'table-insert-row-above',\n onSetup: selectionTargets.onSetupCellOrRow\n });\n addButtonIfRegistered('tableinsertrowafter', {\n tooltip: 'Insert row after',\n command: 'mceTableInsertRowAfter',\n icon: 'table-insert-row-after',\n onSetup: selectionTargets.onSetupCellOrRow\n });\n addButtonIfRegistered('tabledeleterow', {\n tooltip: 'Delete row',\n command: 'mceTableDeleteRow',\n icon: 'table-delete-row',\n onSetup: selectionTargets.onSetupCellOrRow\n });\n addButtonIfRegistered('tablerowprops', {\n tooltip: 'Row properties',\n command: 'mceTableRowProps',\n icon: 'table-row-properties',\n onSetup: selectionTargets.onSetupCellOrRow\n });\n addButtonIfRegistered('tableinsertcolbefore', {\n tooltip: 'Insert column before',\n command: 'mceTableInsertColBefore',\n icon: 'table-insert-column-before',\n onSetup: selectionTargets.onSetupColumn('onFirst')\n });\n addButtonIfRegistered('tableinsertcolafter', {\n tooltip: 'Insert column after',\n command: 'mceTableInsertColAfter',\n icon: 'table-insert-column-after',\n onSetup: selectionTargets.onSetupColumn('onLast')\n });\n addButtonIfRegistered('tabledeletecol', {\n tooltip: 'Delete column',\n command: 'mceTableDeleteCol',\n icon: 'table-delete-column',\n onSetup: selectionTargets.onSetupColumn('onAny')\n });\n addButtonIfRegistered('tablecutrow', {\n tooltip: 'Cut row',\n command: 'mceTableCutRow',\n icon: 'cut-row',\n onSetup: selectionTargets.onSetupCellOrRow\n });\n addButtonIfRegistered('tablecopyrow', {\n tooltip: 'Copy row',\n command: 'mceTableCopyRow',\n icon: 'duplicate-row',\n onSetup: selectionTargets.onSetupCellOrRow\n });\n addButtonIfRegistered('tablepasterowbefore', {\n tooltip: 'Paste row before',\n command: 'mceTablePasteRowBefore',\n icon: 'paste-row-before',\n onSetup: selectionTargets.onSetupPasteable(getRows)\n });\n addButtonIfRegistered('tablepasterowafter', {\n tooltip: 'Paste row after',\n command: 'mceTablePasteRowAfter',\n icon: 'paste-row-after',\n onSetup: selectionTargets.onSetupPasteable(getRows)\n });\n addButtonIfRegistered('tablecutcol', {\n tooltip: 'Cut column',\n command: 'mceTableCutCol',\n icon: 'cut-column',\n onSetup: selectionTargets.onSetupColumn('onAny')\n });\n addButtonIfRegistered('tablecopycol', {\n tooltip: 'Copy column',\n command: 'mceTableCopyCol',\n icon: 'duplicate-column',\n onSetup: selectionTargets.onSetupColumn('onAny')\n });\n addButtonIfRegistered('tablepastecolbefore', {\n tooltip: 'Paste column before',\n command: 'mceTablePasteColBefore',\n icon: 'paste-column-before',\n onSetup: selectionTargets.onSetupPasteableColumn(getColumns, 'onFirst')\n });\n addButtonIfRegistered('tablepastecolafter', {\n tooltip: 'Paste column after',\n command: 'mceTablePasteColAfter',\n icon: 'paste-column-after',\n onSetup: selectionTargets.onSetupPasteableColumn(getColumns, 'onLast')\n });\n addButtonIfRegistered('tableinsertdialog', {\n tooltip: 'Insert table',\n command: 'mceInsertTableDialog',\n icon: 'table',\n onSetup: onSetupEditable$1(editor)\n });\n var tableClassList = filterNoneItem(getTableClassList(editor));\n if (tableClassList.length !== 0 && editor.queryCommandSupported('mceTableToggleClass')) {\n editor.ui.registry.addMenuButton('tableclass', {\n icon: 'table-classes',\n tooltip: 'Table styles',\n fetch: generateMenuItemsCallback(editor, tableClassList, 'tableclass', function (value) { return editor.execCommand('mceTableToggleClass', false, value); }),\n onSetup: selectionTargets.onSetupTable\n });\n }\n var tableCellClassList = filterNoneItem(getCellClassList(editor));\n if (tableCellClassList.length !== 0 && editor.queryCommandSupported('mceTableCellToggleClass')) {\n editor.ui.registry.addMenuButton('tablecellclass', {\n icon: 'table-cell-classes',\n tooltip: 'Cell styles',\n fetch: generateMenuItemsCallback(editor, tableCellClassList, 'tablecellclass', function (value) { return editor.execCommand('mceTableCellToggleClass', false, value); }),\n onSetup: selectionTargets.onSetupCellOrRow\n });\n }\n if (editor.queryCommandSupported('mceTableApplyCellStyle')) {\n editor.ui.registry.addMenuButton('tablecellvalign', {\n icon: 'vertical-align',\n tooltip: 'Vertical align',\n fetch: generateMenuItemsCallback(editor, verticalAlignValues, 'tablecellverticalalign', applyTableCellStyle(editor, 'vertical-align')),\n onSetup: selectionTargets.onSetupCellOrRow\n });\n editor.ui.registry.addMenuButton('tablecellborderwidth', {\n icon: 'border-width',\n tooltip: 'Border width',\n fetch: generateMenuItemsCallback(editor, getTableBorderWidths(editor), 'tablecellborderwidth', applyTableCellStyle(editor, 'border-width')),\n onSetup: selectionTargets.onSetupCellOrRow\n });\n editor.ui.registry.addMenuButton('tablecellborderstyle', {\n icon: 'border-style',\n tooltip: 'Border style',\n fetch: generateMenuItemsCallback(editor, getTableBorderStyles(editor), 'tablecellborderstyle', applyTableCellStyle(editor, 'border-style')),\n onSetup: selectionTargets.onSetupCellOrRow\n });\n editor.ui.registry.addMenuButton('tablecellbackgroundcolor', {\n icon: 'cell-background-color',\n tooltip: 'Background color',\n fetch: function (callback) { return callback(buildColorMenu(editor, getTableBackgroundColorMap(editor), 'background-color')); },\n onSetup: selectionTargets.onSetupCellOrRow\n });\n editor.ui.registry.addMenuButton('tablecellbordercolor', {\n icon: 'cell-border-color',\n tooltip: 'Border color',\n fetch: function (callback) { return callback(buildColorMenu(editor, getTableBorderColorMap(editor), 'border-color')); },\n onSetup: selectionTargets.onSetupCellOrRow\n });\n }\n addToggleButtonIfRegistered('tablecaption', {\n tooltip: 'Table caption',\n icon: 'table-caption',\n command: 'mceTableToggleCaption',\n onSetup: selectionTargets.onSetupTableWithCaption\n });\n addToggleButtonIfRegistered('tablerowheader', {\n tooltip: 'Row header',\n icon: 'table-top-header',\n command: 'mceTableRowType',\n onAction: changeRowHeader(editor),\n onSetup: selectionTargets.onSetupTableRowHeaders\n });\n addToggleButtonIfRegistered('tablecolheader', {\n tooltip: 'Column header',\n icon: 'table-left-header',\n command: 'mceTableColType',\n onAction: changeColumnHeader(editor),\n onSetup: selectionTargets.onSetupTableColumnHeaders\n });\n };\n var addToolbars = function (editor) {\n var isEditableTable = function (table) { return editor.dom.is(table, 'table') && editor.getBody().contains(table) && editor.dom.isEditable(table.parentNode); };\n var toolbar = getToolbar(editor);\n if (toolbar.length > 0) {\n editor.ui.registry.addContextToolbar('table', {\n predicate: isEditableTable,\n items: toolbar,\n scope: 'node',\n position: 'node'\n });\n }\n };\n var onSetupEditable = function (editor) { return function (api) {\n var nodeChanged = function () {\n api.setEnabled(editor.selection.isEditable());\n };\n editor.on('NodeChange', nodeChanged);\n nodeChanged();\n return function () {\n editor.off('NodeChange', nodeChanged);\n };\n }; };\n var addMenuItems = function (editor, selectionTargets) {\n var cmd = function (command) { return function () { return editor.execCommand(command); }; };\n var addMenuIfRegistered = function (name, spec) {\n if (editor.queryCommandSupported(spec.command)) {\n editor.ui.registry.addMenuItem(name, __assign(__assign({}, spec), { onAction: isFunction(spec.onAction) ? spec.onAction : cmd(spec.command) }));\n return true;\n }\n else {\n return false;\n }\n };\n var addToggleMenuIfRegistered = function (name, spec) {\n if (editor.queryCommandSupported(spec.command)) {\n editor.ui.registry.addToggleMenuItem(name, __assign(__assign({}, spec), { onAction: isFunction(spec.onAction) ? spec.onAction : cmd(spec.command) }));\n }\n };\n var insertTableAction = function (data) {\n editor.execCommand('mceInsertTable', false, {\n rows: data.numRows,\n columns: data.numColumns\n });\n };\n var hasRowMenuItems = [\n addMenuIfRegistered('tableinsertrowbefore', {\n text: 'Insert row before',\n icon: 'table-insert-row-above',\n command: 'mceTableInsertRowBefore',\n onSetup: selectionTargets.onSetupCellOrRow\n }),\n addMenuIfRegistered('tableinsertrowafter', {\n text: 'Insert row after',\n icon: 'table-insert-row-after',\n command: 'mceTableInsertRowAfter',\n onSetup: selectionTargets.onSetupCellOrRow\n }),\n addMenuIfRegistered('tabledeleterow', {\n text: 'Delete row',\n icon: 'table-delete-row',\n command: 'mceTableDeleteRow',\n onSetup: selectionTargets.onSetupCellOrRow\n }),\n addMenuIfRegistered('tablerowprops', {\n text: 'Row properties',\n icon: 'table-row-properties',\n command: 'mceTableRowProps',\n onSetup: selectionTargets.onSetupCellOrRow\n }),\n addMenuIfRegistered('tablecutrow', {\n text: 'Cut row',\n icon: 'cut-row',\n command: 'mceTableCutRow',\n onSetup: selectionTargets.onSetupCellOrRow\n }),\n addMenuIfRegistered('tablecopyrow', {\n text: 'Copy row',\n icon: 'duplicate-row',\n command: 'mceTableCopyRow',\n onSetup: selectionTargets.onSetupCellOrRow\n }),\n addMenuIfRegistered('tablepasterowbefore', {\n text: 'Paste row before',\n icon: 'paste-row-before',\n command: 'mceTablePasteRowBefore',\n onSetup: selectionTargets.onSetupPasteable(getRows)\n }),\n addMenuIfRegistered('tablepasterowafter', {\n text: 'Paste row after',\n icon: 'paste-row-after',\n command: 'mceTablePasteRowAfter',\n onSetup: selectionTargets.onSetupPasteable(getRows)\n })\n ];\n var hasColumnMenuItems = [\n addMenuIfRegistered('tableinsertcolumnbefore', {\n text: 'Insert column before',\n icon: 'table-insert-column-before',\n command: 'mceTableInsertColBefore',\n onSetup: selectionTargets.onSetupColumn('onFirst')\n }),\n addMenuIfRegistered('tableinsertcolumnafter', {\n text: 'Insert column after',\n icon: 'table-insert-column-after',\n command: 'mceTableInsertColAfter',\n onSetup: selectionTargets.onSetupColumn('onLast')\n }),\n addMenuIfRegistered('tabledeletecolumn', {\n text: 'Delete column',\n icon: 'table-delete-column',\n command: 'mceTableDeleteCol',\n onSetup: selectionTargets.onSetupColumn('onAny')\n }),\n addMenuIfRegistered('tablecutcolumn', {\n text: 'Cut column',\n icon: 'cut-column',\n command: 'mceTableCutCol',\n onSetup: selectionTargets.onSetupColumn('onAny')\n }),\n addMenuIfRegistered('tablecopycolumn', {\n text: 'Copy column',\n icon: 'duplicate-column',\n command: 'mceTableCopyCol',\n onSetup: selectionTargets.onSetupColumn('onAny')\n }),\n addMenuIfRegistered('tablepastecolumnbefore', {\n text: 'Paste column before',\n icon: 'paste-column-before',\n command: 'mceTablePasteColBefore',\n onSetup: selectionTargets.onSetupPasteableColumn(getColumns, 'onFirst')\n }),\n addMenuIfRegistered('tablepastecolumnafter', {\n text: 'Paste column after',\n icon: 'paste-column-after',\n command: 'mceTablePasteColAfter',\n onSetup: selectionTargets.onSetupPasteableColumn(getColumns, 'onLast')\n })\n ];\n var hasCellMenuItems = [\n addMenuIfRegistered('tablecellprops', {\n text: 'Cell properties',\n icon: 'table-cell-properties',\n command: 'mceTableCellProps',\n onSetup: selectionTargets.onSetupCellOrRow\n }),\n addMenuIfRegistered('tablemergecells', {\n text: 'Merge cells',\n icon: 'table-merge-cells',\n command: 'mceTableMergeCells',\n onSetup: selectionTargets.onSetupMergeable\n }),\n addMenuIfRegistered('tablesplitcells', {\n text: 'Split cell',\n icon: 'table-split-cells',\n command: 'mceTableSplitCells',\n onSetup: selectionTargets.onSetupUnmergeable\n })\n ];\n if (!hasTableGrid(editor)) {\n editor.ui.registry.addMenuItem('inserttable', {\n text: 'Table',\n icon: 'table',\n onAction: cmd('mceInsertTableDialog'),\n onSetup: onSetupEditable(editor)\n });\n }\n else {\n editor.ui.registry.addNestedMenuItem('inserttable', {\n text: 'Table',\n icon: 'table',\n getSubmenuItems: function () { return [{\n type: 'fancymenuitem',\n fancytype: 'inserttable',\n onAction: insertTableAction\n }]; },\n onSetup: onSetupEditable(editor)\n });\n }\n editor.ui.registry.addMenuItem('inserttabledialog', {\n text: 'Insert table',\n icon: 'table',\n onAction: cmd('mceInsertTableDialog'),\n onSetup: onSetupEditable(editor)\n });\n addMenuIfRegistered('tableprops', {\n text: 'Table properties',\n onSetup: selectionTargets.onSetupTable,\n command: 'mceTableProps'\n });\n addMenuIfRegistered('deletetable', {\n text: 'Delete table',\n icon: 'table-delete-table',\n onSetup: selectionTargets.onSetupTable,\n command: 'mceTableDelete'\n });\n if (contains(hasRowMenuItems, true)) {\n editor.ui.registry.addNestedMenuItem('row', {\n type: 'nestedmenuitem',\n text: 'Row',\n getSubmenuItems: constant('tableinsertrowbefore tableinsertrowafter tabledeleterow tablerowprops | tablecutrow tablecopyrow tablepasterowbefore tablepasterowafter')\n });\n }\n if (contains(hasColumnMenuItems, true)) {\n editor.ui.registry.addNestedMenuItem('column', {\n type: 'nestedmenuitem',\n text: 'Column',\n getSubmenuItems: constant('tableinsertcolumnbefore tableinsertcolumnafter tabledeletecolumn | tablecutcolumn tablecopycolumn tablepastecolumnbefore tablepastecolumnafter')\n });\n }\n if (contains(hasCellMenuItems, true)) {\n editor.ui.registry.addNestedMenuItem('cell', {\n type: 'nestedmenuitem',\n text: 'Cell',\n getSubmenuItems: constant('tablecellprops tablemergecells tablesplitcells')\n });\n }\n editor.ui.registry.addContextMenu('table', {\n update: function () {\n selectionTargets.resetTargets();\n return selectionTargets.targets().fold(constant(''), function (targets) {\n if (name(targets.element) === 'caption') {\n return 'tableprops deletetable';\n }\n else {\n return 'cell row column | advtablesort | tableprops deletetable';\n }\n });\n }\n });\n var tableClassList = filterNoneItem(getTableClassList(editor));\n if (tableClassList.length !== 0 && editor.queryCommandSupported('mceTableToggleClass')) {\n editor.ui.registry.addNestedMenuItem('tableclass', {\n icon: 'table-classes',\n text: 'Table styles',\n getSubmenuItems: function () { return buildMenuItems(editor, tableClassList, 'tableclass', function (value) { return editor.execCommand('mceTableToggleClass', false, value); }); },\n onSetup: selectionTargets.onSetupTable\n });\n }\n var tableCellClassList = filterNoneItem(getCellClassList(editor));\n if (tableCellClassList.length !== 0 && editor.queryCommandSupported('mceTableCellToggleClass')) {\n editor.ui.registry.addNestedMenuItem('tablecellclass', {\n icon: 'table-cell-classes',\n text: 'Cell styles',\n getSubmenuItems: function () { return buildMenuItems(editor, tableCellClassList, 'tablecellclass', function (value) { return editor.execCommand('mceTableCellToggleClass', false, value); }); },\n onSetup: selectionTargets.onSetupCellOrRow\n });\n }\n if (editor.queryCommandSupported('mceTableApplyCellStyle')) {\n editor.ui.registry.addNestedMenuItem('tablecellvalign', {\n icon: 'vertical-align',\n text: 'Vertical align',\n getSubmenuItems: function () { return buildMenuItems(editor, verticalAlignValues, 'tablecellverticalalign', applyTableCellStyle(editor, 'vertical-align')); },\n onSetup: selectionTargets.onSetupCellOrRow\n });\n editor.ui.registry.addNestedMenuItem('tablecellborderwidth', {\n icon: 'border-width',\n text: 'Border width',\n getSubmenuItems: function () { return buildMenuItems(editor, getTableBorderWidths(editor), 'tablecellborderwidth', applyTableCellStyle(editor, 'border-width')); },\n onSetup: selectionTargets.onSetupCellOrRow\n });\n editor.ui.registry.addNestedMenuItem('tablecellborderstyle', {\n icon: 'border-style',\n text: 'Border style',\n getSubmenuItems: function () { return buildMenuItems(editor, getTableBorderStyles(editor), 'tablecellborderstyle', applyTableCellStyle(editor, 'border-style')); },\n onSetup: selectionTargets.onSetupCellOrRow\n });\n editor.ui.registry.addNestedMenuItem('tablecellbackgroundcolor', {\n icon: 'cell-background-color',\n text: 'Background color',\n getSubmenuItems: function () { return buildColorMenu(editor, getTableBackgroundColorMap(editor), 'background-color'); },\n onSetup: selectionTargets.onSetupCellOrRow\n });\n editor.ui.registry.addNestedMenuItem('tablecellbordercolor', {\n icon: 'cell-border-color',\n text: 'Border color',\n getSubmenuItems: function () { return buildColorMenu(editor, getTableBorderColorMap(editor), 'border-color'); },\n onSetup: selectionTargets.onSetupCellOrRow\n });\n }\n addToggleMenuIfRegistered('tablecaption', {\n icon: 'table-caption',\n text: 'Table caption',\n command: 'mceTableToggleCaption',\n onSetup: selectionTargets.onSetupTableWithCaption\n });\n addToggleMenuIfRegistered('tablerowheader', {\n text: 'Row header',\n icon: 'table-top-header',\n command: 'mceTableRowType',\n onAction: changeRowHeader(editor),\n onSetup: selectionTargets.onSetupTableRowHeaders\n });\n addToggleMenuIfRegistered('tablecolheader', {\n text: 'Column header',\n icon: 'table-left-header',\n command: 'mceTableColType',\n onAction: changeColumnHeader(editor),\n onSetup: selectionTargets.onSetupTableRowHeaders\n });\n };\n var Plugin = function (editor) {\n var selectionTargets = getSelectionTargets(editor);\n register(editor);\n registerCommands(editor);\n addMenuItems(editor, selectionTargets);\n addButtons(editor, selectionTargets);\n addToolbars(editor);\n };\n var Plugin$1 = function () {\n global$3.add('table', Plugin);\n };\n Plugin$1();\n})();\n"],"names":["__assign","this","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","__spreadArray","to","from","pack","ar","l","Array","slice","concat","global$3","tinymce","util","Tools","resolve","isType$1","type","value","x","isArray","o","v","constructor","String","isPrototypeOf","_a","name","isSimpleType","isString","isBoolean","isUndefined","undefined","a","isNonNullable","isNullable","isFunction","isNumber","noop","constant","identity","tripleEquals","b","curry","fn","initialArgs","_i","restArgs","all","f","never","always","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","getOrNull","getOrUndefined","each","worker","toArray","toString","keys","each$1","obj","props","k","len","filter$1","pred","r","onTrue","onFalse","internalFilter","values","push","mapToArray","size","get$4","key","has","hasNonNullableKey","nativeIndexOf","indexOf","nativePush","contains","xs","ts","rawIndexOf","range","num","foldl","acc","find","until","findUntil","flatten$1","get$3","findMap","arr","fromDom$1","node","dom","SugarElement","fromHtml","html","scope","div","document","createElement","innerHTML","hasChildNodes","childNodes","console","error","fromTag","fromText","text","createTextNode","fromDom","fromPoint","docElm","y","elementFromPoint","is$2","element","selector","nodeType","elem","matches","msMatchesSelector","webkitMatchesSelector","mozMatchesSelector","bypassSelector","childElementCount","eq","e1","e2","is$1","window","Function","nodeName","toLowerCase","isType","isComment","isElement","isText","isDocument","isDocumentFragment","isTag","e","documentOrOwner","dos","ownerDocument","parent","parentNode","parents","isRoot","stop","ret","rawParent","prevSibling","previousSibling","nextSibling","children$3","firstChild","index","cs","child$3","supported","Element","attachShadow","Node","getRootNode","getShadowRoot","host","getShadowHost","inBody","fbc","fab","doc","body","ClosestOrAncestor","is","ancestor","ancestor$1","el","child$1","child$2","descendant","base","querySelector","one","closest$1","isEditable","assumeEditable","isContentEditable","target","editable","getRaw$1","contentEditable","getIsRoot","editor","getBody","addPxSuffix","test","getSelectionStart","selection","getStart","isInEditableContext","cell","descendants$1","result","children$1","children$2","descendants","querySelectorAll","all$1","rawSet","setAttribute","set$2","get$2","getAttribute","getOpt","remove$2","removeAttribute","lhs","rhs","comparator","left","lift2","oa","ob","startsWith","str","prefix","substr","start","checkRange","trim","replace","isNotEmpty","toInt","radix","parseInt","isNaN","isSupported","style","getPropertyValue","set$1","property","setProperty","internalSet","get$1","getComputedStyle","getUnsafeProperty","getRaw","raw","remove$1","removeProperty","internalRemove","getAttrValue","fallback","firstLayer","filterFirstLayer","validSectionList","detail","rowspan","colspan","rowdetail","cells","section","tags","join","elm","lookup","table","rows","columnGroups","fromRowsOrColGroups","elems","getSection","row","cells_1","columnGroup","columns","column","cells$1","getParentSection","group","parentName","isValidSection","getLockedColumnsFromTable","lockedColStr","match","lockedCols","mapToObject","filterItems","warehouse","generate$1","list","access","lockedColumns","rowData","maxRows","maxColumns","rowCount","_b","pass","fail","partition","colgroupRows","currentRow","rowCell","isLocked","current","extended","occupiedColumnPosition","occupiedRowPosition","columnPosition","newpos","Math","max","_c","last","columnsGroup","columnIndex","colIndex","columnext","generateColumns","colgroup$1","colgroup","colgroups","grid$1","grid","Warehouse","rows$1","columnGroups$1","fromTable$1","item","filtered","w","global$2","getTDTHOverallStyle","firstChildStyle","select","currentStyle","getStyle","setAlign","split","align","formatter","remove","fireTableModified","data","dispatch","toNumber","px","parseFloat","getProp","getCalculatedWidth","boxSizing","width","getBoundingClientRect","offsetWidth","upper","lower","calcContentBoxSize","getInner","global$1","defaultCellBorderWidths","title","defaultCellBorderStyles","defaultWidth","getPixelForcedWidth","parentBlock","getParent","isBlock","option","options","get","getTableSizingMode","getTableBorderWidths","getTableBorderStyles","hasAdvancedCellTab","hasAdvancedRowTab","hasAdvancedTableTab","hasAppearanceOptions","hasTableGrid","shouldStyleWithCss","getCellClassList","getRowClassList","getTableClassList","getToolbar","getTableBackgroundColorMap","getTableBorderColorMap","isPixelsForced","isResponsiveForced","getDefaultStyles","defaultStyles","isSet","determineDefaultStyles","getDefaultAttributes","defaultAttributes","determineDefaultAttributes","isWithin","bounds","startCol","finishCol","startRow","finishRow","getAnyBox","startCell","finishCell","startCoords","finishCoords","sc","fc","detailA","detailB","min","getBox$1","isRect","detailIsWithin","j","isRectangular","getWarehouse","before","marker","insertBefore","after$1","append$1","prepend","appendChild","wrap","wrapper","after","elements","append","removeChild","unwrap","children","api","getOption","nodeValue","set","NodeValue","TagBoundaries","unsafeOne","universe","look","head","tail","commonElement","eachr","end","sharedOne$1","up","closest","down","styles","attrs","copyTo","source","destination","setAll","attributes","attr","insert","afterAll","appendAll","create","nu","clone","cloneNode","query","comparePosition","other","compareDocumentPosition","isSpecial","getLanguage","getText","setText","isBoundary","isEmptyTag","isNonEditable","lookupTable","container","getEdges","firstSelectedSelector","lastSelectedSelector","first","_universe","retrieve","sels","retrieve$1","retrieveBox","edges","sectionSelector","firstAncestor","lastAncestor","fA","lA","getBox","nodes","strSelected","strFirstSelected","strLastSelected","ephemera","selected","selectedSelector","firstSelected","lastSelected","getSelectionFromSelector","initCell","cellName","getSelectionCellOrCaption","getSelectionCell","getCellsFromSelection","model","getSelectedCells","getRowsFromSelection","cellOpt","rowsOpt","verticalAlignValues","shorthandRegex","longformRegex","normalizeHex","hex","numChars","substring","removeFromStart","toUpperCase","fromString$1","isHexString","toHex","component","fromRgba","rgbaColour","hexColour","red","green","blue","rgbRegex","rgbaRegex","alpha","fromStringValues","g","fromString","rgbaString","rgbMatch","exec","rgbaMatch","Cell","initial","unbindable","doRevoke","unbind","subject","revoke","clear","onSetupToggle","formatName","formatValue","boundCallback","init","selectedCells","checkNode","setActive","formatChanged","initialized","on","isListGroup","buildListItems","items","menu","buildMenuItems","format","onAction","getSubmenuItems","onSetup","applyTableCellStyle","execCommand","filterNoneItem","generateMenuItemsCallback","callback","buildColorMenu","colorList","colorMap","entry","color","canvas","height","canvasContext","getContext","clearRect","fillStyle","fillRect","rgba","getImageData","fancytype","initData","colors","allowCustomColors","changeRowHeader","newType","queryCommandValue","changeColumnHeader","label","getItems$2","classes","getClassList$1","getAdvancedTab","dialogName","advTabItems","DomModifier","setAttrib","setStyle","prop","setFormat","isHeaderCell","getRowHeaderType","isHeaderRow","isHeaderCells","findCommonCellType","headerCells","findCommonRowType","rowTypes","subType","getRowType$1","hasHeader","hasFooter","hasBody","findInWarehouse","extractCells","cat","cell$1","lc","onCells","allUnlocked","isUnlockedTableCell","onUnlockedMergable","_warehouse","mergable","onMergable","mergeable","onUnlockedUnmergable","unmergable","onUnmergable","Adt","cases","constructors","adt","acase","count","keys$1","args","argLength","foldArgs","branches","branchKeys","reqKey","log","params","only","middle","right","getRowsType","house","lastSelectedCell","minRowRange","maxRowRange","selectedRows","rgbToHex","h","extractAdvancedStyles","borderwidth","borderstyle","bordercolor","backgroundcolor","getSharedValues","baseData","comparisonData","itemValue","itemKey","comparisonValue","getAlignment","formats","matchNode","getHAlignment","getVAlignment","getRowType","allCells","cellA","cellB","col","applyStyleData$1","wasChanged","isSingleCell","cellElm","shouldOverrideCurrentValue","modifier","colModifier","shouldUpdate","class","updateSimpleProps$1","updateAdvancedProps$1","halign","setVAlign","valign","onSubmitCellForm","oldData","getData","close","undoManager","transact","modifiedData","styleModified","_value","structureModified","celltype","no_events","applyStructureData$1","structure","applyCellData","focus","getData$1","cellsData","colElm","getAttrib","extractDataFromCellElement","open$2","dialogTabPanel","tabs","dialogPanel","windowManager","open","buttons","primary","initialData","onSubmit","formChildren","getItems$1","getClassList","applyStyleData","rowElm","updateSimpleProps","updateAdvancedProps","onSubmitRowForm","typeModified_1","styleModified_1","applyStructureData","applyRowData","open$1","rowsData","extractDataFromRowElement","getItems","insertNewTable","rowColCountItems","inputMode","appearanceItems","classListItem","styleTDTH","tagName","setStyles","applyDataToElement","tableElm","shouldApplyOnCell","shouldStyleWithCss$1","hasAdvancedTableTab$1","removePxSuffix","border","cellspacing","cellpadding","cellStyles","padding","isEmpty$1","advData","setAttribs","onSubmitTableForm","cols","rows_1","applicableCellProperties","captionElm","caption","addVisual","captionModified","hasAdvTableTab","spacing","borderWidth","advStyle","extractDataFromSettings","optBorderWidth","getBorder","extractDataFromTableElement","generalPanel","dialogBody","registerCommands","mceTableProps","mceTableRowProps","mceTableCellProps","mceInsertTableDialog","func","addCommand","hasSpan","span","getSelectionTargets","targets","changeHandlers","selectionDetails","isCaption","isDisabledForSelection","details","getEnd","getSelectionEnd","findTargets","startCellOrCaption","oot","startTable","endTable","noMenu","forMenu","getExtractedDetails","locked","onAny","onFirst","onLast","unmergeable","resetTargets","called","cached","setupHandler","handler","isDisabled","setEnabled","onSetupWithToggle","isActive","isDisabledFromLocked","lockedDisable","onSetupTableHeaders","command","headerType","onSetupTableRowHeaders","onSetupTableColumnHeaders","onSetupTable","_","onSetupCellOrRow","onSetupColumn","onSetupPasteable","getClipboardData","onSetupPasteableColumn","onSetupMergeable","_targets","onSetupUnmergeable","onSetupTableWithCaption","global","tableTypeBase","tableTypeRow","tableTypeColumn","read","getType","getRows","getColumns","onSetupEditable$1","nodeChanged","off","onSetupEditable","Plugin","selectionTargets","registerOption","register","processor","default","deviceType","isTouch","cmd","addMenuIfRegistered","spec","queryCommandSupported","ui","registry","addMenuItem","addToggleMenuIfRegistered","addToggleMenuItem","insertTableAction","numRows","numColumns","hasRowMenuItems","icon","hasColumnMenuItems","hasCellMenuItems","addNestedMenuItem","addContextMenu","update","tableClassList","tableCellClassList","addMenuItems","addMenuButton","tooltip","fetch","addButtonIfRegistered","addButton","addToggleButtonIfRegistered","addToggleButton","addButtons","toolbar","addContextToolbar","position","addToolbars","add"],"mappings":"kGAIA,IAAIA,EAAYC,GAAQA,EAAKD,UAAa,WAStC,OARAA,EAAWE,OAAOC,QAAU,SAASC,GACjC,IAAK,IAAIC,EAAGC,EAAI,EAAG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AAM,mBACNhD,QAAS,kBACTtQ,SAAU0B,GAAgBlZ,GAC1B0X,QAASgS,EAAiB1B,yBAE9B4D,EAA4B,iBAAkB,CAC1CJ,QAAS,gBACTV,KAAM,oBACNhD,QAAS,kBACTtQ,SAAU6B,GAAmBrZ,GAC7B0X,QAASgS,EAAiBzB,4BAoT9B6D,CAAW9rB,EAAQ0pB,GAjTL,SAAU1pB,GACxB,IACI+rB,EAAUhgB,GAAW/L,GACrB+rB,EAAQp6B,OAAS,GACjBqO,EAAOqqB,GAAGC,SAAS0B,kBAAkB,QAAS,CAC1C91B,UAJc,SAAUwO,GAAS,OAAO1E,EAAOpG,IAAIiF,GAAG6F,EAAO,UAAY1E,EAAOC,UAAUtH,SAAS+L,IAAU1E,EAAOpG,IAAI4F,WAAWkF,EAAMzH,aAKzIma,MAAO2U,EACP/xB,MAAO,OACPiyB,SAAU,SA0SlBC,CAAYlsB,IAGZtN,EAASy5B,IAAI,QAAS1C,GAG7B,CA9yGD"}
|
@@ -1,3 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
tinymce.Resource.add("content/default/content.css",'body{font-family:-apple-system,BlinkMacSystemFont,\'Segoe UI\',Roboto,Oxygen,Ubuntu,Cantarell,\'Open Sans\',\'Helvetica Neue\',sans-serif;line-height:1.4;margin:1rem}table{border-collapse:collapse}table:not([cellpadding]) td,table:not([cellpadding]) th{padding:.4rem}table[border]:not([border="0"]):not([style*=border-width]) td,table[border]:not([border="0"]):not([style*=border-width]) th{border-width:1px}table[border]:not([border="0"]):not([style*=border-style]) td,table[border]:not([border="0"]):not([style*=border-style]) th{border-style:solid}table[border]:not([border="0"]):not([style*=border-color]) td,table[border]:not([border="0"]):not([style*=border-color]) th{border-color:#ccc}figure{display:table;margin:1rem auto}figure figcaption{color:#999;display:block;margin-top:.25rem;text-align:center}hr{border-color:#ccc;border-style:solid;border-width:1px 0 0 0}code{background-color:#e8e8e8;border-radius:3px;padding:.1rem .2rem}.mce-content-body:not([dir=rtl]) blockquote{border-left:2px solid #ccc;margin-left:1.5rem;padding-left:1rem}.mce-content-body[dir=rtl] blockquote{border-right:2px solid #ccc;margin-right:1.5rem;padding-right:1rem}');
|
3
|
-
//# sourceMappingURL=content.mjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"content.mjs","sources":["../../../../../../public/tinymce/skins/content/default/content.js"],"sourcesContent":["\"use strict\";\ntinymce.Resource.add('content/default/content.css', \"body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Open Sans','Helvetica Neue',sans-serif;line-height:1.4;margin:1rem}table{border-collapse:collapse}table:not([cellpadding]) td,table:not([cellpadding]) th{padding:.4rem}table[border]:not([border=\\\"0\\\"]):not([style*=border-width]) td,table[border]:not([border=\\\"0\\\"]):not([style*=border-width]) th{border-width:1px}table[border]:not([border=\\\"0\\\"]):not([style*=border-style]) td,table[border]:not([border=\\\"0\\\"]):not([style*=border-style]) th{border-style:solid}table[border]:not([border=\\\"0\\\"]):not([style*=border-color]) td,table[border]:not([border=\\\"0\\\"]):not([style*=border-color]) th{border-color:#ccc}figure{display:table;margin:1rem auto}figure figcaption{color:#999;display:block;margin-top:.25rem;text-align:center}hr{border-color:#ccc;border-style:solid;border-width:1px 0 0 0}code{background-color:#e8e8e8;border-radius:3px;padding:.1rem .2rem}.mce-content-body:not([dir=rtl]) blockquote{border-left:2px solid #ccc;margin-left:1.5rem;padding-left:1rem}.mce-content-body[dir=rtl] blockquote{border-right:2px solid #ccc;margin-right:1.5rem;padding-right:1rem}\");\n//# sourceMappingURL=content.js.map\n"],"names":["tinymce"],"mappings":";AACAA"}
|