diff --git a/changelog.txt b/changelog.txt index 51105329948..5348fdfb739 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,6 @@ +Version 4.8.0-mysw-4 (2018-07-03) + Messed up merge, fixed creating multiple modal dropdowns + Version 4.8.0-mysw-3 (2018-07-03) Moved rimraf dependency so grunt prod and postinstall script would work diff --git a/js/tinymce/plugins/advlist/plugin.js b/js/tinymce/plugins/advlist/plugin.js index 1dea7737c4c..ea513d4986e 100644 --- a/js/tinymce/plugins/advlist/plugin.js +++ b/js/tinymce/plugins/advlist/plugin.js @@ -10,17 +10,17 @@ var advlist = (function () { var cmd = listName === 'UL' ? 'InsertUnorderedList' : 'InsertOrderedList'; editor.execCommand(cmd, false, styleValue === false ? null : { 'list-style-type': styleValue }); }; - var $_bpswr58fjj660zn5 = { applyListFormat: applyListFormat }; + var $_dulckp8fjj68z3xr = { applyListFormat: applyListFormat }; var register = function (editor) { editor.addCommand('ApplyUnorderedListStyle', function (ui, value) { - $_bpswr58fjj660zn5.applyListFormat(editor, 'UL', value['list-style-type']); + $_dulckp8fjj68z3xr.applyListFormat(editor, 'UL', value['list-style-type']); }); editor.addCommand('ApplyOrderedListStyle', function (ui, value) { - $_bpswr58fjj660zn5.applyListFormat(editor, 'OL', value['list-style-type']); + $_dulckp8fjj68z3xr.applyListFormat(editor, 'OL', value['list-style-type']); }); }; - var $_44guuf8ejj660zn2 = { register: register }; + var $_6nkmkj8ejj68z3xo = { register: register }; var getNumberStyles = function (editor) { var styles = editor.getParam('advlist_number_styles', 'default,lower-alpha,lower-greek,lower-roman,upper-alpha,upper-roman'); @@ -30,7 +30,7 @@ var advlist = (function () { var styles = editor.getParam('advlist_bullet_styles', 'default,circle,disc,square'); return styles ? styles.split(/[ ,]/) : []; }; - var $_5wo7r48hjj660znd = { + var $_9vh83f8hjj68z3xz = { getNumberStyles: getNumberStyles, getBulletStyles: getBulletStyles }; @@ -50,7 +50,7 @@ var advlist = (function () { var listElm = editor.dom.getParent(editor.selection.getNode(), 'ol,ul'); return editor.dom.getStyle(listElm, 'listStyleType') || ''; }; - var $_9tkiha8ijj660znf = { + var $_bojlj78ijj68z3y3 = { isTableCellNode: isTableCellNode, isListNode: isListNode, getSelectedStyleType: getSelectedStyleType @@ -71,7 +71,7 @@ var advlist = (function () { }; }); }; - var $_5yevsb8jjj660znh = { toMenuItems: toMenuItems }; + var $_f9byqn8jjj68z3y6 = { toMenuItems: toMenuItems }; var findIndex = function (list, predicate) { for (var index = 0; index < list.length; index++) { @@ -86,16 +86,16 @@ var advlist = (function () { return function (e) { var ctrl = e.control; editor.on('NodeChange', function (e) { - var tableCellIndex = findIndex(e.parents, $_9tkiha8ijj660znf.isTableCellNode); + var tableCellIndex = findIndex(e.parents, $_bojlj78ijj68z3y3.isTableCellNode); var parents = tableCellIndex !== -1 ? e.parents.slice(0, tableCellIndex) : e.parents; - var lists = global$1.grep(parents, $_9tkiha8ijj660znf.isListNode(editor)); + var lists = global$1.grep(parents, $_bojlj78ijj68z3y3.isListNode(editor)); ctrl.active(lists.length > 0 && lists[0].nodeName === listName); }); }; }; var updateSelection = function (editor) { return function (e) { - var listStyleType = $_9tkiha8ijj660znf.getSelectedStyleType(editor); + var listStyleType = $_bojlj78ijj68z3y3.getSelectedStyleType(editor); e.control.items().each(function (ctrl) { ctrl.active(ctrl.settings.data === listStyleType); }); @@ -106,11 +106,11 @@ var advlist = (function () { active: false, type: 'splitbutton', tooltip: tooltip, - menu: $_5yevsb8jjj660znh.toMenuItems(styles), + menu: $_f9byqn8jjj68z3y6.toMenuItems(styles), onPostRender: listState(editor, nodeName), onshow: updateSelection(editor), onselect: function (e) { - $_bpswr58fjj660zn5.applyListFormat(editor, nodeName, e.control.settings.data); + $_dulckp8fjj68z3xr.applyListFormat(editor, nodeName, e.control.settings.data); }, onclick: function () { editor.execCommand(cmd); @@ -136,10 +136,10 @@ var advlist = (function () { } }; var register$1 = function (editor) { - addControl(editor, 'numlist', 'Numbered list', 'InsertOrderedList', 'OL', $_5wo7r48hjj660znd.getNumberStyles(editor)); - addControl(editor, 'bullist', 'Bullet list', 'InsertUnorderedList', 'UL', $_5wo7r48hjj660znd.getBulletStyles(editor)); + addControl(editor, 'numlist', 'Numbered list', 'InsertOrderedList', 'OL', $_9vh83f8hjj68z3xz.getNumberStyles(editor)); + addControl(editor, 'bullist', 'Bullet list', 'InsertUnorderedList', 'UL', $_9vh83f8hjj68z3xz.getBulletStyles(editor)); }; - var $_fzy22h8gjj660zn7 = { register: register$1 }; + var $_bqmi5p8gjj68z3xt = { register: register$1 }; global.add('advlist', function (editor) { var hasPlugin = function (editor, plugin) { @@ -147,8 +147,8 @@ var advlist = (function () { return global$1.inArray(plugins.split(/[ ,]/), plugin) !== -1; }; if (hasPlugin(editor, 'lists')) { - $_fzy22h8gjj660zn7.register(editor); - $_44guuf8ejj660zn2.register(editor); + $_bqmi5p8gjj68z3xt.register(editor); + $_6nkmkj8ejj68z3xo.register(editor); } }); function Plugin () { diff --git a/js/tinymce/plugins/anchor/plugin.js b/js/tinymce/plugins/anchor/plugin.js index 85fbdde2af5..d99df0d8be3 100644 --- a/js/tinymce/plugins/anchor/plugin.js +++ b/js/tinymce/plugins/anchor/plugin.js @@ -25,23 +25,23 @@ var anchor = (function () { editor.execCommand('mceInsertContent', false, editor.dom.createHTML('a', { id: id })); } }; - var $_a8p71k8ojj660zo6 = { + var $_ahkx5g8ojj68z3zj = { isValidId: isValidId, getId: getId, insert: insert }; var insertAnchor = function (editor, newId) { - if (!$_a8p71k8ojj660zo6.isValidId(newId)) { + if (!$_ahkx5g8ojj68z3zj.isValidId(newId)) { editor.windowManager.alert('Id should start with a letter, followed only by letters, numbers, dashes, dots, colons or underscores.'); return true; } else { - $_a8p71k8ojj660zo6.insert(editor, newId); + $_ahkx5g8ojj68z3zj.insert(editor, newId); return false; } }; var open = function (editor) { - var currentId = $_a8p71k8ojj660zo6.getId(editor); + var currentId = $_ahkx5g8ojj68z3zj.getId(editor); editor.windowManager.open({ title: 'Anchor', body: { @@ -59,14 +59,14 @@ var anchor = (function () { } }); }; - var $_dho2yt8njj660zo3 = { open: open }; + var $_9qmmj78njj68z3ze = { open: open }; var register = function (editor) { editor.addCommand('mceAnchor', function () { - $_dho2yt8njj660zo3.open(editor); + $_9qmmj78njj68z3ze.open(editor); }); }; - var $_cvfs9y8mjj660zo1 = { register: register }; + var $_eg7icc8mjj68z3zb = { register: register }; var isAnchorNode = function (node) { return !node.attr('href') && (node.attr('id') || node.attr('name')) && !node.firstChild; @@ -86,7 +86,7 @@ var anchor = (function () { editor.serializer.addNodeFilter('a', setContentEditable(null)); }); }; - var $_8bgzut8pjj660zo9 = { setup: setup }; + var $_3nf1sq8pjj68z3zm = { setup: setup }; var register$1 = function (editor) { editor.addButton('anchor', { @@ -102,12 +102,12 @@ var anchor = (function () { cmd: 'mceAnchor' }); }; - var $_boif7w8qjj660zob = { register: register$1 }; + var $_3jqyg38qjj68z3zq = { register: register$1 }; global.add('anchor', function (editor) { - $_8bgzut8pjj660zo9.setup(editor); - $_cvfs9y8mjj660zo1.register(editor); - $_boif7w8qjj660zob.register(editor); + $_3nf1sq8pjj68z3zm.setup(editor); + $_eg7icc8mjj68z3zb.register(editor); + $_3jqyg38qjj68z3zq.register(editor); }); function Plugin () { } diff --git a/js/tinymce/plugins/autolink/plugin.js b/js/tinymce/plugins/autolink/plugin.js index efc5d3e96a3..d1b94d4c241 100644 --- a/js/tinymce/plugins/autolink/plugin.js +++ b/js/tinymce/plugins/autolink/plugin.js @@ -12,7 +12,7 @@ var autolink = (function () { var getDefaultLinkTarget = function (editor) { return editor.getParam('default_link_target', ''); }; - var $_bqs5em8vjj660zp2 = { + var $_e8kbi68vjj68z40o = { getAutoLinkPattern: getAutoLinkPattern, getDefaultLinkTarget: getDefaultLinkTarget }; @@ -57,8 +57,8 @@ var autolink = (function () { }; var parseCurrentLine = function (editor, endOffset, delimiter) { var rng, end, start, endContainer, bookmark, text, matches, prev, len, rngText; - var autoLinkPattern = $_bqs5em8vjj660zp2.getAutoLinkPattern(editor); - var defaultLinkTarget = $_bqs5em8vjj660zp2.getDefaultLinkTarget(editor); + var autoLinkPattern = $_e8kbi68vjj68z40o.getAutoLinkPattern(editor); + var defaultLinkTarget = $_e8kbi68vjj68z40o.getDefaultLinkTarget(editor); if (editor.selection.getNode().tagName === 'A') { return; } @@ -166,10 +166,10 @@ var autolink = (function () { } }); }; - var $_fe1eu58tjj660zou = { setup: setup }; + var $_gpsaw8tjj68z40f = { setup: setup }; global.add('autolink', function (editor) { - $_fe1eu58tjj660zou.setup(editor); + $_gpsaw8tjj68z40f.setup(editor); }); function Plugin () { } diff --git a/js/tinymce/plugins/autoresize/plugin.js b/js/tinymce/plugins/autoresize/plugin.js index 85070f28763..11b20622eb3 100644 --- a/js/tinymce/plugins/autoresize/plugin.js +++ b/js/tinymce/plugins/autoresize/plugin.js @@ -41,7 +41,7 @@ var autoresize = (function () { var shouldAutoResizeOnInit = function (editor) { return editor.getParam('autoresize_on_init', true); }; - var $_5yqksf93jj660zq0 = { + var $_c8h0x793jj68z429 = { getAutoResizeMinHeight: getAutoResizeMinHeight, getAutoResizeMaxHeight: getAutoResizeMaxHeight, getAutoResizeOverflowPadding: getAutoResizeOverflowPadding, @@ -84,7 +84,7 @@ var autoresize = (function () { return; } body = doc.body; - resizeHeight = $_5yqksf93jj660zq0.getAutoResizeMinHeight(editor); + resizeHeight = $_c8h0x793jj68z429.getAutoResizeMinHeight(editor); marginTop = dom.getStyle(body, 'margin-top', true); marginBottom = dom.getStyle(body, 'margin-bottom', true); paddingTop = dom.getStyle(body, 'padding-top', true); @@ -95,10 +95,10 @@ var autoresize = (function () { if (isNaN(myHeight) || myHeight <= 0) { myHeight = global$1.ie ? body.scrollHeight : global$1.webkit && body.clientHeight === 0 ? 0 : body.offsetHeight; } - if (myHeight > $_5yqksf93jj660zq0.getAutoResizeMinHeight(editor)) { + if (myHeight > $_c8h0x793jj68z429.getAutoResizeMinHeight(editor)) { resizeHeight = myHeight; } - var maxHeight = $_5yqksf93jj660zq0.getAutoResizeMaxHeight(editor); + var maxHeight = $_c8h0x793jj68z429.getAutoResizeMaxHeight(editor); if (maxHeight && myHeight > maxHeight) { resizeHeight = maxHeight; toggleScrolling(editor, true); @@ -118,8 +118,8 @@ var autoresize = (function () { editor.on('init', function () { var overflowPadding, bottomMargin; var dom = editor.dom; - overflowPadding = $_5yqksf93jj660zq0.getAutoResizeOverflowPadding(editor); - bottomMargin = $_5yqksf93jj660zq0.getAutoResizeBottomMargin(editor); + overflowPadding = $_c8h0x793jj68z429.getAutoResizeOverflowPadding(editor); + bottomMargin = $_c8h0x793jj68z429.getAutoResizeBottomMargin(editor); if (overflowPadding !== false) { dom.setStyles(editor.getBody(), { paddingLeft: overflowPadding, @@ -133,7 +133,7 @@ var autoresize = (function () { editor.on('nodechange setcontent keyup FullscreenStateChanged', function (e) { resize(editor, oldSize); }); - if ($_5yqksf93jj660zq0.shouldAutoResizeOnInit(editor)) { + if ($_c8h0x793jj68z429.shouldAutoResizeOnInit(editor)) { editor.on('init', function () { wait(editor, oldSize, 20, 100, function () { wait(editor, oldSize, 5, 1000); @@ -141,23 +141,23 @@ var autoresize = (function () { }); } }; - var $_chgmgi90jj660zpu = { + var $_fsa1f890jj68z421 = { setup: setup, resize: resize }; var register = function (editor, oldSize) { editor.addCommand('mceAutoResize', function () { - $_chgmgi90jj660zpu.resize(editor, oldSize); + $_fsa1f890jj68z421.resize(editor, oldSize); }); }; - var $_6icf5s8zjj660zpr = { register: register }; + var $_9904zb8zjj68z41x = { register: register }; global.add('autoresize', function (editor) { if (!editor.inline) { var oldSize = Cell(0); - $_6icf5s8zjj660zpr.register(editor, oldSize); - $_chgmgi90jj660zpu.setup(editor, oldSize); + $_9904zb8zjj68z41x.register(editor, oldSize); + $_fsa1f890jj68z421.setup(editor, oldSize); } }); function Plugin () { diff --git a/js/tinymce/plugins/autosave/plugin.js b/js/tinymce/plugins/autosave/plugin.js index f24c6f57883..260ff188c5c 100644 --- a/js/tinymce/plugins/autosave/plugin.js +++ b/js/tinymce/plugins/autosave/plugin.js @@ -35,7 +35,7 @@ var autosave = (function () { var fireRemoveDraft = function (editor) { return editor.fire('RemoveDraft'); }; - var $_7wbasi9bjj660zqx = { + var $_7pwa8m9bjj68z43y = { fireRestoreDraft: fireRestoreDraft, fireStoreDraft: fireStoreDraft, fireRemoveDraft: fireRemoveDraft @@ -49,7 +49,7 @@ var autosave = (function () { time = /^(\d+)([ms]?)$/.exec('' + (time || defaultTime)); return (time[2] ? multiples[time[2]] : 1) * parseInt(time, 10); }; - var $_f6xet79djj660zr1 = { parse: parse }; + var $_6jzpzd9djj68z446 = { parse: parse }; var shouldAskBeforeUnload = function (editor) { return editor.getParam('autosave_ask_before_unload', true); @@ -66,12 +66,12 @@ var autosave = (function () { return editor.getParam('autosave_restore_when_empty', false); }; var getAutoSaveInterval = function (editor) { - return $_f6xet79djj660zr1.parse(editor.settings.autosave_interval, '30s'); + return $_6jzpzd9djj68z446.parse(editor.settings.autosave_interval, '30s'); }; var getAutoSaveRetention = function (editor) { - return $_f6xet79djj660zr1.parse(editor.settings.autosave_retention, '20m'); + return $_6jzpzd9djj68z446.parse(editor.settings.autosave_retention, '20m'); }; - var $_4vlt8q9cjj660zqz = { + var $_fepmir9cjj68z442 = { shouldAskBeforeUnload: shouldAskBeforeUnload, getAutoSavePrefix: getAutoSavePrefix, shouldRestoreWhenEmpty: shouldRestoreWhenEmpty, @@ -85,41 +85,41 @@ var autosave = (function () { return html === '' || new RegExp('^<' + forcedRootBlockName + '[^>]*>((\xA0| |[ \t]|]*>)+?|)|
$', 'i').test(html); }; var hasDraft = function (editor) { - var time = parseInt(global$1.getItem($_4vlt8q9cjj660zqz.getAutoSavePrefix(editor) + 'time'), 10) || 0; - if (new Date().getTime() - time > $_4vlt8q9cjj660zqz.getAutoSaveRetention(editor)) { + var time = parseInt(global$1.getItem($_fepmir9cjj68z442.getAutoSavePrefix(editor) + 'time'), 10) || 0; + if (new Date().getTime() - time > $_fepmir9cjj68z442.getAutoSaveRetention(editor)) { removeDraft(editor, false); return false; } return true; }; var removeDraft = function (editor, fire) { - var prefix = $_4vlt8q9cjj660zqz.getAutoSavePrefix(editor); + var prefix = $_fepmir9cjj68z442.getAutoSavePrefix(editor); global$1.removeItem(prefix + 'draft'); global$1.removeItem(prefix + 'time'); if (fire !== false) { - $_7wbasi9bjj660zqx.fireRemoveDraft(editor); + $_7pwa8m9bjj68z43y.fireRemoveDraft(editor); } }; var storeDraft = function (editor) { - var prefix = $_4vlt8q9cjj660zqz.getAutoSavePrefix(editor); + var prefix = $_fepmir9cjj68z442.getAutoSavePrefix(editor); if (!isEmpty(editor) && editor.isDirty()) { global$1.setItem(prefix + 'draft', editor.getContent({ format: 'raw', no_events: true })); global$1.setItem(prefix + 'time', new Date().getTime().toString()); - $_7wbasi9bjj660zqx.fireStoreDraft(editor); + $_7pwa8m9bjj68z43y.fireStoreDraft(editor); } }; var restoreDraft = function (editor) { - var prefix = $_4vlt8q9cjj660zqz.getAutoSavePrefix(editor); + var prefix = $_fepmir9cjj68z442.getAutoSavePrefix(editor); if (hasDraft(editor)) { editor.setContent(global$1.getItem(prefix + 'draft'), { format: 'raw' }); - $_7wbasi9bjj660zqx.fireRestoreDraft(editor); + $_7pwa8m9bjj68z43y.fireRestoreDraft(editor); } }; var startStoreDraft = function (editor, started) { - var interval = $_4vlt8q9cjj660zqz.getAutoSaveInterval(editor); + var interval = $_fepmir9cjj68z442.getAutoSaveInterval(editor); if (!started.get()) { setInterval(function () { if (!editor.removed) { @@ -136,7 +136,7 @@ var autosave = (function () { }); editor.focus(); }; - var $_ffz7iq98jj660zqt = { + var $_6n9kok98jj68z43q = { isEmpty: isEmpty, hasDraft: hasDraft, removeDraft: removeDraft, @@ -154,14 +154,14 @@ var autosave = (function () { }; var get = function (editor) { return { - hasDraft: curry($_ffz7iq98jj660zqt.hasDraft, editor), - storeDraft: curry($_ffz7iq98jj660zqt.storeDraft, editor), - restoreDraft: curry($_ffz7iq98jj660zqt.restoreDraft, editor), - removeDraft: curry($_ffz7iq98jj660zqt.removeDraft, editor), - isEmpty: curry($_ffz7iq98jj660zqt.isEmpty, editor) + hasDraft: curry($_6n9kok98jj68z43q.hasDraft, editor), + storeDraft: curry($_6n9kok98jj68z43q.storeDraft, editor), + restoreDraft: curry($_6n9kok98jj68z43q.restoreDraft, editor), + removeDraft: curry($_6n9kok98jj68z43q.removeDraft, editor), + isEmpty: curry($_6n9kok98jj68z43q.isEmpty, editor) }; }; - var $_fmluzi97jj660zqq = { get: get }; + var $_6sc1sw97jj68z43l = { get: get }; var global$3 = tinymce.util.Tools.resolve('tinymce.EditorManager'); @@ -171,7 +171,7 @@ var autosave = (function () { if (editor.plugins.autosave) { editor.plugins.autosave.storeDraft(); } - if (!msg && editor.isDirty() && $_4vlt8q9cjj660zqz.shouldAskBeforeUnload(editor)) { + if (!msg && editor.isDirty() && $_fepmir9cjj68z442.shouldAskBeforeUnload(editor)) { msg = editor.translate('You have unsaved changes are you sure you want to navigate away?'); } }); @@ -180,42 +180,42 @@ var autosave = (function () { var setup = function (editor) { window.onbeforeunload = global$3._beforeUnloadHandler; }; - var $_32evzq9fjj660zrj = { setup: setup }; + var $_am5yll9fjj68z454 = { setup: setup }; var postRender = function (editor, started) { return function (e) { var ctrl = e.control; - ctrl.disabled(!$_ffz7iq98jj660zqt.hasDraft(editor)); + ctrl.disabled(!$_6n9kok98jj68z43q.hasDraft(editor)); editor.on('StoreDraft RestoreDraft RemoveDraft', function () { - ctrl.disabled(!$_ffz7iq98jj660zqt.hasDraft(editor)); + ctrl.disabled(!$_6n9kok98jj68z43q.hasDraft(editor)); }); - $_ffz7iq98jj660zqt.startStoreDraft(editor, started); + $_6n9kok98jj68z43q.startStoreDraft(editor, started); }; }; var register = function (editor, started) { editor.addButton('restoredraft', { title: 'Restore last draft', onclick: function () { - $_ffz7iq98jj660zqt.restoreLastDraft(editor); + $_6n9kok98jj68z43q.restoreLastDraft(editor); }, onPostRender: postRender(editor, started) }); editor.addMenuItem('restoredraft', { text: 'Restore last draft', onclick: function () { - $_ffz7iq98jj660zqt.restoreLastDraft(editor); + $_6n9kok98jj68z43q.restoreLastDraft(editor); }, onPostRender: postRender(editor, started), context: 'file' }); }; - var $_3o9x8o9hjj660zrn = { register: register }; + var $_elizgv9hjj68z45c = { register: register }; global.add('autosave', function (editor) { var started = Cell(false); - $_32evzq9fjj660zrj.setup(editor); - $_3o9x8o9hjj660zrn.register(editor, started); - return $_fmluzi97jj660zqq.get(editor); + $_am5yll9fjj68z454.setup(editor); + $_elizgv9hjj68z45c.register(editor, started); + return $_6sc1sw97jj68z43l.get(editor); }); function Plugin () { } diff --git a/js/tinymce/plugins/bbcode/plugin.js b/js/tinymce/plugins/bbcode/plugin.js index c4217fe8f34..c7b54bcfaeb 100644 --- a/js/tinymce/plugins/bbcode/plugin.js +++ b/js/tinymce/plugins/bbcode/plugin.js @@ -70,7 +70,7 @@ var bbcode = (function () { rep(/\[quote.*?\](.*?)\[\/quote\]/gi, '$1 '); return s; }; - var $_7jd48t9kjj660zsw = { + var $_8x71bm9kjj68z4ev = { html2bbcode: html2bbcode, bbcode2html: bbcode2html }; @@ -79,14 +79,14 @@ var bbcode = (function () { return { init: function (editor) { editor.on('beforeSetContent', function (e) { - e.content = $_7jd48t9kjj660zsw.bbcode2html(e.content); + e.content = $_8x71bm9kjj68z4ev.bbcode2html(e.content); }); editor.on('postProcess', function (e) { if (e.set) { - e.content = $_7jd48t9kjj660zsw.bbcode2html(e.content); + e.content = $_8x71bm9kjj68z4ev.bbcode2html(e.content); } if (e.get) { - e.content = $_7jd48t9kjj660zsw.html2bbcode(e.content); + e.content = $_8x71bm9kjj68z4ev.html2bbcode(e.content); } }); } diff --git a/js/tinymce/plugins/charmap/plugin.js b/js/tinymce/plugins/charmap/plugin.js index ef83e1bd683..7228a845458 100644 --- a/js/tinymce/plugins/charmap/plugin.js +++ b/js/tinymce/plugins/charmap/plugin.js @@ -7,13 +7,13 @@ var charmap = (function () { var fireInsertCustomChar = function (editor, chr) { return editor.fire('insertCustomChar', { chr: chr }); }; - var $_exazyd9qjj660zth = { fireInsertCustomChar: fireInsertCustomChar }; + var $_j04to9qjj68z4fw = { fireInsertCustomChar: fireInsertCustomChar }; var insertChar = function (editor, chr) { - var evtChr = $_exazyd9qjj660zth.fireInsertCustomChar(editor, chr).chr; + var evtChr = $_j04to9qjj68z4fw.fireInsertCustomChar(editor, chr).chr; editor.execCommand('mceInsertContent', false, evtChr); }; - var $_8e978n9pjj660ztf = { insertChar: insertChar }; + var $_c0nh0b9pjj68z4fu = { insertChar: insertChar }; var global$1 = tinymce.util.Tools.resolve('tinymce.util.Tools'); @@ -23,7 +23,7 @@ var charmap = (function () { var getCharMapAppend = function (editor) { return editor.settings.charmap_append; }; - var $_1s6wzq9tjj660ztu = { + var $_44anf29tjj68z4gb = { getCharMap: getCharMap, getCharMapAppend: getCharMapAppend }; @@ -1096,11 +1096,11 @@ var charmap = (function () { return []; }; var extendCharMap = function (editor, charmap) { - var userCharMap = $_1s6wzq9tjj660ztu.getCharMap(editor); + var userCharMap = $_44anf29tjj68z4gb.getCharMap(editor); if (userCharMap) { charmap = getCharsFromSetting(userCharMap); } - var userCharMapAppend = $_1s6wzq9tjj660ztu.getCharMapAppend(editor); + var userCharMapAppend = $_44anf29tjj68z4gb.getCharMapAppend(editor); if (userCharMapAppend) { return [].concat(charmap).concat(getCharsFromSetting(userCharMapAppend)); } @@ -1109,21 +1109,21 @@ var charmap = (function () { var getCharMap$1 = function (editor) { return extendCharMap(editor, getDefaultCharMap()); }; - var $_1gffkf9rjj660ztj = { getCharMap: getCharMap$1 }; + var $_34tetw9rjj68z4g0 = { getCharMap: getCharMap$1 }; var get = function (editor) { var getCharMap = function () { - return $_1gffkf9rjj660ztj.getCharMap(editor); + return $_34tetw9rjj68z4g0.getCharMap(editor); }; var insertChar = function (chr) { - $_8e978n9pjj660ztf.insertChar(editor, chr); + $_c0nh0b9pjj68z4fu.insertChar(editor, chr); }; return { getCharMap: getCharMap, insertChar: insertChar }; }; - var $_1titsy9ojj660ztd = { get: get }; + var $_8g6hai9ojj68z4fr = { get: get }; var getHtml = function (charmap) { var gridHtml, x, y; @@ -1148,7 +1148,7 @@ var charmap = (function () { gridHtml += ''; return gridHtml; }; - var $_sgep9wjj660zu0 = { getHtml: getHtml }; + var $_c0kpw79wjj68z4gp = { getHtml: getHtml }; var getParentTd = function (elm) { while (elm) { @@ -1162,7 +1162,7 @@ var charmap = (function () { var win; var charMapPanel = { type: 'container', - html: $_sgep9wjj660zu0.getHtml($_1gffkf9rjj660ztj.getCharMap(editor)), + html: $_c0kpw79wjj68z4gp.getHtml($_34tetw9rjj68z4g0.getCharMap(editor)), onclick: function (e) { var target = e.target; if (/^(TD|DIV)$/.test(target.nodeName)) { @@ -1171,7 +1171,7 @@ var charmap = (function () { var charCodeString = charDiv.getAttribute('data-chr'); var charCode = parseInt(charCodeString, 10); if (!isNaN(charCode)) { - $_8e978n9pjj660ztf.insertChar(editor, String.fromCharCode(charCode)); + $_c0nh0b9pjj68z4fu.insertChar(editor, String.fromCharCode(charCode)); } if (!e.ctrlKey) { win.close(); @@ -1237,14 +1237,14 @@ var charmap = (function () { }] }); }; - var $_6mp96d9vjj660ztx = { open: open }; + var $_aqqjsp9vjj68z4gi = { open: open }; var register = function (editor) { editor.addCommand('mceShowCharmap', function () { - $_6mp96d9vjj660ztx.open(editor); + $_aqqjsp9vjj68z4gi.open(editor); }); }; - var $_6s03g19ujj660ztv = { register: register }; + var $_1ezj849ujj68z4ge = { register: register }; var register$1 = function (editor) { editor.addButton('charmap', { @@ -1259,12 +1259,12 @@ var charmap = (function () { context: 'insert' }); }; - var $_jfuz09xjj660zu1 = { register: register$1 }; + var $_6pdd8h9xjj68z4gs = { register: register$1 }; global.add('charmap', function (editor) { - $_6s03g19ujj660ztv.register(editor); - $_jfuz09xjj660zu1.register(editor); - return $_1titsy9ojj660ztd.get(editor); + $_1ezj849ujj68z4ge.register(editor); + $_6pdd8h9xjj68z4gs.register(editor); + return $_8g6hai9ojj68z4fr.get(editor); }); function Plugin () { } diff --git a/js/tinymce/plugins/code/plugin.js b/js/tinymce/plugins/code/plugin.js index 1f077ec937b..78ba33ea19d 100644 --- a/js/tinymce/plugins/code/plugin.js +++ b/js/tinymce/plugins/code/plugin.js @@ -12,7 +12,7 @@ var code = (function () { var getMinHeight = function (editor) { return editor.getParam('code_dialog_height', Math.min(global$1.DOM.getViewPort().h - 200, 500)); }; - var $_cbs8n9a2jj660zuu = { + var $_3qorc5a2jj68z4ii = { getMinWidth: getMinWidth, getMinHeight: getMinHeight }; @@ -28,14 +28,14 @@ var code = (function () { var getContent = function (editor) { return editor.getContent({ source_view: true }); }; - var $_c0tmiha4jj660zuy = { + var $_d5qoy0a4jj68z4in = { setContent: setContent, getContent: getContent }; var open = function (editor) { - var minWidth = $_cbs8n9a2jj660zuu.getMinWidth(editor); - var minHeight = $_cbs8n9a2jj660zuu.getMinHeight(editor); + var minWidth = $_3qorc5a2jj68z4ii.getMinWidth(editor); + var minHeight = $_3qorc5a2jj68z4ii.getMinHeight(editor); var win = editor.windowManager.open({ title: 'Source code', body: { @@ -48,41 +48,41 @@ var code = (function () { style: 'direction: ltr; text-align: left' }, onSubmit: function (e) { - $_c0tmiha4jj660zuy.setContent(editor, e.data.code); + $_d5qoy0a4jj68z4in.setContent(editor, e.data.code); } }); - win.find('#code').value($_c0tmiha4jj660zuy.getContent(editor)); + win.find('#code').value($_d5qoy0a4jj68z4in.getContent(editor)); }; - var $_2wxfw8a1jj660zus = { open: open }; + var $_gbyg3aa1jj68z4if = { open: open }; var register = function (editor) { editor.addCommand('mceCodeEditor', function () { - $_2wxfw8a1jj660zus.open(editor); + $_gbyg3aa1jj68z4if.open(editor); }); }; - var $_eejjga0jj660zuq = { register: register }; + var $_a893gba0jj68z4id = { register: register }; var register$1 = function (editor) { editor.addButton('code', { icon: 'code', tooltip: 'Source code', onclick: function () { - $_2wxfw8a1jj660zus.open(editor); + $_gbyg3aa1jj68z4if.open(editor); } }); editor.addMenuItem('code', { icon: 'code', text: 'Source code', onclick: function () { - $_2wxfw8a1jj660zus.open(editor); + $_gbyg3aa1jj68z4if.open(editor); } }); }; - var $_avdqhwa5jj660zuz = { register: register$1 }; + var $_8w6nyoa5jj68z4is = { register: register$1 }; global.add('code', function (editor) { - $_eejjga0jj660zuq.register(editor); - $_avdqhwa5jj660zuz.register(editor); + $_a893gba0jj68z4id.register(editor); + $_8w6nyoa5jj68z4is.register(editor); return {}; }); function Plugin () { diff --git a/js/tinymce/plugins/codesample/plugin.js b/js/tinymce/plugins/codesample/plugin.js index 444df67da72..999d0be4ab5 100644 --- a/js/tinymce/plugins/codesample/plugin.js +++ b/js/tinymce/plugins/codesample/plugin.js @@ -36,7 +36,7 @@ var codesample = (function () { var getDialogMinHeight = function (editor) { return Math.min(global$1.DOM.getViewPort().w, editor.getParam('codesample_dialog_height', 650)); }; - var $_z3aekabjj660zvm = { + var $_a6xumabjj68z4jx = { getContentCss: getContentCss, getLanguages: getLanguages, getDialogMinWidth: getDialogMinWidth, @@ -718,14 +718,14 @@ var codesample = (function () { return predicateFn(arg2); }; } - var $_4sj02cagjj660zx6 = { + var $_6mof9nagjj68z4mz = { isCodeSample: isCodeSample, trimArg: trimArg }; var getSelectedCodeSample = function (editor) { var node = editor.selection.getNode(); - if ($_4sj02cagjj660zx6.isCodeSample(node)) { + if ($_6mof9nagjj68z4mz.isCodeSample(node)) { return node; } return null; @@ -752,7 +752,7 @@ var codesample = (function () { } return ''; }; - var $_4bc0d4adjj660zvo = { + var $_c1d6n4adjj68z4k0 = { getSelectedCodeSample: getSelectedCodeSample, insertCodeSample: insertCodeSample, getCurrentCode: getCurrentCode @@ -801,30 +801,30 @@ var codesample = (function () { value: 'cpp' } ]; - var customLanguages = $_z3aekabjj660zvm.getLanguages(editor); + var customLanguages = $_a6xumabjj68z4jx.getLanguages(editor); return customLanguages ? customLanguages : defaultLanguages; }; var getCurrentLanguage = function (editor) { var matches; - var node = $_4bc0d4adjj660zvo.getSelectedCodeSample(editor); + var node = $_c1d6n4adjj68z4k0.getSelectedCodeSample(editor); if (node) { matches = node.className.match(/language-(\w+)/); return matches ? matches[1] : ''; } return ''; }; - var $_bvnum7ahjj660zx8 = { + var $_7nwz3cahjj68z4n2 = { getLanguages: getLanguages$1, getCurrentLanguage: getCurrentLanguage }; - var $_eijoayaajj660zvk = { + var $_7mp1t9aajj68z4ju = { open: function (editor) { - var minWidth = $_z3aekabjj660zvm.getDialogMinWidth(editor); - var minHeight = $_z3aekabjj660zvm.getDialogMinHeight(editor); - var currentLanguage = $_bvnum7ahjj660zx8.getCurrentLanguage(editor); - var currentLanguages = $_bvnum7ahjj660zx8.getLanguages(editor); - var currentCode = $_4bc0d4adjj660zvo.getCurrentCode(editor); + var minWidth = $_a6xumabjj68z4jx.getDialogMinWidth(editor); + var minHeight = $_a6xumabjj68z4jx.getDialogMinHeight(editor); + var currentLanguage = $_7nwz3cahjj68z4n2.getCurrentLanguage(editor); + var currentLanguages = $_7nwz3cahjj68z4n2.getLanguages(editor); + var currentCode = $_c1d6n4adjj68z4k0.getCurrentCode(editor); editor.windowManager.open({ title: 'Insert/Edit code sample', minWidth: minWidth, @@ -855,7 +855,7 @@ var codesample = (function () { } ], onSubmit: function (e) { - $_4bc0d4adjj660zvo.insertCodeSample(editor, e.data.language, e.data.code); + $_c1d6n4adjj68z4k0.insertCodeSample(editor, e.data.language, e.data.code); } }); } @@ -864,19 +864,19 @@ var codesample = (function () { var register = function (editor) { editor.addCommand('codesample', function () { var node = editor.selection.getNode(); - if (editor.selection.isCollapsed() || $_4sj02cagjj660zx6.isCodeSample(node)) { - $_eijoayaajj660zvk.open(editor); + if (editor.selection.isCollapsed() || $_6mof9nagjj68z4mz.isCodeSample(node)) { + $_7mp1t9aajj68z4ju.open(editor); } else { editor.formatter.toggle('code'); } }); }; - var $_fdzwzza9jj660zvi = { register: register }; + var $_2c3s6na9jj68z4jr = { register: register }; var setup = function (editor) { var $ = editor.$; editor.on('PreProcess', function (e) { - $('pre[contenteditable=false]', e.node).filter($_4sj02cagjj660zx6.trimArg($_4sj02cagjj660zx6.isCodeSample)).each(function (idx, elm) { + $('pre[contenteditable=false]', e.node).filter($_6mof9nagjj68z4mz.trimArg($_6mof9nagjj68z4mz.isCodeSample)).each(function (idx, elm) { var $elm = $(elm), code = elm.textContent; $elm.attr('class', $.trim($elm.attr('class'))); $elm.removeAttr('contentEditable'); @@ -886,7 +886,7 @@ var codesample = (function () { }); }); editor.on('SetContent', function () { - var unprocessedCodeSamples = $('pre').filter($_4sj02cagjj660zx6.trimArg($_4sj02cagjj660zx6.isCodeSample)).filter(function (idx, elm) { + var unprocessedCodeSamples = $('pre').filter($_6mof9nagjj68z4mz.trimArg($_6mof9nagjj68z4mz.isCodeSample)).filter(function (idx, elm) { return elm.contentEditable !== 'false'; }); if (unprocessedCodeSamples.length) { @@ -904,11 +904,11 @@ var codesample = (function () { } }); }; - var $_engodjaijj660zxb = { setup: setup }; + var $_5swbztaijj68z4n6 = { setup: setup }; var loadCss = function (editor, pluginUrl, addedInlineCss, addedCss) { var linkElm; - var contentCss = $_z3aekabjj660zvm.getContentCss(editor); + var contentCss = $_a6xumabjj68z4jx.getContentCss(editor); if (editor.inline && addedInlineCss.get()) { return; } @@ -928,7 +928,7 @@ var codesample = (function () { editor.getDoc().getElementsByTagName('head')[0].appendChild(linkElm); } }; - var $_6zwp5gajjj660zxd = { loadCss: loadCss }; + var $_fqprlrajjj68z4nb = { loadCss: loadCss }; var register$1 = function (editor) { editor.addButton('codesample', { @@ -941,20 +941,20 @@ var codesample = (function () { icon: 'codesample' }); }; - var $_5onzd9akjj660zxf = { register: register$1 }; + var $_f4bvq0akjj68z4nf = { register: register$1 }; var addedInlineCss = Cell(false); global.add('codesample', function (editor, pluginUrl) { var addedCss = Cell(false); - $_engodjaijj660zxb.setup(editor); - $_5onzd9akjj660zxf.register(editor); - $_fdzwzza9jj660zvi.register(editor); + $_5swbztaijj68z4n6.setup(editor); + $_f4bvq0akjj68z4nf.register(editor); + $_2c3s6na9jj68z4jr.register(editor); editor.on('init', function () { - $_6zwp5gajjj660zxd.loadCss(editor, pluginUrl, addedInlineCss, addedCss); + $_fqprlrajjj68z4nb.loadCss(editor, pluginUrl, addedInlineCss, addedCss); }); editor.on('dblclick', function (ev) { - if ($_4sj02cagjj660zx6.isCodeSample(ev.target)) { - $_eijoayaajj660zvk.open(editor); + if ($_6mof9nagjj68z4mz.isCodeSample(ev.target)) { + $_7mp1t9aajj68z4ju.open(editor); } }); }); diff --git a/js/tinymce/plugins/colorpicker/plugin.js b/js/tinymce/plugins/colorpicker/plugin.js index 939aa1c55e6..8c8901c3617 100644 --- a/js/tinymce/plugins/colorpicker/plugin.js +++ b/js/tinymce/plugins/colorpicker/plugin.js @@ -108,12 +108,12 @@ var colorpicker = (function () { }); setColor(win, value); }; - var $_2zts6manjj660zz5 = { open: open }; + var $_cxcfkqanjj68z4qg = { open: open }; global.add('colorpicker', function (editor) { if (!editor.settings.color_picker_callback) { editor.settings.color_picker_callback = function (callback, value) { - $_2zts6manjj660zz5.open(editor, callback, value); + $_cxcfkqanjj68z4qg.open(editor, callback, value); }; } }); diff --git a/js/tinymce/plugins/contextmenu/plugin.js b/js/tinymce/plugins/contextmenu/plugin.js index 98c65ab783f..d13bd6af65b 100644 --- a/js/tinymce/plugins/contextmenu/plugin.js +++ b/js/tinymce/plugins/contextmenu/plugin.js @@ -28,7 +28,7 @@ var contextmenu = (function () { }; return { isContextMenuVisible: isContextMenuVisible }; }; - var $_22ei90asjj660zzs = { get: get }; + var $_4fh3hlasjj68z4s6 = { get: get }; var shouldNeverUseNative = function (editor) { return editor.settings.contextmenu_never_use_native; @@ -36,7 +36,7 @@ var contextmenu = (function () { var getContextMenu = function (editor) { return editor.getParam('contextmenu', 'link openlink image inserttable | cell row column deletetable'); }; - var $_7r5sjzaujj660zzw = { + var $_dl1owaujj68z4se = { shouldNeverUseNative: shouldNeverUseNative, getContextMenu: getContextMenu }; @@ -84,7 +84,7 @@ var contextmenu = (function () { return transposeUiContainer(getUiContainer(editor), iframePos); } }; - var $_29xkdtavjj660zzy = { getPos: getPos }; + var $_gept1lavjj68z4sm = { getPos: getPos }; var global$2 = tinymce.util.Tools.resolve('tinymce.ui.Factory'); @@ -93,7 +93,7 @@ var contextmenu = (function () { var renderMenu = function (editor, visibleState) { var menu, contextmenu; var items = []; - contextmenu = $_7r5sjzaujj660zzw.getContextMenu(editor); + contextmenu = $_dl1owaujj68z4se.getContextMenu(editor); global$3.each(contextmenu.split(/[ ,]/), function (name) { var item = editor.menuItems[name]; if (name === '|') { @@ -138,10 +138,10 @@ var contextmenu = (function () { menu.get().moveTo(pos.x, pos.y); visibleState.set(true); }; - var $_dkupqjayjj661004 = { show: show }; + var $_407p40ayjj68z4tz = { show: show }; var isNativeOverrideKeyEvent = function (editor, e) { - return e.ctrlKey && !$_7r5sjzaujj660zzw.shouldNeverUseNative(editor); + return e.ctrlKey && !$_dl1owaujj68z4se.shouldNeverUseNative(editor); }; var setup = function (editor, visibleState, menu) { editor.on('contextmenu', function (e) { @@ -149,15 +149,15 @@ var contextmenu = (function () { return; } e.preventDefault(); - $_dkupqjayjj661004.show(editor, $_29xkdtavjj660zzy.getPos(editor, e), visibleState, menu); + $_407p40ayjj68z4tz.show(editor, $_gept1lavjj68z4sm.getPos(editor, e), visibleState, menu); }); }; - var $_71jhf2atjj660zzt = { setup: setup }; + var $_gbibonatjj68z4sa = { setup: setup }; global.add('contextmenu', function (editor) { var menu = Cell(null), visibleState = Cell(false); - $_71jhf2atjj660zzt.setup(editor, visibleState, menu); - return $_22ei90asjj660zzs.get(visibleState); + $_gbibonatjj68z4sa.setup(editor, visibleState, menu); + return $_4fh3hlasjj68z4s6.get(visibleState); }); function Plugin () { } diff --git a/js/tinymce/plugins/directionality/plugin.js b/js/tinymce/plugins/directionality/plugin.js index bd1717d7b18..768b22f4f86 100644 --- a/js/tinymce/plugins/directionality/plugin.js +++ b/js/tinymce/plugins/directionality/plugin.js @@ -20,17 +20,17 @@ var directionality = (function () { editor.nodeChanged(); } }; - var $_6a211lb4jj66100s = { setDir: setDir }; + var $_390ic6b4jj68z4w7 = { setDir: setDir }; var register = function (editor) { editor.addCommand('mceDirectionLTR', function () { - $_6a211lb4jj66100s.setDir(editor, 'ltr'); + $_390ic6b4jj68z4w7.setDir(editor, 'ltr'); }); editor.addCommand('mceDirectionRTL', function () { - $_6a211lb4jj66100s.setDir(editor, 'rtl'); + $_390ic6b4jj68z4w7.setDir(editor, 'rtl'); }); }; - var $_1wheo7b3jj66100q = { register: register }; + var $_20h6fdb3jj68z4w2 = { register: register }; var generateSelector = function (dir) { var selector = []; @@ -51,11 +51,11 @@ var directionality = (function () { stateSelector: generateSelector('rtl') }); }; - var $_ddl2iub6jj66100v = { register: register$1 }; + var $_8sbr8db6jj68z4we = { register: register$1 }; global.add('directionality', function (editor) { - $_1wheo7b3jj66100q.register(editor); - $_ddl2iub6jj66100v.register(editor); + $_20h6fdb3jj68z4w2.register(editor); + $_8sbr8db6jj68z4we.register(editor); }); function Plugin () { } diff --git a/js/tinymce/plugins/emoticons/plugin.js b/js/tinymce/plugins/emoticons/plugin.js index ed0041ad50b..0645aac87b1 100644 --- a/js/tinymce/plugins/emoticons/plugin.js +++ b/js/tinymce/plugins/emoticons/plugin.js @@ -46,7 +46,7 @@ var emoticons = (function () { emoticonsHtml += ''; return emoticonsHtml; }; - var $_76xf1ybajj661017 = { getHtml: getHtml }; + var $_4ezl7fbajj68z4xi = { getHtml: getHtml }; var insertEmoticon = function (editor, src, alt) { editor.insertContent(editor.dom.createHTML('img', { @@ -55,7 +55,7 @@ var emoticons = (function () { })); }; var register = function (editor, pluginUrl) { - var panelHtml = $_76xf1ybajj661017.getHtml(pluginUrl); + var panelHtml = $_4ezl7fbajj68z4xi.getHtml(pluginUrl); editor.addButton('emoticons', { type: 'panelbutton', panel: { @@ -73,10 +73,10 @@ var emoticons = (function () { tooltip: 'Emoticons' }); }; - var $_aqknslb9jj661015 = { register: register }; + var $_2piqd2b9jj68z4xc = { register: register }; global.add('emoticons', function (editor, pluginUrl) { - $_aqknslb9jj661015.register(editor, pluginUrl); + $_2piqd2b9jj68z4xc.register(editor, pluginUrl); }); function Plugin () { } diff --git a/js/tinymce/plugins/fullpage/plugin.js b/js/tinymce/plugins/fullpage/plugin.js index c006dad8ac1..1e48fdbe289 100644 --- a/js/tinymce/plugins/fullpage/plugin.js +++ b/js/tinymce/plugins/fullpage/plugin.js @@ -54,7 +54,7 @@ var fullpage = (function () { var getDefaultDocType = function (editor) { return editor.getParam('fullpage_default_doctype', ''); }; - var $_3cshtqc7jj66105m = { + var $_4fge9yc7jj68z571 = { shouldHideInSourceView: shouldHideInSourceView, getDefaultXmlPi: getDefaultXmlPi, getDefaultEncoding: getDefaultEncoding, @@ -79,8 +79,8 @@ var fullpage = (function () { var value = elm.attr(name); return value || ''; } - data.fontface = $_3cshtqc7jj66105m.getDefaultFontFamily(editor); - data.fontsize = $_3cshtqc7jj66105m.getDefaultFontSize(editor); + data.fontface = $_4fge9yc7jj68z571.getDefaultFontFamily(editor); + data.fontsize = $_4fge9yc7jj68z571.getDefaultFontSize(editor); elm = headerFragment.firstChild; if (elm.type === 7) { data.xml_pi = true; @@ -288,14 +288,14 @@ var fullpage = (function () { }).serialize(headerFragment); return html.substring(0, html.indexOf('')); }; - var $_b5ppeoc3jj66105e = { + var $_6toyxc3jj68z56l = { parseHeader: parseHeader, htmlToData: htmlToData, dataToHtml: dataToHtml }; var open = function (editor, headState) { - var data = $_b5ppeoc3jj66105e.htmlToData(editor, headState.get()); + var data = $_6toyxc3jj68z56l.htmlToData(editor, headState.get()); editor.windowManager.open({ title: 'Document properties', data: data, @@ -330,19 +330,19 @@ var fullpage = (function () { } ], onSubmit: function (e) { - var headHtml = $_b5ppeoc3jj66105e.dataToHtml(editor, global$1.extend(data, e.data), headState.get()); + var headHtml = $_6toyxc3jj68z56l.dataToHtml(editor, global$1.extend(data, e.data), headState.get()); headState.set(headHtml); } }); }; - var $_1wn2crc1jj66105b = { open: open }; + var $_24cvgjc1jj68z56f = { open: open }; var register = function (editor, headState) { editor.addCommand('mceFullPageProperties', function () { - $_1wn2crc1jj66105b.open(editor, headState); + $_24cvgjc1jj68z56f.open(editor, headState); }); }; - var $_ehgf2pc0jj661059 = { register: register }; + var $_2at4cvc0jj68z56c = { register: register }; var protectHtml = function (protect, html) { global$1.each(protect, function (pattern) { @@ -357,7 +357,7 @@ var fullpage = (function () { return unescape(m); }); }; - var $_9qfxzqc9jj66105u = { + var $_9xucdkc9jj68z57u = { protectHtml: protectHtml, unprotectHtml: unprotectHtml }; @@ -375,11 +375,11 @@ var fullpage = (function () { if (evt.selection) { return; } - content = $_9qfxzqc9jj66105u.protectHtml(editor.settings.protect, evt.content); + content = $_9xucdkc9jj68z57u.protectHtml(editor.settings.protect, evt.content); if (evt.format === 'raw' && headState.get()) { return; } - if (evt.source_view && $_3cshtqc7jj66105m.shouldHideInSourceView(editor)) { + if (evt.source_view && $_4fge9yc7jj68z571.shouldHideInSourceView(editor)) { return; } if (content.length === 0 && !evt.source_view) { @@ -400,7 +400,7 @@ var fullpage = (function () { headState.set(getDefaultHeader(editor)); footState.set('\n\n'); } - headerFragment = $_b5ppeoc3jj66105e.parseHeader(headState.get()); + headerFragment = $_6toyxc3jj68z56l.parseHeader(headState.get()); each(headerFragment.getAll('style'), function (node) { if (node.firstChild) { styles += node.firstChild.value; @@ -452,33 +452,33 @@ var fullpage = (function () { }; var getDefaultHeader = function (editor) { var header = '', value, styles = ''; - if ($_3cshtqc7jj66105m.getDefaultXmlPi(editor)) { - var piEncoding = $_3cshtqc7jj66105m.getDefaultEncoding(editor); + if ($_4fge9yc7jj68z571.getDefaultXmlPi(editor)) { + var piEncoding = $_4fge9yc7jj68z571.getDefaultEncoding(editor); header += '\n'; } - header += $_3cshtqc7jj66105m.getDefaultDocType(editor); + header += $_4fge9yc7jj68z571.getDefaultDocType(editor); header += '\n\n\n'; - if (value = $_3cshtqc7jj66105m.getDefaultTitle(editor)) { + if (value = $_4fge9yc7jj68z571.getDefaultTitle(editor)) { header += '' + value + '\n'; } - if (value = $_3cshtqc7jj66105m.getDefaultEncoding(editor)) { + if (value = $_4fge9yc7jj68z571.getDefaultEncoding(editor)) { header += '\n'; } - if (value = $_3cshtqc7jj66105m.getDefaultFontFamily(editor)) { + if (value = $_4fge9yc7jj68z571.getDefaultFontFamily(editor)) { styles += 'font-family: ' + value + ';'; } - if (value = $_3cshtqc7jj66105m.getDefaultFontSize(editor)) { + if (value = $_4fge9yc7jj68z571.getDefaultFontSize(editor)) { styles += 'font-size: ' + value + ';'; } - if (value = $_3cshtqc7jj66105m.getDefaultTextColor(editor)) { + if (value = $_4fge9yc7jj68z571.getDefaultTextColor(editor)) { styles += 'color: ' + value + ';'; } header += '\n\n'; return header; }; var handleGetContent = function (editor, head, foot, evt) { - if (!evt.selection && (!evt.source_view || !$_3cshtqc7jj66105m.shouldHideInSourceView(editor))) { - evt.content = $_9qfxzqc9jj66105u.unprotectHtml(global$1.trim(head) + '\n' + global$1.trim(evt.content) + '\n' + global$1.trim(foot)); + if (!evt.selection && (!evt.source_view || !$_4fge9yc7jj68z571.shouldHideInSourceView(editor))) { + evt.content = $_9xucdkc9jj68z57u.unprotectHtml(global$1.trim(head) + '\n' + global$1.trim(evt.content) + '\n' + global$1.trim(foot)); } }; var setup = function (editor, headState, footState) { @@ -489,7 +489,7 @@ var fullpage = (function () { handleGetContent(editor, headState.get(), footState.get(), evt); }); }; - var $_1ga46qc8jj66105o = { setup: setup }; + var $_4mmsb6c8jj68z578 = { setup: setup }; var register$1 = function (editor) { editor.addButton('fullpage', { @@ -502,13 +502,13 @@ var fullpage = (function () { context: 'file' }); }; - var $_97fom4cajj66105w = { register: register$1 }; + var $_69lwnrcajj68z57x = { register: register$1 }; global.add('fullpage', function (editor) { var headState = Cell(''), footState = Cell(''); - $_ehgf2pc0jj661059.register(editor, headState); - $_97fom4cajj66105w.register(editor); - $_1ga46qc8jj66105o.setup(editor, headState, footState); + $_2at4cvc0jj68z56c.register(editor, headState); + $_69lwnrcajj68z57x.register(editor); + $_4mmsb6c8jj68z578.setup(editor, headState, footState); }); function Plugin () { } diff --git a/js/tinymce/plugins/fullscreen/plugin.js b/js/tinymce/plugins/fullscreen/plugin.js index 9f1e1a8e90f..ba82a1aee49 100644 --- a/js/tinymce/plugins/fullscreen/plugin.js +++ b/js/tinymce/plugins/fullscreen/plugin.js @@ -29,14 +29,14 @@ var fullscreen = (function () { } }; }; - var $_28wo8ycejj66106v = { get: get }; + var $_ffmkj1cejj68z5bm = { get: get }; var global$1 = tinymce.util.Tools.resolve('tinymce.dom.DOMUtils'); var fireFullscreenStateChanged = function (editor, state) { editor.fire('FullscreenStateChanged', { state: state }); }; - var $_9xri8hcijj661075 = { fireFullscreenStateChanged: fireFullscreenStateChanged }; + var $_cqld2rcijj68z5c3 = { fireFullscreenStateChanged: fireFullscreenStateChanged }; var DOM = global$1.DOM; var getWindowSize = function () { @@ -103,7 +103,7 @@ var fullscreen = (function () { editor.on('remove', removeResize); resize(); fullscreenState.set(newFullScreenInfo); - $_9xri8hcijj661075.fireFullscreenStateChanged(editor, true); + $_cqld2rcijj68z5c3.fireFullscreenStateChanged(editor, true); } else { iframeStyle.width = fullscreenInfo.iframeWidth; iframeStyle.height = fullscreenInfo.iframeHeight; @@ -120,17 +120,17 @@ var fullscreen = (function () { DOM.unbind(window, 'resize', fullscreenInfo.resizeHandler); editor.off('remove', fullscreenInfo.removeHandler); fullscreenState.set(null); - $_9xri8hcijj661075.fireFullscreenStateChanged(editor, false); + $_cqld2rcijj68z5c3.fireFullscreenStateChanged(editor, false); } }; - var $_6poocccgjj661070 = { toggleFullscreen: toggleFullscreen }; + var $_esldkycgjj68z5br = { toggleFullscreen: toggleFullscreen }; var register = function (editor, fullscreenState) { editor.addCommand('mceFullScreen', function () { - $_6poocccgjj661070.toggleFullscreen(editor, fullscreenState); + $_esldkycgjj68z5br.toggleFullscreen(editor, fullscreenState); }); }; - var $_8wo56bcfjj66106x = { register: register }; + var $_9b0399cfjj68z5bo = { register: register }; var postRender = function (editor) { return function (e) { @@ -156,17 +156,17 @@ var fullscreen = (function () { onPostRender: postRender(editor) }); }; - var $_10g7uickjj66107p = { register: register$1 }; + var $_ckf68dckjj68z5fe = { register: register$1 }; global.add('fullscreen', function (editor) { var fullscreenState = Cell(null); if (editor.settings.inline) { - return $_28wo8ycejj66106v.get(fullscreenState); + return $_ffmkj1cejj68z5bm.get(fullscreenState); } - $_8wo56bcfjj66106x.register(editor, fullscreenState); - $_10g7uickjj66107p.register(editor); + $_9b0399cfjj68z5bo.register(editor, fullscreenState); + $_ckf68dckjj68z5fe.register(editor); editor.addShortcut('Ctrl+Shift+F', '', 'mceFullScreen'); - return $_28wo8ycejj66106v.get(fullscreenState); + return $_ffmkj1cejj68z5bm.get(fullscreenState); }); function Plugin () { } diff --git a/js/tinymce/plugins/help/plugin.js b/js/tinymce/plugins/help/plugin.js index 450adc04406..bc917e989ab 100644 --- a/js/tinymce/plugins/help/plugin.js +++ b/js/tinymce/plugins/help/plugin.js @@ -370,13 +370,13 @@ var help = (function () { action: 'Find (if searchreplace plugin activated)' } ]; - var $_fceunvbmjj66102g = { shortcuts: shortcuts }; + var $_5s35t7bmjj68z50o = { shortcuts: shortcuts }; var makeTab = function () { var makeAriaLabel = function (shortcut) { return 'aria-label="Action: ' + shortcut.action + ', Shortcut: ' + shortcut.shortcut.replace(/Ctrl/g, 'Control') + '"'; }; - var shortcutLisString = map($_fceunvbmjj66102g.shortcuts, function (shortcut) { + var shortcutLisString = map($_5s35t7bmjj68z50o.shortcuts, function (shortcut) { return '' + '' + global$1.translate(shortcut.action) + '' + '' + shortcut.shortcut + '' + ''; }).join(''); return { @@ -389,7 +389,7 @@ var help = (function () { }] }; }; - var $_dil2isbgjj66101n = { makeTab: makeTab }; + var $_bb1j2xbgjj68z4yu = { makeTab: makeTab }; var keys = function () { var fastKeys = Object.keys; @@ -594,11 +594,11 @@ var help = (function () { name: 'Word Count' } ]; - var $_dlr2sjbtjj66103a = { urls: urls }; + var $_fgsydjbtjj68z52x = { urls: urls }; var makeLink = curry(supplant, '${name}'); var maybeUrlize = function (editor, key) { - return find($_dlr2sjbtjj66103a.urls, function (x) { + return find($_fgsydjbtjj68z52x.urls, function (x) { return x.key === key; }).fold(function () { var getMetadata = editor.plugins[key].getMetadata; @@ -654,7 +654,7 @@ var help = (function () { ] }; }; - var $_6itn50bojj66102m = { makeTab: makeTab$1 }; + var $_4v4av3bojj68z514 = { makeTab: makeTab$1 }; var global$3 = tinymce.util.Tools.resolve('tinymce.EditorManager'); @@ -684,7 +684,7 @@ var help = (function () { } ]; }; - var $_5iyzgabujj66103d = { makeRow: makeRow }; + var $_4ni5qxbujj68z537 = { makeRow: makeRow }; var open = function (editor, pluginUrl) { return function () { @@ -693,10 +693,10 @@ var help = (function () { bodyType: 'tabpanel', layout: 'flex', body: [ - $_dil2isbgjj66101n.makeTab(), - $_6itn50bojj66102m.makeTab(editor) + $_bb1j2xbgjj68z4yu.makeTab(), + $_4v4av3bojj68z514.makeTab(editor) ], - buttons: $_5iyzgabujj66103d.makeRow(), + buttons: $_4ni5qxbujj68z537.makeRow(), onPostRender: function () { var title = this.getEl('title'); title.innerHTML = 'TinyMCE Logo'; @@ -704,30 +704,30 @@ var help = (function () { }); }; }; - var $_dv6tqvbfjj66101m = { open: open }; + var $_b82b9vbfjj68z4yq = { open: open }; var register = function (editor, pluginUrl) { - editor.addCommand('mceHelp', $_dv6tqvbfjj66101m.open(editor, pluginUrl)); + editor.addCommand('mceHelp', $_b82b9vbfjj68z4yq.open(editor, pluginUrl)); }; - var $_8t9x89bejj66101k = { register: register }; + var $_g7w1rdbejj68z4yl = { register: register }; var register$1 = function (editor, pluginUrl) { editor.addButton('help', { icon: 'help', - onclick: $_dv6tqvbfjj66101m.open(editor, pluginUrl) + onclick: $_b82b9vbfjj68z4yq.open(editor, pluginUrl) }); editor.addMenuItem('help', { text: 'Help', icon: 'help', context: 'help', - onclick: $_dv6tqvbfjj66101m.open(editor, pluginUrl) + onclick: $_b82b9vbfjj68z4yq.open(editor, pluginUrl) }); }; - var $_4mj4aibwjj66103f = { register: register$1 }; + var $_36vsl9bwjj68z53a = { register: register$1 }; global.add('help', function (editor, pluginUrl) { - $_4mj4aibwjj66103f.register(editor, pluginUrl); - $_8t9x89bejj66101k.register(editor, pluginUrl); + $_36vsl9bwjj68z53a.register(editor, pluginUrl); + $_g7w1rdbejj68z4yl.register(editor, pluginUrl); editor.shortcuts.add('Alt+0', 'Open help dialog', 'mceHelp'); }); function Plugin () { diff --git a/js/tinymce/plugins/hr/plugin.js b/js/tinymce/plugins/hr/plugin.js index 69862a7d105..83d10e898f5 100644 --- a/js/tinymce/plugins/hr/plugin.js +++ b/js/tinymce/plugins/hr/plugin.js @@ -9,7 +9,7 @@ var hr = (function () { editor.execCommand('mceInsertContent', false, '
'); }); }; - var $_8i2glwcnjj66108j = { register: register }; + var $_g1vagjcnjj68z5h2 = { register: register }; var register$1 = function (editor) { editor.addButton('hr', { @@ -24,11 +24,11 @@ var hr = (function () { context: 'insert' }); }; - var $_748lbccojj66108k = { register: register$1 }; + var $_3891i3cojj68z5h5 = { register: register$1 }; global.add('hr', function (editor) { - $_8i2glwcnjj66108j.register(editor); - $_748lbccojj66108k.register(editor); + $_g1vagjcnjj68z5h2.register(editor); + $_3891i3cojj68z5h5.register(editor); }); function Plugin () { } diff --git a/js/tinymce/plugins/image/plugin.js b/js/tinymce/plugins/image/plugin.js index 4860991dcee..d605fe4b155 100644 --- a/js/tinymce/plugins/image/plugin.js +++ b/js/tinymce/plugins/image/plugin.js @@ -46,7 +46,7 @@ var image = (function () { var getUploadCredentials = function (editor) { return editor.getParam('images_upload_credentials'); }; - var $_pacmectjj661094 = { + var $_ffod9nctjj68z5jc = { hasDimensions: hasDimensions, hasAdvTab: hasAdvTab, getPrependUrl: getPrependUrl, @@ -85,10 +85,10 @@ var image = (function () { throw name + ' not available on this browser'; return actual; }; - var $_8uudodcwjj66109j = { getOrDie: getOrDie }; + var $_c8vkelcwjj68z5k7 = { getOrDie: getOrDie }; function FileReader () { - var f = $_8uudodcwjj66109j.getOrDie('FileReader'); + var f = $_c8vkelcwjj68z5k7.getOrDie('FileReader'); return new f(); } @@ -190,7 +190,7 @@ var image = (function () { return css; }; var createImageList = function (editor, callback) { - var imageList = $_pacmectjj661094.getImageList(editor); + var imageList = $_ffod9nctjj68z5jc.getImageList(editor); if (typeof imageList === 'string') { global$3.send({ url: imageList, @@ -213,7 +213,7 @@ var image = (function () { } } imgElm.onload = function () { - if (!data.width && !data.height && $_pacmectjj661094.hasDimensions(editor)) { + if (!data.width && !data.height && $_ffod9nctjj68z5jc.hasDimensions(editor)) { editor.dom.setAttribs(imgElm, { width: imgElm.clientWidth, height: imgElm.clientHeight @@ -235,7 +235,7 @@ var image = (function () { reader.readAsDataURL(blob); }); }; - var $_klwv1cujj661097 = { + var $_ayn7edcujj68z5jl = { getImageSize: getImageSize, buildListItems: buildListItems, removePixelSuffix: removePixelSuffix, @@ -275,21 +275,21 @@ var image = (function () { var DOM = global$4.DOM; var getHspace = function (image) { if (image.style.marginLeft && image.style.marginRight && image.style.marginLeft === image.style.marginRight) { - return $_klwv1cujj661097.removePixelSuffix(image.style.marginLeft); + return $_ayn7edcujj68z5jl.removePixelSuffix(image.style.marginLeft); } else { return ''; } }; var getVspace = function (image) { if (image.style.marginTop && image.style.marginBottom && image.style.marginTop === image.style.marginBottom) { - return $_klwv1cujj661097.removePixelSuffix(image.style.marginTop); + return $_ayn7edcujj68z5jl.removePixelSuffix(image.style.marginTop); } else { return ''; } }; var getBorder = function (image) { if (image.style.borderWidth) { - return $_klwv1cujj661097.removePixelSuffix(image.style.borderWidth); + return $_ayn7edcujj68z5jl.removePixelSuffix(image.style.borderWidth); } else { return ''; } @@ -342,7 +342,7 @@ var image = (function () { var setSize = function (name$$1, normalizeCss) { return function (image, name$$1, value) { if (image.style[name$$1]) { - image.style[name$$1] = $_klwv1cujj661097.addPixelSuffix(value); + image.style[name$$1] = $_ayn7edcujj68z5jl.addPixelSuffix(value); normalizeStyle(image, normalizeCss); } else { setAttrib(image, name$$1, value); @@ -351,23 +351,23 @@ var image = (function () { }; var getSize = function (image, name$$1) { if (image.style[name$$1]) { - return $_klwv1cujj661097.removePixelSuffix(image.style[name$$1]); + return $_ayn7edcujj68z5jl.removePixelSuffix(image.style[name$$1]); } else { return getAttrib(image, name$$1); } }; var setHspace = function (image, value) { - var pxValue = $_klwv1cujj661097.addPixelSuffix(value); + var pxValue = $_ayn7edcujj68z5jl.addPixelSuffix(value); image.style.marginLeft = pxValue; image.style.marginRight = pxValue; }; var setVspace = function (image, value) { - var pxValue = $_klwv1cujj661097.addPixelSuffix(value); + var pxValue = $_ayn7edcujj68z5jl.addPixelSuffix(value); image.style.marginTop = pxValue; image.style.marginBottom = pxValue; }; var setBorder = function (image, value) { - var pxValue = $_klwv1cujj661097.addPixelSuffix(value); + var pxValue = $_ayn7edcujj68z5jl.addPixelSuffix(value); image.style.borderWidth = pxValue; }; var setBorderStyle = function (image, value) { @@ -475,7 +475,7 @@ var image = (function () { var normalizeCss = function (editor, cssText) { var css = editor.dom.styles.parse(cssText); - var mergedCss = $_klwv1cujj661097.mergeMargins(css); + var mergedCss = $_ayn7edcujj68z5jl.mergeMargins(css); var compressed = editor.dom.styles.parse(editor.dom.styles.serialize(mergedCss)); return editor.dom.styles.serialize(compressed); }; @@ -550,7 +550,7 @@ var image = (function () { editor.selection.select(image.parentNode); } else { editor.selection.select(image); - $_klwv1cujj661097.waitLoadImage(editor, data, image); + $_ayn7edcujj68z5jl.waitLoadImage(editor, data, image); } }; var insertOrUpdateImage = function (editor, data) { @@ -570,28 +570,28 @@ var image = (function () { return function (evt) { var dom = editor.dom; var rootControl = evt.control.rootControl; - if (!$_pacmectjj661094.hasAdvTab(editor)) { + if (!$_ffod9nctjj68z5jc.hasAdvTab(editor)) { return; } var data = rootControl.toJSON(); var css = dom.parseStyle(data.style); rootControl.find('#vspace').value(''); rootControl.find('#hspace').value(''); - css = $_klwv1cujj661097.mergeMargins(css); + css = $_ayn7edcujj68z5jl.mergeMargins(css); if (css['margin-top'] && css['margin-bottom'] || css['margin-right'] && css['margin-left']) { if (css['margin-top'] === css['margin-bottom']) { - rootControl.find('#vspace').value($_klwv1cujj661097.removePixelSuffix(css['margin-top'])); + rootControl.find('#vspace').value($_ayn7edcujj68z5jl.removePixelSuffix(css['margin-top'])); } else { rootControl.find('#vspace').value(''); } if (css['margin-right'] === css['margin-left']) { - rootControl.find('#hspace').value($_klwv1cujj661097.removePixelSuffix(css['margin-right'])); + rootControl.find('#hspace').value($_ayn7edcujj68z5jl.removePixelSuffix(css['margin-right'])); } else { rootControl.find('#hspace').value(''); } } if (css['border-width']) { - rootControl.find('#border').value($_klwv1cujj661097.removePixelSuffix(css['border-width'])); + rootControl.find('#border').value($_ayn7edcujj68z5jl.removePixelSuffix(css['border-width'])); } else { rootControl.find('#border').value(''); } @@ -710,7 +710,7 @@ var image = (function () { ] }; }; - var $_807qrod3jj6610ag = { makeTab: makeTab }; + var $_6s0lzjd3jj68z5nm = { makeTab: makeTab }; var doSyncSize = function (widthCtrl, heightCtrl) { widthCtrl.state.set('oldVal', widthCtrl.value()); @@ -790,7 +790,7 @@ var image = (function () { ] }; }; - var $_fmwts8dajj6610bb = { + var $_2bns4dajj68z5pj = { createUi: createUi, syncSize: syncSize, updateSize: updateSize @@ -810,17 +810,17 @@ var image = (function () { }); if (!meta.width && !meta.height) { srcURL = editor.convertURL(control.value(), 'src'); - prependURL = $_pacmectjj661094.getPrependUrl(editor); + prependURL = $_ffod9nctjj68z5jc.getPrependUrl(editor); absoluteURLPattern = new RegExp('^(?:[a-z]+:)?//', 'i'); if (prependURL && !absoluteURLPattern.test(srcURL) && srcURL.substring(0, prependURL.length) !== prependURL) { srcURL = prependURL + srcURL; } control.value(srcURL); - $_klwv1cujj661097.getImageSize(editor.documentBaseURI.toAbsolute(control.value()), function (data) { - if (data.width && data.height && $_pacmectjj661094.hasDimensions(editor)) { + $_ayn7edcujj68z5jl.getImageSize(editor.documentBaseURI.toAbsolute(control.value()), function (data) { + if (data.width && data.height && $_ffod9nctjj68z5jc.hasDimensions(editor)) { rootControl.find('#width').value(data.width); rootControl.find('#height').value(data.height); - $_fmwts8dajj6610bb.syncSize(rootControl); + $_2bns4dajj68z5pj.syncSize(rootControl); } }); } @@ -843,29 +843,29 @@ var image = (function () { }, imageListCtrl ]; - if ($_pacmectjj661094.hasDescription(editor)) { + if ($_ffod9nctjj68z5jc.hasDescription(editor)) { generalFormItems.push({ name: 'alt', type: 'textbox', label: 'Image description' }); } - if ($_pacmectjj661094.hasImageTitle(editor)) { + if ($_ffod9nctjj68z5jc.hasImageTitle(editor)) { generalFormItems.push({ name: 'title', type: 'textbox', label: 'Image Title' }); } - if ($_pacmectjj661094.hasDimensions(editor)) { - generalFormItems.push($_fmwts8dajj6610bb.createUi()); + if ($_ffod9nctjj68z5jc.hasDimensions(editor)) { + generalFormItems.push($_2bns4dajj68z5pj.createUi()); } - if ($_pacmectjj661094.getClassList(editor)) { + if ($_ffod9nctjj68z5jc.getClassList(editor)) { generalFormItems.push({ name: 'class', type: 'listbox', label: 'Class', - values: $_klwv1cujj661097.buildListItems($_pacmectjj661094.getClassList(editor), function (item) { + values: $_ayn7edcujj68z5jl.buildListItems($_ffod9nctjj68z5jc.getClassList(editor), function (item) { if (item.value) { item.textStyle = function () { return editor.formatter.getCssText({ @@ -877,7 +877,7 @@ var image = (function () { }) }); } - if ($_pacmectjj661094.hasImageCaption(editor)) { + if ($_ffod9nctjj68z5jc.hasImageCaption(editor)) { generalFormItems.push({ name: 'caption', type: 'checkbox', @@ -893,13 +893,13 @@ var image = (function () { items: getGeneralItems(editor, imageListCtrl) }; }; - var $_4cesked9jj6610b8 = { + var $_9rf456d9jj68z5p8 = { makeTab: makeTab$1, getGeneralItems: getGeneralItems }; var url = function () { - return $_8uudodcwjj66109j.getOrDie('URL'); + return $_c8vkelcwjj68z5k7.getOrDie('URL'); }; var createObjectURL = function (blob) { return url().createObjectURL(blob); @@ -907,7 +907,7 @@ var image = (function () { var revokeObjectURL = function (u) { url().revokeObjectURL(u); }; - var $_efcdsodcjj6610bk = { + var $_4nod1xdcjj68z5py = { createObjectURL: createObjectURL, revokeObjectURL: revokeObjectURL }; @@ -915,7 +915,7 @@ var image = (function () { var global$5 = tinymce.util.Tools.resolve('tinymce.ui.Factory'); function XMLHttpRequest () { - var f = $_8uudodcwjj66109j.getOrDie('XMLHttpRequest'); + var f = $_c8vkelcwjj68z5k7.getOrDie('XMLHttpRequest'); return new f(); } @@ -984,19 +984,19 @@ var image = (function () { var rootControl = evt.control.rootControl; var throbber = new Throbber(rootControl.getEl()); var file = evt.control.value(); - var blobUri = $_efcdsodcjj6610bk.createObjectURL(file); + var blobUri = $_4nod1xdcjj68z5py.createObjectURL(file); var uploader = Uploader({ - url: $_pacmectjj661094.getUploadUrl(editor), - basePath: $_pacmectjj661094.getUploadBasePath(editor), - credentials: $_pacmectjj661094.getUploadCredentials(editor), - handler: $_pacmectjj661094.getUploadHandler(editor) + url: $_ffod9nctjj68z5jc.getUploadUrl(editor), + basePath: $_ffod9nctjj68z5jc.getUploadBasePath(editor), + credentials: $_ffod9nctjj68z5jc.getUploadCredentials(editor), + handler: $_ffod9nctjj68z5jc.getUploadHandler(editor) }); var finalize = function () { throbber.hide(); - $_efcdsodcjj6610bk.revokeObjectURL(blobUri); + $_4nod1xdcjj68z5py.revokeObjectURL(blobUri); }; throbber.show(); - return $_klwv1cujj661097.blobToDataUri(file).then(function (dataUrl) { + return $_ayn7edcujj68z5jl.blobToDataUri(file).then(function (dataUrl) { var blobInfo = editor.editorUpload.blobCache.create({ blob: file, blobUri: blobUri, @@ -1056,7 +1056,7 @@ var image = (function () { ] }; }; - var $_1wi3c9dbjj6610be = { makeTab: makeTab$2 }; + var $_fmei8vdbjj68z5po = { makeTab: makeTab$2 }; var curry = function (f) { var x = []; @@ -1081,7 +1081,7 @@ var image = (function () { var submitForm = function (editor, evt) { var win = evt.control.getRoot(); - $_fmwts8dajj6610bb.updateSize(win); + $_2bns4dajj68z5pj.updateSize(win); editor.undoManager.transact(function () { var data = merge(readImageDataFromSelection(editor), win.toJSON()); insertOrUpdateImage(editor, data); @@ -1097,7 +1097,7 @@ var image = (function () { type: 'listbox', label: 'Image list', name: 'image-list', - values: $_klwv1cujj661097.buildListItems(imageList, function (item) { + values: $_ayn7edcujj68z5jl.buildListItems(imageList, function (item) { item.value = editor.convertURL(item.value || item.url, 'src'); }, [{ text: 'None', @@ -1116,13 +1116,13 @@ var image = (function () { } }; } - if ($_pacmectjj661094.hasAdvTab(editor) || $_pacmectjj661094.hasUploadUrl(editor) || $_pacmectjj661094.hasUploadHandler(editor)) { - var body = [$_4cesked9jj6610b8.makeTab(editor, imageListCtrl)]; - if ($_pacmectjj661094.hasAdvTab(editor)) { - body.push($_807qrod3jj6610ag.makeTab(editor)); + if ($_ffod9nctjj68z5jc.hasAdvTab(editor) || $_ffod9nctjj68z5jc.hasUploadUrl(editor) || $_ffod9nctjj68z5jc.hasUploadHandler(editor)) { + var body = [$_9rf456d9jj68z5p8.makeTab(editor, imageListCtrl)]; + if ($_ffod9nctjj68z5jc.hasAdvTab(editor)) { + body.push($_6s0lzjd3jj68z5nm.makeTab(editor)); } - if ($_pacmectjj661094.hasUploadUrl(editor) || $_pacmectjj661094.hasUploadHandler(editor)) { - body.push($_1wi3c9dbjj6610be.makeTab(editor)); + if ($_ffod9nctjj68z5jc.hasUploadUrl(editor) || $_ffod9nctjj68z5jc.hasUploadHandler(editor)) { + body.push($_fmei8vdbjj68z5po.makeTab(editor)); } win = editor.windowManager.open({ title: 'Insert/edit image', @@ -1135,14 +1135,14 @@ var image = (function () { win = editor.windowManager.open({ title: 'Insert/edit image', data: data, - body: $_4cesked9jj6610b8.getGeneralItems(editor, imageListCtrl), + body: $_9rf456d9jj68z5p8.getGeneralItems(editor, imageListCtrl), onSubmit: curry(submitForm, editor) }); } - $_fmwts8dajj6610bb.syncSize(win); + $_2bns4dajj68z5pj.syncSize(win); } function open() { - $_klwv1cujj661097.createImageList(editor, showDialog); + $_ayn7edcujj68z5jl.createImageList(editor, showDialog); } return { open: open }; } @@ -1150,7 +1150,7 @@ var image = (function () { var register = function (editor) { editor.addCommand('mceImage', Dialog(editor).open); }; - var $_fc5qhfcrjj66108t = { register: register }; + var $_8z6yh3crjj68z5id = { register: register }; var hasImageClass = function (node) { var className = node.attr('class'); @@ -1177,7 +1177,7 @@ var image = (function () { editor.serializer.addNodeFilter('figure', toggleContentEditableState(false)); }); }; - var $_dpchv4dhjj6610bw = { setup: setup }; + var $_cald6cdhjj68z5qo = { setup: setup }; var register$1 = function (editor) { editor.addButton('image', { @@ -1194,12 +1194,12 @@ var image = (function () { prependToContext: true }); }; - var $_577og7dijj6610by = { register: register$1 }; + var $_7ofuutdijj68z5qr = { register: register$1 }; global.add('image', function (editor) { - $_dpchv4dhjj6610bw.setup(editor); - $_577og7dijj6610by.register(editor); - $_fc5qhfcrjj66108t.register(editor); + $_cald6cdhjj68z5qo.setup(editor); + $_7ofuutdijj68z5qr.register(editor); + $_8z6yh3crjj68z5id.register(editor); }); function Plugin () { } diff --git a/js/tinymce/plugins/imagetools/plugin.js b/js/tinymce/plugins/imagetools/plugin.js index 27a31ea6774..12d78d84ef2 100644 --- a/js/tinymce/plugins/imagetools/plugin.js +++ b/js/tinymce/plugins/imagetools/plugin.js @@ -53,7 +53,7 @@ var imagetools = (function () { canvas.height = height; return canvas; } - var $_6iac51drjj6610gj = { + var $_bhodn3drjj68z60r = { create: create, clone: clone, resize: resize, @@ -67,7 +67,7 @@ var imagetools = (function () { function getHeight(image) { return image.naturalHeight || image.height; } - var $_4dsq2ndsjj6610gl = { + var $_2hfcvbdsjj68z60u = { getWidth: getWidth, getHeight: getHeight }; @@ -420,32 +420,32 @@ var imagetools = (function () { throw name + ' not available on this browser'; return actual; }; - var $_f6ubbrdxjj6610gz = { getOrDie: getOrDie }; + var $_5s8rhhdxjj68z61v = { getOrDie: getOrDie }; function Blob (parts, properties) { - var f = $_f6ubbrdxjj6610gz.getOrDie('Blob'); + var f = $_5s8rhhdxjj68z61v.getOrDie('Blob'); return new f(parts, properties); } function FileReader () { - var f = $_f6ubbrdxjj6610gz.getOrDie('FileReader'); + var f = $_5s8rhhdxjj68z61v.getOrDie('FileReader'); return new f(); } function Uint8Array (arr) { - var f = $_f6ubbrdxjj6610gz.getOrDie('Uint8Array'); + var f = $_5s8rhhdxjj68z61v.getOrDie('Uint8Array'); return new f(arr); } var requestAnimationFrame = function (callback) { - var f = $_f6ubbrdxjj6610gz.getOrDie('requestAnimationFrame'); + var f = $_5s8rhhdxjj68z61v.getOrDie('requestAnimationFrame'); f(callback); }; var atob = function (base64) { - var f = $_f6ubbrdxjj6610gz.getOrDie('atob'); + var f = $_5s8rhhdxjj68z61v.getOrDie('atob'); return f(base64); }; - var $_2c8zlie2jj6610h8 = { + var $_2u1ccle2jj68z62j = { atob: atob, requestAnimationFrame: requestAnimationFrame }; @@ -515,7 +515,7 @@ var imagetools = (function () { var mimetype = matches[1]; var base64 = data[1]; var sliceSize = 1024; - var byteCharacters = $_2c8zlie2jj6610h8.atob(base64); + var byteCharacters = $_2u1ccle2jj68z62j.atob(base64); var bytesLength = byteCharacters.length; var slicesCount = Math.ceil(bytesLength / sliceSize); var byteArrays = new Array(slicesCount); @@ -568,8 +568,8 @@ var imagetools = (function () { return blobToImage(blob).then(function (image) { revokeImageUrl(image); var context, canvas; - canvas = $_6iac51drjj6610gj.create($_4dsq2ndsjj6610gl.getWidth(image), $_4dsq2ndsjj6610gl.getHeight(image)); - context = $_6iac51drjj6610gj.get2dContext(canvas); + canvas = $_bhodn3drjj68z60r.create($_2hfcvbdsjj68z60u.getWidth(image), $_2hfcvbdsjj68z60u.getHeight(image)); + context = $_bhodn3drjj68z60r.get2dContext(canvas); context.drawImage(image, 0, 0); return canvas; }); @@ -600,7 +600,7 @@ var imagetools = (function () { function revokeImageUrl(image) { URL.revokeObjectURL(image.src); } - var $_7tjq0edqjj6610fw = { + var $_34usc9dqjj68z5zf = { blobToImage: blobToImage, imageToBlob: imageToBlob, blobToArrayBuffer: blobToArrayBuffer, @@ -614,24 +614,24 @@ var imagetools = (function () { }; var blobToImage$1 = function (image) { - return $_7tjq0edqjj6610fw.blobToImage(image); + return $_34usc9dqjj68z5zf.blobToImage(image); }; var imageToBlob$1 = function (blob) { - return $_7tjq0edqjj6610fw.imageToBlob(blob); + return $_34usc9dqjj68z5zf.imageToBlob(blob); }; var blobToDataUri$1 = function (blob) { - return $_7tjq0edqjj6610fw.blobToDataUri(blob); + return $_34usc9dqjj68z5zf.blobToDataUri(blob); }; var blobToBase64$1 = function (blob) { - return $_7tjq0edqjj6610fw.blobToBase64(blob); + return $_34usc9dqjj68z5zf.blobToBase64(blob); }; var dataUriToBlobSync$1 = function (uri) { - return $_7tjq0edqjj6610fw.dataUriToBlobSync(uri); + return $_34usc9dqjj68z5zf.dataUriToBlobSync(uri); }; var uriToBlob$1 = function (uri) { - return Option.from($_7tjq0edqjj6610fw.uriToBlob(uri)); + return Option.from($_34usc9dqjj68z5zf.uriToBlob(uri)); }; - var $_6u3130dpjj6610fp = { + var $_51dr9rdpjj68z5yx = { blobToImage: blobToImage$1, imageToBlob: imageToBlob$1, blobToDataUri: blobToDataUri$1, @@ -654,12 +654,12 @@ var imagetools = (function () { } function toAdjustedBlob(type, quality) { return getCanvas.then(function (canvas) { - return $_7tjq0edqjj6610fw.canvasToBlob(canvas, type, quality); + return $_34usc9dqjj68z5zf.canvasToBlob(canvas, type, quality); }); } function toAdjustedDataURL(type, quality) { return getCanvas.then(function (canvas) { - return $_7tjq0edqjj6610fw.canvasToDataURL(canvas, type, quality); + return $_34usc9dqjj68z5zf.canvasToDataURL(canvas, type, quality); }); } function toAdjustedBase64(type, quality) { @@ -668,7 +668,7 @@ var imagetools = (function () { }); } function toCanvas() { - return getCanvas.then($_6iac51drjj6610gj.clone); + return getCanvas.then($_bhodn3drjj68z60r.clone); } return { getType: getType, @@ -682,24 +682,24 @@ var imagetools = (function () { }; } function fromBlob(blob) { - return $_7tjq0edqjj6610fw.blobToDataUri(blob).then(function (uri) { - return create$1($_7tjq0edqjj6610fw.blobToCanvas(blob), blob, uri); + return $_34usc9dqjj68z5zf.blobToDataUri(blob).then(function (uri) { + return create$1($_34usc9dqjj68z5zf.blobToCanvas(blob), blob, uri); }); } function fromCanvas(canvas, type) { - return $_7tjq0edqjj6610fw.canvasToBlob(canvas, type).then(function (blob) { + return $_34usc9dqjj68z5zf.canvasToBlob(canvas, type).then(function (blob) { return create$1(Promise.resolve(canvas), blob, canvas.toDataURL()); }); } function fromImage(image) { - return $_7tjq0edqjj6610fw.imageToBlob(image).then(function (blob) { + return $_34usc9dqjj68z5zf.imageToBlob(image).then(function (blob) { return fromBlob(blob); }); } var fromBlobAndUrlSync = function (blob, url) { - return create$1($_7tjq0edqjj6610fw.blobToCanvas(blob), blob, url); + return create$1($_34usc9dqjj68z5zf.blobToCanvas(blob), blob, url); }; - var $_3gs8uge5jj6610hk = { + var $_9oy8m0e5jj68z639 = { fromBlob: fromBlob, fromCanvas: fromCanvas, fromImage: fromImage, @@ -1110,7 +1110,7 @@ var imagetools = (function () { 1 ], value)); } - var $_2w811ne6jj6610hr = { + var $_jaz0pe6jj68z63l = { identity: identity$1, adjust: adjust, multiply: multiply, @@ -1129,7 +1129,7 @@ var imagetools = (function () { }); } function applyColorFilter(canvas, type, matrix) { - var context = $_6iac51drjj6610gj.get2dContext(canvas); + var context = $_bhodn3drjj68z60r.get2dContext(canvas); var pixels; function applyMatrix(pixels, m) { var d = pixels.data, r, g, b, a, i, m0 = m[0], m1 = m[1], m2 = m[2], m3 = m[3], m4 = m[4], m5 = m[5], m6 = m[6], m7 = m[7], m8 = m[8], m9 = m[9], m10 = m[10], m11 = m[11], m12 = m[12], m13 = m[13], m14 = m[14], m15 = m[15], m16 = m[16], m17 = m[17], m18 = m[18], m19 = m[19]; @@ -1147,7 +1147,7 @@ var imagetools = (function () { } pixels = applyMatrix(context.getImageData(0, 0, canvas.width, canvas.height), matrix); context.putImageData(pixels, 0, 0); - return $_3gs8uge5jj6610hk.fromCanvas(canvas, type); + return $_9oy8m0e5jj68z639.fromCanvas(canvas, type); } function convoluteFilter(ir, matrix) { return ir.toCanvas().then(function (canvas) { @@ -1155,7 +1155,7 @@ var imagetools = (function () { }); } function applyConvoluteFilter(canvas, type, matrix) { - var context = $_6iac51drjj6610gj.get2dContext(canvas); + var context = $_bhodn3drjj68z60r.get2dContext(canvas); var pixelsIn, pixelsOut; function applyMatrix(pixelsIn, pixelsOut, matrix) { var rgba, drgba, side, halfSide, x, y, r, g, b, cx, cy, scx, scy, offset, wt, w, h; @@ -1199,11 +1199,11 @@ var imagetools = (function () { pixelsOut = context.getImageData(0, 0, canvas.width, canvas.height); pixelsOut = applyMatrix(pixelsIn, pixelsOut, matrix); context.putImageData(pixelsOut, 0, 0); - return $_3gs8uge5jj6610hk.fromCanvas(canvas, type); + return $_9oy8m0e5jj68z639.fromCanvas(canvas, type); } function functionColorFilter(colorFn) { var filterImpl = function (canvas, type, value) { - var context = $_6iac51drjj6610gj.get2dContext(canvas); + var context = $_bhodn3drjj68z60r.get2dContext(canvas); var pixels, i, lookup = new Array(256); function applyLookup(pixels, lookup) { var d = pixels.data, i; @@ -1219,7 +1219,7 @@ var imagetools = (function () { } pixels = applyLookup(context.getImageData(0, 0, canvas.width, canvas.height), lookup); context.putImageData(pixels, 0, 0); - return $_3gs8uge5jj6610hk.fromCanvas(canvas, type); + return $_9oy8m0e5jj68z639.fromCanvas(canvas, type); }; return function (ir, value) { return ir.toCanvas().then(function (canvas) { @@ -1229,7 +1229,7 @@ var imagetools = (function () { } function complexAdjustableColorFilter(matrixAdjustFn) { return function (ir, adjust) { - return colorFilter(ir, matrixAdjustFn($_2w811ne6jj6610hr.identity(), adjust)); + return colorFilter(ir, matrixAdjustFn($_jaz0pe6jj68z63l.identity(), adjust)); }; } function basicColorFilter(matrix) { @@ -1242,7 +1242,7 @@ var imagetools = (function () { return convoluteFilter(ir, kernel); }; } - var $_a9zjsqe4jj6610he = { + var $_2b77m4e4jj68z62y = { invert: basicColorFilter([ -1, 0, @@ -1265,14 +1265,14 @@ var imagetools = (function () { 1, 0 ]), - brightness: complexAdjustableColorFilter($_2w811ne6jj6610hr.adjustBrightness), - hue: complexAdjustableColorFilter($_2w811ne6jj6610hr.adjustHue), - saturate: complexAdjustableColorFilter($_2w811ne6jj6610hr.adjustSaturation), - contrast: complexAdjustableColorFilter($_2w811ne6jj6610hr.adjustContrast), - grayscale: complexAdjustableColorFilter($_2w811ne6jj6610hr.adjustGrayscale), - sepia: complexAdjustableColorFilter($_2w811ne6jj6610hr.adjustSepia), + brightness: complexAdjustableColorFilter($_jaz0pe6jj68z63l.adjustBrightness), + hue: complexAdjustableColorFilter($_jaz0pe6jj68z63l.adjustHue), + saturate: complexAdjustableColorFilter($_jaz0pe6jj68z63l.adjustSaturation), + contrast: complexAdjustableColorFilter($_jaz0pe6jj68z63l.adjustContrast), + grayscale: complexAdjustableColorFilter($_jaz0pe6jj68z63l.adjustGrayscale), + sepia: complexAdjustableColorFilter($_jaz0pe6jj68z63l.adjustSepia), colorize: function (ir, adjustR, adjustG, adjustB) { - return colorFilter(ir, $_2w811ne6jj6610hr.adjustColors($_2w811ne6jj6610hr.identity(), adjustR, adjustG, adjustB)); + return colorFilter(ir, $_jaz0pe6jj68z63l.adjustColors($_jaz0pe6jj68z63l.identity(), adjustR, adjustG, adjustB)); }, sharpen: basicConvolutionFilter([ 0, @@ -1307,8 +1307,8 @@ var imagetools = (function () { }; function scale(image, dW, dH) { - var sW = $_4dsq2ndsjj6610gl.getWidth(image); - var sH = $_4dsq2ndsjj6610gl.getHeight(image); + var sW = $_2hfcvbdsjj68z60u.getWidth(image); + var sH = $_2hfcvbdsjj68z60u.getHeight(image); var wRatio = dW / sW; var hRatio = dH / sH; var scaleCapped = false; @@ -1327,17 +1327,17 @@ var imagetools = (function () { } function _scale(image, wRatio, hRatio) { return new Promise(function (resolve) { - var sW = $_4dsq2ndsjj6610gl.getWidth(image); - var sH = $_4dsq2ndsjj6610gl.getHeight(image); + var sW = $_2hfcvbdsjj68z60u.getWidth(image); + var sH = $_2hfcvbdsjj68z60u.getHeight(image); var dW = Math.floor(sW * wRatio); var dH = Math.floor(sH * hRatio); - var canvas = $_6iac51drjj6610gj.create(dW, dH); - var context = $_6iac51drjj6610gj.get2dContext(canvas); + var canvas = $_bhodn3drjj68z60r.create(dW, dH); + var context = $_bhodn3drjj68z60r.get2dContext(canvas); context.drawImage(image, 0, 0, sW, sH, 0, 0, dW, dH); resolve(canvas); }); } - var $_3etkcse8jj6610i4 = { scale: scale }; + var $_6d4zfhe8jj68z642 = { scale: scale }; function rotate(ir, angle) { return ir.toCanvas().then(function (canvas) { @@ -1345,12 +1345,12 @@ var imagetools = (function () { }); } function applyRotate(image, type, angle) { - var canvas = $_6iac51drjj6610gj.create(image.width, image.height); - var context = $_6iac51drjj6610gj.get2dContext(canvas); + var canvas = $_bhodn3drjj68z60r.create(image.width, image.height); + var context = $_bhodn3drjj68z60r.get2dContext(canvas); var translateX = 0, translateY = 0; angle = angle < 0 ? 360 + angle : angle; if (angle == 90 || angle == 270) { - $_6iac51drjj6610gj.resize(canvas, canvas.height, canvas.width); + $_bhodn3drjj68z60r.resize(canvas, canvas.height, canvas.width); } if (angle == 90 || angle == 180) { translateX = canvas.width; @@ -1361,7 +1361,7 @@ var imagetools = (function () { context.translate(translateX, translateY); context.rotate(angle * Math.PI / 180); context.drawImage(image, 0, 0); - return $_3gs8uge5jj6610hk.fromCanvas(canvas, type); + return $_9oy8m0e5jj68z639.fromCanvas(canvas, type); } function flip(ir, axis) { return ir.toCanvas().then(function (canvas) { @@ -1369,8 +1369,8 @@ var imagetools = (function () { }); } function applyFlip(image, type, axis) { - var canvas = $_6iac51drjj6610gj.create(image.width, image.height); - var context = $_6iac51drjj6610gj.get2dContext(canvas); + var canvas = $_bhodn3drjj68z60r.create(image.width, image.height); + var context = $_bhodn3drjj68z60r.get2dContext(canvas); if (axis == 'v') { context.scale(1, -1); context.drawImage(image, 0, -canvas.height); @@ -1378,7 +1378,7 @@ var imagetools = (function () { context.scale(-1, 1); context.drawImage(image, -canvas.width, 0); } - return $_3gs8uge5jj6610hk.fromCanvas(canvas, type); + return $_9oy8m0e5jj68z639.fromCanvas(canvas, type); } function crop(ir, x, y, w, h) { return ir.toCanvas().then(function (canvas) { @@ -1386,19 +1386,19 @@ var imagetools = (function () { }); } function applyCrop(image, type, x, y, w, h) { - var canvas = $_6iac51drjj6610gj.create(w, h); - var context = $_6iac51drjj6610gj.get2dContext(canvas); + var canvas = $_bhodn3drjj68z60r.create(w, h); + var context = $_bhodn3drjj68z60r.get2dContext(canvas); context.drawImage(image, -x, -y); - return $_3gs8uge5jj6610hk.fromCanvas(canvas, type); + return $_9oy8m0e5jj68z639.fromCanvas(canvas, type); } function resize$1(ir, w, h) { return ir.toCanvas().then(function (canvas) { - return $_3etkcse8jj6610i4.scale(canvas, w, h).then(function (newCanvas) { - return $_3gs8uge5jj6610hk.fromCanvas(newCanvas, ir.getType()); + return $_6d4zfhe8jj68z642.scale(canvas, w, h).then(function (newCanvas) { + return $_9oy8m0e5jj68z639.fromCanvas(newCanvas, ir.getType()); }); }); } - var $_qmk3ae7jj6610hx = { + var $_3zhidje7jj68z63w = { rotate: rotate, flip: flip, crop: crop, @@ -1801,7 +1801,7 @@ var imagetools = (function () { }(); var extractFrom = function (blob) { - return $_7tjq0edqjj6610fw.blobToArrayBuffer(blob).then(function (ar) { + return $_34usc9dqjj68z5zf.blobToArrayBuffer(blob).then(function (ar) { try { var br = new BinaryReader(ar); if (br.SHORT(0) === 65496) { @@ -1856,55 +1856,55 @@ var imagetools = (function () { } return headers; }; - var $_e9scrke9jj6610i6 = { extractFrom: extractFrom }; + var $_fsu2h6e9jj68z648 = { extractFrom: extractFrom }; var invert = function (ir) { - return $_a9zjsqe4jj6610he.invert(ir); + return $_2b77m4e4jj68z62y.invert(ir); }; var sharpen = function (ir) { - return $_a9zjsqe4jj6610he.sharpen(ir); + return $_2b77m4e4jj68z62y.sharpen(ir); }; var emboss = function (ir) { - return $_a9zjsqe4jj6610he.emboss(ir); + return $_2b77m4e4jj68z62y.emboss(ir); }; var gamma = function (ir, value) { - return $_a9zjsqe4jj6610he.gamma(ir, value); + return $_2b77m4e4jj68z62y.gamma(ir, value); }; var exposure = function (ir, value) { - return $_a9zjsqe4jj6610he.exposure(ir, value); + return $_2b77m4e4jj68z62y.exposure(ir, value); }; var colorize = function (ir, adjustR, adjustG, adjustB) { - return $_a9zjsqe4jj6610he.colorize(ir, adjustR, adjustG, adjustB); + return $_2b77m4e4jj68z62y.colorize(ir, adjustR, adjustG, adjustB); }; var brightness = function (ir, adjust) { - return $_a9zjsqe4jj6610he.brightness(ir, adjust); + return $_2b77m4e4jj68z62y.brightness(ir, adjust); }; var hue = function (ir, adjust) { - return $_a9zjsqe4jj6610he.hue(ir, adjust); + return $_2b77m4e4jj68z62y.hue(ir, adjust); }; var saturate = function (ir, adjust) { - return $_a9zjsqe4jj6610he.saturate(ir, adjust); + return $_2b77m4e4jj68z62y.saturate(ir, adjust); }; var contrast = function (ir, adjust) { - return $_a9zjsqe4jj6610he.contrast(ir, adjust); + return $_2b77m4e4jj68z62y.contrast(ir, adjust); }; var grayscale = function (ir, adjust) { - return $_a9zjsqe4jj6610he.grayscale(ir, adjust); + return $_2b77m4e4jj68z62y.grayscale(ir, adjust); }; var sepia = function (ir, adjust) { - return $_a9zjsqe4jj6610he.sepia(ir, adjust); + return $_2b77m4e4jj68z62y.sepia(ir, adjust); }; var flip$1 = function (ir, axis) { - return $_qmk3ae7jj6610hx.flip(ir, axis); + return $_3zhidje7jj68z63w.flip(ir, axis); }; var crop$1 = function (ir, x, y, w, h) { - return $_qmk3ae7jj6610hx.crop(ir, x, y, w, h); + return $_3zhidje7jj68z63w.crop(ir, x, y, w, h); }; var resize$2 = function (ir, w, h) { - return $_qmk3ae7jj6610hx.resize(ir, w, h); + return $_3zhidje7jj68z63w.resize(ir, w, h); }; var rotate$1 = function (ir, angle) { - return $_qmk3ae7jj6610hx.rotate(ir, angle); + return $_3zhidje7jj68z63w.rotate(ir, angle); }; var exifRotate = function (ir) { var ROTATE_90 = 6; @@ -1927,9 +1927,9 @@ var imagetools = (function () { var notJpeg = function () { return ir; }; - return ir.toBlob().then($_e9scrke9jj6610i6.extractFrom).then(checkRotation, notJpeg); + return ir.toBlob().then($_fsu2h6e9jj68z648.extractFrom).then(checkRotation, notJpeg); }; - var $_8e3zd5e3jj6610ha = { + var $_cdef8se3jj68z62n = { invert: invert, sharpen: sharpen, emboss: emboss, @@ -1950,13 +1950,13 @@ var imagetools = (function () { }; var blobToImageResult = function (blob) { - return $_3gs8uge5jj6610hk.fromBlob(blob); + return $_9oy8m0e5jj68z639.fromBlob(blob); }; var fromBlobAndUrlSync$1 = function (blob, uri) { - return $_3gs8uge5jj6610hk.fromBlobAndUrlSync(blob, uri); + return $_9oy8m0e5jj68z639.fromBlobAndUrlSync(blob, uri); }; var imageToImageResult = function (image) { - return $_3gs8uge5jj6610hk.fromImage(image); + return $_9oy8m0e5jj68z639.fromImage(image); }; var imageResultToBlob = function (ir, type, quality) { if (type === undefined && quality === undefined) { @@ -1971,7 +1971,7 @@ var imagetools = (function () { var imageResultToDataURL = function (ir) { return ir.toDataURL(); }; - var $_4vle13ecjj6610ik = { + var $_24sgsxecjj68z650 = { blobToImageResult: blobToImageResult, fromBlobAndUrlSync: fromBlobAndUrlSync$1, imageToImageResult: imageToImageResult, @@ -1981,7 +1981,7 @@ var imagetools = (function () { }; var url = function () { - return $_f6ubbrdxjj6610gz.getOrDie('URL'); + return $_5s8rhhdxjj68z61v.getOrDie('URL'); }; var createObjectURL = function (blob) { return url().createObjectURL(blob); @@ -1989,7 +1989,7 @@ var imagetools = (function () { var revokeObjectURL = function (u) { url().revokeObjectURL(u); }; - var $_epxh21edjj6610im = { + var $_5yefy0edjj68z654 = { createObjectURL: createObjectURL, revokeObjectURL: revokeObjectURL }; @@ -2079,7 +2079,7 @@ var imagetools = (function () { } }); }; - var $_3i7dx5eojj6610jp = { loadImage: loadImage$1 }; + var $_42682yeojj68z67s = { loadImage: loadImage$1 }; var global$8 = tinymce.util.Tools.resolve('tinymce.dom.DomQuery'); @@ -2377,7 +2377,7 @@ var imagetools = (function () { imageSrc: function (url) { var self$$1 = this, img = new Image(); img.src = url; - $_3i7dx5eojj6610jp.loadImage(img).then(function () { + $_42682yeojj68z67s.loadImage(img).then(function () { var rect, $img; var lastRect = self$$1.state.get('viewRect'); $img = self$$1.$el.find('img'); @@ -2513,17 +2513,17 @@ var imagetools = (function () { }); return new ImagePanel(settings); }; - var $_blubfemjj6610jk = { create: create$2 }; + var $_forurremjj68z67g = { create: create$2 }; function createState(blob) { return { blob: blob, - url: $_epxh21edjj6610im.createObjectURL(blob) + url: $_5yefy0edjj68z654.createObjectURL(blob) }; } function destroyState(state) { if (state) { - $_epxh21edjj6610im.revokeObjectURL(state.url); + $_5yefy0edjj68z654.revokeObjectURL(state.url); } } function destroyStates(states) { @@ -2593,8 +2593,8 @@ var imagetools = (function () { } function crop() { var rect = imagePanel.selection(); - $_4vle13ecjj6610ik.blobToImageResult(currentState.blob).then(function (ir) { - $_8e3zd5e3jj6610ha.crop(ir, rect.x, rect.y, rect.w, rect.h).then(imageResultToBlob).then(function (blob) { + $_24sgsxecjj68z650.blobToImageResult(currentState.blob).then(function (ir) { + $_cdef8se3jj68z62n.crop(ir, rect.x, rect.y, rect.w, rect.h).then(imageResultToBlob).then(function (blob) { addBlobState(blob); cancel(); }); @@ -2604,7 +2604,7 @@ var imagetools = (function () { var args = [].slice.call(arguments, 1); return function () { var state = tempState || currentState; - $_4vle13ecjj6610ik.blobToImageResult(state.blob).then(function (ir) { + $_24sgsxecjj68z650.blobToImageResult(state.blob).then(function (ir) { fn.apply(this, [ir].concat(args)).then(imageResultToBlob).then(addTempState); }); }; @@ -2616,7 +2616,7 @@ var imagetools = (function () { } var args = [].slice.call(arguments, 1); return function () { - $_4vle13ecjj6610ik.blobToImageResult(currentState.blob).then(function (ir) { + $_24sgsxecjj68z650.blobToImageResult(currentState.blob).then(function (ir) { fn.apply(this, [ir].concat(args)).then(imageResultToBlob).then(addBlobState); }); }; @@ -2715,7 +2715,7 @@ var imagetools = (function () { } ])).hide().on('show', function () { disableUndoRedo(); - $_4vle13ecjj6610ik.blobToImageResult(currentState.blob).then(function (ir) { + $_24sgsxecjj68z650.blobToImageResult(currentState.blob).then(function (ir) { return filter(ir); }).then(imageResultToBlob).then(function (blob) { var newTempState = createState(blob); @@ -2727,7 +2727,7 @@ var imagetools = (function () { } function createVariableFilterPanel(title, filter, value, min, max) { function update(value) { - $_4vle13ecjj6610ik.blobToImageResult(currentState.blob).then(function (ir) { + $_24sgsxecjj68z650.blobToImageResult(currentState.blob).then(function (ir) { return filter(ir, value); }).then(imageResultToBlob).then(function (blob) { var newTempState = createState(blob); @@ -2776,7 +2776,7 @@ var imagetools = (function () { r = win.find('#r')[0].value(); g = win.find('#g')[0].value(); b = win.find('#b')[0].value(); - $_4vle13ecjj6610ik.blobToImageResult(currentState.blob).then(function (ir) { + $_24sgsxecjj68z650.blobToImageResult(currentState.blob).then(function (ir) { return filter(ir, r, g, b); }).then(imageResultToBlob).then(function (blob) { var newTempState = createState(blob); @@ -2905,7 +2905,7 @@ var imagetools = (function () { ])).hide().on('submit', function (e) { var width = parseInt(win.find('#w').value(), 10), height = parseInt(win.find('#h').value(), 10); e.preventDefault(); - action($_8e3zd5e3jj6610ha.resize, width, height)(); + action($_cdef8se3jj68z62n.resize, width, height)(); cancel(); }).on('show', disableUndoRedo); flipRotatePanel = createPanel(reverseIfRtl([ @@ -2920,22 +2920,22 @@ var imagetools = (function () { { icon: 'fliph', tooltip: 'Flip horizontally', - onclick: tempAction($_8e3zd5e3jj6610ha.flip, 'h') + onclick: tempAction($_cdef8se3jj68z62n.flip, 'h') }, { icon: 'flipv', tooltip: 'Flip vertically', - onclick: tempAction($_8e3zd5e3jj6610ha.flip, 'v') + onclick: tempAction($_cdef8se3jj68z62n.flip, 'v') }, { icon: 'rotateleft', tooltip: 'Rotate counterclockwise', - onclick: tempAction($_8e3zd5e3jj6610ha.rotate, -90) + onclick: tempAction($_cdef8se3jj68z62n.rotate, -90) }, { icon: 'rotateright', tooltip: 'Rotate clockwise', - onclick: tempAction($_8e3zd5e3jj6610ha.rotate, 90) + onclick: tempAction($_cdef8se3jj68z62n.rotate, 90) }, { type: 'spacer', @@ -2947,18 +2947,18 @@ var imagetools = (function () { onclick: applyTempState } ])).hide().on('show', disableUndoRedo); - invertPanel = createFilterPanel('Invert', $_8e3zd5e3jj6610ha.invert); - sharpenPanel = createFilterPanel('Sharpen', $_8e3zd5e3jj6610ha.sharpen); - embossPanel = createFilterPanel('Emboss', $_8e3zd5e3jj6610ha.emboss); - brightnessPanel = createVariableFilterPanel('Brightness', $_8e3zd5e3jj6610ha.brightness, 0, -1, 1); - huePanel = createVariableFilterPanel('Hue', $_8e3zd5e3jj6610ha.hue, 180, 0, 360); - saturatePanel = createVariableFilterPanel('Saturate', $_8e3zd5e3jj6610ha.saturate, 0, -1, 1); - contrastPanel = createVariableFilterPanel('Contrast', $_8e3zd5e3jj6610ha.contrast, 0, -1, 1); - grayscalePanel = createVariableFilterPanel('Grayscale', $_8e3zd5e3jj6610ha.grayscale, 0, 0, 1); - sepiaPanel = createVariableFilterPanel('Sepia', $_8e3zd5e3jj6610ha.sepia, 0, 0, 1); - colorizePanel = createRgbFilterPanel('Colorize', $_8e3zd5e3jj6610ha.colorize); - gammaPanel = createVariableFilterPanel('Gamma', $_8e3zd5e3jj6610ha.gamma, 0, -1, 1); - exposurePanel = createVariableFilterPanel('Exposure', $_8e3zd5e3jj6610ha.exposure, 1, 0, 2); + invertPanel = createFilterPanel('Invert', $_cdef8se3jj68z62n.invert); + sharpenPanel = createFilterPanel('Sharpen', $_cdef8se3jj68z62n.sharpen); + embossPanel = createFilterPanel('Emboss', $_cdef8se3jj68z62n.emboss); + brightnessPanel = createVariableFilterPanel('Brightness', $_cdef8se3jj68z62n.brightness, 0, -1, 1); + huePanel = createVariableFilterPanel('Hue', $_cdef8se3jj68z62n.hue, 180, 0, 360); + saturatePanel = createVariableFilterPanel('Saturate', $_cdef8se3jj68z62n.saturate, 0, -1, 1); + contrastPanel = createVariableFilterPanel('Contrast', $_cdef8se3jj68z62n.contrast, 0, -1, 1); + grayscalePanel = createVariableFilterPanel('Grayscale', $_cdef8se3jj68z62n.grayscale, 0, 0, 1); + sepiaPanel = createVariableFilterPanel('Sepia', $_cdef8se3jj68z62n.sepia, 0, 0, 1); + colorizePanel = createRgbFilterPanel('Colorize', $_cdef8se3jj68z62n.colorize); + gammaPanel = createVariableFilterPanel('Gamma', $_cdef8se3jj68z62n.gamma, 0, -1, 1); + exposurePanel = createVariableFilterPanel('Exposure', $_cdef8se3jj68z62n.exposure, 1, 0, 2); filtersPanel = createPanel(reverseIfRtl([ { text: 'Back', @@ -3045,7 +3045,7 @@ var imagetools = (function () { onclick: switchPanel(invertPanel) } ])); - imagePanel = $_blubfemjj6610jk.create({ + imagePanel = $_forurremjj68z67g.create({ flex: 1, imageSrc: currentState.url }); @@ -3161,7 +3161,7 @@ var imagetools = (function () { }); }); } - var $_by0dc3eijj6610iv = { edit: edit }; + var $_31rsvyeijj68z65o = { edit: edit }; function getImageSize(img) { var width, height; @@ -3213,7 +3213,7 @@ var imagetools = (function () { h: img.naturalHeight }; } - var $_228ki0eujj6610kh = { + var $_7102w9eujj68z69r = { getImageSize: getImageSize, setImageSize: setImageSize, getNaturalImageSize: getNaturalImageSize @@ -3269,7 +3269,7 @@ var imagetools = (function () { }; function XMLHttpRequest$1 () { - var f = $_f6ubbrdxjj6610gz.getOrDie('XMLHttpRequest'); + var f = $_5s8rhhdxjj68z61v.getOrDie('XMLHttpRequest'); return new f(); } @@ -3322,7 +3322,7 @@ var imagetools = (function () { } return json; }; - var $_erm5k7ezjj6610l5 = { + var $_67gm3zezjj68z6ci = { traverse: traverse, readBlob: readBlob, requestUrlAsBlob: requestUrlAsBlob, @@ -3380,8 +3380,8 @@ var imagetools = (function () { }); }; var getServiceError = function (text) { - var serviceError = $_erm5k7ezjj6610l5.parseJson(text); - var errorType = $_erm5k7ezjj6610l5.traverse(serviceError, [ + var serviceError = $_67gm3zezjj68z6ci.parseJson(text); + var errorType = $_67gm3zezjj68z6ci.traverse(serviceError, [ 'error', 'type' ]); @@ -3389,7 +3389,7 @@ var imagetools = (function () { return 'ImageProxy Service error: ' + errorMsg; }; var handleServiceError = function (status, blob) { - return $_erm5k7ezjj6610l5.readBlob(blob).then(function (text) { + return $_67gm3zezjj68z6ci.readBlob(blob).then(function (text) { var serviceError = getServiceError(text); return global$3.reject(serviceError); }); @@ -3397,7 +3397,7 @@ var imagetools = (function () { var handleServiceErrorResponse = function (status, blob) { return isServiceErrorCode(status) ? handleServiceError(status, blob) : handleHttpError(status); }; - var $_67thnoewjj6610kn = { + var $_9tirigewjj68z6a5 = { handleServiceErrorResponse: handleServiceErrorResponse, handleHttpError: handleHttpError, getHttpErrorMsg: getHttpErrorMsg, @@ -3417,19 +3417,19 @@ var imagetools = (function () { 'Content-Type': 'application/json;charset=UTF-8', 'tiny-api-key': apiKey }; - return $_erm5k7ezjj6610l5.requestUrlAsBlob(appendApiKey(url, apiKey), headers, false).then(function (result) { - return result.status < 200 || result.status >= 300 ? $_67thnoewjj6610kn.handleServiceErrorResponse(result.status, result.blob) : global$3.resolve(result.blob); + return $_67gm3zezjj68z6ci.requestUrlAsBlob(appendApiKey(url, apiKey), headers, false).then(function (result) { + return result.status < 200 || result.status >= 300 ? $_9tirigewjj68z6a5.handleServiceErrorResponse(result.status, result.blob) : global$3.resolve(result.blob); }); }; function requestBlob(url, withCredentials) { - return $_erm5k7ezjj6610l5.requestUrlAsBlob(url, {}, withCredentials).then(function (result) { - return result.status < 200 || result.status >= 300 ? $_67thnoewjj6610kn.handleHttpError(result.status) : global$3.resolve(result.blob); + return $_67gm3zezjj68z6ci.requestUrlAsBlob(url, {}, withCredentials).then(function (result) { + return result.status < 200 || result.status >= 300 ? $_9tirigewjj68z6a5.handleHttpError(result.status) : global$3.resolve(result.blob); }); } var getUrl = function (url, apiKey, withCredentials) { return apiKey ? requestServiceBlob(url, apiKey) : requestBlob(url, withCredentials); }; - var $_c3oak9evjj6610kk = { getUrl: getUrl }; + var $_dz88hpevjj68z69z = { getUrl: getUrl }; var count$1 = 0; var isEditableImage = function (editor, img) { @@ -3468,15 +3468,15 @@ var imagetools = (function () { var imageToBlob$2 = function (editor, img) { var src = img.src, apiKey; if (isCorsImage(editor, img)) { - return $_c3oak9evjj6610kk.getUrl(img.src, null, isCorsWithCredentialsImage(editor, img)); + return $_dz88hpevjj68z69z.getUrl(img.src, null, isCorsWithCredentialsImage(editor, img)); } if (!isLocalImage(editor, img)) { src = getProxyUrl(editor); src += (src.indexOf('?') === -1 ? '?' : '&') + 'url=' + encodeURIComponent(img.src); apiKey = getApiKey(editor); - return $_c3oak9evjj6610kk.getUrl(src, apiKey, false); + return $_dz88hpevjj68z69z.getUrl(src, apiKey, false); } - return $_6u3130dpjj6610fp.imageToBlob(img); + return $_51dr9rdpjj68z5yx.imageToBlob(img); }; var findSelectedBlob = function (editor) { var blobInfo; @@ -3543,7 +3543,7 @@ var imagetools = (function () { }; var selectedImageOperation = function (editor, imageUploadTimerState, fn, size) { return function () { - return editor._scanForImages().then(curry(findSelectedBlob, editor)).then($_4vle13ecjj6610ik.blobToImageResult).then(fn).then(function (imageResult) { + return editor._scanForImages().then(curry(findSelectedBlob, editor)).then($_24sgsxecjj68z650.blobToImageResult).then(fn).then(function (imageResult) { return updateSelectedImage(editor, imageResult, false, imageUploadTimerState, size); }, function (error) { displayError(editor, error); @@ -3552,52 +3552,52 @@ var imagetools = (function () { }; var rotate$2 = function (editor, imageUploadTimerState, angle) { return function () { - var size = $_228ki0eujj6610kh.getImageSize(getSelectedImage(editor)); + var size = $_7102w9eujj68z69r.getImageSize(getSelectedImage(editor)); var flippedSize = size ? { w: size.h, h: size.w } : null; return selectedImageOperation(editor, imageUploadTimerState, function (imageResult) { - return $_8e3zd5e3jj6610ha.rotate(imageResult, angle); + return $_cdef8se3jj68z62n.rotate(imageResult, angle); }, flippedSize)(); }; }; var flip$2 = function (editor, imageUploadTimerState, axis) { return function () { return selectedImageOperation(editor, imageUploadTimerState, function (imageResult) { - return $_8e3zd5e3jj6610ha.flip(imageResult, axis); + return $_cdef8se3jj68z62n.flip(imageResult, axis); })(); }; }; var editImageDialog = function (editor, imageUploadTimerState) { return function () { - var img = getSelectedImage(editor), originalSize = $_228ki0eujj6610kh.getNaturalImageSize(img); + var img = getSelectedImage(editor), originalSize = $_7102w9eujj68z69r.getNaturalImageSize(img); var handleDialogBlob = function (blob) { return new global$3(function (resolve) { - $_6u3130dpjj6610fp.blobToImage(blob).then(function (newImage) { - var newSize = $_228ki0eujj6610kh.getNaturalImageSize(newImage); + $_51dr9rdpjj68z5yx.blobToImage(blob).then(function (newImage) { + var newSize = $_7102w9eujj68z69r.getNaturalImageSize(newImage); if (originalSize.w !== newSize.w || originalSize.h !== newSize.h) { - if ($_228ki0eujj6610kh.getImageSize(img)) { - $_228ki0eujj6610kh.setImageSize(img, newSize); + if ($_7102w9eujj68z69r.getImageSize(img)) { + $_7102w9eujj68z69r.setImageSize(img, newSize); } } - $_epxh21edjj6610im.revokeObjectURL(newImage.src); + $_5yefy0edjj68z654.revokeObjectURL(newImage.src); resolve(blob); }); }); }; var openDialog = function (editor, imageResult) { - return $_by0dc3eijj6610iv.edit(editor, imageResult).then(handleDialogBlob).then($_4vle13ecjj6610ik.blobToImageResult).then(function (imageResult) { + return $_31rsvyeijj68z65o.edit(editor, imageResult).then(handleDialogBlob).then($_24sgsxecjj68z650.blobToImageResult).then(function (imageResult) { return updateSelectedImage(editor, imageResult, true, imageUploadTimerState); }, function () { }); }; - findSelectedBlob(editor).then($_4vle13ecjj6610ik.blobToImageResult).then(curry(openDialog, editor), function (error) { + findSelectedBlob(editor).then($_24sgsxecjj68z650.blobToImageResult).then(curry(openDialog, editor), function (error) { displayError(editor, error); }); }; }; - var $_dt16cmdojj6610f2 = { + var $_uzqbldojj68z5xh = { rotate: rotate$2, flip: flip$2, editImageDialog: editImageDialog, @@ -3607,31 +3607,31 @@ var imagetools = (function () { var register = function (editor, imageUploadTimerState) { global$1.each({ - mceImageRotateLeft: $_dt16cmdojj6610f2.rotate(editor, imageUploadTimerState, -90), - mceImageRotateRight: $_dt16cmdojj6610f2.rotate(editor, imageUploadTimerState, 90), - mceImageFlipVertical: $_dt16cmdojj6610f2.flip(editor, imageUploadTimerState, 'v'), - mceImageFlipHorizontal: $_dt16cmdojj6610f2.flip(editor, imageUploadTimerState, 'h'), - mceEditImage: $_dt16cmdojj6610f2.editImageDialog(editor, imageUploadTimerState) + mceImageRotateLeft: $_uzqbldojj68z5xh.rotate(editor, imageUploadTimerState, -90), + mceImageRotateRight: $_uzqbldojj68z5xh.rotate(editor, imageUploadTimerState, 90), + mceImageFlipVertical: $_uzqbldojj68z5xh.flip(editor, imageUploadTimerState, 'v'), + mceImageFlipHorizontal: $_uzqbldojj68z5xh.flip(editor, imageUploadTimerState, 'h'), + mceEditImage: $_uzqbldojj68z5xh.editImageDialog(editor, imageUploadTimerState) }, function (fn, cmd) { editor.addCommand(cmd, fn); }); }; - var $_8wbidrdmjj6610ew = { register: register }; + var $_dwh874dmjj68z5x9 = { register: register }; var setup = function (editor, imageUploadTimerState, lastSelectedImageState) { editor.on('NodeChange', function (e) { var lastSelectedImage = lastSelectedImageState.get(); if (lastSelectedImage && lastSelectedImage.src !== e.element.src) { - $_dt16cmdojj6610f2.cancelTimedUpload(imageUploadTimerState); + $_uzqbldojj68z5xh.cancelTimedUpload(imageUploadTimerState); editor.editorUpload.uploadImagesAuto(); lastSelectedImageState.set(null); } - if ($_dt16cmdojj6610f2.isEditableImage(editor, e.element)) { + if ($_uzqbldojj68z5xh.isEditableImage(editor, e.element)) { lastSelectedImageState.set(e.element); } }); }; - var $_q2m8qf1jj6610ld = { setup: setup }; + var $_con64lf1jj68z6db = { setup: setup }; var register$1 = function (editor) { editor.addButton('rotateleft', { @@ -3660,20 +3660,20 @@ var imagetools = (function () { cmd: 'mceImage' }); }; - var $_c6e0w6f2jj6610lf = { register: register$1 }; + var $_evohrjf2jj68z6df = { register: register$1 }; var register$2 = function (editor) { - editor.addContextToolbar(curry($_dt16cmdojj6610f2.isEditableImage, editor), getToolbarItems(editor)); + editor.addContextToolbar(curry($_uzqbldojj68z5xh.isEditableImage, editor), getToolbarItems(editor)); }; - var $_86mdmvf3jj6610lg = { register: register$2 }; + var $_8nxfd0f3jj68z6dk = { register: register$2 }; global.add('imagetools', function (editor) { var imageUploadTimerState = Cell(0); var lastSelectedImageState = Cell(null); - $_8wbidrdmjj6610ew.register(editor, imageUploadTimerState); - $_c6e0w6f2jj6610lf.register(editor); - $_86mdmvf3jj6610lg.register(editor); - $_q2m8qf1jj6610ld.setup(editor, imageUploadTimerState, lastSelectedImageState); + $_dwh874dmjj68z5x9.register(editor, imageUploadTimerState); + $_evohrjf2jj68z6df.register(editor); + $_8nxfd0f3jj68z6dk.register(editor); + $_con64lf1jj68z6db.setup(editor, imageUploadTimerState, lastSelectedImageState); }); function Plugin () { } diff --git a/js/tinymce/plugins/importcss/plugin.js b/js/tinymce/plugins/importcss/plugin.js index 079c710fe4f..7e6c959b752 100644 --- a/js/tinymce/plugins/importcss/plugin.js +++ b/js/tinymce/plugins/importcss/plugin.js @@ -33,7 +33,7 @@ var importcss = (function () { var getFileFilter = function (editor) { return editor.getParam('importcss_file_filter'); }; - var $_55g7vsfcjj6610tz = { + var $_97mgavfcjj68z74t = { shouldMergeClasses: shouldMergeClasses, shouldImportExclusive: shouldImportExclusive, getSelectorConverter: getSelectorConverter, @@ -136,7 +136,7 @@ var importcss = (function () { classes: classes }; } - if ($_55g7vsfcjj6610tz.shouldMergeClasses(editor) !== false) { + if ($_97mgavfcjj68z74t.shouldMergeClasses(editor) !== false) { format.classes = classes; } else { format.attributes = { class: classes }; @@ -162,7 +162,7 @@ var importcss = (function () { }); }; var isExclusiveMode = function (editor, group) { - return group === null || $_55g7vsfcjj6610tz.shouldImportExclusive(editor) !== false; + return group === null || $_97mgavfcjj68z74t.shouldImportExclusive(editor) !== false; }; var isUniqueSelector = function (editor, selector, group, globallyUniqueSelectors) { return !(isExclusiveMode(editor, group) ? selector in globallyUniqueSelectors : selector in group.selectors); @@ -178,8 +178,8 @@ var importcss = (function () { var selectorConverter; if (group && group.selector_converter) { selectorConverter = group.selector_converter; - } else if ($_55g7vsfcjj6610tz.getSelectorConverter(editor)) { - selectorConverter = $_55g7vsfcjj6610tz.getSelectorConverter(editor); + } else if ($_97mgavfcjj68z74t.getSelectorConverter(editor)) { + selectorConverter = $_97mgavfcjj68z74t.getSelectorConverter(editor); } else { selectorConverter = function () { return defaultConvertSelectorToFormat(editor, selector); @@ -190,8 +190,8 @@ var importcss = (function () { var setup = function (editor) { editor.on('renderFormatsMenu', function (e) { var globallyUniqueSelectors = {}; - var selectorFilter = compileFilter($_55g7vsfcjj6610tz.getSelectorFilter(editor)), ctrl = e.control; - var groups = compileUserDefinedGroups($_55g7vsfcjj6610tz.getCssGroups(editor)); + var selectorFilter = compileFilter($_97mgavfcjj68z74t.getSelectorFilter(editor)), ctrl = e.control; + var groups = compileUserDefinedGroups($_97mgavfcjj68z74t.getCssGroups(editor)); var processSelector = function (selector, group) { if (isUniqueSelector(editor, selector, group, globallyUniqueSelectors)) { markUniqueSelector(editor, selector, group, globallyUniqueSelectors); @@ -207,10 +207,10 @@ var importcss = (function () { } return null; }; - if (!$_55g7vsfcjj6610tz.shouldAppend(editor)) { + if (!$_97mgavfcjj68z74t.shouldAppend(editor)) { ctrl.items().remove(); } - global$4.each(getSelectors(editor, e.doc || editor.getDoc(), compileFilter($_55g7vsfcjj6610tz.getFileFilter(editor))), function (selector) { + global$4.each(getSelectors(editor, e.doc || editor.getDoc(), compileFilter($_97mgavfcjj68z74t.getFileFilter(editor))), function (selector) { if (selector.indexOf('.mce-') === -1) { if (!selectorFilter || selectorFilter(selector)) { var selectorGroups = getGroupsBySelector(groups, selector); @@ -238,22 +238,22 @@ var importcss = (function () { e.control.renderNew(); }); }; - var $_767ds3f7jj6610tr = { + var $_ct6naxf7jj68z745 = { defaultConvertSelectorToFormat: defaultConvertSelectorToFormat, setup: setup }; var get = function (editor) { var convertSelectorToFormat = function (selectorText) { - return $_767ds3f7jj6610tr.defaultConvertSelectorToFormat(editor, selectorText); + return $_ct6naxf7jj68z745.defaultConvertSelectorToFormat(editor, selectorText); }; return { convertSelectorToFormat: convertSelectorToFormat }; }; - var $_57clhyf6jj6610tp = { get: get }; + var $_g9kvl9f6jj68z73p = { get: get }; global.add('importcss', function (editor) { - $_767ds3f7jj6610tr.setup(editor); - return $_57clhyf6jj6610tp.get(editor); + $_ct6naxf7jj68z745.setup(editor); + return $_g9kvl9f6jj68z73p.get(editor); }); function Plugin () { } diff --git a/js/tinymce/plugins/insertdatetime/plugin.js b/js/tinymce/plugins/insertdatetime/plugin.js index 41359689cc6..fd80594d924 100644 --- a/js/tinymce/plugins/insertdatetime/plugin.js +++ b/js/tinymce/plugins/insertdatetime/plugin.js @@ -43,7 +43,7 @@ var insertdatetime = (function () { var shouldInsertTimeElement = function (editor) { return editor.getParam('insertdatetime_element', false); }; - var $_4wez8hfhjj6610uy = { + var $_55ryb3fhjj68z77o = { getDateFormat: getDateFormat, getTimeFormat: getTimeFormat, getFormats: getFormats, @@ -92,7 +92,7 @@ var insertdatetime = (function () { editor.selection.collapse(false); }; var insertDateTime = function (editor, format) { - if ($_4wez8hfhjj6610uy.shouldInsertTimeElement(editor)) { + if ($_55ryb3fhjj68z77o.shouldInsertTimeElement(editor)) { var userTime = getDateTime(editor, format); var computerTime = void 0; if (/%[HMSIp]/.test(format)) { @@ -110,31 +110,31 @@ var insertdatetime = (function () { editor.insertContent(getDateTime(editor, format)); } }; - var $_1a6r0pfijj6610v2 = { + var $_egfu8gfijj68z77s = { insertDateTime: insertDateTime, getDateTime: getDateTime }; var register = function (editor) { editor.addCommand('mceInsertDate', function () { - $_1a6r0pfijj6610v2.insertDateTime(editor, $_4wez8hfhjj6610uy.getDateFormat(editor)); + $_egfu8gfijj68z77s.insertDateTime(editor, $_55ryb3fhjj68z77o.getDateFormat(editor)); }); editor.addCommand('mceInsertTime', function () { - $_1a6r0pfijj6610v2.insertDateTime(editor, $_4wez8hfhjj6610uy.getTimeFormat(editor)); + $_egfu8gfijj68z77s.insertDateTime(editor, $_55ryb3fhjj68z77o.getTimeFormat(editor)); }); }; - var $_cby04qfgjj6610uw = { register: register }; + var $_c9hy9hfgjj68z77l = { register: register }; var global$1 = tinymce.util.Tools.resolve('tinymce.util.Tools'); var createMenuItems = function (editor, lastFormatState) { - var formats = $_4wez8hfhjj6610uy.getFormats(editor); + var formats = $_55ryb3fhjj68z77o.getFormats(editor); return global$1.map(formats, function (fmt) { return { - text: $_1a6r0pfijj6610v2.getDateTime(editor, fmt), + text: $_egfu8gfijj68z77s.getDateTime(editor, fmt), onclick: function () { lastFormatState.set(fmt); - $_1a6r0pfijj6610v2.insertDateTime(editor, fmt); + $_egfu8gfijj68z77s.insertDateTime(editor, fmt); } }; }); @@ -147,7 +147,7 @@ var insertdatetime = (function () { menu: menuItems, onclick: function () { var lastFormat = lastFormatState.get(); - $_1a6r0pfijj6610v2.insertDateTime(editor, lastFormat ? lastFormat : $_4wez8hfhjj6610uy.getDefaultDateTime(editor)); + $_egfu8gfijj68z77s.insertDateTime(editor, lastFormat ? lastFormat : $_55ryb3fhjj68z77o.getDefaultDateTime(editor)); } }); editor.addMenuItem('insertdatetime', { @@ -157,12 +157,12 @@ var insertdatetime = (function () { context: 'insert' }); }; - var $_4l2y4tfjjj6610v6 = { register: register$1 }; + var $_3asj2vfjjj68z781 = { register: register$1 }; global.add('insertdatetime', function (editor) { var lastFormatState = Cell(null); - $_cby04qfgjj6610uw.register(editor); - $_4l2y4tfjjj6610v6.register(editor, lastFormatState); + $_c9hy9hfgjj68z77l.register(editor); + $_3asj2vfjjj68z781.register(editor, lastFormatState); }); function Plugin () { } diff --git a/js/tinymce/plugins/legacyoutput/plugin.js b/js/tinymce/plugins/legacyoutput/plugin.js index 4298f4d2aea..b8a5a95c6ad 100644 --- a/js/tinymce/plugins/legacyoutput/plugin.js +++ b/js/tinymce/plugins/legacyoutput/plugin.js @@ -118,7 +118,7 @@ var legacyoutput = (function () { overrideFormats(editor); }); }; - var $_2k2msgfnjj6610vu = { setup: setup }; + var $_sofuifnjj68z79g = { setup: setup }; var register = function (editor) { editor.addButton('fontsizeselect', function () { @@ -205,11 +205,11 @@ var legacyoutput = (function () { }; }); }; - var $_w2waxfpjj6610vz = { register: register }; + var $_2lk48vfpjj68z79p = { register: register }; global.add('legacyoutput', function (editor) { - $_2k2msgfnjj6610vu.setup(editor); - $_w2waxfpjj6610vz.register(editor); + $_sofuifnjj68z79g.setup(editor); + $_2lk48vfpjj68z79p.register(editor); }); function Plugin () { } diff --git a/js/tinymce/plugins/link/plugin.js b/js/tinymce/plugins/link/plugin.js index ccefb74b259..834440ab082 100644 --- a/js/tinymce/plugins/link/plugin.js +++ b/js/tinymce/plugins/link/plugin.js @@ -48,7 +48,7 @@ var link = (function () { var allowUnsafeLinkTarget = function (editorSettings) { return typeof editorSettings.allow_unsafe_link_target === 'boolean' ? editorSettings.allow_unsafe_link_target : false; }; - var $_b3nbo1fvjj6610wm = { + var $_g3or5ufvjj68z7b2 = { assumeExternalTargets: assumeExternalTargets, hasContextToolbar: hasContextToolbar, getLinkList: getLinkList, @@ -94,7 +94,7 @@ var link = (function () { } } }; - var $_3pid54fwjj6610wq = { open: open$$1 }; + var $_cdrk2yfwjj68z7b9 = { open: open$$1 }; var global$4 = tinymce.util.Tools.resolve('tinymce.util.Tools'); @@ -158,7 +158,7 @@ var link = (function () { class: data.class ? data.class : null, title: data.title ? data.title : null }; - if (!$_b3nbo1fvjj6610wm.hasRelList(editor.settings) && $_b3nbo1fvjj6610wm.allowUnsafeLinkTarget(editor.settings) === false) { + if (!$_g3or5ufvjj68z7b2.hasRelList(editor.settings) && $_g3or5ufvjj68z7b2.allowUnsafeLinkTarget(editor.settings) === false) { linkAttrs.rel = toggleTargetRules(linkAttrs.rel, linkAttrs.target === '_blank'); } if (data.href === attachState.href) { @@ -221,7 +221,7 @@ var link = (function () { a.appendChild(img); } }; - var $_euz6ghg0jj6610xb = { + var $_57xar6g0jj68z7cs = { link: link, unlink: unlink, isLink: isLink, @@ -238,7 +238,7 @@ var link = (function () { var attachState = {}; var createLinkList = function (editor, callback) { - var linkList = $_b3nbo1fvjj6610wm.getLinkList(editor.settings); + var linkList = $_g3or5ufvjj68z7b2.getLinkList(editor.settings); if (typeof linkList === 'string') { global$6.send({ url: linkList, @@ -355,14 +355,14 @@ var link = (function () { var onBeforeCall = function (e) { e.meta = win.toJSON(); }; - onlyText = $_euz6ghg0jj6610xb.isOnlyTextSelected(selection.getContent()); - anchorElm = $_euz6ghg0jj6610xb.getAnchorElement(editor); - data.text = initialText = $_euz6ghg0jj6610xb.getAnchorText(editor.selection, anchorElm); + onlyText = $_57xar6g0jj68z7cs.isOnlyTextSelected(selection.getContent()); + anchorElm = $_57xar6g0jj68z7cs.getAnchorElement(editor); + data.text = initialText = $_57xar6g0jj68z7cs.getAnchorText(editor.selection, anchorElm); data.href = anchorElm ? dom.getAttrib(anchorElm, 'href') : ''; if (anchorElm) { data.target = dom.getAttrib(anchorElm, 'target'); - } else if ($_b3nbo1fvjj6610wm.hasDefaultLinkTarget(editor.settings)) { - data.target = $_b3nbo1fvjj6610wm.getDefaultLinkTarget(editor.settings); + } else if ($_g3or5ufvjj68z7b2.hasDefaultLinkTarget(editor.settings)) { + data.target = $_g3or5ufvjj68z7b2.getDefaultLinkTarget(editor.settings); } if (value = dom.getAttrib(anchorElm, 'rel')) { data.rel = value; @@ -401,9 +401,9 @@ var link = (function () { } }; } - if ($_b3nbo1fvjj6610wm.shouldShowTargetList(editor.settings)) { - if ($_b3nbo1fvjj6610wm.getTargetList(editor.settings) === undefined) { - $_b3nbo1fvjj6610wm.setTargetList(editor, [ + if ($_g3or5ufvjj68z7b2.shouldShowTargetList(editor.settings)) { + if ($_g3or5ufvjj68z7b2.getTargetList(editor.settings) === undefined) { + $_g3or5ufvjj68z7b2.setTargetList(editor, [ { text: 'None', value: '' @@ -418,27 +418,27 @@ var link = (function () { name: 'target', type: 'listbox', label: 'Target', - values: buildListItems($_b3nbo1fvjj6610wm.getTargetList(editor.settings)) + values: buildListItems($_g3or5ufvjj68z7b2.getTargetList(editor.settings)) }; } - if ($_b3nbo1fvjj6610wm.hasRelList(editor.settings)) { + if ($_g3or5ufvjj68z7b2.hasRelList(editor.settings)) { relListCtrl = { name: 'rel', type: 'listbox', label: 'Rel', - values: buildListItems($_b3nbo1fvjj6610wm.getRelList(editor.settings), function (item) { - if ($_b3nbo1fvjj6610wm.allowUnsafeLinkTarget(editor.settings) === false) { - item.value = $_euz6ghg0jj6610xb.toggleTargetRules(item.value, data.target === '_blank'); + values: buildListItems($_g3or5ufvjj68z7b2.getRelList(editor.settings), function (item) { + if ($_g3or5ufvjj68z7b2.allowUnsafeLinkTarget(editor.settings) === false) { + item.value = $_57xar6g0jj68z7cs.toggleTargetRules(item.value, data.target === '_blank'); } }) }; } - if ($_b3nbo1fvjj6610wm.hasLinkClassList(editor.settings)) { + if ($_g3or5ufvjj68z7b2.hasLinkClassList(editor.settings)) { classListCtrl = { name: 'class', type: 'listbox', label: 'Class', - values: buildListItems($_b3nbo1fvjj6610wm.getLinkClassList(editor.settings), function (item) { + values: buildListItems($_g3or5ufvjj68z7b2.getLinkClassList(editor.settings), function (item) { if (item.value) { item.textStyle = function () { return editor.formatter.getCssText({ @@ -450,7 +450,7 @@ var link = (function () { }) }; } - if ($_b3nbo1fvjj6610wm.shouldShowLinkTitle(editor.settings)) { + if ($_g3or5ufvjj68z7b2.shouldShowLinkTitle(editor.settings)) { linkTitleCtrl = { name: 'title', type: 'textbox', @@ -483,9 +483,9 @@ var link = (function () { classListCtrl ], onSubmit: function (e) { - var assumeExternalTargets = $_b3nbo1fvjj6610wm.assumeExternalTargets(editor.settings); - var insertLink = $_euz6ghg0jj6610xb.link(editor, attachState); - var removeLink = $_euz6ghg0jj6610xb.unlink(editor); + var assumeExternalTargets = $_g3or5ufvjj68z7b2.assumeExternalTargets(editor.settings); + var insertLink = $_57xar6g0jj68z7cs.link(editor, attachState); + var removeLink = $_57xar6g0jj68z7cs.unlink(editor); var resultData = global$4.extend({}, data, e.data); var href = resultData.href; if (!href) { @@ -520,7 +520,7 @@ var link = (function () { var open$1 = function (editor) { createLinkList(editor, showDialog); }; - var $_egsmjmg2jj6610xq = { open: open$1 }; + var $_c2hcdfg2jj68z7d3 = { open: open$1 }; var getLink = function (editor, elm) { return editor.dom.getParent(elm, 'a[href]'); @@ -548,13 +548,13 @@ var link = (function () { editor.selection.scrollIntoView(targetEl[0], true); } } else { - $_3pid54fwjj6610wq.open(a.href); + $_cdrk2yfwjj68z7b9.open(a.href); } } }; var openDialog = function (editor) { return function () { - $_egsmjmg2jj6610xq.open(editor); + $_c2hcdfg2jj68z7d3.open(editor); }; }; var gotoSelectedLink = function (editor) { @@ -565,7 +565,7 @@ var link = (function () { var leftClickedOnAHref = function (editor) { return function (elm) { var sel, rng, node; - if ($_b3nbo1fvjj6610wm.hasContextToolbar(editor.settings) && !isContextMenuVisible(editor) && $_euz6ghg0jj6610xb.isLink(elm)) { + if ($_g3or5ufvjj68z7b2.hasContextToolbar(editor.settings) && !isContextMenuVisible(editor) && $_57xar6g0jj68z7cs.isLink(elm)) { sel = editor.selection; rng = sel.getRng(); node = rng.startContainer; @@ -596,7 +596,7 @@ var link = (function () { return function () { var self = this; editor.on('nodechange', function (e) { - self.active(!editor.readonly && !!$_euz6ghg0jj6610xb.getAnchorElement(editor, e.element)); + self.active(!editor.readonly && !!$_57xar6g0jj68z7cs.getAnchorElement(editor, e.element)); }); }; }; @@ -604,13 +604,13 @@ var link = (function () { return function () { var self = this; var toggleVisibility = function (e) { - if ($_euz6ghg0jj6610xb.hasLinks(e.parents)) { + if ($_57xar6g0jj68z7cs.hasLinks(e.parents)) { self.show(); } else { self.hide(); } }; - if (!$_euz6ghg0jj6610xb.hasLinks(editor.dom.getParents(editor.selection.getStart()))) { + if (!$_57xar6g0jj68z7cs.hasLinks(editor.dom.getParents(editor.selection.getStart()))) { self.hide(); } editor.on('nodechange', toggleVisibility); @@ -619,7 +619,7 @@ var link = (function () { }); }; }; - var $_bdyst2ftjj6610wh = { + var $_ekykorftjj68z7au = { openDialog: openDialog, gotoSelectedLink: gotoSelectedLink, leftClickedOnAHref: leftClickedOnAHref, @@ -629,35 +629,35 @@ var link = (function () { }; var register = function (editor) { - editor.addCommand('mceLink', $_bdyst2ftjj6610wh.openDialog(editor)); + editor.addCommand('mceLink', $_ekykorftjj68z7au.openDialog(editor)); }; - var $_46ze9jfsjj6610wf = { register: register }; + var $_3oddw4fsjj68z7aq = { register: register }; var setup = function (editor) { - editor.addShortcut('Meta+K', '', $_bdyst2ftjj6610wh.openDialog(editor)); + editor.addShortcut('Meta+K', '', $_ekykorftjj68z7au.openDialog(editor)); }; - var $_4s4msag5jj6610y0 = { setup: setup }; + var $_6nquijg5jj68z7df = { setup: setup }; var setupButtons = function (editor) { editor.addButton('link', { active: false, icon: 'link', tooltip: 'Insert/edit link', - onclick: $_bdyst2ftjj6610wh.openDialog(editor), - onpostrender: $_bdyst2ftjj6610wh.toggleActiveState(editor) + onclick: $_ekykorftjj68z7au.openDialog(editor), + onpostrender: $_ekykorftjj68z7au.toggleActiveState(editor) }); editor.addButton('unlink', { active: false, icon: 'unlink', tooltip: 'Remove link', - onclick: $_euz6ghg0jj6610xb.unlink(editor), - onpostrender: $_bdyst2ftjj6610wh.toggleActiveState(editor) + onclick: $_57xar6g0jj68z7cs.unlink(editor), + onpostrender: $_ekykorftjj68z7au.toggleActiveState(editor) }); if (editor.addContextToolbar) { editor.addButton('openlink', { icon: 'newtab', tooltip: 'Open link', - onclick: $_bdyst2ftjj6610wh.gotoSelectedLink(editor) + onclick: $_ekykorftjj68z7au.gotoSelectedLink(editor) }); } }; @@ -665,15 +665,15 @@ var link = (function () { editor.addMenuItem('openlink', { text: 'Open link', icon: 'newtab', - onclick: $_bdyst2ftjj6610wh.gotoSelectedLink(editor), - onPostRender: $_bdyst2ftjj6610wh.toggleViewLinkState(editor), + onclick: $_ekykorftjj68z7au.gotoSelectedLink(editor), + onPostRender: $_ekykorftjj68z7au.toggleViewLinkState(editor), prependToContext: true }); editor.addMenuItem('link', { icon: 'link', text: 'Link', shortcut: 'Meta+K', - onclick: $_bdyst2ftjj6610wh.openDialog(editor), + onclick: $_ekykorftjj68z7au.openDialog(editor), stateSelector: 'a[href]', context: 'insert', prependToContext: true @@ -681,28 +681,28 @@ var link = (function () { editor.addMenuItem('unlink', { icon: 'unlink', text: 'Remove link', - onclick: $_euz6ghg0jj6610xb.unlink(editor), + onclick: $_57xar6g0jj68z7cs.unlink(editor), stateSelector: 'a[href]' }); }; var setupContextToolbars = function (editor) { if (editor.addContextToolbar) { - editor.addContextToolbar($_bdyst2ftjj6610wh.leftClickedOnAHref(editor), 'openlink | link unlink'); + editor.addContextToolbar($_ekykorftjj68z7au.leftClickedOnAHref(editor), 'openlink | link unlink'); } }; - var $_evp0d9g6jj6610y1 = { + var $_ea3tfg6jj68z7di = { setupButtons: setupButtons, setupMenuItems: setupMenuItems, setupContextToolbars: setupContextToolbars }; global.add('link', function (editor) { - $_evp0d9g6jj6610y1.setupButtons(editor); - $_evp0d9g6jj6610y1.setupMenuItems(editor); - $_evp0d9g6jj6610y1.setupContextToolbars(editor); - $_bdyst2ftjj6610wh.setupGotoLinks(editor); - $_46ze9jfsjj6610wf.register(editor); - $_4s4msag5jj6610y0.setup(editor); + $_ea3tfg6jj68z7di.setupButtons(editor); + $_ea3tfg6jj68z7di.setupMenuItems(editor); + $_ea3tfg6jj68z7di.setupContextToolbars(editor); + $_ekykorftjj68z7au.setupGotoLinks(editor); + $_3oddw4fsjj68z7aq.register(editor); + $_6nquijg5jj68z7df.setup(editor); }); function Plugin () { } diff --git a/js/tinymce/plugins/lists/plugin.js b/js/tinymce/plugins/lists/plugin.js index 4431fb7b6b8..bf8459a65dc 100644 --- a/js/tinymce/plugins/lists/plugin.js +++ b/js/tinymce/plugins/lists/plugin.js @@ -62,7 +62,7 @@ var lists = (function () { var isChildOfBody = function (dom, elm) { return dom.isChildOf(elm, dom.getRoot()); }; - var $_3d6np9gljj66110r = { + var $_d2rl98gljj68z7m2 = { isTextNode: isTextNode, isListNode: isListNode, isListItemNode: isListItemNode, @@ -79,7 +79,7 @@ var lists = (function () { var getNormalizedEndPoint = function (container, offset) { var node = global$1.getNode(container, offset); - if ($_3d6np9gljj66110r.isListItemNode(container) && $_3d6np9gljj66110r.isTextNode(node)) { + if ($_d2rl98gljj68z7m2.isListItemNode(container) && $_d2rl98gljj68z7m2.isTextNode(node)) { var textNodeOffset = offset >= container.childNodes.length ? node.data.length : 0; return { container: node, @@ -99,7 +99,7 @@ var lists = (function () { outRng.setEnd(rangeEnd.container, rangeEnd.offset); return outRng; }; - var $_aew8vggkjj66110p = { + var $_8lxynlgkjj68z7ly = { getNormalizedEndPoint: getNormalizedEndPoint, normalizeRange: normalizeRange }; @@ -174,9 +174,9 @@ var lists = (function () { if (bookmark.endContainer) { rng.setEnd(bookmark.endContainer, bookmark.endOffset); } - return $_aew8vggkjj66110p.normalizeRange(rng); + return $_8lxynlgkjj68z7ly.normalizeRange(rng); }; - var $_19y4rngjjj66110l = { + var $_bc9yl8gjjj68z7lo = { createBookmark: createBookmark, resolveBookmark: resolveBookmark }; @@ -189,14 +189,14 @@ var lists = (function () { sibling = parentNode.previousSibling; if (sibling && sibling.nodeName === 'LI') { sibling.appendChild(ul); - if ($_3d6np9gljj66110r.isEmpty(dom, parentNode)) { + if ($_d2rl98gljj68z7m2.isEmpty(dom, parentNode)) { DOM$1.remove(parentNode); } } else { DOM$1.setStyle(parentNode, 'listStyleType', 'none'); } } - if ($_3d6np9gljj66110r.isListNode(parentNode)) { + if ($_d2rl98gljj68z7m2.isListNode(parentNode)) { sibling = parentNode.previousSibling; if (sibling && sibling.nodeName === 'LI') { sibling.appendChild(ul); @@ -208,7 +208,7 @@ var lists = (function () { normalizeList(dom, ul); }); }; - var $_1jy0aygmjj66110v = { + var $_4s5m9agmjj68z7mf = { normalizeList: normalizeList, normalizeLists: normalizeLists }; @@ -224,7 +224,7 @@ var lists = (function () { }; var findSubLists = function (parentList) { return global$5.grep(parentList.querySelectorAll('ol,ul,dl'), function (elm) { - return $_3d6np9gljj66110r.isListNode(elm); + return $_d2rl98gljj68z7m2.isListNode(elm); }); }; var getSelectedSubLists = function (editor) { @@ -234,7 +234,7 @@ var lists = (function () { return findSubLists(parentList); } else { return global$5.grep(selectedBlocks, function (elm) { - return $_3d6np9gljj66110r.isListNode(elm) && parentList !== elm; + return $_d2rl98gljj68z7m2.isListNode(elm) && parentList !== elm; }); } }; @@ -248,7 +248,7 @@ var lists = (function () { var getSelectedListItems = function (editor) { var selectedBlocks = editor.selection.getSelectedBlocks(); return global$5.grep(findParentListItemsNodes(editor, selectedBlocks), function (block) { - return $_3d6np9gljj66110r.isListItemNode(block); + return $_d2rl98gljj68z7m2.isListItemNode(block); }); }; var getClosestListRootElm = function (editor, elm) { @@ -256,7 +256,7 @@ var lists = (function () { var root = parentTableCell.length > 0 ? parentTableCell[0] : editor.getBody(); return root; }; - var $_1lu54xgnjj66110y = { + var $_bi6umbgnjj68z7ml = { getParentList: getParentList, getSelectedSubLists: getSelectedSubLists, getSelectedListItems: getSelectedListItems, @@ -279,7 +279,7 @@ var lists = (function () { if (textBlock.tagName === editor.settings.forced_root_block) { DOM$2.setAttribs(textBlock, editor.settings.forced_root_block_attrs); } - if (!$_3d6np9gljj66110r.isBlock(contentNode.firstChild, blockElements)) { + if (!$_d2rl98gljj68z7m2.isBlock(contentNode.firstChild, blockElements)) { fragment.appendChild(textBlock); } } @@ -289,7 +289,7 @@ var lists = (function () { if (!hasContentNode && (nodeName !== 'SPAN' || node.getAttribute('data-mce-type') !== 'bookmark')) { hasContentNode = true; } - if ($_3d6np9gljj66110r.isBlock(node, blockElements)) { + if ($_d2rl98gljj68z7m2.isBlock(node, blockElements)) { fragment.appendChild(node); textBlock = null; } else { @@ -314,7 +314,7 @@ var lists = (function () { } return fragment; }; - var $_oi4b9gqjj661115 = { createNewTextBlock: createNewTextBlock }; + var $_ep52zegqjj68z7n1 = { createNewTextBlock: createNewTextBlock }; var DOM$3 = global$6.DOM; var splitList = function (editor, ul, li, newBlock) { @@ -326,7 +326,7 @@ var lists = (function () { DOM$3.remove(targetNode); }; bookmarks = DOM$3.select('span[data-mce-type="bookmark"]', ul); - newBlock = newBlock || $_oi4b9gqjj661115.createNewTextBlock(editor, li); + newBlock = newBlock || $_ep52zegqjj68z7n1.createNewTextBlock(editor, li); tmpRng = DOM$3.createRng(); tmpRng.setStartAfter(li); tmpRng.setEndAfter(ul); @@ -341,19 +341,19 @@ var lists = (function () { DOM$3.insertAfter(fragment, ul); } DOM$3.insertAfter(newBlock, ul); - if ($_3d6np9gljj66110r.isEmpty(editor.dom, li.parentNode)) { + if ($_d2rl98gljj68z7m2.isEmpty(editor.dom, li.parentNode)) { removeAndKeepBookmarks(li.parentNode); } DOM$3.remove(li); - if ($_3d6np9gljj66110r.isEmpty(editor.dom, ul)) { + if ($_d2rl98gljj68z7m2.isEmpty(editor.dom, ul)) { DOM$3.remove(ul); } }; - var $_4bzkregpjj661112 = { splitList: splitList }; + var $_1ippmygpjj68z7mt = { splitList: splitList }; var DOM$4 = global$6.DOM; var removeEmptyLi = function (dom, li) { - if ($_3d6np9gljj66110r.isEmpty(dom, li)) { + if ($_d2rl98gljj68z7m2.isEmpty(dom, li)) { DOM$4.remove(li); } }; @@ -373,59 +373,59 @@ var lists = (function () { DOM$4.rename(li, 'DT'); return true; } - if ($_3d6np9gljj66110r.isFirstChild(li) && $_3d6np9gljj66110r.isLastChild(li)) { + if ($_d2rl98gljj68z7m2.isFirstChild(li) && $_d2rl98gljj68z7m2.isLastChild(li)) { if (ulParent.nodeName === 'LI') { DOM$4.insertAfter(li, ulParent); removeEmptyLi(editor.dom, ulParent); DOM$4.remove(ul); - } else if ($_3d6np9gljj66110r.isListNode(ulParent)) { + } else if ($_d2rl98gljj68z7m2.isListNode(ulParent)) { DOM$4.remove(ul, true); } else { - ulParent.insertBefore($_oi4b9gqjj661115.createNewTextBlock(editor, li), ul); + ulParent.insertBefore($_ep52zegqjj68z7n1.createNewTextBlock(editor, li), ul); DOM$4.remove(ul); } return true; - } else if ($_3d6np9gljj66110r.isFirstChild(li)) { + } else if ($_d2rl98gljj68z7m2.isFirstChild(li)) { if (ulParent.nodeName === 'LI') { DOM$4.insertAfter(li, ulParent); li.appendChild(ul); removeEmptyLi(editor.dom, ulParent); - } else if ($_3d6np9gljj66110r.isListNode(ulParent)) { + } else if ($_d2rl98gljj68z7m2.isListNode(ulParent)) { ulParent.insertBefore(li, ul); } else { - ulParent.insertBefore($_oi4b9gqjj661115.createNewTextBlock(editor, li), ul); + ulParent.insertBefore($_ep52zegqjj68z7n1.createNewTextBlock(editor, li), ul); DOM$4.remove(li); } return true; - } else if ($_3d6np9gljj66110r.isLastChild(li)) { + } else if ($_d2rl98gljj68z7m2.isLastChild(li)) { if (ulParent.nodeName === 'LI') { DOM$4.insertAfter(li, ulParent); - } else if ($_3d6np9gljj66110r.isListNode(ulParent)) { + } else if ($_d2rl98gljj68z7m2.isListNode(ulParent)) { DOM$4.insertAfter(li, ul); } else { - DOM$4.insertAfter($_oi4b9gqjj661115.createNewTextBlock(editor, li), ul); + DOM$4.insertAfter($_ep52zegqjj68z7n1.createNewTextBlock(editor, li), ul); DOM$4.remove(li); } return true; } if (ulParent.nodeName === 'LI') { ul = ulParent; - newBlock = $_oi4b9gqjj661115.createNewTextBlock(editor, li, 'LI'); - } else if ($_3d6np9gljj66110r.isListNode(ulParent)) { - newBlock = $_oi4b9gqjj661115.createNewTextBlock(editor, li, 'LI'); + newBlock = $_ep52zegqjj68z7n1.createNewTextBlock(editor, li, 'LI'); + } else if ($_d2rl98gljj68z7m2.isListNode(ulParent)) { + newBlock = $_ep52zegqjj68z7n1.createNewTextBlock(editor, li, 'LI'); } else { - newBlock = $_oi4b9gqjj661115.createNewTextBlock(editor, li); + newBlock = $_ep52zegqjj68z7n1.createNewTextBlock(editor, li); } - $_4bzkregpjj661112.splitList(editor, ul, li, newBlock); - $_1jy0aygmjj66110v.normalizeLists(editor.dom, ul.parentNode); + $_1ippmygpjj68z7mt.splitList(editor, ul, li, newBlock); + $_4s5m9agmjj68z7mf.normalizeLists(editor.dom, ul.parentNode); return true; }; var outdentSelection = function (editor) { - var listElements = $_1lu54xgnjj66110y.getSelectedListItems(editor); + var listElements = $_bi6umbgnjj68z7ml.getSelectedListItems(editor); if (listElements.length) { - var bookmark = $_19y4rngjjj66110l.createBookmark(editor.selection.getRng()); + var bookmark = $_bc9yl8gjjj68z7lo.createBookmark(editor.selection.getRng()); var i = void 0, y = void 0; - var root = $_1lu54xgnjj66110y.getClosestListRootElm(editor, editor.selection.getStart(true)); + var root = $_bi6umbgnjj68z7ml.getClosestListRootElm(editor, editor.selection.getStart(true)); i = listElements.length; while (i--) { var node = listElements[i].parentNode; @@ -445,12 +445,12 @@ var lists = (function () { break; } } - editor.selection.setRng($_19y4rngjjj66110l.resolveBookmark(bookmark)); + editor.selection.setRng($_bc9yl8gjjj68z7lo.resolveBookmark(bookmark)); editor.nodeChanged(); return true; } }; - var $_b3uvekghjj66110h = { + var $_1ef0coghjj68z7lc = { outdent: outdent, outdentSelection: outdentSelection }; @@ -487,11 +487,11 @@ var lists = (function () { if (container.nodeType === 1) { container = container.childNodes[Math.min(offset, container.childNodes.length - 1)] || container; } - if (!start && $_3d6np9gljj66110r.isBr(container.nextSibling)) { + if (!start && $_d2rl98gljj68z7m2.isBr(container.nextSibling)) { container = container.nextSibling; } while (container.parentNode !== root) { - if ($_3d6np9gljj66110r.isTextBlock(editor, container)) { + if ($_d2rl98gljj68z7m2.isTextBlock(editor, container)) { return container; } if (/^(TD|TH)$/.test(container.parentNode.nodeName)) { @@ -514,13 +514,13 @@ var lists = (function () { } } global$5.each(siblings, function (node) { - if ($_3d6np9gljj66110r.isTextBlock(editor, node)) { + if ($_d2rl98gljj68z7m2.isTextBlock(editor, node)) { textBlocks.push(node); block = null; return; } - if (dom.isBlock(node) || $_3d6np9gljj66110r.isBr(node)) { - if ($_3d6np9gljj66110r.isBr(node)) { + if (dom.isBlock(node) || $_d2rl98gljj68z7m2.isBr(node)) { + if ($_d2rl98gljj68z7m2.isBr(node)) { dom.remove(node); } block = null; @@ -528,7 +528,7 @@ var lists = (function () { } var nextSibling = node.nextSibling; if (global$4.isBookmarkNode(node)) { - if ($_3d6np9gljj66110r.isTextBlock(editor, nextSibling) || !nextSibling && node.parentNode === root) { + if ($_d2rl98gljj68z7m2.isTextBlock(editor, nextSibling) || !nextSibling && node.parentNode === root) { block = null; return; } @@ -555,7 +555,7 @@ var lists = (function () { var rng = editor.selection.getRng(true); var bookmark; var listItemName = 'LI'; - var root = $_1lu54xgnjj66110y.getClosestListRootElm(editor, editor.selection.getStart(true)); + var root = $_bi6umbgnjj68z7ml.getClosestListRootElm(editor, editor.selection.getStart(true)); var dom = editor.dom; if (dom.getContentEditable(editor.selection.getNode()) === 'false') { return; @@ -564,11 +564,11 @@ var lists = (function () { if (listName === 'DL') { listItemName = 'DT'; } - bookmark = $_19y4rngjjj66110l.createBookmark(rng); + bookmark = $_bc9yl8gjjj68z7lo.createBookmark(rng); global$5.each(getSelectedTextBlocks(editor, rng, root), function (block) { var listBlock, sibling; sibling = block.previousSibling; - if (sibling && $_3d6np9gljj66110r.isListNode(sibling) && sibling.nodeName === listName && hasCompatibleStyle(dom, sibling, detail)) { + if (sibling && $_d2rl98gljj68z7m2.isListNode(sibling) && sibling.nodeName === listName && hasCompatibleStyle(dom, sibling, detail)) { listBlock = sibling; block = dom.rename(block, listItemName); sibling.appendChild(block); @@ -593,12 +593,12 @@ var lists = (function () { updateListWithDetails(dom, listBlock, detail); mergeWithAdjacentLists(editor.dom, listBlock); }); - editor.selection.setRng($_19y4rngjjj66110l.resolveBookmark(bookmark)); + editor.selection.setRng($_bc9yl8gjjj68z7lo.resolveBookmark(bookmark)); }; var removeList = function (editor) { - var bookmark = $_19y4rngjjj66110l.createBookmark(editor.selection.getRng(true)); - var root = $_1lu54xgnjj66110y.getClosestListRootElm(editor, editor.selection.getStart(true)); - var listItems = $_1lu54xgnjj66110y.getSelectedListItems(editor); + var bookmark = $_bc9yl8gjjj68z7lo.createBookmark(editor.selection.getRng(true)); + var root = $_bi6umbgnjj68z7ml.getClosestListRootElm(editor, editor.selection.getStart(true)); + var listItems = $_bi6umbgnjj68z7ml.getSelectedListItems(editor); var emptyListItems = global$5.grep(listItems, function (li) { return editor.dom.isEmpty(li); }); @@ -606,8 +606,8 @@ var lists = (function () { return !editor.dom.isEmpty(li); }); global$5.each(emptyListItems, function (li) { - if ($_3d6np9gljj66110r.isEmpty(editor.dom, li)) { - $_b3uvekghjj66110h.outdent(editor, li); + if ($_d2rl98gljj68z7m2.isEmpty(editor.dom, li)) { + $_1ef0coghjj68z7lc.outdent(editor, li); return; } }); @@ -617,17 +617,17 @@ var lists = (function () { return; } for (node = li; node && node !== root; node = node.parentNode) { - if ($_3d6np9gljj66110r.isListNode(node)) { + if ($_d2rl98gljj68z7m2.isListNode(node)) { rootList = node; } } - $_4bzkregpjj661112.splitList(editor, rootList, li); - $_1jy0aygmjj66110v.normalizeLists(editor.dom, rootList.parentNode); + $_1ippmygpjj68z7mt.splitList(editor, rootList, li); + $_4s5m9agmjj68z7mf.normalizeLists(editor.dom, rootList.parentNode); }); - editor.selection.setRng($_19y4rngjjj66110l.resolveBookmark(bookmark)); + editor.selection.setRng($_bc9yl8gjjj68z7lo.resolveBookmark(bookmark)); }; var isValidLists = function (list1, list2) { - return list1 && list2 && $_3d6np9gljj66110r.isListNode(list1) && list1.nodeName === list2.nodeName; + return list1 && list2 && $_d2rl98gljj68z7m2.isListNode(list1) && list1.nodeName === list2.nodeName; }; var hasSameListStyle = function (dom, list1, list2) { var targetStyle = dom.getStyle(list1, 'list-style-type', true); @@ -669,11 +669,11 @@ var lists = (function () { if (parentList.nodeName === listName && !hasListStyleDetail(detail)) { removeList(editor); } else { - var bookmark = $_19y4rngjjj66110l.createBookmark(editor.selection.getRng(true)); + var bookmark = $_bc9yl8gjjj68z7lo.createBookmark(editor.selection.getRng(true)); global$5.each([parentList].concat(lists), function (elm) { updateList(editor.dom, elm, listName, detail); }); - editor.selection.setRng($_19y4rngjjj66110l.resolveBookmark(bookmark)); + editor.selection.setRng($_bc9yl8gjjj68z7lo.resolveBookmark(bookmark)); } }; var hasListStyleDetail = function (detail) { @@ -687,18 +687,18 @@ var lists = (function () { if (parentList.nodeName === listName && !hasListStyleDetail(detail)) { removeList(editor); } else { - var bookmark = $_19y4rngjjj66110l.createBookmark(editor.selection.getRng(true)); + var bookmark = $_bc9yl8gjjj68z7lo.createBookmark(editor.selection.getRng(true)); updateListWithDetails(editor.dom, parentList, detail); mergeWithAdjacentLists(editor.dom, editor.dom.rename(parentList, listName)); - editor.selection.setRng($_19y4rngjjj66110l.resolveBookmark(bookmark)); + editor.selection.setRng($_bc9yl8gjjj68z7lo.resolveBookmark(bookmark)); } } else { applyList(editor, listName, detail); } }; var toggleList = function (editor, listName, detail) { - var parentList = $_1lu54xgnjj66110y.getParentList(editor); - var selectedSubLists = $_1lu54xgnjj66110y.getSelectedSubLists(editor); + var parentList = $_bi6umbgnjj68z7ml.getParentList(editor); + var selectedSubLists = $_bi6umbgnjj68z7ml.getSelectedSubLists(editor); detail = detail ? detail : {}; if (parentList && selectedSubLists.length > 0) { toggleMultipleLists(editor, parentList, selectedSubLists, listName, detail); @@ -706,7 +706,7 @@ var lists = (function () { toggleSingleList(editor, parentList, listName, detail); } }; - var $_f1wl0igejj661104 = { + var $_dsw2ldgejj68z7kp = { toggleList: toggleList, removeList: removeList, mergeWithAdjacentLists: mergeWithAdjacentLists @@ -725,7 +725,7 @@ var lists = (function () { } walker = new global$2(node, root); if (isForward) { - if ($_3d6np9gljj66110r.isBogusBr(editor.dom, node)) { + if ($_d2rl98gljj68z7m2.isBogusBr(editor.dom, node)) { walker.next(); } } @@ -743,7 +743,7 @@ var lists = (function () { }; var hasOnlyOneBlockChild = function (dom, elm) { var childNodes = elm.childNodes; - return childNodes.length === 1 && !$_3d6np9gljj66110r.isListNode(childNodes[0]) && dom.isBlock(childNodes[0]); + return childNodes.length === 1 && !$_d2rl98gljj68z7m2.isListNode(childNodes[0]) && dom.isBlock(childNodes[0]); }; var unwrapSingleBlockChild = function (dom, elm) { if (hasOnlyOneBlockChild(dom, elm)) { @@ -754,7 +754,7 @@ var lists = (function () { var node, targetElm; targetElm = hasOnlyOneBlockChild(dom, toElm) ? toElm.firstChild : toElm; unwrapSingleBlockChild(dom, fromElm); - if (!$_3d6np9gljj66110r.isEmpty(dom, fromElm, true)) { + if (!$_d2rl98gljj68z7m2.isEmpty(dom, fromElm, true)) { while (node = fromElm.firstChild) { targetElm.appendChild(node); } @@ -763,22 +763,22 @@ var lists = (function () { var mergeLiElements = function (dom, fromElm, toElm) { var node, listNode; var ul = fromElm.parentNode; - if (!$_3d6np9gljj66110r.isChildOfBody(dom, fromElm) || !$_3d6np9gljj66110r.isChildOfBody(dom, toElm)) { + if (!$_d2rl98gljj68z7m2.isChildOfBody(dom, fromElm) || !$_d2rl98gljj68z7m2.isChildOfBody(dom, toElm)) { return; } - if ($_3d6np9gljj66110r.isListNode(toElm.lastChild)) { + if ($_d2rl98gljj68z7m2.isListNode(toElm.lastChild)) { listNode = toElm.lastChild; } if (ul === toElm.lastChild) { - if ($_3d6np9gljj66110r.isBr(ul.previousSibling)) { + if ($_d2rl98gljj68z7m2.isBr(ul.previousSibling)) { dom.remove(ul.previousSibling); } } node = toElm.lastChild; - if (node && $_3d6np9gljj66110r.isBr(node) && fromElm.hasChildNodes()) { + if (node && $_d2rl98gljj68z7m2.isBr(node) && fromElm.hasChildNodes()) { dom.remove(node); } - if ($_3d6np9gljj66110r.isEmpty(dom, toElm, true)) { + if ($_d2rl98gljj68z7m2.isEmpty(dom, toElm, true)) { dom.$(toElm).empty(); } moveChildren(dom, fromElm, toElm); @@ -786,7 +786,7 @@ var lists = (function () { toElm.appendChild(listNode); } dom.remove(fromElm); - if ($_3d6np9gljj66110r.isEmpty(dom, ul) && ul !== dom.getRoot()) { + if ($_d2rl98gljj68z7m2.isEmpty(dom, ul) && ul !== dom.getRoot()) { dom.remove(ul); } }; @@ -800,29 +800,29 @@ var lists = (function () { if (dom.isEmpty(toLi)) { mergeIntoEmptyLi(editor, fromLi, toLi); } else { - var bookmark = $_19y4rngjjj66110l.createBookmark(rng); + var bookmark = $_bc9yl8gjjj68z7lo.createBookmark(rng); mergeLiElements(dom, fromLi, toLi); - editor.selection.setRng($_19y4rngjjj66110l.resolveBookmark(bookmark)); + editor.selection.setRng($_bc9yl8gjjj68z7lo.resolveBookmark(bookmark)); } }; var mergeBackward = function (editor, rng, fromLi, toLi) { - var bookmark = $_19y4rngjjj66110l.createBookmark(rng); + var bookmark = $_bc9yl8gjjj68z7lo.createBookmark(rng); mergeLiElements(editor.dom, fromLi, toLi); - var resolvedBookmark = $_19y4rngjjj66110l.resolveBookmark(bookmark); + var resolvedBookmark = $_bc9yl8gjjj68z7lo.resolveBookmark(bookmark); editor.selection.setRng(resolvedBookmark); }; var backspaceDeleteFromListToListCaret = function (editor, isForward) { var dom = editor.dom, selection = editor.selection; var selectionStartElm = selection.getStart(); - var root = $_1lu54xgnjj66110y.getClosestListRootElm(editor, selectionStartElm); + var root = $_bi6umbgnjj68z7ml.getClosestListRootElm(editor, selectionStartElm); var li = dom.getParent(selection.getStart(), 'LI', root); var ul, rng, otherLi; if (li) { ul = li.parentNode; - if (ul === editor.getBody() && $_3d6np9gljj66110r.isEmpty(dom, ul)) { + if (ul === editor.getBody() && $_d2rl98gljj68z7m2.isEmpty(dom, ul)) { return true; } - rng = $_aew8vggkjj66110p.normalizeRange(selection.getRng(true)); + rng = $_8lxynlgkjj68z7ly.normalizeRange(selection.getRng(true)); otherLi = dom.getParent(findNextCaretContainer(editor, rng, isForward, root), 'LI', root); if (otherLi && otherLi !== li) { if (isForward) { @@ -832,7 +832,7 @@ var lists = (function () { } return true; } else if (!otherLi) { - if (!isForward && $_f1wl0igejj661104.removeList(editor)) { + if (!isForward && $_dsw2ldgejj68z7kp.removeList(editor)) { return true; } } @@ -849,15 +849,15 @@ var lists = (function () { var backspaceDeleteIntoListCaret = function (editor, isForward) { var dom = editor.dom; var selectionStartElm = editor.selection.getStart(); - var root = $_1lu54xgnjj66110y.getClosestListRootElm(editor, selectionStartElm); + var root = $_bi6umbgnjj68z7ml.getClosestListRootElm(editor, selectionStartElm); var block = dom.getParent(selectionStartElm, dom.isBlock, root); if (block && dom.isEmpty(block)) { - var rng = $_aew8vggkjj66110p.normalizeRange(editor.selection.getRng(true)); + var rng = $_8lxynlgkjj68z7ly.normalizeRange(editor.selection.getRng(true)); var otherLi_1 = dom.getParent(findNextCaretContainer(editor, rng, isForward, root), 'LI', root); if (otherLi_1) { editor.undoManager.transact(function () { removeBlock(dom, block, root); - $_f1wl0igejj661104.mergeWithAdjacentLists(dom, otherLi_1.parentNode); + $_dsw2ldgejj68z7kp.mergeWithAdjacentLists(dom, otherLi_1.parentNode); editor.selection.select(otherLi_1, true); editor.selection.collapse(isForward); }); @@ -871,12 +871,12 @@ var lists = (function () { }; var backspaceDeleteRange = function (editor) { var selectionStartElm = editor.selection.getStart(); - var root = $_1lu54xgnjj66110y.getClosestListRootElm(editor, selectionStartElm); + var root = $_bi6umbgnjj68z7ml.getClosestListRootElm(editor, selectionStartElm); var startListParent = editor.dom.getParent(selectionStartElm, 'LI,DT,DD', root); - if (startListParent || $_1lu54xgnjj66110y.getSelectedListItems(editor).length > 0) { + if (startListParent || $_bi6umbgnjj68z7ml.getSelectedListItems(editor).length > 0) { editor.undoManager.transact(function () { editor.execCommand('Delete'); - $_1jy0aygmjj66110v.normalizeLists(editor.dom, editor.getBody()); + $_4s5m9agmjj68z7mf.normalizeLists(editor.dom, editor.getBody()); }); return true; } @@ -898,7 +898,7 @@ var lists = (function () { } }); }; - var $_b89bpjgajj6610zq = { + var $_cukpygajj68z7k0 = { setup: setup, backspaceDelete: backspaceDelete }; @@ -906,16 +906,16 @@ var lists = (function () { var get = function (editor) { return { backspaceDelete: function (isForward) { - $_b89bpjgajj6610zq.backspaceDelete(editor, isForward); + $_cukpygajj68z7k0.backspaceDelete(editor, isForward); } }; }; - var $_f6o3iug9jj6610zm = { get: get }; + var $_80n9pmg9jj68z7jo = { get: get }; var DOM$5 = global$6.DOM; var mergeLists = function (from, to) { var node; - if ($_3d6np9gljj66110r.isListNode(from)) { + if ($_d2rl98gljj68z7m2.isListNode(from)) { while (node = from.firstChild) { to.appendChild(node); } @@ -929,17 +929,17 @@ var lists = (function () { return true; } sibling = li.previousSibling; - if (sibling && $_3d6np9gljj66110r.isListNode(sibling)) { + if (sibling && $_d2rl98gljj68z7m2.isListNode(sibling)) { sibling.appendChild(li); return true; } - if (sibling && sibling.nodeName === 'LI' && $_3d6np9gljj66110r.isListNode(sibling.lastChild)) { + if (sibling && sibling.nodeName === 'LI' && $_d2rl98gljj68z7m2.isListNode(sibling.lastChild)) { sibling.lastChild.appendChild(li); mergeLists(li.lastChild, sibling.lastChild); return true; } sibling = li.nextSibling; - if (sibling && $_3d6np9gljj66110r.isListNode(sibling)) { + if (sibling && $_d2rl98gljj68z7m2.isListNode(sibling)) { sibling.insertBefore(li, sibling.firstChild); return true; } @@ -958,20 +958,20 @@ var lists = (function () { return false; }; var indentSelection = function (editor) { - var listElements = $_1lu54xgnjj66110y.getSelectedListItems(editor); + var listElements = $_bi6umbgnjj68z7ml.getSelectedListItems(editor); if (listElements.length) { - var bookmark = $_19y4rngjjj66110l.createBookmark(editor.selection.getRng(true)); + var bookmark = $_bc9yl8gjjj68z7lo.createBookmark(editor.selection.getRng(true)); for (var i = 0; i < listElements.length; i++) { if (!indent(listElements[i]) && i === 0) { break; } } - editor.selection.setRng($_19y4rngjjj66110l.resolveBookmark(bookmark)); + editor.selection.setRng($_bc9yl8gjjj68z7lo.resolveBookmark(bookmark)); editor.nodeChanged(); return true; } }; - var $_c37qw2gtjj66111e = { indentSelection: indentSelection }; + var $_awozhigtjj68z7nn = { indentSelection: indentSelection }; var queryListCommandState = function (editor, listName) { return function () { @@ -984,11 +984,11 @@ var lists = (function () { var cmd = e.command.toLowerCase(); var isHandled; if (cmd === 'indent') { - if ($_c37qw2gtjj66111e.indentSelection(editor)) { + if ($_awozhigtjj68z7nn.indentSelection(editor)) { isHandled = true; } } else if (cmd === 'outdent') { - if ($_b3uvekghjj66110h.outdentSelection(editor)) { + if ($_1ef0coghjj68z7lc.outdentSelection(editor)) { isHandled = true; } } @@ -999,24 +999,24 @@ var lists = (function () { } }); editor.addCommand('InsertUnorderedList', function (ui, detail) { - $_f1wl0igejj661104.toggleList(editor, 'UL', detail); + $_dsw2ldgejj68z7kp.toggleList(editor, 'UL', detail); }); editor.addCommand('InsertOrderedList', function (ui, detail) { - $_f1wl0igejj661104.toggleList(editor, 'OL', detail); + $_dsw2ldgejj68z7kp.toggleList(editor, 'OL', detail); }); editor.addCommand('InsertDefinitionList', function (ui, detail) { - $_f1wl0igejj661104.toggleList(editor, 'DL', detail); + $_dsw2ldgejj68z7kp.toggleList(editor, 'DL', detail); }); editor.addQueryStateHandler('InsertUnorderedList', queryListCommandState(editor, 'UL')); editor.addQueryStateHandler('InsertOrderedList', queryListCommandState(editor, 'OL')); editor.addQueryStateHandler('InsertDefinitionList', queryListCommandState(editor, 'DL')); }; - var $_1lz2zlgsjj66111b = { register: register }; + var $_8zw798gsjj68z7ng = { register: register }; var shouldIndentOnTab = function (editor) { return editor.getParam('lists_indent_on_tab', true); }; - var $_908z7sgvjj66111n = { shouldIndentOnTab: shouldIndentOnTab }; + var $_85hc4ggvjj68z7ny = { shouldIndentOnTab: shouldIndentOnTab }; var setupTabKey = function (editor) { editor.on('keydown', function (e) { @@ -1026,20 +1026,20 @@ var lists = (function () { if (editor.dom.getParent(editor.selection.getStart(), 'LI,DT,DD')) { e.preventDefault(); if (e.shiftKey) { - $_b3uvekghjj66110h.outdentSelection(editor); + $_1ef0coghjj68z7lc.outdentSelection(editor); } else { - $_c37qw2gtjj66111e.indentSelection(editor); + $_awozhigtjj68z7nn.indentSelection(editor); } } }); }; var setup$1 = function (editor) { - if ($_908z7sgvjj66111n.shouldIndentOnTab(editor)) { + if ($_85hc4ggvjj68z7ny.shouldIndentOnTab(editor)) { setupTabKey(editor); } - $_b89bpjgajj6610zq.setup(editor); + $_cukpygajj68z7k0.setup(editor); }; - var $_5ycd9lgujj66111l = { setup: setup$1 }; + var $_8x7sfwgujj68z7nu = { setup: setup$1 }; var findIndex = function (list, predicate) { for (var index = 0; index < list.length; index++) { @@ -1054,9 +1054,9 @@ var lists = (function () { return function (e) { var ctrl = e.control; editor.on('NodeChange', function (e) { - var tableCellIndex = findIndex(e.parents, $_3d6np9gljj66110r.isTableCellNode); + var tableCellIndex = findIndex(e.parents, $_d2rl98gljj68z7m2.isTableCellNode); var parents = tableCellIndex !== -1 ? e.parents.slice(0, tableCellIndex) : e.parents; - var lists = global$5.grep(parents, $_3d6np9gljj66110r.isListNode); + var lists = global$5.grep(parents, $_d2rl98gljj68z7m2.isListNode); ctrl.active(lists.length > 0 && lists[0].nodeName === listName); }); }; @@ -1065,8 +1065,8 @@ var lists = (function () { return function (e) { var ctrl = e.control; editor.on('nodechange', function () { - var listItemBlocks = $_1lu54xgnjj66110y.getSelectedListItems(editor); - var disable = listItemBlocks.length > 0 && $_3d6np9gljj66110r.isFirstChild(listItemBlocks[0]); + var listItemBlocks = $_bi6umbgnjj68z7ml.getSelectedListItems(editor); + var disable = listItemBlocks.length > 0 && $_d2rl98gljj68z7m2.isFirstChild(listItemBlocks[0]); ctrl.disabled(disable); }); }; @@ -1097,13 +1097,13 @@ var lists = (function () { onPostRender: indentPostRender(editor) }); }; - var $_e2fsflgwjj66111p = { register: register$1 }; + var $_3jhumkgwjj68z7o1 = { register: register$1 }; global.add('lists', function (editor) { - $_5ycd9lgujj66111l.setup(editor); - $_e2fsflgwjj66111p.register(editor); - $_1lz2zlgsjj66111b.register(editor); - return $_f6o3iug9jj6610zm.get(editor); + $_8x7sfwgujj68z7nu.setup(editor); + $_3jhumkgwjj68z7o1.register(editor); + $_8zw798gsjj68z7ng.register(editor); + return $_80n9pmg9jj68z7jo.get(editor); }); function Plugin () { } diff --git a/js/tinymce/plugins/media/plugin.js b/js/tinymce/plugins/media/plugin.js index fd43155a2ae..99e6c0ccbe2 100644 --- a/js/tinymce/plugins/media/plugin.js +++ b/js/tinymce/plugins/media/plugin.js @@ -35,7 +35,7 @@ var media = (function () { var hasDimensions = function (editor) { return editor.getParam('media_dimensions', true); }; - var $_343fo3h3jj661141 = { + var $_7tkz4xh3jj68z7u3 = { getScripts: getScripts, getAudioTemplateCallback: getAudioTemplateCallback, getVideoTemplateCallback: getVideoTemplateCallback, @@ -60,7 +60,7 @@ var media = (function () { } } }; - var $_gez58nh7jj661146 = { getVideoScriptMatch: getVideoScriptMatch }; + var $_ehtmibh7jj68z7ug = { getVideoScriptMatch: getVideoScriptMatch }; var trimPx = function (value) { return value.replace(/px$/, ''); @@ -80,7 +80,7 @@ var media = (function () { } }; }; - var $_dzad3kh8jj661148 = { + var $_eo88h3h8jj68z7uj = { getMaxWidth: getSize('maxWidth'), getMaxHeight: getSize('maxHeight'), setMaxWidth: setSize('maxWidth'), @@ -112,7 +112,7 @@ var media = (function () { data = global$2.extend(attrs.map, data); } if (name === 'script') { - var videoScript = $_gez58nh7jj661146.getVideoScriptMatch(prefixes, attrs.map.src); + var videoScript = $_ehtmibh7jj68z7ug.getVideoScriptMatch(prefixes, attrs.map.src); if (!videoScript) { return; } @@ -148,14 +148,14 @@ var media = (function () { source1: getEphoxEmbedIri(div), source2: '', poster: '', - width: $_dzad3kh8jj661148.getMaxWidth(div), - height: $_dzad3kh8jj661148.getMaxHeight(div) + width: $_eo88h3h8jj68z7uj.getMaxWidth(div), + height: $_eo88h3h8jj68z7uj.getMaxHeight(div) }; }; var htmlToData = function (prefixes, html) { return isEphoxEmbed(html) ? ephoxEmbedHtmlToData(html) : htmlToDataSax(prefixes, html); }; - var $_25jsi8h4jj661143 = { htmlToData: htmlToData }; + var $_9q6derh4jj68z7u9 = { htmlToData: htmlToData }; var global$5 = tinymce.util.Tools.resolve('tinymce.util.Promise'); @@ -172,7 +172,7 @@ var media = (function () { var mime = mimes[fileEnd]; return mime ? mime : ''; }; - var $_87gcyhcjj66114g = { guess: guess }; + var $_o178lhcjj68z7v6 = { guess: guess }; var global$6 = tinymce.util.Tools.resolve('tinymce.html.Writer'); @@ -321,14 +321,14 @@ var media = (function () { var updateEphoxEmbed = function (html, data) { var fragment = DOM$1.createFragment(html); var div = fragment.firstChild; - $_dzad3kh8jj661148.setMaxWidth(div, data.width); - $_dzad3kh8jj661148.setMaxHeight(div, data.height); + $_eo88h3h8jj68z7uj.setMaxWidth(div, data.width); + $_eo88h3h8jj68z7uj.setMaxHeight(div, data.height); return normalizeHtml(div.outerHTML); }; var updateHtml = function (html, data, updateAll) { return isEphoxEmbed$1(html) ? updateEphoxEmbed(html, data) : updateHtmlSax(html, data, updateAll); }; - var $_b8019hhdjj66114i = { updateHtml: updateHtml }; + var $_1blup1hdjj68z7vb = { updateHtml: updateHtml }; var urlPatterns = [ { @@ -452,7 +452,7 @@ var media = (function () { var dataToHtml = function (editor, dataIn) { var data = global$2.extend({}, dataIn); if (!data.source1) { - global$2.extend(data, $_25jsi8h4jj661143.htmlToData($_343fo3h3jj661141.getScripts(editor), data.embed)); + global$2.extend(data, $_9q6derh4jj68z7u9.htmlToData($_7tkz4xh3jj68z7u3.getScripts(editor), data.embed)); if (!data.source1) { return ''; } @@ -465,8 +465,8 @@ var media = (function () { } data.source1 = editor.convertURL(data.source1, 'source'); data.source2 = editor.convertURL(data.source2, 'source'); - data.source1mime = $_87gcyhcjj66114g.guess(data.source1); - data.source2mime = $_87gcyhcjj66114g.guess(data.source2); + data.source1mime = $_o178lhcjj68z7v6.guess(data.source1); + data.source2mime = $_o178lhcjj68z7v6.guess(data.source2); data.poster = editor.convertURL(data.poster, 'poster'); var pattern = matchPattern(data.source1); if (pattern) { @@ -477,16 +477,16 @@ var media = (function () { data.height = data.height || pattern.h; } if (data.embed) { - return $_b8019hhdjj66114i.updateHtml(data.embed, data, true); + return $_1blup1hdjj68z7vb.updateHtml(data.embed, data, true); } else { - var videoScript = $_gez58nh7jj661146.getVideoScriptMatch($_343fo3h3jj661141.getScripts(editor), data.source1); + var videoScript = $_ehtmibh7jj68z7ug.getVideoScriptMatch($_7tkz4xh3jj68z7u3.getScripts(editor), data.source1); if (videoScript) { data.type = 'script'; data.width = videoScript.width; data.height = videoScript.height; } - var audioTemplateCallback = $_343fo3h3jj661141.getAudioTemplateCallback(editor); - var videoTemplateCallback = $_343fo3h3jj661141.getVideoTemplateCallback(editor); + var audioTemplateCallback = $_7tkz4xh3jj68z7u3.getAudioTemplateCallback(editor); + var videoTemplateCallback = $_7tkz4xh3jj68z7u3.getVideoTemplateCallback(editor); data.width = data.width || 300; data.height = data.height || 150; global$2.each(data, function (value, key) { @@ -505,7 +505,7 @@ var media = (function () { } } }; - var $_ffxz3vhbjj66114d = { dataToHtml: dataToHtml }; + var $_39ij3lhbjj68z7uw = { dataToHtml: dataToHtml }; var cache = {}; var embedPromise = function (data, dataToHtml, handler) { @@ -536,17 +536,17 @@ var media = (function () { }; var loadedData = function (editor) { return function (data) { - return $_ffxz3vhbjj66114d.dataToHtml(editor, data); + return $_39ij3lhbjj68z7uw.dataToHtml(editor, data); }; }; var getEmbedHtml = function (editor, data) { - var embedHandler = $_343fo3h3jj661141.getUrlResolver(editor); + var embedHandler = $_7tkz4xh3jj68z7u3.getUrlResolver(editor); return embedHandler ? embedPromise(data, loadedData(editor), embedHandler) : defaultPromise(data, loadedData(editor)); }; var isCached = function (url) { return cache.hasOwnProperty(url); }; - var $_eb4vt0h9jj66114a = { + var $_25oynlh9jj68z7uo = { getEmbedHtml: getEmbedHtml, isCached: isCached }; @@ -631,7 +631,7 @@ var media = (function () { ] }; }; - var $_39hhoohhjj66114s = { + var $_3unoq8hhjj68z7vy = { createUi: createUi, syncSize: syncSize, updateSize: updateSize @@ -654,11 +654,11 @@ var media = (function () { return { 'source1': dataEmbed, 'data-ephox-embed-iri': dataEmbed, - 'width': $_dzad3kh8jj661148.getMaxWidth(element), - 'height': $_dzad3kh8jj661148.getMaxHeight(element) + 'width': $_eo88h3h8jj68z7uj.getMaxWidth(element), + 'height': $_eo88h3h8jj68z7uj.getMaxHeight(element) }; } - return element.getAttribute('data-mce-object') ? $_25jsi8h4jj661143.htmlToData($_343fo3h3jj661141.getScripts(editor), editor.serializer.serialize(element, { selection: true })) : {}; + return element.getAttribute('data-mce-object') ? $_9q6derh4jj68z7u9.htmlToData($_7tkz4xh3jj68z7u3.getScripts(editor), editor.serializer.serialize(element, { selection: true })) : {}; }; var getSource = function (editor) { var elm = editor.selection.getNode(); @@ -670,11 +670,11 @@ var media = (function () { return function (response) { var html = response.html; var embed = win.find('#embed')[0]; - var data = global$2.extend($_25jsi8h4jj661143.htmlToData($_343fo3h3jj661141.getScripts(editor), html), { source1: response.url }); + var data = global$2.extend($_9q6derh4jj68z7u9.htmlToData($_7tkz4xh3jj68z7u3.getScripts(editor), html), { source1: response.url }); win.fromJSON(data); if (embed) { embed.value(html); - $_39hhoohhjj66114s.updateSize(win); + $_3unoq8hhjj68z7vy.updateSize(win); } }; }; @@ -699,11 +699,11 @@ var media = (function () { }; var submitForm = function (win, editor) { var data = win.toJSON(); - data.embed = $_b8019hhdjj66114i.updateHtml(data.embed, data); - if (data.embed && $_eb4vt0h9jj66114a.isCached(data.source1)) { + data.embed = $_1blup1hdjj68z7vb.updateHtml(data.embed, data); + if (data.embed && $_25oynlh9jj68z7uo.isCached(data.source1)) { handleInsert(editor, data.embed); } else { - $_eb4vt0h9jj66114a.getEmbedHtml(editor, data).then(function (response) { + $_25oynlh9jj68z7uo.getEmbedHtml(editor, data).then(function (response) { handleInsert(editor, response.html); }).catch(handleError(editor)); } @@ -725,11 +725,11 @@ var media = (function () { label: 'Source', onpaste: function () { setTimeout(function () { - $_eb4vt0h9jj66114a.getEmbedHtml(editor, win.toJSON()).then(addEmbedHtml(win, editor)).catch(handleError(editor)); + $_25oynlh9jj68z7uo.getEmbedHtml(editor, win.toJSON()).then(addEmbedHtml(win, editor)).catch(handleError(editor)); }, 1); }, onchange: function (e) { - $_eb4vt0h9jj66114a.getEmbedHtml(editor, win.toJSON()).then(addEmbedHtml(win, editor)).catch(handleError(editor)); + $_25oynlh9jj68z7uo.getEmbedHtml(editor, win.toJSON()).then(addEmbedHtml(win, editor)).catch(handleError(editor)); populateMeta(win, e.meta); }, onbeforecall: function (e) { @@ -740,9 +740,9 @@ var media = (function () { var reserialise = function (update) { update(win); data = win.toJSON(); - win.find('#embed').value($_b8019hhdjj66114i.updateHtml(data.embed, data)); + win.find('#embed').value($_1blup1hdjj68z7vb.updateHtml(data.embed, data)); }; - if ($_343fo3h3jj661141.hasAltSource(editor)) { + if ($_7tkz4xh3jj68z7u3.hasAltSource(editor)) { advancedFormItems.push({ name: 'source2', type: 'filepicker', @@ -751,7 +751,7 @@ var media = (function () { label: 'Alternative source' }); } - if ($_343fo3h3jj661141.hasPoster(editor)) { + if ($_7tkz4xh3jj68z7u3.hasPoster(editor)) { advancedFormItems.push({ name: 'poster', type: 'filepicker', @@ -760,8 +760,8 @@ var media = (function () { label: 'Poster' }); } - if ($_343fo3h3jj661141.hasDimensions(editor)) { - var control = $_39hhoohhjj66114s.createUi(reserialise); + if ($_7tkz4xh3jj68z7u3.hasDimensions(editor)) { + var control = $_3unoq8hhjj68z7vy.createUi(reserialise); generalFormItems.push(control); } data = getData(editor); @@ -776,7 +776,7 @@ var media = (function () { label: 'Source' }; var updateValueOnChange = function () { - data = global$2.extend({}, $_25jsi8h4jj661143.htmlToData($_343fo3h3jj661141.getScripts(editor), this.value())); + data = global$2.extend({}, $_9q6derh4jj68z7u9.htmlToData($_7tkz4xh3jj68z7u3.getScripts(editor), this.value())); this.parent().parent().fromJSON(data); }; embedTextBox[embedChange] = updateValueOnChange; @@ -817,34 +817,34 @@ var media = (function () { bodyType: 'tabpanel', body: body, onSubmit: function () { - $_39hhoohhjj66114s.updateSize(win); + $_3unoq8hhjj68z7vy.updateSize(win); submitForm(win, editor); } }); - $_39hhoohhjj66114s.syncSize(win); + $_3unoq8hhjj68z7vy.syncSize(win); }; - var $_acjpi9h0jj66113v = { showDialog: showDialog }; + var $_dr966xh0jj68z7ts = { showDialog: showDialog }; var get = function (editor) { var showDialog = function () { - $_acjpi9h0jj66113v.showDialog(editor); + $_dr966xh0jj68z7ts.showDialog(editor); }; return { showDialog: showDialog }; }; - var $_cu05rrgzjj66113s = { get: get }; + var $_8yodzlgzjj68z7tj = { get: get }; var register = function (editor) { var showDialog = function () { - $_acjpi9h0jj66113v.showDialog(editor); + $_dr966xh0jj68z7ts.showDialog(editor); }; editor.addCommand('mceMedia', showDialog); }; - var $_cglg08hijj66114v = { register: register }; + var $_aj0nn5hijj68z7w7 = { register: register }; var global$8 = tinymce.util.Tools.resolve('tinymce.html.Node'); var sanitize = function (editor, html) { - if ($_343fo3h3jj661141.shouldFilterHtml(editor) === false) { + if ($_7tkz4xh3jj68z7u3.shouldFilterHtml(editor) === false) { return html; } var writer = global$6(); @@ -887,7 +887,7 @@ var media = (function () { }, global$7({})).parse(html); return writer.getContent(); }; - var $_1jteuohmjj661154 = { sanitize: sanitize }; + var $_9gky07hmjj68z7x3 = { sanitize: sanitize }; var createPlaceholderNode = function (editor, node) { var placeHolder; @@ -954,7 +954,7 @@ var media = (function () { } innerHtml = sourceNode.firstChild && sourceNode.firstChild.value; if (innerHtml) { - targetNode.attr('data-mce-html', escape($_1jteuohmjj661154.sanitize(editor, innerHtml))); + targetNode.attr('data-mce-html', escape($_9gky07hmjj68z7x3.sanitize(editor, innerHtml))); targetNode.firstChild = null; } }; @@ -980,7 +980,7 @@ var media = (function () { continue; } if (node.name === 'script') { - videoScript = $_gez58nh7jj661146.getVideoScriptMatch($_343fo3h3jj661141.getScripts(editor), node.attr('src')); + videoScript = $_ehtmibh7jj68z7ug.getVideoScriptMatch($_7tkz4xh3jj68z7u3.getScripts(editor), node.attr('src')); if (!videoScript) { continue; } @@ -993,7 +993,7 @@ var media = (function () { node.attr('height', videoScript.height.toString()); } } - if (node.name === 'iframe' && $_343fo3h3jj661141.hasLiveEmbeds(editor) && global$1.ceFalse) { + if (node.name === 'iframe' && $_7tkz4xh3jj68z7u3.hasLiveEmbeds(editor) && global$1.ceFalse) { if (!isWithinEphoxEmbed(node)) { node.replace(createPreviewIframeNode(editor, node)); } @@ -1005,7 +1005,7 @@ var media = (function () { } }; }; - var $_4hugz1hljj661151 = { + var $_gb0p66hljj68z7wt = { createPreviewIframeNode: createPreviewIframeNode, createPlaceholderNode: createPlaceholderNode, placeHolderConverter: placeHolderConverter @@ -1021,7 +1021,7 @@ var media = (function () { global$2.each('webkitallowfullscreen mozallowfullscreen allowfullscreen'.split(' '), function (name) { boolAttrs[name] = {}; }); - editor.parser.addNodeFilter('iframe,video,audio,object,embed,script', $_4hugz1hljj661151.placeHolderConverter(editor)); + editor.parser.addNodeFilter('iframe,video,audio,object,embed,script', $_gb0p66hljj68z7wt.placeHolderConverter(editor)); editor.serializer.addAttributeFilter('data-mce-object', function (nodes, name) { var i = nodes.length; var node; @@ -1069,7 +1069,7 @@ var media = (function () { if (innerHtml) { innerNode = new global$8('#text', 3); innerNode.raw = true; - innerNode.value = $_1jteuohmjj661154.sanitize(editor, unescape(innerHtml)); + innerNode.value = $_9gky07hmjj68z7x3.sanitize(editor, unescape(innerHtml)); realElm.append(innerNode); } node.replace(realElm); @@ -1085,7 +1085,7 @@ var media = (function () { }); }); }; - var $_ad0nbghjjj66114x = { setup: setup }; + var $_12fji8hjjj68z7wb = { setup: setup }; var setup$1 = function (editor) { editor.on('ResolveName', function (e) { @@ -1095,7 +1095,7 @@ var media = (function () { } }); }; - var $_bqifmjhnjj661157 = { setup: setup$1 }; + var $_3xkbwshnjj68z7x9 = { setup: setup$1 }; var setup$2 = function (editor) { editor.on('click keyup', function () { @@ -1119,7 +1119,7 @@ var media = (function () { html = target.getAttribute('data-mce-html'); if (html) { html = unescape(html); - target.setAttribute('data-mce-html', escape($_b8019hhdjj66114i.updateHtml(html, { + target.setAttribute('data-mce-html', escape($_1blup1hdjj68z7vb.updateHtml(html, { width: e.width, height: e.height }))); @@ -1127,7 +1127,7 @@ var media = (function () { } }); }; - var $_g6cxkjhojj661159 = { setup: setup$2 }; + var $_9eyyn5hojj68z7xd = { setup: setup$2 }; var register$1 = function (editor) { editor.addButton('media', { @@ -1147,15 +1147,15 @@ var media = (function () { prependToContext: true }); }; - var $_d5yzgqhpjj66115d = { register: register$1 }; + var $_3l7esrhpjj68z7xn = { register: register$1 }; global.add('media', function (editor) { - $_cglg08hijj66114v.register(editor); - $_d5yzgqhpjj66115d.register(editor); - $_bqifmjhnjj661157.setup(editor); - $_ad0nbghjjj66114x.setup(editor); - $_g6cxkjhojj661159.setup(editor); - return $_cu05rrgzjj66113s.get(editor); + $_aj0nn5hijj68z7w7.register(editor); + $_3l7esrhpjj68z7xn.register(editor); + $_3xkbwshnjj68z7x9.setup(editor); + $_12fji8hjjj68z7wb.setup(editor); + $_9eyyn5hojj68z7xd.setup(editor); + return $_8yodzlgzjj68z7tj.get(editor); }); function Plugin () { } diff --git a/js/tinymce/plugins/nonbreaking/plugin.js b/js/tinymce/plugins/nonbreaking/plugin.js index 001e84fea44..4a113219437 100644 --- a/js/tinymce/plugins/nonbreaking/plugin.js +++ b/js/tinymce/plugins/nonbreaking/plugin.js @@ -19,14 +19,14 @@ var nonbreaking = (function () { editor.insertContent(stringRepeat(nbsp, times)); editor.dom.setAttrib(editor.dom.select('span.mce-nbsp'), 'data-mce-bogus', '1'); }; - var $_3fa586htjj66117c = { insertNbsp: insertNbsp }; + var $_5gxj7bhtjj68z82o = { insertNbsp: insertNbsp }; var register = function (editor) { editor.addCommand('mceNonBreaking', function () { - $_3fa586htjj66117c.insertNbsp(editor, 1); + $_5gxj7bhtjj68z82o.insertNbsp(editor, 1); }); }; - var $_59aeyxhsjj66117a = { register: register }; + var $_d0anc7hsjj68z82k = { register: register }; var global$1 = tinymce.util.Tools.resolve('tinymce.util.VK'); @@ -38,10 +38,10 @@ var nonbreaking = (function () { return spaces; } }; - var $_a337yzhwjj66117f = { getKeyboardSpaces: getKeyboardSpaces }; + var $_5dt9qlhwjj68z82x = { getKeyboardSpaces: getKeyboardSpaces }; var setup = function (editor) { - var spaces = $_a337yzhwjj66117f.getKeyboardSpaces(editor); + var spaces = $_5dt9qlhwjj68z82x.getKeyboardSpaces(editor); if (spaces > 0) { editor.on('keydown', function (e) { if (e.keyCode === global$1.TAB && !e.isDefaultPrevented()) { @@ -50,12 +50,12 @@ var nonbreaking = (function () { } e.preventDefault(); e.stopImmediatePropagation(); - $_3fa586htjj66117c.insertNbsp(editor, spaces); + $_5gxj7bhtjj68z82o.insertNbsp(editor, spaces); } }); } }; - var $_c76kv0hujj66117d = { setup: setup }; + var $_fgh7qxhujj68z82t = { setup: setup }; var register$1 = function (editor) { editor.addButton('nonbreaking', { @@ -69,12 +69,12 @@ var nonbreaking = (function () { context: 'insert' }); }; - var $_6z7q6ohxjj66117h = { register: register$1 }; + var $_jb62chxjj68z832 = { register: register$1 }; global.add('nonbreaking', function (editor) { - $_59aeyxhsjj66117a.register(editor); - $_6z7q6ohxjj66117h.register(editor); - $_c76kv0hujj66117d.setup(editor); + $_d0anc7hsjj68z82k.register(editor); + $_jb62chxjj68z832.register(editor); + $_fgh7qxhujj68z82t.setup(editor); }); function Plugin () { } diff --git a/js/tinymce/plugins/noneditable/plugin.js b/js/tinymce/plugins/noneditable/plugin.js index 424e859668d..3bbe10ea847 100644 --- a/js/tinymce/plugins/noneditable/plugin.js +++ b/js/tinymce/plugins/noneditable/plugin.js @@ -20,7 +20,7 @@ var noneditable = (function () { return nonEditableRegExps; } }; - var $_aniwyei2jj66117z = { + var $_9v0juhi2jj68z845 = { getNonEditableClass: getNonEditableClass, getEditableClass: getEditableClass, getNonEditableRegExps: getNonEditableRegExps @@ -56,18 +56,18 @@ var noneditable = (function () { return; } while (i--) { - content = content.replace(nonEditableRegExps[i], replaceMatchWithSpan(editor, content, $_aniwyei2jj66117z.getNonEditableClass(editor))); + content = content.replace(nonEditableRegExps[i], replaceMatchWithSpan(editor, content, $_9v0juhi2jj68z845.getNonEditableClass(editor))); } e.content = content; }; var setup = function (editor) { var editClass, nonEditClass; var contentEditableAttrName = 'contenteditable'; - editClass = ' ' + global$1.trim($_aniwyei2jj66117z.getEditableClass(editor)) + ' '; - nonEditClass = ' ' + global$1.trim($_aniwyei2jj66117z.getNonEditableClass(editor)) + ' '; + editClass = ' ' + global$1.trim($_9v0juhi2jj68z845.getEditableClass(editor)) + ' '; + nonEditClass = ' ' + global$1.trim($_9v0juhi2jj68z845.getNonEditableClass(editor)) + ' '; var hasEditClass = hasClass(editClass); var hasNonEditClass = hasClass(nonEditClass); - var nonEditableRegExps = $_aniwyei2jj66117z.getNonEditableRegExps(editor); + var nonEditableRegExps = $_9v0juhi2jj68z845.getNonEditableRegExps(editor); editor.on('PreInit', function () { if (nonEditableRegExps.length > 0) { editor.on('BeforeSetContent', function (e) { @@ -104,10 +104,10 @@ var noneditable = (function () { }); }); }; - var $_bixnaei0jj66117w = { setup: setup }; + var $_fqdj1gi0jj68z83t = { setup: setup }; global.add('noneditable', function (editor) { - $_bixnaei0jj66117w.setup(editor); + $_fqdj1gi0jj68z83t.setup(editor); }); function Plugin () { } diff --git a/js/tinymce/plugins/pagebreak/plugin.js b/js/tinymce/plugins/pagebreak/plugin.js index 8f3d69d4dd1..e3ca3255ece 100644 --- a/js/tinymce/plugins/pagebreak/plugin.js +++ b/js/tinymce/plugins/pagebreak/plugin.js @@ -12,7 +12,7 @@ var pagebreak = (function () { var shouldSplitBlock = function (editor) { return editor.getParam('pagebreak_split_block', false); }; - var $_fei54ui8jj66118h = { + var $_4vrtgxi8jj68z857 = { getSeparatorHtml: getSeparatorHtml, shouldSplitBlock: shouldSplitBlock }; @@ -24,7 +24,7 @@ var pagebreak = (function () { return ''; }; var setup = function (editor) { - var separatorHtml = $_fei54ui8jj66118h.getSeparatorHtml(editor); + var separatorHtml = $_4vrtgxi8jj68z857.getSeparatorHtml(editor); var pageBreakSeparatorRegExp = new RegExp(separatorHtml.replace(/[\?\.\*\[\]\(\)\{\}\+\^\$\:]/g, function (a) { return '\\' + a; }), 'gi'); @@ -39,7 +39,7 @@ var pagebreak = (function () { className = node.attr('class'); if (className && className.indexOf('mce-pagebreak') !== -1) { var parentNode = node.parent; - if (editor.schema.getBlockElements()[parentNode.name] && $_fei54ui8jj66118h.shouldSplitBlock(editor)) { + if (editor.schema.getBlockElements()[parentNode.name] && $_4vrtgxi8jj68z857.shouldSplitBlock(editor)) { parentNode.type = 3; parentNode.value = separatorHtml; parentNode.raw = true; @@ -54,7 +54,7 @@ var pagebreak = (function () { }); }); }; - var $_5rvl4ci6jj66118e = { + var $_egfpevi6jj68z852 = { setup: setup, getPlaceholderHtml: getPlaceholderHtml, getPageBreakClass: getPageBreakClass @@ -63,22 +63,22 @@ var pagebreak = (function () { var register = function (editor) { editor.addCommand('mcePageBreak', function () { if (editor.settings.pagebreak_split_block) { - editor.insertContent('

' + $_5rvl4ci6jj66118e.getPlaceholderHtml() + '

'); + editor.insertContent('

' + $_egfpevi6jj68z852.getPlaceholderHtml() + '

'); } else { - editor.insertContent($_5rvl4ci6jj66118e.getPlaceholderHtml()); + editor.insertContent($_egfpevi6jj68z852.getPlaceholderHtml()); } }); }; - var $_11o76mi5jj66118d = { register: register }; + var $_1zw7vdi5jj68z84y = { register: register }; var setup$1 = function (editor) { editor.on('ResolveName', function (e) { - if (e.target.nodeName === 'IMG' && editor.dom.hasClass(e.target, $_5rvl4ci6jj66118e.getPageBreakClass())) { + if (e.target.nodeName === 'IMG' && editor.dom.hasClass(e.target, $_egfpevi6jj68z852.getPageBreakClass())) { e.name = 'pagebreak'; } }); }; - var $_atv1lhi9jj66118i = { setup: setup$1 }; + var $_av2eu3i9jj68z85b = { setup: setup$1 }; var register$1 = function (editor) { editor.addButton('pagebreak', { @@ -92,13 +92,13 @@ var pagebreak = (function () { context: 'insert' }); }; - var $_fs7lc1iajj66118k = { register: register$1 }; + var $_6ofn8hiajj68z85g = { register: register$1 }; global.add('pagebreak', function (editor) { - $_11o76mi5jj66118d.register(editor); - $_fs7lc1iajj66118k.register(editor); - $_5rvl4ci6jj66118e.setup(editor); - $_atv1lhi9jj66118i.setup(editor); + $_1zw7vdi5jj68z84y.register(editor); + $_6ofn8hiajj68z85g.register(editor); + $_egfpevi6jj68z852.setup(editor); + $_av2eu3i9jj68z85b.setup(editor); }); function Plugin () { } diff --git a/js/tinymce/plugins/paste/plugin.js b/js/tinymce/plugins/paste/plugin.js index 4e92d92d366..ea420911202 100644 --- a/js/tinymce/plugins/paste/plugin.js +++ b/js/tinymce/plugins/paste/plugin.js @@ -32,7 +32,7 @@ var paste = (function () { return false; } }; - var $_1co8jmiejj66118z = { hasProPlugin: hasProPlugin }; + var $_2nkd4uiejj68z86x = { hasProPlugin: hasProPlugin }; var get = function (clipboard, quirks) { return { @@ -40,7 +40,7 @@ var paste = (function () { quirks: quirks }; }; - var $_3bk3nqigjj66119e = { get: get }; + var $_8xtcieigjj68z88h = { get: get }; var firePastePreProcess = function (editor, html, internal, isWordHtml) { return editor.fire('PastePreProcess', { @@ -62,7 +62,7 @@ var paste = (function () { var firePaste = function (editor, ieFake) { return editor.fire('paste', { ieFake: ieFake }); }; - var $_6vbpa8ijjj66119m = { + var $_f7fp10ijjj68z899 = { firePastePreProcess: firePastePreProcess, firePastePostProcess: firePastePostProcess, firePastePlainTextToggle: firePastePlainTextToggle, @@ -115,7 +115,7 @@ var paste = (function () { var shouldUseDefaultFilters = function (editor) { return editor.getParam('paste_enable_default_filters', true); }; - var $_dykxakikjj66119o = { + var $_99sl38ikjj68z89f = { shouldPlainTextInform: shouldPlainTextInform, shouldBlockDrop: shouldBlockDrop, shouldPasteDataImages: shouldPasteDataImages, @@ -134,7 +134,7 @@ var paste = (function () { }; var shouldInformUserAboutPlainText = function (editor, userIsInformedState) { - return userIsInformedState.get() === false && $_dykxakikjj66119o.shouldPlainTextInform(editor); + return userIsInformedState.get() === false && $_99sl38ikjj68z89f.shouldPlainTextInform(editor); }; var displayNotification = function (editor, message) { editor.notificationManager.open({ @@ -145,10 +145,10 @@ var paste = (function () { var togglePlainTextPaste = function (editor, clipboard, userIsInformedState) { if (clipboard.pasteFormat.get() === 'text') { clipboard.pasteFormat.set('html'); - $_6vbpa8ijjj66119m.firePastePlainTextToggle(editor, false); + $_f7fp10ijjj68z899.firePastePlainTextToggle(editor, false); } else { clipboard.pasteFormat.set('text'); - $_6vbpa8ijjj66119m.firePastePlainTextToggle(editor, true); + $_f7fp10ijjj68z899.firePastePlainTextToggle(editor, true); if (shouldInformUserAboutPlainText(editor, userIsInformedState)) { displayNotification(editor, 'Paste is now in plain text mode. Contents will now be pasted as plain text until you toggle this option off.'); userIsInformedState.set(true); @@ -156,11 +156,11 @@ var paste = (function () { } editor.focus(); }; - var $_cbq158iijj66119k = { togglePlainTextPaste: togglePlainTextPaste }; + var $_7w6s9giijj68z894 = { togglePlainTextPaste: togglePlainTextPaste }; var register = function (editor, clipboard, userIsInformedState) { editor.addCommand('mceTogglePlainTextPaste', function () { - $_cbq158iijj66119k.togglePlainTextPaste(editor, clipboard, userIsInformedState); + $_7w6s9giijj68z894.togglePlainTextPaste(editor, clipboard, userIsInformedState); }); editor.addCommand('mceInsertClipboardContent', function (ui, value) { if (value.content) { @@ -171,7 +171,7 @@ var paste = (function () { } }); }; - var $_2kp2giihjj66119i = { register: register }; + var $_9fe7kwihjj68z88s = { register: register }; var global$1 = tinymce.util.Tools.resolve('tinymce.Env'); @@ -192,7 +192,7 @@ var paste = (function () { var isMarked = function (html) { return html.indexOf(internalMark) !== -1; }; - var $_ehc36yirjj6611a6 = { + var $_d18dgyirjj68z8ar = { mark: mark, unmark: unmark, isMarked: isMarked, @@ -240,7 +240,7 @@ var paste = (function () { var convert = function (text, rootTag, rootAttrs) { return rootTag ? toBlockElements(text, rootTag, rootAttrs) : toBRs(text); }; - var $_9vnut6isjj6611a8 = { + var $_fhgettisjj68z8aw = { isPlainText: isPlainText, convert: convert, toBRs: toBRs, @@ -334,7 +334,7 @@ var paste = (function () { var isMsEdge = function () { return navigator.userAgent.indexOf(' Edge/') !== -1; }; - var $_cmzoccj0jj6611ap = { + var $_gcb8mj0jj68z8c8 = { filter: filter, innerText: innerText, trimHtml: trimHtml, @@ -529,7 +529,7 @@ var paste = (function () { if (name.indexOf('mso-') === 0) { return; } - if ($_dykxakikjj66119o.getRetainStyleProps(editor) === 'all' || validStyles && validStyles[name]) { + if ($_99sl38ikjj68z89f.getRetainStyleProps(editor) === 'all' || validStyles && validStyles[name]) { outputStyles[name] = value; } }); @@ -549,11 +549,11 @@ var paste = (function () { } var filterWordContent = function (editor, content) { var retainStyleProperties, validStyles; - retainStyleProperties = $_dykxakikjj66119o.getRetainStyleProps(editor); + retainStyleProperties = $_99sl38ikjj68z89f.getRetainStyleProps(editor); if (retainStyleProperties) { validStyles = global$3.makeMap(retainStyleProperties.split(/[, ]/)); } - content = $_cmzoccj0jj6611ap.filter(content, [ + content = $_gcb8mj0jj68z8c8.filter(content, [ /
/gi, /]+id="?docs-internal-[^>]*>/gi, //gi, @@ -573,7 +573,7 @@ var paste = (function () { } ] ]); - var validElements = $_dykxakikjj66119o.getWordValidElements(editor); + var validElements = $_99sl38ikjj68z89f.getWordValidElements(editor); var schema = global$8({ valid_elements: validElements, valid_children: '-li[p]' @@ -647,16 +647,16 @@ var paste = (function () { } }); var rootNode = domParser.parse(content); - if ($_dykxakikjj66119o.shouldConvertWordFakeLists(editor)) { + if ($_99sl38ikjj68z89f.shouldConvertWordFakeLists(editor)) { convertFakeListsToProperLists(rootNode); } content = global$9({ validate: editor.settings.validate }, schema).serialize(rootNode); return content; }; var preProcess = function (editor, content) { - return $_dykxakikjj66119o.shouldUseDefaultFilters(editor) ? filterWordContent(editor, content) : content; + return $_99sl38ikjj68z89f.shouldUseDefaultFilters(editor) ? filterWordContent(editor, content) : content; }; - var $_8mi82aivjj6611ag = { + var $_2oqjisivjj68z8bl = { preProcess: preProcess, isWordContent: isWordContent }; @@ -669,11 +669,11 @@ var paste = (function () { }; var postProcessFilter = function (editor, html, internal, isWordHtml) { var tempBody = editor.dom.create('div', { style: 'display:none' }, html); - var postProcessArgs = $_6vbpa8ijjj66119m.firePastePostProcess(editor, tempBody, internal, isWordHtml); + var postProcessArgs = $_f7fp10ijjj68z899.firePastePostProcess(editor, tempBody, internal, isWordHtml); return processResult(postProcessArgs.node.innerHTML, postProcessArgs.isDefaultPrevented()); }; var filterContent = function (editor, content, internal, isWordHtml) { - var preProcessArgs = $_6vbpa8ijjj66119m.firePastePreProcess(editor, content, internal, isWordHtml); + var preProcessArgs = $_f7fp10ijjj68z899.firePastePreProcess(editor, content, internal, isWordHtml); if (editor.hasEventListeners('PastePostProcess') && !preProcessArgs.isDefaultPrevented()) { return postProcessFilter(editor, preProcessArgs.content, internal, isWordHtml); } else { @@ -681,15 +681,15 @@ var paste = (function () { } }; var process = function (editor, html, internal) { - var isWordHtml = $_8mi82aivjj6611ag.isWordContent(html); - var content = isWordHtml ? $_8mi82aivjj6611ag.preProcess(editor, html) : html; + var isWordHtml = $_2oqjisivjj68z8bl.isWordContent(html); + var content = isWordHtml ? $_2oqjisivjj68z8bl.preProcess(editor, html) : html; return filterContent(editor, content, internal, isWordHtml); }; - var $_23c0sdiujj6611ab = { process: process }; + var $_cazw9ziujj68z8b5 = { process: process }; var pasteHtml = function (editor, html) { editor.insertContent(html, { - merge: $_dykxakikjj66119o.shouldMergeFormats(editor), + merge: $_99sl38ikjj68z89f.shouldMergeFormats(editor), paste: true }); return true; @@ -732,28 +732,28 @@ var paste = (function () { }); }; var insertContent = function (editor, html) { - if ($_dykxakikjj66119o.isSmartPasteEnabled(editor) === false) { + if ($_99sl38ikjj68z89f.isSmartPasteEnabled(editor) === false) { pasteHtml(editor, html); } else { smartInsertContent(editor, html); } }; - var $_ewvhqwj1jj6611at = { + var $_4w7f9j1jj68z8cp = { isImageUrl: isImageUrl, isAbsoluteUrl: isAbsoluteUrl, insertContent: insertContent }; var pasteHtml$1 = function (editor, html, internalFlag) { - var internal = internalFlag ? internalFlag : $_ehc36yirjj6611a6.isMarked(html); - var args = $_23c0sdiujj6611ab.process(editor, $_ehc36yirjj6611a6.unmark(html), internal); + var internal = internalFlag ? internalFlag : $_d18dgyirjj68z8ar.isMarked(html); + var args = $_cazw9ziujj68z8b5.process(editor, $_d18dgyirjj68z8ar.unmark(html), internal); if (args.cancelled === false) { - $_ewvhqwj1jj6611at.insertContent(editor, args.content); + $_4w7f9j1jj68z8cp.insertContent(editor, args.content); } }; var pasteText = function (editor, text) { text = editor.dom.encode(text).replace(/\r\n/g, '\n'); - text = $_9vnut6isjj6611a8.convert(text, editor.settings.forced_root_block, editor.settings.forced_root_block_attrs); + text = $_fhgettisjj68z8aw.convert(text, editor.settings.forced_root_block, editor.settings.forced_root_block_attrs); pasteHtml$1(editor, text, false); }; var getDataTransferItems = function (dataTransfer) { @@ -783,7 +783,7 @@ var paste = (function () { }; var getClipboardContent = function (editor, clipboardEvent) { var content = getDataTransferItems(clipboardEvent.clipboardData || editor.getDoc().dataTransfer); - return $_cmzoccj0jj6611ap.isMsEdge() ? global$3.extend(content, { 'text/html': '' }) : content; + return $_gcb8mj0jj68z8c8.isMsEdge() ? global$3.extend(content, { 'text/html': '' }) : content; }; var hasContentType = function (clipboardContent, mimeType) { return mimeType in clipboardContent && clipboardContent[mimeType].length > 0; @@ -806,7 +806,7 @@ var paste = (function () { var m = str.match(/([\s\S]+?)\.(?:jpeg|jpg|png|gif)$/i); return m ? editor.dom.encode(m[1]) : null; }; - var uniqueId = $_cmzoccj0jj6611ap.createIdGenerator('mceclip'); + var uniqueId = $_gcb8mj0jj68z8c8.createIdGenerator('mceclip'); var pasteImage = function (editor, rng, reader, blob) { if (rng) { editor.selection.setRng(rng); @@ -886,7 +886,7 @@ var paste = (function () { keyboardPasteTimeStamp = new Date().getTime(); if (global$1.ie && keyboardPastePlainTextState) { e.preventDefault(); - $_6vbpa8ijjj66119m.firePaste(editor, true); + $_f7fp10ijjj68z899.firePaste(editor, true); return; } pasteBin.remove(); @@ -903,14 +903,14 @@ var paste = (function () { content = clipboardContent['text/html']; } else { content = pasteBin.getHtml(); - internal = internal ? internal : $_ehc36yirjj6611a6.isMarked(content); + internal = internal ? internal : $_d18dgyirjj68z8ar.isMarked(content); if (pasteBin.isDefaultContent(content)) { plainTextMode = true; } } - content = $_cmzoccj0jj6611ap.trimHtml(content); + content = $_gcb8mj0jj68z8c8.trimHtml(content); pasteBin.remove(); - isPlainTextHtml = internal === false && $_9vnut6isjj6611a8.isPlainText(content); + isPlainTextHtml = internal === false && $_fhgettisjj68z8aw.isPlainText(content); if (!content.length || isPlainTextHtml) { plainTextMode = true; } @@ -918,7 +918,7 @@ var paste = (function () { if (hasContentType(clipboardContent, 'text/plain') && isPlainTextHtml) { content = clipboardContent['text/plain']; } else { - content = $_cmzoccj0jj6611ap.innerText(content); + content = $_gcb8mj0jj68z8c8.innerText(content); } } if (pasteBin.isDefaultContent(content)) { @@ -942,7 +942,7 @@ var paste = (function () { var clipboardDelay = new Date().getTime() - clipboardTimer; var isKeyBoardPaste = new Date().getTime() - keyboardPasteTimeStamp - clipboardDelay < 1000; var plainTextMode = pasteFormat.get() === 'text' || keyboardPastePlainTextState; - var internal = hasContentType(clipboardContent, $_ehc36yirjj6611a6.internalHtmlMime()); + var internal = hasContentType(clipboardContent, $_d18dgyirjj68z8ar.internalHtmlMime()); keyboardPastePlainTextState = false; if (e.isDefaultPrevented() || isBrokenAndroidClipboardEvent(e)) { pasteBin.remove(); @@ -966,7 +966,7 @@ var paste = (function () { if (hasContentType(clipboardContent, 'text/html')) { e.preventDefault(); if (!internal) { - internal = $_ehc36yirjj6611a6.isMarked(clipboardContent['text/html']); + internal = $_d18dgyirjj68z8ar.isMarked(clipboardContent['text/html']); } insertClipboardContent(clipboardContent, isKeyBoardPaste, plainTextMode, internal); } else { @@ -1151,7 +1151,7 @@ var paste = (function () { var noop = function () { }; var hasWorkingClipboardApi = function (clipboardData) { - return global$1.iOS === false && clipboardData !== undefined && typeof clipboardData.setData === 'function' && $_cmzoccj0jj6611ap.isMsEdge() !== true; + return global$1.iOS === false && clipboardData !== undefined && typeof clipboardData.setData === 'function' && $_gcb8mj0jj68z8c8.isMsEdge() !== true; }; var setHtml5Clipboard = function (clipboardData, html, text) { if (hasWorkingClipboardApi(clipboardData)) { @@ -1159,7 +1159,7 @@ var paste = (function () { clipboardData.clearData(); clipboardData.setData('text/html', html); clipboardData.setData('text/plain', text); - clipboardData.setData($_ehc36yirjj6611a6.internalHtmlMime(), html); + clipboardData.setData($_d18dgyirjj68z8ar.internalHtmlMime(), html); return true; } catch (e) { return false; @@ -1178,7 +1178,7 @@ var paste = (function () { }; var fallback = function (editor) { return function (html, done) { - var markedHtml = $_ehc36yirjj6611a6.mark(html); + var markedHtml = $_d18dgyirjj68z8ar.mark(html); var outer = editor.dom.create('div', { 'contenteditable': 'false', 'data-mce-bogus': 'all' @@ -1233,7 +1233,7 @@ var paste = (function () { editor.on('cut', cut(editor)); editor.on('copy', copy(editor)); }; - var $_c0zyl8j3jj6611b4 = { register: register$1 }; + var $_93dx63j3jj68z8e3 = { register: register$1 }; var global$10 = tinymce.util.Tools.resolve('tinymce.dom.RangeUtils'); @@ -1249,13 +1249,13 @@ var paste = (function () { editor.selection.setRng(rng); }; var setup = function (editor, clipboard, draggingInternallyState) { - if ($_dykxakikjj66119o.shouldBlockDrop(editor)) { + if ($_99sl38ikjj68z89f.shouldBlockDrop(editor)) { editor.on('dragend dragover draggesture dragdrop drop drag', function (e) { e.preventDefault(); e.stopPropagation(); }); } - if (!$_dykxakikjj66119o.shouldPasteDataImages(editor)) { + if (!$_99sl38ikjj68z89f.shouldPasteDataImages(editor)) { editor.on('drop', function (e) { var dataTransfer = e.dataTransfer; if (dataTransfer && dataTransfer.files && dataTransfer.files.length > 0) { @@ -1270,11 +1270,11 @@ var paste = (function () { return; } dropContent = clipboard.getDataTransferItems(e.dataTransfer); - var internal = clipboard.hasContentType(dropContent, $_ehc36yirjj6611a6.internalHtmlMime()); + var internal = clipboard.hasContentType(dropContent, $_d18dgyirjj68z8ar.internalHtmlMime()); if ((!clipboard.hasHtmlOrText(dropContent) || isPlainTextFileUrl(dropContent)) && clipboard.pasteImageData(e, rng)) { return; } - if (rng && $_dykxakikjj66119o.shouldFilterDrop(editor)) { + if (rng && $_99sl38ikjj68z89f.shouldFilterDrop(editor)) { var content_1 = dropContent['mce-internal'] || dropContent['text/html'] || dropContent['text/plain']; if (content_1) { e.preventDefault(); @@ -1284,7 +1284,7 @@ var paste = (function () { editor.execCommand('Delete'); } setFocusedRange(editor, rng); - content_1 = $_cmzoccj0jj6611ap.trimHtml(content_1); + content_1 = $_gcb8mj0jj68z8c8.trimHtml(content_1); if (!dropContent['text/html']) { clipboard.pasteText(content_1); } else { @@ -1299,7 +1299,7 @@ var paste = (function () { draggingInternallyState.set(true); }); editor.on('dragover dragend', function (e) { - if ($_dykxakikjj66119o.shouldPasteDataImages(editor) && draggingInternallyState.get() === false) { + if ($_99sl38ikjj68z89f.shouldPasteDataImages(editor) && draggingInternallyState.get() === false) { e.preventDefault(); setFocusedRange(editor, getCaretRangeFromEvent(editor, e)); } @@ -1308,24 +1308,24 @@ var paste = (function () { } }); }; - var $_1fl1ubj4jj6611b9 = { setup: setup }; + var $_afkz6uj4jj68z8ei = { setup: setup }; var setup$1 = function (editor) { var plugin = editor.plugins.paste; - var preProcess = $_dykxakikjj66119o.getPreProcess(editor); + var preProcess = $_99sl38ikjj68z89f.getPreProcess(editor); if (preProcess) { editor.on('PastePreProcess', function (e) { preProcess.call(plugin, plugin, e); }); } - var postProcess = $_dykxakikjj66119o.getPostProcess(editor); + var postProcess = $_99sl38ikjj68z89f.getPostProcess(editor); if (postProcess) { editor.on('PastePostProcess', function (e) { postProcess.call(plugin, plugin, e); }); } }; - var $_40j71pj6jj6611bd = { setup: setup$1 }; + var $_at94m7j6jj68z8er = { setup: setup$1 }; function addPreProcessFilter(editor, filterFunc) { editor.on('PastePreProcess', function (e) { @@ -1338,7 +1338,7 @@ var paste = (function () { }); } function removeExplorerBrElementsAfterBlocks(editor, html) { - if (!$_8mi82aivjj6611ag.isWordContent(html)) { + if (!$_2oqjisivjj68z8bl.isWordContent(html)) { return html; } var blockElements = []; @@ -1346,11 +1346,11 @@ var paste = (function () { blockElements.push(blockName); }); var explorerBlocksRegExp = new RegExp('(?:
 [\\s\\r\\n]+|
)*(<\\/?(' + blockElements.join('|') + ')[^>]*>)(?:
 [\\s\\r\\n]+|
)*', 'g'); - html = $_cmzoccj0jj6611ap.filter(html, [[ + html = $_gcb8mj0jj68z8c8.filter(html, [[ explorerBlocksRegExp, '$1' ]]); - html = $_cmzoccj0jj6611ap.filter(html, [ + html = $_gcb8mj0jj68z8c8.filter(html, [ [ /

/g, '

' @@ -1370,9 +1370,9 @@ var paste = (function () { if (isWordHtml || internal) { return content; } - var webKitStylesSetting = $_dykxakikjj66119o.getWebkitStyles(editor); + var webKitStylesSetting = $_99sl38ikjj68z89f.getWebkitStyles(editor); var webKitStyles; - if ($_dykxakikjj66119o.shouldRemoveWebKitStyles(editor) === false || webKitStylesSetting === 'all') { + if ($_99sl38ikjj68z89f.shouldRemoveWebKitStyles(editor) === false || webKitStylesSetting === 'all') { return content; } if (webKitStylesSetting) { @@ -1424,7 +1424,7 @@ var paste = (function () { addPostProcessFilter(editor, removeUnderlineAndFontInAnchor); } }; - var $_1q914ej7jj6611bf = { setup: setup$2 }; + var $_2ob1pfj7jj68z8ex = { setup: setup$2 }; var curry = function (f) { var x = []; @@ -1471,21 +1471,21 @@ var paste = (function () { onPostRender: postRender }); }; - var $_awt5z8j8jj6611bi = { register: register$2 }; + var $_e0tq8rj8jj68z8fi = { register: register$2 }; global.add('paste', function (editor) { - if ($_1co8jmiejj66118z.hasProPlugin(editor) === false) { + if ($_2nkd4uiejj68z86x.hasProPlugin(editor) === false) { var userIsInformedState = Cell(false); var draggingInternallyState = Cell(false); - var pasteFormat = Cell($_dykxakikjj66119o.isPasteAsTextEnabled(editor) ? 'text' : 'html'); + var pasteFormat = Cell($_99sl38ikjj68z89f.isPasteAsTextEnabled(editor) ? 'text' : 'html'); var clipboard = Clipboard(editor, pasteFormat); - var quirks = $_1q914ej7jj6611bf.setup(editor); - $_awt5z8j8jj6611bi.register(editor, clipboard); - $_2kp2giihjj66119i.register(editor, clipboard, userIsInformedState); - $_40j71pj6jj6611bd.setup(editor); - $_c0zyl8j3jj6611b4.register(editor); - $_1fl1ubj4jj6611b9.setup(editor, clipboard, draggingInternallyState); - return $_3bk3nqigjj66119e.get(clipboard, quirks); + var quirks = $_2ob1pfj7jj68z8ex.setup(editor); + $_e0tq8rj8jj68z8fi.register(editor, clipboard); + $_9fe7kwihjj68z88s.register(editor, clipboard, userIsInformedState); + $_at94m7j6jj68z8er.setup(editor); + $_93dx63j3jj68z8e3.register(editor); + $_afkz6uj4jj68z8ei.setup(editor, clipboard, draggingInternallyState); + return $_8xtcieigjj68z88h.get(clipboard, quirks); } }); function Plugin () { diff --git a/js/tinymce/plugins/preview/plugin.js b/js/tinymce/plugins/preview/plugin.js index 008d75efffb..bf3288aea86 100644 --- a/js/tinymce/plugins/preview/plugin.js +++ b/js/tinymce/plugins/preview/plugin.js @@ -15,7 +15,7 @@ var preview = (function () { var getContentStyle = function (editor) { return editor.getParam('content_style', ''); }; - var $_5etn2gjfjj6611ei = { + var $_alxnbxjfjj68z8o9 = { getPreviewDialogWidth: getPreviewDialogWidth, getPreviewDialogHeight: getPreviewDialogHeight, getContentStyle: getContentStyle @@ -27,7 +27,7 @@ var preview = (function () { var previewHtml; var headHtml = ''; var encode = editor.dom.encode; - var contentStyle = $_5etn2gjfjj6611ei.getContentStyle(editor); + var contentStyle = $_alxnbxjfjj68z8o9.getContentStyle(editor); headHtml += ''; if (contentStyle) { headHtml += ''; @@ -61,7 +61,7 @@ var preview = (function () { iframe.src = 'data:text/html;charset=utf-8,' + encodeURIComponent(previewHtml); } }; - var $_ffgv0cjgjj6611ek = { + var $_5c26wsjgjj68z8oe = { getPreviewHtml: getPreviewHtml, injectIframeContent: injectIframeContent }; @@ -69,8 +69,8 @@ var preview = (function () { var open = function (editor) { var sandbox = !global$1.ie; var dialogHtml = ''; - var dialogWidth = $_5etn2gjfjj6611ei.getPreviewDialogWidth(editor); - var dialogHeight = $_5etn2gjfjj6611ei.getPreviewDialogHeight(editor); + var dialogWidth = $_alxnbxjfjj68z8o9.getPreviewDialogWidth(editor); + var dialogHeight = $_alxnbxjfjj68z8o9.getPreviewDialogHeight(editor); editor.windowManager.open({ title: 'Preview', width: dialogWidth, @@ -84,18 +84,18 @@ var preview = (function () { }, onPostRender: function (e) { var iframeElm = e.control.getEl('body').firstChild; - $_ffgv0cjgjj6611ek.injectIframeContent(editor, iframeElm, sandbox); + $_5c26wsjgjj68z8oe.injectIframeContent(editor, iframeElm, sandbox); } }); }; - var $_9fwkn7jdjj6611eg = { open: open }; + var $_6nzl4jdjj68z8o4 = { open: open }; var register = function (editor) { editor.addCommand('mcePreview', function () { - $_9fwkn7jdjj6611eg.open(editor); + $_6nzl4jdjj68z8o4.open(editor); }); }; - var $_fdzdfrjcjj6611ef = { register: register }; + var $_a1kn72jcjj68z8o0 = { register: register }; var register$1 = function (editor) { editor.addButton('preview', { @@ -108,11 +108,11 @@ var preview = (function () { context: 'view' }); }; - var $_1n3p3vjijj6611eo = { register: register$1 }; + var $_9242zzjijj68z8oo = { register: register$1 }; global.add('preview', function (editor) { - $_fdzdfrjcjj6611ef.register(editor); - $_1n3p3vjijj6611eo.register(editor); + $_a1kn72jcjj68z8o0.register(editor); + $_9242zzjijj68z8oo.register(editor); }); function Plugin () { } diff --git a/js/tinymce/plugins/print/plugin.js b/js/tinymce/plugins/print/plugin.js index 815763ab340..be0907431bc 100644 --- a/js/tinymce/plugins/print/plugin.js +++ b/js/tinymce/plugins/print/plugin.js @@ -9,7 +9,7 @@ var print = (function () { editor.getWin().print(); }); }; - var $_g3hdr7jljj6611f2 = { register: register }; + var $_fftbxxjljj68z8py = { register: register }; var register$1 = function (editor) { editor.addButton('print', { @@ -22,11 +22,11 @@ var print = (function () { icon: 'print' }); }; - var $_av367ljmjj6611f3 = { register: register$1 }; + var $_1gd7pjjmjj68z8q2 = { register: register$1 }; global.add('print', function (editor) { - $_g3hdr7jljj6611f2.register(editor); - $_av367ljmjj6611f3.register(editor); + $_fftbxxjljj68z8py.register(editor); + $_1gd7pjjmjj68z8q2.register(editor); editor.addShortcut('Meta+P', '', 'mcePrint'); }); function Plugin () { diff --git a/js/tinymce/plugins/save/plugin.js b/js/tinymce/plugins/save/plugin.js index 96f4f803150..f7b515b6cd9 100644 --- a/js/tinymce/plugins/save/plugin.js +++ b/js/tinymce/plugins/save/plugin.js @@ -17,7 +17,7 @@ var save = (function () { var hasOnCancelCallback = function (editor) { return !!editor.getParam('save_oncancelcallback'); }; - var $_c2yd5sjtjj6611fj = { + var $_aw98hrjtjj68z8rd = { enableWhenDirty: enableWhenDirty, hasOnSaveCallback: hasOnSaveCallback, hasOnCancelCallback: hasOnCancelCallback @@ -32,11 +32,11 @@ var save = (function () { var save = function (editor) { var formObj; formObj = global$1.DOM.getParent(editor.id, 'form'); - if ($_c2yd5sjtjj6611fj.enableWhenDirty(editor) && !editor.isDirty()) { + if ($_aw98hrjtjj68z8rd.enableWhenDirty(editor) && !editor.isDirty()) { return; } editor.save(); - if ($_c2yd5sjtjj6611fj.hasOnSaveCallback(editor)) { + if ($_aw98hrjtjj68z8rd.hasOnSaveCallback(editor)) { editor.execCallback('save_onsavecallback', editor); editor.nodeChanged(); return; @@ -57,7 +57,7 @@ var save = (function () { }; var cancel = function (editor) { var h = global$2.trim(editor.startContent); - if ($_c2yd5sjtjj6611fj.hasOnCancelCallback(editor)) { + if ($_aw98hrjtjj68z8rd.hasOnCancelCallback(editor)) { editor.execCallback('save_oncancelcallback', editor); return; } @@ -65,26 +65,26 @@ var save = (function () { editor.undoManager.clear(); editor.nodeChanged(); }; - var $_9o1barjqjj6611ff = { + var $_1lc0idjqjj68z8r1 = { save: save, cancel: cancel }; var register = function (editor) { editor.addCommand('mceSave', function () { - $_9o1barjqjj6611ff.save(editor); + $_1lc0idjqjj68z8r1.save(editor); }); editor.addCommand('mceCancel', function () { - $_9o1barjqjj6611ff.cancel(editor); + $_1lc0idjqjj68z8r1.cancel(editor); }); }; - var $_4t85vcjpjj6611fc = { register: register }; + var $_ba9gjljpjj68z8qx = { register: register }; var stateToggle = function (editor) { return function (e) { var ctrl = e.control; editor.on('nodeChange dirty', function () { - ctrl.disabled($_c2yd5sjtjj6611fj.enableWhenDirty(editor) && !editor.isDirty()); + ctrl.disabled($_aw98hrjtjj68z8rd.enableWhenDirty(editor) && !editor.isDirty()); }); }; }; @@ -105,11 +105,11 @@ var save = (function () { }); editor.addShortcut('Meta+S', '', 'mceSave'); }; - var $_cl4q5ejujj6611fk = { register: register$1 }; + var $_feqhf5jujj68z8ri = { register: register$1 }; global.add('save', function (editor) { - $_cl4q5ejujj6611fk.register(editor); - $_4t85vcjpjj6611fc.register(editor); + $_feqhf5jujj68z8ri.register(editor); + $_ba9gjljpjj68z8qx.register(editor); }); function Plugin () { } diff --git a/js/tinymce/plugins/searchreplace/plugin.js b/js/tinymce/plugins/searchreplace/plugin.js index 129113488a5..ad2ebb2fd3f 100644 --- a/js/tinymce/plugins/searchreplace/plugin.js +++ b/js/tinymce/plugins/searchreplace/plugin.js @@ -216,7 +216,7 @@ var searchreplace = (function () { } return count; } - var $_3uuia4k1jj6611ga = { findAndReplaceDOMText: findAndReplaceDOMText }; + var $_9ey44yk1jj68z8u6 = { findAndReplaceDOMText: findAndReplaceDOMText }; var getElmIndex = function (elm) { var value = elm.getAttribute('data-mce-index'); @@ -231,7 +231,7 @@ var searchreplace = (function () { marker.className = 'mce-match-marker'; node = editor.getBody(); done(editor, currentIndexState, false); - return $_3uuia4k1jj6611ga.findAndReplaceDOMText(regex, node, marker, false, editor.schema); + return $_9ey44yk1jj68z8u6.findAndReplaceDOMText(regex, node, marker, false, editor.schema); }; var unwrap = function (node) { var parentNode = node.parentNode; @@ -381,7 +381,7 @@ var searchreplace = (function () { var hasPrev = function (editor, currentIndexState) { return findSpansByIndex(editor, currentIndexState.get() - 1).length > 0; }; - var $_7osdr2jzjj6611g5 = { + var $_c3rk6ajzjj68z8th = { done: done, find: find, next: next, @@ -393,19 +393,19 @@ var searchreplace = (function () { var get = function (editor, currentIndexState) { var done = function (keepEditorSelection) { - return $_7osdr2jzjj6611g5.done(editor, currentIndexState, keepEditorSelection); + return $_c3rk6ajzjj68z8th.done(editor, currentIndexState, keepEditorSelection); }; var find = function (text, matchCase, wholeWord) { - return $_7osdr2jzjj6611g5.find(editor, currentIndexState, text, matchCase, wholeWord); + return $_c3rk6ajzjj68z8th.find(editor, currentIndexState, text, matchCase, wholeWord); }; var next = function () { - return $_7osdr2jzjj6611g5.next(editor, currentIndexState); + return $_c3rk6ajzjj68z8th.next(editor, currentIndexState); }; var prev = function () { - return $_7osdr2jzjj6611g5.prev(editor, currentIndexState); + return $_c3rk6ajzjj68z8th.prev(editor, currentIndexState); }; var replace = function (text, forward, all) { - return $_7osdr2jzjj6611g5.replace(editor, currentIndexState, text, forward, all); + return $_c3rk6ajzjj68z8th.replace(editor, currentIndexState, text, forward, all); }; return { done: done, @@ -415,15 +415,15 @@ var searchreplace = (function () { replace: replace }; }; - var $_6zq8vhjyjj6611g2 = { get: get }; + var $_fi02xajyjj68z8t4 = { get: get }; var open = function (editor, currentIndexState) { var last = {}, selectedText; editor.undoManager.add(); selectedText = global$1.trim(editor.selection.getContent({ format: 'text' })); function updateButtonStates() { - win.statusbar.find('#next').disabled($_7osdr2jzjj6611g5.hasNext(editor, currentIndexState) === false); - win.statusbar.find('#prev').disabled($_7osdr2jzjj6611g5.hasPrev(editor, currentIndexState) === false); + win.statusbar.find('#next').disabled($_c3rk6ajzjj68z8th.hasNext(editor, currentIndexState) === false); + win.statusbar.find('#prev').disabled($_c3rk6ajzjj68z8th.hasPrev(editor, currentIndexState) === false); } function notFoundAlert() { editor.windowManager.alert('Could not find the specified string.', function () { @@ -436,7 +436,7 @@ var searchreplace = (function () { align: 'center', onClose: function () { editor.focus(); - $_7osdr2jzjj6611g5.done(editor, currentIndexState); + $_c3rk6ajzjj68z8th.done(editor, currentIndexState); editor.undoManager.add(); }, onSubmit: function (e) { @@ -446,20 +446,20 @@ var searchreplace = (function () { wholeWord = win.find('#words').checked(); text = win.find('#find').value(); if (!text.length) { - $_7osdr2jzjj6611g5.done(editor, currentIndexState, false); + $_c3rk6ajzjj68z8th.done(editor, currentIndexState, false); win.statusbar.items().slice(1).disabled(true); return; } if (last.text === text && last.caseState === caseState && last.wholeWord === wholeWord) { - if (!$_7osdr2jzjj6611g5.hasNext(editor, currentIndexState)) { + if (!$_c3rk6ajzjj68z8th.hasNext(editor, currentIndexState)) { notFoundAlert(); return; } - $_7osdr2jzjj6611g5.next(editor, currentIndexState); + $_c3rk6ajzjj68z8th.next(editor, currentIndexState); updateButtonStates(); return; } - count = $_7osdr2jzjj6611g5.find(editor, currentIndexState, text, caseState, wholeWord); + count = $_c3rk6ajzjj68z8th.find(editor, currentIndexState, text, caseState, wholeWord); if (!count) { notFoundAlert(); } @@ -483,7 +483,7 @@ var searchreplace = (function () { text: 'Replace', disabled: true, onclick: function () { - if (!$_7osdr2jzjj6611g5.replace(editor, currentIndexState, win.find('#replace').value())) { + if (!$_c3rk6ajzjj68z8th.replace(editor, currentIndexState, win.find('#replace').value())) { win.statusbar.items().slice(1).disabled(true); currentIndexState.set(-1); last = {}; @@ -494,7 +494,7 @@ var searchreplace = (function () { text: 'Replace all', disabled: true, onclick: function () { - $_7osdr2jzjj6611g5.replace(editor, currentIndexState, win.find('#replace').value(), true, true); + $_c3rk6ajzjj68z8th.replace(editor, currentIndexState, win.find('#replace').value(), true, true); win.statusbar.items().slice(1).disabled(true); last = {}; } @@ -508,7 +508,7 @@ var searchreplace = (function () { name: 'prev', disabled: true, onclick: function () { - $_7osdr2jzjj6611g5.prev(editor, currentIndexState); + $_c3rk6ajzjj68z8th.prev(editor, currentIndexState); updateButtonStates(); } }, @@ -517,7 +517,7 @@ var searchreplace = (function () { name: 'next', disabled: true, onclick: function () { - $_7osdr2jzjj6611g5.next(editor, currentIndexState); + $_c3rk6ajzjj68z8th.next(editor, currentIndexState); updateButtonStates(); } } @@ -558,18 +558,18 @@ var searchreplace = (function () { } }); }; - var $_byjvfvk3jj6611gi = { open: open }; + var $_8ob6lik3jj68z8uy = { open: open }; var register = function (editor, currentIndexState) { editor.addCommand('SearchReplace', function () { - $_byjvfvk3jj6611gi.open(editor, currentIndexState); + $_8ob6lik3jj68z8uy.open(editor, currentIndexState); }); }; - var $_c9inrzk2jj6611gg = { register: register }; + var $_3igga0k2jj68z8uo = { register: register }; var showDialog = function (editor, currentIndexState) { return function () { - $_byjvfvk3jj6611gi.open(editor, currentIndexState); + $_8ob6lik3jj68z8uy.open(editor, currentIndexState); }; }; var register$1 = function (editor, currentIndexState) { @@ -586,13 +586,13 @@ var searchreplace = (function () { }); editor.shortcuts.add('Meta+F', '', showDialog(editor, currentIndexState)); }; - var $_cdizkk4jj6611gm = { register: register$1 }; + var $_6km92bk4jj68z8va = { register: register$1 }; global.add('searchreplace', function (editor) { var currentIndexState = Cell(-1); - $_c9inrzk2jj6611gg.register(editor, currentIndexState); - $_cdizkk4jj6611gm.register(editor, currentIndexState); - return $_6zq8vhjyjj6611g2.get(editor, currentIndexState); + $_3igga0k2jj68z8uo.register(editor, currentIndexState); + $_6km92bk4jj68z8va.register(editor, currentIndexState); + return $_fi02xajyjj68z8t4.get(editor, currentIndexState); }); function Plugin () { } diff --git a/js/tinymce/plugins/spellchecker/plugin.js b/js/tinymce/plugins/spellchecker/plugin.js index eeb28cea1bc..6ce65b489e0 100644 --- a/js/tinymce/plugins/spellchecker/plugin.js +++ b/js/tinymce/plugins/spellchecker/plugin.js @@ -32,7 +32,7 @@ var spellchecker = (function () { return false; } }; - var $_5wwz36k8jj6611hn = { hasProPlugin: hasProPlugin }; + var $_exmc87k8jj68z915 = { hasProPlugin: hasProPlugin }; var getLanguages = function (editor) { var defaultLanguages = 'English=en,Danish=da,Dutch=nl,Finnish=fi,French=fr_FR,German=de,Italian=it,Polish=pl,Portuguese=pt_BR,Spanish=es,Swedish=sv'; @@ -52,7 +52,7 @@ var spellchecker = (function () { var defaultPattern = new RegExp('[^' + '\\s!"#$%&()*+,-./:;<=>?@[\\]^_{|}`' + '\xA7\xA9\xAB\xAE\xB1\xB6\xB7\xB8\xBB' + '\xBC\xBD\xBE\xBF\xD7\xF7\xA4\u201D\u201C\u201E\xA0\u2002\u2003\u2009' + ']+', 'g'); return editor.getParam('spellchecker_wordchar_pattern', defaultPattern); }; - var $_1fmp3zkbjj6611i5 = { + var $_e9t3smkbjj68z93q = { getLanguages: getLanguages, getLanguage: getLanguage, getRpcUrl: getRpcUrl, @@ -72,7 +72,7 @@ var spellchecker = (function () { var fireSpellcheckEnd = function (editor) { return editor.fire('SpellcheckEnd'); }; - var $_brjeq9kgjj6611ie = { + var $_ani71jkgjj68z94i = { fireSpellcheckStart: fireSpellcheckStart, fireSpellcheckEnd: fireSpellcheckEnd }; @@ -397,7 +397,7 @@ var spellchecker = (function () { postData += key + '=' + encodeURIComponent(value); }); global$3.send({ - url: new global$2(pluginUrl).toAbsolute($_1fmp3zkbjj6611i5.getRpcUrl(editor)), + url: new global$2(pluginUrl).toAbsolute($_e9t3smkbjj68z93q.getRpcUrl(editor)), type: 'post', content_type: 'application/x-www-form-urlencoded', data: postData, @@ -413,14 +413,14 @@ var spellchecker = (function () { } }, error: function () { - var message = editor.translate('The spelling service was not found: (') + $_1fmp3zkbjj6611i5.getRpcUrl(editor) + editor.translate(')'); + var message = editor.translate('The spelling service was not found: (') + $_e9t3smkbjj68z93q.getRpcUrl(editor) + editor.translate(')'); errorCallback(message); } }); }; }; var sendRpcCall = function (editor, pluginUrl, currentLanguageState, name, data, successCallback, errorCallback) { - var userSpellcheckCallback = $_1fmp3zkbjj6611i5.getSpellcheckerCallback(editor); + var userSpellcheckCallback = $_e9t3smkbjj68z93q.getSpellcheckerCallback(editor); var spellCheckCallback = userSpellcheckCallback ? userSpellcheckCallback : defaultSpellcheckCallback(editor, pluginUrl, currentLanguageState); spellCheckCallback.call(editor.plugins.spellchecker, name, data, successCallback, errorCallback); }; @@ -480,7 +480,7 @@ var spellchecker = (function () { textMatcherState.set(null); if (startedState.get()) { startedState.set(false); - $_brjeq9kgjj6611ie.fireSpellcheckEnd(editor); + $_ani71jkgjj68z94i.fireSpellcheckEnd(editor); return true; } }; @@ -530,7 +530,7 @@ var spellchecker = (function () { suggestions: suggestions, hasDictionarySupport: hasDictionarySupport }); - getTextMatcher(editor, textMatcherState).find($_1fmp3zkbjj6611i5.getSpellcheckerWordcharPattern(editor)).filter(function (match) { + getTextMatcher(editor, textMatcherState).find($_e9t3smkbjj68z93q.getSpellcheckerWordcharPattern(editor)).filter(function (match) { return !!suggestions[match.text]; }).wrap(function (match) { return editor.dom.create('span', { @@ -540,9 +540,9 @@ var spellchecker = (function () { }); }); startedState.set(true); - $_brjeq9kgjj6611ie.fireSpellcheckStart(editor); + $_ani71jkgjj68z94i.fireSpellcheckStart(editor); }; - var $_alc6cgkcjj6611i8 = { + var $_ajrdmvkcjj68z93z = { spellcheck: spellcheck, checkIfFinished: checkIfFinished, addToDictionary: addToDictionary, @@ -557,10 +557,10 @@ var spellchecker = (function () { return currentLanguageState.get(); }; var getWordCharPattern = function () { - return $_1fmp3zkbjj6611i5.getSpellcheckerWordcharPattern(editor); + return $_e9t3smkbjj68z93q.getSpellcheckerWordcharPattern(editor); }; var markErrors = function (data) { - $_alc6cgkcjj6611i8.markErrors(editor, startedState, textMatcherState, lastSuggestionsState, data); + $_ajrdmvkcjj68z93z.markErrors(editor, startedState, textMatcherState, lastSuggestionsState, data); }; var getTextMatcher = function () { return textMatcherState.get(); @@ -572,14 +572,14 @@ var spellchecker = (function () { getLanguage: getLanguage }; }; - var $_eyutgmkajj6611i3 = { get: get }; + var $_5rbrgvkajj68z93m = { get: get }; var register = function (editor, pluginUrl, startedState, textMatcherState, lastSuggestionsState, currentLanguageState) { editor.addCommand('mceSpellCheck', function () { - $_alc6cgkcjj6611i8.spellcheck(editor, pluginUrl, startedState, textMatcherState, lastSuggestionsState, currentLanguageState); + $_ajrdmvkcjj68z93z.spellcheck(editor, pluginUrl, startedState, textMatcherState, lastSuggestionsState, currentLanguageState); }); }; - var $_1zqx4zkijj6611io = { register: register }; + var $_6d0iuukijj68z95k = { register: register }; var buildMenuItems = function (listName, languageValues) { var items = []; @@ -601,7 +601,7 @@ var spellchecker = (function () { }; }; var getItems = function (editor) { - return global$1.map($_1fmp3zkbjj6611i5.getLanguages(editor).split(','), function (langPair) { + return global$1.map($_e9t3smkbjj68z93q.getLanguages(editor).split(','), function (langPair) { langPair = langPair.split('='); return { name: langPair[0], @@ -612,7 +612,7 @@ var spellchecker = (function () { var register$1 = function (editor, pluginUrl, startedState, textMatcherState, currentLanguageState, lastSuggestionsState) { var languageMenuItems = buildMenuItems('Language', getItems(editor)); var startSpellchecking = function () { - $_alc6cgkcjj6611i8.spellcheck(editor, pluginUrl, startedState, textMatcherState, lastSuggestionsState, currentLanguageState); + $_ajrdmvkcjj68z93z.spellcheck(editor, pluginUrl, startedState, textMatcherState, lastSuggestionsState, currentLanguageState); }; var buttonArgs = { tooltip: 'Spellcheck', @@ -647,7 +647,7 @@ var spellchecker = (function () { } }); }; - var $_cxze83kjjj6611iv = { register: register$1 }; + var $_feznwlkjjj68z95s = { register: register$1 }; var global$4 = tinymce.util.Tools.resolve('tinymce.dom.DOMUtils'); @@ -662,7 +662,7 @@ var spellchecker = (function () { onclick: function () { editor.insertContent(editor.dom.encode(suggestion)); editor.dom.remove(spans); - $_alc6cgkcjj6611i8.checkIfFinished(editor, startedState, textMatcherState); + $_ajrdmvkcjj68z93z.checkIfFinished(editor, startedState, textMatcherState); } }); }); @@ -672,7 +672,7 @@ var spellchecker = (function () { items.push({ text: 'Add to Dictionary', onclick: function () { - $_alc6cgkcjj6611i8.addToDictionary(editor, pluginUrl, startedState, textMatcherState, currentLanguageState, word, spans); + $_ajrdmvkcjj68z93z.addToDictionary(editor, pluginUrl, startedState, textMatcherState, currentLanguageState, word, spans); } }); } @@ -680,13 +680,13 @@ var spellchecker = (function () { { text: 'Ignore', onclick: function () { - $_alc6cgkcjj6611i8.ignoreWord(editor, startedState, textMatcherState, word, spans); + $_ajrdmvkcjj68z93z.ignoreWord(editor, startedState, textMatcherState, word, spans); } }, { text: 'Ignore all', onclick: function () { - $_alc6cgkcjj6611i8.ignoreWord(editor, startedState, textMatcherState, word, spans, true); + $_ajrdmvkcjj68z93z.ignoreWord(editor, startedState, textMatcherState, word, spans, true); } } ]); @@ -723,7 +723,7 @@ var spellchecker = (function () { var target = e.target; if (target.className === 'mce-spellchecker-word') { e.preventDefault(); - var spans = $_alc6cgkcjj6611i8.findSpansByIndex(editor, $_alc6cgkcjj6611i8.getElmIndex(target)); + var spans = $_ajrdmvkcjj68z93z.findSpansByIndex(editor, $_ajrdmvkcjj68z93z.getElmIndex(target)); if (spans.length > 0) { var rng = editor.dom.createRng(); rng.setStartBefore(spans[0]); @@ -734,18 +734,18 @@ var spellchecker = (function () { } }); }; - var $_da460dkkjj6611iy = { setup: setup }; + var $_3jdypdkkjj68z96e = { setup: setup }; global.add('spellchecker', function (editor, pluginUrl) { - if ($_5wwz36k8jj6611hn.hasProPlugin(editor) === false) { + if ($_exmc87k8jj68z915.hasProPlugin(editor) === false) { var startedState = Cell(false); - var currentLanguageState = Cell($_1fmp3zkbjj6611i5.getLanguage(editor)); + var currentLanguageState = Cell($_e9t3smkbjj68z93q.getLanguage(editor)); var textMatcherState = Cell(null); var lastSuggestionsState = Cell(null); - $_cxze83kjjj6611iv.register(editor, pluginUrl, startedState, textMatcherState, currentLanguageState, lastSuggestionsState); - $_da460dkkjj6611iy.setup(editor, pluginUrl, lastSuggestionsState, startedState, textMatcherState, currentLanguageState); - $_1zqx4zkijj6611io.register(editor, pluginUrl, startedState, textMatcherState, lastSuggestionsState, currentLanguageState); - return $_eyutgmkajj6611i3.get(editor, startedState, lastSuggestionsState, textMatcherState, currentLanguageState, pluginUrl); + $_feznwlkjjj68z95s.register(editor, pluginUrl, startedState, textMatcherState, currentLanguageState, lastSuggestionsState); + $_3jdypdkkjj68z96e.setup(editor, pluginUrl, lastSuggestionsState, startedState, textMatcherState, currentLanguageState); + $_6d0iuukijj68z95k.register(editor, pluginUrl, startedState, textMatcherState, lastSuggestionsState, currentLanguageState); + return $_5rbrgvkajj68z93m.get(editor, startedState, lastSuggestionsState, textMatcherState, currentLanguageState, pluginUrl); } }); function Plugin () { diff --git a/js/tinymce/plugins/tabfocus/plugin.js b/js/tinymce/plugins/tabfocus/plugin.js index c0759ffa15d..16ed8e9e8ed 100644 --- a/js/tinymce/plugins/tabfocus/plugin.js +++ b/js/tinymce/plugins/tabfocus/plugin.js @@ -22,7 +22,7 @@ var tabfocus = (function () { var getTabFocus = function (editor) { return editor.getParam('tab_focus', getTabFocusElements(editor)); }; - var $_5ak5lxkwjj6611kn = { getTabFocus: getTabFocus }; + var $_ah0h0tkwjj68z9cd = { getTabFocus: getTabFocus }; var DOM = global$1.DOM; var tabCancel = function (e) { @@ -65,7 +65,7 @@ var tabfocus = (function () { } return null; } - v = global$5.explode($_5ak5lxkwjj6611kn.getTabFocus(editor)); + v = global$5.explode($_ah0h0tkwjj68z9cd.getTabFocus(editor)); if (v.length === 1) { v[1] = v[0]; v[0] = ':prev'; @@ -110,10 +110,10 @@ var tabfocus = (function () { } }); }; - var $_68dovvkpjj6611kf = { setup: setup }; + var $_9iekyqkpjj68z9bs = { setup: setup }; global.add('tabfocus', function (editor) { - $_68dovvkpjj6611kf.setup(editor); + $_9iekyqkpjj68z9bs.setup(editor); }); function Plugin () { } diff --git a/js/tinymce/plugins/table/plugin.js b/js/tinymce/plugins/table/plugin.js index bd23b5a64d6..a4583523347 100644 --- a/js/tinymce/plugins/table/plugin.js +++ b/js/tinymce/plugins/table/plugin.js @@ -487,7 +487,7 @@ var table = (function () { var rowcells = Immutable('cells', 'section'); var rowdetails = Immutable('details', 'section'); var bounds = Immutable('startRow', 'startCol', 'finishRow', 'finishCol'); - var $_51e7qdlcjj6611oy = { + var $_ehjah3lcjj68z9o7 = { dimensions: dimensions, grid: grid, address: address, @@ -540,7 +540,7 @@ var table = (function () { fromPoint: fromPoint }; - var $_192mclijj6611r6 = { + var $_e9f8r8lijj68z9sv = { ATTRIBUTE: Node.ATTRIBUTE_NODE, CDATA_SECTION: Node.CDATA_SECTION_NODE, COMMENT: Node.COMMENT_NODE, @@ -555,8 +555,8 @@ var table = (function () { NOTATION: Node.NOTATION_NODE }; - var ELEMENT = $_192mclijj6611r6.ELEMENT; - var DOCUMENT = $_192mclijj6611r6.DOCUMENT; + var ELEMENT = $_e9f8r8lijj68z9sv.ELEMENT; + var DOCUMENT = $_e9f8r8lijj68z9sv.DOCUMENT; var is = function (element, selector) { var elem = element.dom(); if (elem.nodeType !== ELEMENT) @@ -583,7 +583,7 @@ var table = (function () { var base = scope === undefined ? document : scope.dom(); return bypassSelector(base) ? Option.none() : Option.from(base.querySelector(selector)).map(Element$$1.fromDom); }; - var $_ghms6ilfjj6611q9 = { + var $_8dbecalfjj68z9r8 = { all: all, is: is, one: one @@ -601,7 +601,7 @@ var table = (function () { } while (cur.isSome()); return r; }; - var $_amcyx7lkjj6611rt = { toArray: toArray }; + var $_dw0aylkjj68z9u2 = { toArray: toArray }; var Global = typeof window !== 'undefined' ? window : Function('return this;')(); @@ -625,10 +625,10 @@ var table = (function () { throw name + ' not available on this browser'; return actual; }; - var $_f8q80alnjj6611sb = { getOrDie: getOrDie }; + var $_smjeqlnjj68z9v5 = { getOrDie: getOrDie }; var node = function () { - var f = $_f8q80alnjj6611sb.getOrDie('Node'); + var f = $_smjeqlnjj68z9v5.getOrDie('Node'); return f; }; var compareDocumentPosition = function (a, b, match) { @@ -640,7 +640,7 @@ var table = (function () { var documentPositionContainedBy = function (a, b) { return compareDocumentPosition(a, b, node().DOCUMENT_POSITION_CONTAINED_BY); }; - var $_daae0klmjj6611sa = { + var $_3txejolmjj68z9v2 = { documentPositionPreceding: documentPositionPreceding, documentPositionContainedBy: documentPositionContainedBy }; @@ -696,7 +696,7 @@ var table = (function () { minor: minor }; }; - var $_6mj4eylujj6611st = { + var $_37zkyglujj68z9wg = { nu: nu, detect: detect, unknown: unknown @@ -716,7 +716,7 @@ var table = (function () { var unknown$1 = function () { return nu$1({ current: undefined, - version: $_6mj4eylujj6611st.unknown() + version: $_37zkyglujj68z9wg.unknown() }); }; var nu$1 = function (info) { @@ -733,7 +733,7 @@ var table = (function () { isSafari: isBrowser(safari, current) }; }; - var $_48x79qltjj6611so = { + var $_cra3d6ltjj68z9w3 = { unknown: unknown$1, nu: nu$1, edge: constant(edge), @@ -759,7 +759,7 @@ var table = (function () { var unknown$2 = function () { return nu$2({ current: undefined, - version: $_6mj4eylujj6611st.unknown() + version: $_37zkyglujj68z9wg.unknown() }); }; var nu$2 = function (info) { @@ -777,7 +777,7 @@ var table = (function () { isFreeBSD: isOS(freebsd, current) }; }; - var $_2vivjwlvjj6611sw = { + var $_fpsgxqlvjj68z9wm = { unknown: unknown$2, nu: nu$2, windows: constant(windows), @@ -818,7 +818,7 @@ var table = (function () { }; var detectBrowser = function (browsers, userAgent) { return detect$1(browsers, userAgent).map(function (browser) { - var version = $_6mj4eylujj6611st.detect(browser.versionRegexes, userAgent); + var version = $_37zkyglujj68z9wg.detect(browser.versionRegexes, userAgent); return { current: browser.name, version: version @@ -827,14 +827,14 @@ var table = (function () { }; var detectOs = function (oses, userAgent) { return detect$1(oses, userAgent).map(function (os) { - var version = $_6mj4eylujj6611st.detect(os.versionRegexes, userAgent); + var version = $_37zkyglujj68z9wg.detect(os.versionRegexes, userAgent); return { current: os.name, version: version }; }); }; - var $_e526jllxjj6611t5 = { + var $_2l20s0lxjj68z9x3 = { detectBrowser: detectBrowser, detectOs: detectOs }; @@ -966,16 +966,16 @@ var table = (function () { versionRegexes: [] } ]; - var $_ganwb0lyjj6611ta = { + var $_3dgowxlyjj68z9xd = { browsers: constant(browsers), oses: constant(oses) }; var detect$2 = function (userAgent) { - var browsers = $_ganwb0lyjj6611ta.browsers(); - var oses = $_ganwb0lyjj6611ta.oses(); - var browser = $_e526jllxjj6611t5.detectBrowser(browsers, userAgent).fold($_48x79qltjj6611so.unknown, $_48x79qltjj6611so.nu); - var os = $_e526jllxjj6611t5.detectOs(oses, userAgent).fold($_2vivjwlvjj6611sw.unknown, $_2vivjwlvjj6611sw.nu); + var browsers = $_3dgowxlyjj68z9xd.browsers(); + var oses = $_3dgowxlyjj68z9xd.oses(); + var browser = $_2l20s0lxjj68z9x3.detectBrowser(browsers, userAgent).fold($_cra3d6ltjj68z9w3.unknown, $_cra3d6ltjj68z9w3.nu); + var os = $_2l20s0lxjj68z9x3.detectOs(oses, userAgent).fold($_fpsgxqlvjj68z9wm.unknown, $_fpsgxqlvjj68z9wm.nu); var deviceType = DeviceType(os, browser, userAgent); return { browser: browser, @@ -983,13 +983,13 @@ var table = (function () { deviceType: deviceType }; }; - var $_6zkjzxlsjj6611sn = { detect: detect$2 }; + var $_4toct1lsjj68z9vz = { detect: detect$2 }; var detect$3 = cached(function () { var userAgent = navigator.userAgent; - return $_6zkjzxlsjj6611sn.detect(userAgent); + return $_4toct1lsjj68z9vz.detect(userAgent); }); - var $_2fambnlqjj6611sh = { detect: detect$3 }; + var $_8lnul5lqjj68z9vm = { detect: detect$3 }; var eq = function (e1, e2) { return e1.dom() === e2.dom(); @@ -1005,16 +1005,16 @@ var table = (function () { return d1 === d2 ? false : d1.contains(d2); }; var ieContains = function (e1, e2) { - return $_daae0klmjj6611sa.documentPositionContainedBy(e1.dom(), e2.dom()); + return $_3txejolmjj68z9v2.documentPositionContainedBy(e1.dom(), e2.dom()); }; - var browser = $_2fambnlqjj6611sh.detect().browser; + var browser = $_8lnul5lqjj68z9vm.detect().browser; var contains$2 = browser.isIE() ? ieContains : regularContains; - var $_af5rtflljj6611ru = { + var $_71r8jdlljj68z9u5 = { eq: eq, isEqualNode: isEqualNode, member: member, contains: contains$2, - is: $_ghms6ilfjj6611q9.is + is: $_8dbecalfjj68z9r8.is }; var owner = function (element) { @@ -1036,7 +1036,7 @@ var table = (function () { return parent(element).bind(function (p) { var kin = children(p); return findIndex(kin, function (elem) { - return $_af5rtflljj6611ru.eq(element, elem); + return $_71r8jdlljj68z9u5.eq(element, elem); }); }); }; @@ -1058,7 +1058,7 @@ var table = (function () { var siblings = function (element) { var filterSelf = function (elements) { return filter(elements, function (x) { - return !$_af5rtflljj6611ru.eq(element, x); + return !$_71r8jdlljj68z9u5.eq(element, x); }); }; return parent(element).map(children).map(filterSelf).getOr([]); @@ -1076,10 +1076,10 @@ var table = (function () { return Option.from(dom.nextSibling).map(Element$$1.fromDom); }; var prevSiblings = function (element) { - return reverse($_amcyx7lkjj6611rt.toArray(element, prevSibling)); + return reverse($_dw0aylkjj68z9u2.toArray(element, prevSibling)); }; var nextSiblings = function (element) { - return $_amcyx7lkjj6611rt.toArray(element, nextSibling); + return $_dw0aylkjj68z9u2.toArray(element, nextSibling); }; var children = function (element) { var dom = element.dom(); @@ -1106,7 +1106,7 @@ var table = (function () { var cs = children(element); return cs.length > 0 && offset < cs.length ? spot(cs[offset], 0) : spot(element, offset); }; - var $_9ghx71ljjj6611ra = { + var $_agswhiljjj68z9t1 = { owner: owner, defaultView: defaultView, documentElement: documentElement, @@ -1132,11 +1132,11 @@ var table = (function () { return filterFirstLayer(scope, selector, constant(true)); }; var filterFirstLayer = function (scope, selector, predicate) { - return bind($_9ghx71ljjj6611ra.children(scope), function (x) { - return $_ghms6ilfjj6611q9.is(x, selector) ? predicate(x) ? [x] : [] : filterFirstLayer(x, selector, predicate); + return bind($_agswhiljjj68z9t1.children(scope), function (x) { + return $_8dbecalfjj68z9r8.is(x, selector) ? predicate(x) ? [x] : [] : filterFirstLayer(x, selector, predicate); }); }; - var $_61nwdnlejj6611pw = { + var $_epmir5lejj68z9qa = { firstLayer: firstLayer, filterFirstLayer: filterFirstLayer }; @@ -1157,12 +1157,12 @@ var table = (function () { }; }; var isComment = function (element) { - return type(element) === $_192mclijj6611r6.COMMENT || name(element) === '#comment'; + return type(element) === $_e9f8r8lijj68z9sv.COMMENT || name(element) === '#comment'; }; - var isElement = isType$1($_192mclijj6611r6.ELEMENT); - var isText = isType$1($_192mclijj6611r6.TEXT); - var isDocument = isType$1($_192mclijj6611r6.DOCUMENT); - var $_50pc0qm3jj6611u1 = { + var isElement = isType$1($_e9f8r8lijj68z9sv.ELEMENT); + var isText = isType$1($_e9f8r8lijj68z9sv.TEXT); + var isDocument = isType$1($_e9f8r8lijj68z9sv.DOCUMENT); + var $_a9t3wpm3jj68z9ys = { name: name, type: type, value: value, @@ -1215,13 +1215,13 @@ var table = (function () { set(destination, attr, get(source, attr)); }; var transfer = function (source, destination, attrs) { - if (!$_50pc0qm3jj6611u1.isElement(source) || !$_50pc0qm3jj6611u1.isElement(destination)) + if (!$_a9t3wpm3jj68z9ys.isElement(source) || !$_a9t3wpm3jj68z9ys.isElement(destination)) return; each(attrs, function (attr) { transferOne(source, destination, attr); }); }; - var $_1i6un8m2jj6611tq = { + var $_f2f6ivm2jj68z9y8 = { clone: clone, set: set, setAll: setAll, @@ -1233,7 +1233,7 @@ var table = (function () { }; var inBody = function (element) { - var dom = $_50pc0qm3jj6611u1.isText(element) ? element.dom().parentNode : element.dom(); + var dom = $_a9t3wpm3jj68z9ys.isText(element) ? element.dom().parentNode : element.dom(); return dom !== undefined && dom !== null && dom.ownerDocument.body.contains(dom); }; var body = cached(function () { @@ -1245,27 +1245,27 @@ var table = (function () { throw 'Body is not available yet'; return Element$$1.fromDom(body); }; - var $_ew2s0tm6jj6611ua = { + var $_43d7w1m6jj68z9ze = { body: body, getBody: getBody, inBody: inBody }; var all$1 = function (predicate) { - return descendants($_ew2s0tm6jj6611ua.body(), predicate); + return descendants($_43d7w1m6jj68z9ze.body(), predicate); }; var ancestors = function (scope, predicate, isRoot) { - return filter($_9ghx71ljjj6611ra.parents(scope, isRoot), predicate); + return filter($_agswhiljjj68z9t1.parents(scope, isRoot), predicate); }; var siblings$1 = function (scope, predicate) { - return filter($_9ghx71ljjj6611ra.siblings(scope), predicate); + return filter($_agswhiljjj68z9t1.siblings(scope), predicate); }; var children$1 = function (scope, predicate) { - return filter($_9ghx71ljjj6611ra.children(scope), predicate); + return filter($_agswhiljjj68z9t1.children(scope), predicate); }; var descendants = function (scope, predicate) { var result = []; - each($_9ghx71ljjj6611ra.children(scope), function (x) { + each($_agswhiljjj68z9t1.children(scope), function (x) { if (predicate(x)) { result = result.concat([x]); } @@ -1273,7 +1273,7 @@ var table = (function () { }); return result; }; - var $_4su23bm5jj6611u5 = { + var $_7u5e8nm5jj68z9z3 = { all: all$1, ancestors: ancestors, siblings: siblings$1, @@ -1282,27 +1282,27 @@ var table = (function () { }; var all$2 = function (selector) { - return $_ghms6ilfjj6611q9.all(selector); + return $_8dbecalfjj68z9r8.all(selector); }; var ancestors$1 = function (scope, selector, isRoot) { - return $_4su23bm5jj6611u5.ancestors(scope, function (e) { - return $_ghms6ilfjj6611q9.is(e, selector); + return $_7u5e8nm5jj68z9z3.ancestors(scope, function (e) { + return $_8dbecalfjj68z9r8.is(e, selector); }, isRoot); }; var siblings$2 = function (scope, selector) { - return $_4su23bm5jj6611u5.siblings(scope, function (e) { - return $_ghms6ilfjj6611q9.is(e, selector); + return $_7u5e8nm5jj68z9z3.siblings(scope, function (e) { + return $_8dbecalfjj68z9r8.is(e, selector); }); }; var children$2 = function (scope, selector) { - return $_4su23bm5jj6611u5.children(scope, function (e) { - return $_ghms6ilfjj6611q9.is(e, selector); + return $_7u5e8nm5jj68z9z3.children(scope, function (e) { + return $_8dbecalfjj68z9r8.is(e, selector); }); }; var descendants$1 = function (scope, selector) { - return $_ghms6ilfjj6611q9.all(selector, scope); + return $_8dbecalfjj68z9r8.all(selector, scope); }; - var $_fhzhu6m4jj6611u4 = { + var $_4ve49em4jj68z9yy = { all: all$2, ancestors: ancestors$1, siblings: siblings$2, @@ -1315,7 +1315,7 @@ var table = (function () { } var first$1 = function (predicate) { - return descendant($_ew2s0tm6jj6611ua.body(), predicate); + return descendant($_43d7w1m6jj68z9ze.body(), predicate); }; var ancestor = function (scope, predicate, isRoot) { var element = scope.dom(); @@ -1341,7 +1341,7 @@ var table = (function () { if (!element.parentNode) return Option.none(); return child$1(Element$$1.fromDom(element.parentNode), function (x) { - return !$_af5rtflljj6611ru.eq(scope, x) && predicate(x); + return !$_71r8jdlljj68z9u5.eq(scope, x) && predicate(x); }); }; var child$1 = function (scope, predicate) { @@ -1361,7 +1361,7 @@ var table = (function () { }; return descend(scope.dom()); }; - var $_azkyflm8jj6611ui = { + var $_3315com8jj68z9zu = { first: first$1, ancestor: ancestor, closest: closest, @@ -1371,30 +1371,30 @@ var table = (function () { }; var first$2 = function (selector) { - return $_ghms6ilfjj6611q9.one(selector); + return $_8dbecalfjj68z9r8.one(selector); }; var ancestor$1 = function (scope, selector, isRoot) { - return $_azkyflm8jj6611ui.ancestor(scope, function (e) { - return $_ghms6ilfjj6611q9.is(e, selector); + return $_3315com8jj68z9zu.ancestor(scope, function (e) { + return $_8dbecalfjj68z9r8.is(e, selector); }, isRoot); }; var sibling$1 = function (scope, selector) { - return $_azkyflm8jj6611ui.sibling(scope, function (e) { - return $_ghms6ilfjj6611q9.is(e, selector); + return $_3315com8jj68z9zu.sibling(scope, function (e) { + return $_8dbecalfjj68z9r8.is(e, selector); }); }; var child$2 = function (scope, selector) { - return $_azkyflm8jj6611ui.child(scope, function (e) { - return $_ghms6ilfjj6611q9.is(e, selector); + return $_3315com8jj68z9zu.child(scope, function (e) { + return $_8dbecalfjj68z9r8.is(e, selector); }); }; var descendant$1 = function (scope, selector) { - return $_ghms6ilfjj6611q9.one(selector, scope); + return $_8dbecalfjj68z9r8.one(selector, scope); }; var closest$1 = function (scope, selector, isRoot) { - return ClosestOrAncestor($_ghms6ilfjj6611q9.is, ancestor$1, scope, selector, isRoot); + return ClosestOrAncestor($_8dbecalfjj68z9r8.is, ancestor$1, scope, selector, isRoot); }; - var $_eby7xcm7jj6611ug = { + var $_hz10wm7jj68z9zq = { first: first$2, ancestor: ancestor$1, sibling: sibling$1, @@ -1407,12 +1407,12 @@ var table = (function () { var isRoot = _isRoot !== undefined ? _isRoot : constant(false); if (isRoot(element)) return Option.none(); - if (contains(tags, $_50pc0qm3jj6611u1.name(element))) + if (contains(tags, $_a9t3wpm3jj68z9ys.name(element))) return Option.some(element); var isRootOrUpperTable = function (element) { - return $_ghms6ilfjj6611q9.is(element, 'table') || isRoot(element); + return $_8dbecalfjj68z9r8.is(element, 'table') || isRoot(element); }; - return $_eby7xcm7jj6611ug.ancestor(element, tags.join(','), isRootOrUpperTable); + return $_hz10wm7jj68z9zq.ancestor(element, tags.join(','), isRootOrUpperTable); }; var cell = function (element, isRoot) { return lookup([ @@ -1421,7 +1421,7 @@ var table = (function () { ], element, isRoot); }; var cells = function (ancestor) { - return $_61nwdnlejj6611pw.firstLayer(ancestor, 'th,td'); + return $_epmir5lejj68z9qa.firstLayer(ancestor, 'th,td'); }; var notCell = function (element, isRoot) { return lookup([ @@ -1433,33 +1433,33 @@ var table = (function () { ], element, isRoot); }; var neighbours = function (selector, element) { - return $_9ghx71ljjj6611ra.parent(element).map(function (parent) { - return $_fhzhu6m4jj6611u4.children(parent, selector); + return $_agswhiljjj68z9t1.parent(element).map(function (parent) { + return $_4ve49em4jj68z9yy.children(parent, selector); }); }; var neighbourCells = curry(neighbours, 'th,td'); var neighbourRows = curry(neighbours, 'tr'); var firstCell = function (ancestor) { - return $_eby7xcm7jj6611ug.descendant(ancestor, 'th,td'); + return $_hz10wm7jj68z9zq.descendant(ancestor, 'th,td'); }; var table = function (element, isRoot) { - return $_eby7xcm7jj6611ug.closest(element, 'table', isRoot); + return $_hz10wm7jj68z9zq.closest(element, 'table', isRoot); }; var row = function (element, isRoot) { return lookup(['tr'], element, isRoot); }; var rows = function (ancestor) { - return $_61nwdnlejj6611pw.firstLayer(ancestor, 'tr'); + return $_epmir5lejj68z9qa.firstLayer(ancestor, 'tr'); }; var attr = function (element, property) { - return parseInt($_1i6un8m2jj6611tq.get(element, property), 10); + return parseInt($_f2f6ivm2jj68z9y8.get(element, property), 10); }; var grid$1 = function (element, rowProp, colProp) { var rows = attr(element, rowProp); var cols = attr(element, colProp); - return $_51e7qdlcjj6611oy.grid(rows, cols); + return $_ehjah3lcjj68z9o7.grid(rows, cols); }; - var $_kkb5dldjj6611p3 = { + var $_bb5w37ldjj68z9oi = { cell: cell, firstCell: firstCell, cells: cells, @@ -1474,33 +1474,33 @@ var table = (function () { }; var fromTable = function (table) { - var rows = $_kkb5dldjj6611p3.rows(table); + var rows = $_bb5w37ldjj68z9oi.rows(table); return map(rows, function (row) { var element = row; - var parent = $_9ghx71ljjj6611ra.parent(element); + var parent = $_agswhiljjj68z9t1.parent(element); var parentSection = parent.map(function (parent) { - var parentName = $_50pc0qm3jj6611u1.name(parent); + var parentName = $_a9t3wpm3jj68z9ys.name(parent); return parentName === 'tfoot' || parentName === 'thead' || parentName === 'tbody' ? parentName : 'tbody'; }).getOr('tbody'); - var cells = map($_kkb5dldjj6611p3.cells(row), function (cell) { - var rowspan = $_1i6un8m2jj6611tq.has(cell, 'rowspan') ? parseInt($_1i6un8m2jj6611tq.get(cell, 'rowspan'), 10) : 1; - var colspan = $_1i6un8m2jj6611tq.has(cell, 'colspan') ? parseInt($_1i6un8m2jj6611tq.get(cell, 'colspan'), 10) : 1; - return $_51e7qdlcjj6611oy.detail(cell, rowspan, colspan); + var cells = map($_bb5w37ldjj68z9oi.cells(row), function (cell) { + var rowspan = $_f2f6ivm2jj68z9y8.has(cell, 'rowspan') ? parseInt($_f2f6ivm2jj68z9y8.get(cell, 'rowspan'), 10) : 1; + var colspan = $_f2f6ivm2jj68z9y8.has(cell, 'colspan') ? parseInt($_f2f6ivm2jj68z9y8.get(cell, 'colspan'), 10) : 1; + return $_ehjah3lcjj68z9o7.detail(cell, rowspan, colspan); }); - return $_51e7qdlcjj6611oy.rowdata(element, cells, parentSection); + return $_ehjah3lcjj68z9o7.rowdata(element, cells, parentSection); }); }; var fromPastedRows = function (rows, example) { return map(rows, function (row) { - var cells = map($_kkb5dldjj6611p3.cells(row), function (cell) { - var rowspan = $_1i6un8m2jj6611tq.has(cell, 'rowspan') ? parseInt($_1i6un8m2jj6611tq.get(cell, 'rowspan'), 10) : 1; - var colspan = $_1i6un8m2jj6611tq.has(cell, 'colspan') ? parseInt($_1i6un8m2jj6611tq.get(cell, 'colspan'), 10) : 1; - return $_51e7qdlcjj6611oy.detail(cell, rowspan, colspan); + var cells = map($_bb5w37ldjj68z9oi.cells(row), function (cell) { + var rowspan = $_f2f6ivm2jj68z9y8.has(cell, 'rowspan') ? parseInt($_f2f6ivm2jj68z9y8.get(cell, 'rowspan'), 10) : 1; + var colspan = $_f2f6ivm2jj68z9y8.has(cell, 'colspan') ? parseInt($_f2f6ivm2jj68z9y8.get(cell, 'colspan'), 10) : 1; + return $_ehjah3lcjj68z9o7.detail(cell, rowspan, colspan); }); - return $_51e7qdlcjj6611oy.rowdata(row, cells, example.section()); + return $_ehjah3lcjj68z9o7.rowdata(row, cells, example.section()); }); }; - var $_5afhghlbjj6611ok = { + var $_5drlwclbjj68z9n8 = { fromTable: fromTable, fromPastedRows: fromPastedRows }; @@ -1536,7 +1536,7 @@ var table = (function () { while (access[key(r, start)] !== undefined) { start++; } - var current = $_51e7qdlcjj6611oy.extended(detail.element(), detail.rowspan(), detail.colspan(), r, start); + var current = $_ehjah3lcjj68z9o7.extended(detail.element(), detail.rowspan(), detail.colspan(), r, start); for (var i = 0; i < detail.colspan(); i++) { for (var j = 0; j < detail.rowspan(); j++) { var cr = r + j; @@ -1548,9 +1548,9 @@ var table = (function () { } currentRow.push(current); }); - cells.push($_51e7qdlcjj6611oy.rowdata(details.element(), currentRow, details.section())); + cells.push($_ehjah3lcjj68z9o7.rowdata(details.element(), currentRow, details.section())); }); - var grid = $_51e7qdlcjj6611oy.grid(maxRows, maxColumns); + var grid = $_ehjah3lcjj68z9o7.grid(maxRows, maxColumns); return { grid: constant(grid), access: constant(access), @@ -1563,7 +1563,7 @@ var table = (function () { }); return flatten(rows); }; - var $_1zsc94majj6611v4 = { + var $_6lblv1majj68za1f = { generate: generate, getAt: getAt, findItem: findItem, @@ -1574,18 +1574,18 @@ var table = (function () { var isSupported = function (dom) { return dom.style !== undefined; }; - var $_8vo5ismcjj6611w6 = { isSupported: isSupported }; + var $_bpaumomcjj68za31 = { isSupported: isSupported }; var internalSet = function (dom, property, value) { if (!isString(value)) { console.error('Invalid call to CSS.set. Property ', property, ':: Value ', value, ':: Element ', dom); throw new Error('CSS value must be a string: ' + value); } - if ($_8vo5ismcjj6611w6.isSupported(dom)) + if ($_bpaumomcjj68za31.isSupported(dom)) dom.style.setProperty(property, value); }; var internalRemove = function (dom, property) { - if ($_8vo5ismcjj6611w6.isSupported(dom)) + if ($_bpaumomcjj68za31.isSupported(dom)) dom.style.removeProperty(property); }; var set$1 = function (element, property, value) { @@ -1612,11 +1612,11 @@ var table = (function () { var dom = element.dom(); var styles = window.getComputedStyle(dom); var r = styles.getPropertyValue(property); - var v = r === '' && !$_ew2s0tm6jj6611ua.inBody(element) ? getUnsafeProperty(dom, property) : r; + var v = r === '' && !$_43d7w1m6jj68z9ze.inBody(element) ? getUnsafeProperty(dom, property) : r; return v === null ? undefined : v; }; var getUnsafeProperty = function (dom, property) { - return $_8vo5ismcjj6611w6.isSupported(dom) ? dom.style.getPropertyValue(property) : ''; + return $_bpaumomcjj68za31.isSupported(dom) ? dom.style.getPropertyValue(property) : ''; }; var getRaw = function (element, property) { var dom = element.dom(); @@ -1628,7 +1628,7 @@ var table = (function () { var getAllRaw = function (element) { var css = {}; var dom = element.dom(); - if ($_8vo5ismcjj6611w6.isSupported(dom)) { + if ($_bpaumomcjj68za31.isSupported(dom)) { for (var i = 0; i < dom.style.length; i++) { var ruleName = dom.style.item(i); css[ruleName] = dom.style[ruleName]; @@ -1645,21 +1645,21 @@ var table = (function () { var remove$1 = function (element, property) { var dom = element.dom(); internalRemove(dom, property); - if ($_1i6un8m2jj6611tq.has(element, 'style') && trim($_1i6un8m2jj6611tq.get(element, 'style')) === '') { - $_1i6un8m2jj6611tq.remove(element, 'style'); + if ($_f2f6ivm2jj68z9y8.has(element, 'style') && trim($_f2f6ivm2jj68z9y8.get(element, 'style')) === '') { + $_f2f6ivm2jj68z9y8.remove(element, 'style'); } }; var preserve = function (element, f) { - var oldStyles = $_1i6un8m2jj6611tq.get(element, 'style'); + var oldStyles = $_f2f6ivm2jj68z9y8.get(element, 'style'); var result = f(element); - var restore = oldStyles === undefined ? $_1i6un8m2jj6611tq.remove : $_1i6un8m2jj6611tq.set; + var restore = oldStyles === undefined ? $_f2f6ivm2jj68z9y8.remove : $_f2f6ivm2jj68z9y8.set; restore(element, 'style', oldStyles); return result; }; var copy = function (source, target) { var sourceDom = source.dom(); var targetDom = target.dom(); - if ($_8vo5ismcjj6611w6.isSupported(sourceDom) && $_8vo5ismcjj6611w6.isSupported(targetDom)) { + if ($_bpaumomcjj68za31.isSupported(sourceDom) && $_bpaumomcjj68za31.isSupported(targetDom)) { targetDom.style.cssText = sourceDom.style.cssText; } }; @@ -1673,13 +1673,13 @@ var table = (function () { }); }; var transfer$1 = function (source, destination, styles) { - if (!$_50pc0qm3jj6611u1.isElement(source) || !$_50pc0qm3jj6611u1.isElement(destination)) + if (!$_a9t3wpm3jj68z9ys.isElement(source) || !$_a9t3wpm3jj68z9ys.isElement(destination)) return; each(styles, function (style) { transferOne$1(source, destination, style); }); }; - var $_ghtnaumbjj6611vg = { + var $_8oaacwmbjj68za26 = { copy: copy, set: set$1, preserve: preserve, @@ -1695,15 +1695,15 @@ var table = (function () { }; var before = function (marker, element) { - var parent = $_9ghx71ljjj6611ra.parent(marker); + var parent = $_agswhiljjj68z9t1.parent(marker); parent.each(function (v) { v.dom().insertBefore(element.dom(), marker.dom()); }); }; var after = function (marker, element) { - var sibling = $_9ghx71ljjj6611ra.nextSibling(marker); + var sibling = $_agswhiljjj68z9t1.nextSibling(marker); sibling.fold(function () { - var parent = $_9ghx71ljjj6611ra.parent(marker); + var parent = $_agswhiljjj68z9t1.parent(marker); parent.each(function (v) { append(v, element); }); @@ -1712,7 +1712,7 @@ var table = (function () { }); }; var prepend = function (parent, element) { - var firstChild = $_9ghx71ljjj6611ra.firstChild(parent); + var firstChild = $_agswhiljjj68z9t1.firstChild(parent); firstChild.fold(function () { append(parent, element); }, function (v) { @@ -1723,7 +1723,7 @@ var table = (function () { parent.dom().appendChild(element.dom()); }; var appendAt = function (parent, element, index) { - $_9ghx71ljjj6611ra.child(parent, index).fold(function () { + $_agswhiljjj68z9t1.child(parent, index).fold(function () { append(parent, element); }, function (v) { before(v, element); @@ -1733,7 +1733,7 @@ var table = (function () { before(element, wrapper); append(wrapper, element); }; - var $_g3ng6wmdjj6611w8 = { + var $_1egjydmdjj68za38 = { before: before, after: after, prepend: prepend, @@ -1744,26 +1744,26 @@ var table = (function () { var before$1 = function (marker, elements) { each(elements, function (x) { - $_g3ng6wmdjj6611w8.before(marker, x); + $_1egjydmdjj68za38.before(marker, x); }); }; var after$1 = function (marker, elements) { each(elements, function (x, i) { var e = i === 0 ? marker : elements[i - 1]; - $_g3ng6wmdjj6611w8.after(e, x); + $_1egjydmdjj68za38.after(e, x); }); }; var prepend$1 = function (parent, elements) { each(elements.slice().reverse(), function (x) { - $_g3ng6wmdjj6611w8.prepend(parent, x); + $_1egjydmdjj68za38.prepend(parent, x); }); }; var append$1 = function (parent, elements) { each(elements, function (x) { - $_g3ng6wmdjj6611w8.append(parent, x); + $_1egjydmdjj68za38.append(parent, x); }); }; - var $_fn1ce5mfjj6611wf = { + var $_81fruumfjj68za3l = { before: before$1, after: after$1, prepend: prepend$1, @@ -1772,7 +1772,7 @@ var table = (function () { var empty = function (element) { element.dom().textContent = ''; - each($_9ghx71ljjj6611ra.children(element), function (rogue) { + each($_agswhiljjj68z9t1.children(element), function (rogue) { remove$2(rogue); }); }; @@ -1782,12 +1782,12 @@ var table = (function () { dom.parentNode.removeChild(dom); }; var unwrap = function (wrapper) { - var children = $_9ghx71ljjj6611ra.children(wrapper); + var children = $_agswhiljjj68z9t1.children(wrapper); if (children.length > 0) - $_fn1ce5mfjj6611wf.before(wrapper, children); + $_81fruumfjj68za3l.before(wrapper, children); remove$2(wrapper); }; - var $_7nurwwmejj6611wa = { + var $_1t3bv6mejj68za3c = { empty: empty, remove: remove$2, unwrap: unwrap @@ -1822,8 +1822,8 @@ var table = (function () { var makeCell = function (list, seenSelected, rowIndex) { var row = list[rowIndex].element(); var td = Element$$1.fromTag('td'); - $_g3ng6wmdjj6611w8.append(td, Element$$1.fromTag('br')); - var f = seenSelected ? $_g3ng6wmdjj6611w8.append : $_g3ng6wmdjj6611w8.prepend; + $_1egjydmdjj68za38.append(td, Element$$1.fromTag('br')); + var f = seenSelected ? $_1egjydmdjj68za38.append : $_1egjydmdjj68za38.prepend; f(row, td); }; var fillInGaps = function (list, house, stats, isSelected) { @@ -1833,7 +1833,7 @@ var table = (function () { var seenSelected = false; for (var j = 0; j < totalColumns; j++) { if (!(i < stats.minRow() || i > stats.maxRow() || j < stats.minCol() || j > stats.maxCol())) { - var needCell = $_1zsc94majj6611v4.getAt(house, i, j).filter(isSelected).isNone(); + var needCell = $_6lblv1majj68za1f.getAt(house, i, j).filter(isSelected).isNone(); if (needCell) makeCell(list, seenSelected, i); else @@ -1843,38 +1843,38 @@ var table = (function () { } }; var clean = function (table, stats) { - var emptyRows = filter($_61nwdnlejj6611pw.firstLayer(table, 'tr'), function (row) { + var emptyRows = filter($_epmir5lejj68z9qa.firstLayer(table, 'tr'), function (row) { return row.dom().childElementCount === 0; }); - each(emptyRows, $_7nurwwmejj6611wa.remove); + each(emptyRows, $_1t3bv6mejj68za3c.remove); if (stats.minCol() === stats.maxCol() || stats.minRow() === stats.maxRow()) { - each($_61nwdnlejj6611pw.firstLayer(table, 'th,td'), function (cell) { - $_1i6un8m2jj6611tq.remove(cell, 'rowspan'); - $_1i6un8m2jj6611tq.remove(cell, 'colspan'); + each($_epmir5lejj68z9qa.firstLayer(table, 'th,td'), function (cell) { + $_f2f6ivm2jj68z9y8.remove(cell, 'rowspan'); + $_f2f6ivm2jj68z9y8.remove(cell, 'colspan'); }); } - $_1i6un8m2jj6611tq.remove(table, 'width'); - $_1i6un8m2jj6611tq.remove(table, 'height'); - $_ghtnaumbjj6611vg.remove(table, 'width'); - $_ghtnaumbjj6611vg.remove(table, 'height'); + $_f2f6ivm2jj68z9y8.remove(table, 'width'); + $_f2f6ivm2jj68z9y8.remove(table, 'height'); + $_8oaacwmbjj68za26.remove(table, 'width'); + $_8oaacwmbjj68za26.remove(table, 'height'); }; var extract = function (table, selectedSelector) { var isSelected = function (detail) { - return $_ghms6ilfjj6611q9.is(detail.element(), selectedSelector); + return $_8dbecalfjj68z9r8.is(detail.element(), selectedSelector); }; - var list = $_5afhghlbjj6611ok.fromTable(table); - var house = $_1zsc94majj6611v4.generate(list); + var list = $_5drlwclbjj68z9n8.fromTable(table); + var house = $_6lblv1majj68za1f.generate(list); var stats = findSelectedStats(house, isSelected); var selector = 'th:not(' + selectedSelector + ')' + ',td:not(' + selectedSelector + ')'; - var unselectedCells = $_61nwdnlejj6611pw.filterFirstLayer(table, 'th,td', function (cell) { - return $_ghms6ilfjj6611q9.is(cell, selector); + var unselectedCells = $_epmir5lejj68z9qa.filterFirstLayer(table, 'th,td', function (cell) { + return $_8dbecalfjj68z9r8.is(cell, selector); }); - each(unselectedCells, $_7nurwwmejj6611wa.remove); + each(unselectedCells, $_1t3bv6mejj68za3c.remove); fillInGaps(list, house, stats, isSelected); clean(table, stats); return table; }; - var $_7gxb44l5jj6611nb = { extract: extract }; + var $_72flvvl5jj68z9jw = { extract: extract }; var clone$1 = function (original, deep) { return Element$$1.fromDom(original.dom().cloneNode(deep)); @@ -1887,25 +1887,25 @@ var table = (function () { }; var shallowAs = function (original, tag) { var nu = Element$$1.fromTag(tag); - var attributes = $_1i6un8m2jj6611tq.clone(original); - $_1i6un8m2jj6611tq.setAll(nu, attributes); + var attributes = $_f2f6ivm2jj68z9y8.clone(original); + $_f2f6ivm2jj68z9y8.setAll(nu, attributes); return nu; }; var copy$1 = function (original, tag) { var nu = shallowAs(original, tag); - var cloneChildren = $_9ghx71ljjj6611ra.children(deep(original)); - $_fn1ce5mfjj6611wf.append(nu, cloneChildren); + var cloneChildren = $_agswhiljjj68z9t1.children(deep(original)); + $_81fruumfjj68za3l.append(nu, cloneChildren); return nu; }; var mutate = function (original, tag) { var nu = shallowAs(original, tag); - $_g3ng6wmdjj6611w8.before(original, nu); - var children = $_9ghx71ljjj6611ra.children(original); - $_fn1ce5mfjj6611wf.append(nu, children); - $_7nurwwmejj6611wa.remove(original); + $_1egjydmdjj68za38.before(original, nu); + var children = $_agswhiljjj68z9t1.children(original); + $_81fruumfjj68za3l.append(nu, children); + $_1t3bv6mejj68za3c.remove(original); return nu; }; - var $_4dh9zxmhjj6611xn = { + var $_bpjvoxmhjj68za69 = { shallow: shallow, shallowAs: shallowAs, deep: deep, @@ -1929,7 +1929,7 @@ var table = (function () { var getOptionSafe = function (element) { return is(element) ? Option.from(element.dom().nodeValue) : Option.none(); }; - var browser = $_2fambnlqjj6611sh.detect().browser; + var browser = $_8lnul5lqjj68z9vm.detect().browser; var getOption = browser.isIE() && browser.version.major === 10 ? getOptionIE10 : getOptionSafe; var set = function (element, value) { if (!is(element)) @@ -1943,7 +1943,7 @@ var table = (function () { }; } - var api = NodeValue($_50pc0qm3jj6611u1.isText, 'text'); + var api = NodeValue($_a9t3wpm3jj68z9ys.isText, 'text'); var get$2 = function (element) { return api.get(element); }; @@ -1953,15 +1953,15 @@ var table = (function () { var set$2 = function (element, value) { api.set(element, value); }; - var $_3tom9amkjj6611y1 = { + var $_dxqxbemkjj68za6x = { get: get$2, getOption: getOption, set: set$2 }; var getEnd = function (element) { - return $_50pc0qm3jj6611u1.name(element) === 'img' ? 1 : $_3tom9amkjj6611y1.getOption(element).fold(function () { - return $_9ghx71ljjj6611ra.children(element).length; + return $_a9t3wpm3jj68z9ys.name(element) === 'img' ? 1 : $_dxqxbemkjj68za6x.getOption(element).fold(function () { + return $_agswhiljjj68z9t1.children(element).length; }, function (v) { return v.length; }); @@ -1974,7 +1974,7 @@ var table = (function () { }; var NBSP = '\xA0'; var isTextNodeWithCursorPosition = function (el) { - return $_3tom9amkjj6611y1.getOption(el).filter(function (text) { + return $_dxqxbemkjj68za6x.getOption(el).filter(function (text) { return text.trim().length !== 0 || text.indexOf(NBSP) > -1; }).isSome(); }; @@ -1984,9 +1984,9 @@ var table = (function () { ]; var isCursorPosition = function (elem) { var hasCursorPosition = isTextNodeWithCursorPosition(elem); - return hasCursorPosition || contains(elementsWithCursorPosition, $_50pc0qm3jj6611u1.name(elem)); + return hasCursorPosition || contains(elementsWithCursorPosition, $_a9t3wpm3jj68z9ys.name(elem)); }; - var $_55x7bumjjj6611xw = { + var $_6bk9csmjjj68za6p = { getEnd: getEnd, isEnd: isEnd, isStart: isStart, @@ -1994,14 +1994,14 @@ var table = (function () { }; var first$3 = function (element) { - return $_azkyflm8jj6611ui.descendant(element, $_55x7bumjjj6611xw.isCursorPosition); + return $_3315com8jj68z9zu.descendant(element, $_6bk9csmjjj68za6p.isCursorPosition); }; var last$2 = function (element) { - return descendantRtl(element, $_55x7bumjjj6611xw.isCursorPosition); + return descendantRtl(element, $_6bk9csmjjj68za6p.isCursorPosition); }; var descendantRtl = function (scope, predicate) { var descend = function (element) { - var children = $_9ghx71ljjj6611ra.children(element); + var children = $_agswhiljjj68z9t1.children(element); for (var i = children.length - 1; i >= 0; i--) { var child = children[i]; if (predicate(child)) @@ -2014,23 +2014,23 @@ var table = (function () { }; return descend(scope); }; - var $_fp4fd1mijj6611xr = { + var $_c2gkadmijj68za6e = { first: first$3, last: last$2 }; var cell$1 = function () { var td = Element$$1.fromTag('td'); - $_g3ng6wmdjj6611w8.append(td, Element$$1.fromTag('br')); + $_1egjydmdjj68za38.append(td, Element$$1.fromTag('br')); return td; }; var replace = function (cell, tag, attrs) { - var replica = $_4dh9zxmhjj6611xn.copy(cell, tag); + var replica = $_bpjvoxmhjj68za69.copy(cell, tag); each$1(attrs, function (v, k) { if (v === null) - $_1i6un8m2jj6611tq.remove(replica, k); + $_f2f6ivm2jj68z9y8.remove(replica, k); else - $_1i6un8m2jj6611tq.set(replica, k, v); + $_f2f6ivm2jj68z9y8.set(replica, k, v); }); return replica; }; @@ -2043,23 +2043,23 @@ var table = (function () { }; }; var cloneFormats = function (oldCell, newCell, formats) { - var first = $_fp4fd1mijj6611xr.first(oldCell); + var first = $_c2gkadmijj68za6e.first(oldCell); return first.map(function (firstText) { var formatSelector = formats.join(','); - var parents = $_fhzhu6m4jj6611u4.ancestors(firstText, formatSelector, function (element) { - return $_af5rtflljj6611ru.eq(element, oldCell); + var parents = $_4ve49em4jj68z9yy.ancestors(firstText, formatSelector, function (element) { + return $_71r8jdlljj68z9u5.eq(element, oldCell); }); return foldr(parents, function (last$$1, parent) { - var clonedFormat = $_4dh9zxmhjj6611xn.shallow(parent); - $_g3ng6wmdjj6611w8.append(last$$1, clonedFormat); + var clonedFormat = $_bpjvoxmhjj68za69.shallow(parent); + $_1egjydmdjj68za38.append(last$$1, clonedFormat); return clonedFormat; }, newCell); }).getOr(newCell); }; var cellOperations = function (mutate, doc, formatsToClone) { var newCell = function (prev) { - var doc = $_9ghx71ljjj6611ra.owner(prev.element()); - var td = Element$$1.fromTag($_50pc0qm3jj6611u1.name(prev.element()), doc.dom()); + var doc = $_agswhiljjj68z9t1.owner(prev.element()); + var td = Element$$1.fromTag($_a9t3wpm3jj68z9ys.name(prev.element()), doc.dom()); var formats = formatsToClone.getOr([ 'strong', 'em', @@ -2077,11 +2077,11 @@ var table = (function () { 'div' ]); var lastNode = formats.length > 0 ? cloneFormats(prev.element(), td, formats) : td; - $_g3ng6wmdjj6611w8.append(lastNode, Element$$1.fromTag('br')); - $_ghtnaumbjj6611vg.copy(prev.element(), td); - $_ghtnaumbjj6611vg.remove(td, 'height'); + $_1egjydmdjj68za38.append(lastNode, Element$$1.fromTag('br')); + $_8oaacwmbjj68za26.copy(prev.element(), td); + $_8oaacwmbjj68za26.remove(td, 'height'); if (prev.colspan() !== 1) - $_ghtnaumbjj6611vg.remove(prev.element(), 'width'); + $_8oaacwmbjj68za26.remove(prev.element(), 'width'); mutate(prev.element(), td); return td; }; @@ -2100,7 +2100,7 @@ var table = (function () { gap: cell$1 }; }; - var $_9daz66mgjj6611wk = { + var $_840xxpmgjj68za3w = { cellOperations: cellOperations, paste: paste }; @@ -2109,7 +2109,7 @@ var table = (function () { var doc = scope || document; var div = doc.createElement('div'); div.innerHTML = html; - return $_9ghx71ljjj6611ra.children(Element$$1.fromDom(div)); + return $_agswhiljjj68z9t1.children(Element$$1.fromDom(div)); }; var fromTags = function (tags, scope) { return map(tags, function (x) { @@ -2124,7 +2124,7 @@ var table = (function () { var fromDom$1 = function (nodes) { return map(nodes, Element$$1.fromDom); }; - var $_eep9flmmjj6611ya = { + var $_40508vmmjj68za7i = { fromHtml: fromHtml$1, fromTags: fromTags, fromText: fromText$1, @@ -2170,64 +2170,64 @@ var table = (function () { return Element$$1.fromDom(element.dom().cloneNode(false)); }; var isBoundary = function (element) { - if (!$_50pc0qm3jj6611u1.isElement(element)) + if (!$_a9t3wpm3jj68z9ys.isElement(element)) return false; - if ($_50pc0qm3jj6611u1.name(element) === 'body') + if ($_a9t3wpm3jj68z9ys.name(element) === 'body') return true; - return contains(TagBoundaries, $_50pc0qm3jj6611u1.name(element)); + return contains(TagBoundaries, $_a9t3wpm3jj68z9ys.name(element)); }; var isEmptyTag = function (element) { - if (!$_50pc0qm3jj6611u1.isElement(element)) + if (!$_a9t3wpm3jj68z9ys.isElement(element)) return false; return contains([ 'br', 'img', 'hr', 'input' - ], $_50pc0qm3jj6611u1.name(element)); + ], $_a9t3wpm3jj68z9ys.name(element)); }; var comparePosition = function (element, other) { return element.dom().compareDocumentPosition(other.dom()); }; var copyAttributesTo = function (source, destination) { - var as = $_1i6un8m2jj6611tq.clone(source); - $_1i6un8m2jj6611tq.setAll(destination, as); + var as = $_f2f6ivm2jj68z9y8.clone(source); + $_f2f6ivm2jj68z9y8.setAll(destination, as); }; return { up: constant({ - selector: $_eby7xcm7jj6611ug.ancestor, - closest: $_eby7xcm7jj6611ug.closest, - predicate: $_azkyflm8jj6611ui.ancestor, - all: $_9ghx71ljjj6611ra.parents + selector: $_hz10wm7jj68z9zq.ancestor, + closest: $_hz10wm7jj68z9zq.closest, + predicate: $_3315com8jj68z9zu.ancestor, + all: $_agswhiljjj68z9t1.parents }), down: constant({ - selector: $_fhzhu6m4jj6611u4.descendants, - predicate: $_4su23bm5jj6611u5.descendants + selector: $_4ve49em4jj68z9yy.descendants, + predicate: $_7u5e8nm5jj68z9z3.descendants }), styles: constant({ - get: $_ghtnaumbjj6611vg.get, - getRaw: $_ghtnaumbjj6611vg.getRaw, - set: $_ghtnaumbjj6611vg.set, - remove: $_ghtnaumbjj6611vg.remove + get: $_8oaacwmbjj68za26.get, + getRaw: $_8oaacwmbjj68za26.getRaw, + set: $_8oaacwmbjj68za26.set, + remove: $_8oaacwmbjj68za26.remove }), attrs: constant({ - get: $_1i6un8m2jj6611tq.get, - set: $_1i6un8m2jj6611tq.set, - remove: $_1i6un8m2jj6611tq.remove, + get: $_f2f6ivm2jj68z9y8.get, + set: $_f2f6ivm2jj68z9y8.set, + remove: $_f2f6ivm2jj68z9y8.remove, copyTo: copyAttributesTo }), insert: constant({ - before: $_g3ng6wmdjj6611w8.before, - after: $_g3ng6wmdjj6611w8.after, - afterAll: $_fn1ce5mfjj6611wf.after, - append: $_g3ng6wmdjj6611w8.append, - appendAll: $_fn1ce5mfjj6611wf.append, - prepend: $_g3ng6wmdjj6611w8.prepend, - wrap: $_g3ng6wmdjj6611w8.wrap + before: $_1egjydmdjj68za38.before, + after: $_1egjydmdjj68za38.after, + afterAll: $_81fruumfjj68za3l.after, + append: $_1egjydmdjj68za38.append, + appendAll: $_81fruumfjj68za3l.append, + prepend: $_1egjydmdjj68za38.prepend, + wrap: $_1egjydmdjj68za38.wrap }), remove: constant({ - unwrap: $_7nurwwmejj6611wa.unwrap, - remove: $_7nurwwmejj6611wa.remove + unwrap: $_1t3bv6mejj68za3c.unwrap, + remove: $_1t3bv6mejj68za3c.remove }), create: constant({ nu: Element$$1.fromTag, @@ -2236,23 +2236,23 @@ var table = (function () { }), query: constant({ comparePosition: comparePosition, - prevSibling: $_9ghx71ljjj6611ra.prevSibling, - nextSibling: $_9ghx71ljjj6611ra.nextSibling + prevSibling: $_agswhiljjj68z9t1.prevSibling, + nextSibling: $_agswhiljjj68z9t1.nextSibling }), property: constant({ - children: $_9ghx71ljjj6611ra.children, - name: $_50pc0qm3jj6611u1.name, - parent: $_9ghx71ljjj6611ra.parent, - isText: $_50pc0qm3jj6611u1.isText, - isComment: $_50pc0qm3jj6611u1.isComment, - isElement: $_50pc0qm3jj6611u1.isElement, - getText: $_3tom9amkjj6611y1.get, - setText: $_3tom9amkjj6611y1.set, + children: $_agswhiljjj68z9t1.children, + name: $_a9t3wpm3jj68z9ys.name, + parent: $_agswhiljjj68z9t1.parent, + isText: $_a9t3wpm3jj68z9ys.isText, + isComment: $_a9t3wpm3jj68z9ys.isComment, + isElement: $_a9t3wpm3jj68z9ys.isElement, + getText: $_dxqxbemkjj68za6x.get, + setText: $_dxqxbemkjj68za6x.set, isBoundary: isBoundary, isEmptyTag: isEmptyTag }), - eq: $_af5rtflljj6611ru.eq, - is: $_af5rtflljj6611ru.is + eq: $_71r8jdlljj68z9u5.eq, + is: $_71r8jdlljj68z9u5.is }; } @@ -2305,7 +2305,7 @@ var table = (function () { }; return next(item, Option.none(), []); }; - var $_3am7bdmvjj66122p = { + var $_cekb1smvjj68zafa = { breakToLeft: breakToLeft, breakToRight: breakToRight, breakPath: breakPath @@ -2331,7 +2331,7 @@ var table = (function () { return end.filter(curry(universe.eq, s)); }); }; - var $_e1ml2jmwjj661235 = { oneAll: oneAll }; + var $_d9ceammwjj68zag7 = { oneAll: oneAll }; var eq$1 = function (universe, item) { return curry(universe.eq, item); @@ -2387,30 +2387,30 @@ var table = (function () { return unsafeSubset(universe, shared, ancs.firstpath(), ancs.secondpath()); }); }; - var $_bs0nlamxjj66123j = { + var $_8mrrkomxjj68zagt = { subset: subset, ancestors: ancestors$2 }; var sharedOne = function (universe, look, elements) { - return $_e1ml2jmwjj661235.oneAll(universe, look, elements); + return $_d9ceammwjj68zag7.oneAll(universe, look, elements); }; var subset$1 = function (universe, start, finish) { - return $_bs0nlamxjj66123j.subset(universe, start, finish); + return $_8mrrkomxjj68zagt.subset(universe, start, finish); }; var ancestors$3 = function (universe, start, finish, _isRoot) { - return $_bs0nlamxjj66123j.ancestors(universe, start, finish, _isRoot); + return $_8mrrkomxjj68zagt.ancestors(universe, start, finish, _isRoot); }; var breakToLeft$1 = function (universe, parent, child) { - return $_3am7bdmvjj66122p.breakToLeft(universe, parent, child); + return $_cekb1smvjj68zafa.breakToLeft(universe, parent, child); }; var breakToRight$1 = function (universe, parent, child) { - return $_3am7bdmvjj66122p.breakToRight(universe, parent, child); + return $_cekb1smvjj68zafa.breakToRight(universe, parent, child); }; var breakPath$1 = function (universe, child, isTop, breaker) { - return $_3am7bdmvjj66122p.breakPath(universe, child, isTop, breaker); + return $_cekb1smvjj68zafa.breakPath(universe, child, isTop, breaker); }; - var $_1fs2jqmujj66122m = { + var $_1red5kmujj68zaf6 = { sharedOne: sharedOne, subset: subset$1, ancestors: ancestors$3, @@ -2421,28 +2421,28 @@ var table = (function () { var universe = DomUniverse(); var sharedOne$1 = function (look, elements) { - return $_1fs2jqmujj66122m.sharedOne(universe, function (universe, element) { + return $_1red5kmujj68zaf6.sharedOne(universe, function (universe, element) { return look(element); }, elements); }; var subset$2 = function (start, finish) { - return $_1fs2jqmujj66122m.subset(universe, start, finish); + return $_1red5kmujj68zaf6.subset(universe, start, finish); }; var ancestors$4 = function (start, finish, _isRoot) { - return $_1fs2jqmujj66122m.ancestors(universe, start, finish, _isRoot); + return $_1red5kmujj68zaf6.ancestors(universe, start, finish, _isRoot); }; var breakToLeft$2 = function (parent, child) { - return $_1fs2jqmujj66122m.breakToLeft(universe, parent, child); + return $_1red5kmujj68zaf6.breakToLeft(universe, parent, child); }; var breakToRight$2 = function (parent, child) { - return $_1fs2jqmujj66122m.breakToRight(universe, parent, child); + return $_1red5kmujj68zaf6.breakToRight(universe, parent, child); }; var breakPath$2 = function (child, isTop, breaker) { - return $_1fs2jqmujj66122m.breakPath(universe, child, isTop, function (u, p, c) { + return $_1red5kmujj68zaf6.breakPath(universe, child, isTop, function (u, p, c) { return breaker(p, c); }); }; - var $_89o2jlmrjj66120s = { + var $_60uapqmrjj68zabt = { sharedOne: sharedOne$1, subset: subset$2, ancestors: ancestors$4, @@ -2466,23 +2466,23 @@ var table = (function () { var detailIsWithin = curry(isWithin, bounds); for (var i = bounds.startRow(); i <= bounds.finishRow(); i++) { for (var j = bounds.startCol(); j <= bounds.finishCol(); j++) { - isRect = isRect && $_1zsc94majj6611v4.getAt(warehouse, i, j).exists(detailIsWithin); + isRect = isRect && $_6lblv1majj68za1f.getAt(warehouse, i, j).exists(detailIsWithin); } } return isRect ? Option.some(bounds) : Option.none(); }; - var $_bgc4s2n0jj66124c = { + var $_aa58qqn0jj68zaiq = { inSelection: inSelection, isWithin: isWithin, isRectangular: isRectangular }; var getBounds = function (detailA, detailB) { - return $_51e7qdlcjj6611oy.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)); + return $_ehjah3lcjj68z9o7.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)); }; var getAnyBox = function (warehouse, startCell, finishCell) { - var startCoords = $_1zsc94majj6611v4.findItem(warehouse, startCell, $_af5rtflljj6611ru.eq); - var finishCoords = $_1zsc94majj6611v4.findItem(warehouse, finishCell, $_af5rtflljj6611ru.eq); + var startCoords = $_6lblv1majj68za1f.findItem(warehouse, startCell, $_71r8jdlljj68z9u5.eq); + var finishCoords = $_6lblv1majj68za1f.findItem(warehouse, finishCell, $_71r8jdlljj68z9u5.eq); return startCoords.bind(function (sc) { return finishCoords.map(function (fc) { return getBounds(sc, fc); @@ -2491,27 +2491,27 @@ var table = (function () { }; var getBox = function (warehouse, startCell, finishCell) { return getAnyBox(warehouse, startCell, finishCell).bind(function (bounds) { - return $_bgc4s2n0jj66124c.isRectangular(warehouse, bounds); + return $_aa58qqn0jj68zaiq.isRectangular(warehouse, bounds); }); }; - var $_34nx9en1jj66124l = { + var $_36qcvan1jj68zaj9 = { getAnyBox: getAnyBox, getBox: getBox }; var moveBy = function (warehouse, cell, row, column) { - return $_1zsc94majj6611v4.findItem(warehouse, cell, $_af5rtflljj6611ru.eq).bind(function (detail) { + return $_6lblv1majj68za1f.findItem(warehouse, cell, $_71r8jdlljj68z9u5.eq).bind(function (detail) { var startRow = row > 0 ? detail.row() + detail.rowspan() - 1 : detail.row(); var startCol = column > 0 ? detail.column() + detail.colspan() - 1 : detail.column(); - var dest = $_1zsc94majj6611v4.getAt(warehouse, startRow + row, startCol + column); + var dest = $_6lblv1majj68za1f.getAt(warehouse, startRow + row, startCol + column); return dest.map(function (d) { return d.element(); }); }); }; var intercepts = function (warehouse, start, finish) { - return $_34nx9en1jj66124l.getAnyBox(warehouse, start, finish).map(function (bounds) { - var inside = $_1zsc94majj6611v4.filterItems(warehouse, curry($_bgc4s2n0jj66124c.inSelection, bounds)); + return $_36qcvan1jj68zaj9.getAnyBox(warehouse, start, finish).map(function (bounds) { + var inside = $_6lblv1majj68za1f.filterItems(warehouse, curry($_aa58qqn0jj68zaiq.inSelection, bounds)); return map(inside, function (detail) { return detail.element(); }); @@ -2519,43 +2519,43 @@ var table = (function () { }; var parentCell = function (warehouse, innerCell) { var isContainedBy = function (c1, c2) { - return $_af5rtflljj6611ru.contains(c2, c1); + return $_71r8jdlljj68z9u5.contains(c2, c1); }; - return $_1zsc94majj6611v4.findItem(warehouse, innerCell, isContainedBy).bind(function (detail) { + return $_6lblv1majj68za1f.findItem(warehouse, innerCell, isContainedBy).bind(function (detail) { return detail.element(); }); }; - var $_7p7izimzjj661241 = { + var $_bdyj4lmzjj68zahz = { moveBy: moveBy, intercepts: intercepts, parentCell: parentCell }; var moveBy$1 = function (cell, deltaRow, deltaColumn) { - return $_kkb5dldjj6611p3.table(cell).bind(function (table) { + return $_bb5w37ldjj68z9oi.table(cell).bind(function (table) { var warehouse = getWarehouse(table); - return $_7p7izimzjj661241.moveBy(warehouse, cell, deltaRow, deltaColumn); + return $_bdyj4lmzjj68zahz.moveBy(warehouse, cell, deltaRow, deltaColumn); }); }; var intercepts$1 = function (table, first, last) { var warehouse = getWarehouse(table); - return $_7p7izimzjj661241.intercepts(warehouse, first, last); + return $_bdyj4lmzjj68zahz.intercepts(warehouse, first, last); }; var nestedIntercepts = function (table, first, firstTable, last, lastTable) { var warehouse = getWarehouse(table); - var startCell = $_af5rtflljj6611ru.eq(table, firstTable) ? first : $_7p7izimzjj661241.parentCell(warehouse, first); - var lastCell = $_af5rtflljj6611ru.eq(table, lastTable) ? last : $_7p7izimzjj661241.parentCell(warehouse, last); - return $_7p7izimzjj661241.intercepts(warehouse, startCell, lastCell); + var startCell = $_71r8jdlljj68z9u5.eq(table, firstTable) ? first : $_bdyj4lmzjj68zahz.parentCell(warehouse, first); + var lastCell = $_71r8jdlljj68z9u5.eq(table, lastTable) ? last : $_bdyj4lmzjj68zahz.parentCell(warehouse, last); + return $_bdyj4lmzjj68zahz.intercepts(warehouse, startCell, lastCell); }; var getBox$1 = function (table, first, last) { var warehouse = getWarehouse(table); - return $_34nx9en1jj66124l.getBox(warehouse, first, last); + return $_36qcvan1jj68zaj9.getBox(warehouse, first, last); }; var getWarehouse = function (table) { - var list = $_5afhghlbjj6611ok.fromTable(table); - return $_1zsc94majj6611v4.generate(list); + var list = $_5drlwclbjj68z9n8.fromTable(table); + return $_6lblv1majj68za1f.generate(list); }; - var $_9fjhizmyjj66123v = { + var $_6e7ctomyjj68zaho = { moveBy: moveBy$1, intercepts: intercepts$1, nestedIntercepts: nestedIntercepts, @@ -2563,7 +2563,7 @@ var table = (function () { }; var lookupTable = function (container, isRoot) { - return $_eby7xcm7jj6611ug.ancestor(container, 'table'); + return $_hz10wm7jj68z9zq.ancestor(container, 'table'); }; var identified = MixedBag([ 'boxes', @@ -2573,10 +2573,10 @@ var table = (function () { var identify = function (start, finish, isRoot) { var getIsRoot = function (rootTable) { return function (element) { - return isRoot(element) || $_af5rtflljj6611ru.eq(element, rootTable); + return isRoot(element) || $_71r8jdlljj68z9u5.eq(element, rootTable); }; }; - if ($_af5rtflljj6611ru.eq(start, finish)) { + if ($_71r8jdlljj68z9u5.eq(start, finish)) { return Option.some(identified({ boxes: Option.some([start]), start: start, @@ -2585,37 +2585,37 @@ var table = (function () { } else { return lookupTable(start, isRoot).bind(function (startTable) { return lookupTable(finish, isRoot).bind(function (finishTable) { - if ($_af5rtflljj6611ru.eq(startTable, finishTable)) { + if ($_71r8jdlljj68z9u5.eq(startTable, finishTable)) { return Option.some(identified({ - boxes: $_9fjhizmyjj66123v.intercepts(startTable, start, finish), + boxes: $_6e7ctomyjj68zaho.intercepts(startTable, start, finish), start: start, finish: finish })); - } else if ($_af5rtflljj6611ru.contains(startTable, finishTable)) { - var ancestorCells = $_fhzhu6m4jj6611u4.ancestors(finish, 'td,th', getIsRoot(startTable)); + } else if ($_71r8jdlljj68z9u5.contains(startTable, finishTable)) { + var ancestorCells = $_4ve49em4jj68z9yy.ancestors(finish, 'td,th', getIsRoot(startTable)); var finishCell = ancestorCells.length > 0 ? ancestorCells[ancestorCells.length - 1] : finish; return Option.some(identified({ - boxes: $_9fjhizmyjj66123v.nestedIntercepts(startTable, start, startTable, finish, finishTable), + boxes: $_6e7ctomyjj68zaho.nestedIntercepts(startTable, start, startTable, finish, finishTable), start: start, finish: finishCell })); - } else if ($_af5rtflljj6611ru.contains(finishTable, startTable)) { - var ancestorCells = $_fhzhu6m4jj6611u4.ancestors(start, 'td,th', getIsRoot(finishTable)); + } else if ($_71r8jdlljj68z9u5.contains(finishTable, startTable)) { + var ancestorCells = $_4ve49em4jj68z9yy.ancestors(start, 'td,th', getIsRoot(finishTable)); var startCell = ancestorCells.length > 0 ? ancestorCells[ancestorCells.length - 1] : start; return Option.some(identified({ - boxes: $_9fjhizmyjj66123v.nestedIntercepts(finishTable, start, startTable, finish, finishTable), + boxes: $_6e7ctomyjj68zaho.nestedIntercepts(finishTable, start, startTable, finish, finishTable), start: start, finish: startCell })); } else { - return $_89o2jlmrjj66120s.ancestors(start, finish).shared().bind(function (lca) { - return $_eby7xcm7jj6611ug.closest(lca, 'table', isRoot).bind(function (lcaTable) { - var finishAncestorCells = $_fhzhu6m4jj6611u4.ancestors(finish, 'td,th', getIsRoot(lcaTable)); + return $_60uapqmrjj68zabt.ancestors(start, finish).shared().bind(function (lca) { + return $_hz10wm7jj68z9zq.closest(lca, 'table', isRoot).bind(function (lcaTable) { + var finishAncestorCells = $_4ve49em4jj68z9yy.ancestors(finish, 'td,th', getIsRoot(lcaTable)); var finishCell = finishAncestorCells.length > 0 ? finishAncestorCells[finishAncestorCells.length - 1] : finish; - var startAncestorCells = $_fhzhu6m4jj6611u4.ancestors(start, 'td,th', getIsRoot(lcaTable)); + var startAncestorCells = $_4ve49em4jj68z9yy.ancestors(start, 'td,th', getIsRoot(lcaTable)); var startCell = startAncestorCells.length > 0 ? startAncestorCells[startAncestorCells.length - 1] : start; return Option.some(identified({ - boxes: $_9fjhizmyjj66123v.nestedIntercepts(lcaTable, start, startTable, finish, finishTable), + boxes: $_6e7ctomyjj68zaho.nestedIntercepts(lcaTable, start, startTable, finish, finishTable), start: startCell, finish: finishCell })); @@ -2627,18 +2627,18 @@ var table = (function () { } }; var retrieve = function (container, selector) { - var sels = $_fhzhu6m4jj6611u4.descendants(container, selector); + var sels = $_4ve49em4jj68z9yy.descendants(container, selector); return sels.length > 0 ? Option.some(sels) : Option.none(); }; var getLast = function (boxes, lastSelectedSelector) { return find(boxes, function (box) { - return $_ghms6ilfjj6611q9.is(box, lastSelectedSelector); + return $_8dbecalfjj68z9r8.is(box, lastSelectedSelector); }); }; var getEdges = function (container, firstSelectedSelector, lastSelectedSelector) { - return $_eby7xcm7jj6611ug.descendant(container, firstSelectedSelector).bind(function (first) { - return $_eby7xcm7jj6611ug.descendant(container, lastSelectedSelector).bind(function (last$$1) { - return $_89o2jlmrjj66120s.sharedOne(lookupTable, [ + return $_hz10wm7jj68z9zq.descendant(container, firstSelectedSelector).bind(function (first) { + return $_hz10wm7jj68z9zq.descendant(container, lastSelectedSelector).bind(function (last$$1) { + return $_60uapqmrjj68zabt.sharedOne(lookupTable, [ first, last$$1 ]).map(function (tbl) { @@ -2652,8 +2652,8 @@ var table = (function () { }); }; var expandTo = function (finish, firstSelectedSelector) { - return $_eby7xcm7jj6611ug.ancestor(finish, 'table').bind(function (table) { - return $_eby7xcm7jj6611ug.descendant(table, firstSelectedSelector).bind(function (start) { + return $_hz10wm7jj68z9zq.ancestor(finish, 'table').bind(function (table) { + return $_hz10wm7jj68z9zq.descendant(table, firstSelectedSelector).bind(function (start) { return identify(start, finish).bind(function (identified) { return identified.boxes().map(function (boxes) { return { @@ -2668,12 +2668,12 @@ var table = (function () { }; var shiftSelection = function (boxes, deltaRow, deltaColumn, firstSelectedSelector, lastSelectedSelector) { return getLast(boxes, lastSelectedSelector).bind(function (last$$1) { - return $_9fjhizmyjj66123v.moveBy(last$$1, deltaRow, deltaColumn).bind(function (finish) { + return $_6e7ctomyjj68zaho.moveBy(last$$1, deltaRow, deltaColumn).bind(function (finish) { return expandTo(finish, firstSelectedSelector); }); }); }; - var $_ctk6mymqjj6611zq = { + var $_9z6u35mqjj68za9r = { identify: identify, retrieve: retrieve, shiftSelection: shiftSelection, @@ -2681,23 +2681,23 @@ var table = (function () { }; var retrieve$1 = function (container, selector) { - return $_ctk6mymqjj6611zq.retrieve(container, selector); + return $_9z6u35mqjj68za9r.retrieve(container, selector); }; var retrieveBox = function (container, firstSelectedSelector, lastSelectedSelector) { - return $_ctk6mymqjj6611zq.getEdges(container, firstSelectedSelector, lastSelectedSelector).bind(function (edges) { + return $_9z6u35mqjj68za9r.getEdges(container, firstSelectedSelector, lastSelectedSelector).bind(function (edges) { var isRoot = function (ancestor) { - return $_af5rtflljj6611ru.eq(container, ancestor); + return $_71r8jdlljj68z9u5.eq(container, ancestor); }; - var firstAncestor = $_eby7xcm7jj6611ug.ancestor(edges.first(), 'thead,tfoot,tbody,table', isRoot); - var lastAncestor = $_eby7xcm7jj6611ug.ancestor(edges.last(), 'thead,tfoot,tbody,table', isRoot); + var firstAncestor = $_hz10wm7jj68z9zq.ancestor(edges.first(), 'thead,tfoot,tbody,table', isRoot); + var lastAncestor = $_hz10wm7jj68z9zq.ancestor(edges.last(), 'thead,tfoot,tbody,table', isRoot); return firstAncestor.bind(function (fA) { return lastAncestor.bind(function (lA) { - return $_af5rtflljj6611ru.eq(fA, lA) ? $_9fjhizmyjj66123v.getBox(edges.table(), edges.first(), edges.last()) : Option.none(); + return $_71r8jdlljj68z9u5.eq(fA, lA) ? $_6e7ctomyjj68zaho.getBox(edges.table(), edges.first(), edges.last()) : Option.none(); }); }); }); }; - var $_dhtcf6mpjj6611za = { + var $_6djqbdmpjj68za93 = { retrieve: retrieve$1, retrieveBox: retrieveBox }; @@ -2709,7 +2709,7 @@ var table = (function () { var firstSelectedSelector = 'td[' + firstSelected + '],th[' + firstSelected + ']'; var lastSelected = 'data-mce-last-selected'; var lastSelectedSelector = 'td[' + lastSelected + '],th[' + lastSelected + ']'; - var $_ega3on2jj66124u = { + var $_dxf3ain2jj68zajp = { selected: constant(selected), selectedSelector: constant(selectedSelector), attributeSelector: constant(attributeSelector), @@ -2794,7 +2794,7 @@ var table = (function () { var cata = function (subject, onNone, onMultiple, onSingle) { return subject.fold(onNone, onMultiple, onSingle); }; - var $_1rprwxn3jj66124y = { + var $_65setjn3jj68zajz = { cata: cata, none: type$1.none, multiple: type$1.multiple, @@ -2802,21 +2802,21 @@ var table = (function () { }; var selection = function (cell, selections) { - return $_1rprwxn3jj66124y.cata(selections.get(), constant([]), identity, constant([cell])); + return $_65setjn3jj68zajz.cata(selections.get(), constant([]), identity, constant([cell])); }; var unmergable = function (cell, selections) { var hasSpan = function (elem) { - return $_1i6un8m2jj6611tq.has(elem, 'rowspan') && parseInt($_1i6un8m2jj6611tq.get(elem, 'rowspan'), 10) > 1 || $_1i6un8m2jj6611tq.has(elem, 'colspan') && parseInt($_1i6un8m2jj6611tq.get(elem, 'colspan'), 10) > 1; + return $_f2f6ivm2jj68z9y8.has(elem, 'rowspan') && parseInt($_f2f6ivm2jj68z9y8.get(elem, 'rowspan'), 10) > 1 || $_f2f6ivm2jj68z9y8.has(elem, 'colspan') && parseInt($_f2f6ivm2jj68z9y8.get(elem, 'colspan'), 10) > 1; }; var candidates = selection(cell, selections); return candidates.length > 0 && forall(candidates, hasSpan) ? Option.some(candidates) : Option.none(); }; var mergable = function (table, selections) { - return $_1rprwxn3jj66124y.cata(selections.get(), Option.none, function (cells, _env) { + return $_65setjn3jj68zajz.cata(selections.get(), Option.none, function (cells, _env) { if (cells.length === 0) { return Option.none(); } - return $_dhtcf6mpjj6611za.retrieveBox(table, $_ega3on2jj66124u.firstSelectedSelector(), $_ega3on2jj66124u.lastSelectedSelector()).bind(function (bounds) { + return $_6djqbdmpjj68za93.retrieveBox(table, $_dxf3ain2jj68zajp.firstSelectedSelector(), $_dxf3ain2jj68zajp.lastSelectedSelector()).bind(function (bounds) { return cells.length > 1 ? Option.some({ bounds: constant(bounds), cells: constant(cells) @@ -2824,7 +2824,7 @@ var table = (function () { }); }, Option.none); }; - var $_6proydmojj6611yu = { + var $_9dlk2zmojj68za89 = { mergable: mergable, unmergable: unmergable, selection: selection @@ -2841,9 +2841,9 @@ var table = (function () { var forMenu = function (selections, table, cell) { return { element: constant(cell), - mergable: constant($_6proydmojj6611yu.mergable(table, selections)), - unmergable: constant($_6proydmojj6611yu.unmergable(cell, selections)), - selection: constant($_6proydmojj6611yu.selection(cell, selections)) + mergable: constant($_9dlk2zmojj68za89.mergable(table, selections)), + unmergable: constant($_9dlk2zmojj68za89.unmergable(cell, selections)), + selection: constant($_9dlk2zmojj68za89.selection(cell, selections)) }; }; var notCell$1 = function (element) { @@ -2855,12 +2855,12 @@ var table = (function () { element: constant(cell), mergable: Option.none, unmergable: Option.none, - selection: constant($_6proydmojj6611yu.selection(cell, selections)), + selection: constant($_9dlk2zmojj68za89.selection(cell, selections)), clipboard: constant(clipboard), generators: constant(generators) }; }; - var $_1y628smnjj6611yl = { + var $_2c11plmnjj68za7u = { noMenu: noMenu, forMenu: forMenu, notCell: notCell$1, @@ -2869,8 +2869,8 @@ var table = (function () { }; var extractSelected = function (cells) { - return $_kkb5dldjj6611p3.table(cells[0]).map($_4dh9zxmhjj6611xn.deep).map(function (replica) { - return [$_7gxb44l5jj6611nb.extract(replica, $_ega3on2jj66124u.attributeSelector())]; + return $_bb5w37ldjj68z9oi.table(cells[0]).map($_bpjvoxmhjj68za69.deep).map(function (replica) { + return [$_72flvvl5jj68z9jw.extract(replica, $_dxf3ain2jj68zajp.attributeSelector())]; }); }; var serializeElement = function (editor, elm) { @@ -2887,7 +2887,7 @@ var table = (function () { }); }; if (e.selection === true) { - $_1rprwxn3jj66124y.cata(selections.get(), noop, multiCellContext, noop); + $_65setjn3jj68zajz.cata(selections.get(), noop, multiCellContext, noop); } }); editor.on('BeforeSetContent', function (e) { @@ -2895,16 +2895,16 @@ var table = (function () { var cellOpt = Option.from(editor.dom.getParent(editor.selection.getStart(), 'th,td')); cellOpt.each(function (domCell) { var cell = Element$$1.fromDom(domCell); - var table = $_kkb5dldjj6611p3.table(cell); + var table = $_bb5w37ldjj68z9oi.table(cell); table.bind(function (table) { - var elements = filter($_eep9flmmjj6611ya.fromHtml(e.content), function (content) { - return $_50pc0qm3jj6611u1.name(content) !== 'meta'; + var elements = filter($_40508vmmjj68za7i.fromHtml(e.content), function (content) { + return $_a9t3wpm3jj68z9ys.name(content) !== 'meta'; }); - if (elements.length === 1 && $_50pc0qm3jj6611u1.name(elements[0]) === 'table') { + if (elements.length === 1 && $_a9t3wpm3jj68z9ys.name(elements[0]) === 'table') { e.preventDefault(); var doc = Element$$1.fromDom(editor.getDoc()); - var generators = $_9daz66mgjj6611wk.paste(doc); - var targets = $_1y628smnjj6611yl.paste(cell, elements[0], generators); + var generators = $_840xxpmgjj68za3w.paste(doc); + var targets = $_2c11plmnjj68za7u.paste(cell, elements[0], generators); actions.pasteCells(table, targets).each(function (rng) { editor.selection.setRng(rng); editor.focus(); @@ -2916,20 +2916,20 @@ var table = (function () { } }); }; - var $_cy95pl0jj6611m1 = { registerEvents: registerEvents }; + var $_3ekqckl0jj68z9g4 = { registerEvents: registerEvents }; function Dimension (name, getOffset) { var set = function (element, h) { if (!isNumber(h) && !h.match(/^[0-9]+$/)) throw name + '.set accepts only positive integer values. Value was ' + h; var dom = element.dom(); - if ($_8vo5ismcjj6611w6.isSupported(dom)) + if ($_bpaumomcjj68za31.isSupported(dom)) dom.style[name] = h + 'px'; }; var get = function (element) { var r = getOffset(element); if (r <= 0 || r === null) { - var css = $_ghtnaumbjj6611vg.get(element, name); + var css = $_8oaacwmbjj68za26.get(element, name); return parseFloat(css) || 0; } return r; @@ -2937,7 +2937,7 @@ var table = (function () { var getOuter = get; var aggregate = function (element, properties) { return foldl(properties, function (acc, property) { - var val = $_ghtnaumbjj6611vg.get(element, property); + var val = $_8oaacwmbjj68za26.get(element, property); var value = val === undefined ? 0 : parseInt(val, 10); return isNaN(value) ? acc : acc + value; }, 0); @@ -2958,7 +2958,7 @@ var table = (function () { var api$1 = Dimension('height', function (element) { var dom = element.dom(); - return $_ew2s0tm6jj6611ua.inBody(element) ? dom.getBoundingClientRect().height : dom.offsetHeight; + return $_43d7w1m6jj68z9ze.inBody(element) ? dom.getBoundingClientRect().height : dom.offsetHeight; }); var set$3 = function (element, h) { api$1.set(element, h); @@ -2979,9 +2979,9 @@ var table = (function () { 'margin-bottom' ]; var absMax = api$1.max(element, value, inclusions); - $_ghtnaumbjj6611vg.set(element, 'max-height', absMax + 'px'); + $_8oaacwmbjj68za26.set(element, 'max-height', absMax + 'px'); }; - var $_evf2zrn9jj66127c = { + var $_9xq6zon9jj68zaoz = { set: set$3, get: get$3, getOuter: getOuter, @@ -3010,16 +3010,16 @@ var table = (function () { 'margin-right' ]; var absMax = api$2.max(element, value, inclusions); - $_ghtnaumbjj6611vg.set(element, 'max-width', absMax + 'px'); + $_8oaacwmbjj68za26.set(element, 'max-width', absMax + 'px'); }; - var $_28gqsgnbjj66127s = { + var $_a9a7atnbjj68zapp = { set: set$4, get: get$4, getOuter: getOuter$1, setMax: setMax$1 }; - var platform = $_2fambnlqjj6611sh.detect(); + var platform = $_8lnul5lqjj68z9vm.detect(); var needManualCalc = function () { return platform.browser.isIE() || platform.browser.isEdge(); }; @@ -3028,7 +3028,7 @@ var table = (function () { return isNaN(num) ? fallback : num; }; var getProp = function (elm, name, fallback) { - return toNumber($_ghtnaumbjj6611vg.get(elm, name), fallback); + return toNumber($_8oaacwmbjj68za26.get(elm, name), fallback); }; var getCalculatedHeight = function (cell) { var paddingTop = getProp(cell, 'padding-top', 0); @@ -3036,17 +3036,17 @@ var table = (function () { var borderTop = getProp(cell, 'border-top-width', 0); var borderBottom = getProp(cell, 'border-bottom-width', 0); var height = cell.dom().getBoundingClientRect().height; - var boxSizing = $_ghtnaumbjj6611vg.get(cell, 'box-sizing'); + var boxSizing = $_8oaacwmbjj68za26.get(cell, 'box-sizing'); var borders = borderTop + borderBottom; return boxSizing === 'border-box' ? height : height - paddingTop - paddingBottom - borders; }; var getWidth = function (cell) { - return getProp(cell, 'width', $_28gqsgnbjj66127s.get(cell)); + return getProp(cell, 'width', $_a9a7atnbjj68zapp.get(cell)); }; var getHeight = function (cell) { - return needManualCalc() ? getCalculatedHeight(cell) : getProp(cell, 'height', $_evf2zrn9jj66127c.get(cell)); + return needManualCalc() ? getCalculatedHeight(cell) : getProp(cell, 'height', $_9xq6zon9jj68zaoz.get(cell)); }; - var $_7qlijln8jj66126x = { + var $_7j9adon8jj68zanz = { getWidth: getWidth, getHeight: getHeight }; @@ -3055,21 +3055,21 @@ var table = (function () { var percentageBasedSizeRegex = /(\d+(\.\d+)?)%/; var pixelBasedSizeRegex = /(\d+(\.\d+)?)px|em/; var setPixelWidth = function (cell, amount) { - $_ghtnaumbjj6611vg.set(cell, 'width', amount + 'px'); + $_8oaacwmbjj68za26.set(cell, 'width', amount + 'px'); }; var setPercentageWidth = function (cell, amount) { - $_ghtnaumbjj6611vg.set(cell, 'width', amount + '%'); + $_8oaacwmbjj68za26.set(cell, 'width', amount + '%'); }; var setHeight = function (cell, amount) { - $_ghtnaumbjj6611vg.set(cell, 'height', amount + 'px'); + $_8oaacwmbjj68za26.set(cell, 'height', amount + 'px'); }; var getHeightValue = function (cell) { - return $_ghtnaumbjj6611vg.getRaw(cell, 'height').getOrThunk(function () { - return $_7qlijln8jj66126x.getHeight(cell) + 'px'; + return $_8oaacwmbjj68za26.getRaw(cell, 'height').getOrThunk(function () { + return $_7j9adon8jj68zanz.getHeight(cell) + 'px'; }); }; var convert = function (cell, number, getter, setter) { - var newSize = $_kkb5dldjj6611p3.table(cell).map(function (table) { + var newSize = $_bb5w37ldjj68z9oi.table(cell).map(function (table) { var total = getter(table); return Math.floor(number / 100 * total); }).getOr(number); @@ -3078,13 +3078,13 @@ var table = (function () { }; var normalizePixelSize = function (value, cell, getter, setter) { var number = parseInt(value, 10); - return endsWith(value, '%') && $_50pc0qm3jj6611u1.name(cell) !== 'table' ? convert(cell, number, getter, setter) : number; + return endsWith(value, '%') && $_a9t3wpm3jj68z9ys.name(cell) !== 'table' ? convert(cell, number, getter, setter) : number; }; var getTotalHeight = function (cell) { var value = getHeightValue(cell); if (!value) - return $_evf2zrn9jj66127c.get(cell); - return normalizePixelSize(value, cell, $_evf2zrn9jj66127c.get, setHeight); + return $_9xq6zon9jj68zaoz.get(cell); + return normalizePixelSize(value, cell, $_9xq6zon9jj68zaoz.get, setHeight); }; var get$5 = function (cell, type, f) { var v = f(cell); @@ -3092,12 +3092,12 @@ var table = (function () { return v / span; }; var getSpan = function (cell, type) { - return $_1i6un8m2jj6611tq.has(cell, type) ? parseInt($_1i6un8m2jj6611tq.get(cell, type), 10) : 1; + return $_f2f6ivm2jj68z9y8.has(cell, type) ? parseInt($_f2f6ivm2jj68z9y8.get(cell, type), 10) : 1; }; var getRawWidth = function (element) { - var cssWidth = $_ghtnaumbjj6611vg.getRaw(element, 'width'); + var cssWidth = $_8oaacwmbjj68za26.getRaw(element, 'width'); return cssWidth.fold(function () { - return Option.from($_1i6un8m2jj6611tq.get(element, 'width')); + return Option.from($_f2f6ivm2jj68z9y8.get(element, 'width')); }, function (width) { return Option.some(width); }); @@ -3110,14 +3110,14 @@ var table = (function () { var percentMatch = percentageBasedSizeRegex.exec(width); return parseFloat(percentMatch[1]); } else { - var intWidth = $_28gqsgnbjj66127s.get(element); + var intWidth = $_a9a7atnbjj68zapp.get(element); return normalizePercentageWidth(intWidth, tableSize); } }; var getPercentageWidth = function (cell, tableSize) { var width = getRawWidth(cell); return width.fold(function () { - var intWidth = $_28gqsgnbjj66127s.get(cell); + var intWidth = $_a9a7atnbjj68zapp.get(cell); return normalizePercentageWidth(intWidth, tableSize); }, function (width) { return choosePercentageSize(cell, width, tableSize); @@ -3135,13 +3135,13 @@ var table = (function () { var floatWidth = parseFloat(percentMatch[1]); return normalizePixelWidth(floatWidth, tableSize); } else { - return $_28gqsgnbjj66127s.get(element); + return $_a9a7atnbjj68zapp.get(element); } }; var getPixelWidth = function (cell, tableSize) { var width = getRawWidth(cell); return width.fold(function () { - return $_28gqsgnbjj66127s.get(cell); + return $_a9a7atnbjj68zapp.get(cell); }, function (width) { return choosePixelSize(cell, width, tableSize); }); @@ -3164,9 +3164,9 @@ var table = (function () { }); }; var setGenericWidth = function (cell, amount, unit) { - $_ghtnaumbjj6611vg.set(cell, 'width', amount + unit); + $_8oaacwmbjj68za26.set(cell, 'width', amount + unit); }; - var $_dkys5xn7jj661264 = { + var $_6v5gj9n7jj68zam4 = { percentageBasedSizeRegex: constant(percentageBasedSizeRegex), pixelBasedSizeRegex: constant(pixelBasedSizeRegex), setPixelWidth: setPixelWidth, @@ -3181,26 +3181,26 @@ var table = (function () { }; var halve = function (main, other) { - var width = $_dkys5xn7jj661264.getGenericWidth(main); + var width = $_6v5gj9n7jj68zam4.getGenericWidth(main); width.each(function (width) { var newWidth = width.width() / 2; - $_dkys5xn7jj661264.setGenericWidth(main, newWidth, width.unit()); - $_dkys5xn7jj661264.setGenericWidth(other, newWidth, width.unit()); + $_6v5gj9n7jj68zam4.setGenericWidth(main, newWidth, width.unit()); + $_6v5gj9n7jj68zam4.setGenericWidth(other, newWidth, width.unit()); }); }; - var $_deg6ipn6jj661261 = { halve: halve }; + var $_bzaoy4n6jj68zam0 = { halve: halve }; var attached = function (element, scope) { var doc = scope || Element$$1.fromDom(document.documentElement); - return $_azkyflm8jj6611ui.ancestor(element, curry($_af5rtflljj6611ru.eq, doc)).isSome(); + return $_3315com8jj68z9zu.ancestor(element, curry($_71r8jdlljj68z9u5.eq, doc)).isSome(); }; var windowOf = function (element) { var dom = element.dom(); if (dom === dom.window && element instanceof Window) return element; - return $_50pc0qm3jj6611u1.isDocument(element) ? dom.defaultView || dom.parentWindow : null; + return $_a9t3wpm3jj68z9ys.isDocument(element) ? dom.defaultView || dom.parentWindow : null; }; - var $_eina30ngjj66128m = { + var $_7fvhdbngjj68zarj = { attached: attached, windowOf: windowOf }; @@ -3227,7 +3227,7 @@ var table = (function () { var absolute = function (element) { var doc = element.dom().ownerDocument; var body = doc.body; - var win = $_eina30ngjj66128m.windowOf(Element$$1.fromDom(doc)); + var win = $_7fvhdbngjj68zarj.windowOf(Element$$1.fromDom(doc)); var html = doc.documentElement; var scrollTop = firstDefinedOrZero(win.pageYOffset, html.scrollTop); var scrollLeft = firstDefinedOrZero(win.pageXOffset, html.scrollLeft); @@ -3246,11 +3246,11 @@ var table = (function () { var html = Element$$1.fromDom(doc.documentElement); if (body === dom) return Position(body.offsetLeft, body.offsetTop); - if (!$_eina30ngjj66128m.attached(element, html)) + if (!$_7fvhdbngjj68zarj.attached(element, html)) return Position(0, 0); return boxPosition(dom); }; - var $_11vv3knfjj66128k = { + var $_ftl34knfjj68zare = { absolute: absolute, relative: relative, viewport: viewport @@ -3259,11 +3259,11 @@ var table = (function () { var rowInfo = Immutable('row', 'y'); var colInfo = Immutable('col', 'x'); var rtlEdge = function (cell) { - var pos = $_11vv3knfjj66128k.absolute(cell); - return pos.left() + $_28gqsgnbjj66127s.getOuter(cell); + var pos = $_ftl34knfjj68zare.absolute(cell); + return pos.left() + $_a9a7atnbjj68zapp.getOuter(cell); }; var ltrEdge = function (cell) { - return $_11vv3knfjj66128k.absolute(cell).left(); + return $_ftl34knfjj68zare.absolute(cell).left(); }; var getLeftEdge = function (index, cell) { return colInfo(index, ltrEdge(cell)); @@ -3272,13 +3272,13 @@ var table = (function () { return colInfo(index, rtlEdge(cell)); }; var getTop = function (cell) { - return $_11vv3knfjj66128k.absolute(cell).top(); + return $_ftl34knfjj68zare.absolute(cell).top(); }; var getTopEdge = function (index, cell) { return rowInfo(index, getTop(cell)); }; var getBottomEdge = function (index, cell) { - return rowInfo(index, getTop(cell) + $_evf2zrn9jj66127c.getOuter(cell)); + return rowInfo(index, getTop(cell) + $_9xq6zon9jj68zaoz.getOuter(cell)); }; var findPositions = function (getInnerEdge, getOuterEdge, array) { if (array.length === 0) @@ -3311,20 +3311,20 @@ var table = (function () { edge: rtlEdge, positions: curry(findPositions, getRightEdge, getLeftEdge) }; - var $_auy05hnejj66127y = { + var $_gcq8ovnejj68zaq1 = { height: height, rtl: rtl, ltr: ltr }; - var $_20815pndjj66127x = { - ltr: $_auy05hnejj66127y.ltr, - rtl: $_auy05hnejj66127y.rtl + var $_d71lp7ndjj68zapx = { + ltr: $_gcq8ovnejj68zaq1.ltr, + rtl: $_gcq8ovnejj68zaq1.rtl }; function TableDirection (directionAt) { var auto = function (table) { - return directionAt(table).isRtl() ? $_20815pndjj66127x.rtl : $_20815pndjj66127x.ltr; + return directionAt(table).isRtl() ? $_d71lp7ndjj68zapx.rtl : $_d71lp7ndjj68zapx.ltr; }; var delta = function (amount, table) { return auto(table).delta(amount, table); @@ -3343,11 +3343,11 @@ var table = (function () { } var getGridSize = function (table) { - var input = $_5afhghlbjj6611ok.fromTable(table); - var warehouse = $_1zsc94majj6611v4.generate(input); + var input = $_5drlwclbjj68z9n8.fromTable(table); + var warehouse = $_6lblv1majj68za1f.generate(input); return warehouse.grid(); }; - var $_3iycqjnijj66128y = { getGridSize: getGridSize }; + var $_aa88nnnijj68zas5 = { getGridSize: getGridSize }; var Cell = function (initial) { var value = initial; @@ -3406,8 +3406,8 @@ var table = (function () { }; var elementToData = function (element) { - var colspan = $_1i6un8m2jj6611tq.has(element, 'colspan') ? parseInt($_1i6un8m2jj6611tq.get(element, 'colspan'), 10) : 1; - var rowspan = $_1i6un8m2jj6611tq.has(element, 'rowspan') ? parseInt($_1i6un8m2jj6611tq.get(element, 'rowspan'), 10) : 1; + var colspan = $_f2f6ivm2jj68z9y8.has(element, 'colspan') ? parseInt($_f2f6ivm2jj68z9y8.get(element, 'colspan'), 10) : 1; + var rowspan = $_f2f6ivm2jj68z9y8.has(element, 'rowspan') ? parseInt($_f2f6ivm2jj68z9y8.get(element, 'rowspan'), 10) : 1; return { element: constant(element), colspan: constant(colspan), @@ -3493,8 +3493,8 @@ var table = (function () { colspan: constant(1), rowspan: constant(1) }); - $_ghtnaumbjj6611vg.remove(raw, 'width'); - $_ghtnaumbjj6611vg.remove(cell, 'width'); + $_8oaacwmbjj68za26.remove(raw, 'width'); + $_8oaacwmbjj68za26.remove(cell, 'width'); return raw; }; }; @@ -3509,7 +3509,7 @@ var table = (function () { 'replace', 'gap' ]); - var $_tf0s1nkjj66129o = { + var $_5k5ziznkjj68zaue = { modification: modification, transform: transform, merging: merging @@ -3608,7 +3608,7 @@ var table = (function () { var isInline = function (universe, item) { return !(isBlock(universe, item) || isEmptyTag(universe, item)) && universe.property().name(item) !== 'li'; }; - var $_csm4oonpjj6612bq = { + var $_2z5v3ynpjj68zazh = { isBlock: isBlock, isList: isList, isFormatting: isFormatting, @@ -3621,30 +3621,30 @@ var table = (function () { var universe$1 = DomUniverse(); var isBlock$1 = function (element) { - return $_csm4oonpjj6612bq.isBlock(universe$1, element); + return $_2z5v3ynpjj68zazh.isBlock(universe$1, element); }; var isList$1 = function (element) { - return $_csm4oonpjj6612bq.isList(universe$1, element); + return $_2z5v3ynpjj68zazh.isList(universe$1, element); }; var isFormatting$1 = function (element) { - return $_csm4oonpjj6612bq.isFormatting(universe$1, element); + return $_2z5v3ynpjj68zazh.isFormatting(universe$1, element); }; var isHeading$1 = function (element) { - return $_csm4oonpjj6612bq.isHeading(universe$1, element); + return $_2z5v3ynpjj68zazh.isHeading(universe$1, element); }; var isContainer$1 = function (element) { - return $_csm4oonpjj6612bq.isContainer(universe$1, element); + return $_2z5v3ynpjj68zazh.isContainer(universe$1, element); }; var isEmptyTag$1 = function (element) { - return $_csm4oonpjj6612bq.isEmptyTag(universe$1, element); + return $_2z5v3ynpjj68zazh.isEmptyTag(universe$1, element); }; var isFrame$1 = function (element) { - return $_csm4oonpjj6612bq.isFrame(universe$1, element); + return $_2z5v3ynpjj68zazh.isFrame(universe$1, element); }; var isInline$1 = function (element) { - return $_csm4oonpjj6612bq.isInline(universe$1, element); + return $_2z5v3ynpjj68zazh.isInline(universe$1, element); }; - var $_g1na11nojj6612bl = { + var $_81ztjtnojj68zaz3 = { isBlock: isBlock$1, isList: isList$1, isFormatting: isFormatting$1, @@ -3657,45 +3657,45 @@ var table = (function () { var merge = function (cells) { var isBr = function (el) { - return $_50pc0qm3jj6611u1.name(el) === 'br'; + return $_a9t3wpm3jj68z9ys.name(el) === 'br'; }; var advancedBr = function (children) { return forall(children, function (c) { - return isBr(c) || $_50pc0qm3jj6611u1.isText(c) && $_3tom9amkjj6611y1.get(c).trim().length === 0; + return isBr(c) || $_a9t3wpm3jj68z9ys.isText(c) && $_dxqxbemkjj68za6x.get(c).trim().length === 0; }); }; var isListItem = function (el) { - return $_50pc0qm3jj6611u1.name(el) === 'li' || $_azkyflm8jj6611ui.ancestor(el, $_g1na11nojj6612bl.isList).isSome(); + return $_a9t3wpm3jj68z9ys.name(el) === 'li' || $_3315com8jj68z9zu.ancestor(el, $_81ztjtnojj68zaz3.isList).isSome(); }; var siblingIsBlock = function (el) { - return $_9ghx71ljjj6611ra.nextSibling(el).map(function (rightSibling) { - if ($_g1na11nojj6612bl.isBlock(rightSibling)) + return $_agswhiljjj68z9t1.nextSibling(el).map(function (rightSibling) { + if ($_81ztjtnojj68zaz3.isBlock(rightSibling)) return true; - if ($_g1na11nojj6612bl.isEmptyTag(rightSibling)) { - return $_50pc0qm3jj6611u1.name(rightSibling) === 'img' ? false : true; + if ($_81ztjtnojj68zaz3.isEmptyTag(rightSibling)) { + return $_a9t3wpm3jj68z9ys.name(rightSibling) === 'img' ? false : true; } }).getOr(false); }; var markCell = function (cell) { - return $_fp4fd1mijj6611xr.last(cell).bind(function (rightEdge) { + return $_c2gkadmijj68za6e.last(cell).bind(function (rightEdge) { var rightSiblingIsBlock = siblingIsBlock(rightEdge); - return $_9ghx71ljjj6611ra.parent(rightEdge).map(function (parent) { - return rightSiblingIsBlock === true || isListItem(parent) || isBr(rightEdge) || $_g1na11nojj6612bl.isBlock(parent) && !$_af5rtflljj6611ru.eq(cell, parent) ? [] : [Element$$1.fromTag('br')]; + return $_agswhiljjj68z9t1.parent(rightEdge).map(function (parent) { + return rightSiblingIsBlock === true || isListItem(parent) || isBr(rightEdge) || $_81ztjtnojj68zaz3.isBlock(parent) && !$_71r8jdlljj68z9u5.eq(cell, parent) ? [] : [Element$$1.fromTag('br')]; }); }).getOr([]); }; var markContent = function () { var content = bind(cells, function (cell) { - var children = $_9ghx71ljjj6611ra.children(cell); + var children = $_agswhiljjj68z9t1.children(cell); return advancedBr(children) ? [] : children.concat(markCell(cell)); }); return content.length === 0 ? [Element$$1.fromTag('br')] : content; }; var contents = markContent(); - $_7nurwwmejj6611wa.empty(cells[0]); - $_fn1ce5mfjj6611wf.append(cells[0], contents); + $_1t3bv6mejj68za3c.empty(cells[0]); + $_81fruumfjj68za3l.append(cells[0], contents); }; - var $_5wz96vnnjj6612al = { merge: merge }; + var $_b7gs93nnjj68zawj = { merge: merge }; var shallow$1 = function (old, nu) { return nu; @@ -3753,12 +3753,12 @@ var table = (function () { cells[index] = cell; }; var setCells = function (gridRow, cells) { - return $_51e7qdlcjj6611oy.rowcells(cells, gridRow.section()); + return $_ehjah3lcjj68z9o7.rowcells(cells, gridRow.section()); }; var mapCells = function (gridRow, f) { var cells = gridRow.cells(); var r = map(cells, f); - return $_51e7qdlcjj6611oy.rowcells(r, gridRow.section()); + return $_ehjah3lcjj68z9o7.rowcells(r, gridRow.section()); }; var getCell = function (gridRow, index) { return gridRow.cells()[index]; @@ -3769,7 +3769,7 @@ var table = (function () { var cellLength = function (gridRow) { return gridRow.cells().length; }; - var $_97mop1nvjj6612d9 = { + var $_a5u6cmnvjj68zb3c = { addCell: addCell, setCells: setCells, mutateCell: mutateCell, @@ -3781,7 +3781,7 @@ var table = (function () { var getColumn = function (grid, index) { return map(grid, function (row) { - return $_97mop1nvjj6612d9.getCell(row, index); + return $_a5u6cmnvjj68zb3c.getCell(row, index); }); }; var getRow = function (grid, index) { @@ -3810,7 +3810,7 @@ var table = (function () { rowspan: constant(endRowIndex) }; }; - var $_6a8daynujj6612d1 = { subgrid: subgrid }; + var $_31jx5fnujj68zb2m = { subgrid: subgrid }; var toDetails = function (grid, comparator) { var seen = map(grid, function (row, ri) { @@ -3828,14 +3828,14 @@ var table = (function () { return map(grid, function (row, ri) { var details = bind(row.cells(), function (cell, ci) { if (seen[ri][ci] === false) { - var result = $_6a8daynujj6612d1.subgrid(grid, ri, ci, comparator); + var result = $_31jx5fnujj68zb2m.subgrid(grid, ri, ci, comparator); updateSeen(ri, ci, result.rowspan(), result.colspan()); - return [$_51e7qdlcjj6611oy.detailnew(cell.element(), result.rowspan(), result.colspan(), cell.isNew())]; + return [$_ehjah3lcjj68z9o7.detailnew(cell.element(), result.rowspan(), result.colspan(), cell.isNew())]; } else { return []; } }); - return $_51e7qdlcjj6611oy.rowdetails(details, row.section()); + return $_ehjah3lcjj68z9o7.rowdetails(details, row.section()); }); }; var toGrid = function (warehouse, generators, isNew) { @@ -3843,59 +3843,59 @@ var table = (function () { for (var i = 0; i < warehouse.grid().rows(); i++) { var rowCells = []; for (var j = 0; j < warehouse.grid().columns(); j++) { - var element = $_1zsc94majj6611v4.getAt(warehouse, i, j).map(function (item) { - return $_51e7qdlcjj6611oy.elementnew(item.element(), isNew); + var element = $_6lblv1majj68za1f.getAt(warehouse, i, j).map(function (item) { + return $_ehjah3lcjj68z9o7.elementnew(item.element(), isNew); }).getOrThunk(function () { - return $_51e7qdlcjj6611oy.elementnew(generators.gap(), true); + return $_ehjah3lcjj68z9o7.elementnew(generators.gap(), true); }); rowCells.push(element); } - var row = $_51e7qdlcjj6611oy.rowcells(rowCells, warehouse.all()[i].section()); + var row = $_ehjah3lcjj68z9o7.rowcells(rowCells, warehouse.all()[i].section()); grid.push(row); } return grid; }; - var $_5we2asntjj6612cs = { + var $_g4ah4jntjj68zb27 = { toDetails: toDetails, toGrid: toGrid }; var setIfNot = function (element, property, value, ignore) { if (value === ignore) - $_1i6un8m2jj6611tq.remove(element, property); + $_f2f6ivm2jj68z9y8.remove(element, property); else - $_1i6un8m2jj6611tq.set(element, property, value); + $_f2f6ivm2jj68z9y8.set(element, property, value); }; var render = function (table, grid) { var newRows = []; var newCells = []; var renderSection = function (gridSection, sectionName) { - var section = $_eby7xcm7jj6611ug.child(table, sectionName).getOrThunk(function () { - var tb = Element$$1.fromTag(sectionName, $_9ghx71ljjj6611ra.owner(table).dom()); - $_g3ng6wmdjj6611w8.append(table, tb); + var section = $_hz10wm7jj68z9zq.child(table, sectionName).getOrThunk(function () { + var tb = Element$$1.fromTag(sectionName, $_agswhiljjj68z9t1.owner(table).dom()); + $_1egjydmdjj68za38.append(table, tb); return tb; }); - $_7nurwwmejj6611wa.empty(section); + $_1t3bv6mejj68za3c.empty(section); var rows = map(gridSection, function (row) { if (row.isNew()) { newRows.push(row.element()); } var tr = row.element(); - $_7nurwwmejj6611wa.empty(tr); + $_1t3bv6mejj68za3c.empty(tr); each(row.cells(), function (cell) { if (cell.isNew()) { newCells.push(cell.element()); } setIfNot(cell.element(), 'colspan', cell.colspan(), 1); setIfNot(cell.element(), 'rowspan', cell.rowspan(), 1); - $_g3ng6wmdjj6611w8.append(tr, cell.element()); + $_1egjydmdjj68za38.append(tr, cell.element()); }); return tr; }); - $_fn1ce5mfjj6611wf.append(section, rows); + $_81fruumfjj68za3l.append(section, rows); }; var removeSection = function (sectionName) { - $_eby7xcm7jj6611ug.child(table, sectionName).each($_7nurwwmejj6611wa.remove); + $_hz10wm7jj68z9zq.child(table, sectionName).each($_1t3bv6mejj68za3c.remove); }; var renderOrRemoveSection = function (gridSection, sectionName) { if (gridSection.length > 0) { @@ -3930,18 +3930,18 @@ var table = (function () { }; var copy$2 = function (grid) { var rows = map(grid, function (row) { - var tr = $_4dh9zxmhjj6611xn.shallow(row.element()); + var tr = $_bpjvoxmhjj68za69.shallow(row.element()); each(row.cells(), function (cell) { - var clonedCell = $_4dh9zxmhjj6611xn.deep(cell.element()); + var clonedCell = $_bpjvoxmhjj68za69.deep(cell.element()); setIfNot(clonedCell, 'colspan', cell.colspan(), 1); setIfNot(clonedCell, 'rowspan', cell.rowspan(), 1); - $_g3ng6wmdjj6611w8.append(tr, clonedCell); + $_1egjydmdjj68za38.append(tr, clonedCell); }); return tr; }); return rows; }; - var $_cqjziznwjj6612df = { + var $_192yq1nwjj68zb3s = { render: render, copy: copy$2 }; @@ -4013,7 +4013,7 @@ var table = (function () { }); }); }; - var $_ct5zqanzjj6612fi = { + var $_9vhe2knzjj68zbav = { repeat: repeat, range: range$1, unique: unique, @@ -4022,12 +4022,12 @@ var table = (function () { var columns = function (warehouse) { var grid = warehouse.grid(); - var cols = $_ct5zqanzjj6612fi.range(0, grid.columns()); - var rows = $_ct5zqanzjj6612fi.range(0, grid.rows()); + var cols = $_9vhe2knzjj68zbav.range(0, grid.columns()); + var rows = $_9vhe2knzjj68zbav.range(0, grid.rows()); return map(cols, function (col) { var getBlock = function () { return bind(rows, function (r) { - return $_1zsc94majj6611v4.getAt(warehouse, r, col).filter(function (detail) { + return $_6lblv1majj68za1f.getAt(warehouse, r, col).filter(function (detail) { return detail.column() === col; }).fold(constant([]), function (detail) { return [detail]; @@ -4038,7 +4038,7 @@ var table = (function () { return detail.colspan() === 1; }; var getFallback = function () { - return $_1zsc94majj6611v4.getAt(warehouse, 0, col); + return $_6lblv1majj68za1f.getAt(warehouse, 0, col); }; return decide(getBlock, isSingle, getFallback); }); @@ -4055,12 +4055,12 @@ var table = (function () { }; var rows$1 = function (warehouse) { var grid = warehouse.grid(); - var rows = $_ct5zqanzjj6612fi.range(0, grid.rows()); - var cols = $_ct5zqanzjj6612fi.range(0, grid.columns()); + var rows = $_9vhe2knzjj68zbav.range(0, grid.rows()); + var cols = $_9vhe2knzjj68zbav.range(0, grid.columns()); return map(rows, function (row) { var getBlock = function () { return bind(cols, function (c) { - return $_1zsc94majj6611v4.getAt(warehouse, row, c).filter(function (detail) { + return $_6lblv1majj68za1f.getAt(warehouse, row, c).filter(function (detail) { return detail.row() === row; }).fold(constant([]), function (detail) { return [detail]; @@ -4071,26 +4071,26 @@ var table = (function () { return detail.rowspan() === 1; }; var getFallback = function () { - return $_1zsc94majj6611v4.getAt(warehouse, row, 0); + return $_6lblv1majj68za1f.getAt(warehouse, row, 0); }; return decide(getBlock, isSingle, getFallback); }); }; - var $_e6vefanyjj6612f5 = { + var $_sl1xxnyjj68zb9o = { columns: columns, rows: rows$1 }; var col = function (column, x, y, w, h) { var blocker = Element$$1.fromTag('div'); - $_ghtnaumbjj6611vg.setAll(blocker, { + $_8oaacwmbjj68za26.setAll(blocker, { position: 'absolute', left: x - w / 2 + 'px', top: y + 'px', height: h + 'px', width: w + 'px' }); - $_1i6un8m2jj6611tq.setAll(blocker, { + $_f2f6ivm2jj68z9y8.setAll(blocker, { 'data-column': column, 'role': 'presentation' }); @@ -4098,20 +4098,20 @@ var table = (function () { }; var row$1 = function (row, x, y, w, h) { var blocker = Element$$1.fromTag('div'); - $_ghtnaumbjj6611vg.setAll(blocker, { + $_8oaacwmbjj68za26.setAll(blocker, { position: 'absolute', left: x + 'px', top: y - h / 2 + 'px', height: h + 'px', width: w + 'px' }); - $_1i6un8m2jj6611tq.setAll(blocker, { + $_f2f6ivm2jj68z9y8.setAll(blocker, { 'data-row': row, 'role': 'presentation' }); return blocker; }; - var $_b2r64xo0jj6612fy = { + var $_ae47npo0jj68zbbs = { col: col, row: row$1 }; @@ -4125,7 +4125,7 @@ var table = (function () { }; var styles = css('ephox-snooker'); - var $_5qgu4fo1jj6612g9 = { resolve: styles.resolve }; + var $_88o89ro1jj68zbcj = { resolve: styles.resolve }; function Toggler (turnOff, turnOn, initial) { var active = initial || false; @@ -4153,13 +4153,13 @@ var table = (function () { } var read = function (element, attr) { - var value = $_1i6un8m2jj6611tq.get(element, attr); + var value = $_f2f6ivm2jj68z9y8.get(element, attr); return value === undefined || value === '' ? [] : value.split(' '); }; var add = function (element, attr, id) { var old = read(element, attr); var nu = old.concat([id]); - $_1i6un8m2jj6611tq.set(element, attr, nu.join(' ')); + $_f2f6ivm2jj68z9y8.set(element, attr, nu.join(' ')); return true; }; var remove$3 = function (element, attr, id) { @@ -4167,12 +4167,12 @@ var table = (function () { return v !== id; }); if (nu.length > 0) - $_1i6un8m2jj6611tq.set(element, attr, nu.join(' ')); + $_f2f6ivm2jj68z9y8.set(element, attr, nu.join(' ')); else - $_1i6un8m2jj6611tq.remove(element, attr); + $_f2f6ivm2jj68z9y8.remove(element, attr); return false; }; - var $_5md70oo6jj6612gn = { + var $_ceiliio6jj68zbdq = { read: read, add: add, remove: remove$3 @@ -4182,13 +4182,13 @@ var table = (function () { return element.dom().classList !== undefined; }; var get$6 = function (element) { - return $_5md70oo6jj6612gn.read(element, 'class'); + return $_ceiliio6jj68zbdq.read(element, 'class'); }; var add$1 = function (element, clazz) { - return $_5md70oo6jj6612gn.add(element, 'class', clazz); + return $_ceiliio6jj68zbdq.add(element, 'class', clazz); }; var remove$4 = function (element, clazz) { - return $_5md70oo6jj6612gn.remove(element, 'class', clazz); + return $_ceiliio6jj68zbdq.remove(element, 'class', clazz); }; var toggle = function (element, clazz) { if (contains(get$6(element), clazz)) { @@ -4197,7 +4197,7 @@ var table = (function () { return add$1(element, clazz); } }; - var $_enhqj6o5jj6612gh = { + var $_c4c5svo5jj68zbd8 = { get: get$6, add: add$1, remove: remove$4, @@ -4206,49 +4206,49 @@ var table = (function () { }; var add$2 = function (element, clazz) { - if ($_enhqj6o5jj6612gh.supports(element)) + if ($_c4c5svo5jj68zbd8.supports(element)) element.dom().classList.add(clazz); else - $_enhqj6o5jj6612gh.add(element, clazz); + $_c4c5svo5jj68zbd8.add(element, clazz); }; var cleanClass = function (element) { - var classList = $_enhqj6o5jj6612gh.supports(element) ? element.dom().classList : $_enhqj6o5jj6612gh.get(element); + var classList = $_c4c5svo5jj68zbd8.supports(element) ? element.dom().classList : $_c4c5svo5jj68zbd8.get(element); if (classList.length === 0) { - $_1i6un8m2jj6611tq.remove(element, 'class'); + $_f2f6ivm2jj68z9y8.remove(element, 'class'); } }; var remove$5 = function (element, clazz) { - if ($_enhqj6o5jj6612gh.supports(element)) { + if ($_c4c5svo5jj68zbd8.supports(element)) { var classList = element.dom().classList; classList.remove(clazz); } else - $_enhqj6o5jj6612gh.remove(element, clazz); + $_c4c5svo5jj68zbd8.remove(element, clazz); cleanClass(element); }; var toggle$1 = function (element, clazz) { - return $_enhqj6o5jj6612gh.supports(element) ? element.dom().classList.toggle(clazz) : $_enhqj6o5jj6612gh.toggle(element, clazz); + return $_c4c5svo5jj68zbd8.supports(element) ? element.dom().classList.toggle(clazz) : $_c4c5svo5jj68zbd8.toggle(element, clazz); }; var toggler = function (element, clazz) { - var hasClasslist = $_enhqj6o5jj6612gh.supports(element); + var hasClasslist = $_c4c5svo5jj68zbd8.supports(element); var classList = element.dom().classList; var off = function () { if (hasClasslist) classList.remove(clazz); else - $_enhqj6o5jj6612gh.remove(element, clazz); + $_c4c5svo5jj68zbd8.remove(element, clazz); }; var on = function () { if (hasClasslist) classList.add(clazz); else - $_enhqj6o5jj6612gh.add(element, clazz); + $_c4c5svo5jj68zbd8.add(element, clazz); }; return Toggler(off, on, has$1(element, clazz)); }; var has$1 = function (element, clazz) { - return $_enhqj6o5jj6612gh.supports(element) && element.dom().classList.contains(clazz); + return $_c4c5svo5jj68zbd8.supports(element) && element.dom().classList.contains(clazz); }; - var $_e55qa3o3jj6612ge = { + var $_4cu61eo3jj68zbcy = { add: add$2, remove: remove$5, toggle: toggle$1, @@ -4256,74 +4256,74 @@ var table = (function () { has: has$1 }; - var resizeBar = $_5qgu4fo1jj6612g9.resolve('resizer-bar'); - var resizeRowBar = $_5qgu4fo1jj6612g9.resolve('resizer-rows'); - var resizeColBar = $_5qgu4fo1jj6612g9.resolve('resizer-cols'); + var resizeBar = $_88o89ro1jj68zbcj.resolve('resizer-bar'); + var resizeRowBar = $_88o89ro1jj68zbcj.resolve('resizer-rows'); + var resizeColBar = $_88o89ro1jj68zbcj.resolve('resizer-cols'); var BAR_THICKNESS = 7; var clear = function (wire) { - var previous = $_fhzhu6m4jj6611u4.descendants(wire.parent(), '.' + resizeBar); - each(previous, $_7nurwwmejj6611wa.remove); + var previous = $_4ve49em4jj68z9yy.descendants(wire.parent(), '.' + resizeBar); + each(previous, $_1t3bv6mejj68za3c.remove); }; var drawBar = function (wire, positions, create) { var origin = wire.origin(); each(positions, function (cpOption, i) { cpOption.each(function (cp) { var bar = create(origin, cp); - $_e55qa3o3jj6612ge.add(bar, resizeBar); - $_g3ng6wmdjj6611w8.append(wire.parent(), bar); + $_4cu61eo3jj68zbcy.add(bar, resizeBar); + $_1egjydmdjj68za38.append(wire.parent(), bar); }); }); }; var refreshCol = function (wire, colPositions, position, tableHeight) { drawBar(wire, colPositions, function (origin, cp) { - var colBar = $_b2r64xo0jj6612fy.col(cp.col(), cp.x() - origin.left(), position.top() - origin.top(), BAR_THICKNESS, tableHeight); - $_e55qa3o3jj6612ge.add(colBar, resizeColBar); + var colBar = $_ae47npo0jj68zbbs.col(cp.col(), cp.x() - origin.left(), position.top() - origin.top(), BAR_THICKNESS, tableHeight); + $_4cu61eo3jj68zbcy.add(colBar, resizeColBar); return colBar; }); }; var refreshRow = function (wire, rowPositions, position, tableWidth) { drawBar(wire, rowPositions, function (origin, cp) { - var rowBar = $_b2r64xo0jj6612fy.row(cp.row(), position.left() - origin.left(), cp.y() - origin.top(), tableWidth, BAR_THICKNESS); - $_e55qa3o3jj6612ge.add(rowBar, resizeRowBar); + var rowBar = $_ae47npo0jj68zbbs.row(cp.row(), position.left() - origin.left(), cp.y() - origin.top(), tableWidth, BAR_THICKNESS); + $_4cu61eo3jj68zbcy.add(rowBar, resizeRowBar); return rowBar; }); }; var refreshGrid = function (wire, table, rows, cols, hdirection, vdirection) { - var position = $_11vv3knfjj66128k.absolute(table); + var position = $_ftl34knfjj68zare.absolute(table); var rowPositions = rows.length > 0 ? hdirection.positions(rows, table) : []; - refreshRow(wire, rowPositions, position, $_28gqsgnbjj66127s.getOuter(table)); + refreshRow(wire, rowPositions, position, $_a9a7atnbjj68zapp.getOuter(table)); var colPositions = cols.length > 0 ? vdirection.positions(cols, table) : []; - refreshCol(wire, colPositions, position, $_evf2zrn9jj66127c.getOuter(table)); + refreshCol(wire, colPositions, position, $_9xq6zon9jj68zaoz.getOuter(table)); }; var refresh = function (wire, table, hdirection, vdirection) { clear(wire); - var list = $_5afhghlbjj6611ok.fromTable(table); - var warehouse = $_1zsc94majj6611v4.generate(list); - var rows = $_e6vefanyjj6612f5.rows(warehouse); - var cols = $_e6vefanyjj6612f5.columns(warehouse); + var list = $_5drlwclbjj68z9n8.fromTable(table); + var warehouse = $_6lblv1majj68za1f.generate(list); + var rows = $_sl1xxnyjj68zb9o.rows(warehouse); + var cols = $_sl1xxnyjj68zb9o.columns(warehouse); refreshGrid(wire, table, rows, cols, hdirection, vdirection); }; var each$2 = function (wire, f) { - var bars = $_fhzhu6m4jj6611u4.descendants(wire.parent(), '.' + resizeBar); + var bars = $_4ve49em4jj68z9yy.descendants(wire.parent(), '.' + resizeBar); each(bars, f); }; var hide = function (wire) { each$2(wire, function (bar) { - $_ghtnaumbjj6611vg.set(bar, 'display', 'none'); + $_8oaacwmbjj68za26.set(bar, 'display', 'none'); }); }; var show = function (wire) { each$2(wire, function (bar) { - $_ghtnaumbjj6611vg.set(bar, 'display', 'block'); + $_8oaacwmbjj68za26.set(bar, 'display', 'block'); }); }; var isRowBar = function (element) { - return $_e55qa3o3jj6612ge.has(element, resizeRowBar); + return $_4cu61eo3jj68zbcy.has(element, resizeRowBar); }; var isColBar = function (element) { - return $_e55qa3o3jj6612ge.has(element, resizeColBar); + return $_4cu61eo3jj68zbcy.has(element, resizeColBar); }; - var $_93oxdpnxjj6612ed = { + var $_24pgu3nxjj68zb6c = { refresh: refresh, hide: hide, show: show, @@ -4333,27 +4333,27 @@ var table = (function () { }; var fromWarehouse = function (warehouse, generators) { - return $_5we2asntjj6612cs.toGrid(warehouse, generators, false); + return $_g4ah4jntjj68zb27.toGrid(warehouse, generators, false); }; var deriveRows = function (rendered, generators) { var findRow = function (details) { var rowOfCells = findMap(details, function (detail) { - return $_9ghx71ljjj6611ra.parent(detail.element()).map(function (row) { - var isNew = $_9ghx71ljjj6611ra.parent(row).isNone(); - return $_51e7qdlcjj6611oy.elementnew(row, isNew); + return $_agswhiljjj68z9t1.parent(detail.element()).map(function (row) { + var isNew = $_agswhiljjj68z9t1.parent(row).isNone(); + return $_ehjah3lcjj68z9o7.elementnew(row, isNew); }); }); return rowOfCells.getOrThunk(function () { - return $_51e7qdlcjj6611oy.elementnew(generators.row(), true); + return $_ehjah3lcjj68z9o7.elementnew(generators.row(), true); }); }; return map(rendered, function (details) { var row = findRow(details.details()); - return $_51e7qdlcjj6611oy.rowdatanew(row.element(), details.details(), details.section(), row.isNew()); + return $_ehjah3lcjj68z9o7.rowdatanew(row.element(), details.details(), details.section(), row.isNew()); }); }; var toDetailList = function (grid, generators) { - var rendered = $_5we2asntjj6612cs.toDetails(grid, $_af5rtflljj6611ru.eq); + var rendered = $_g4ah4jntjj68zb27.toDetails(grid, $_71r8jdlljj68z9u5.eq); return deriveRows(rendered, generators); }; var findInWarehouse = function (warehouse, element) { @@ -4361,16 +4361,16 @@ var table = (function () { return r.cells(); })); return find(all, function (e) { - return $_af5rtflljj6611ru.eq(element, e.element()); + return $_71r8jdlljj68z9u5.eq(element, e.element()); }); }; var run = function (operation, extract, adjustment, postAction, genWrappers) { return function (wire, table, target, generators, direction) { - var input = $_5afhghlbjj6611ok.fromTable(table); - var warehouse = $_1zsc94majj6611v4.generate(input); + var input = $_5drlwclbjj68z9n8.fromTable(table); + var warehouse = $_6lblv1majj68za1f.generate(input); var output = extract(warehouse, target).map(function (info) { var model = fromWarehouse(warehouse, generators); - var result = operation(model, info, $_af5rtflljj6611ru.eq, genWrappers(generators)); + var result = operation(model, info, $_71r8jdlljj68z9u5.eq, genWrappers(generators)); var grid = toDetailList(result.grid(), generators); return { grid: constant(grid), @@ -4380,10 +4380,10 @@ var table = (function () { return output.fold(function () { return Option.none(); }, function (out) { - var newElements = $_cqjziznwjj6612df.render(table, out.grid()); + var newElements = $_192yq1nwjj68zb3s.render(table, out.grid()); adjustment(table, out.grid(), direction); postAction(table); - $_93oxdpnxjj6612ed.refresh(wire, table, $_auy05hnejj66127y.height, direction); + $_24pgu3nxjj68zb6c.refresh(wire, table, $_gcq8ovnejj68zaq1.height, direction); return Option.some({ cursor: out.cursor, newRows: newElements.newRows, @@ -4393,12 +4393,12 @@ var table = (function () { }; }; var onCell = function (warehouse, target) { - return $_kkb5dldjj6611p3.cell(target.element()).bind(function (cell) { + return $_bb5w37ldjj68z9oi.cell(target.element()).bind(function (cell) { return findInWarehouse(warehouse, cell); }); }; var onPaste = function (warehouse, target) { - return $_kkb5dldjj6611p3.cell(target.element()).bind(function (cell) { + return $_bb5w37ldjj68z9oi.cell(target.element()).bind(function (cell) { return findInWarehouse(warehouse, cell).map(function (details) { return merge$1(details, { generators: target.generators, @@ -4409,7 +4409,7 @@ var table = (function () { }; var onPasteRows = function (warehouse, target) { var details = map(target.selection(), function (cell) { - return $_kkb5dldjj6611p3.cell(cell).bind(function (lc) { + return $_bb5w37ldjj68z9oi.cell(cell).bind(function (lc) { return findInWarehouse(warehouse, lc); }); }); @@ -4427,14 +4427,14 @@ var table = (function () { }; var onCells = function (warehouse, target) { var details = map(target.selection(), function (cell) { - return $_kkb5dldjj6611p3.cell(cell).bind(function (lc) { + return $_bb5w37ldjj68z9oi.cell(cell).bind(function (lc) { return findInWarehouse(warehouse, lc); }); }); var cells = cat(details); return cells.length > 0 ? Option.some(cells) : Option.none(); }; - var $_12cu30nqjj6612bx = { + var $_58rjmmnqjj68zb00 = { run: run, toDetailList: toDetailList, onCell: onCell, @@ -4540,11 +4540,11 @@ var table = (function () { }; var measure = function (startAddress, gridA, gridB) { - if (startAddress.row() >= gridA.length || startAddress.column() > $_97mop1nvjj6612d9.cellLength(gridA[0])) + if (startAddress.row() >= gridA.length || startAddress.column() > $_a5u6cmnvjj68zb3c.cellLength(gridA[0])) return Result.error('invalid start address out of table bounds, row: ' + startAddress.row() + ', column: ' + startAddress.column()); var rowRemainder = gridA.slice(startAddress.row()); var colRemainder = rowRemainder[0].cells().slice(startAddress.column()); - var colRequired = $_97mop1nvjj6612d9.cellLength(gridB[0]); + var colRequired = $_a5u6cmnvjj68zb3c.cellLength(gridB[0]); var rowRequired = gridB.length; return Result.value({ rowDelta: constant(rowRemainder.length - rowRequired), @@ -4552,8 +4552,8 @@ var table = (function () { }); }; var measureWidth = function (gridA, gridB) { - var colLengthA = $_97mop1nvjj6612d9.cellLength(gridA[0]); - var colLengthB = $_97mop1nvjj6612d9.cellLength(gridB[0]); + var colLengthA = $_a5u6cmnvjj68zb3c.cellLength(gridA[0]); + var colLengthB = $_a5u6cmnvjj68zb3c.cellLength(gridB[0]); return { rowDelta: constant(0), colDelta: constant(colLengthA - colLengthB) @@ -4561,17 +4561,17 @@ var table = (function () { }; var fill = function (cells, generator) { return map(cells, function () { - return $_51e7qdlcjj6611oy.elementnew(generator.cell(), true); + return $_ehjah3lcjj68z9o7.elementnew(generator.cell(), true); }); }; var rowFill = function (grid, amount, generator) { - return grid.concat($_ct5zqanzjj6612fi.repeat(amount, function (_row) { - return $_97mop1nvjj6612d9.setCells(grid[grid.length - 1], fill(grid[grid.length - 1].cells(), generator)); + return grid.concat($_9vhe2knzjj68zbav.repeat(amount, function (_row) { + return $_a5u6cmnvjj68zb3c.setCells(grid[grid.length - 1], fill(grid[grid.length - 1].cells(), generator)); })); }; var colFill = function (grid, amount, generator) { return map(grid, function (row) { - return $_97mop1nvjj6612d9.setCells(row, row.cells().concat(fill($_ct5zqanzjj6612fi.range(0, amount), generator))); + return $_a5u6cmnvjj68zb3c.setCells(row, row.cells().concat(fill($_9vhe2knzjj68zbav.range(0, amount), generator))); }); }; var tailor = function (gridA, delta, generator) { @@ -4581,7 +4581,7 @@ var table = (function () { var tailoredGrid = fillRows(modifiedCols, Math.abs(delta.rowDelta()), generator); return tailoredGrid; }; - var $_a4sd9ho8jj6612gz = { + var $_a3m9amo8jj68zbeo = { measure: measure, measureWidth: measureWidth, tailor: tailor @@ -4592,7 +4592,7 @@ var table = (function () { return grid; for (var i = bounds.startRow(); i <= bounds.finishRow(); i++) { for (var j = bounds.startCol(); j <= bounds.finishCol(); j++) { - $_97mop1nvjj6612d9.mutateCell(grid[i], j, $_51e7qdlcjj6611oy.elementnew(substitution(), false)); + $_a5u6cmnvjj68zb3c.mutateCell(grid[i], j, $_ehjah3lcjj68z9o7.elementnew(substitution(), false)); } } return grid; @@ -4600,11 +4600,11 @@ var table = (function () { var unmerge = function (grid, target, comparator, substitution) { var first = true; for (var i = 0; i < grid.length; i++) { - for (var j = 0; j < $_97mop1nvjj6612d9.cellLength(grid[0]); j++) { - var current = $_97mop1nvjj6612d9.getCellElement(grid[i], j); + for (var j = 0; j < $_a5u6cmnvjj68zb3c.cellLength(grid[0]); j++) { + var current = $_a5u6cmnvjj68zb3c.getCellElement(grid[i], j); var isToReplace = comparator(current, target); if (isToReplace === true && first === false) { - $_97mop1nvjj6612d9.mutateCell(grid[i], j, $_51e7qdlcjj6611oy.elementnew(substitution(), true)); + $_a5u6cmnvjj68zb3c.mutateCell(grid[i], j, $_ehjah3lcjj68z9o7.elementnew(substitution(), true)); } else if (isToReplace === true) { first = false; } @@ -4626,7 +4626,7 @@ var table = (function () { each(cells, function (cell) { var replacement = Option.none(); for (var i = index; i < grid.length; i++) { - for (var j = 0; j < $_97mop1nvjj6612d9.cellLength(grid[0]); j++) { + for (var j = 0; j < $_a5u6cmnvjj68zb3c.cellLength(grid[0]); j++) { var current = grid[i].cells()[j]; var isToReplace = comparator(current.element(), cell.element()); if (isToReplace) { @@ -4634,7 +4634,7 @@ var table = (function () { replacement = Option.some(substitution()); } replacement.each(function (sub) { - $_97mop1nvjj6612d9.mutateCell(grid[i], j, $_51e7qdlcjj6611oy.elementnew(sub, true)); + $_a5u6cmnvjj68zb3c.mutateCell(grid[i], j, $_ehjah3lcjj68z9o7.elementnew(sub, true)); }); } } @@ -4643,53 +4643,53 @@ var table = (function () { } return grid; }; - var $_arialhoajj6612hd = { + var $_9kwquroajj68zbfu = { merge: merge$2, unmerge: unmerge, splitRows: splitRows }; var isSpanning = function (grid, row, col, comparator) { - var candidate = $_97mop1nvjj6612d9.getCell(grid[row], col); + var candidate = $_a5u6cmnvjj68zb3c.getCell(grid[row], col); var matching = curry(comparator, candidate.element()); var currentRow = grid[row]; - return grid.length > 1 && $_97mop1nvjj6612d9.cellLength(currentRow) > 1 && (col > 0 && matching($_97mop1nvjj6612d9.getCellElement(currentRow, col - 1)) || col < currentRow.length - 1 && matching($_97mop1nvjj6612d9.getCellElement(currentRow, col + 1)) || row > 0 && matching($_97mop1nvjj6612d9.getCellElement(grid[row - 1], col)) || row < grid.length - 1 && matching($_97mop1nvjj6612d9.getCellElement(grid[row + 1], col))); + return grid.length > 1 && $_a5u6cmnvjj68zb3c.cellLength(currentRow) > 1 && (col > 0 && matching($_a5u6cmnvjj68zb3c.getCellElement(currentRow, col - 1)) || col < currentRow.length - 1 && matching($_a5u6cmnvjj68zb3c.getCellElement(currentRow, col + 1)) || row > 0 && matching($_a5u6cmnvjj68zb3c.getCellElement(grid[row - 1], col)) || row < grid.length - 1 && matching($_a5u6cmnvjj68zb3c.getCellElement(grid[row + 1], col))); }; var mergeTables = function (startAddress, gridA, gridB, generator, comparator) { var startRow = startAddress.row(); var startCol = startAddress.column(); var mergeHeight = gridB.length; - var mergeWidth = $_97mop1nvjj6612d9.cellLength(gridB[0]); + var mergeWidth = $_a5u6cmnvjj68zb3c.cellLength(gridB[0]); var endRow = startRow + mergeHeight; var endCol = startCol + mergeWidth; for (var r = startRow; r < endRow; r++) { for (var c = startCol; c < endCol; c++) { if (isSpanning(gridA, r, c, comparator)) { - $_arialhoajj6612hd.unmerge(gridA, $_97mop1nvjj6612d9.getCellElement(gridA[r], c), comparator, generator.cell); + $_9kwquroajj68zbfu.unmerge(gridA, $_a5u6cmnvjj68zb3c.getCellElement(gridA[r], c), comparator, generator.cell); } - var newCell = $_97mop1nvjj6612d9.getCellElement(gridB[r - startRow], c - startCol); + var newCell = $_a5u6cmnvjj68zb3c.getCellElement(gridB[r - startRow], c - startCol); var replacement = generator.replace(newCell); - $_97mop1nvjj6612d9.mutateCell(gridA[r], c, $_51e7qdlcjj6611oy.elementnew(replacement, true)); + $_a5u6cmnvjj68zb3c.mutateCell(gridA[r], c, $_ehjah3lcjj68z9o7.elementnew(replacement, true)); } } return gridA; }; var merge$3 = function (startAddress, gridA, gridB, generator, comparator) { - var result = $_a4sd9ho8jj6612gz.measure(startAddress, gridA, gridB); + var result = $_a3m9amo8jj68zbeo.measure(startAddress, gridA, gridB); return result.map(function (delta) { - var fittedGrid = $_a4sd9ho8jj6612gz.tailor(gridA, delta, generator); + var fittedGrid = $_a3m9amo8jj68zbeo.tailor(gridA, delta, generator); return mergeTables(startAddress, fittedGrid, gridB, generator, comparator); }); }; var insert = function (index, gridA, gridB, generator, comparator) { - $_arialhoajj6612hd.splitRows(gridA, index, comparator, generator.cell); - var delta = $_a4sd9ho8jj6612gz.measureWidth(gridB, gridA); - var fittedNewGrid = $_a4sd9ho8jj6612gz.tailor(gridB, delta, generator); - var secondDelta = $_a4sd9ho8jj6612gz.measureWidth(gridA, fittedNewGrid); - var fittedOldGrid = $_a4sd9ho8jj6612gz.tailor(gridA, secondDelta, generator); + $_9kwquroajj68zbfu.splitRows(gridA, index, comparator, generator.cell); + var delta = $_a3m9amo8jj68zbeo.measureWidth(gridB, gridA); + var fittedNewGrid = $_a3m9amo8jj68zbeo.tailor(gridB, delta, generator); + var secondDelta = $_a3m9amo8jj68zbeo.measureWidth(gridA, fittedNewGrid); + var fittedOldGrid = $_a3m9amo8jj68zbeo.tailor(gridA, secondDelta, generator); return fittedOldGrid.slice(0, index).concat(fittedNewGrid).concat(fittedOldGrid.slice(index, fittedOldGrid.length)); }; - var $_4m890io7jj6612gt = { + var $_67ecbzo7jj68zbe6 = { merge: merge$3, insert: insert }; @@ -4697,42 +4697,42 @@ var table = (function () { var insertRowAt = function (grid, index, example, comparator, substitution) { var before = grid.slice(0, index); var after = grid.slice(index); - var between = $_97mop1nvjj6612d9.mapCells(grid[example], function (ex, c) { - var withinSpan = index > 0 && index < grid.length && comparator($_97mop1nvjj6612d9.getCellElement(grid[index - 1], c), $_97mop1nvjj6612d9.getCellElement(grid[index], c)); - var ret = withinSpan ? $_97mop1nvjj6612d9.getCell(grid[index], c) : $_51e7qdlcjj6611oy.elementnew(substitution(ex.element(), comparator), true); + var between = $_a5u6cmnvjj68zb3c.mapCells(grid[example], function (ex, c) { + var withinSpan = index > 0 && index < grid.length && comparator($_a5u6cmnvjj68zb3c.getCellElement(grid[index - 1], c), $_a5u6cmnvjj68zb3c.getCellElement(grid[index], c)); + var ret = withinSpan ? $_a5u6cmnvjj68zb3c.getCell(grid[index], c) : $_ehjah3lcjj68z9o7.elementnew(substitution(ex.element(), comparator), true); return ret; }); return before.concat([between]).concat(after); }; var insertColumnAt = function (grid, index, example, comparator, substitution) { return map(grid, function (row) { - var withinSpan = index > 0 && index < $_97mop1nvjj6612d9.cellLength(row) && comparator($_97mop1nvjj6612d9.getCellElement(row, index - 1), $_97mop1nvjj6612d9.getCellElement(row, index)); - var sub = withinSpan ? $_97mop1nvjj6612d9.getCell(row, index) : $_51e7qdlcjj6611oy.elementnew(substitution($_97mop1nvjj6612d9.getCellElement(row, example), comparator), true); - return $_97mop1nvjj6612d9.addCell(row, index, sub); + var withinSpan = index > 0 && index < $_a5u6cmnvjj68zb3c.cellLength(row) && comparator($_a5u6cmnvjj68zb3c.getCellElement(row, index - 1), $_a5u6cmnvjj68zb3c.getCellElement(row, index)); + var sub = withinSpan ? $_a5u6cmnvjj68zb3c.getCell(row, index) : $_ehjah3lcjj68z9o7.elementnew(substitution($_a5u6cmnvjj68zb3c.getCellElement(row, example), comparator), true); + return $_a5u6cmnvjj68zb3c.addCell(row, index, sub); }); }; var splitCellIntoColumns = function (grid, exampleRow, exampleCol, comparator, substitution) { var index = exampleCol + 1; return map(grid, function (row, i) { var isTargetCell = i === exampleRow; - var sub = isTargetCell ? $_51e7qdlcjj6611oy.elementnew(substitution($_97mop1nvjj6612d9.getCellElement(row, exampleCol), comparator), true) : $_97mop1nvjj6612d9.getCell(row, exampleCol); - return $_97mop1nvjj6612d9.addCell(row, index, sub); + var sub = isTargetCell ? $_ehjah3lcjj68z9o7.elementnew(substitution($_a5u6cmnvjj68zb3c.getCellElement(row, exampleCol), comparator), true) : $_a5u6cmnvjj68zb3c.getCell(row, exampleCol); + return $_a5u6cmnvjj68zb3c.addCell(row, index, sub); }); }; var splitCellIntoRows = function (grid, exampleRow, exampleCol, comparator, substitution) { var index = exampleRow + 1; var before = grid.slice(0, index); var after = grid.slice(index); - var between = $_97mop1nvjj6612d9.mapCells(grid[exampleRow], function (ex, i) { + var between = $_a5u6cmnvjj68zb3c.mapCells(grid[exampleRow], function (ex, i) { var isTargetCell = i === exampleCol; - return isTargetCell ? $_51e7qdlcjj6611oy.elementnew(substitution(ex.element(), comparator), true) : ex; + return isTargetCell ? $_ehjah3lcjj68z9o7.elementnew(substitution(ex.element(), comparator), true) : ex; }); return before.concat([between]).concat(after); }; var deleteColumnsAt = function (grid, start, finish) { var rows = map(grid, function (row) { var cells = row.cells().slice(0, start).concat(row.cells().slice(finish + 1)); - return $_51e7qdlcjj6611oy.rowcells(cells, row.section()); + return $_ehjah3lcjj68z9o7.rowcells(cells, row.section()); }); return filter(rows, function (row) { return row.cells().length > 0; @@ -4741,7 +4741,7 @@ var table = (function () { var deleteRowsAt = function (grid, start, finish) { return grid.slice(0, start).concat(grid.slice(finish + 1)); }; - var $_dr7y6cobjj6612hm = { + var $_bm8mutobjj68zbgk = { insertRowAt: insertRowAt, insertColumnAt: insertColumnAt, splitCellIntoColumns: splitCellIntoColumns, @@ -4757,21 +4757,21 @@ var table = (function () { }); }; return map(grid, function (row) { - return $_97mop1nvjj6612d9.mapCells(row, function (cell) { - return isTarget(cell) ? $_51e7qdlcjj6611oy.elementnew(substitution(cell.element(), comparator), true) : cell; + return $_a5u6cmnvjj68zb3c.mapCells(row, function (cell) { + return isTarget(cell) ? $_ehjah3lcjj68z9o7.elementnew(substitution(cell.element(), comparator), true) : cell; }); }); }; var notStartRow = function (grid, rowIndex, colIndex, comparator) { - return $_97mop1nvjj6612d9.getCellElement(grid[rowIndex], colIndex) !== undefined && (rowIndex > 0 && comparator($_97mop1nvjj6612d9.getCellElement(grid[rowIndex - 1], colIndex), $_97mop1nvjj6612d9.getCellElement(grid[rowIndex], colIndex))); + return $_a5u6cmnvjj68zb3c.getCellElement(grid[rowIndex], colIndex) !== undefined && (rowIndex > 0 && comparator($_a5u6cmnvjj68zb3c.getCellElement(grid[rowIndex - 1], colIndex), $_a5u6cmnvjj68zb3c.getCellElement(grid[rowIndex], colIndex))); }; var notStartColumn = function (row, index, comparator) { - return index > 0 && comparator($_97mop1nvjj6612d9.getCellElement(row, index - 1), $_97mop1nvjj6612d9.getCellElement(row, index)); + return index > 0 && comparator($_a5u6cmnvjj68zb3c.getCellElement(row, index - 1), $_a5u6cmnvjj68zb3c.getCellElement(row, index)); }; var replaceColumn = function (grid, index, comparator, substitution) { var targets = bind(grid, function (row, i) { var alreadyAdded = notStartRow(grid, i, index, comparator) || notStartColumn(row, index, comparator); - return alreadyAdded ? [] : [$_97mop1nvjj6612d9.getCell(row, index)]; + return alreadyAdded ? [] : [$_a5u6cmnvjj68zb3c.getCell(row, index)]; }); return replaceIn(grid, targets, comparator, substitution); }; @@ -4783,7 +4783,7 @@ var table = (function () { }); return replaceIn(grid, targets, comparator, substitution); }; - var $_d122u0ocjj6612ht = { + var $_92bl18ocjj68zbgz = { replaceColumn: replaceColumn, replaceRow: replaceRow }; @@ -4816,7 +4816,7 @@ var table = (function () { var folder = function (fold) { return { fold: fold }; }; - var $_ch2wq7ofjj6612ij = { + var $_brakloofjj68zbii = { none: none$1, only: only, left: left, @@ -4826,16 +4826,16 @@ var table = (function () { var neighbours$1 = function (input, index) { if (input.length === 0) - return $_ch2wq7ofjj6612ij.none(); + return $_brakloofjj68zbii.none(); if (input.length === 1) - return $_ch2wq7ofjj6612ij.only(0); + return $_brakloofjj68zbii.only(0); if (index === 0) - return $_ch2wq7ofjj6612ij.left(0, 1); + return $_brakloofjj68zbii.left(0, 1); if (index === input.length - 1) - return $_ch2wq7ofjj6612ij.right(index - 1, index); + return $_brakloofjj68zbii.right(index - 1, index); if (index > 0 && index < input.length - 1) - return $_ch2wq7ofjj6612ij.middle(index - 1, index, index + 1); - return $_ch2wq7ofjj6612ij.none(); + return $_brakloofjj68zbii.middle(index - 1, index, index + 1); + return $_brakloofjj68zbii.none(); }; var determine = function (input, column, step, tableSize) { var result = input.slice(0); @@ -4877,10 +4877,10 @@ var table = (function () { }; return context.fold(onNone, onOnly, onLeft, onMiddle, onRight); }; - var $_5ozkdyoejj6612i6 = { determine: determine }; + var $_4y89xmoejj68zbhv = { determine: determine }; var getSpan$1 = function (cell, type) { - return $_1i6un8m2jj6611tq.has(cell, type) && parseInt($_1i6un8m2jj6611tq.get(cell, type), 10) > 1; + return $_f2f6ivm2jj68z9y8.has(cell, type) && parseInt($_f2f6ivm2jj68z9y8.get(cell, type), 10) > 1; }; var hasColspan = function (cell) { return getSpan$1(cell, 'colspan'); @@ -4889,9 +4889,9 @@ var table = (function () { return getSpan$1(cell, 'rowspan'); }; var getInt = function (element, property) { - return parseInt($_ghtnaumbjj6611vg.get(element, property), 10); + return parseInt($_8oaacwmbjj68za26.get(element, property), 10); }; - var $_69ej8xohjj6612ix = { + var $_771s5bohjj68zbjl = { hasColspan: hasColspan, hasRowspan: hasRowspan, minWidth: constant(10), @@ -4900,27 +4900,27 @@ var table = (function () { }; var getRaw$1 = function (cell, property, getter) { - return $_ghtnaumbjj6611vg.getRaw(cell, property).fold(function () { + return $_8oaacwmbjj68za26.getRaw(cell, property).fold(function () { return getter(cell) + 'px'; }, function (raw) { return raw; }); }; var getRawW = function (cell) { - return getRaw$1(cell, 'width', $_dkys5xn7jj661264.getPixelWidth); + return getRaw$1(cell, 'width', $_6v5gj9n7jj68zam4.getPixelWidth); }; var getRawH = function (cell) { - return getRaw$1(cell, 'height', $_dkys5xn7jj661264.getHeight); + return getRaw$1(cell, 'height', $_6v5gj9n7jj68zam4.getHeight); }; var getWidthFrom = function (warehouse, direction, getWidth, fallback, tableSize) { - var columns = $_e6vefanyjj6612f5.columns(warehouse); + var columns = $_sl1xxnyjj68zb9o.columns(warehouse); var backups = map(columns, function (cellOption) { return cellOption.map(direction.edge); }); return map(columns, function (cellOption, c) { - var columnCell = cellOption.filter(not($_69ej8xohjj6612ix.hasColspan)); + var columnCell = cellOption.filter(not($_771s5bohjj68zbjl.hasColspan)); return columnCell.fold(function () { - var deduced = $_ct5zqanzjj6612fi.deduce(backups, c); + var deduced = $_9vhe2knzjj68zbav.deduce(backups, c); return fallback(deduced); }, function (cell) { return getWidth(cell, tableSize); @@ -4936,7 +4936,7 @@ var table = (function () { return getWidthFrom(warehouse, direction, getRawW, getDeduced); }; var getPercentageWidths = function (warehouse, direction, tableSize) { - return getWidthFrom(warehouse, direction, $_dkys5xn7jj661264.getPercentageWidth, function (deduced) { + return getWidthFrom(warehouse, direction, $_6v5gj9n7jj68zam4.getPercentageWidth, function (deduced) { return deduced.fold(function () { return tableSize.minCellWidth(); }, function (cellWidth) { @@ -4945,19 +4945,19 @@ var table = (function () { }, tableSize); }; var getPixelWidths = function (warehouse, direction, tableSize) { - return getWidthFrom(warehouse, direction, $_dkys5xn7jj661264.getPixelWidth, function (deduced) { + return getWidthFrom(warehouse, direction, $_6v5gj9n7jj68zam4.getPixelWidth, function (deduced) { return deduced.getOrThunk(tableSize.minCellWidth); }, tableSize); }; var getHeightFrom = function (warehouse, direction, getHeight, fallback) { - var rows = $_e6vefanyjj6612f5.rows(warehouse); + var rows = $_sl1xxnyjj68zb9o.rows(warehouse); var backups = map(rows, function (cellOption) { return cellOption.map(direction.edge); }); return map(rows, function (cellOption, c) { - var rowCell = cellOption.filter(not($_69ej8xohjj6612ix.hasRowspan)); + var rowCell = cellOption.filter(not($_771s5bohjj68zbjl.hasRowspan)); return rowCell.fold(function () { - var deduced = $_ct5zqanzjj6612fi.deduce(backups, c); + var deduced = $_9vhe2knzjj68zbav.deduce(backups, c); return fallback(deduced); }, function (cell) { return getHeight(cell); @@ -4965,14 +4965,14 @@ var table = (function () { }); }; var getPixelHeights = function (warehouse, direction) { - return getHeightFrom(warehouse, direction, $_dkys5xn7jj661264.getHeight, function (deduced) { - return deduced.getOrThunk($_69ej8xohjj6612ix.minHeight); + return getHeightFrom(warehouse, direction, $_6v5gj9n7jj68zam4.getHeight, function (deduced) { + return deduced.getOrThunk($_771s5bohjj68zbjl.minHeight); }); }; var getRawHeights = function (warehouse, direction) { return getHeightFrom(warehouse, direction, getRawH, getDeduced); }; - var $_cwa2jzogjj6612im = { + var $_6ffgp2ogjj68zbin = { getRawWidths: getRawWidths, getPixelWidths: getPixelWidths, getPercentageWidths: getPercentageWidths, @@ -4988,7 +4988,7 @@ var table = (function () { return r; }; var recalculateWidth = function (warehouse, widths) { - var all = $_1zsc94majj6611v4.justCells(warehouse); + var all = $_6lblv1majj68za1f.justCells(warehouse); return map(all, function (cell) { var width = total(cell.column(), cell.column() + cell.colspan(), widths); return { @@ -4999,7 +4999,7 @@ var table = (function () { }); }; var recalculateHeight = function (warehouse, heights) { - var all = $_1zsc94majj6611v4.justCells(warehouse); + var all = $_6lblv1majj68za1f.justCells(warehouse); return map(all, function (cell) { var height = total(cell.row(), cell.row() + cell.rowspan(), heights); return { @@ -5017,7 +5017,7 @@ var table = (function () { }; }); }; - var $_6r9cmeoijj6612j8 = { + var $_fu17sboijj68zbkl = { recalculateWidth: recalculateWidth, recalculateHeight: recalculateHeight, matchRowHeight: matchRowHeight @@ -5025,7 +5025,7 @@ var table = (function () { var percentageSize = function (width, element) { var floatWidth = parseFloat(width); - var pixelWidth = $_28gqsgnbjj66127s.get(element); + var pixelWidth = $_a9a7atnbjj68zapp.get(element); var getCellDelta = function (delta) { return delta / pixelWidth * 100; }; @@ -5033,20 +5033,20 @@ var table = (function () { return [100 - width]; }; var minCellWidth = function () { - return $_69ej8xohjj6612ix.minWidth() / pixelWidth * 100; + return $_771s5bohjj68zbjl.minWidth() / pixelWidth * 100; }; var setTableWidth = function (table, _newWidths, delta) { var total = floatWidth + delta; - $_dkys5xn7jj661264.setPercentageWidth(table, total); + $_6v5gj9n7jj68zam4.setPercentageWidth(table, total); }; return { width: constant(floatWidth), pixelWidth: constant(pixelWidth), - getWidths: $_cwa2jzogjj6612im.getPercentageWidths, + getWidths: $_6ffgp2ogjj68zbin.getPercentageWidths, getCellDelta: getCellDelta, singleColumnWidth: singleColumnWidth, minCellWidth: minCellWidth, - setElementWidth: $_dkys5xn7jj661264.setPercentageWidth, + setElementWidth: $_6v5gj9n7jj68zam4.setPercentageWidth, setTableWidth: setTableWidth }; }; @@ -5054,51 +5054,51 @@ var table = (function () { var intWidth = parseInt(width, 10); var getCellDelta = identity; var singleColumnWidth = function (width, delta) { - var newNext = Math.max($_69ej8xohjj6612ix.minWidth(), width + delta); + var newNext = Math.max($_771s5bohjj68zbjl.minWidth(), width + delta); return [newNext - width]; }; var setTableWidth = function (table, newWidths, _delta) { var total = foldr(newWidths, function (b, a) { return b + a; }, 0); - $_dkys5xn7jj661264.setPixelWidth(table, total); + $_6v5gj9n7jj68zam4.setPixelWidth(table, total); }; return { width: constant(intWidth), pixelWidth: constant(intWidth), - getWidths: $_cwa2jzogjj6612im.getPixelWidths, + getWidths: $_6ffgp2ogjj68zbin.getPixelWidths, getCellDelta: getCellDelta, singleColumnWidth: singleColumnWidth, - minCellWidth: $_69ej8xohjj6612ix.minWidth, - setElementWidth: $_dkys5xn7jj661264.setPixelWidth, + minCellWidth: $_771s5bohjj68zbjl.minWidth, + setElementWidth: $_6v5gj9n7jj68zam4.setPixelWidth, setTableWidth: setTableWidth }; }; var chooseSize = function (element, width) { - if ($_dkys5xn7jj661264.percentageBasedSizeRegex().test(width)) { - var percentMatch = $_dkys5xn7jj661264.percentageBasedSizeRegex().exec(width); + if ($_6v5gj9n7jj68zam4.percentageBasedSizeRegex().test(width)) { + var percentMatch = $_6v5gj9n7jj68zam4.percentageBasedSizeRegex().exec(width); return percentageSize(percentMatch[1], element); - } else if ($_dkys5xn7jj661264.pixelBasedSizeRegex().test(width)) { - var pixelMatch = $_dkys5xn7jj661264.pixelBasedSizeRegex().exec(width); + } else if ($_6v5gj9n7jj68zam4.pixelBasedSizeRegex().test(width)) { + var pixelMatch = $_6v5gj9n7jj68zam4.pixelBasedSizeRegex().exec(width); return pixelSize(pixelMatch[1]); } else { - var fallbackWidth = $_28gqsgnbjj66127s.get(element); + var fallbackWidth = $_a9a7atnbjj68zapp.get(element); return pixelSize(fallbackWidth); } }; var getTableSize = function (element) { - var width = $_dkys5xn7jj661264.getRawWidth(element); + var width = $_6v5gj9n7jj68zam4.getRawWidth(element); return width.fold(function () { - var fallbackWidth = $_28gqsgnbjj66127s.get(element); + var fallbackWidth = $_a9a7atnbjj68zapp.get(element); return pixelSize(fallbackWidth); }, function (width) { return chooseSize(element, width); }); }; - var $_2grt5yojjj6612jh = { getTableSize: getTableSize }; + var $_955ztrojjj68zbl8 = { getTableSize: getTableSize }; var getWarehouse$1 = function (list) { - return $_1zsc94majj6611v4.generate(list); + return $_6lblv1majj68za1f.generate(list); }; var sumUp = function (newSize) { return foldr(newSize, function (b, a) { @@ -5106,19 +5106,19 @@ var table = (function () { }, 0); }; var getTableWarehouse = function (table) { - var list = $_5afhghlbjj6611ok.fromTable(table); + var list = $_5drlwclbjj68z9n8.fromTable(table); return getWarehouse$1(list); }; var adjustWidth = function (table, delta, index, direction) { - var tableSize = $_2grt5yojjj6612jh.getTableSize(table); + var tableSize = $_955ztrojjj68zbl8.getTableSize(table); var step = tableSize.getCellDelta(delta); var warehouse = getTableWarehouse(table); var widths = tableSize.getWidths(warehouse, direction, tableSize); - var deltas = $_5ozkdyoejj6612i6.determine(widths, index, step, tableSize); + var deltas = $_4y89xmoejj68zbhv.determine(widths, index, step, tableSize); var newWidths = map(deltas, function (dx, i) { return dx + widths[i]; }); - var newSizes = $_6r9cmeoijj6612j8.recalculateWidth(warehouse, newWidths); + var newSizes = $_fu17sboijj68zbkl.recalculateWidth(warehouse, newWidths); each(newSizes, function (cell) { tableSize.setElementWidth(cell.element(), cell.width()); }); @@ -5128,26 +5128,26 @@ var table = (function () { }; var adjustHeight = function (table, delta, index, direction) { var warehouse = getTableWarehouse(table); - var heights = $_cwa2jzogjj6612im.getPixelHeights(warehouse, direction); + var heights = $_6ffgp2ogjj68zbin.getPixelHeights(warehouse, direction); var newHeights = map(heights, function (dy, i) { - return index === i ? Math.max(delta + dy, $_69ej8xohjj6612ix.minHeight()) : dy; + return index === i ? Math.max(delta + dy, $_771s5bohjj68zbjl.minHeight()) : dy; }); - var newCellSizes = $_6r9cmeoijj6612j8.recalculateHeight(warehouse, newHeights); - var newRowSizes = $_6r9cmeoijj6612j8.matchRowHeight(warehouse, newHeights); + var newCellSizes = $_fu17sboijj68zbkl.recalculateHeight(warehouse, newHeights); + var newRowSizes = $_fu17sboijj68zbkl.matchRowHeight(warehouse, newHeights); each(newRowSizes, function (row) { - $_dkys5xn7jj661264.setHeight(row.element(), row.height()); + $_6v5gj9n7jj68zam4.setHeight(row.element(), row.height()); }); each(newCellSizes, function (cell) { - $_dkys5xn7jj661264.setHeight(cell.element(), cell.height()); + $_6v5gj9n7jj68zam4.setHeight(cell.element(), cell.height()); }); var total = sumUp(newHeights); - $_dkys5xn7jj661264.setHeight(table, total); + $_6v5gj9n7jj68zam4.setHeight(table, total); }; var adjustWidthTo = function (table, list, direction) { - var tableSize = $_2grt5yojjj6612jh.getTableSize(table); + var tableSize = $_955ztrojjj68zbl8.getTableSize(table); var warehouse = getWarehouse$1(list); var widths = tableSize.getWidths(warehouse, direction, tableSize); - var newSizes = $_6r9cmeoijj6612j8.recalculateWidth(warehouse, widths); + var newSizes = $_fu17sboijj68zbkl.recalculateWidth(warehouse, widths); each(newSizes, function (cell) { tableSize.setElementWidth(cell.element(), cell.width()); }); @@ -5158,16 +5158,16 @@ var table = (function () { tableSize.setElementWidth(table, total); } }; - var $_amhm5eodjj6612i0 = { + var $_etar1podjj68zbhh = { adjustWidth: adjustWidth, adjustHeight: adjustHeight, adjustWidthTo: adjustWidthTo }; var prune = function (table) { - var cells = $_kkb5dldjj6611p3.cells(table); + var cells = $_bb5w37ldjj68z9oi.cells(table); if (cells.length === 0) - $_7nurwwmejj6611wa.remove(table); + $_1t3bv6mejj68za3c.remove(table); }; var outcome = Immutable('grid', 'cursor'); var elementFromGrid = function (grid, row, column) { @@ -5206,7 +5206,7 @@ var table = (function () { var insertRowBefore = function (grid, detail, comparator, genWrappers) { var example = detail.row(); var targetIndex = detail.row(); - var newGrid = $_dr7y6cobjj6612hm.insertRowAt(grid, targetIndex, example, comparator, genWrappers.getOrInit); + var newGrid = $_bm8mutobjj68zbgk.insertRowAt(grid, targetIndex, example, comparator, genWrappers.getOrInit); return bundle(newGrid, targetIndex, detail.column()); }; var insertRowsBefore = function (grid, details, comparator, genWrappers) { @@ -5214,14 +5214,14 @@ var table = (function () { var targetIndex = details[0].row(); var rows = uniqueRows(details); var newGrid = foldl(rows, function (newGrid, _row) { - return $_dr7y6cobjj6612hm.insertRowAt(newGrid, targetIndex, example, comparator, genWrappers.getOrInit); + return $_bm8mutobjj68zbgk.insertRowAt(newGrid, targetIndex, example, comparator, genWrappers.getOrInit); }, grid); return bundle(newGrid, targetIndex, details[0].column()); }; var insertRowAfter = function (grid, detail, comparator, genWrappers) { var example = detail.row(); var targetIndex = detail.row() + detail.rowspan(); - var newGrid = $_dr7y6cobjj6612hm.insertRowAt(grid, targetIndex, example, comparator, genWrappers.getOrInit); + var newGrid = $_bm8mutobjj68zbgk.insertRowAt(grid, targetIndex, example, comparator, genWrappers.getOrInit); return bundle(newGrid, targetIndex, detail.column()); }; var insertRowsAfter = function (grid, details, comparator, genWrappers) { @@ -5229,14 +5229,14 @@ var table = (function () { var example = rows[rows.length - 1].row(); var targetIndex = rows[rows.length - 1].row() + rows[rows.length - 1].rowspan(); var newGrid = foldl(rows, function (newGrid, _row) { - return $_dr7y6cobjj6612hm.insertRowAt(newGrid, targetIndex, example, comparator, genWrappers.getOrInit); + return $_bm8mutobjj68zbgk.insertRowAt(newGrid, targetIndex, example, comparator, genWrappers.getOrInit); }, grid); return bundle(newGrid, targetIndex, details[0].column()); }; var insertColumnBefore = function (grid, detail, comparator, genWrappers) { var example = detail.column(); var targetIndex = detail.column(); - var newGrid = $_dr7y6cobjj6612hm.insertColumnAt(grid, targetIndex, example, comparator, genWrappers.getOrInit); + var newGrid = $_bm8mutobjj68zbgk.insertColumnAt(grid, targetIndex, example, comparator, genWrappers.getOrInit); return bundle(newGrid, detail.row(), targetIndex); }; var insertColumnsBefore = function (grid, details, comparator, genWrappers) { @@ -5244,14 +5244,14 @@ var table = (function () { var example = columns[0].column(); var targetIndex = columns[0].column(); var newGrid = foldl(columns, function (newGrid, _row) { - return $_dr7y6cobjj6612hm.insertColumnAt(newGrid, targetIndex, example, comparator, genWrappers.getOrInit); + return $_bm8mutobjj68zbgk.insertColumnAt(newGrid, targetIndex, example, comparator, genWrappers.getOrInit); }, grid); return bundle(newGrid, details[0].row(), targetIndex); }; var insertColumnAfter = function (grid, detail, comparator, genWrappers) { var example = detail.column(); var targetIndex = detail.column() + detail.colspan(); - var newGrid = $_dr7y6cobjj6612hm.insertColumnAt(grid, targetIndex, example, comparator, genWrappers.getOrInit); + var newGrid = $_bm8mutobjj68zbgk.insertColumnAt(grid, targetIndex, example, comparator, genWrappers.getOrInit); return bundle(newGrid, detail.row(), targetIndex); }; var insertColumnsAfter = function (grid, details, comparator, genWrappers) { @@ -5259,67 +5259,67 @@ var table = (function () { var targetIndex = details[details.length - 1].column() + details[details.length - 1].colspan(); var columns = uniqueColumns(details); var newGrid = foldl(columns, function (newGrid, _row) { - return $_dr7y6cobjj6612hm.insertColumnAt(newGrid, targetIndex, example, comparator, genWrappers.getOrInit); + return $_bm8mutobjj68zbgk.insertColumnAt(newGrid, targetIndex, example, comparator, genWrappers.getOrInit); }, grid); return bundle(newGrid, details[0].row(), targetIndex); }; var makeRowHeader = function (grid, detail, comparator, genWrappers) { - var newGrid = $_d122u0ocjj6612ht.replaceRow(grid, detail.row(), comparator, genWrappers.replaceOrInit); + var newGrid = $_92bl18ocjj68zbgz.replaceRow(grid, detail.row(), comparator, genWrappers.replaceOrInit); return bundle(newGrid, detail.row(), detail.column()); }; var makeColumnHeader = function (grid, detail, comparator, genWrappers) { - var newGrid = $_d122u0ocjj6612ht.replaceColumn(grid, detail.column(), comparator, genWrappers.replaceOrInit); + var newGrid = $_92bl18ocjj68zbgz.replaceColumn(grid, detail.column(), comparator, genWrappers.replaceOrInit); return bundle(newGrid, detail.row(), detail.column()); }; var unmakeRowHeader = function (grid, detail, comparator, genWrappers) { - var newGrid = $_d122u0ocjj6612ht.replaceRow(grid, detail.row(), comparator, genWrappers.replaceOrInit); + var newGrid = $_92bl18ocjj68zbgz.replaceRow(grid, detail.row(), comparator, genWrappers.replaceOrInit); return bundle(newGrid, detail.row(), detail.column()); }; var unmakeColumnHeader = function (grid, detail, comparator, genWrappers) { - var newGrid = $_d122u0ocjj6612ht.replaceColumn(grid, detail.column(), comparator, genWrappers.replaceOrInit); + var newGrid = $_92bl18ocjj68zbgz.replaceColumn(grid, detail.column(), comparator, genWrappers.replaceOrInit); return bundle(newGrid, detail.row(), detail.column()); }; var splitCellIntoColumns$1 = function (grid, detail, comparator, genWrappers) { - var newGrid = $_dr7y6cobjj6612hm.splitCellIntoColumns(grid, detail.row(), detail.column(), comparator, genWrappers.getOrInit); + var newGrid = $_bm8mutobjj68zbgk.splitCellIntoColumns(grid, detail.row(), detail.column(), comparator, genWrappers.getOrInit); return bundle(newGrid, detail.row(), detail.column()); }; var splitCellIntoRows$1 = function (grid, detail, comparator, genWrappers) { - var newGrid = $_dr7y6cobjj6612hm.splitCellIntoRows(grid, detail.row(), detail.column(), comparator, genWrappers.getOrInit); + var newGrid = $_bm8mutobjj68zbgk.splitCellIntoRows(grid, detail.row(), detail.column(), comparator, genWrappers.getOrInit); return bundle(newGrid, detail.row(), detail.column()); }; var eraseColumns = function (grid, details, comparator, _genWrappers) { var columns = uniqueColumns(details); - var newGrid = $_dr7y6cobjj6612hm.deleteColumnsAt(grid, columns[0].column(), columns[columns.length - 1].column()); + var newGrid = $_bm8mutobjj68zbgk.deleteColumnsAt(grid, columns[0].column(), columns[columns.length - 1].column()); var cursor = elementFromGrid(newGrid, details[0].row(), details[0].column()); return outcome(newGrid, cursor); }; var eraseRows = function (grid, details, comparator, _genWrappers) { var rows = uniqueRows(details); - var newGrid = $_dr7y6cobjj6612hm.deleteRowsAt(grid, rows[0].row(), rows[rows.length - 1].row()); + var newGrid = $_bm8mutobjj68zbgk.deleteRowsAt(grid, rows[0].row(), rows[rows.length - 1].row()); var cursor = elementFromGrid(newGrid, details[0].row(), details[0].column()); return outcome(newGrid, cursor); }; var mergeCells = function (grid, mergable, comparator, _genWrappers) { var cells = mergable.cells(); - $_5wz96vnnjj6612al.merge(cells); - var newGrid = $_arialhoajj6612hd.merge(grid, mergable.bounds(), comparator, constant(cells[0])); + $_b7gs93nnjj68zawj.merge(cells); + var newGrid = $_9kwquroajj68zbfu.merge(grid, mergable.bounds(), comparator, constant(cells[0])); return outcome(newGrid, Option.from(cells[0])); }; var unmergeCells = function (grid, unmergable, comparator, genWrappers) { var newGrid = foldr(unmergable, function (b, cell) { - return $_arialhoajj6612hd.unmerge(b, cell, comparator, genWrappers.combine(cell)); + return $_9kwquroajj68zbfu.unmerge(b, cell, comparator, genWrappers.combine(cell)); }, grid); return outcome(newGrid, Option.from(unmergable[0])); }; var pasteCells = function (grid, pasteDetails, comparator, genWrappers) { var gridify = function (table, generators) { - var list = $_5afhghlbjj6611ok.fromTable(table); - var wh = $_1zsc94majj6611v4.generate(list); - return $_5we2asntjj6612cs.toGrid(wh, generators, true); + var list = $_5drlwclbjj68z9n8.fromTable(table); + var wh = $_6lblv1majj68za1f.generate(list); + return $_g4ah4jntjj68zb27.toGrid(wh, generators, true); }; var gridB = gridify(pasteDetails.clipboard(), pasteDetails.generators()); - var startAddress = $_51e7qdlcjj6611oy.address(pasteDetails.row(), pasteDetails.column()); - var mergedGrid = $_4m890io7jj6612gt.merge(startAddress, grid, gridB, pasteDetails.generators(), comparator); + var startAddress = $_ehjah3lcjj68z9o7.address(pasteDetails.row(), pasteDetails.column()); + var mergedGrid = $_67ecbzo7jj68zbe6.merge(startAddress, grid, gridB, pasteDetails.generators(), comparator); return mergedGrid.fold(function () { return outcome(grid, Option.some(pasteDetails.element())); }, function (nuGrid) { @@ -5328,15 +5328,15 @@ var table = (function () { }); }; var gridifyRows = function (rows, generators, example) { - var pasteDetails = $_5afhghlbjj6611ok.fromPastedRows(rows, example); - var wh = $_1zsc94majj6611v4.generate(pasteDetails); - return $_5we2asntjj6612cs.toGrid(wh, generators, true); + var pasteDetails = $_5drlwclbjj68z9n8.fromPastedRows(rows, example); + var wh = $_6lblv1majj68za1f.generate(pasteDetails); + return $_g4ah4jntjj68zb27.toGrid(wh, generators, true); }; var pasteRowsBefore = function (grid, pasteDetails, comparator, genWrappers) { var example = grid[pasteDetails.cells[0].row()]; var index = pasteDetails.cells[0].row(); var gridB = gridifyRows(pasteDetails.clipboard(), pasteDetails.generators(), example); - var mergedGrid = $_4m890io7jj6612gt.insert(index, grid, gridB, pasteDetails.generators(), comparator); + var mergedGrid = $_67ecbzo7jj68zbe6.insert(index, grid, gridB, pasteDetails.generators(), comparator); var cursor = elementFromGrid(mergedGrid, pasteDetails.cells[0].row(), pasteDetails.cells[0].column()); return outcome(mergedGrid, cursor); }; @@ -5344,33 +5344,33 @@ var table = (function () { var example = grid[pasteDetails.cells[0].row()]; var index = pasteDetails.cells[pasteDetails.cells.length - 1].row() + pasteDetails.cells[pasteDetails.cells.length - 1].rowspan(); var gridB = gridifyRows(pasteDetails.clipboard(), pasteDetails.generators(), example); - var mergedGrid = $_4m890io7jj6612gt.insert(index, grid, gridB, pasteDetails.generators(), comparator); + var mergedGrid = $_67ecbzo7jj68zbe6.insert(index, grid, gridB, pasteDetails.generators(), comparator); var cursor = elementFromGrid(mergedGrid, pasteDetails.cells[0].row(), pasteDetails.cells[0].column()); return outcome(mergedGrid, cursor); }; - var resize = $_amhm5eodjj6612i0.adjustWidthTo; - var $_oabhjnjjj661291 = { - insertRowBefore: $_12cu30nqjj6612bx.run(insertRowBefore, $_12cu30nqjj6612bx.onCell, noop, noop, $_tf0s1nkjj66129o.modification), - insertRowsBefore: $_12cu30nqjj6612bx.run(insertRowsBefore, $_12cu30nqjj6612bx.onCells, noop, noop, $_tf0s1nkjj66129o.modification), - insertRowAfter: $_12cu30nqjj6612bx.run(insertRowAfter, $_12cu30nqjj6612bx.onCell, noop, noop, $_tf0s1nkjj66129o.modification), - insertRowsAfter: $_12cu30nqjj6612bx.run(insertRowsAfter, $_12cu30nqjj6612bx.onCells, noop, noop, $_tf0s1nkjj66129o.modification), - insertColumnBefore: $_12cu30nqjj6612bx.run(insertColumnBefore, $_12cu30nqjj6612bx.onCell, resize, noop, $_tf0s1nkjj66129o.modification), - insertColumnsBefore: $_12cu30nqjj6612bx.run(insertColumnsBefore, $_12cu30nqjj6612bx.onCells, resize, noop, $_tf0s1nkjj66129o.modification), - insertColumnAfter: $_12cu30nqjj6612bx.run(insertColumnAfter, $_12cu30nqjj6612bx.onCell, resize, noop, $_tf0s1nkjj66129o.modification), - insertColumnsAfter: $_12cu30nqjj6612bx.run(insertColumnsAfter, $_12cu30nqjj6612bx.onCells, resize, noop, $_tf0s1nkjj66129o.modification), - splitCellIntoColumns: $_12cu30nqjj6612bx.run(splitCellIntoColumns$1, $_12cu30nqjj6612bx.onCell, resize, noop, $_tf0s1nkjj66129o.modification), - splitCellIntoRows: $_12cu30nqjj6612bx.run(splitCellIntoRows$1, $_12cu30nqjj6612bx.onCell, noop, noop, $_tf0s1nkjj66129o.modification), - eraseColumns: $_12cu30nqjj6612bx.run(eraseColumns, $_12cu30nqjj6612bx.onCells, resize, prune, $_tf0s1nkjj66129o.modification), - eraseRows: $_12cu30nqjj6612bx.run(eraseRows, $_12cu30nqjj6612bx.onCells, noop, prune, $_tf0s1nkjj66129o.modification), - makeColumnHeader: $_12cu30nqjj6612bx.run(makeColumnHeader, $_12cu30nqjj6612bx.onCell, noop, noop, $_tf0s1nkjj66129o.transform('row', 'th')), - unmakeColumnHeader: $_12cu30nqjj6612bx.run(unmakeColumnHeader, $_12cu30nqjj6612bx.onCell, noop, noop, $_tf0s1nkjj66129o.transform(null, 'td')), - makeRowHeader: $_12cu30nqjj6612bx.run(makeRowHeader, $_12cu30nqjj6612bx.onCell, noop, noop, $_tf0s1nkjj66129o.transform('col', 'th')), - unmakeRowHeader: $_12cu30nqjj6612bx.run(unmakeRowHeader, $_12cu30nqjj6612bx.onCell, noop, noop, $_tf0s1nkjj66129o.transform(null, 'td')), - mergeCells: $_12cu30nqjj6612bx.run(mergeCells, $_12cu30nqjj6612bx.onMergable, noop, noop, $_tf0s1nkjj66129o.merging), - unmergeCells: $_12cu30nqjj6612bx.run(unmergeCells, $_12cu30nqjj6612bx.onUnmergable, resize, noop, $_tf0s1nkjj66129o.merging), - pasteCells: $_12cu30nqjj6612bx.run(pasteCells, $_12cu30nqjj6612bx.onPaste, resize, noop, $_tf0s1nkjj66129o.modification), - pasteRowsBefore: $_12cu30nqjj6612bx.run(pasteRowsBefore, $_12cu30nqjj6612bx.onPasteRows, noop, noop, $_tf0s1nkjj66129o.modification), - pasteRowsAfter: $_12cu30nqjj6612bx.run(pasteRowsAfter, $_12cu30nqjj6612bx.onPasteRows, noop, noop, $_tf0s1nkjj66129o.modification) + var resize = $_etar1podjj68zbhh.adjustWidthTo; + var $_a9rx5onjjj68zasc = { + insertRowBefore: $_58rjmmnqjj68zb00.run(insertRowBefore, $_58rjmmnqjj68zb00.onCell, noop, noop, $_5k5ziznkjj68zaue.modification), + insertRowsBefore: $_58rjmmnqjj68zb00.run(insertRowsBefore, $_58rjmmnqjj68zb00.onCells, noop, noop, $_5k5ziznkjj68zaue.modification), + insertRowAfter: $_58rjmmnqjj68zb00.run(insertRowAfter, $_58rjmmnqjj68zb00.onCell, noop, noop, $_5k5ziznkjj68zaue.modification), + insertRowsAfter: $_58rjmmnqjj68zb00.run(insertRowsAfter, $_58rjmmnqjj68zb00.onCells, noop, noop, $_5k5ziznkjj68zaue.modification), + insertColumnBefore: $_58rjmmnqjj68zb00.run(insertColumnBefore, $_58rjmmnqjj68zb00.onCell, resize, noop, $_5k5ziznkjj68zaue.modification), + insertColumnsBefore: $_58rjmmnqjj68zb00.run(insertColumnsBefore, $_58rjmmnqjj68zb00.onCells, resize, noop, $_5k5ziznkjj68zaue.modification), + insertColumnAfter: $_58rjmmnqjj68zb00.run(insertColumnAfter, $_58rjmmnqjj68zb00.onCell, resize, noop, $_5k5ziznkjj68zaue.modification), + insertColumnsAfter: $_58rjmmnqjj68zb00.run(insertColumnsAfter, $_58rjmmnqjj68zb00.onCells, resize, noop, $_5k5ziznkjj68zaue.modification), + splitCellIntoColumns: $_58rjmmnqjj68zb00.run(splitCellIntoColumns$1, $_58rjmmnqjj68zb00.onCell, resize, noop, $_5k5ziznkjj68zaue.modification), + splitCellIntoRows: $_58rjmmnqjj68zb00.run(splitCellIntoRows$1, $_58rjmmnqjj68zb00.onCell, noop, noop, $_5k5ziznkjj68zaue.modification), + eraseColumns: $_58rjmmnqjj68zb00.run(eraseColumns, $_58rjmmnqjj68zb00.onCells, resize, prune, $_5k5ziznkjj68zaue.modification), + eraseRows: $_58rjmmnqjj68zb00.run(eraseRows, $_58rjmmnqjj68zb00.onCells, noop, prune, $_5k5ziznkjj68zaue.modification), + makeColumnHeader: $_58rjmmnqjj68zb00.run(makeColumnHeader, $_58rjmmnqjj68zb00.onCell, noop, noop, $_5k5ziznkjj68zaue.transform('row', 'th')), + unmakeColumnHeader: $_58rjmmnqjj68zb00.run(unmakeColumnHeader, $_58rjmmnqjj68zb00.onCell, noop, noop, $_5k5ziznkjj68zaue.transform(null, 'td')), + makeRowHeader: $_58rjmmnqjj68zb00.run(makeRowHeader, $_58rjmmnqjj68zb00.onCell, noop, noop, $_5k5ziznkjj68zaue.transform('col', 'th')), + unmakeRowHeader: $_58rjmmnqjj68zb00.run(unmakeRowHeader, $_58rjmmnqjj68zb00.onCell, noop, noop, $_5k5ziznkjj68zaue.transform(null, 'td')), + mergeCells: $_58rjmmnqjj68zb00.run(mergeCells, $_58rjmmnqjj68zb00.onMergable, noop, noop, $_5k5ziznkjj68zaue.merging), + unmergeCells: $_58rjmmnqjj68zb00.run(unmergeCells, $_58rjmmnqjj68zb00.onUnmergable, resize, noop, $_5k5ziznkjj68zaue.merging), + pasteCells: $_58rjmmnqjj68zb00.run(pasteCells, $_58rjmmnqjj68zb00.onPaste, resize, noop, $_5k5ziznkjj68zaue.modification), + pasteRowsBefore: $_58rjmmnqjj68zb00.run(pasteRowsBefore, $_58rjmmnqjj68zb00.onPasteRows, noop, noop, $_5k5ziznkjj68zaue.modification), + pasteRowsAfter: $_58rjmmnqjj68zb00.run(pasteRowsAfter, $_58rjmmnqjj68zb00.onPasteRows, noop, noop, $_5k5ziznkjj68zaue.modification) }; var getBody$1 = function (editor) { @@ -5384,7 +5384,7 @@ var table = (function () { }; var getIsRoot = function (editor) { return function (element) { - return $_af5rtflljj6611ru.eq(element, getBody$1(editor)); + return $_71r8jdlljj68z9u5.eq(element, getBody$1(editor)); }; }; var removePxSuffix = function (size) { @@ -5397,10 +5397,10 @@ var table = (function () { return size; }; var removeDataStyle = function (table) { - var dataStyleCells = $_fhzhu6m4jj6611u4.descendants(table, 'td[data-mce-style],th[data-mce-style]'); - $_1i6un8m2jj6611tq.remove(table, 'data-mce-style'); + var dataStyleCells = $_4ve49em4jj68z9yy.descendants(table, 'td[data-mce-style],th[data-mce-style]'); + $_f2f6ivm2jj68z9y8.remove(table, 'data-mce-style'); each(dataStyleCells, function (cell) { - $_1i6un8m2jj6611tq.remove(cell, 'data-mce-style'); + $_f2f6ivm2jj68z9y8.remove(cell, 'data-mce-style'); }); }; @@ -5410,9 +5410,9 @@ var table = (function () { }; }; var getDirection = function (element) { - return $_ghtnaumbjj6611vg.get(element, 'direction') === 'rtl' ? 'rtl' : 'ltr'; + return $_8oaacwmbjj68za26.get(element, 'direction') === 'rtl' ? 'rtl' : 'ltr'; }; - var $_2uf2y8omjj6612kc = { + var $_g3ahheomjj68zbo1 = { onDirection: onDirection, getDirection: getDirection }; @@ -5420,10 +5420,10 @@ var table = (function () { var ltr$1 = { isRtl: constant(false) }; var rtl$1 = { isRtl: constant(true) }; var directionAt = function (element) { - var dir = $_2uf2y8omjj6612kc.getDirection(element); + var dir = $_g3ahheomjj68zbo1.getDirection(element); return dir === 'rtl' ? rtl$1 : ltr$1; }; - var $_8f1ukqoljj6612k5 = { directionAt: directionAt }; + var $_3iez4qoljj68zbnk = { directionAt: directionAt }; var defaultTableToolbar = [ 'tableprops', @@ -5537,14 +5537,14 @@ var table = (function () { var TableActions = function (editor, lazyWire) { var isTableBody = function (editor) { - return $_50pc0qm3jj6611u1.name(getBody$1(editor)) === 'table'; + return $_a9t3wpm3jj68z9ys.name(getBody$1(editor)) === 'table'; }; var lastRowGuard = function (table) { - var size = $_3iycqjnijj66128y.getGridSize(table); + var size = $_aa88nnnijj68zas5.getGridSize(table); return isTableBody(editor) === false || size.rows() > 1; }; var lastColumnGuard = function (table) { - var size = $_3iycqjnijj66128y.getGridSize(table); + var size = $_aa88nnnijj68zas5.getGridSize(table); return isTableBody(editor) === false || size.columns() > 1; }; var cloneFormats = getCloneElements(editor); @@ -5553,8 +5553,8 @@ var table = (function () { removeDataStyle(table); var wire = lazyWire(); var doc = Element$$1.fromDom(editor.getDoc()); - var direction = TableDirection($_8f1ukqoljj6612k5.directionAt); - var generators = $_9daz66mgjj6611wk.cellOperations(mutate, doc, cloneFormats); + var direction = TableDirection($_3iez4qoljj68zbnk.directionAt); + var generators = $_840xxpmgjj68za3w.cellOperations(mutate, doc, cloneFormats); return guard(table) ? operation(wire, table, target, generators, direction).bind(function (result) { each(result.newRows(), function (row) { fireNewRow(editor, row.dom()); @@ -5571,17 +5571,17 @@ var table = (function () { }) : Option.none(); }; }; - var deleteRow = execute($_oabhjnjjj661291.eraseRows, lastRowGuard, noop, lazyWire); - var deleteColumn = execute($_oabhjnjjj661291.eraseColumns, lastColumnGuard, noop, lazyWire); - var insertRowsBefore = execute($_oabhjnjjj661291.insertRowsBefore, always, noop, lazyWire); - var insertRowsAfter = execute($_oabhjnjjj661291.insertRowsAfter, always, noop, lazyWire); - var insertColumnsBefore = execute($_oabhjnjjj661291.insertColumnsBefore, always, $_deg6ipn6jj661261.halve, lazyWire); - var insertColumnsAfter = execute($_oabhjnjjj661291.insertColumnsAfter, always, $_deg6ipn6jj661261.halve, lazyWire); - var mergeCells = execute($_oabhjnjjj661291.mergeCells, always, noop, lazyWire); - var unmergeCells = execute($_oabhjnjjj661291.unmergeCells, always, noop, lazyWire); - var pasteRowsBefore = execute($_oabhjnjjj661291.pasteRowsBefore, always, noop, lazyWire); - var pasteRowsAfter = execute($_oabhjnjjj661291.pasteRowsAfter, always, noop, lazyWire); - var pasteCells = execute($_oabhjnjjj661291.pasteCells, always, noop, lazyWire); + var deleteRow = execute($_a9rx5onjjj68zasc.eraseRows, lastRowGuard, noop, lazyWire); + var deleteColumn = execute($_a9rx5onjjj68zasc.eraseColumns, lastColumnGuard, noop, lazyWire); + var insertRowsBefore = execute($_a9rx5onjjj68zasc.insertRowsBefore, always, noop, lazyWire); + var insertRowsAfter = execute($_a9rx5onjjj68zasc.insertRowsAfter, always, noop, lazyWire); + var insertColumnsBefore = execute($_a9rx5onjjj68zasc.insertColumnsBefore, always, $_bzaoy4n6jj68zam0.halve, lazyWire); + var insertColumnsAfter = execute($_a9rx5onjjj68zasc.insertColumnsAfter, always, $_bzaoy4n6jj68zam0.halve, lazyWire); + var mergeCells = execute($_a9rx5onjjj68zasc.mergeCells, always, noop, lazyWire); + var unmergeCells = execute($_a9rx5onjjj68zasc.unmergeCells, always, noop, lazyWire); + var pasteRowsBefore = execute($_a9rx5onjjj68zasc.pasteRowsBefore, always, noop, lazyWire); + var pasteRowsAfter = execute($_a9rx5onjjj68zasc.pasteRowsAfter, always, noop, lazyWire); + var pasteCells = execute($_a9rx5onjjj68zasc.pasteCells, always, noop, lazyWire); return { deleteRow: deleteRow, deleteColumn: deleteColumn, @@ -5598,17 +5598,17 @@ var table = (function () { }; var copyRows = function (table, target, generators) { - var list = $_5afhghlbjj6611ok.fromTable(table); - var house = $_1zsc94majj6611v4.generate(list); - var details = $_12cu30nqjj6612bx.onCells(house, target); + var list = $_5drlwclbjj68z9n8.fromTable(table); + var house = $_6lblv1majj68za1f.generate(list); + var details = $_58rjmmnqjj68zb00.onCells(house, target); return details.map(function (selectedCells) { - var grid = $_5we2asntjj6612cs.toGrid(house, generators, false); + var grid = $_g4ah4jntjj68zb27.toGrid(house, generators, false); var slicedGrid = grid.slice(selectedCells[0].row(), selectedCells[selectedCells.length - 1].row() + selectedCells[selectedCells.length - 1].rowspan()); - var slicedDetails = $_12cu30nqjj6612bx.toDetailList(slicedGrid, generators); - return $_cqjziznwjj6612df.copy(slicedDetails); + var slicedDetails = $_58rjmmnqjj68zb00.toDetailList(slicedGrid, generators); + return $_192yq1nwjj68zb3s.copy(slicedDetails); }); }; - var $_6ii7tyoqjj6612ld = { copyRows: copyRows }; + var $_1p923voqjj68zbqo = { copyRows: copyRows }; var global$1 = tinymce.util.Tools.resolve('tinymce.util.Tools'); @@ -5650,7 +5650,7 @@ var table = (function () { editor.formatter.remove('valign' + name, {}, elm); }); }; - var $_2b2xwxotjj6612lo = { + var $_7gvds6otjj68zbri = { applyAlign: applyAlign, applyVAlign: applyVAlign, unApplyAlign: unApplyAlign, @@ -5829,7 +5829,7 @@ var table = (function () { ] }; }; - var $_54zhfeoujj6612lr = { + var $_a8yy9goujj68zbro = { createStyleForm: createStyleForm, buildListItems: buildListItems, updateStyleField: updateStyleField, @@ -5865,7 +5865,7 @@ var table = (function () { } }); if (hasAdvancedCellTab(editor)) { - global$1.extend(data, $_54zhfeoujj6612lr.extractAdvancedStyles(dom, elm)); + global$1.extend(data, $_a8yy9goujj68zbro.extractAdvancedStyles(dom, elm)); } return data; }; @@ -5883,7 +5883,7 @@ var table = (function () { } } if (hasAdvancedCellTab(editor)) { - $_54zhfeoujj6612lr.syncAdvancedStyleFields(editor, evt); + $_a8yy9goujj68zbro.syncAdvancedStyleFields(editor, evt); } data = evt.control.rootControl.toJSON(); editor.undoManager.transact(function () { @@ -5901,14 +5901,14 @@ var table = (function () { cellElm = dom.rename(cellElm, data.type); } if (cells.length === 1) { - $_2b2xwxotjj6612lo.unApplyAlign(editor, cellElm); - $_2b2xwxotjj6612lo.unApplyVAlign(editor, cellElm); + $_7gvds6otjj68zbri.unApplyAlign(editor, cellElm); + $_7gvds6otjj68zbri.unApplyVAlign(editor, cellElm); } if (data.align) { - $_2b2xwxotjj6612lo.applyAlign(editor, cellElm, data.align); + $_7gvds6otjj68zbri.applyAlign(editor, cellElm, data.align); } if (data.valign) { - $_2b2xwxotjj6612lo.applyVAlign(editor, cellElm, data.valign); + $_7gvds6otjj68zbri.applyVAlign(editor, cellElm, data.valign); } }); editor.focus(); @@ -5944,7 +5944,7 @@ var table = (function () { name: 'class', type: 'listbox', label: 'Style', - values: $_54zhfeoujj6612lr.buildListItems(getCellClassList(editor), function (item) { + values: $_a8yy9goujj68zbro.buildListItems(getCellClassList(editor), function (item) { if (item.value) { item.textStyle = function () { return editor.formatter.getCssText({ @@ -6090,7 +6090,7 @@ var table = (function () { type: 'form', items: generalCellForm }, - $_54zhfeoujj6612lr.createStyleForm(editor) + $_a8yy9goujj68zbro.createStyleForm(editor) ], onsubmit: curry(onSubmitCellForm, editor, cells) }); @@ -6103,7 +6103,7 @@ var table = (function () { }); } }; - var $_61vnz4osjj6612lh = { open: open }; + var $_cj3gu7osjj68zbqz = { open: open }; var extractDataFromElement$1 = function (editor, elm) { var dom = editor.dom; @@ -6120,7 +6120,7 @@ var table = (function () { } }); if (hasAdvancedRowTab(editor)) { - global$1.extend(data, $_54zhfeoujj6612lr.extractAdvancedStyles(dom, elm)); + global$1.extend(data, $_a8yy9goujj68zbro.extractAdvancedStyles(dom, elm)); } return data; }; @@ -6153,7 +6153,7 @@ var table = (function () { } } if (hasAdvancedRowTab(editor)) { - $_54zhfeoujj6612lr.syncAdvancedStyleFields(editor, evt); + $_a8yy9goujj68zbro.syncAdvancedStyleFields(editor, evt); } var data = evt.control.rootControl.toJSON(); editor.undoManager.transact(function () { @@ -6165,8 +6165,8 @@ var table = (function () { switchRowType(editor.dom, rowElm, data.type); } if (data.align !== oldData.align) { - $_2b2xwxotjj6612lo.unApplyAlign(editor, rowElm); - $_2b2xwxotjj6612lo.applyAlign(editor, rowElm, data.align); + $_7gvds6otjj68zbri.unApplyAlign(editor, rowElm); + $_7gvds6otjj68zbri.applyAlign(editor, rowElm, data.align); } }); editor.focus(); @@ -6207,7 +6207,7 @@ var table = (function () { name: 'class', type: 'listbox', label: 'Style', - values: $_54zhfeoujj6612lr.buildListItems(getRowClassList(editor), function (item) { + values: $_a8yy9goujj68zbro.buildListItems(getRowClassList(editor), function (item) { if (item.value) { item.textStyle = function () { return editor.formatter.getCssText({ @@ -6285,7 +6285,7 @@ var table = (function () { type: 'form', items: generalRowForm }, - $_54zhfeoujj6612lr.createStyleForm(editor) + $_a8yy9goujj68zbro.createStyleForm(editor) ], onsubmit: curry(onSubmitRowForm, editor, rows, data) }); @@ -6298,7 +6298,7 @@ var table = (function () { }); } }; - var $_8rr8cdovjj6612lz = { open: open$1 }; + var $_5j3cnpovjj68zbsf = { open: open$1 }; var global$2 = tinymce.util.Tools.resolve('tinymce.Env'); @@ -6330,30 +6330,30 @@ var table = (function () { renderOpts = DefaultRenderOptions; } var table = makeTable(); - $_ghtnaumbjj6611vg.setAll(table, renderOpts.styles); - $_1i6un8m2jj6611tq.setAll(table, renderOpts.attributes); + $_8oaacwmbjj68za26.setAll(table, renderOpts.styles); + $_f2f6ivm2jj68z9y8.setAll(table, renderOpts.attributes); var tbody = tableBody(); - $_g3ng6wmdjj6611w8.append(table, tbody); + $_1egjydmdjj68za38.append(table, tbody); var trs = []; for (var i = 0; i < rows; i++) { var tr = tableRow(); for (var j = 0; j < columns; j++) { var td = i < rowHeaders || j < columnHeaders ? tableHeaderCell() : tableCell(); if (j < columnHeaders) { - $_1i6un8m2jj6611tq.set(td, 'scope', 'row'); + $_f2f6ivm2jj68z9y8.set(td, 'scope', 'row'); } if (i < rowHeaders) { - $_1i6un8m2jj6611tq.set(td, 'scope', 'col'); + $_f2f6ivm2jj68z9y8.set(td, 'scope', 'col'); } - $_g3ng6wmdjj6611w8.append(td, Element$$1.fromTag('br')); + $_1egjydmdjj68za38.append(td, Element$$1.fromTag('br')); if (renderOpts.percentages) { - $_ghtnaumbjj6611vg.set(td, 'width', 100 / columns + '%'); + $_8oaacwmbjj68za26.set(td, 'width', 100 / columns + '%'); } - $_g3ng6wmdjj6611w8.append(tr, td); + $_1egjydmdjj68za38.append(tr, td); } trs.push(tr); } - $_fn1ce5mfjj6611wf.append(tbody, trs); + $_81fruumfjj68za3l.append(tbody, trs); return table; }; @@ -6361,21 +6361,21 @@ var table = (function () { return element.dom().innerHTML; }; var set$5 = function (element, content) { - var owner = $_9ghx71ljjj6611ra.owner(element); + var owner = $_agswhiljjj68z9t1.owner(element); var docDom = owner.dom(); var fragment = Element$$1.fromDom(docDom.createDocumentFragment()); - var contentElements = $_eep9flmmjj6611ya.fromHtml(content, docDom); - $_fn1ce5mfjj6611wf.append(fragment, contentElements); - $_7nurwwmejj6611wa.empty(element); - $_g3ng6wmdjj6611w8.append(element, fragment); + var contentElements = $_40508vmmjj68za7i.fromHtml(content, docDom); + $_81fruumfjj68za3l.append(fragment, contentElements); + $_1t3bv6mejj68za3c.empty(element); + $_1egjydmdjj68za38.append(element, fragment); }; var getOuter$2 = function (element) { var container = Element$$1.fromTag('div'); var clone = Element$$1.fromDom(element.dom().cloneNode(true)); - $_g3ng6wmdjj6611w8.append(container, clone); + $_1egjydmdjj68za38.append(container, clone); return get$7(container); }; - var $_80hc1dp1jj6612nk = { + var $_34h6dyp1jj68zbvt = { get: get$7, set: set$5, getOuter: getOuter$2 @@ -6386,12 +6386,12 @@ var table = (function () { editor.selection.collapse(true); }; var selectFirstCellInTable = function (editor, tableElm) { - $_eby7xcm7jj6611ug.descendant(tableElm, 'td,th').each(curry(placeCaretInCell, editor)); + $_hz10wm7jj68z9zq.descendant(tableElm, 'td,th').each(curry(placeCaretInCell, editor)); }; var fireEvents = function (editor, table) { - each($_fhzhu6m4jj6611u4.descendants(table, 'tr'), function (row) { + each($_4ve49em4jj68z9yy.descendants(table, 'tr'), function (row) { fireNewRow(editor, row.dom()); - each($_fhzhu6m4jj6611u4.descendants(row, 'th,td'), function (cell) { + each($_4ve49em4jj68z9yy.descendants(row, 'th,td'), function (cell) { fireNewCell(editor, cell.dom()); }); }); @@ -6407,20 +6407,20 @@ var table = (function () { percentages: isPercentage(defaultStyles.width) && !isPixelsForced(editor) }; var table = render$1(rows, columns, 0, 0, options); - $_1i6un8m2jj6611tq.set(table, 'data-mce-id', '__mce'); - var html = $_80hc1dp1jj6612nk.getOuter(table); + $_f2f6ivm2jj68z9y8.set(table, 'data-mce-id', '__mce'); + var html = $_34h6dyp1jj68zbvt.getOuter(table); editor.insertContent(html); - return $_eby7xcm7jj6611ug.descendant(getBody$1(editor), 'table[data-mce-id="__mce"]').map(function (table) { + return $_hz10wm7jj68z9zq.descendant(getBody$1(editor), 'table[data-mce-id="__mce"]').map(function (table) { if (isPixelsForced(editor)) { - $_ghtnaumbjj6611vg.set(table, 'width', $_ghtnaumbjj6611vg.get(table, 'width')); + $_8oaacwmbjj68za26.set(table, 'width', $_8oaacwmbjj68za26.get(table, 'width')); } - $_1i6un8m2jj6611tq.remove(table, 'data-mce-id'); + $_f2f6ivm2jj68z9y8.remove(table, 'data-mce-id'); fireEvents(editor, table); selectFirstCellInTable(editor, table); return table.dom(); }).getOr(null); }; - var $_ecsrttoyjj6612mf = { insert: insert$1 }; + var $_eoijhtoyjj68zbti = { insert: insert$1 }; function styleTDTH(dom, elm, name, value) { if (elm.tagName === 'TD' || elm.tagName === 'TH') { @@ -6439,8 +6439,8 @@ var table = (function () { width: dom.getStyle(tableElm, 'width') || dom.getAttrib(tableElm, 'width'), height: dom.getStyle(tableElm, 'height') || dom.getAttrib(tableElm, 'height'), cellspacing: dom.getStyle(tableElm, 'border-spacing') || dom.getAttrib(tableElm, 'cellspacing'), - cellpadding: dom.getAttrib(tableElm, 'data-mce-cell-padding') || dom.getAttrib(tableElm, 'cellpadding') || $_2b2xwxotjj6612lo.getTDTHOverallStyle(editor.dom, tableElm, 'padding'), - border: dom.getAttrib(tableElm, 'data-mce-border') || dom.getAttrib(tableElm, 'border') || $_2b2xwxotjj6612lo.getTDTHOverallStyle(editor.dom, tableElm, 'border'), + cellpadding: dom.getAttrib(tableElm, 'data-mce-cell-padding') || dom.getAttrib(tableElm, 'cellpadding') || $_7gvds6otjj68zbri.getTDTHOverallStyle(editor.dom, tableElm, 'padding'), + border: dom.getAttrib(tableElm, 'data-mce-border') || dom.getAttrib(tableElm, 'border') || $_7gvds6otjj68zbri.getTDTHOverallStyle(editor.dom, tableElm, 'border'), borderColor: dom.getAttrib(tableElm, 'data-mce-border-color'), caption: !!dom.select('caption', tableElm)[0], class: dom.getAttrib(tableElm, 'class') @@ -6451,7 +6451,7 @@ var table = (function () { } }); if (hasAdvancedTableTab(editor)) { - global$1.extend(data, $_54zhfeoujj6612lr.extractAdvancedStyles(dom, tableElm)); + global$1.extend(data, $_a8yy9goujj68zbro.extractAdvancedStyles(dom, tableElm)); } return data; }; @@ -6505,7 +6505,7 @@ var table = (function () { var captionElm; var data; if (hasAdvancedTableTab(editor)) { - $_54zhfeoujj6612lr.syncAdvancedStyleFields(editor, evt); + $_a8yy9goujj68zbro.syncAdvancedStyleFields(editor, evt); } data = evt.control.rootControl.toJSON(); if (data.class === false) { @@ -6513,7 +6513,7 @@ var table = (function () { } editor.undoManager.transact(function () { if (!tableElm) { - tableElm = $_ecsrttoyjj6612mf.insert(editor, data.cols || 1, data.rows || 1); + tableElm = $_eoijhtoyjj68zbti.insert(editor, data.cols || 1, data.rows || 1); } applyDataToElement(editor, tableElm, data); captionElm = dom.select('caption', tableElm)[0]; @@ -6525,9 +6525,9 @@ var table = (function () { captionElm.innerHTML = !global$2.ie ? '
' : '\xA0'; tableElm.insertBefore(captionElm, tableElm.firstChild); } - $_2b2xwxotjj6612lo.unApplyAlign(editor, tableElm); + $_7gvds6otjj68zbri.unApplyAlign(editor, tableElm); if (data.align) { - $_2b2xwxotjj6612lo.applyAlign(editor, tableElm, data.align); + $_7gvds6otjj68zbri.applyAlign(editor, tableElm, data.align); } editor.focus(); editor.addVisual(); @@ -6559,7 +6559,7 @@ var table = (function () { name: 'class', type: 'listbox', label: 'Style', - values: $_54zhfeoujj6612lr.buildListItems(getTableClassList(editor), function (item) { + values: $_a8yy9goujj68zbro.buildListItems(getTableClassList(editor), function (item) { if (item.value) { item.textStyle = function () { return editor.formatter.getCssText({ @@ -6651,7 +6651,7 @@ var table = (function () { type: 'form', items: generalTableForm }, - $_54zhfeoujj6612lr.createStyleForm(editor) + $_a8yy9goujj68zbro.createStyleForm(editor) ], onsubmit: curry(onSubmitTableForm, editor, tableElm) }); @@ -6664,18 +6664,18 @@ var table = (function () { }); } }; - var $_159xpeowjj6612m7 = { open: open$2 }; + var $_99w3n3owjj68zbsv = { open: open$2 }; var each$3 = global$1.each; var registerCommands = function (editor, actions, cellSelection, selections, clipboardRows) { var isRoot = getIsRoot(editor); var eraseTable = function () { var cell = Element$$1.fromDom(editor.dom.getParent(editor.selection.getStart(), 'th,td')); - var table = $_kkb5dldjj6611p3.table(cell, isRoot); + var table = $_bb5w37ldjj68z9oi.table(cell, isRoot); table.filter(not(isRoot)).each(function (table) { var cursor = Element$$1.fromText(''); - $_g3ng6wmdjj6611w8.after(table, cursor); - $_7nurwwmejj6611wa.remove(table); + $_1egjydmdjj68za38.after(table, cursor); + $_1t3bv6mejj68za3c.remove(table); var rng = editor.dom.createRng(); rng.setStart(cursor.dom(), 0); rng.setEnd(cursor.dom(), 0); @@ -6686,7 +6686,7 @@ var table = (function () { return Element$$1.fromDom(editor.dom.getParent(editor.selection.getStart(), 'th,td')); }; var getTableFromCell = function (cell) { - return $_kkb5dldjj6611p3.table(cell, isRoot); + return $_bb5w37ldjj68z9oi.table(cell, isRoot); }; var getSize = function (table) { return { @@ -6705,7 +6705,7 @@ var table = (function () { var cell = getSelectionStartCell(); var table = getTableFromCell(cell); table.each(function (table) { - var targets = $_1y628smnjj6611yl.forMenu(selections, table, cell); + var targets = $_2c11plmnjj68za7u.forMenu(selections, table, cell); var beforeSize = getSize(table); execute(table, targets).each(function (rng) { resizeChange(editor, beforeSize, table); @@ -6721,22 +6721,22 @@ var table = (function () { var table = getTableFromCell(cell); return table.bind(function (table) { var doc = Element$$1.fromDom(editor.getDoc()); - var targets = $_1y628smnjj6611yl.forMenu(selections, table, cell); - var generators = $_9daz66mgjj6611wk.cellOperations(noop, doc, Option.none()); - return $_6ii7tyoqjj6612ld.copyRows(table, targets, generators); + var targets = $_2c11plmnjj68za7u.forMenu(selections, table, cell); + var generators = $_840xxpmgjj68za3w.cellOperations(noop, doc, Option.none()); + return $_1p923voqjj68zbqo.copyRows(table, targets, generators); }); }; var pasteOnSelection = function (execute) { clipboardRows.get().each(function (rows) { var clonedRows = map(rows, function (row) { - return $_4dh9zxmhjj6611xn.deep(row); + return $_bpjvoxmhjj68za69.deep(row); }); var cell = getSelectionStartCell(); var table = getTableFromCell(cell); table.bind(function (table) { var doc = Element$$1.fromDom(editor.getDoc()); - var generators = $_9daz66mgjj6611wk.paste(doc); - var targets = $_1y628smnjj6611yl.pasteRows(selections, table, cell, clonedRows, generators); + var generators = $_840xxpmgjj68za3w.paste(doc); + var targets = $_2c11plmnjj68za7u.pasteRows(selections, table, cell, clonedRows, generators); execute(table, targets).each(function (rng) { editor.selection.setRng(rng); editor.focus(); @@ -6788,17 +6788,17 @@ var table = (function () { editor.addCommand(name, func); }); each$3({ - mceInsertTable: curry($_159xpeowjj6612m7.open, editor), - mceTableProps: curry($_159xpeowjj6612m7.open, editor, true), - mceTableRowProps: curry($_8rr8cdovjj6612lz.open, editor), - mceTableCellProps: curry($_61vnz4osjj6612lh.open, editor) + mceInsertTable: curry($_99w3n3owjj68zbsv.open, editor), + mceTableProps: curry($_99w3n3owjj68zbsv.open, editor, true), + mceTableRowProps: curry($_5j3cnpovjj68zbsf.open, editor), + mceTableCellProps: curry($_cj3gu7osjj68zbqz.open, editor) }, function (func, name) { editor.addCommand(name, function (ui, val) { func(val); }); }); }; - var $_7lg8lyopjj6612km = { registerCommands: registerCommands }; + var $_eyesupopjj68zbos = { registerCommands: registerCommands }; var only$1 = function (element) { var parent = Option.from(element.dom().documentElement).map(Element$$1.fromDom).getOr(element); @@ -6809,7 +6809,7 @@ var table = (function () { }; }; var detached = function (editable, chrome) { - var origin = curry($_11vv3knfjj66128k.absolute, chrome); + var origin = curry($_ftl34knfjj68zare.absolute, chrome); return { parent: constant(chrome), view: constant(editable), @@ -6823,7 +6823,7 @@ var table = (function () { origin: constant(Position(0, 0)) }; }; - var $_g2dxpcp3jj6612o1 = { + var $_b52ugep3jj68zbwt = { only: only$1, detached: detached, body: body$1 @@ -6871,7 +6871,7 @@ var table = (function () { trigger: trigger }; }; - var $_8hq2j0p6jj6612ox = { create: create }; + var $_2wg2q0p6jj68zbyt = { create: create }; var mode = exactly([ 'compare', @@ -6891,33 +6891,33 @@ var table = (function () { 'move', 'delayDrop' ]); - var $_cfi5edpajj6612qt = { + var $_c8qtypajj68zc2b = { mode: mode, sink: sink, api: api$3 }; var styles$1 = css('ephox-dragster'); - var $_9zaozspcjj6612rf = { resolve: styles$1.resolve }; + var $_b1ylx2pcjj68zc3r = { resolve: styles$1.resolve }; function Blocker (options) { - var settings = merge$1({ 'layerClass': $_9zaozspcjj6612rf.resolve('blocker') }, options); + var settings = merge$1({ 'layerClass': $_b1ylx2pcjj68zc3r.resolve('blocker') }, options); var div = Element$$1.fromTag('div'); - $_1i6un8m2jj6611tq.set(div, 'role', 'presentation'); - $_ghtnaumbjj6611vg.setAll(div, { + $_f2f6ivm2jj68z9y8.set(div, 'role', 'presentation'); + $_8oaacwmbjj68za26.setAll(div, { position: 'fixed', left: '0px', top: '0px', width: '100%', height: '100%' }); - $_e55qa3o3jj6612ge.add(div, $_9zaozspcjj6612rf.resolve('blocker')); - $_e55qa3o3jj6612ge.add(div, settings.layerClass); + $_4cu61eo3jj68zbcy.add(div, $_b1ylx2pcjj68zc3r.resolve('blocker')); + $_4cu61eo3jj68zbcy.add(div, settings.layerClass); var element = function () { return div; }; var destroy = function () { - $_7nurwwmejj6611wa.remove(div); + $_1t3bv6mejj68za3c.remove(div); }; return { element: element, @@ -6966,19 +6966,19 @@ var table = (function () { var unbind = function (element, event, handler, useCapture) { element.dom().removeEventListener(event, handler, useCapture); }; - var $_cno5kapejj6612ro = { + var $_d27jtkpejj68zc47 = { bind: bind$1, capture: capture }; var filter$1 = constant(true); var bind$2 = function (element, event, handler) { - return $_cno5kapejj6612ro.bind(element, event, filter$1, handler); + return $_d27jtkpejj68zc47.bind(element, event, filter$1, handler); }; var capture$1 = function (element, event, handler) { - return $_cno5kapejj6612ro.capture(element, event, filter$1, handler); + return $_d27jtkpejj68zc47.capture(element, event, filter$1, handler); }; - var $_3x4gz5pdjj6612rk = { + var $_3ak63tpdjj68zc3z = { bind: bind$2, capture: capture$1 }; @@ -6994,10 +6994,10 @@ var table = (function () { }; var sink$1 = function (dragApi, settings) { var blocker = Blocker(settings); - var mdown = $_3x4gz5pdjj6612rk.bind(blocker.element(), 'mousedown', dragApi.forceDrop); - var mup = $_3x4gz5pdjj6612rk.bind(blocker.element(), 'mouseup', dragApi.drop); - var mmove = $_3x4gz5pdjj6612rk.bind(blocker.element(), 'mousemove', dragApi.move); - var mout = $_3x4gz5pdjj6612rk.bind(blocker.element(), 'mouseout', dragApi.delayDrop); + var mdown = $_3ak63tpdjj68zc3z.bind(blocker.element(), 'mousedown', dragApi.forceDrop); + var mup = $_3ak63tpdjj68zc3z.bind(blocker.element(), 'mouseup', dragApi.drop); + var mmove = $_3ak63tpdjj68zc3z.bind(blocker.element(), 'mousemove', dragApi.move); + var mout = $_3ak63tpdjj68zc3z.bind(blocker.element(), 'mouseout', dragApi.delayDrop); var destroy = function () { blocker.destroy(); mup.unbind(); @@ -7006,19 +7006,19 @@ var table = (function () { mdown.unbind(); }; var start = function (parent) { - $_g3ng6wmdjj6611w8.append(parent, blocker.element()); + $_1egjydmdjj68za38.append(parent, blocker.element()); }; var stop = function () { - $_7nurwwmejj6611wa.remove(blocker.element()); + $_1t3bv6mejj68za3c.remove(blocker.element()); }; - return $_cfi5edpajj6612qt.sink({ + return $_c8qtypajj68zc2b.sink({ element: blocker.element, start: start, stop: stop, destroy: destroy }); }; - var MouseDrag = $_cfi5edpajj6612qt.mode({ + var MouseDrag = $_c8qtypajj68zc2b.mode({ compare: compare, extract: extract$1, sink: sink$1, @@ -7046,7 +7046,7 @@ var table = (function () { }); }); }; - var events = $_8hq2j0p6jj6612ox.create({ move: Event(['info']) }); + var events = $_2wg2q0p6jj68zbyt.create({ move: Event(['info']) }); return { onEvent: onEvent, reset: reset, @@ -7118,7 +7118,7 @@ var table = (function () { var setup = function (mutation, mode, settings) { var active = false; - var events = $_8hq2j0p6jj6612ox.create({ + var events = $_2wg2q0p6jj68zbyt.create({ start: Event([]), stop: Event([]) }); @@ -7157,7 +7157,7 @@ var table = (function () { } }; }; - var sink = mode.sink($_cfi5edpajj6612qt.api({ + var sink = mode.sink($_c8qtypajj68zc2b.api({ forceDrop: drop, drop: runIfActive(drop), move: runIfActive(mousemove), @@ -7175,17 +7175,17 @@ var table = (function () { events: events.registry }; }; - var $_7k58gbpfjj6612ru = { setup: setup }; + var $_axf4axpfjj68zc4g = { setup: setup }; var transform$1 = function (mutation, options) { var settings = options !== undefined ? options : {}; var mode = settings.mode !== undefined ? settings.mode : MouseDrag; - return $_7k58gbpfjj6612ru.setup(mutation, mode, options); + return $_axf4axpfjj68zc4g.setup(mutation, mode, options); }; - var $_cnb43up8jj6612qc = { transform: transform$1 }; + var $_3i96j3p8jj68zc1e = { transform: transform$1 }; function Mutation () { - var events = $_8hq2j0p6jj6612ox.create({ + var events = $_2wg2q0p6jj68zbyt.create({ 'drag': Event([ 'xDelta', 'yDelta' @@ -7201,7 +7201,7 @@ var table = (function () { } function BarMutation () { - var events = $_8hq2j0p6jj6612ox.create({ + var events = $_2wg2q0p6jj68zbyt.create({ drag: Event([ 'xDelta', 'yDelta', @@ -7230,24 +7230,24 @@ var table = (function () { } var any = function (selector) { - return $_eby7xcm7jj6611ug.first(selector).isSome(); + return $_hz10wm7jj68z9zq.first(selector).isSome(); }; var ancestor$2 = function (scope, selector, isRoot) { - return $_eby7xcm7jj6611ug.ancestor(scope, selector, isRoot).isSome(); + return $_hz10wm7jj68z9zq.ancestor(scope, selector, isRoot).isSome(); }; var sibling$2 = function (scope, selector) { - return $_eby7xcm7jj6611ug.sibling(scope, selector).isSome(); + return $_hz10wm7jj68z9zq.sibling(scope, selector).isSome(); }; var child$3 = function (scope, selector) { - return $_eby7xcm7jj6611ug.child(scope, selector).isSome(); + return $_hz10wm7jj68z9zq.child(scope, selector).isSome(); }; var descendant$2 = function (scope, selector) { - return $_eby7xcm7jj6611ug.descendant(scope, selector).isSome(); + return $_hz10wm7jj68z9zq.descendant(scope, selector).isSome(); }; var closest$2 = function (scope, selector, isRoot) { - return $_eby7xcm7jj6611ug.closest(scope, selector, isRoot).isSome(); + return $_hz10wm7jj68z9zq.closest(scope, selector, isRoot).isSome(); }; - var $_foxkfkpmjj6612tb = { + var $_g2410npmjj68zc7b = { any: any, ancestor: ancestor$2, sibling: sibling$2, @@ -7256,27 +7256,27 @@ var table = (function () { closest: closest$2 }; - var resizeBarDragging = $_5qgu4fo1jj6612g9.resolve('resizer-bar-dragging'); + var resizeBarDragging = $_88o89ro1jj68zbcj.resolve('resizer-bar-dragging'); function BarManager (wire, direction, hdirection) { var mutation = BarMutation(); - var resizing = $_cnb43up8jj6612qc.transform(mutation, {}); + var resizing = $_3i96j3p8jj68zc1e.transform(mutation, {}); var hoverTable = Option.none(); var getResizer = function (element, type) { - return Option.from($_1i6un8m2jj6611tq.get(element, type)); + return Option.from($_f2f6ivm2jj68z9y8.get(element, type)); }; mutation.events.drag.bind(function (event) { getResizer(event.target(), 'data-row').each(function (_dataRow) { - var currentRow = $_69ej8xohjj6612ix.getInt(event.target(), 'top'); - $_ghtnaumbjj6611vg.set(event.target(), 'top', currentRow + event.yDelta() + 'px'); + var currentRow = $_771s5bohjj68zbjl.getInt(event.target(), 'top'); + $_8oaacwmbjj68za26.set(event.target(), 'top', currentRow + event.yDelta() + 'px'); }); getResizer(event.target(), 'data-column').each(function (_dataCol) { - var currentCol = $_69ej8xohjj6612ix.getInt(event.target(), 'left'); - $_ghtnaumbjj6611vg.set(event.target(), 'left', currentCol + event.xDelta() + 'px'); + var currentCol = $_771s5bohjj68zbjl.getInt(event.target(), 'left'); + $_8oaacwmbjj68za26.set(event.target(), 'left', currentCol + event.xDelta() + 'px'); }); }); var getDelta = function (target, direction) { - var newX = $_69ej8xohjj6612ix.getInt(target, direction); - var oldX = parseInt($_1i6un8m2jj6611tq.get(target, 'data-initial-' + direction), 10); + var newX = $_771s5bohjj68zbjl.getInt(target, direction); + var oldX = parseInt($_f2f6ivm2jj68z9y8.get(target, 'data-initial-' + direction), 10); return newX - oldX; }; resizing.events.stop.bind(function () { @@ -7284,55 +7284,55 @@ var table = (function () { hoverTable.each(function (table) { getResizer(target, 'data-row').each(function (row) { var delta = getDelta(target, 'top'); - $_1i6un8m2jj6611tq.remove(target, 'data-initial-top'); + $_f2f6ivm2jj68z9y8.remove(target, 'data-initial-top'); events.trigger.adjustHeight(table, delta, parseInt(row, 10)); }); getResizer(target, 'data-column').each(function (column) { var delta = getDelta(target, 'left'); - $_1i6un8m2jj6611tq.remove(target, 'data-initial-left'); + $_f2f6ivm2jj68z9y8.remove(target, 'data-initial-left'); events.trigger.adjustWidth(table, delta, parseInt(column, 10)); }); - $_93oxdpnxjj6612ed.refresh(wire, table, hdirection, direction); + $_24pgu3nxjj68zb6c.refresh(wire, table, hdirection, direction); }); }); }); var handler = function (target, direction) { events.trigger.startAdjust(); mutation.assign(target); - $_1i6un8m2jj6611tq.set(target, 'data-initial-' + direction, parseInt($_ghtnaumbjj6611vg.get(target, direction), 10)); - $_e55qa3o3jj6612ge.add(target, resizeBarDragging); - $_ghtnaumbjj6611vg.set(target, 'opacity', '0.2'); + $_f2f6ivm2jj68z9y8.set(target, 'data-initial-' + direction, parseInt($_8oaacwmbjj68za26.get(target, direction), 10)); + $_4cu61eo3jj68zbcy.add(target, resizeBarDragging); + $_8oaacwmbjj68za26.set(target, 'opacity', '0.2'); resizing.go(wire.parent()); }; - var mousedown = $_3x4gz5pdjj6612rk.bind(wire.parent(), 'mousedown', function (event) { - if ($_93oxdpnxjj6612ed.isRowBar(event.target())) + var mousedown = $_3ak63tpdjj68zc3z.bind(wire.parent(), 'mousedown', function (event) { + if ($_24pgu3nxjj68zb6c.isRowBar(event.target())) handler(event.target(), 'top'); - if ($_93oxdpnxjj6612ed.isColBar(event.target())) + if ($_24pgu3nxjj68zb6c.isColBar(event.target())) handler(event.target(), 'left'); }); var isRoot = function (e) { - return $_af5rtflljj6611ru.eq(e, wire.view()); + return $_71r8jdlljj68z9u5.eq(e, wire.view()); }; - var mouseover = $_3x4gz5pdjj6612rk.bind(wire.view(), 'mouseover', function (event) { - if ($_50pc0qm3jj6611u1.name(event.target()) === 'table' || $_foxkfkpmjj6612tb.closest(event.target(), 'table', isRoot)) { - hoverTable = $_50pc0qm3jj6611u1.name(event.target()) === 'table' ? Option.some(event.target()) : $_eby7xcm7jj6611ug.ancestor(event.target(), 'table', isRoot); + var mouseover = $_3ak63tpdjj68zc3z.bind(wire.view(), 'mouseover', function (event) { + if ($_a9t3wpm3jj68z9ys.name(event.target()) === 'table' || $_g2410npmjj68zc7b.closest(event.target(), 'table', isRoot)) { + hoverTable = $_a9t3wpm3jj68z9ys.name(event.target()) === 'table' ? Option.some(event.target()) : $_hz10wm7jj68z9zq.ancestor(event.target(), 'table', isRoot); hoverTable.each(function (ht) { - $_93oxdpnxjj6612ed.refresh(wire, ht, hdirection, direction); + $_24pgu3nxjj68zb6c.refresh(wire, ht, hdirection, direction); }); - } else if ($_ew2s0tm6jj6611ua.inBody(event.target())) { - $_93oxdpnxjj6612ed.destroy(wire); + } else if ($_43d7w1m6jj68z9ze.inBody(event.target())) { + $_24pgu3nxjj68zb6c.destroy(wire); } }); var destroy = function () { mousedown.unbind(); mouseover.unbind(); resizing.destroy(); - $_93oxdpnxjj6612ed.destroy(wire); + $_24pgu3nxjj68zb6c.destroy(wire); }; var refresh = function (tbl) { - $_93oxdpnxjj6612ed.refresh(wire, tbl, hdirection, direction); + $_24pgu3nxjj68zb6c.refresh(wire, tbl, hdirection, direction); }; - var events = $_8hq2j0p6jj6612ox.create({ + var events = $_2wg2q0p6jj68zbyt.create({ adjustHeight: Event([ 'table', 'delta', @@ -7350,16 +7350,16 @@ var table = (function () { refresh: refresh, on: resizing.on, off: resizing.off, - hideBars: curry($_93oxdpnxjj6612ed.hide, wire), - showBars: curry($_93oxdpnxjj6612ed.show, wire), + hideBars: curry($_24pgu3nxjj68zb6c.hide, wire), + showBars: curry($_24pgu3nxjj68zb6c.show, wire), events: events.registry }; } function TableResize (wire, vdirection) { - var hdirection = $_auy05hnejj66127y.height; + var hdirection = $_gcq8ovnejj68zaq1.height; var manager = BarManager(wire, vdirection, hdirection); - var events = $_8hq2j0p6jj6612ox.create({ + var events = $_2wg2q0p6jj68zbyt.create({ beforeResize: Event(['table']), afterResize: Event(['table']), startDrag: Event([]) @@ -7367,7 +7367,7 @@ var table = (function () { manager.events.adjustHeight.bind(function (event) { events.trigger.beforeResize(event.table()); var delta = hdirection.delta(event.delta(), event.table()); - $_amhm5eodjj6612i0.adjustHeight(event.table(), delta, event.row(), hdirection); + $_etar1podjj68zbhh.adjustHeight(event.table(), delta, event.row(), hdirection); events.trigger.afterResize(event.table()); }); manager.events.startAdjust.bind(function (event) { @@ -7376,7 +7376,7 @@ var table = (function () { manager.events.adjustWidth.bind(function (event) { events.trigger.beforeResize(event.table()); var delta = vdirection.delta(event.delta(), event.table()); - $_amhm5eodjj6612i0.adjustWidth(event.table(), delta, event.column(), vdirection); + $_etar1podjj68zbhh.adjustWidth(event.table(), delta, event.column(), vdirection); events.trigger.afterResize(event.table()); }); return { @@ -7391,7 +7391,7 @@ var table = (function () { var createContainer = function () { var container = Element$$1.fromTag('div'); - $_ghtnaumbjj6611vg.setAll(container, { + $_8oaacwmbjj68za26.setAll(container, { position: 'static', height: '0', width: '0', @@ -7399,18 +7399,18 @@ var table = (function () { margin: '0', border: '0' }); - $_g3ng6wmdjj6611w8.append($_ew2s0tm6jj6611ua.body(), container); + $_1egjydmdjj68za38.append($_43d7w1m6jj68z9ze.body(), container); return container; }; var get$8 = function (editor, container) { - return editor.inline ? $_g2dxpcp3jj6612o1.body(getBody$1(editor), createContainer()) : $_g2dxpcp3jj6612o1.only(Element$$1.fromDom(editor.getDoc())); + return editor.inline ? $_b52ugep3jj68zbwt.body(getBody$1(editor), createContainer()) : $_b52ugep3jj68zbwt.only(Element$$1.fromDom(editor.getDoc())); }; var remove$6 = function (editor, wire) { if (editor.inline) { - $_7nurwwmejj6611wa.remove(wire.parent()); + $_1t3bv6mejj68za3c.remove(wire.parent()); } }; - var $_1rttlspnjj6612tc = { + var $_3i7x2rpnjj68zc7f = { get: get$8, remove: remove$6 }; @@ -7431,19 +7431,19 @@ var table = (function () { return resize; }; var lazyWire = function () { - return wire.getOr($_g2dxpcp3jj6612o1.only(Element$$1.fromDom(editor.getBody()))); + return wire.getOr($_b52ugep3jj68zbwt.only(Element$$1.fromDom(editor.getBody()))); }; var destroy = function () { resize.each(function (sz) { sz.destroy(); }); wire.each(function (w) { - $_1rttlspnjj6612tc.remove(editor, w); + $_3i7x2rpnjj68zc7f.remove(editor, w); }); }; editor.on('init', function () { - var direction = TableDirection($_8f1ukqoljj6612k5.directionAt); - var rawWire = $_1rttlspnjj6612tc.get(editor); + var direction = TableDirection($_3iez4qoljj68zbnk.directionAt); + var rawWire = $_3i7x2rpnjj68zc7f.get(editor); wire = Option.some(rawWire); if (hasObjectResizing(editor) && hasTableResizeBars(editor)) { var sz = TableResize(rawWire, direction); @@ -7532,7 +7532,7 @@ var table = (function () { var folder$1 = function (fold) { return { fold: fold }; }; - var $_5711tjpqjj6612uw = { + var $_83wi9gpqjj68zcao = { none: none$2, first: first$5, middle: middle$1, @@ -7540,10 +7540,10 @@ var table = (function () { }; var detect$4 = function (current, isRoot) { - return $_kkb5dldjj6611p3.table(current, isRoot).bind(function (table) { - var all = $_kkb5dldjj6611p3.cells(table); + return $_bb5w37ldjj68z9oi.table(current, isRoot).bind(function (table) { + var all = $_bb5w37ldjj68z9oi.cells(table); var index = findIndex(all, function (x) { - return $_af5rtflljj6611ru.eq(current, x); + return $_71r8jdlljj68z9u5.eq(current, x); }); return index.map(function (ind) { return { @@ -7556,20 +7556,20 @@ var table = (function () { var next = function (current, isRoot) { var detection = detect$4(current, isRoot); return detection.fold(function () { - return $_5711tjpqjj6612uw.none(current); + return $_83wi9gpqjj68zcao.none(current); }, function (info) { - return info.index() + 1 < info.all().length ? $_5711tjpqjj6612uw.middle(current, info.all()[info.index() + 1]) : $_5711tjpqjj6612uw.last(current); + return info.index() + 1 < info.all().length ? $_83wi9gpqjj68zcao.middle(current, info.all()[info.index() + 1]) : $_83wi9gpqjj68zcao.last(current); }); }; var prev = function (current, isRoot) { var detection = detect$4(current, isRoot); return detection.fold(function () { - return $_5711tjpqjj6612uw.none(); + return $_83wi9gpqjj68zcao.none(); }, function (info) { - return info.index() - 1 >= 0 ? $_5711tjpqjj6612uw.middle(current, info.all()[info.index() - 1]) : $_5711tjpqjj6612uw.first(current); + return info.index() - 1 >= 0 ? $_83wi9gpqjj68zcao.middle(current, info.all()[info.index() - 1]) : $_83wi9gpqjj68zcao.first(current); }); }; - var $_4ldrtrppjj6612uj = { + var $_63xi5pppjj68zca1 = { next: next, prev: prev }; @@ -7590,7 +7590,7 @@ var table = (function () { var getStart = function (situ) { return situ.fold(identity, identity, identity); }; - var $_cq1w0mpsjj6612v5 = { + var $_2d0lrrpsjj68zcb6 = { before: adt.before, on: adt.on, after: adt.after, @@ -7625,7 +7625,7 @@ var table = (function () { return Element$$1.fromDom(rng.startContainer); }, relative: function (startSitu, finishSitu) { - return $_cq1w0mpsjj6612v5.getStart(startSitu); + return $_2d0lrrpsjj68zcb6.getStart(startSitu); }, exact: function (start, soffset, finish, foffset) { return start; @@ -7634,9 +7634,9 @@ var table = (function () { }; var getWin = function (selection) { var start = getStart$1(selection); - return $_9ghx71ljjj6611ra.defaultView(start); + return $_agswhiljjj68z9t1.defaultView(start); }; - var $_cd4ysmprjj6612uy = { + var $_d05yudprjj68zcas = { domRange: type$2.domRange, relative: type$2.relative, exact: type$2.exact, @@ -7646,7 +7646,7 @@ var table = (function () { }; var makeRange = function (start, soffset, finish, foffset) { - var doc = $_9ghx71ljjj6611ra.owner(start); + var doc = $_agswhiljjj68z9t1.owner(start); var rng = doc.dom().createRange(); rng.setStart(start.dom(), soffset); rng.setEnd(finish.dom(), foffset); @@ -7658,10 +7658,10 @@ var table = (function () { }; var after$2 = function (start, soffset, finish, foffset) { var r = makeRange(start, soffset, finish, foffset); - var same = $_af5rtflljj6611ru.eq(start, finish) && soffset === foffset; + var same = $_71r8jdlljj68z9u5.eq(start, finish) && soffset === foffset; return r.collapsed && !same; }; - var $_85oi2opujj6612vl = { + var $_3prhjtpujj68zcc3 = { after: after$2, commonAncestorContainer: commonAncestorContainer }; @@ -7674,7 +7674,7 @@ var table = (function () { }); return Element$$1.fromDom(fragment); }; - var $_fo664apvjj6612vn = { fromElements: fromElements }; + var $_3233d6pvjj68zcc6 = { fromElements: fromElements }; var selectNodeContents = function (win, element) { var rng = win.document.createRange(); @@ -7753,7 +7753,7 @@ var table = (function () { var toString = function (rng) { return rng.toString(); }; - var $_899ifopwjj6612vt = { + var $_ees3d8pwjj68zcch = { create: create$1, replaceWith: replaceWith, selectNodeContents: selectNodeContents, @@ -7800,20 +7800,20 @@ var table = (function () { relative: function (startSitu, finishSitu) { return { ltr: cached(function () { - return $_899ifopwjj6612vt.relativeToNative(win, startSitu, finishSitu); + return $_ees3d8pwjj68zcch.relativeToNative(win, startSitu, finishSitu); }), rtl: cached(function () { - return Option.some($_899ifopwjj6612vt.relativeToNative(win, finishSitu, startSitu)); + return Option.some($_ees3d8pwjj68zcch.relativeToNative(win, finishSitu, startSitu)); }) }; }, exact: function (start, soffset, finish, foffset) { return { ltr: cached(function () { - return $_899ifopwjj6612vt.exactToNative(win, start, soffset, finish, foffset); + return $_ees3d8pwjj68zcch.exactToNative(win, start, soffset, finish, foffset); }), rtl: cached(function () { - return Option.some($_899ifopwjj6612vt.exactToNative(win, finish, foffset, start, soffset)); + return Option.some($_ees3d8pwjj68zcch.exactToNative(win, finish, foffset, start, soffset)); }) }; } @@ -7855,7 +7855,7 @@ var table = (function () { } }); }; - var $_dvqv7xpxjj6612w2 = { + var $_7vv2bspxjj68zccw = { ltr: adt$1.ltr, rtl: adt$1.rtl, diagnose: diagnose, @@ -7884,7 +7884,7 @@ var table = (function () { var inRect = function (rect, x, y) { return x >= rect.left && x <= rect.right && y >= rect.top && y <= rect.bottom; }; - var $_avz5zkq0jj6612wu = { + var $_enxnl9q0jj68zcen = { inRect: inRect, searchForPoint: searchForPoint }; @@ -7900,8 +7900,8 @@ var table = (function () { var r = rangeForOffset(offset); return r.getBoundingClientRect(); }; - var length = $_3tom9amkjj6611y1.get(textnode).length; - var offset = $_avz5zkq0jj6612wu.searchForPoint(rectForOffset, x, y, rect.right, length); + var length = $_dxqxbemkjj68za6x.get(textnode).length; + var offset = $_enxnl9q0jj68zcen.searchForPoint(rectForOffset, x, y, rect.right, length); return rangeForOffset(offset); }; var locate = function (doc, node, x, y) { @@ -7909,24 +7909,24 @@ var table = (function () { r.selectNode(node.dom()); var rects = r.getClientRects(); var foundRect = findMap(rects, function (rect) { - return $_avz5zkq0jj6612wu.inRect(rect, x, y) ? Option.some(rect) : Option.none(); + return $_enxnl9q0jj68zcen.inRect(rect, x, y) ? Option.some(rect) : Option.none(); }); return foundRect.map(function (rect) { return locateOffset(doc, node, x, y, rect); }); }; - var $_60p7qvq1jj6612ww = { locate: locate }; + var $_7974vq1jj68zcer = { locate: locate }; var searchInChildren = function (doc, node, x, y) { var r = doc.dom().createRange(); - var nodes = $_9ghx71ljjj6611ra.children(node); + var nodes = $_agswhiljjj68z9t1.children(node); return findMap(nodes, function (n) { r.selectNode(n.dom()); - return $_avz5zkq0jj6612wu.inRect(r.getBoundingClientRect(), x, y) ? locateNode(doc, n, x, y) : Option.none(); + return $_enxnl9q0jj68zcen.inRect(r.getBoundingClientRect(), x, y) ? locateNode(doc, n, x, y) : Option.none(); }); }; var locateNode = function (doc, node, x, y) { - var locator = $_50pc0qm3jj6611u1.isText(node) ? $_60p7qvq1jj6612ww.locate : searchInChildren; + var locator = $_a9t3wpm3jj68z9ys.isText(node) ? $_7974vq1jj68zcer.locate : searchInChildren; return locator(doc, node, x, y); }; var locate$1 = function (doc, node, x, y) { @@ -7937,7 +7937,7 @@ var table = (function () { var boundedY = Math.max(rect.top, Math.min(rect.bottom, y)); return locateNode(doc, node, boundedX, boundedY); }; - var $_8iucxbpzjj6612wm = { locate: locate$1 }; + var $_6lywvrpzjj68zce5 = { locate: locate$1 }; var COLLAPSE_TO_LEFT = true; var COLLAPSE_TO_RIGHT = false; @@ -7955,7 +7955,7 @@ var table = (function () { cursorRange.selectNode(node.dom()); var rect = cursorRange.getBoundingClientRect(); var collapseDirection = getCollapseDirection(rect, x); - var f = collapseDirection === COLLAPSE_TO_LEFT ? $_fp4fd1mijj6611xr.first : $_fp4fd1mijj6611xr.last; + var f = collapseDirection === COLLAPSE_TO_LEFT ? $_c2gkadmijj68za6e.first : $_c2gkadmijj68za6e.last; return f(node).map(function (target) { return createCollapsedNode(doc, target, collapseDirection); }); @@ -7966,10 +7966,10 @@ var table = (function () { return Option.some(createCollapsedNode(doc, node, collapseDirection)); }; var search = function (doc, node, x) { - var f = $_9ghx71ljjj6611ra.children(node).length === 0 ? locateInEmpty : locateInElement; + var f = $_agswhiljjj68z9t1.children(node).length === 0 ? locateInEmpty : locateInElement; return f(doc, node, x); }; - var $_cg6rp5q2jj6612x4 = { search: search }; + var $_6emsj2q2jj68zcf5 = { search: search }; var caretPositionFromPoint = function (doc, x, y) { return Option.from(doc.dom().caretPositionFromPoint(x, y)).bind(function (pos) { @@ -7990,62 +7990,62 @@ var table = (function () { var rect = r.getBoundingClientRect(); var boundedX = Math.max(rect.left, Math.min(rect.right, x)); var boundedY = Math.max(rect.top, Math.min(rect.bottom, y)); - return $_8iucxbpzjj6612wm.locate(doc, node, boundedX, boundedY); + return $_6lywvrpzjj68zce5.locate(doc, node, boundedX, boundedY); }; var searchFromPoint = function (doc, x, y) { return Element$$1.fromPoint(doc, x, y).bind(function (elem) { var fallback = function () { - return $_cg6rp5q2jj6612x4.search(doc, elem, x); + return $_6emsj2q2jj68zcf5.search(doc, elem, x); }; - return $_9ghx71ljjj6611ra.children(elem).length === 0 ? fallback() : searchTextNodes(doc, elem, x, y).orThunk(fallback); + return $_agswhiljjj68z9t1.children(elem).length === 0 ? fallback() : searchTextNodes(doc, elem, x, y).orThunk(fallback); }); }; var availableSearch = document.caretPositionFromPoint ? caretPositionFromPoint : document.caretRangeFromPoint ? caretRangeFromPoint : searchFromPoint; var fromPoint$1 = function (win, x, y) { var doc = Element$$1.fromDom(win.document); return availableSearch(doc, x, y).map(function (rng) { - return $_cd4ysmprjj6612uy.range(Element$$1.fromDom(rng.startContainer), rng.startOffset, Element$$1.fromDom(rng.endContainer), rng.endOffset); + return $_d05yudprjj68zcas.range(Element$$1.fromDom(rng.startContainer), rng.startOffset, Element$$1.fromDom(rng.endContainer), rng.endOffset); }); }; - var $_2pdj7dpyjj6612wg = { fromPoint: fromPoint$1 }; + var $_f1nigrpyjj68zcdw = { fromPoint: fromPoint$1 }; var withinContainer = function (win, ancestor, outerRange, selector) { - var innerRange = $_899ifopwjj6612vt.create(win); - var self = $_ghms6ilfjj6611q9.is(ancestor, selector) ? [ancestor] : []; - var elements = self.concat($_fhzhu6m4jj6611u4.descendants(ancestor, selector)); + var innerRange = $_ees3d8pwjj68zcch.create(win); + var self = $_8dbecalfjj68z9r8.is(ancestor, selector) ? [ancestor] : []; + var elements = self.concat($_4ve49em4jj68z9yy.descendants(ancestor, selector)); return filter(elements, function (elem) { - $_899ifopwjj6612vt.selectNodeContentsUsing(innerRange, elem); - return $_899ifopwjj6612vt.isWithin(outerRange, innerRange); + $_ees3d8pwjj68zcch.selectNodeContentsUsing(innerRange, elem); + return $_ees3d8pwjj68zcch.isWithin(outerRange, innerRange); }); }; var find$3 = function (win, selection, selector) { - var outerRange = $_dvqv7xpxjj6612w2.asLtrRange(win, selection); + var outerRange = $_7vv2bspxjj68zccw.asLtrRange(win, selection); var ancestor = Element$$1.fromDom(outerRange.commonAncestorContainer); - return $_50pc0qm3jj6611u1.isElement(ancestor) ? withinContainer(win, ancestor, outerRange, selector) : []; + return $_a9t3wpm3jj68z9ys.isElement(ancestor) ? withinContainer(win, ancestor, outerRange, selector) : []; }; - var $_3a5ln1q3jj6612xd = { find: find$3 }; + var $_5vd1qxq3jj68zcfe = { find: find$3 }; var beforeSpecial = function (element, offset) { - var name = $_50pc0qm3jj6611u1.name(element); + var name = $_a9t3wpm3jj68z9ys.name(element); if ('input' === name) - return $_cq1w0mpsjj6612v5.after(element); + return $_2d0lrrpsjj68zcb6.after(element); else if (!contains([ 'br', 'img' ], name)) - return $_cq1w0mpsjj6612v5.on(element, offset); + return $_2d0lrrpsjj68zcb6.on(element, offset); else - return offset === 0 ? $_cq1w0mpsjj6612v5.before(element) : $_cq1w0mpsjj6612v5.after(element); + return offset === 0 ? $_2d0lrrpsjj68zcb6.before(element) : $_2d0lrrpsjj68zcb6.after(element); }; var preprocessRelative = function (startSitu, finishSitu) { - var start = startSitu.fold($_cq1w0mpsjj6612v5.before, beforeSpecial, $_cq1w0mpsjj6612v5.after); - var finish = finishSitu.fold($_cq1w0mpsjj6612v5.before, beforeSpecial, $_cq1w0mpsjj6612v5.after); - return $_cd4ysmprjj6612uy.relative(start, finish); + var start = startSitu.fold($_2d0lrrpsjj68zcb6.before, beforeSpecial, $_2d0lrrpsjj68zcb6.after); + var finish = finishSitu.fold($_2d0lrrpsjj68zcb6.before, beforeSpecial, $_2d0lrrpsjj68zcb6.after); + return $_d05yudprjj68zcas.relative(start, finish); }; var preprocessExact = function (start, soffset, finish, foffset) { var startSitu = beforeSpecial(start, soffset); var finishSitu = beforeSpecial(finish, foffset); - return $_cd4ysmprjj6612uy.relative(startSitu, finishSitu); + return $_d05yudprjj68zcas.relative(startSitu, finishSitu); }; var preprocess = function (selection) { return selection.match({ @@ -8058,7 +8058,7 @@ var table = (function () { exact: preprocessExact }); }; - var $_5cw4aaq4jj6612xi = { + var $_8bzmpcq4jj68zcfo = { beforeSpecial: beforeSpecial, preprocess: preprocess, preprocessRelative: preprocessRelative, @@ -8072,14 +8072,14 @@ var table = (function () { }); }; var doSetRange = function (win, start, soffset, finish, foffset) { - var rng = $_899ifopwjj6612vt.exactToNative(win, start, soffset, finish, foffset); + var rng = $_ees3d8pwjj68zcch.exactToNative(win, start, soffset, finish, foffset); doSetNativeRange(win, rng); }; var findWithin = function (win, selection, selector) { - return $_3a5ln1q3jj6612xd.find(win, selection, selector); + return $_5vd1qxq3jj68zcfe.find(win, selection, selector); }; var setRangeFromRelative = function (win, relative) { - return $_dvqv7xpxjj6612w2.diagnose(win, relative).match({ + return $_7vv2bspxjj68zccw.diagnose(win, relative).match({ ltr: function (start, soffset, finish, foffset) { doSetRange(win, start, soffset, finish, foffset); }, @@ -8097,20 +8097,20 @@ var table = (function () { }); }; var setExact = function (win, start, soffset, finish, foffset) { - var relative = $_5cw4aaq4jj6612xi.preprocessExact(start, soffset, finish, foffset); + var relative = $_8bzmpcq4jj68zcfo.preprocessExact(start, soffset, finish, foffset); setRangeFromRelative(win, relative); }; var setRelative = function (win, startSitu, finishSitu) { - var relative = $_5cw4aaq4jj6612xi.preprocessRelative(startSitu, finishSitu); + var relative = $_8bzmpcq4jj68zcfo.preprocessRelative(startSitu, finishSitu); setRangeFromRelative(win, relative); }; var toNative = function (selection) { - var win = $_cd4ysmprjj6612uy.getWin(selection).dom(); + var win = $_d05yudprjj68zcas.getWin(selection).dom(); var getDomRange = function (start, soffset, finish, foffset) { - return $_899ifopwjj6612vt.exactToNative(win, start, soffset, finish, foffset); + return $_ees3d8pwjj68zcch.exactToNative(win, start, soffset, finish, foffset); }; - var filtered = $_5cw4aaq4jj6612xi.preprocess(selection); - return $_dvqv7xpxjj6612w2.diagnose(win, filtered).match({ + var filtered = $_8bzmpcq4jj68zcfo.preprocess(selection); + return $_7vv2bspxjj68zccw.diagnose(win, filtered).match({ ltr: getDomRange, rtl: getDomRange }); @@ -8119,7 +8119,7 @@ var table = (function () { if (selection.rangeCount > 0) { var firstRng = selection.getRangeAt(0); var lastRng = selection.getRangeAt(selection.rangeCount - 1); - return Option.some($_cd4ysmprjj6612uy.range(Element$$1.fromDom(firstRng.startContainer), firstRng.startOffset, Element$$1.fromDom(lastRng.endContainer), lastRng.endOffset)); + return Option.some($_d05yudprjj68zcas.range(Element$$1.fromDom(firstRng.startContainer), firstRng.startOffset, Element$$1.fromDom(lastRng.endContainer), lastRng.endOffset)); } else { return Option.none(); } @@ -8127,15 +8127,15 @@ var table = (function () { var doGetExact = function (selection) { var anchorNode = Element$$1.fromDom(selection.anchorNode); var focusNode = Element$$1.fromDom(selection.focusNode); - return $_85oi2opujj6612vl.after(anchorNode, selection.anchorOffset, focusNode, selection.focusOffset) ? Option.some($_cd4ysmprjj6612uy.range(Element$$1.fromDom(selection.anchorNode), selection.anchorOffset, Element$$1.fromDom(selection.focusNode), selection.focusOffset)) : readRange(selection); + return $_3prhjtpujj68zcc3.after(anchorNode, selection.anchorOffset, focusNode, selection.focusOffset) ? Option.some($_d05yudprjj68zcas.range(Element$$1.fromDom(selection.anchorNode), selection.anchorOffset, Element$$1.fromDom(selection.focusNode), selection.focusOffset)) : readRange(selection); }; var setToElement = function (win, element) { - var rng = $_899ifopwjj6612vt.selectNodeContents(win, element); + var rng = $_ees3d8pwjj68zcch.selectNodeContents(win, element); doSetNativeRange(win, rng); }; var forElement = function (win, element) { - var rng = $_899ifopwjj6612vt.selectNodeContents(win, element); - return $_cd4ysmprjj6612uy.range(Element$$1.fromDom(rng.startContainer), rng.startOffset, Element$$1.fromDom(rng.endContainer), rng.endOffset); + var rng = $_ees3d8pwjj68zcch.selectNodeContents(win, element); + return $_d05yudprjj68zcas.range(Element$$1.fromDom(rng.startContainer), rng.startOffset, Element$$1.fromDom(rng.endContainer), rng.endOffset); }; var getExact = function (win) { return Option.from(win.getSelection()).filter(function (sel) { @@ -8144,45 +8144,45 @@ var table = (function () { }; var get$9 = function (win) { return getExact(win).map(function (range) { - return $_cd4ysmprjj6612uy.exact(range.start(), range.soffset(), range.finish(), range.foffset()); + return $_d05yudprjj68zcas.exact(range.start(), range.soffset(), range.finish(), range.foffset()); }); }; var getFirstRect$1 = function (win, selection) { - var rng = $_dvqv7xpxjj6612w2.asLtrRange(win, selection); - return $_899ifopwjj6612vt.getFirstRect(rng); + var rng = $_7vv2bspxjj68zccw.asLtrRange(win, selection); + return $_ees3d8pwjj68zcch.getFirstRect(rng); }; var getBounds$2 = function (win, selection) { - var rng = $_dvqv7xpxjj6612w2.asLtrRange(win, selection); - return $_899ifopwjj6612vt.getBounds(rng); + var rng = $_7vv2bspxjj68zccw.asLtrRange(win, selection); + return $_ees3d8pwjj68zcch.getBounds(rng); }; var getAtPoint = function (win, x, y) { - return $_2pdj7dpyjj6612wg.fromPoint(win, x, y); + return $_f1nigrpyjj68zcdw.fromPoint(win, x, y); }; var getAsString = function (win, selection) { - var rng = $_dvqv7xpxjj6612w2.asLtrRange(win, selection); - return $_899ifopwjj6612vt.toString(rng); + var rng = $_7vv2bspxjj68zccw.asLtrRange(win, selection); + return $_ees3d8pwjj68zcch.toString(rng); }; var clear$1 = function (win) { var selection = win.getSelection(); selection.removeAllRanges(); }; var clone$2 = function (win, selection) { - var rng = $_dvqv7xpxjj6612w2.asLtrRange(win, selection); - return $_899ifopwjj6612vt.cloneFragment(rng); + var rng = $_7vv2bspxjj68zccw.asLtrRange(win, selection); + return $_ees3d8pwjj68zcch.cloneFragment(rng); }; var replace$1 = function (win, selection, elements) { - var rng = $_dvqv7xpxjj6612w2.asLtrRange(win, selection); - var fragment = $_fo664apvjj6612vn.fromElements(elements, win.document); - $_899ifopwjj6612vt.replaceWith(rng, fragment); + var rng = $_7vv2bspxjj68zccw.asLtrRange(win, selection); + var fragment = $_3233d6pvjj68zcc6.fromElements(elements, win.document); + $_ees3d8pwjj68zcch.replaceWith(rng, fragment); }; var deleteAt = function (win, selection) { - var rng = $_dvqv7xpxjj6612w2.asLtrRange(win, selection); - $_899ifopwjj6612vt.deleteContents(rng); + var rng = $_7vv2bspxjj68zccw.asLtrRange(win, selection); + $_ees3d8pwjj68zcch.deleteContents(rng); }; var isCollapsed = function (start, soffset, finish, foffset) { - return $_af5rtflljj6611ru.eq(start, finish) && soffset === foffset; + return $_71r8jdlljj68z9u5.eq(start, finish) && soffset === foffset; }; - var $_75291gptjj6612ve = { + var $_35kaduptjj68zcbm = { setExact: setExact, getExact: getExact, get: get$9, @@ -8205,31 +8205,31 @@ var table = (function () { var global$3 = tinymce.util.Tools.resolve('tinymce.util.VK'); var forward = function (editor, isRoot, cell, lazyWire) { - return go(editor, isRoot, $_4ldrtrppjj6612uj.next(cell), lazyWire); + return go(editor, isRoot, $_63xi5pppjj68zca1.next(cell), lazyWire); }; var backward = function (editor, isRoot, cell, lazyWire) { - return go(editor, isRoot, $_4ldrtrppjj6612uj.prev(cell), lazyWire); + return go(editor, isRoot, $_63xi5pppjj68zca1.prev(cell), lazyWire); }; var getCellFirstCursorPosition = function (editor, cell) { - var selection = $_cd4ysmprjj6612uy.exact(cell, 0, cell, 0); - return $_75291gptjj6612ve.toNative(selection); + var selection = $_d05yudprjj68zcas.exact(cell, 0, cell, 0); + return $_35kaduptjj68zcbm.toNative(selection); }; var getNewRowCursorPosition = function (editor, table) { - var rows = $_fhzhu6m4jj6611u4.descendants(table, 'tr'); + var rows = $_4ve49em4jj68z9yy.descendants(table, 'tr'); return last(rows).bind(function (last$$1) { - return $_eby7xcm7jj6611ug.descendant(last$$1, 'td,th').map(function (first) { + return $_hz10wm7jj68z9zq.descendant(last$$1, 'td,th').map(function (first) { return getCellFirstCursorPosition(editor, first); }); }); }; var go = function (editor, isRoot, cell, actions, lazyWire) { return cell.fold(Option.none, Option.none, function (current, next) { - return $_fp4fd1mijj6611xr.first(next).map(function (cell) { + return $_c2gkadmijj68za6e.first(next).map(function (cell) { return getCellFirstCursorPosition(editor, cell); }); }, function (current) { - return $_kkb5dldjj6611p3.table(current, isRoot).bind(function (table) { - var targets = $_1y628smnjj6611yl.noMenu(current); + return $_bb5w37ldjj68z9oi.table(current, isRoot).bind(function (table) { + var targets = $_2c11plmnjj68za7u.noMenu(current); editor.undoManager.transact(function () { actions.insertRowsAfter(table, targets); }); @@ -8246,13 +8246,13 @@ var table = (function () { if (event.keyCode === global$3.TAB) { var body_1 = getBody$1(editor); var isRoot_1 = function (element) { - var name = $_50pc0qm3jj6611u1.name(element); - return $_af5rtflljj6611ru.eq(element, body_1) || contains(rootElements, name); + var name = $_a9t3wpm3jj68z9ys.name(element); + return $_71r8jdlljj68z9u5.eq(element, body_1) || contains(rootElements, name); }; var rng = editor.selection.getRng(); if (rng.collapsed) { var start = Element$$1.fromDom(rng.startContainer); - $_kkb5dldjj6611p3.cell(start, isRoot_1).each(function (cell) { + $_bb5w37ldjj68z9oi.cell(start, isRoot_1).each(function (cell) { event.preventDefault(); var navigation = event.shiftKey ? backward : forward; var rng = navigation(editor, isRoot_1, cell, actions, lazyWire); @@ -8263,10 +8263,10 @@ var table = (function () { } } }; - var $_8z8fospojj6612tr = { handle: handle$1 }; + var $_ffyx29pojj68zc8f = { handle: handle$1 }; var response = Immutable('selection', 'kill'); - var $_5t8svvq8jj6612z1 = { response: response }; + var $_4tfzbqq8jj68zcj6 = { response: response }; var isKey = function (key) { return function (keycode) { @@ -8278,7 +8278,7 @@ var table = (function () { var isNavigation = function (keycode) { return keycode >= 37 && keycode <= 40; }; - var $_iex8lq9jj6612z5 = { + var $_e1orb1q9jj68zcjg = { ltr: { isBackward: isKey(37), isForward: isKey(39) @@ -8293,7 +8293,7 @@ var table = (function () { }; var convertToRange = function (win, selection) { - var rng = $_dvqv7xpxjj6612w2.asLtrRange(win, selection); + var rng = $_7vv2bspxjj68zccw.asLtrRange(win, selection); return { start: constant(Element$$1.fromDom(rng.startContainer)), soffset: constant(rng.startOffset), @@ -8303,16 +8303,16 @@ var table = (function () { }; var makeSitus = function (start, soffset, finish, foffset) { return { - start: constant($_cq1w0mpsjj6612v5.on(start, soffset)), - finish: constant($_cq1w0mpsjj6612v5.on(finish, foffset)) + start: constant($_2d0lrrpsjj68zcb6.on(start, soffset)), + finish: constant($_2d0lrrpsjj68zcb6.on(finish, foffset)) }; }; - var $_13jituqbjj6612zy = { + var $_g1lj4uqbjj68zckv = { convertToRange: convertToRange, makeSitus: makeSitus }; - var isSafari = $_2fambnlqjj6611sh.detect().browser.isSafari(); + var isSafari = $_8lnul5lqjj68z9vm.detect().browser.isSafari(); var get$10 = function (_doc) { var doc = _doc !== undefined ? _doc.dom() : document; var x = doc.body.scrollLeft || doc.documentElement.scrollLeft; @@ -8330,7 +8330,7 @@ var table = (function () { win.scrollBy(x, y); }; var setToElement$1 = function (win, element) { - var pos = $_11vv3knfjj66128k.absolute(element); + var pos = $_ftl34knfjj68zare.absolute(element); var doc = Element$$1.fromDom(win.document); to(pos.left(), pos.top(), doc); }; @@ -8376,12 +8376,12 @@ var table = (function () { }; var scrollBarWidth = function () { var scrollDiv = Element$$1.fromHtml('
'); - $_g3ng6wmdjj6611w8.after($_ew2s0tm6jj6611ua.body(), scrollDiv); + $_1egjydmdjj68za38.after($_43d7w1m6jj68z9ze.body(), scrollDiv); var w = scrollDiv.dom().offsetWidth - scrollDiv.dom().clientWidth; - $_7nurwwmejj6611wa.remove(scrollDiv); + $_1t3bv6mejj68za3c.remove(scrollDiv); return w; }; - var $_9k8qi3qcjj66130c = { + var $_5nel2vqcjj68zclo = { get: get$10, to: to, by: by, @@ -8401,49 +8401,49 @@ var table = (function () { return element.dom().getBoundingClientRect(); }; var getRangedRect = function (start, soffset, finish, foffset) { - var sel = $_cd4ysmprjj6612uy.exact(start, soffset, finish, foffset); - return $_75291gptjj6612ve.getFirstRect(win, sel).map(function (structRect) { + var sel = $_d05yudprjj68zcas.exact(start, soffset, finish, foffset); + return $_35kaduptjj68zcbm.getFirstRect(win, sel).map(function (structRect) { return map$1(structRect, apply); }); }; var getSelection = function () { - return $_75291gptjj6612ve.get(win).map(function (exactAdt) { - return $_13jituqbjj6612zy.convertToRange(win, exactAdt); + return $_35kaduptjj68zcbm.get(win).map(function (exactAdt) { + return $_g1lj4uqbjj68zckv.convertToRange(win, exactAdt); }); }; var fromSitus = function (situs) { - var relative = $_cd4ysmprjj6612uy.relative(situs.start(), situs.finish()); - return $_13jituqbjj6612zy.convertToRange(win, relative); + var relative = $_d05yudprjj68zcas.relative(situs.start(), situs.finish()); + return $_g1lj4uqbjj68zckv.convertToRange(win, relative); }; var situsFromPoint = function (x, y) { - return $_75291gptjj6612ve.getAtPoint(win, x, y).map(function (exact) { + return $_35kaduptjj68zcbm.getAtPoint(win, x, y).map(function (exact) { return { - start: constant($_cq1w0mpsjj6612v5.on(exact.start(), exact.soffset())), - finish: constant($_cq1w0mpsjj6612v5.on(exact.finish(), exact.foffset())) + start: constant($_2d0lrrpsjj68zcb6.on(exact.start(), exact.soffset())), + finish: constant($_2d0lrrpsjj68zcb6.on(exact.finish(), exact.foffset())) }; }); }; var clearSelection = function () { - $_75291gptjj6612ve.clear(win); + $_35kaduptjj68zcbm.clear(win); }; var selectContents = function (element) { - $_75291gptjj6612ve.setToElement(win, element); + $_35kaduptjj68zcbm.setToElement(win, element); }; var setSelection = function (sel) { - $_75291gptjj6612ve.setExact(win, sel.start(), sel.soffset(), sel.finish(), sel.foffset()); + $_35kaduptjj68zcbm.setExact(win, sel.start(), sel.soffset(), sel.finish(), sel.foffset()); }; var setRelativeSelection = function (start, finish) { - $_75291gptjj6612ve.setRelative(win, start, finish); + $_35kaduptjj68zcbm.setRelative(win, start, finish); }; var getInnerHeight = function () { return win.innerHeight; }; var getScrollY = function () { - var pos = $_9k8qi3qcjj66130c.get(Element$$1.fromDom(win.document)); + var pos = $_5nel2vqcjj68zclo.get(Element$$1.fromDom(win.document)); return pos.top(); }; var scrollBy = function (x, y) { - $_9k8qi3qcjj66130c.by(x, y, Element$$1.fromDom(win.document)); + $_5nel2vqcjj68zclo.by(x, y, Element$$1.fromDom(win.document)); }; return { elementFromPoint: elementFromPoint, @@ -8463,9 +8463,9 @@ var table = (function () { } var sync = function (container, isRoot, start, soffset, finish, foffset, selectRange) { - if (!($_af5rtflljj6611ru.eq(start, finish) && soffset === foffset)) { - return $_eby7xcm7jj6611ug.closest(start, 'td,th', isRoot).bind(function (s) { - return $_eby7xcm7jj6611ug.closest(finish, 'td,th', isRoot).bind(function (f) { + if (!($_71r8jdlljj68z9u5.eq(start, finish) && soffset === foffset)) { + return $_hz10wm7jj68z9zq.closest(start, 'td,th', isRoot).bind(function (s) { + return $_hz10wm7jj68z9zq.closest(finish, 'td,th', isRoot).bind(function (f) { return detect$5(container, isRoot, s, f, selectRange); }); }); @@ -8474,12 +8474,12 @@ var table = (function () { } }; var detect$5 = function (container, isRoot, start, finish, selectRange) { - if (!$_af5rtflljj6611ru.eq(start, finish)) { - return $_ctk6mymqjj6611zq.identify(start, finish, isRoot).bind(function (cellSel) { + if (!$_71r8jdlljj68z9u5.eq(start, finish)) { + return $_9z6u35mqjj68za9r.identify(start, finish, isRoot).bind(function (cellSel) { var boxes = cellSel.boxes().getOr([]); if (boxes.length > 0) { selectRange(container, boxes, cellSel.start(), cellSel.finish()); - return Option.some($_5t8svvq8jj6612z1.response(Option.some($_13jituqbjj6612zy.makeSitus(start, 0, start, $_55x7bumjjj6611xw.getEnd(start))), true)); + return Option.some($_4tfzbqq8jj68zcj6.response(Option.some($_g1lj4uqbjj68zckv.makeSitus(start, 0, start, $_6bk9csmjjj68za6p.getEnd(start))), true)); } else { return Option.none(); } @@ -8494,9 +8494,9 @@ var table = (function () { annotations.selectRange(container, newSels.boxes(), newSels.start(), newSels.finish()); return newSels.boxes(); }; - return $_ctk6mymqjj6611zq.shiftSelection(selected, rows, columns, annotations.firstSelectedSelector(), annotations.lastSelectedSelector()).map(updateSelection); + return $_9z6u35mqjj68za9r.shiftSelection(selected, rows, columns, annotations.firstSelectedSelector(), annotations.lastSelectedSelector()).map(updateSelection); }; - var $_6k0go6qdjj66130q = { + var $_638qa9qdjj68zcme = { sync: sync, detect: detect$5, update: update @@ -8559,7 +8559,7 @@ var table = (function () { var toString$1 = function (caret) { return '(' + caret.left() + ', ' + caret.top() + ') -> (' + caret.right() + ', ' + caret.bottom() + ')'; }; - var $_935saxqgjj66132o = { + var $_8aklyqqgjj68zcqf = { nu: nu$3, moveUp: moveUp, moveDown: moveDown, @@ -8572,14 +8572,14 @@ var table = (function () { }; var getPartialBox = function (bridge, element, offset) { - if (offset >= 0 && offset < $_55x7bumjjj6611xw.getEnd(element)) + if (offset >= 0 && offset < $_6bk9csmjjj68za6p.getEnd(element)) return bridge.getRangedRect(element, offset, element, offset + 1); else if (offset > 0) return bridge.getRangedRect(element, offset - 1, element, offset); return Option.none(); }; var toCaret = function (rect) { - return $_935saxqgjj66132o.nu({ + return $_8aklyqqgjj68zcqf.nu({ left: rect.left, top: rect.top, right: rect.right, @@ -8590,22 +8590,22 @@ var table = (function () { return Option.some(bridge.getRect(element)); }; var getBoxAt = function (bridge, element, offset) { - if ($_50pc0qm3jj6611u1.isElement(element)) + if ($_a9t3wpm3jj68z9ys.isElement(element)) return getElemBox(bridge, element).map(toCaret); - else if ($_50pc0qm3jj6611u1.isText(element)) + else if ($_a9t3wpm3jj68z9ys.isText(element)) return getPartialBox(bridge, element, offset).map(toCaret); else return Option.none(); }; var getEntireBox = function (bridge, element) { - if ($_50pc0qm3jj6611u1.isElement(element)) + if ($_a9t3wpm3jj68z9ys.isElement(element)) return getElemBox(bridge, element).map(toCaret); - else if ($_50pc0qm3jj6611u1.isText(element)) - return bridge.getRangedRect(element, 0, element, $_55x7bumjjj6611xw.getEnd(element)).map(toCaret); + else if ($_a9t3wpm3jj68z9ys.isText(element)) + return bridge.getRangedRect(element, 0, element, $_6bk9csmjjj68za6p.getEnd(element)).map(toCaret); else return Option.none(); }; - var $_6mhxhqqhjj66132u = { + var $_3we3pqqhjj68zcqp = { getBoxAt: getBoxAt, getEntireBox: getEntireBox }; @@ -8661,7 +8661,7 @@ var table = (function () { }); }); }; - var $_8dojdyqmjj66134a = { + var $_6t1cjtqmjj68zctu = { backtrack: backtrack, sidestep: sidestep, advance: advance, @@ -8692,13 +8692,13 @@ var table = (function () { first: first }; }; - var $_ff3spdqnjj66134k = { + var $_5tcbnfqnjj68zcuh = { left: left$1, right: right$1 }; var hone = function (universe, item, predicate, mode, direction, isRoot) { - var next = $_8dojdyqmjj66134a.go(universe, item, mode, direction); + var next = $_6t1cjtqmjj68zctu.go(universe, item, mode, direction); return next.bind(function (n) { if (isRoot(n.item())) return Option.none(); @@ -8707,12 +8707,12 @@ var table = (function () { }); }; var left$2 = function (universe, item, predicate, isRoot) { - return hone(universe, item, predicate, $_8dojdyqmjj66134a.sidestep, $_ff3spdqnjj66134k.left(), isRoot); + return hone(universe, item, predicate, $_6t1cjtqmjj68zctu.sidestep, $_5tcbnfqnjj68zcuh.left(), isRoot); }; var right$2 = function (universe, item, predicate, isRoot) { - return hone(universe, item, predicate, $_8dojdyqmjj66134a.sidestep, $_ff3spdqnjj66134k.right(), isRoot); + return hone(universe, item, predicate, $_6t1cjtqmjj68zctu.sidestep, $_5tcbnfqnjj68zcuh.right(), isRoot); }; - var $_g4zc75qljj661345 = { + var $_1l1kn2qljj68zctk = { left: left$2, right: right$2 }; @@ -8727,55 +8727,55 @@ var table = (function () { return seekRight(universe, item, curry(isLeaf, universe), isRoot); }; var seekLeft = function (universe, item, predicate, isRoot) { - return $_g4zc75qljj661345.left(universe, item, predicate, isRoot); + return $_1l1kn2qljj68zctk.left(universe, item, predicate, isRoot); }; var seekRight = function (universe, item, predicate, isRoot) { - return $_g4zc75qljj661345.right(universe, item, predicate, isRoot); + return $_1l1kn2qljj68zctk.right(universe, item, predicate, isRoot); }; var walkers = function () { return { - left: $_ff3spdqnjj66134k.left, - right: $_ff3spdqnjj66134k.right + left: $_5tcbnfqnjj68zcuh.left, + right: $_5tcbnfqnjj68zcuh.right }; }; var walk = function (universe, item, mode, direction, _rules) { - return $_8dojdyqmjj66134a.go(universe, item, mode, direction, _rules); + return $_6t1cjtqmjj68zctu.go(universe, item, mode, direction, _rules); }; - var $_exp8zcqkjj661340 = { + var $_entrxwqkjj68zctb = { before: before$2, after: after$3, seekLeft: seekLeft, seekRight: seekRight, walkers: walkers, walk: walk, - backtrack: $_8dojdyqmjj66134a.backtrack, - sidestep: $_8dojdyqmjj66134a.sidestep, - advance: $_8dojdyqmjj66134a.advance + backtrack: $_6t1cjtqmjj68zctu.backtrack, + sidestep: $_6t1cjtqmjj68zctu.sidestep, + advance: $_6t1cjtqmjj68zctu.advance }; var universe$2 = DomUniverse(); var gather = function (element, prune, transform) { - return $_exp8zcqkjj661340.gather(universe$2, element, prune, transform); + return $_entrxwqkjj68zctb.gather(universe$2, element, prune, transform); }; var before$3 = function (element, isRoot) { - return $_exp8zcqkjj661340.before(universe$2, element, isRoot); + return $_entrxwqkjj68zctb.before(universe$2, element, isRoot); }; var after$4 = function (element, isRoot) { - return $_exp8zcqkjj661340.after(universe$2, element, isRoot); + return $_entrxwqkjj68zctb.after(universe$2, element, isRoot); }; var seekLeft$1 = function (element, predicate, isRoot) { - return $_exp8zcqkjj661340.seekLeft(universe$2, element, predicate, isRoot); + return $_entrxwqkjj68zctb.seekLeft(universe$2, element, predicate, isRoot); }; var seekRight$1 = function (element, predicate, isRoot) { - return $_exp8zcqkjj661340.seekRight(universe$2, element, predicate, isRoot); + return $_entrxwqkjj68zctb.seekRight(universe$2, element, predicate, isRoot); }; var walkers$1 = function () { - return $_exp8zcqkjj661340.walkers(); + return $_entrxwqkjj68zctb.walkers(); }; var walk$1 = function (item, mode, direction, _rules) { - return $_exp8zcqkjj661340.walk(universe$2, item, mode, direction, _rules); + return $_entrxwqkjj68zctb.walk(universe$2, item, mode, direction, _rules); }; - var $_1rqpr2qjjj66133v = { + var $_44753cqjjj68zcsz = { gather: gather, before: before$3, after: after$4, @@ -8795,49 +8795,49 @@ var table = (function () { return caret.left() < box.left() || Math.abs(box.right() - caret.left()) < 1 || caret.left() > box.right(); }; var inOutsideBlock = function (bridge, element, caret) { - return $_azkyflm8jj6611ui.closest(element, $_g1na11nojj6612bl.isBlock).fold(constant(false), function (cell) { - return $_6mhxhqqhjj66132u.getEntireBox(bridge, cell).exists(function (box) { + return $_3315com8jj68z9zu.closest(element, $_81ztjtnojj68zaz3.isBlock).fold(constant(false), function (cell) { + return $_3we3pqqhjj68zcqp.getEntireBox(bridge, cell).exists(function (box) { return isOutside(caret, box); }); }); }; var adjustDown = function (bridge, element, guessBox, original, caret) { - var lowerCaret = $_935saxqgjj66132o.moveDown(caret, JUMP_SIZE); + var lowerCaret = $_8aklyqqgjj68zcqf.moveDown(caret, JUMP_SIZE); if (Math.abs(guessBox.bottom() - original.bottom()) < 1) return adt$2.retry(lowerCaret); else if (guessBox.top() > caret.bottom()) return adt$2.retry(lowerCaret); else if (guessBox.top() === caret.bottom()) - return adt$2.retry($_935saxqgjj66132o.moveDown(caret, 1)); + return adt$2.retry($_8aklyqqgjj68zcqf.moveDown(caret, 1)); else - return inOutsideBlock(bridge, element, caret) ? adt$2.retry($_935saxqgjj66132o.translate(lowerCaret, JUMP_SIZE, 0)) : adt$2.none(); + return inOutsideBlock(bridge, element, caret) ? adt$2.retry($_8aklyqqgjj68zcqf.translate(lowerCaret, JUMP_SIZE, 0)) : adt$2.none(); }; var adjustUp = function (bridge, element, guessBox, original, caret) { - var higherCaret = $_935saxqgjj66132o.moveUp(caret, JUMP_SIZE); + var higherCaret = $_8aklyqqgjj68zcqf.moveUp(caret, JUMP_SIZE); if (Math.abs(guessBox.top() - original.top()) < 1) return adt$2.retry(higherCaret); else if (guessBox.bottom() < caret.top()) return adt$2.retry(higherCaret); else if (guessBox.bottom() === caret.top()) - return adt$2.retry($_935saxqgjj66132o.moveUp(caret, 1)); + return adt$2.retry($_8aklyqqgjj68zcqf.moveUp(caret, 1)); else - return inOutsideBlock(bridge, element, caret) ? adt$2.retry($_935saxqgjj66132o.translate(higherCaret, JUMP_SIZE, 0)) : adt$2.none(); + return inOutsideBlock(bridge, element, caret) ? adt$2.retry($_8aklyqqgjj68zcqf.translate(higherCaret, JUMP_SIZE, 0)) : adt$2.none(); }; var upMovement = { - point: $_935saxqgjj66132o.getTop, + point: $_8aklyqqgjj68zcqf.getTop, adjuster: adjustUp, - move: $_935saxqgjj66132o.moveUp, - gather: $_1rqpr2qjjj66133v.before + move: $_8aklyqqgjj68zcqf.moveUp, + gather: $_44753cqjjj68zcsz.before }; var downMovement = { - point: $_935saxqgjj66132o.getBottom, + point: $_8aklyqqgjj68zcqf.getBottom, adjuster: adjustDown, - move: $_935saxqgjj66132o.moveDown, - gather: $_1rqpr2qjjj66133v.after + move: $_8aklyqqgjj68zcqf.moveDown, + gather: $_44753cqjjj68zcsz.after }; var isAtTable = function (bridge, x, y) { return bridge.elementFromPoint(x, y).filter(function (elm) { - return $_50pc0qm3jj6611u1.name(elm) === 'table'; + return $_a9t3wpm3jj68z9ys.name(elm) === 'table'; }).isSome(); }; var adjustForTable = function (bridge, movement, original, caret, numRetries) { @@ -8850,7 +8850,7 @@ var table = (function () { return adjustForTable(bridge, movement, original, caret, numRetries - 1); return bridge.situsFromPoint(caret.left(), movement.point(caret)).bind(function (guess) { return guess.start().fold(Option.none, function (element, offset) { - return $_6mhxhqqhjj66132u.getEntireBox(bridge, element, offset).bind(function (guessBox) { + return $_3we3pqqhjj68zcqp.getEntireBox(bridge, element, offset).bind(function (guessBox) { return movement.adjuster(bridge, element, guessBox, original, caret).fold(Option.none, function (newCaret) { return adjustTil(bridge, movement, original, newCaret, numRetries - 1); }); @@ -8884,7 +8884,7 @@ var table = (function () { return bridge.situsFromPoint(adjusted.left(), movement.point(adjusted) - delta); }); }; - var $_3sm50fqijj661335 = { + var $_bl9saoqijj68zcre = { tryUp: curry(retry, upMovement), tryDown: curry(retry, downMovement), ieTryUp: ieTryUp, @@ -8904,10 +8904,10 @@ var table = (function () { return afterBounds.right > beforeBounds.left && afterBounds.left < beforeBounds.right; }; var verify = function (bridge, before, beforeOffset, after, afterOffset, failure, isRoot) { - return $_eby7xcm7jj6611ug.closest(after, 'td,th', isRoot).bind(function (afterCell) { - return $_eby7xcm7jj6611ug.closest(before, 'td,th', isRoot).map(function (beforeCell) { - if (!$_af5rtflljj6611ru.eq(afterCell, beforeCell)) { - return $_89o2jlmrjj66120s.sharedOne(isRow, [ + return $_hz10wm7jj68z9zq.closest(after, 'td,th', isRoot).bind(function (afterCell) { + return $_hz10wm7jj68z9zq.closest(before, 'td,th', isRoot).map(function (beforeCell) { + if (!$_71r8jdlljj68z9u5.eq(afterCell, beforeCell)) { + return $_60uapqmrjj68zabt.sharedOne(isRow, [ afterCell, beforeCell ]).fold(function () { @@ -8916,18 +8916,18 @@ var table = (function () { return failure(beforeCell); }); } else { - return $_af5rtflljj6611ru.eq(after, afterCell) && $_55x7bumjjj6611xw.getEnd(afterCell) === afterOffset ? failure(beforeCell) : adt$3.none('in same cell'); + return $_71r8jdlljj68z9u5.eq(after, afterCell) && $_6bk9csmjjj68za6p.getEnd(afterCell) === afterOffset ? failure(beforeCell) : adt$3.none('in same cell'); } }); }).getOr(adt$3.none('default')); }; var isRow = function (elem) { - return $_eby7xcm7jj6611ug.closest(elem, 'tr'); + return $_hz10wm7jj68z9zq.closest(elem, 'tr'); }; var cata$2 = function (subject, onNone, onSuccess, onFailedUp, onFailedDown) { return subject.fold(onNone, onSuccess, onFailedUp, onFailedDown); }; - var $_1ewtubqojj66134p = { + var $_csidmqojj68zcup = { verify: verify, cata: cata$2, adt: adt$3 @@ -8938,7 +8938,7 @@ var table = (function () { var range$3 = Immutable('element', 'start', 'finish'); var points = Immutable('begin', 'end'); var text = Immutable('element', 'text'); - var $_84fxxaqqjj661368 = { + var $_1pzhueqqjj68zcxs = { point: point, delta: delta, range: range$3, @@ -8949,40 +8949,40 @@ var table = (function () { var inAncestor = Immutable('ancestor', 'descendants', 'element', 'index'); var inParent = Immutable('parent', 'children', 'element', 'index'); var childOf = function (element, ancestor) { - return $_azkyflm8jj6611ui.closest(element, function (elem) { - return $_9ghx71ljjj6611ra.parent(elem).exists(function (parent) { - return $_af5rtflljj6611ru.eq(parent, ancestor); + return $_3315com8jj68z9zu.closest(element, function (elem) { + return $_agswhiljjj68z9t1.parent(elem).exists(function (parent) { + return $_71r8jdlljj68z9u5.eq(parent, ancestor); }); }); }; var indexInParent = function (element) { - return $_9ghx71ljjj6611ra.parent(element).bind(function (parent) { - var children = $_9ghx71ljjj6611ra.children(parent); + return $_agswhiljjj68z9t1.parent(element).bind(function (parent) { + var children = $_agswhiljjj68z9t1.children(parent); return indexOf$1(children, element).map(function (index) { return inParent(parent, children, element, index); }); }); }; var indexOf$1 = function (elements, element) { - return findIndex(elements, curry($_af5rtflljj6611ru.eq, element)); + return findIndex(elements, curry($_71r8jdlljj68z9u5.eq, element)); }; var selectorsInParent = function (element, selector) { - return $_9ghx71ljjj6611ra.parent(element).bind(function (parent) { - var children = $_fhzhu6m4jj6611u4.children(parent, selector); + return $_agswhiljjj68z9t1.parent(element).bind(function (parent) { + var children = $_4ve49em4jj68z9yy.children(parent, selector); return indexOf$1(children, element).map(function (index) { return inParent(parent, children, element, index); }); }); }; var descendantsInAncestor = function (element, ancestorSelector, descendantSelector) { - return $_eby7xcm7jj6611ug.closest(element, ancestorSelector).bind(function (ancestor) { - var descendants = $_fhzhu6m4jj6611u4.descendants(ancestor, descendantSelector); + return $_hz10wm7jj68z9zq.closest(element, ancestorSelector).bind(function (ancestor) { + var descendants = $_4ve49em4jj68z9yy.descendants(ancestor, descendantSelector); return indexOf$1(descendants, element).map(function (index) { return inAncestor(ancestor, descendants, element, index); }); }); }; - var $_4abdnqqrjj66136f = { + var $_1zdrvpqrjj68zcy6 = { childOf: childOf, indexOf: indexOf$1, indexInParent: indexInParent, @@ -8991,11 +8991,11 @@ var table = (function () { }; var isBr = function (elem) { - return $_50pc0qm3jj6611u1.name(elem) === 'br'; + return $_a9t3wpm3jj68z9ys.name(elem) === 'br'; }; var gatherer = function (cand, gather, isRoot) { return gather(cand, isRoot).bind(function (target) { - return $_50pc0qm3jj6611u1.isText(target) && $_3tom9amkjj6611y1.get(target).trim().length === 0 ? gatherer(target, gather, isRoot) : Option.some(target); + return $_a9t3wpm3jj68z9ys.isText(target) && $_dxqxbemkjj68za6x.get(target).trim().length === 0 ? gatherer(target, gather, isRoot) : Option.some(target); }); }; var handleBr = function (isRoot, element, direction) { @@ -9004,8 +9004,8 @@ var table = (function () { }).map(direction.relative); }; var findBr = function (element, offset) { - return $_9ghx71ljjj6611ra.child(element, offset).filter(isBr).orThunk(function () { - return $_9ghx71ljjj6611ra.child(element, offset - 1).filter(isBr); + return $_agswhiljjj68z9t1.child(element, offset).filter(isBr).orThunk(function () { + return $_agswhiljjj68z9t1.child(element, offset - 1).filter(isBr); }); }; var handleParent = function (isRoot, element, offset, direction) { @@ -9013,8 +9013,8 @@ var table = (function () { return direction.traverse(br).fold(function () { return gatherer(br, direction.gather, isRoot).map(direction.relative); }, function (adjacent) { - return $_4abdnqqrjj66136f.indexInParent(adjacent).map(function (info) { - return $_cq1w0mpsjj6612v5.on(info.parent(), info.index()); + return $_1zdrvpqrjj68zcy6.indexInParent(adjacent).map(function (info) { + return $_2d0lrrpsjj68zcb6.on(info.parent(), info.index()); }); }); }); @@ -9029,31 +9029,31 @@ var table = (function () { }); }; var process = function (analysis) { - return $_1ewtubqojj66134p.cata(analysis, function (message) { + return $_csidmqojj68zcup.cata(analysis, function (message) { return Option.none(); }, function () { return Option.none(); }, function (cell) { - return Option.some($_84fxxaqqjj661368.point(cell, 0)); + return Option.some($_1pzhueqqjj68zcxs.point(cell, 0)); }, function (cell) { - return Option.some($_84fxxaqqjj661368.point(cell, $_55x7bumjjj6611xw.getEnd(cell))); + return Option.some($_1pzhueqqjj68zcxs.point(cell, $_6bk9csmjjj68za6p.getEnd(cell))); }); }; - var $_4ajh8qpjj661359 = { + var $_7tl0ebqpjj68zcvn = { tryBr: tryBr, process: process }; var MAX_RETRIES = 20; - var platform$1 = $_2fambnlqjj6611sh.detect(); + var platform$1 = $_8lnul5lqjj68z9vm.detect(); var findSpot = function (bridge, isRoot, direction) { return bridge.getSelection().bind(function (sel) { - return $_4ajh8qpjj661359.tryBr(isRoot, sel.finish(), sel.foffset(), direction).fold(function () { - return Option.some($_84fxxaqqjj661368.point(sel.finish(), sel.foffset())); + return $_7tl0ebqpjj68zcvn.tryBr(isRoot, sel.finish(), sel.foffset(), direction).fold(function () { + return Option.some($_1pzhueqqjj68zcxs.point(sel.finish(), sel.foffset())); }, function (brNeighbour) { var range = bridge.fromSitus(brNeighbour); - var analysis = $_1ewtubqojj66134p.verify(bridge, sel.finish(), sel.foffset(), range.finish(), range.foffset(), direction.failure, isRoot); - return $_4ajh8qpjj661359.process(analysis); + var analysis = $_csidmqojj68zcup.verify(bridge, sel.finish(), sel.foffset(), range.finish(), range.foffset(), direction.failure, isRoot); + return $_7tl0ebqpjj68zcvn.process(analysis); }); }); }; @@ -9062,27 +9062,27 @@ var table = (function () { return Option.none(); return tryCursor(bridge, isRoot, element, offset, direction).bind(function (situs) { var range = bridge.fromSitus(situs); - var analysis = $_1ewtubqojj66134p.verify(bridge, element, offset, range.finish(), range.foffset(), direction.failure, isRoot); - return $_1ewtubqojj66134p.cata(analysis, function () { + var analysis = $_csidmqojj68zcup.verify(bridge, element, offset, range.finish(), range.foffset(), direction.failure, isRoot); + return $_csidmqojj68zcup.cata(analysis, function () { return Option.none(); }, function () { return Option.some(situs); }, function (cell) { - if ($_af5rtflljj6611ru.eq(element, cell) && offset === 0) - return tryAgain(bridge, element, offset, $_935saxqgjj66132o.moveUp, direction); + if ($_71r8jdlljj68z9u5.eq(element, cell) && offset === 0) + return tryAgain(bridge, element, offset, $_8aklyqqgjj68zcqf.moveUp, direction); else return scan(bridge, isRoot, cell, 0, direction, numRetries - 1); }, function (cell) { - if ($_af5rtflljj6611ru.eq(element, cell) && offset === $_55x7bumjjj6611xw.getEnd(cell)) - return tryAgain(bridge, element, offset, $_935saxqgjj66132o.moveDown, direction); + if ($_71r8jdlljj68z9u5.eq(element, cell) && offset === $_6bk9csmjjj68za6p.getEnd(cell)) + return tryAgain(bridge, element, offset, $_8aklyqqgjj68zcqf.moveDown, direction); else - return scan(bridge, isRoot, cell, $_55x7bumjjj6611xw.getEnd(cell), direction, numRetries - 1); + return scan(bridge, isRoot, cell, $_6bk9csmjjj68za6p.getEnd(cell), direction, numRetries - 1); }); }); }; var tryAgain = function (bridge, element, offset, move, direction) { - return $_6mhxhqqhjj66132u.getBoxAt(bridge, element, offset).bind(function (box) { - return tryAt(bridge, direction, move(box, $_3sm50fqijj661335.getJumpSize())); + return $_3we3pqqhjj68zcqp.getBoxAt(bridge, element, offset).bind(function (box) { + return tryAt(bridge, direction, move(box, $_bl9saoqijj68zcre.getJumpSize())); }); }; var tryAt = function (bridge, direction, box) { @@ -9094,7 +9094,7 @@ var table = (function () { return Option.none(); }; var tryCursor = function (bridge, isRoot, element, offset, direction) { - return $_6mhxhqqhjj66132u.getBoxAt(bridge, element, offset).bind(function (box) { + return $_3we3pqqhjj68zcqp.getBoxAt(bridge, element, offset).bind(function (box) { return tryAt(bridge, direction, box); }); }; @@ -9103,27 +9103,27 @@ var table = (function () { return scan(bridge, isRoot, spot.element(), spot.offset(), direction, MAX_RETRIES).map(bridge.fromSitus); }); }; - var $_43slyyqfjj661325 = { handle: handle$2 }; + var $_fs3txqqfjj68zcph = { handle: handle$2 }; var any$1 = function (predicate) { - return $_azkyflm8jj6611ui.first(predicate).isSome(); + return $_3315com8jj68z9zu.first(predicate).isSome(); }; var ancestor$3 = function (scope, predicate, isRoot) { - return $_azkyflm8jj6611ui.ancestor(scope, predicate, isRoot).isSome(); + return $_3315com8jj68z9zu.ancestor(scope, predicate, isRoot).isSome(); }; var closest$3 = function (scope, predicate, isRoot) { - return $_azkyflm8jj6611ui.closest(scope, predicate, isRoot).isSome(); + return $_3315com8jj68z9zu.closest(scope, predicate, isRoot).isSome(); }; var sibling$3 = function (scope, predicate) { - return $_azkyflm8jj6611ui.sibling(scope, predicate).isSome(); + return $_3315com8jj68z9zu.sibling(scope, predicate).isSome(); }; var child$4 = function (scope, predicate) { - return $_azkyflm8jj6611ui.child(scope, predicate).isSome(); + return $_3315com8jj68z9zu.child(scope, predicate).isSome(); }; var descendant$3 = function (scope, predicate) { - return $_azkyflm8jj6611ui.descendant(scope, predicate).isSome(); + return $_3315com8jj68z9zu.descendant(scope, predicate).isSome(); }; - var $_2lcq63qsjj66136x = { + var $_7y5t0tqsjj68zcz0 = { any: any$1, ancestor: ancestor$3, closest: closest$3, @@ -9132,22 +9132,22 @@ var table = (function () { descendant: descendant$3 }; - var detection = $_2fambnlqjj6611sh.detect(); + var detection = $_8lnul5lqjj68z9vm.detect(); var inSameTable = function (elem, table) { - return $_2lcq63qsjj66136x.ancestor(elem, function (e) { - return $_9ghx71ljjj6611ra.parent(e).exists(function (p) { - return $_af5rtflljj6611ru.eq(p, table); + return $_7y5t0tqsjj68zcz0.ancestor(elem, function (e) { + return $_agswhiljjj68z9t1.parent(e).exists(function (p) { + return $_71r8jdlljj68z9u5.eq(p, table); }); }); }; var simulate = function (bridge, isRoot, direction, initial, anchor) { - return $_eby7xcm7jj6611ug.closest(initial, 'td,th', isRoot).bind(function (start) { - return $_eby7xcm7jj6611ug.closest(start, 'table', isRoot).bind(function (table) { + return $_hz10wm7jj68z9zq.closest(initial, 'td,th', isRoot).bind(function (start) { + return $_hz10wm7jj68z9zq.closest(start, 'table', isRoot).bind(function (table) { if (!inSameTable(anchor, table)) return Option.none(); - return $_43slyyqfjj661325.handle(bridge, isRoot, direction).bind(function (range) { - return $_eby7xcm7jj6611ug.closest(range.finish(), 'td,th', isRoot).map(function (finish) { + return $_fs3txqqfjj68zcph.handle(bridge, isRoot, direction).bind(function (range) { + return $_hz10wm7jj68z9zq.closest(range.finish(), 'td,th', isRoot).map(function (finish) { return { start: constant(start), finish: constant(finish), @@ -9165,21 +9165,21 @@ var table = (function () { return precheck(initial, isRoot).orThunk(function () { return simulate(bridge, isRoot, direction, initial, anchor).map(function (info) { var range = info.range(); - return $_5t8svvq8jj6612z1.response(Option.some($_13jituqbjj6612zy.makeSitus(range.start(), range.soffset(), range.finish(), range.foffset())), true); + return $_4tfzbqq8jj68zcj6.response(Option.some($_g1lj4uqbjj68zckv.makeSitus(range.start(), range.soffset(), range.finish(), range.foffset())), true); }); }); } }; var firstUpCheck = function (initial, isRoot) { - return $_eby7xcm7jj6611ug.closest(initial, 'tr', isRoot).bind(function (startRow) { - return $_eby7xcm7jj6611ug.closest(startRow, 'table', isRoot).bind(function (table) { - var rows = $_fhzhu6m4jj6611u4.descendants(table, 'tr'); - if ($_af5rtflljj6611ru.eq(startRow, rows[0])) { - return $_1rqpr2qjjj66133v.seekLeft(table, function (element) { - return $_fp4fd1mijj6611xr.last(element).isSome(); + return $_hz10wm7jj68z9zq.closest(initial, 'tr', isRoot).bind(function (startRow) { + return $_hz10wm7jj68z9zq.closest(startRow, 'table', isRoot).bind(function (table) { + var rows = $_4ve49em4jj68z9yy.descendants(table, 'tr'); + if ($_71r8jdlljj68z9u5.eq(startRow, rows[0])) { + return $_44753cqjjj68zcsz.seekLeft(table, function (element) { + return $_c2gkadmijj68za6e.last(element).isSome(); }, isRoot).map(function (last) { - var lastOffset = $_55x7bumjjj6611xw.getEnd(last); - return $_5t8svvq8jj6612z1.response(Option.some($_13jituqbjj6612zy.makeSitus(last, lastOffset, last, lastOffset)), true); + var lastOffset = $_6bk9csmjjj68za6p.getEnd(last); + return $_4tfzbqq8jj68zcj6.response(Option.some($_g1lj4uqbjj68zckv.makeSitus(last, lastOffset, last, lastOffset)), true); }); } else { return Option.none(); @@ -9188,14 +9188,14 @@ var table = (function () { }); }; var lastDownCheck = function (initial, isRoot) { - return $_eby7xcm7jj6611ug.closest(initial, 'tr', isRoot).bind(function (startRow) { - return $_eby7xcm7jj6611ug.closest(startRow, 'table', isRoot).bind(function (table) { - var rows = $_fhzhu6m4jj6611u4.descendants(table, 'tr'); - if ($_af5rtflljj6611ru.eq(startRow, rows[rows.length - 1])) { - return $_1rqpr2qjjj66133v.seekRight(table, function (element) { - return $_fp4fd1mijj6611xr.first(element).isSome(); + return $_hz10wm7jj68z9zq.closest(initial, 'tr', isRoot).bind(function (startRow) { + return $_hz10wm7jj68z9zq.closest(startRow, 'table', isRoot).bind(function (table) { + var rows = $_4ve49em4jj68z9yy.descendants(table, 'tr'); + if ($_71r8jdlljj68z9u5.eq(startRow, rows[rows.length - 1])) { + return $_44753cqjjj68zcsz.seekRight(table, function (element) { + return $_c2gkadmijj68za6e.first(element).isSome(); }, isRoot).map(function (first) { - return $_5t8svvq8jj6612z1.response(Option.some($_13jituqbjj6612zy.makeSitus(first, 0, first, 0)), true); + return $_4tfzbqq8jj68zcj6.response(Option.some($_g1lj4uqbjj68zckv.makeSitus(first, 0, first, 0)), true); }); } else { return Option.none(); @@ -9205,10 +9205,10 @@ var table = (function () { }; var select = function (bridge, container, isRoot, direction, initial, anchor, selectRange) { return simulate(bridge, isRoot, direction, initial, anchor).bind(function (info) { - return $_6k0go6qdjj66130q.detect(container, isRoot, info.start(), info.finish(), selectRange); + return $_638qa9qdjj68zcme.detect(container, isRoot, info.start(), info.finish(), selectRange); }); }; - var $_c6shdtqejj661314 = { + var $_938x46qejj68zcnb = { navigate: navigate, select: select, firstUpCheck: firstUpCheck, @@ -9216,7 +9216,7 @@ var table = (function () { }; var findCell = function (target, isRoot) { - return $_eby7xcm7jj6611ug.closest(target, 'td,th', isRoot); + return $_hz10wm7jj68z9zq.closest(target, 'td,th', isRoot); }; function MouseSelection (bridge, container, isRoot, annotations) { var cursor = Option.none(); @@ -9231,9 +9231,9 @@ var table = (function () { cursor.each(function (start) { annotations.clear(container); findCell(event.target(), isRoot).each(function (finish) { - $_ctk6mymqjj6611zq.identify(start, finish, isRoot).each(function (cellSel) { + $_9z6u35mqjj68za9r.identify(start, finish, isRoot).each(function (cellSel) { var boxes = cellSel.boxes().getOr([]); - if (boxes.length > 1 || boxes.length === 1 && !$_af5rtflljj6611ru.eq(start, finish)) { + if (boxes.length > 1 || boxes.length === 1 && !$_71r8jdlljj68z9u5.eq(start, finish)) { annotations.selectRange(container, boxes, cellSel.start(), cellSel.finish()); bridge.selectContents(finish); } @@ -9251,22 +9251,22 @@ var table = (function () { }; } - var $_ceqx2yqujj66137h = { + var $_2ggr9iqujj68zd02 = { down: { - traverse: $_9ghx71ljjj6611ra.nextSibling, - gather: $_1rqpr2qjjj66133v.after, - relative: $_cq1w0mpsjj6612v5.before, - otherRetry: $_3sm50fqijj661335.tryDown, - ieRetry: $_3sm50fqijj661335.ieTryDown, - failure: $_1ewtubqojj66134p.adt.failedDown + traverse: $_agswhiljjj68z9t1.nextSibling, + gather: $_44753cqjjj68zcsz.after, + relative: $_2d0lrrpsjj68zcb6.before, + otherRetry: $_bl9saoqijj68zcre.tryDown, + ieRetry: $_bl9saoqijj68zcre.ieTryDown, + failure: $_csidmqojj68zcup.adt.failedDown }, up: { - traverse: $_9ghx71ljjj6611ra.prevSibling, - gather: $_1rqpr2qjjj66133v.before, - relative: $_cq1w0mpsjj6612v5.before, - otherRetry: $_3sm50fqijj661335.tryUp, - ieRetry: $_3sm50fqijj661335.ieTryUp, - failure: $_1ewtubqojj66134p.adt.failedUp + traverse: $_agswhiljjj68z9t1.prevSibling, + gather: $_44753cqjjj68zcsz.before, + relative: $_2d0lrrpsjj68zcb6.before, + otherRetry: $_bl9saoqijj68zcre.tryUp, + ieRetry: $_bl9saoqijj68zcre.ieTryUp, + failure: $_csidmqojj68zcup.adt.failedUp } }; @@ -9289,15 +9289,15 @@ var table = (function () { var keydown = function (event, start, soffset, finish, foffset, direction) { var keycode = event.raw().which; var shiftKey = event.raw().shiftKey === true; - var handler = $_ctk6mymqjj6611zq.retrieve(container, annotations.selectedSelector()).fold(function () { - if ($_iex8lq9jj6612z5.isDown(keycode) && shiftKey) { - return curry($_c6shdtqejj661314.select, bridge, container, isRoot, $_ceqx2yqujj66137h.down, finish, start, annotations.selectRange); - } else if ($_iex8lq9jj6612z5.isUp(keycode) && shiftKey) { - return curry($_c6shdtqejj661314.select, bridge, container, isRoot, $_ceqx2yqujj66137h.up, finish, start, annotations.selectRange); - } else if ($_iex8lq9jj6612z5.isDown(keycode)) { - return curry($_c6shdtqejj661314.navigate, bridge, isRoot, $_ceqx2yqujj66137h.down, finish, start, $_c6shdtqejj661314.lastDownCheck); - } else if ($_iex8lq9jj6612z5.isUp(keycode)) { - return curry($_c6shdtqejj661314.navigate, bridge, isRoot, $_ceqx2yqujj66137h.up, finish, start, $_c6shdtqejj661314.firstUpCheck); + var handler = $_9z6u35mqjj68za9r.retrieve(container, annotations.selectedSelector()).fold(function () { + if ($_e1orb1q9jj68zcjg.isDown(keycode) && shiftKey) { + return curry($_938x46qejj68zcnb.select, bridge, container, isRoot, $_2ggr9iqujj68zd02.down, finish, start, annotations.selectRange); + } else if ($_e1orb1q9jj68zcjg.isUp(keycode) && shiftKey) { + return curry($_938x46qejj68zcnb.select, bridge, container, isRoot, $_2ggr9iqujj68zd02.up, finish, start, annotations.selectRange); + } else if ($_e1orb1q9jj68zcjg.isDown(keycode)) { + return curry($_938x46qejj68zcnb.navigate, bridge, isRoot, $_2ggr9iqujj68zd02.down, finish, start, $_938x46qejj68zcnb.lastDownCheck); + } else if ($_e1orb1q9jj68zcjg.isUp(keycode)) { + return curry($_938x46qejj68zcnb.navigate, bridge, isRoot, $_2ggr9iqujj68zd02.up, finish, start, $_938x46qejj68zcnb.firstUpCheck); } else { return Option.none; } @@ -9305,23 +9305,23 @@ var table = (function () { var update = function (attempts) { return function () { var navigation = findMap(attempts, function (delta) { - return $_6k0go6qdjj66130q.update(delta.rows(), delta.cols(), container, selected, annotations); + return $_638qa9qdjj68zcme.update(delta.rows(), delta.cols(), container, selected, annotations); }); return navigation.fold(function () { - return $_ctk6mymqjj6611zq.getEdges(container, annotations.firstSelectedSelector(), annotations.lastSelectedSelector()).map(function (edges) { - var relative = $_iex8lq9jj6612z5.isDown(keycode) || direction.isForward(keycode) ? $_cq1w0mpsjj6612v5.after : $_cq1w0mpsjj6612v5.before; - bridge.setRelativeSelection($_cq1w0mpsjj6612v5.on(edges.first(), 0), relative(edges.table())); + return $_9z6u35mqjj68za9r.getEdges(container, annotations.firstSelectedSelector(), annotations.lastSelectedSelector()).map(function (edges) { + var relative = $_e1orb1q9jj68zcjg.isDown(keycode) || direction.isForward(keycode) ? $_2d0lrrpsjj68zcb6.after : $_2d0lrrpsjj68zcb6.before; + bridge.setRelativeSelection($_2d0lrrpsjj68zcb6.on(edges.first(), 0), relative(edges.table())); annotations.clear(container); - return $_5t8svvq8jj6612z1.response(Option.none(), true); + return $_4tfzbqq8jj68zcj6.response(Option.none(), true); }); }, function (_) { - return Option.some($_5t8svvq8jj6612z1.response(Option.none(), true)); + return Option.some($_4tfzbqq8jj68zcj6.response(Option.none(), true)); }); }; }; - if ($_iex8lq9jj6612z5.isDown(keycode) && shiftKey) + if ($_e1orb1q9jj68zcjg.isDown(keycode) && shiftKey) return update([rc(+1, 0)]); - else if ($_iex8lq9jj6612z5.isUp(keycode) && shiftKey) + else if ($_e1orb1q9jj68zcjg.isUp(keycode) && shiftKey) return update([rc(-1, 0)]); else if (direction.isBackward(keycode) && shiftKey) return update([ @@ -9333,7 +9333,7 @@ var table = (function () { rc(0, +1), rc(+1, 0) ]); - else if ($_iex8lq9jj6612z5.isNavigation(keycode) && shiftKey === false) + else if ($_e1orb1q9jj68zcjg.isNavigation(keycode) && shiftKey === false) return clearToNavigate; else return Option.none; @@ -9341,13 +9341,13 @@ var table = (function () { return handler(); }; var keyup = function (event, start, soffset, finish, foffset) { - return $_ctk6mymqjj6611zq.retrieve(container, annotations.selectedSelector()).fold(function () { + return $_9z6u35mqjj68za9r.retrieve(container, annotations.selectedSelector()).fold(function () { var keycode = event.raw().which; var shiftKey = event.raw().shiftKey === true; if (shiftKey === false) return Option.none(); - if ($_iex8lq9jj6612z5.isNavigation(keycode)) - return $_6k0go6qdjj66130q.sync(container, isRoot, start, soffset, finish, foffset, annotations.selectRange); + if ($_e1orb1q9jj68zcjg.isNavigation(keycode)) + return $_638qa9qdjj68zcme.sync(container, isRoot, start, soffset, finish, foffset, annotations.selectRange); else return Option.none(); }, Option.none); @@ -9357,34 +9357,34 @@ var table = (function () { keyup: keyup }; }; - var $_8brp2nq7jj6612yj = { + var $_db7783q7jj68zchv = { mouse: mouse, keyboard: keyboard }; var add$3 = function (element, classes) { each(classes, function (x) { - $_e55qa3o3jj6612ge.add(element, x); + $_4cu61eo3jj68zbcy.add(element, x); }); }; var remove$7 = function (element, classes) { each(classes, function (x) { - $_e55qa3o3jj6612ge.remove(element, x); + $_4cu61eo3jj68zbcy.remove(element, x); }); }; var toggle$2 = function (element, classes) { each(classes, function (x) { - $_e55qa3o3jj6612ge.toggle(element, x); + $_4cu61eo3jj68zbcy.toggle(element, x); }); }; var hasAll = function (element, classes) { return forall(classes, function (clazz) { - return $_e55qa3o3jj6612ge.has(element, clazz); + return $_4cu61eo3jj68zbcy.has(element, clazz); }); }; var hasAny = function (element, classes) { return exists(classes, function (clazz) { - return $_e55qa3o3jj6612ge.has(element, clazz); + return $_4cu61eo3jj68zbcy.has(element, clazz); }); }; var getNative = function (element) { @@ -9396,9 +9396,9 @@ var table = (function () { return r; }; var get$11 = function (element) { - return $_enhqj6o5jj6612gh.supports(element) ? getNative(element) : $_enhqj6o5jj6612gh.get(element); + return $_c4c5svo5jj68zbd8.supports(element) ? getNative(element) : $_c4c5svo5jj68zbd8.get(element); }; - var $_8rquusqxjj66138s = { + var $_1jvn9lqxjj68zd1y = { add: add$3, remove: remove$7, toggle: toggle$2, @@ -9409,25 +9409,25 @@ var table = (function () { var addClass = function (clazz) { return function (element) { - $_e55qa3o3jj6612ge.add(element, clazz); + $_4cu61eo3jj68zbcy.add(element, clazz); }; }; var removeClass = function (clazz) { return function (element) { - $_e55qa3o3jj6612ge.remove(element, clazz); + $_4cu61eo3jj68zbcy.remove(element, clazz); }; }; var removeClasses = function (classes) { return function (element) { - $_8rquusqxjj66138s.remove(element, classes); + $_1jvn9lqxjj68zd1y.remove(element, classes); }; }; var hasClass = function (clazz) { return function (element) { - return $_e55qa3o3jj6612ge.has(element, clazz); + return $_4cu61eo3jj68zbcy.has(element, clazz); }; }; - var $_7za63gqwjj66138p = { + var $_eijftjqwjj68zd1v = { addClass: addClass, removeClass: removeClass, removeClasses: removeClasses, @@ -9435,21 +9435,21 @@ var table = (function () { }; var byClass = function (ephemera) { - var addSelectionClass = $_7za63gqwjj66138p.addClass(ephemera.selected()); - var removeSelectionClasses = $_7za63gqwjj66138p.removeClasses([ + var addSelectionClass = $_eijftjqwjj68zd1v.addClass(ephemera.selected()); + var removeSelectionClasses = $_eijftjqwjj68zd1v.removeClasses([ ephemera.selected(), ephemera.lastSelected(), ephemera.firstSelected() ]); var clear = function (container) { - var sels = $_fhzhu6m4jj6611u4.descendants(container, ephemera.selectedSelector()); + var sels = $_4ve49em4jj68z9yy.descendants(container, ephemera.selectedSelector()); each(sels, removeSelectionClasses); }; var selectRange = function (container, cells, start, finish) { clear(container); each(cells, addSelectionClass); - $_e55qa3o3jj6612ge.add(start, ephemera.firstSelected()); - $_e55qa3o3jj6612ge.add(finish, ephemera.lastSelected()); + $_4cu61eo3jj68zbcy.add(start, ephemera.firstSelected()); + $_4cu61eo3jj68zbcy.add(finish, ephemera.lastSelected()); }; return { clear: clear, @@ -9461,22 +9461,22 @@ var table = (function () { }; var byAttr = function (ephemera) { var removeSelectionAttributes = function (element) { - $_1i6un8m2jj6611tq.remove(element, ephemera.selected()); - $_1i6un8m2jj6611tq.remove(element, ephemera.firstSelected()); - $_1i6un8m2jj6611tq.remove(element, ephemera.lastSelected()); + $_f2f6ivm2jj68z9y8.remove(element, ephemera.selected()); + $_f2f6ivm2jj68z9y8.remove(element, ephemera.firstSelected()); + $_f2f6ivm2jj68z9y8.remove(element, ephemera.lastSelected()); }; var addSelectionAttribute = function (element) { - $_1i6un8m2jj6611tq.set(element, ephemera.selected(), '1'); + $_f2f6ivm2jj68z9y8.set(element, ephemera.selected(), '1'); }; var clear = function (container) { - var sels = $_fhzhu6m4jj6611u4.descendants(container, ephemera.selectedSelector()); + var sels = $_4ve49em4jj68z9yy.descendants(container, ephemera.selectedSelector()); each(sels, removeSelectionAttributes); }; var selectRange = function (container, cells, start, finish) { clear(container); each(cells, addSelectionAttribute); - $_1i6un8m2jj6611tq.set(start, ephemera.firstSelected(), '1'); - $_1i6un8m2jj6611tq.set(finish, ephemera.lastSelected(), '1'); + $_f2f6ivm2jj68z9y8.set(start, ephemera.firstSelected(), '1'); + $_f2f6ivm2jj68z9y8.set(finish, ephemera.lastSelected(), '1'); }; return { clear: clear, @@ -9486,13 +9486,13 @@ var table = (function () { lastSelectedSelector: ephemera.lastSelectedSelector }; }; - var $_f1gogrqvjj66137v = { + var $_asbtxeqvjj68zd0p = { byClass: byClass, byAttr: byAttr }; var hasInternalTarget = function (e) { - return $_e55qa3o3jj6612ge.has(Element$$1.fromDom(e.target), 'ephox-snooker-resizer-bar') === false; + return $_4cu61eo3jj68zbcy.has(Element$$1.fromDom(e.target), 'ephox-snooker-resizer-bar') === false; }; function CellSelection$1 (editor, lazyResize) { var handlerStruct = MixedBag([ @@ -9503,7 +9503,7 @@ var table = (function () { 'keydown' ], []); var handlers = Option.none(); - var annotations = $_f1gogrqvjj66137v.byAttr($_ega3on2jj66124u); + var annotations = $_asbtxeqvjj68zd0p.byAttr($_dxf3ain2jj68zajp); editor.on('init', function (e) { var win = editor.getWin(); var body = getBody$1(editor); @@ -9512,7 +9512,7 @@ var table = (function () { var sel = editor.selection; var start = Element$$1.fromDom(sel.getStart()); var end = Element$$1.fromDom(sel.getEnd()); - var shared = $_89o2jlmrjj66120s.sharedOne($_kkb5dldjj6611p3.table, [ + var shared = $_60uapqmrjj68zabt.sharedOne($_bb5w37ldjj68z9oi.table, [ start, end ]); @@ -9520,8 +9520,8 @@ var table = (function () { annotations.clear(body); }, noop); }; - var mouseHandlers = $_8brp2nq7jj6612yj.mouse(win, body, isRoot, annotations); - var keyHandlers = $_8brp2nq7jj6612yj.keyboard(win, body, isRoot, annotations); + var mouseHandlers = $_db7783q7jj68zchv.mouse(win, body, isRoot, annotations); + var keyHandlers = $_db7783q7jj68zchv.keyboard(win, body, isRoot, annotations); var hasShiftKey = function (event) { return event.raw().shiftKey === true; }; @@ -9533,14 +9533,14 @@ var table = (function () { event.kill(); } response.selection().each(function (ns) { - var relative = $_cd4ysmprjj6612uy.relative(ns.start(), ns.finish()); - var rng = $_dvqv7xpxjj6612w2.asLtrRange(win, relative); + var relative = $_d05yudprjj68zcas.relative(ns.start(), ns.finish()); + var rng = $_7vv2bspxjj68zccw.asLtrRange(win, relative); editor.selection.setRng(rng); }); }; var keyup = function (event) { var wrappedEvent = wrapEvent(event); - if (wrappedEvent.raw().shiftKey && $_iex8lq9jj6612z5.isNavigation(wrappedEvent.raw().which)) { + if (wrappedEvent.raw().shiftKey && $_e1orb1q9jj68zcjg.isNavigation(wrappedEvent.raw().which)) { var rng = editor.selection.getRng(); var start = Element$$1.fromDom(rng.startContainer); var end = Element$$1.fromDom(rng.endContainer); @@ -9558,7 +9558,7 @@ var table = (function () { var startContainer = Element$$1.fromDom(editor.selection.getStart()); var start = Element$$1.fromDom(rng.startContainer); var end = Element$$1.fromDom(rng.endContainer); - var direction = $_8f1ukqoljj6612k5.directionAt(startContainer).isRtl() ? $_iex8lq9jj6612z5.rtl : $_iex8lq9jj6612z5.ltr; + var direction = $_3iez4qoljj68zbnk.directionAt(startContainer).isRtl() ? $_e1orb1q9jj68zcjg.rtl : $_e1orb1q9jj68zcjg.ltr; keyHandlers.keydown(wrappedEvent, start, rng.startOffset, end, rng.endOffset, direction).each(function (response) { handleResponse(wrappedEvent, response); }); @@ -9639,14 +9639,14 @@ var table = (function () { var Selections = function (editor) { var get = function () { var body = getBody$1(editor); - return $_dhtcf6mpjj6611za.retrieve(body, $_ega3on2jj66124u.selectedSelector()).fold(function () { + return $_6djqbdmpjj68za93.retrieve(body, $_dxf3ain2jj68zajp.selectedSelector()).fold(function () { if (editor.selection.getStart() === undefined) { - return $_1rprwxn3jj66124y.none(); + return $_65setjn3jj68zajz.none(); } else { - return $_1rprwxn3jj66124y.single(editor.selection); + return $_65setjn3jj68zajz.single(editor.selection); } }, function (cells) { - return $_1rprwxn3jj66124y.multiple(cells); + return $_65setjn3jj68zajz.multiple(cells); }); }; return { get: get }; @@ -9748,7 +9748,7 @@ var table = (function () { editor.addContextToolbar(isTable, toolbar.join(' ')); } }; - var $_49e3quqzjj661394 = { + var $_5kw52rqzjj68zd2n = { addButtons: addButtons, addToolbars: addToolbars }; @@ -9823,9 +9823,9 @@ var table = (function () { var cellOpt = Option.from(editor.dom.getParent(editor.selection.getStart(), 'th,td')); targets = cellOpt.bind(function (cellDom) { var cell = Element$$1.fromDom(cellDom); - var table = $_kkb5dldjj6611p3.table(cell); + var table = $_bb5w37ldjj68z9oi.table(cell); return table.map(function (table) { - return $_1y628smnjj6611yl.forMenu(selections, table, cell); + return $_2c11plmnjj68za7u.forMenu(selections, table, cell); }); }); setDisabledCtrls(); @@ -9919,7 +9919,7 @@ var table = (function () { e.stopPropagation(); self.parent().cancel(); editor.undoManager.transact(function () { - $_ecsrttoyjj6612mf.insert(editor, self.lastX + 1, self.lastY + 1); + $_eoijhtoyjj68zbti.insert(editor, self.lastX + 1, self.lastY + 1); }); editor.addVisual(); } @@ -10040,7 +10040,7 @@ var table = (function () { editor.addMenuItem('column', column); editor.addMenuItem('cell', cell); }; - var $_8wvu7br0jj661398 = { addMenuItems: addMenuItems }; + var $_beyfytr0jj68zd2v = { addMenuItems: addMenuItems }; var getClipboardRows = function (clipboardRows) { return clipboardRows.get().fold(function () { @@ -10058,7 +10058,7 @@ var table = (function () { var getApi = function (editor, clipboardRows) { return { insertTable: function (columns, rows) { - return $_ecsrttoyjj6612mf.insert(editor, columns, rows); + return $_eoijhtoyjj68zbti.insert(editor, columns, rows); }, setClipboardRows: function (rows) { return setClipboardRows(rows, clipboardRows); @@ -10075,18 +10075,18 @@ var table = (function () { var actions = TableActions(editor, resizeHandler.lazyWire); var selections = Selections(editor); var clipboardRows = Cell(Option.none()); - $_7lg8lyopjj6612km.registerCommands(editor, actions, cellSelection, selections, clipboardRows); - $_cy95pl0jj6611m1.registerEvents(editor, selections, actions, cellSelection); - $_8wvu7br0jj661398.addMenuItems(editor, selections); - $_49e3quqzjj661394.addButtons(editor); - $_49e3quqzjj661394.addToolbars(editor); + $_eyesupopjj68zbos.registerCommands(editor, actions, cellSelection, selections, clipboardRows); + $_3ekqckl0jj68z9g4.registerEvents(editor, selections, actions, cellSelection); + $_beyfytr0jj68zd2v.addMenuItems(editor, selections); + $_5kw52rqzjj68zd2n.addButtons(editor); + $_5kw52rqzjj68zd2n.addToolbars(editor); editor.on('PreInit', function () { - editor.serializer.addTempAttr($_ega3on2jj66124u.firstSelected()); - editor.serializer.addTempAttr($_ega3on2jj66124u.lastSelected()); + editor.serializer.addTempAttr($_dxf3ain2jj68zajp.firstSelected()); + editor.serializer.addTempAttr($_dxf3ain2jj68zajp.lastSelected()); }); if (hasTabNavigation(editor)) { editor.on('keydown', function (e) { - $_8z8fospojj6612tr.handle(e, editor, actions, resizeHandler.lazyWire); + $_ffyx29pojj68zc8f.handle(e, editor, actions, resizeHandler.lazyWire); }); } editor.on('remove', function () { diff --git a/js/tinymce/plugins/template/plugin.js b/js/tinymce/plugins/template/plugin.js index c6d86d51c86..b6679f04573 100644 --- a/js/tinymce/plugins/template/plugin.js +++ b/js/tinymce/plugins/template/plugin.js @@ -61,7 +61,7 @@ var template = (function () { var getDialogHeight = function (editor) { return Math.min(global$3.DOM.getViewPort().h, editor.getParam('template_popup_height', 500)); }; - var $_6cekekr9jj6614cb = { + var $_8xypq3r9jj68zeku = { getCreationDateClasses: getCreationDateClasses, getModificationDateClasses: getModificationDateClasses, getSelectedContentClasses: getSelectedContentClasses, @@ -107,11 +107,11 @@ var template = (function () { fmt = fmt.replace('%%', '%'); return fmt; }; - var $_d1v9wnrbjj6614ce = { getDateTime: getDateTime }; + var $_94ea42rbjj68zel2 = { getDateTime: getDateTime }; var createTemplateList = function (editorSettings, callback) { return function () { - var templateList = $_6cekekr9jj6614cb.getTemplates(editorSettings); + var templateList = $_8xypq3r9jj68zeku.getTemplates(editorSettings); if (typeof templateList === 'function') { templateList(callback); return; @@ -138,7 +138,7 @@ var template = (function () { return html; }; var replaceVals = function (editor, e) { - var dom = editor.dom, vl = $_6cekekr9jj6614cb.getTemplateReplaceValues(editor); + var dom = editor.dom, vl = $_8xypq3r9jj68zeku.getTemplateReplaceValues(editor); global$1.each(dom.select('*', e), function (e) { global$1.each(vl, function (v, k) { if (dom.hasClass(e, k)) { @@ -157,7 +157,7 @@ var template = (function () { var n; var dom = editor.dom; var sel = editor.selection.getContent(); - html = replaceTemplateValues(editor, html, $_6cekekr9jj6614cb.getTemplateReplaceValues(editor)); + html = replaceTemplateValues(editor, html, $_8xypq3r9jj68zeku.getTemplateReplaceValues(editor)); el = dom.create('div', null, html); n = dom.select('.mceTmpl', el); if (n && n.length > 0) { @@ -165,13 +165,13 @@ var template = (function () { el.appendChild(n[0].cloneNode(true)); } global$1.each(dom.select('*', el), function (n) { - if (hasClass(n, $_6cekekr9jj6614cb.getCreationDateClasses(editor).replace(/\s+/g, '|'))) { - n.innerHTML = $_d1v9wnrbjj6614ce.getDateTime(editor, $_6cekekr9jj6614cb.getCdateFormat(editor)); + if (hasClass(n, $_8xypq3r9jj68zeku.getCreationDateClasses(editor).replace(/\s+/g, '|'))) { + n.innerHTML = $_94ea42rbjj68zel2.getDateTime(editor, $_8xypq3r9jj68zeku.getCdateFormat(editor)); } - if (hasClass(n, $_6cekekr9jj6614cb.getModificationDateClasses(editor).replace(/\s+/g, '|'))) { - n.innerHTML = $_d1v9wnrbjj6614ce.getDateTime(editor, $_6cekekr9jj6614cb.getMdateFormat(editor)); + if (hasClass(n, $_8xypq3r9jj68zeku.getModificationDateClasses(editor).replace(/\s+/g, '|'))) { + n.innerHTML = $_94ea42rbjj68zel2.getDateTime(editor, $_8xypq3r9jj68zeku.getMdateFormat(editor)); } - if (hasClass(n, $_6cekekr9jj6614cb.getSelectedContentClasses(editor).replace(/\s+/g, '|'))) { + if (hasClass(n, $_8xypq3r9jj68zeku.getSelectedContentClasses(editor).replace(/\s+/g, '|'))) { n.innerHTML = sel; } }); @@ -179,7 +179,7 @@ var template = (function () { editor.execCommand('mceInsertContent', false, el.innerHTML); editor.addVisual(); }; - var $_cnmquar6jj6614c7 = { + var $_xjv1qr6jj68zekl = { createTemplateList: createTemplateList, replaceTemplateValues: replaceTemplateValues, replaceVals: replaceVals, @@ -187,26 +187,26 @@ var template = (function () { }; var register = function (editor) { - editor.addCommand('mceInsertTemplate', curry($_cnmquar6jj6614c7.insertTemplate, editor)); + editor.addCommand('mceInsertTemplate', curry($_xjv1qr6jj68zekl.insertTemplate, editor)); }; - var $_g8hgstr4jj6614by = { register: register }; + var $_98y85hr4jj68zejt = { register: register }; var setup = function (editor) { editor.on('PreProcess', function (o) { - var dom = editor.dom, dateFormat = $_6cekekr9jj6614cb.getMdateFormat(editor); + var dom = editor.dom, dateFormat = $_8xypq3r9jj68zeku.getMdateFormat(editor); global$1.each(dom.select('div', o.node), function (e) { if (dom.hasClass(e, 'mceTmpl')) { global$1.each(dom.select('*', e), function (e) { if (dom.hasClass(e, editor.getParam('template_mdate_classes', 'mdate').replace(/\s+/g, '|'))) { - e.innerHTML = $_d1v9wnrbjj6614ce.getDateTime(editor, dateFormat); + e.innerHTML = $_94ea42rbjj68zel2.getDateTime(editor, dateFormat); } }); - $_cnmquar6jj6614c7.replaceVals(editor, e); + $_xjv1qr6jj68zekl.replaceVals(editor, e); } }); }); }; - var $_7vmu48rcjj6614ch = { setup: setup }; + var $_cnpik2rcjj68zel8 = { setup: setup }; var insertIframeHtml = function (editor, win, html) { if (html.indexOf('') === -1) { @@ -221,7 +221,7 @@ var template = (function () { } html = '' + '' + '' + contentCssLinks_1 + '' + '' + html + '' + ''; } - html = $_cnmquar6jj6614c7.replaceTemplateValues(editor, html, $_6cekekr9jj6614cb.getPreviewReplaceValues(editor)); + html = $_xjv1qr6jj68zekl.replaceTemplateValues(editor, html, $_8xypq3r9jj68zeku.getPreviewReplaceValues(editor)); var doc = win.find('iframe')[0].getEl().contentWindow.document; doc.open(); doc.write(html); @@ -303,38 +303,38 @@ var template = (function () { } ], onsubmit: function () { - $_cnmquar6jj6614c7.insertTemplate(editor, false, templateHtml); + $_xjv1qr6jj68zekl.insertTemplate(editor, false, templateHtml); }, - minWidth: $_6cekekr9jj6614cb.getDialogWidth(editor), - minHeight: $_6cekekr9jj6614cb.getDialogHeight(editor) + minWidth: $_8xypq3r9jj68zeku.getDialogWidth(editor), + minHeight: $_8xypq3r9jj68zeku.getDialogHeight(editor) }); win.find('listbox')[0].fire('select'); }; - var $_cg9surejj6614cm = { open: open }; + var $_2r8t71rejj68zelk = { open: open }; var showDialog = function (editor) { return function (templates) { - $_cg9surejj6614cm.open(editor, templates); + $_2r8t71rejj68zelk.open(editor, templates); }; }; var register$1 = function (editor) { editor.addButton('template', { title: 'Insert template', - onclick: $_cnmquar6jj6614c7.createTemplateList(editor.settings, showDialog(editor)) + onclick: $_xjv1qr6jj68zekl.createTemplateList(editor.settings, showDialog(editor)) }); editor.addMenuItem('template', { text: 'Template', - onclick: $_cnmquar6jj6614c7.createTemplateList(editor.settings, showDialog(editor)), + onclick: $_xjv1qr6jj68zekl.createTemplateList(editor.settings, showDialog(editor)), icon: 'template', context: 'insert' }); }; - var $_4oy9o7rdjj6614cj = { register: register$1 }; + var $_5suuw0rdjj68zele = { register: register$1 }; global.add('template', function (editor) { - $_4oy9o7rdjj6614cj.register(editor); - $_g8hgstr4jj6614by.register(editor); - $_7vmu48rcjj6614ch.setup(editor); + $_5suuw0rdjj68zele.register(editor); + $_98y85hr4jj68zejt.register(editor); + $_cnpik2rcjj68zel8.setup(editor); }); function Plugin () { } diff --git a/js/tinymce/plugins/textcolor/plugin.js b/js/tinymce/plugins/textcolor/plugin.js index 818534d963a..789481ef2f5 100644 --- a/js/tinymce/plugins/textcolor/plugin.js +++ b/js/tinymce/plugins/textcolor/plugin.js @@ -39,7 +39,7 @@ var textcolor = (function () { editor.nodeChanged(); }); }; - var $_9l0zhkrijj6614dx = { + var $_4qz21brijj68zeoa = { getCurrentColor: getCurrentColor, mapColors: mapColors, applyFormat: applyFormat, @@ -48,13 +48,13 @@ var textcolor = (function () { var register = function (editor) { editor.addCommand('mceApplyTextcolor', function (format, value) { - $_9l0zhkrijj6614dx.applyFormat(editor, format, value); + $_4qz21brijj68zeoa.applyFormat(editor, format, value); }); editor.addCommand('mceRemoveTextcolor', function (format) { - $_9l0zhkrijj6614dx.removeFormat(editor, format); + $_4qz21brijj68zeoa.removeFormat(editor, format); }); }; - var $_baugibrhjj6614dv = { register: register }; + var $_3owac1rhjj68zeo3 = { register: register }; var global$1 = tinymce.util.Tools.resolve('tinymce.dom.DOMUtils'); @@ -173,7 +173,7 @@ var textcolor = (function () { var hasColorPicker = function (editor) { return typeof getColorPickerCallback(editor) === 'function'; }; - var $_2ggpnrrmjj6614e9 = { + var $_el2g1crmjj68zeot = { getForeColorMap: getForeColorMap, getBackColorMap: getBackColorMap, getForeColorRows: getForeColorRows, @@ -193,7 +193,7 @@ var textcolor = (function () { var isNoColor = color === 'transparent'; return '' + '
' + (isNoColor ? '×' : '') + '
' + ''; }; - colors = $_9l0zhkrijj6614dx.mapColors(colorMap); + colors = $_4qz21brijj68zeoa.mapColors(colorMap); colors.push({ text: global$3.translate('No color'), color: 'transparent' @@ -224,7 +224,7 @@ var textcolor = (function () { html += ''; return html; }; - var $_edlozzrnjj6614ee = { getHtml: getHtml }; + var $_53widmrnjj68zep0 = { getHtml: getHtml }; var setDivColor = function setDivColor(div, value) { div.style.background = value; @@ -244,7 +244,7 @@ var textcolor = (function () { return function (e) { var buttonCtrl = this.parent(); var value; - var currentColor = $_9l0zhkrijj6614dx.getCurrentColor(editor, buttonCtrl.settings.format); + var currentColor = $_4qz21brijj68zeoa.getCurrentColor(editor, buttonCtrl.settings.format); var selectColor = function (value) { editor.execCommand('mceApplyTextcolor', buttonCtrl.settings.format, value); buttonCtrl.hidePanel(); @@ -257,7 +257,7 @@ var textcolor = (function () { }; if (global$1.DOM.getParent(e.target, '.mce-custom-color-btn')) { buttonCtrl.hidePanel(); - var colorPickerCallback = $_2ggpnrrmjj6614e9.getColorPickerCallback(editor); + var colorPickerCallback = $_el2g1crmjj68zeot.getColorPickerCallback(editor); colorPickerCallback.call(editor, function (value) { var tableElm = buttonCtrl.panel.getEl().getElementsByTagName('table')[0]; var customColorCells, div, i; @@ -298,11 +298,11 @@ var textcolor = (function () { }; var renderColorPicker = function (editor, foreColor) { return function () { - var cols = foreColor ? $_2ggpnrrmjj6614e9.getForeColorCols(editor) : $_2ggpnrrmjj6614e9.getBackColorCols(editor); - var rows = foreColor ? $_2ggpnrrmjj6614e9.getForeColorRows(editor) : $_2ggpnrrmjj6614e9.getBackColorRows(editor); - var colorMap = foreColor ? $_2ggpnrrmjj6614e9.getForeColorMap(editor) : $_2ggpnrrmjj6614e9.getBackColorMap(editor); - var hasColorPicker = $_2ggpnrrmjj6614e9.hasColorPicker(editor); - return $_edlozzrnjj6614ee.getHtml(cols, rows, colorMap, hasColorPicker); + var cols = foreColor ? $_el2g1crmjj68zeot.getForeColorCols(editor) : $_el2g1crmjj68zeot.getBackColorCols(editor); + var rows = foreColor ? $_el2g1crmjj68zeot.getForeColorRows(editor) : $_el2g1crmjj68zeot.getBackColorRows(editor); + var colorMap = foreColor ? $_el2g1crmjj68zeot.getForeColorMap(editor) : $_el2g1crmjj68zeot.getBackColorMap(editor); + var hasColorPicker = $_el2g1crmjj68zeot.hasColorPicker(editor); + return $_53widmrnjj68zep0.getHtml(cols, rows, colorMap, hasColorPicker); }; }; var register$1 = function (editor) { @@ -314,7 +314,7 @@ var textcolor = (function () { role: 'application', ariaRemember: true, html: renderColorPicker(editor, true), - onclick: onPanelClick(editor, $_2ggpnrrmjj6614e9.getForeColorCols(editor)) + onclick: onPanelClick(editor, $_el2g1crmjj68zeot.getForeColorCols(editor)) }, onclick: onButtonClick(editor) }); @@ -326,16 +326,16 @@ var textcolor = (function () { role: 'application', ariaRemember: true, html: renderColorPicker(editor, false), - onclick: onPanelClick(editor, $_2ggpnrrmjj6614e9.getBackColorCols(editor)) + onclick: onPanelClick(editor, $_el2g1crmjj68zeot.getBackColorCols(editor)) }, onclick: onButtonClick(editor) }); }; - var $_86ivubrjjj6614e2 = { register: register$1 }; + var $_3du3w4rjjj68zeoh = { register: register$1 }; global.add('textcolor', function (editor) { - $_baugibrhjj6614dv.register(editor); - $_86ivubrjjj6614e2.register(editor); + $_3owac1rhjj68zeo3.register(editor); + $_3du3w4rjjj68zeoh.register(editor); }); function Plugin () { } diff --git a/js/tinymce/plugins/textpattern/plugin.js b/js/tinymce/plugins/textpattern/plugin.js index f00766b2830..14ff89cd71b 100644 --- a/js/tinymce/plugins/textpattern/plugin.js +++ b/js/tinymce/plugins/textpattern/plugin.js @@ -34,7 +34,7 @@ var textpattern = (function () { getPatterns: getPatterns }; }; - var $_6jhhkyrsjj6614fh = { get: get }; + var $_3r9bokrsjj68zerk = { get: get }; var defaultPatterns = [ { @@ -95,7 +95,7 @@ var textpattern = (function () { var getPatterns = function (editorSettings) { return editorSettings.textpattern_patterns !== undefined ? editorSettings.textpattern_patterns : defaultPatterns; }; - var $_d9a1z5rtjj6614fj = { getPatterns: getPatterns }; + var $_8lzv8crtjj68zern = { getPatterns: getPatterns }; var global$1 = tinymce.util.Tools.resolve('tinymce.util.Delay'); @@ -144,7 +144,7 @@ var textpattern = (function () { } } }; - var $_esjjc2s1jj6614g0 = { + var $_erbuzus1jj68zet2 = { findPattern: findPattern, findEndPattern: findEndPattern }; @@ -166,7 +166,7 @@ var textpattern = (function () { if (container.nodeType !== 3) { return; } - var endPattern = $_esjjc2s1jj6614g0.findEndPattern(patterns, text, rng.startOffset, delta); + var endPattern = $_erbuzus1jj68zet2.findEndPattern(patterns, text, rng.startOffset, delta); if (endPattern === undefined) { return; } @@ -179,7 +179,7 @@ var textpattern = (function () { var patternRng = document.createRange(); patternRng.setStart(container, startOffset); patternRng.setEnd(container, endOffset + endPattern.end.length); - var startPattern = $_esjjc2s1jj6614g0.findPattern(patterns, patternRng.toString()); + var startPattern = $_erbuzus1jj68zet2.findPattern(patterns, patternRng.toString()); if (endPattern === undefined || startPattern !== endPattern || container.data.length <= endPattern.start.length + endPattern.end.length) { return; } @@ -235,7 +235,7 @@ var textpattern = (function () { } } if (firstTextNode) { - pattern = $_esjjc2s1jj6614g0.findPattern(patterns, firstTextNode.data); + pattern = $_erbuzus1jj68zet2.findPattern(patterns, firstTextNode.data); if (!pattern) { return; } @@ -267,7 +267,7 @@ var textpattern = (function () { } } }; - var $_bwlw87ryjj6614fu = { + var $_8znalgryjj68zesf = { patternFromRng: patternFromRng, applyInlineFormatSpace: applyInlineFormatSpace, applyInlineFormatEnter: applyInlineFormatEnter, @@ -276,18 +276,18 @@ var textpattern = (function () { function handleEnter(editor, patterns) { var wrappedTextNode, rng; - wrappedTextNode = $_bwlw87ryjj6614fu.applyInlineFormatEnter(editor, patterns); + wrappedTextNode = $_8znalgryjj68zesf.applyInlineFormatEnter(editor, patterns); if (wrappedTextNode) { rng = editor.dom.createRng(); rng.setStart(wrappedTextNode, wrappedTextNode.data.length); rng.setEnd(wrappedTextNode, wrappedTextNode.data.length); editor.selection.setRng(rng); } - $_bwlw87ryjj6614fu.applyBlockFormat(editor, patterns); + $_8znalgryjj68zesf.applyBlockFormat(editor, patterns); } function handleInlineKey(editor, patterns) { var wrappedTextNode, lastChar, lastCharNode, rng, dom; - wrappedTextNode = $_bwlw87ryjj6614fu.applyInlineFormatSpace(editor, patterns); + wrappedTextNode = $_8znalgryjj68zesf.applyInlineFormatSpace(editor, patterns); if (wrappedTextNode) { dom = editor.dom; lastChar = wrappedTextNode.data.slice(-1); @@ -319,7 +319,7 @@ var textpattern = (function () { return chr.charCodeAt(0) === event.charCode; }); }; - var $_cm9y65rxjj6614fo = { + var $_36u6ewrxjj68zes1 = { handleEnter: handleEnter, handleInlineKey: handleInlineKey, checkCharCode: checkCharCode, @@ -338,28 +338,28 @@ var textpattern = (function () { var keyCodes = [32]; editor.on('keydown', function (e) { if (e.keyCode === 13 && !global$2.modifierPressed(e)) { - $_cm9y65rxjj6614fo.handleEnter(editor, patternsState.get()); + $_36u6ewrxjj68zes1.handleEnter(editor, patternsState.get()); } }, true); editor.on('keyup', function (e) { - if ($_cm9y65rxjj6614fo.checkKeyCode(keyCodes, e)) { - $_cm9y65rxjj6614fo.handleInlineKey(editor, patternsState.get()); + if ($_36u6ewrxjj68zes1.checkKeyCode(keyCodes, e)) { + $_36u6ewrxjj68zes1.handleInlineKey(editor, patternsState.get()); } }); editor.on('keypress', function (e) { - if ($_cm9y65rxjj6614fo.checkCharCode(charCodes, e)) { + if ($_36u6ewrxjj68zes1.checkCharCode(charCodes, e)) { global$1.setEditorTimeout(editor, function () { - $_cm9y65rxjj6614fo.handleInlineKey(editor, patternsState.get()); + $_36u6ewrxjj68zes1.handleInlineKey(editor, patternsState.get()); }); } }); }; - var $_4kjrtdrujj6614fl = { setup: setup }; + var $_bhfxznrujj68zert = { setup: setup }; global.add('textpattern', function (editor) { - var patternsState = Cell($_d9a1z5rtjj6614fj.getPatterns(editor.settings)); - $_4kjrtdrujj6614fl.setup(editor, patternsState); - return $_6jhhkyrsjj6614fh.get(patternsState); + var patternsState = Cell($_8lzv8crtjj68zern.getPatterns(editor.settings)); + $_bhfxznrujj68zert.setup(editor, patternsState); + return $_3r9bokrsjj68zerk.get(patternsState); }); function Plugin () { } diff --git a/js/tinymce/plugins/toc/plugin.js b/js/tinymce/plugins/toc/plugin.js index dc3202f99ab..fd27f515674 100644 --- a/js/tinymce/plugins/toc/plugin.js +++ b/js/tinymce/plugins/toc/plugin.js @@ -21,7 +21,7 @@ var toc = (function () { var depth = parseInt(editor.getParam('toc_depth', '3'), 10); return depth >= 1 && depth <= 9 ? depth : 3; }; - var $_4k7dmesajj6614im = { + var $_1cz6xgsajj68zewv = { getTocClass: getTocClass, getTocHeader: getTocHeader, getTocDepth: getTocDepth @@ -34,9 +34,9 @@ var toc = (function () { return prefix + guid + (counter++).toString(32); }; }; - var $_afhb95sbjj6614ip = { create: create }; + var $_gbsh9isbjj68zewy = { create: create }; - var tocId = $_afhb95sbjj6614ip.create('mcetoc_'); + var tocId = $_gbsh9isbjj68zewy.create('mcetoc_'); var generateSelector = function generateSelector(depth) { var i; var selector = []; @@ -49,9 +49,9 @@ var toc = (function () { return readHeaders(editor).length > 0; }; var readHeaders = function (editor) { - var tocClass = $_4k7dmesajj6614im.getTocClass(editor); - var headerTag = $_4k7dmesajj6614im.getTocHeader(editor); - var selector = generateSelector($_4k7dmesajj6614im.getTocDepth(editor)); + var tocClass = $_1cz6xgsajj68zewv.getTocClass(editor); + var headerTag = $_1cz6xgsajj68zewv.getTocHeader(editor); + var selector = generateSelector($_1cz6xgsajj68zewv.getTocDepth(editor)); var headers = editor.$(selector); if (headers.length && /^h[1-9]$/i.test(headerTag)) { headers = headers.filter(function (i, el) { @@ -86,7 +86,7 @@ var toc = (function () { }; var generateTocHtml = function (editor) { var html = generateTocContentHtml(editor); - return '
' + html + '
'; + return '
' + html + '
'; }; var generateTocContentHtml = function (editor) { var html = ''; @@ -96,7 +96,7 @@ var toc = (function () { if (!headers.length) { return ''; } - html += generateTitle($_4k7dmesajj6614im.getTocHeader(editor), global$2.translate('Table of Contents')); + html += generateTitle($_1cz6xgsajj68zewv.getTocHeader(editor), global$2.translate('Table of Contents')); for (i = 0; i < headers.length; i++) { h = headers[i]; h.element.id = h.id; @@ -127,7 +127,7 @@ var toc = (function () { return !nodes.length || editor.dom.getParents(nodes[0], '.mce-offscreen-selection').length > 0; }; var insertToc = function (editor) { - var tocClass = $_4k7dmesajj6614im.getTocClass(editor); + var tocClass = $_1cz6xgsajj68zewv.getTocClass(editor); var $tocElm = editor.$('.' + tocClass); if (isEmptyOrOffscren(editor, $tocElm)) { editor.insertContent(generateTocHtml(editor)); @@ -136,7 +136,7 @@ var toc = (function () { } }; var updateToc = function (editor) { - var tocClass = $_4k7dmesajj6614im.getTocClass(editor); + var tocClass = $_1cz6xgsajj68zewv.getTocClass(editor); var $tocElm = editor.$('.' + tocClass); if ($tocElm.length) { editor.undoManager.transact(function () { @@ -144,7 +144,7 @@ var toc = (function () { }); } }; - var $_6h4f96s6jj6614if = { + var $_4lgr7ds6jj68zewk = { hasHeaders: hasHeaders, insertToc: insertToc, updateToc: updateToc @@ -152,16 +152,16 @@ var toc = (function () { var register = function (editor) { editor.addCommand('mceInsertToc', function () { - $_6h4f96s6jj6614if.insertToc(editor); + $_4lgr7ds6jj68zewk.insertToc(editor); }); editor.addCommand('mceUpdateToc', function () { - $_6h4f96s6jj6614if.updateToc(editor); + $_4lgr7ds6jj68zewk.updateToc(editor); }); }; - var $_ejuafgs5jj6614ic = { register: register }; + var $_a2sqfus5jj68zewf = { register: register }; var setup = function (editor) { - var $ = editor.$, tocClass = $_4k7dmesajj6614im.getTocClass(editor); + var $ = editor.$, tocClass = $_1cz6xgsajj68zewv.getTocClass(editor); editor.on('PreProcess', function (e) { var $tocElm = $('.' + tocClass, e.node); if ($tocElm.length) { @@ -177,19 +177,19 @@ var toc = (function () { } }); }; - var $_9fa2bgscjj6614ir = { setup: setup }; + var $_976h9scjj68zex2 = { setup: setup }; var toggleState = function (editor) { return function (e) { var ctrl = e.control; editor.on('LoadContent SetContent change', function () { - ctrl.disabled(editor.readonly || !$_6h4f96s6jj6614if.hasHeaders(editor)); + ctrl.disabled(editor.readonly || !$_4lgr7ds6jj68zewk.hasHeaders(editor)); }); }; }; var isToc = function (editor) { return function (elm) { - return elm && editor.dom.is(elm, '.' + $_4k7dmesajj6614im.getTocClass(editor)) && editor.getBody().contains(elm); + return elm && editor.dom.is(elm, '.' + $_1cz6xgsajj68zewv.getTocClass(editor)) && editor.getBody().contains(elm); }; }; var register$1 = function (editor) { @@ -212,12 +212,12 @@ var toc = (function () { }); editor.addContextToolbar(isToc(editor), 'tocupdate'); }; - var $_86h1ppsdjj6614it = { register: register$1 }; + var $_fmpb78sdjj68zex6 = { register: register$1 }; global.add('toc', function (editor) { - $_ejuafgs5jj6614ic.register(editor); - $_86h1ppsdjj6614it.register(editor); - $_9fa2bgscjj6614ir.setup(editor); + $_a2sqfus5jj68zewf.register(editor); + $_fmpb78sdjj68zex6.register(editor); + $_976h9scjj68zex2.setup(editor); }); function Plugin () { } diff --git a/js/tinymce/plugins/visualblocks/plugin.js b/js/tinymce/plugins/visualblocks/plugin.js index 7c881ce7a73..9491e09639d 100644 --- a/js/tinymce/plugins/visualblocks/plugin.js +++ b/js/tinymce/plugins/visualblocks/plugin.js @@ -25,7 +25,7 @@ var visualblocks = (function () { var fireVisualBlocks = function (editor, state) { editor.fire('VisualBlocks', { state: state }); }; - var $_5x5mnvsjjj6614k0 = { fireVisualBlocks: fireVisualBlocks }; + var $_b1gl3jsjjj68zeyq = { fireVisualBlocks: fireVisualBlocks }; var isEnabledByDefault = function (editor) { return editor.getParam('visualblocks_default_state', false); @@ -33,7 +33,7 @@ var visualblocks = (function () { var getContentCss = function (editor) { return editor.settings.visualblocks_content_css; }; - var $_8a3sssskjj6614k2 = { + var $_ed2d4cskjj68zeyt = { isEnabledByDefault: isEnabledByDefault, getContentCss: getContentCss }; @@ -57,24 +57,24 @@ var visualblocks = (function () { doc.getElementsByTagName('head')[0].appendChild(linkElm); } }; - var $_bwqeoesljj6614k5 = { load: load }; + var $_58lti8sljj68zeyw = { load: load }; var toggleVisualBlocks = function (editor, pluginUrl, enabledState) { var dom = editor.dom; - var contentCss = $_8a3sssskjj6614k2.getContentCss(editor); - $_bwqeoesljj6614k5.load(editor.getDoc(), contentCss ? contentCss : pluginUrl + '/css/visualblocks.css'); + var contentCss = $_ed2d4cskjj68zeyt.getContentCss(editor); + $_58lti8sljj68zeyw.load(editor.getDoc(), contentCss ? contentCss : pluginUrl + '/css/visualblocks.css'); dom.toggleClass(editor.getBody(), 'mce-visualblocks'); enabledState.set(!enabledState.get()); - $_5x5mnvsjjj6614k0.fireVisualBlocks(editor, enabledState.get()); + $_b1gl3jsjjj68zeyq.fireVisualBlocks(editor, enabledState.get()); }; - var $_eiuqassijj6614jx = { toggleVisualBlocks: toggleVisualBlocks }; + var $_al9jybsijj68zeyn = { toggleVisualBlocks: toggleVisualBlocks }; var register = function (editor, pluginUrl, enabledState) { editor.addCommand('mceVisualBlocks', function () { - $_eiuqassijj6614jx.toggleVisualBlocks(editor, pluginUrl, enabledState); + $_al9jybsijj68zeyn.toggleVisualBlocks(editor, pluginUrl, enabledState); }); }; - var $_ajx2xdshjj6614ju = { register: register }; + var $_991re6shjj68zeyk = { register: register }; var setup = function (editor, pluginUrl, enabledState) { editor.on('PreviewFormats AfterPreviewFormats', function (e) { @@ -83,15 +83,15 @@ var visualblocks = (function () { } }); editor.on('init', function () { - if ($_8a3sssskjj6614k2.isEnabledByDefault(editor)) { - $_eiuqassijj6614jx.toggleVisualBlocks(editor, pluginUrl, enabledState); + if ($_ed2d4cskjj68zeyt.isEnabledByDefault(editor)) { + $_al9jybsijj68zeyn.toggleVisualBlocks(editor, pluginUrl, enabledState); } }); editor.on('remove', function () { editor.dom.removeClass(editor.getBody(), 'mce-visualblocks'); }); }; - var $_c2k4wesojj6614k9 = { setup: setup }; + var $_b3ikm8sojj68zeyz = { setup: setup }; var toggleActiveState = function (editor, enabledState) { return function (e) { @@ -118,13 +118,13 @@ var visualblocks = (function () { prependToContext: true }); }; - var $_e1z1k2spjj6614kb = { register: register$1 }; + var $_9uo7qqspjj68zez2 = { register: register$1 }; global.add('visualblocks', function (editor, pluginUrl) { var enabledState = Cell(false); - $_ajx2xdshjj6614ju.register(editor, pluginUrl, enabledState); - $_e1z1k2spjj6614kb.register(editor, enabledState); - $_c2k4wesojj6614k9.setup(editor, pluginUrl, enabledState); + $_991re6shjj68zeyk.register(editor, pluginUrl, enabledState); + $_9uo7qqspjj68zez2.register(editor, enabledState); + $_b3ikm8sojj68zeyz.setup(editor, pluginUrl, enabledState); }); function Plugin () { } diff --git a/js/tinymce/plugins/visualchars/plugin.js b/js/tinymce/plugins/visualchars/plugin.js index c6416149c14..f3dcd0b4921 100644 --- a/js/tinymce/plugins/visualchars/plugin.js +++ b/js/tinymce/plugins/visualchars/plugin.js @@ -28,12 +28,12 @@ var visualchars = (function () { }; return { isEnabled: isEnabled }; }; - var $_bgxpb3stjj6614lc = { get: get }; + var $_dyx05kstjj68zf0b = { get: get }; var fireVisualChars = function (editor, state) { return editor.fire('VisualChars', { state: state }); }; - var $_dsd5yhswjj6614li = { fireVisualChars: fireVisualChars }; + var $_ej9a9tswjj68zf0j = { fireVisualChars: fireVisualChars }; var charMap = { '\xA0': 'nbsp', @@ -56,7 +56,7 @@ var visualchars = (function () { } return selector; }; - var $_6h0jiqsyjj6614m0 = { + var $_e67u5csyjj68zf1d = { charMap: charMap, regExp: charMapToRegExp(charMap), regExpGlobal: charMapToRegExp(charMap, true), @@ -308,7 +308,7 @@ var visualchars = (function () { fromPoint: fromPoint }; - var $_32b0a0t7jj6614o8 = { + var $_1jjt0ct7jj68zf4m = { ATTRIBUTE: Node.ATTRIBUTE_NODE, CDATA_SECTION: Node.CDATA_SECTION_NODE, COMMENT: Node.COMMENT_NODE, @@ -339,12 +339,12 @@ var visualchars = (function () { }; }; var isComment = function (element) { - return type(element) === $_32b0a0t7jj6614o8.COMMENT || name(element) === '#comment'; + return type(element) === $_1jjt0ct7jj68zf4m.COMMENT || name(element) === '#comment'; }; - var isElement = isType$1($_32b0a0t7jj6614o8.ELEMENT); - var isText = isType$1($_32b0a0t7jj6614o8.TEXT); - var isDocument = isType$1($_32b0a0t7jj6614o8.DOCUMENT); - var $_1gigxkt6jj6614o6 = { + var isElement = isType$1($_1jjt0ct7jj68zf4m.ELEMENT); + var isText = isType$1($_1jjt0ct7jj68zf4m.TEXT); + var isDocument = isType$1($_1jjt0ct7jj68zf4m.DOCUMENT); + var $_c0r38jt6jj68zf4j = { name: name, type: type, value: value, @@ -355,12 +355,12 @@ var visualchars = (function () { }; var wrapCharWithSpan = function (value) { - return '' + value + ''; + return '' + value + ''; }; - var $_6qaqwvt8jj6614ob = { wrapCharWithSpan: wrapCharWithSpan }; + var $_atzioit8jj68zf4r = { wrapCharWithSpan: wrapCharWithSpan }; var isMatch = function (n) { - return $_1gigxkt6jj6614o6.isText(n) && $_1gigxkt6jj6614o6.value(n) !== undefined && $_6h0jiqsyjj6614m0.regExp.test($_1gigxkt6jj6614o6.value(n)); + return $_c0r38jt6jj68zf4j.isText(n) && $_c0r38jt6jj68zf4j.value(n) !== undefined && $_e67u5csyjj68zf1d.regExp.test($_c0r38jt6jj68zf4j.value(n)); }; var filterDescendants = function (scope, predicate) { var result = []; @@ -383,9 +383,9 @@ var visualchars = (function () { } }; var replaceWithSpans = function (html) { - return html.replace($_6h0jiqsyjj6614m0.regExpGlobal, $_6qaqwvt8jj6614ob.wrapCharWithSpan); + return html.replace($_e67u5csyjj68zf1d.regExpGlobal, $_atzioit8jj68zf4r.wrapCharWithSpan); }; - var $_76qppvszjj6614m7 = { + var $_gcilvcszjj68zf1g = { isMatch: isMatch, filterDescendants: filterDescendants, findParentElm: findParentElm, @@ -394,9 +394,9 @@ var visualchars = (function () { var show = function (editor, rootElm) { var node, div; - var nodeList = $_76qppvszjj6614m7.filterDescendants(Element$$1.fromDom(rootElm), $_76qppvszjj6614m7.isMatch); + var nodeList = $_gcilvcszjj68zf1g.filterDescendants(Element$$1.fromDom(rootElm), $_gcilvcszjj68zf1g.isMatch); each(nodeList, function (n) { - var withSpans = $_76qppvszjj6614m7.replaceWithSpans($_1gigxkt6jj6614o6.value(n)); + var withSpans = $_gcilvcszjj68zf1g.replaceWithSpans($_c0r38jt6jj68zf4j.value(n)); div = editor.dom.create('div', null, withSpans); while (node = div.lastChild) { editor.dom.insertAfter(node, n.dom()); @@ -405,7 +405,7 @@ var visualchars = (function () { }); }; var hide = function (editor, body) { - var nodeList = editor.dom.select($_6h0jiqsyjj6614m0.selector, body); + var nodeList = editor.dom.select($_e67u5csyjj68zf1d.selector, body); each(nodeList, function (node) { editor.dom.remove(node, 1); }); @@ -413,13 +413,13 @@ var visualchars = (function () { var toggle = function (editor) { var body = editor.getBody(); var bookmark = editor.selection.getBookmark(); - var parentNode = $_76qppvszjj6614m7.findParentElm(editor.selection.getNode(), body); + var parentNode = $_gcilvcszjj68zf1g.findParentElm(editor.selection.getNode(), body); parentNode = parentNode !== undefined ? parentNode : body; hide(editor, parentNode); show(editor, parentNode); editor.selection.moveToBookmark(bookmark); }; - var $_916x9gsxjj6614lk = { + var $_dmea0usxjj68zf0m = { show: show, hide: hide, toggle: toggle @@ -430,39 +430,39 @@ var visualchars = (function () { var selection = editor.selection; var bookmark; toggleState.set(!toggleState.get()); - $_dsd5yhswjj6614li.fireVisualChars(editor, toggleState.get()); + $_ej9a9tswjj68zf0j.fireVisualChars(editor, toggleState.get()); bookmark = selection.getBookmark(); if (toggleState.get() === true) { - $_916x9gsxjj6614lk.show(editor, body); + $_dmea0usxjj68zf0m.show(editor, body); } else { - $_916x9gsxjj6614lk.hide(editor, body); + $_dmea0usxjj68zf0m.hide(editor, body); } selection.moveToBookmark(bookmark); }; - var $_84hmjzsvjj6614lg = { toggleVisualChars: toggleVisualChars }; + var $_9t5n9psvjj68zf0g = { toggleVisualChars: toggleVisualChars }; var register = function (editor, toggleState) { editor.addCommand('mceVisualChars', function () { - $_84hmjzsvjj6614lg.toggleVisualChars(editor, toggleState); + $_9t5n9psvjj68zf0g.toggleVisualChars(editor, toggleState); }); }; - var $_9v3ryxsujj6614le = { register: register }; + var $_53tz5qsujj68zf0d = { register: register }; var global$1 = tinymce.util.Tools.resolve('tinymce.util.Delay'); var setup = function (editor, toggleState) { var debouncedToggle = global$1.debounce(function () { - $_916x9gsxjj6614lk.toggle(editor); + $_dmea0usxjj68zf0m.toggle(editor); }, 300); if (editor.settings.forced_root_block !== false) { editor.on('keydown', function (e) { if (toggleState.get() === true) { - e.keyCode === 13 ? $_916x9gsxjj6614lk.toggle(editor) : debouncedToggle(); + e.keyCode === 13 ? $_dmea0usxjj68zf0m.toggle(editor) : debouncedToggle(); } }); } }; - var $_d8lezbt9jj6614oe = { setup: setup }; + var $_atsmgkt9jj68zf50 = { setup: setup }; var toggleActiveState = function (editor) { return function (e) { @@ -491,10 +491,10 @@ var visualchars = (function () { global.add('visualchars', function (editor) { var toggleState = Cell(false); - $_9v3ryxsujj6614le.register(editor, toggleState); + $_53tz5qsujj68zf0d.register(editor, toggleState); register$1(editor); - $_d8lezbt9jj6614oe.setup(editor, toggleState); - return $_bgxpb3stjj6614lc.get(toggleState); + $_atsmgkt9jj68zf50.setup(editor, toggleState); + return $_dyx05kstjj68zf0b.get(toggleState); }); function Plugin () { } diff --git a/js/tinymce/plugins/wordcount/plugin.js b/js/tinymce/plugins/wordcount/plugin.js index 5f093baba12..0488d16cb64 100644 --- a/js/tinymce/plugins/wordcount/plugin.js +++ b/js/tinymce/plugins/wordcount/plugin.js @@ -53,7 +53,7 @@ var wordcount = (function () { var EMPTY_STRING = ''; var PUNCTUATION = new RegExp('^' + regExps.punctuation + '$'); var WHITESPACE = /^\s+$/; - var $_gbifx2thjj6614rj = { + var $_zfqprthjj68zfa1 = { characterIndices: characterIndices, SETS: SETS, EMPTY_STRING: EMPTY_STRING, @@ -91,13 +91,13 @@ var wordcount = (function () { }); return out; }; - var $_966xigtjjj6614ry = { + var $_43cvyetjjj68zfag = { each: each, map: map }; - var SETS$1 = $_gbifx2thjj6614rj.SETS; - var OTHER = $_gbifx2thjj6614rj.characterIndices.OTHER; + var SETS$1 = $_zfqprthjj68zfa1.SETS; + var OTHER = $_zfqprthjj68zfa1.characterIndices.OTHER; var getType = function (char) { var j, set, type = OTHER; var setsLength = SETS$1.length; @@ -124,11 +124,11 @@ var wordcount = (function () { }; var classify = function (string) { var memoized = memoize(getType); - return $_966xigtjjj6614ry.map(string.split(''), memoized); + return $_43cvyetjjj68zfag.map(string.split(''), memoized); }; - var $_b3j7e9tijj6614ru = { classify: classify }; + var $_3zjglntijj68zfab = { classify: classify }; - var ci = $_gbifx2thjj6614rj.characterIndices; + var ci = $_zfqprthjj68zfa1.characterIndices; var isWordBoundary = function (map, index) { var prevType; var type = map[index]; @@ -183,11 +183,11 @@ var wordcount = (function () { } return true; }; - var $_cpdtuztkjj6614s1 = { isWordBoundary: isWordBoundary }; + var $_145owtkjj68zfam = { isWordBoundary: isWordBoundary }; - var EMPTY_STRING$1 = $_gbifx2thjj6614rj.EMPTY_STRING; - var WHITESPACE$1 = $_gbifx2thjj6614rj.WHITESPACE; - var PUNCTUATION$1 = $_gbifx2thjj6614rj.PUNCTUATION; + var EMPTY_STRING$1 = $_zfqprthjj68zfa1.EMPTY_STRING; + var WHITESPACE$1 = $_zfqprthjj68zfa1.WHITESPACE; + var PUNCTUATION$1 = $_zfqprthjj68zfa1.PUNCTUATION; var isProtocol = function (word) { return word === 'http' || word === 'https'; }; @@ -217,7 +217,7 @@ var wordcount = (function () { }; var doGetWords = function (str, options) { var i = 0; - var map = $_b3j7e9tijj6614ru.classify(str); + var map = $_3zjglntijj68zfab.classify(str); var len = map.length; var word = []; var words = []; @@ -235,7 +235,7 @@ var wordcount = (function () { for (; i < len; ++i) { chr = str.charAt(i); word.push(chr); - if ($_cpdtuztkjj6614s1.isWordBoundary(map, i)) { + if ($_145owtkjj68zfam.isWordBoundary(map, i)) { word = word.join(EMPTY_STRING$1); if (word && (includeWhitespace || !WHITESPACE$1.test(word)) && (includePunctuation || !PUNCTUATION$1.test(word))) { if (isProtocol(word)) { @@ -254,23 +254,23 @@ var wordcount = (function () { var getWords = function (str, options) { return doGetWords(str.replace(/\ufeff/g, ''), options); }; - var $_4cxhk8tgjj6614re = { getWords: getWords }; + var $_aze8fytgjj68zf9o = { getWords: getWords }; var getTextContent = function (editor) { return editor.removed ? '' : editor.getBody().innerText; }; var getCount = function (editor) { - return $_4cxhk8tgjj6614re.getWords(getTextContent(editor)).length; + return $_aze8fytgjj68zf9o.getWords(getTextContent(editor)).length; }; - var $_1vz80vtfjj6614rb = { getCount: getCount }; + var $_2nafwmtfjj68zf9k = { getCount: getCount }; var get = function (editor) { var getCount = function () { - return $_1vz80vtfjj6614rb.getCount(editor); + return $_2nafwmtfjj68zf9k.getCount(editor); }; return { getCount: getCount }; }; - var $_6fqeqdtejj6614r9 = { get: get }; + var $_8kewa7tejj68zf9f = { get: get }; var global$1 = tinymce.util.Tools.resolve('tinymce.util.Delay'); @@ -280,7 +280,7 @@ var wordcount = (function () { var wordsToText = function (editor) { return global$2.translate([ '{0} words', - $_1vz80vtfjj6614rb.getCount(editor) + $_2nafwmtfjj68zf9k.getCount(editor) ]); }; var update = function () { @@ -303,11 +303,11 @@ var wordcount = (function () { } }); }; - var $_6gnqtktljj6614s5 = { setup: setup }; + var $_b19laptljj68zfau = { setup: setup }; global.add('wordcount', function (editor) { - $_6gnqtktljj6614s5.setup(editor); - return $_6fqeqdtejj6614r9.get(editor); + $_b19laptljj68zfau.setup(editor); + return $_8kewa7tejj68zf9f.get(editor); }); function Plugin () { } diff --git a/js/tinymce/themes/inlite/theme.js b/js/tinymce/themes/inlite/theme.js index d2a2cda6165..d81fa40f8f7 100644 --- a/js/tinymce/themes/inlite/theme.js +++ b/js/tinymce/themes/inlite/theme.js @@ -15,7 +15,7 @@ var inlite = (function () { return Array.isArray(item) ? results.concat(flatten(item)) : results.concat(item); }, []); }; - var $_8zhajk17xjj661b1h = { flatten: flatten }; + var $_cnpqsw17xjj68zrv2 = { flatten: flatten }; var result = function (id, rect) { return { @@ -33,7 +33,7 @@ var inlite = (function () { } return null; }; - var $_ane48g17zjj661b1n = { + var $_9bctd617zjj68zrva = { match: match, result: result }; @@ -56,7 +56,7 @@ var inlite = (function () { bottom: geomRect.y + geomRect.h }; }; - var $_6626fe181jj661b1q = { + var $_asxlbd181jj68zrvk = { fromClientRect: fromClientRect, toClientRect: toClientRect }; @@ -90,9 +90,9 @@ var inlite = (function () { }; var getSelectionRect = function (editor) { var clientRect = editor.selection.getBoundingClientRect(); - return clientRect ? toAbsolute($_6626fe181jj661b1q.fromClientRect(clientRect)) : null; + return clientRect ? toAbsolute($_asxlbd181jj68zrvk.fromClientRect(clientRect)) : null; }; - var $_2uaism180jj661b1o = { + var $_29arpm180jj68zrvf = { getElementRect: getElementRect, getPageAreaRect: getPageAreaRect, getContentAreaRect: getContentAreaRect, @@ -103,7 +103,7 @@ var inlite = (function () { return function (editor) { for (var i = 0; i < predicateIds.length; i++) { if (predicateIds[i].predicate(element)) { - var result = $_ane48g17zjj661b1n.result(predicateIds[i].id, $_2uaism180jj661b1o.getElementRect(editor, element)); + var result = $_9bctd617zjj68zrva.result(predicateIds[i].id, $_29arpm180jj68zrvf.getElementRect(editor, element)); return result; } } @@ -115,14 +115,14 @@ var inlite = (function () { for (var i = 0; i < elements.length; i++) { for (var x = 0; x < predicateIds.length; x++) { if (predicateIds[x].predicate(elements[i])) { - return $_ane48g17zjj661b1n.result(predicateIds[x].id, $_2uaism180jj661b1o.getElementRect(editor, elements[i])); + return $_9bctd617zjj68zrva.result(predicateIds[x].id, $_29arpm180jj68zrvf.getElementRect(editor, elements[i])); } } } return null; }; }; - var $_cttjls17yjj661b1k = { + var $_5ybvzo17yjj68zrv5 = { element: element, parent: parent }; @@ -140,7 +140,7 @@ var inlite = (function () { return create(toolbar.id, toolbar.predicate); }); }; - var $_f8kzhm182jj661b1s = { + var $_1mfgfu182jj68zrvo = { create: create, fromContextToolbars: fromContextToolbars }; @@ -148,7 +148,7 @@ var inlite = (function () { var textSelection = function (id) { return function (editor) { if (!editor.selection.isCollapsed()) { - var result = $_ane48g17zjj661b1n.result(id, $_2uaism180jj661b1o.getSelectionRect(editor)); + var result = $_9bctd617zjj68zrva.result(id, $_29arpm180jj68zrvf.getSelectionRect(editor)); return result; } return null; @@ -166,7 +166,7 @@ var inlite = (function () { for (i = 0; i < elements.length; i++) { if (elements[i].nodeName in textBlockElementsMap) { if (editor.dom.isEmpty(elements[i])) { - return $_ane48g17zjj661b1n.result(id, $_2uaism180jj661b1o.getSelectionRect(editor)); + return $_9bctd617zjj68zrva.result(id, $_29arpm180jj68zrvf.getSelectionRect(editor)); } return null; } @@ -174,7 +174,7 @@ var inlite = (function () { return null; }; }; - var $_fthato184jj661b1u = { + var $_5bprzh184jj68zrvs = { textSelection: textSelection, emptyTextBlock: emptyTextBlock }; @@ -185,7 +185,7 @@ var inlite = (function () { var fireBeforeRenderUI = function (editor) { return editor.fire('BeforeRenderUI'); }; - var $_6c36t8186jj661b1y = { + var $_4linal186jj68zrvz = { fireSkinLoaded: fireSkinLoaded, fireBeforeRenderUI: fireBeforeRenderUI }; @@ -220,7 +220,7 @@ var inlite = (function () { var isBoolean = function (value) { return isType('boolean')(value); }; - var $_79zufh18ajj661b25 = { + var $_1xuzm118ajj68zrwa = { isString: isString, isNumber: isNumber, isBoolean: isBoolean, @@ -255,11 +255,11 @@ var inlite = (function () { var boolToItemsArray = function (value, defaultValue) { return value === false ? [] : defaultValue; }; - if ($_79zufh18ajj661b25.isArray(value)) { + if ($_1xuzm118ajj68zrwa.isArray(value)) { return value; - } else if ($_79zufh18ajj661b25.isString(value)) { + } else if ($_1xuzm118ajj68zrwa.isString(value)) { return stringToItemsArray(value); - } else if ($_79zufh18ajj661b25.isBoolean(value)) { + } else if ($_1xuzm118ajj68zrwa.isBoolean(value)) { return boolToItemsArray(value, defaultValue); } return defaultValue; @@ -271,12 +271,12 @@ var inlite = (function () { return itemsToArray(value, defaultValue); }; }; - var $_g00njb189jj661b23 = { - getStringOr: getByTypeOr($_79zufh18ajj661b25.isString), - getBoolOr: getByTypeOr($_79zufh18ajj661b25.isBoolean), - getNumberOr: getByTypeOr($_79zufh18ajj661b25.isNumber), - getHandlerOr: getByTypeOr($_79zufh18ajj661b25.isFunction), - getToolbarItemsOr: getToolbarItemsOr($_79zufh18ajj661b25.isArray) + var $_9nzha189jj68zrw6 = { + getStringOr: getByTypeOr($_1xuzm118ajj68zrwa.isString), + getBoolOr: getByTypeOr($_1xuzm118ajj68zrwa.isBoolean), + getNumberOr: getByTypeOr($_1xuzm118ajj68zrwa.isNumber), + getHandlerOr: getByTypeOr($_1xuzm118ajj68zrwa.isFunction), + getToolbarItemsOr: getToolbarItemsOr($_1xuzm118ajj68zrwa.isArray) }; var global$6 = tinymce.util.Tools.resolve('tinymce.geom.Rect'); @@ -354,18 +354,18 @@ var inlite = (function () { var userConstrainedPanelRect; if (typeof handler === 'function') { userConstrainedPanelRect = handler({ - elementRect: $_6626fe181jj661b1q.toClientRect(targetRect), - contentAreaRect: $_6626fe181jj661b1q.toClientRect(contentAreaRect), - panelRect: $_6626fe181jj661b1q.toClientRect(panelRect) + elementRect: $_asxlbd181jj68zrvk.toClientRect(targetRect), + contentAreaRect: $_asxlbd181jj68zrvk.toClientRect(contentAreaRect), + panelRect: $_asxlbd181jj68zrvk.toClientRect(panelRect) }); - return $_6626fe181jj661b1q.fromClientRect(userConstrainedPanelRect); + return $_asxlbd181jj68zrvk.fromClientRect(userConstrainedPanelRect); } return panelRect; }; var defaultHandler = function (rects) { return rects.panelRect; }; - var $_55oluj18bjj661b28 = { + var $_dvz3cv18bjj68zrwe = { calcInsert: calcInsert, calc: calc, userConstrain: userConstrain, @@ -380,7 +380,7 @@ var inlite = (function () { return name ? prefix + name : prefix + 'lightgray'; }; var getTextSelectionToolbarItems = function (editor) { - return $_g00njb189jj661b23.getToolbarItemsOr(editor, 'selection_toolbar', [ + return $_9nzha189jj68zrw6.getToolbarItemsOr(editor, 'selection_toolbar', [ 'bold', 'italic', '|', @@ -391,13 +391,13 @@ var inlite = (function () { ]); }; var getInsertToolbarItems = function (editor) { - return $_g00njb189jj661b23.getToolbarItemsOr(editor, 'insert_toolbar', [ + return $_9nzha189jj68zrw6.getToolbarItemsOr(editor, 'insert_toolbar', [ 'quickimage', 'quicktable' ]); }; var getPositionHandler = function (editor) { - return $_g00njb189jj661b23.getHandlerOr(editor, 'inline_toolbar_position_handler', $_55oluj18bjj661b28.defaultHandler); + return $_9nzha189jj68zrw6.getHandlerOr(editor, 'inline_toolbar_position_handler', $_dvz3cv18bjj68zrwe.defaultHandler); }; var getSkinUrl = function (editor) { var settings = editor.settings; @@ -406,7 +406,7 @@ var inlite = (function () { var isSkinDisabled = function (editor) { return editor.settings.skin === false; }; - var $_2qnbai187jj661b20 = { + var $_66vu6n187jj68zrw1 = { getTextSelectionToolbarItems: getTextSelectionToolbarItems, getInsertToolbarItems: getInsertToolbarItems, getPositionHandler: getPositionHandler, @@ -417,7 +417,7 @@ var inlite = (function () { var fireSkinLoaded$1 = function (editor, callback) { var done = function () { editor._skinLoaded = true; - $_6c36t8186jj661b1y.fireSkinLoaded(editor); + $_4linal186jj68zrvz.fireSkinLoaded(editor); callback(); }; if (editor.initialized) { @@ -427,18 +427,18 @@ var inlite = (function () { } }; var load = function (editor, callback) { - var skinUrl = $_2qnbai187jj661b20.getSkinUrl(editor); + var skinUrl = $_66vu6n187jj68zrw1.getSkinUrl(editor); var done = function () { fireSkinLoaded$1(editor, callback); }; - if ($_2qnbai187jj661b20.isSkinDisabled(editor)) { + if ($_66vu6n187jj68zrw1.isSkinDisabled(editor)) { done(); } else { global$2.DOM.styleSheetLoader.load(skinUrl + '/skin.min.css', done); editor.contentCSS.push(skinUrl + '/content.inline.min.css'); } }; - var $_8cjjkf185jj661b1w = { load: load }; + var $_f5q3m1185jj68zrvv = { load: load }; var getSelectionElements = function (editor) { var node = editor.selection.getNode(); @@ -457,7 +457,7 @@ var inlite = (function () { }; var getToolbars = function (editor) { var contextToolbars = editor.contextToolbars; - return $_8zhajk17xjj661b1h.flatten([ + return $_cnpqsw17xjj68zrv2.flatten([ contextToolbars ? contextToolbars : [], createToolbar(editor, 'img', 'image', 'alignleft aligncenter alignright') ]); @@ -465,12 +465,12 @@ var inlite = (function () { var findMatchResult = function (editor, toolbars) { var result, elements, contextToolbarsPredicateIds; elements = getSelectionElements(editor); - contextToolbarsPredicateIds = $_f8kzhm182jj661b1s.fromContextToolbars(toolbars); - result = $_ane48g17zjj661b1n.match(editor, [ - $_cttjls17yjj661b1k.element(elements[0], contextToolbarsPredicateIds), - $_fthato184jj661b1u.textSelection('text'), - $_fthato184jj661b1u.emptyTextBlock(elements, 'insert'), - $_cttjls17yjj661b1k.parent(elements, contextToolbarsPredicateIds) + contextToolbarsPredicateIds = $_1mfgfu182jj68zrvo.fromContextToolbars(toolbars); + result = $_9bctd617zjj68zrva.match(editor, [ + $_5ybvzo17yjj68zrv5.element(elements[0], contextToolbarsPredicateIds), + $_5bprzh184jj68zrvs.textSelection('text'), + $_5bprzh184jj68zrvs.emptyTextBlock(elements, 'insert'), + $_5ybvzo17yjj68zrv5.parent(elements, contextToolbarsPredicateIds) ]); return result && result.rect ? result : null; }; @@ -529,14 +529,14 @@ var inlite = (function () { editor.shortcuts.remove('meta+k'); editor.shortcuts.add('meta+k', '', function () { var toolbars = getToolbars(editor); - var result = $_ane48g17zjj661b1n.match(editor, [$_fthato184jj661b1u.textSelection('quicklink')]); + var result = $_9bctd617zjj68zrva.match(editor, [$_5bprzh184jj68zrvs.textSelection('quicklink')]); if (result) { panel.show(editor, result.id, result.rect, toolbars); } }); }; var renderInlineUI = function (editor, panel) { - $_8cjjkf185jj661b1w.load(editor, function () { + $_f5q3m1185jj68zrvv.load(editor, function () { bindContextualToolbarsEvents(editor, panel); overrideLinkShortcut(editor, panel); }); @@ -548,7 +548,7 @@ var inlite = (function () { var renderUI = function (editor, panel) { return editor.inline ? renderInlineUI(editor, panel) : fail('inlite theme only supports inline mode.'); }; - var $_ezzg4q17tjj661b18 = { renderUI: renderUI }; + var $_bjpne417tjj68zrus = { renderUI: renderUI }; var noop = function () { var x = []; @@ -953,7 +953,7 @@ var inlite = (function () { var global$9 = tinymce.util.Tools.resolve('tinymce.util.EventDispatcher'); - var $_75ak8m18pjj661b4o = { + var $_c8hvte18pjj68zs0j = { parseBox: function (value) { var len; var radix = 10; @@ -1570,7 +1570,7 @@ var inlite = (function () { var dirtyCtrls = {}; var animationFrameRequested; - var $_elel2a18wjj661b5b = { + var $_6xudun18wjj68zs1s = { add: function (ctrl) { var parent$$1 = ctrl.parent(); if (parent$$1) { @@ -1627,7 +1627,7 @@ var inlite = (function () { var inheritUiContainer = function (fromCtrl, toCtrl) { return toCtrl.uiContainer = getUiContainer(fromCtrl); }; - var $_afd0ho18xjj661b5d = { + var $_59gy2g18xjj68zs1v = { getUiContainerDelta: getUiContainerDelta, setUiContainer: setUiContainer, getUiContainer: getUiContainer, @@ -1694,16 +1694,16 @@ var inlite = (function () { } }); self$$1.settings = settings; - self$$1.borderBox = $_75ak8m18pjj661b4o.parseBox(settings.border); - self$$1.paddingBox = $_75ak8m18pjj661b4o.parseBox(settings.padding); - self$$1.marginBox = $_75ak8m18pjj661b4o.parseBox(settings.margin); + self$$1.borderBox = $_c8hvte18pjj68zs0j.parseBox(settings.border); + self$$1.paddingBox = $_c8hvte18pjj68zs0j.parseBox(settings.padding); + self$$1.marginBox = $_c8hvte18pjj68zs0j.parseBox(settings.margin); if (settings.hidden) { self$$1.hide(); } }, Properties: 'parent,name', getContainerElm: function () { - var uiContainer = $_afd0ho18xjj661b5d.getUiContainer(this); + var uiContainer = $_59gy2g18xjj68zs1v.getUiContainer(this); return uiContainer ? uiContainer : funcs.getContainer(); }, getParentCtrl: function (elm) { @@ -1725,9 +1725,9 @@ var inlite = (function () { var elm = self$$1.getEl(); var width, height, minWidth, minHeight, autoResize; var startMinWidth, startMinHeight, initialSize; - borderBox = self$$1.borderBox = self$$1.borderBox || $_75ak8m18pjj661b4o.measureBox(elm, 'border'); - self$$1.paddingBox = self$$1.paddingBox || $_75ak8m18pjj661b4o.measureBox(elm, 'padding'); - self$$1.marginBox = self$$1.marginBox || $_75ak8m18pjj661b4o.measureBox(elm, 'margin'); + borderBox = self$$1.borderBox = self$$1.borderBox || $_c8hvte18pjj68zs0j.measureBox(elm, 'border'); + self$$1.paddingBox = self$$1.paddingBox || $_c8hvte18pjj68zs0j.measureBox(elm, 'padding'); + self$$1.marginBox = self$$1.marginBox || $_c8hvte18pjj68zs0j.measureBox(elm, 'margin'); initialSize = funcs.getSize(elm); startMinWidth = settings.minWidth; startMinHeight = settings.minHeight; @@ -2154,7 +2154,7 @@ var inlite = (function () { parentCtrl._lastRect = null; } self$$1.fire(state ? 'show' : 'hide'); - $_elel2a18wjj661b5b.add(self$$1); + $_6xudun18wjj68zs1s.add(self$$1); }); self$$1.fire('postrender', {}, false); }, @@ -2216,7 +2216,7 @@ var inlite = (function () { return rootControl; }, reflow: function () { - $_elel2a18wjj661b5b.remove(this); + $_6xudun18wjj68zs1s.remove(this); var parent$$1 = this.parent(); if (parent$$1 && parent$$1._layout && !parent$$1._layout.isNative()) { parent$$1.reflow(); @@ -2365,7 +2365,7 @@ var inlite = (function () { function calculateRelativePosition(ctrl, targetElm, rel) { var ctrlElm, pos, x, y, selfW, selfH, targetW, targetH, viewport, size; viewport = getWindowViewPort(); - var rootElm = ctrl.getRoot().modal ? ctrl.getRoot().getEl() : $_afd0ho18xjj661b5d.getUiContainer(ctrl); + var rootElm = ctrl.getRoot().modal ? ctrl.getRoot().getEl() : $_59gy2g18xjj68zs1v.getUiContainer(ctrl); pos = funcs.getPos(targetElm, rootElm); x = pos.x; y = pos.y; @@ -2434,10 +2434,10 @@ var inlite = (function () { }; }; var getViewPortRect = function (ctrl) { - var customUiContainer = $_afd0ho18xjj661b5d.getUiContainer(ctrl); + var customUiContainer = $_59gy2g18xjj68zs1v.getUiContainer(ctrl); return customUiContainer && !isFixed(ctrl) ? getUiContainerViewPort(customUiContainer) : getWindowViewPort(); }; - var $_cufsqy18yjj661b5i = { + var $_eciu1x18yjj68zs27 = { testMoveRel: function (elm, rels) { var viewPortRect = getViewPortRect(this); for (var i = 0; i < rels.length; i++) { @@ -2484,7 +2484,7 @@ var inlite = (function () { x = constrain(x, viewPortRect.w, layoutRect.w); y = constrain(y, viewPortRect.h, layoutRect.h); } - var uiContainer = $_afd0ho18xjj661b5d.getUiContainer(self$$1); + var uiContainer = $_59gy2g18xjj68zs1v.getUiContainer(self$$1); if (uiContainer && isStatic(uiContainer) && !isFixed(self$$1)) { x -= uiContainer.scrollLeft; y -= uiContainer.scrollTop; @@ -2511,7 +2511,7 @@ var inlite = (function () { }; var Tooltip = Control$1.extend({ - Mixins: [$_cufsqy18yjj661b5i], + Mixins: [$_eciu1x18yjj68zs27], Defaults: { classes: 'widget tooltip tooltip-n' }, renderHtml: function () { var self = this, prefix = self.classPrefix; @@ -2568,7 +2568,7 @@ var inlite = (function () { tooltip: function () { if (!this._tooltip) { this._tooltip = new Tooltip({ type: 'tooltip' }); - $_afd0ho18xjj661b5d.inheritUiContainer(this, this._tooltip); + $_59gy2g18xjj68zs1v.inheritUiContainer(this, this._tooltip); this._tooltip.renderTo(); } return this._tooltip; @@ -2658,7 +2658,7 @@ var inlite = (function () { ctx.getEl().lastChild.textContent = text + (ctx.progressBar ? ' ' + ctx.progressBar.value() + '%' : ''); }; var Notification = Control$1.extend({ - Mixins: [$_cufsqy18yjj661b5i], + Mixins: [$_eciu1x18yjj68zs27], Defaults: { classes: 'widget notification' }, init: function (settings) { var self = this; @@ -3237,7 +3237,7 @@ var inlite = (function () { global$7(containerElm).append(ctrl.renderHtml()); } ctrl.postRender(); - $_elel2a18wjj661b5b.add(ctrl); + $_6xudun18wjj68zs1s.add(ctrl); } }); self._layout.applyClasses(self.items().filter(':visible')); @@ -3337,7 +3337,7 @@ var inlite = (function () { }, reflow: function () { var i; - $_elel2a18wjj661b5b.remove(this); + $_6xudun18wjj68zs1s.remove(this); if (this.visible()) { Control$1.repaintControls = []; Control$1.repaintControls.map = {}; @@ -3355,7 +3355,7 @@ var inlite = (function () { } }); - var $_dclfif19ajj661b72 = { + var $_1hikkd19ajj68zs5m = { init: function () { var self = this; self.on('repaint', self.renderScroll); @@ -3451,7 +3451,7 @@ var inlite = (function () { layout: 'fit', containerCls: 'panel' }, - Mixins: [$_dclfif19ajj661b72], + Mixins: [$_1hikkd19ajj68zs5m], renderHtml: function () { var self = this; var layout = self._layout; @@ -3470,7 +3470,7 @@ var inlite = (function () { } }); - var $_8bbzbe19bjj661b7a = { + var $_9pqcd619bjj68zs5s = { resizeToContent: function () { this._layoutRect.autoResize = true; this._lastRect = null; @@ -3628,8 +3628,8 @@ var inlite = (function () { } var FloatPanel = Panel.extend({ Mixins: [ - $_cufsqy18yjj661b5i, - $_8bbzbe19bjj661b7a + $_eciu1x18yjj68zs27, + $_9pqcd619bjj68zs5s ], init: function (settings) { var self$$1 = this; @@ -3996,7 +3996,7 @@ var inlite = (function () { layoutRect = self$$1.layoutRect(); self$$1._fullscreen = state; if (!state) { - self$$1.borderBox = $_75ak8m18pjj661b4o.parseBox(self$$1.settings.border); + self$$1.borderBox = $_c8hvte18pjj68zs0j.parseBox(self$$1.settings.border); self$$1.getEl('head').style.display = ''; layoutRect.deltaH += layoutRect.headerH; global$7([ @@ -4012,7 +4012,7 @@ var inlite = (function () { w: layoutRect.w, h: layoutRect.h }; - self$$1.borderBox = $_75ak8m18pjj661b4o.parseBox('0'); + self$$1.borderBox = $_c8hvte18pjj68zs0j.parseBox('0'); self$$1.getEl('head').style.display = 'none'; layoutRect.deltaH -= layoutRect.headerH + 2; global$7([ @@ -4290,7 +4290,7 @@ var inlite = (function () { var get = function (editor, panel) { var renderUI = function () { - return $_ezzg4q17tjj661b18.renderUI(editor, panel); + return $_bjpne417tjj68zrus.renderUI(editor, panel); }; return { renderUI: renderUI, @@ -4302,7 +4302,7 @@ var inlite = (function () { } }; }; - var $_ajck3u17sjj661b14 = { get: get }; + var $_8rta2817sjj68zrun = { get: get }; var Global = typeof window !== 'undefined' ? window : Function('return this;')(); @@ -4326,10 +4326,10 @@ var inlite = (function () { throw name + ' not available on this browser'; return actual; }; - var $_5m68u119gjj661b7p = { getOrDie: getOrDie }; + var $_5gpl7u19gjj68zs6w = { getOrDie: getOrDie }; function FileReader () { - var f = $_5m68u119gjj661b7p.getOrDie('FileReader'); + var f = $_5gpl7u19gjj68zs6w.getOrDie('FileReader'); return new f(); } @@ -4344,7 +4344,7 @@ var inlite = (function () { reader.readAsDataURL(blob); }); }; - var $_9qkhue19ejj661b7j = { blobToBase64: blobToBase64 }; + var $_3vn2oe19ejj68zs6a = { blobToBase64: blobToBase64 }; var pickFile = function () { return new global$12(function (resolve) { @@ -4363,7 +4363,7 @@ var inlite = (function () { fileInput.parentNode.removeChild(fileInput); }); }; - var $_525xoi19kjj661b7y = { pickFile: pickFile }; + var $_5jybq219kjj68zs7c = { pickFile: pickFile }; var count$1 = 0; var seed = function () { @@ -4375,7 +4375,7 @@ var inlite = (function () { var uuid = function (prefix) { return prefix + count$1++ + seed(); }; - var $_df4nqg19mjj661b84 = { uuid: uuid }; + var $_d5vju19mjj68zs7v = { uuid: uuid }; var create$1 = function (dom, rng) { var bookmark = {}; @@ -4445,7 +4445,7 @@ var inlite = (function () { } return rng; }; - var $_ctmc0l19ojj661b89 = { + var $_8az5nb19ojj68zs83 = { create: create$1, resolve: resolve$1 }; @@ -4472,11 +4472,11 @@ var inlite = (function () { var bookmark, dom, selection; dom = editor.dom; selection = editor.selection; - bookmark = $_ctmc0l19ojj661b89.create(dom, selection.getRng()); + bookmark = $_8az5nb19ojj68zs83.create(dom, selection.getRng()); global$4.each(elms, function (elm) { editor.dom.remove(elm, true); }); - selection.setRng($_ctmc0l19ojj661b89.resolve(dom, bookmark)); + selection.setRng($_8az5nb19ojj68zs83.resolve(dom, bookmark)); }; var isLink = function (elm) { return elm.nodeName === 'A' && elm.hasAttribute('href'); @@ -4499,7 +4499,7 @@ var inlite = (function () { var unlinkSelection = function (editor) { unwrapElements(editor, getSelectedAnchors(editor)); }; - var $_7ris5h19njj661b86 = { unlinkSelection: unlinkSelection }; + var $_148ir119njj68zs7z = { unlinkSelection: unlinkSelection }; var createTableHtml = function (cols, rows) { var x, y, html; @@ -4539,7 +4539,7 @@ var inlite = (function () { var insertBlob = function (editor, base64, blob) { var blobCache, blobInfo; blobCache = editor.editorUpload.blobCache; - blobInfo = blobCache.create($_df4nqg19mjj661b84.uuid('mceu'), blob, base64); + blobInfo = blobCache.create($_d5vju19mjj68zs7v.uuid('mceu'), blob, base64); blobCache.add(blobInfo); editor.insertContent(editor.dom.createHTML('img', { src: blobInfo.blobUri() })); }; @@ -4548,7 +4548,7 @@ var inlite = (function () { }; var unlink = function (editor) { editor.focus(); - $_7ris5h19njj661b86.unlinkSelection(editor); + $_148ir119njj68zs7z.unlinkSelection(editor); collapseSelectionToEnd(editor); }; var changeHref = function (editor, elm, url) { @@ -4567,7 +4567,7 @@ var inlite = (function () { var createLink = function (editor, url) { url.trim().length === 0 ? unlink(editor) : updateOrInsertLink(editor, url); }; - var $_dzp84l19ljj661b81 = { + var $_8q1ai819ljj68zs7p = { insertTable: insertTable, formatBlock: formatBlock, insertBlob: insertBlob, @@ -4578,7 +4578,7 @@ var inlite = (function () { var addHeaderButtons = function (editor) { var formatBlock = function (name) { return function () { - $_dzp84l19ljj661b81.formatBlock(editor, name); + $_8q1ai819ljj68zs7p.formatBlock(editor, name); }; }; for (var i = 1; i < 6; i++) { @@ -4608,10 +4608,10 @@ var inlite = (function () { icon: 'image', tooltip: 'Insert image', onclick: function () { - $_525xoi19kjj661b7y.pickFile().then(function (files) { + $_5jybq219kjj68zs7c.pickFile().then(function (files) { var blob = files[0]; - $_9qkhue19ejj661b7j.blobToBase64(blob).then(function (base64) { - $_dzp84l19ljj661b81.insertBlob(editor, base64, blob); + $_3vn2oe19ejj68zs6a.blobToBase64(blob).then(function (base64) { + $_8q1ai819ljj68zs7p.insertBlob(editor, base64, blob); }); }); } @@ -4621,12 +4621,12 @@ var inlite = (function () { tooltip: 'Insert table', onclick: function () { panel.hide(); - $_dzp84l19ljj661b81.insertTable(editor, 2, 2); + $_8q1ai819ljj68zs7p.insertTable(editor, 2, 2); } }); addHeaderButtons(editor); }; - var $_ftkc1m19djj661b7h = { addToEditor: addToEditor }; + var $_3ofy7619djj68zs64 = { addToEditor: addToEditor }; var getUiContainerDelta$1 = function () { var uiContainer = global$1.container; @@ -4642,7 +4642,7 @@ var inlite = (function () { return Option.none(); } }; - var $_3raxmo19sjj661b8h = { getUiContainerDelta: getUiContainerDelta$1 }; + var $_b7w1ik19sjj68zs8i = { getUiContainerDelta: getUiContainerDelta$1 }; var isDomainLike = function (href) { return /^www\.|\.(com|org|edu|gov|uk|net|ca|de|jp|fr|au|us|ru|ch|it|nl|se|no|es|mil)$/i.test(href.trim()); @@ -4650,7 +4650,7 @@ var inlite = (function () { var isAbsolute = function (href) { return /^https?:\/\//.test(href.trim()); }; - var $_9zbamo19ujj661b8o = { + var $_asiz5w19ujj68zs8v = { isDomainLike: isDomainLike, isAbsolute: isAbsolute }; @@ -4686,13 +4686,13 @@ var inlite = (function () { }); }; var convertLinkToAbsolute = function (editor, href) { - return !$_9zbamo19ujj661b8o.isAbsolute(href) && $_9zbamo19ujj661b8o.isDomainLike(href) ? askAboutPrefix(editor, href) : global$12.resolve(href); + return !$_asiz5w19ujj68zs8v.isAbsolute(href) && $_asiz5w19ujj68zs8v.isDomainLike(href) ? askAboutPrefix(editor, href) : global$12.resolve(href); }; var createQuickLinkForm = function (editor, hide) { var attachState = {}; var unlink = function () { editor.focus(); - $_dzp84l19ljj661b81.unlink(editor); + $_8q1ai819ljj68zs7p.unlink(editor); hide(); }; var onChangeHandler = function (e) { @@ -4748,14 +4748,14 @@ var inlite = (function () { attachState.attach(); attachState = {}; } - $_dzp84l19ljj661b81.createLink(editor, url); + $_8q1ai819ljj68zs7p.createLink(editor, url); }); hide(); }); } }); }; - var $_8k6kmv19tjj661b8l = { createQuickLinkForm: createQuickLinkForm }; + var $_dueiqn19tjj68zs8r = { createQuickLinkForm: createQuickLinkForm }; var getSelectorStateResult = function (itemName, item) { var result = function (selector, handler) { @@ -4787,9 +4787,9 @@ var inlite = (function () { }; }; var itemsToArray$1 = function (items) { - if ($_79zufh18ajj661b25.isArray(items)) { + if ($_1xuzm118ajj68zrwa.isArray(items)) { return items; - } else if ($_79zufh18ajj661b25.isString(items)) { + } else if ($_1xuzm118ajj68zrwa.isString(items)) { return items.split(/[ ,]/); } return []; @@ -4813,7 +4813,7 @@ var inlite = (function () { toolbarItems.push(buttonGroup); } var button = editor.buttons[item]; - if ($_79zufh18ajj661b25.isFunction(button)) { + if ($_1xuzm118ajj68zrwa.isFunction(button)) { button = button(); } button.type = button.type || 'button'; @@ -4830,13 +4830,13 @@ var inlite = (function () { items: toolbarItems }); }; - var $_cwugfz19vjj661b8q = { create: create$2 }; + var $_3nc8a019vjj68zs8x = { create: create$2 }; var create$3 = function () { var panel, currentRect; var createToolbars = function (editor, toolbars) { return global$4.map(toolbars, function (toolbar) { - return $_cwugfz19vjj661b8q.create(editor, toolbar.id, toolbar.items); + return $_3nc8a019vjj68zs8x.create(editor, toolbar.id, toolbar.items); }); }; var hasToolbarItems = function (toolbar) { @@ -4844,9 +4844,9 @@ var inlite = (function () { }; var create = function (editor, toolbars) { var items = createToolbars(editor, toolbars).concat([ - $_cwugfz19vjj661b8q.create(editor, 'text', $_2qnbai187jj661b20.getTextSelectionToolbarItems(editor)), - $_cwugfz19vjj661b8q.create(editor, 'insert', $_2qnbai187jj661b20.getInsertToolbarItems(editor)), - $_8k6kmv19tjj661b8l.createQuickLinkForm(editor, hide) + $_3nc8a019vjj68zs8x.create(editor, 'text', $_66vu6n187jj68zrw1.getTextSelectionToolbarItems(editor)), + $_3nc8a019vjj68zs8x.create(editor, 'insert', $_66vu6n187jj68zrw1.getInsertToolbarItems(editor)), + $_dueiqn19tjj68zs8r.createQuickLinkForm(editor, hide) ]); return global$11.create({ type: 'floatpanel', @@ -4909,16 +4909,16 @@ var inlite = (function () { }; var repositionPanelAt = function (panel, id, editor, targetRect) { var contentAreaRect, panelRect, result, userConstainHandler; - userConstainHandler = $_2qnbai187jj661b20.getPositionHandler(editor); - contentAreaRect = $_2uaism180jj661b1o.getContentAreaRect(editor); + userConstainHandler = $_66vu6n187jj68zrw1.getPositionHandler(editor); + contentAreaRect = $_29arpm180jj68zrvf.getContentAreaRect(editor); panelRect = global$2.DOM.getRect(panel.getEl()); if (id === 'insert') { - result = $_55oluj18bjj661b28.calcInsert(targetRect, contentAreaRect, panelRect); + result = $_dvz3cv18bjj68zrwe.calcInsert(targetRect, contentAreaRect, panelRect); } else { - result = $_55oluj18bjj661b28.calc(targetRect, contentAreaRect, panelRect); + result = $_dvz3cv18bjj68zrwe.calc(targetRect, contentAreaRect, panelRect); } if (result) { - var delta = $_3raxmo19sjj661b8h.getUiContainerDelta().getOr({ + var delta = $_b7w1ik19sjj68zs8i.getUiContainerDelta().getOr({ x: 0, y: 0 }); @@ -4929,7 +4929,7 @@ var inlite = (function () { h: result.rect.h }; currentRect = targetRect; - movePanelTo(panel, $_55oluj18bjj661b28.userConstrain(userConstainHandler, targetRect, contentAreaRect, transposedPanelRect)); + movePanelTo(panel, $_dvz3cv18bjj68zrwe.userConstrain(userConstainHandler, targetRect, contentAreaRect, transposedPanelRect)); togglePositionClass(panel, result.position); return true; } else { @@ -4961,20 +4961,20 @@ var inlite = (function () { showPanel(panel); panel.items().hide(); showToolbar(panel, id); - userConstainHandler = $_2qnbai187jj661b20.getPositionHandler(editor); - contentAreaRect = $_2uaism180jj661b1o.getContentAreaRect(editor); + userConstainHandler = $_66vu6n187jj68zrw1.getPositionHandler(editor); + contentAreaRect = $_29arpm180jj68zrvf.getContentAreaRect(editor); panelRect = global$2.DOM.getRect(panel.getEl()); - result = $_55oluj18bjj661b28.calc(currentRect, contentAreaRect, panelRect); + result = $_dvz3cv18bjj68zrwe.calc(currentRect, contentAreaRect, panelRect); if (result) { panelRect = result.rect; - movePanelTo(panel, $_55oluj18bjj661b28.userConstrain(userConstainHandler, currentRect, contentAreaRect, panelRect)); + movePanelTo(panel, $_dvz3cv18bjj68zrwe.userConstrain(userConstainHandler, currentRect, contentAreaRect, panelRect)); togglePositionClass(panel, result.position); } } }; var show = function (editor, id, targetRect, toolbars) { if (!panel) { - $_6c36t8186jj661b1y.fireBeforeRenderUI(editor); + $_4linal186jj68zrvz.fireBeforeRenderUI(editor); panel = create(editor, toolbars); panel.renderTo().reflow().moveTo(targetRect.x, targetRect.y); editor.nodeChanged(); @@ -6329,7 +6329,7 @@ var inlite = (function () { }; }; - var $_6iax911apjj661bby = { + var $_flodk11apjj68zsf4 = { ATTRIBUTE: Node.ATTRIBUTE_NODE, CDATA_SECTION: Node.CDATA_SECTION_NODE, COMMENT: Node.COMMENT_NODE, @@ -6360,12 +6360,12 @@ var inlite = (function () { }; }; var isComment = function (element) { - return type(element) === $_6iax911apjj661bby.COMMENT || name(element) === '#comment'; + return type(element) === $_flodk11apjj68zsf4.COMMENT || name(element) === '#comment'; }; - var isElement = isType$2($_6iax911apjj661bby.ELEMENT); - var isText = isType$2($_6iax911apjj661bby.TEXT); - var isDocument = isType$2($_6iax911apjj661bby.DOCUMENT); - var $_7pl0xw1aojj661bbx = { + var isElement = isType$2($_flodk11apjj68zsf4.ELEMENT); + var isText = isType$2($_flodk11apjj68zsf4.TEXT); + var isDocument = isType$2($_flodk11apjj68zsf4.DOCUMENT); + var $_ag18mb1aojj68zsf0 = { name: name, type: type, value: value, @@ -6376,7 +6376,7 @@ var inlite = (function () { }; var inBody = function (element) { - var dom = $_7pl0xw1aojj661bbx.isText(element) ? element.dom().parentNode : element.dom(); + var dom = $_ag18mb1aojj68zsf0.isText(element) ? element.dom().parentNode : element.dom(); return dom !== undefined && dom !== null && dom.ownerDocument.body.contains(dom); }; var body = cached(function () { @@ -6388,7 +6388,7 @@ var inlite = (function () { throw 'Body is not available yet'; return Element$$1.fromDom(body); }; - var $_fqmcu01amjj661bbr = { + var $_a3vnt61amjj68zsel = { body: body, getBody: getBody, inBody: inBody @@ -6427,10 +6427,10 @@ var inlite = (function () { } while (cur.isSome()); return r; }; - var $_89ibcw1awjj661bcw = { toArray: toArray }; + var $_4f0ou01awjj68zsgu = { toArray: toArray }; var node = function () { - var f = $_5m68u119gjj661b7p.getOrDie('Node'); + var f = $_5gpl7u19gjj68zs6w.getOrDie('Node'); return f; }; var compareDocumentPosition = function (a, b, match) { @@ -6442,7 +6442,7 @@ var inlite = (function () { var documentPositionContainedBy = function (a, b) { return compareDocumentPosition(a, b, node().DOCUMENT_POSITION_CONTAINED_BY); }; - var $_8qlvvg1ayjj661bdb = { + var $_dz72kl1ayjj68zshm = { documentPositionPreceding: documentPositionPreceding, documentPositionContainedBy: documentPositionContainedBy }; @@ -6482,7 +6482,7 @@ var inlite = (function () { minor: minor }; }; - var $_c9mavb1b2jj661bdq = { + var $_9ljqfw1b2jj68zsi7 = { nu: nu, detect: detect, unknown: unknown @@ -6502,7 +6502,7 @@ var inlite = (function () { var unknown$1 = function () { return nu$1({ current: undefined, - version: $_c9mavb1b2jj661bdq.unknown() + version: $_9ljqfw1b2jj68zsi7.unknown() }); }; var nu$1 = function (info) { @@ -6519,7 +6519,7 @@ var inlite = (function () { isSafari: isBrowser(safari, current) }; }; - var $_5hzxjv1b1jj661bdl = { + var $_3z71rx1b1jj68zshz = { unknown: unknown$1, nu: nu$1, edge: constant(edge), @@ -6545,7 +6545,7 @@ var inlite = (function () { var unknown$2 = function () { return nu$2({ current: undefined, - version: $_c9mavb1b2jj661bdq.unknown() + version: $_9ljqfw1b2jj68zsi7.unknown() }); }; var nu$2 = function (info) { @@ -6563,7 +6563,7 @@ var inlite = (function () { isFreeBSD: isOS(freebsd, current) }; }; - var $_u9x1l1b3jj661bds = { + var $_d82bt1b3jj68zsia = { unknown: unknown$2, nu: nu$2, windows: constant(windows$1), @@ -6604,7 +6604,7 @@ var inlite = (function () { }; var detectBrowser = function (browsers, userAgent) { return detect$1(browsers, userAgent).map(function (browser) { - var version = $_c9mavb1b2jj661bdq.detect(browser.versionRegexes, userAgent); + var version = $_9ljqfw1b2jj68zsi7.detect(browser.versionRegexes, userAgent); return { current: browser.name, version: version @@ -6613,14 +6613,14 @@ var inlite = (function () { }; var detectOs = function (oses, userAgent) { return detect$1(oses, userAgent).map(function (os) { - var version = $_c9mavb1b2jj661bdq.detect(os.versionRegexes, userAgent); + var version = $_9ljqfw1b2jj68zsi7.detect(os.versionRegexes, userAgent); return { current: os.name, version: version }; }); }; - var $_dmvzjq1b5jj661be0 = { + var $_1tqo6v1b5jj68zsir = { detectBrowser: detectBrowser, detectOs: detectOs }; @@ -6731,16 +6731,16 @@ var inlite = (function () { versionRegexes: [] } ]; - var $_2lkt2u1b6jj661be5 = { + var $_c08ytj1b6jj68zsj3 = { browsers: constant(browsers), oses: constant(oses) }; var detect$2 = function (userAgent) { - var browsers = $_2lkt2u1b6jj661be5.browsers(); - var oses = $_2lkt2u1b6jj661be5.oses(); - var browser = $_dmvzjq1b5jj661be0.detectBrowser(browsers, userAgent).fold($_5hzxjv1b1jj661bdl.unknown, $_5hzxjv1b1jj661bdl.nu); - var os = $_dmvzjq1b5jj661be0.detectOs(oses, userAgent).fold($_u9x1l1b3jj661bds.unknown, $_u9x1l1b3jj661bds.nu); + var browsers = $_c08ytj1b6jj68zsj3.browsers(); + var oses = $_c08ytj1b6jj68zsj3.oses(); + var browser = $_1tqo6v1b5jj68zsir.detectBrowser(browsers, userAgent).fold($_3z71rx1b1jj68zshz.unknown, $_3z71rx1b1jj68zshz.nu); + var os = $_1tqo6v1b5jj68zsir.detectOs(oses, userAgent).fold($_d82bt1b3jj68zsia.unknown, $_d82bt1b3jj68zsia.nu); var deviceType = DeviceType(os, browser, userAgent); return { browser: browser, @@ -6748,16 +6748,16 @@ var inlite = (function () { deviceType: deviceType }; }; - var $_2zi0qa1b0jj661bdk = { detect: detect$2 }; + var $_1c7zp01b0jj68zshw = { detect: detect$2 }; var detect$3 = cached(function () { var userAgent = navigator.userAgent; - return $_2zi0qa1b0jj661bdk.detect(userAgent); + return $_1c7zp01b0jj68zshw.detect(userAgent); }); - var $_fwuu461azjj661bdg = { detect: detect$3 }; + var $_66dm2k1azjj68zsho = { detect: detect$3 }; - var ELEMENT = $_6iax911apjj661bby.ELEMENT; - var DOCUMENT = $_6iax911apjj661bby.DOCUMENT; + var ELEMENT = $_flodk11apjj68zsf4.ELEMENT; + var DOCUMENT = $_flodk11apjj68zsf4.DOCUMENT; var is = function (element, selector) { var elem = element.dom(); if (elem.nodeType !== ELEMENT) @@ -6784,7 +6784,7 @@ var inlite = (function () { var base = scope === undefined ? document : scope.dom(); return bypassSelector(base) ? Option.none() : Option.from(base.querySelector(selector)).map(Element$$1.fromDom); }; - var $_et6lhy1bajj661bei = { + var $_alcu9k1bajj68zsk0 = { all: all, is: is, one: one @@ -6804,16 +6804,16 @@ var inlite = (function () { return d1 === d2 ? false : d1.contains(d2); }; var ieContains = function (e1, e2) { - return $_8qlvvg1ayjj661bdb.documentPositionContainedBy(e1.dom(), e2.dom()); + return $_dz72kl1ayjj68zshm.documentPositionContainedBy(e1.dom(), e2.dom()); }; - var browser = $_fwuu461azjj661bdg.detect().browser; + var browser = $_66dm2k1azjj68zsho.detect().browser; var contains$2 = browser.isIE() ? ieContains : regularContains; - var $_9fioun1axjj661bcx = { + var $_7ea2xp1axjj68zsgx = { eq: eq, isEqualNode: isEqualNode, member: member, contains: contains$2, - is: $_et6lhy1bajj661bei.is + is: $_alcu9k1bajj68zsk0.is }; var owner = function (element) { @@ -6835,7 +6835,7 @@ var inlite = (function () { return parent$1(element).bind(function (p) { var kin = children(p); return findIndex(kin, function (elem) { - return $_9fioun1axjj661bcx.eq(element, elem); + return $_7ea2xp1axjj68zsgx.eq(element, elem); }); }); }; @@ -6857,7 +6857,7 @@ var inlite = (function () { var siblings = function (element) { var filterSelf = function (elements) { return filter(elements, function (x) { - return !$_9fioun1axjj661bcx.eq(element, x); + return !$_7ea2xp1axjj68zsgx.eq(element, x); }); }; return parent$1(element).map(children).map(filterSelf).getOr([]); @@ -6875,10 +6875,10 @@ var inlite = (function () { return Option.from(dom.nextSibling).map(Element$$1.fromDom); }; var prevSiblings = function (element) { - return reverse($_89ibcw1awjj661bcw.toArray(element, prevSibling)); + return reverse($_4f0ou01awjj68zsgu.toArray(element, prevSibling)); }; var nextSiblings = function (element) { - return $_89ibcw1awjj661bcw.toArray(element, nextSibling); + return $_4f0ou01awjj68zsgu.toArray(element, nextSibling); }; var children = function (element) { var dom = element.dom(); @@ -6905,7 +6905,7 @@ var inlite = (function () { var cs = children(element); return cs.length > 0 && offset < cs.length ? spot(cs[offset], 0) : spot(element, offset); }; - var $_dexahn1aqjj661bc2 = { + var $_7cznj51aqjj68zsfb = { owner: owner, defaultView: defaultView, documentElement: documentElement, @@ -6928,20 +6928,20 @@ var inlite = (function () { }; var all$1 = function (predicate) { - return descendants($_fqmcu01amjj661bbr.body(), predicate); + return descendants($_a3vnt61amjj68zsel.body(), predicate); }; var ancestors = function (scope, predicate, isRoot) { - return filter($_dexahn1aqjj661bc2.parents(scope, isRoot), predicate); + return filter($_7cznj51aqjj68zsfb.parents(scope, isRoot), predicate); }; var siblings$1 = function (scope, predicate) { - return filter($_dexahn1aqjj661bc2.siblings(scope), predicate); + return filter($_7cznj51aqjj68zsfb.siblings(scope), predicate); }; var children$1 = function (scope, predicate) { - return filter($_dexahn1aqjj661bc2.children(scope), predicate); + return filter($_7cznj51aqjj68zsfb.children(scope), predicate); }; var descendants = function (scope, predicate) { var result = []; - each($_dexahn1aqjj661bc2.children(scope), function (x) { + each($_7cznj51aqjj68zsfb.children(scope), function (x) { if (predicate(x)) { result = result.concat([x]); } @@ -6949,7 +6949,7 @@ var inlite = (function () { }); return result; }; - var $_1c7n8x1aljj661bbn = { + var $_aa2nlp1aljj68zse4 = { all: all$1, ancestors: ancestors, siblings: siblings$1, @@ -6958,27 +6958,27 @@ var inlite = (function () { }; var all$2 = function (selector) { - return $_et6lhy1bajj661bei.all(selector); + return $_alcu9k1bajj68zsk0.all(selector); }; var ancestors$1 = function (scope, selector, isRoot) { - return $_1c7n8x1aljj661bbn.ancestors(scope, function (e) { - return $_et6lhy1bajj661bei.is(e, selector); + return $_aa2nlp1aljj68zse4.ancestors(scope, function (e) { + return $_alcu9k1bajj68zsk0.is(e, selector); }, isRoot); }; var siblings$2 = function (scope, selector) { - return $_1c7n8x1aljj661bbn.siblings(scope, function (e) { - return $_et6lhy1bajj661bei.is(e, selector); + return $_aa2nlp1aljj68zse4.siblings(scope, function (e) { + return $_alcu9k1bajj68zsk0.is(e, selector); }); }; var children$2 = function (scope, selector) { - return $_1c7n8x1aljj661bbn.children(scope, function (e) { - return $_et6lhy1bajj661bei.is(e, selector); + return $_aa2nlp1aljj68zse4.children(scope, function (e) { + return $_alcu9k1bajj68zsk0.is(e, selector); }); }; var descendants$1 = function (scope, selector) { - return $_et6lhy1bajj661bei.all(selector, scope); + return $_alcu9k1bajj68zsk0.all(selector, scope); }; - var $_5j8nom1akjj661bbm = { + var $_8l4n01akjj68zse2 = { all: all$2, ancestors: ancestors$1, siblings: siblings$2, @@ -7021,7 +7021,7 @@ var inlite = (function () { return false; }; var select = function (selector, root) { - return map($_5j8nom1akjj661bbm.descendants(Element$$1.fromDom(root), selector), function (element) { + return map($_8l4n01akjj68zse2.descendants(Element$$1.fromDom(root), selector), function (element) { return element.dom(); }); }; @@ -7078,7 +7078,7 @@ var inlite = (function () { var elms = getTargetElements(elm); return filter(getHeaderTargets(elms).concat(getAnchorTargets(elms)), hasTitle); }; - var $_g7p7c21ahjj661bar = { find: find$3 }; + var $_zz6jv1ahjj68zscj = { find: find$3 }; var getActiveEditor = function () { return window.tinymce ? window.tinymce.activeEditor : global$5.activeEditor; @@ -7198,7 +7198,7 @@ var inlite = (function () { }; var setupAutoCompleteHandler = function (ctrl, editorSettings, bodyElm, fileType) { var autocomplete = function (term) { - var linkTargets = $_g7p7c21ahjj661bar.find(bodyElm); + var linkTargets = $_zz6jv1ahjj68zscj.find(bodyElm); var menuItems = createMenuItems(term, linkTargets, fileType, editorSettings); ctrl.showAutoComplete(menuItems, term); }; @@ -7529,7 +7529,7 @@ var inlite = (function () { } var first$1 = function (predicate) { - return descendant($_fqmcu01amjj661bbr.body(), predicate); + return descendant($_a3vnt61amjj68zsel.body(), predicate); }; var ancestor = function (scope, predicate, isRoot) { var element = scope.dom(); @@ -7555,7 +7555,7 @@ var inlite = (function () { if (!element.parentNode) return Option.none(); return child$1(Element$$1.fromDom(element.parentNode), function (x) { - return !$_9fioun1axjj661bcx.eq(scope, x) && predicate(x); + return !$_7ea2xp1axjj68zsgx.eq(scope, x) && predicate(x); }); }; var child$1 = function (scope, predicate) { @@ -7575,7 +7575,7 @@ var inlite = (function () { }; return descend(scope.dom()); }; - var $_98djc91bgjj661bfc = { + var $_d1orij1bgjj68zsld = { first: first$1, ancestor: ancestor, closest: closest, @@ -7585,30 +7585,30 @@ var inlite = (function () { }; var first$2 = function (selector) { - return $_et6lhy1bajj661bei.one(selector); + return $_alcu9k1bajj68zsk0.one(selector); }; var ancestor$1 = function (scope, selector, isRoot) { - return $_98djc91bgjj661bfc.ancestor(scope, function (e) { - return $_et6lhy1bajj661bei.is(e, selector); + return $_d1orij1bgjj68zsld.ancestor(scope, function (e) { + return $_alcu9k1bajj68zsk0.is(e, selector); }, isRoot); }; var sibling$1 = function (scope, selector) { - return $_98djc91bgjj661bfc.sibling(scope, function (e) { - return $_et6lhy1bajj661bei.is(e, selector); + return $_d1orij1bgjj68zsld.sibling(scope, function (e) { + return $_alcu9k1bajj68zsk0.is(e, selector); }); }; var child$2 = function (scope, selector) { - return $_98djc91bgjj661bfc.child(scope, function (e) { - return $_et6lhy1bajj661bei.is(e, selector); + return $_d1orij1bgjj68zsld.child(scope, function (e) { + return $_alcu9k1bajj68zsk0.is(e, selector); }); }; var descendant$1 = function (scope, selector) { - return $_et6lhy1bajj661bei.one(selector, scope); + return $_alcu9k1bajj68zsk0.one(selector, scope); }; var closest$1 = function (scope, selector, isRoot) { - return ClosestOrAncestor($_et6lhy1bajj661bei.is, ancestor$1, scope, selector, isRoot); + return ClosestOrAncestor($_alcu9k1bajj68zsk0.is, ancestor$1, scope, selector, isRoot); }; - var $_cgt0731bfjj661bfa = { + var $_3bliff1bfjj68zsla = { first: first$2, ancestor: ancestor$1, sibling: sibling$1, @@ -7730,7 +7730,7 @@ var inlite = (function () { }); }); }; - var $_6y7fmz1bijj661bg2 = { register: register }; + var $_crfv271bijj68zsmq = { register: register }; var getFirstFont = function (fontFamily) { return fontFamily ? fontFamily.split(',')[0] : ''; @@ -7804,7 +7804,7 @@ var inlite = (function () { var register$1 = function (editor) { registerButtons(editor); }; - var $_fuj0rm1bkjj661bg6 = { register: register$1 }; + var $_2ha4c51bkjj68zsmz = { register: register$1 }; var round = function (number, precision) { var factor = Math.pow(10, precision); @@ -7883,7 +7883,7 @@ var inlite = (function () { var register$2 = function (editor) { registerButtons$1(editor); }; - var $_44e54n1bljj661bg9 = { register: register$2 }; + var $_9wdhgg1bljj68zsn6 = { register: register$2 }; var hideMenuObjects = function (editor, menu) { var count = menu.length; @@ -8145,7 +8145,7 @@ var inlite = (function () { registerMenuItems(editor, formatMenu); registerButtons$2(editor, formatMenu); }; - var $_65273o1bmjj661bgd = { register: register$3 }; + var $_6qfkmw1bmjj68zsne = { register: register$3 }; var defaultBlocks = 'Paragraph=p;' + 'Heading 1=h1;' + 'Heading 2=h2;' + 'Heading 3=h3;' + 'Heading 4=h4;' + 'Heading 5=h5;' + 'Heading 6=h6;' + 'Preformatted=pre'; var createFormats$1 = function (formats) { @@ -8231,7 +8231,7 @@ var inlite = (function () { }); editor.addButton('formatselect', lazyFormatSelectBoxItems(editor, blocks)); }; - var $_76mhli1bnjj661bgi = { register: register$4 }; + var $_9ocvbd1bnjj68zsnv = { register: register$4 }; var createCustomMenuItems = function (editor, names) { var items, nameList; @@ -8302,7 +8302,7 @@ var inlite = (function () { var register$5 = function (editor) { registerButtons$3(editor); }; - var $_it5xw1bojj661bgl = { register: register$5 }; + var $_5a76fc1bojj68zso2 = { register: register$5 }; var registerFormatButtons = function (editor) { global$4.each({ @@ -8477,7 +8477,7 @@ var inlite = (function () { registerButtons$4(editor); registerMenuItems$1(editor); }; - var $_d0dgeb1bpjj661bgq = { register: register$6 }; + var $_ah4dm41bpjj68zsoc = { register: register$6 }; var toggleUndoRedoState = function (editor, type) { return function () { @@ -8524,7 +8524,7 @@ var inlite = (function () { registerMenuItems$2(editor); registerButtons$5(editor); }; - var $_39l1fl1bqjj661bgt = { register: register$7 }; + var $_beyizp1bqjj68zsoj = { register: register$7 }; var toggleVisualAidState = function (editor) { return function () { @@ -8546,7 +8546,7 @@ var inlite = (function () { var register$8 = function (editor) { registerMenuItems$3(editor); }; - var $_e1x85z1brjj661bgv = { register: register$8 }; + var $_8h0cc61brjj68zson = { register: register$8 }; var setupEnvironment = function () { Widget.tooltips = !global$1.iOS; @@ -8556,7 +8556,7 @@ var inlite = (function () { }; var setupUiContainer = function (editor) { if (editor.settings.ui_container) { - global$1.container = $_cgt0731bfjj661bfa.descendant(Element$$1.fromDom(document.body), editor.settings.ui_container).fold(constant(null), function (elm) { + global$1.container = $_3bliff1bfjj68zsla.descendant(Element$$1.fromDom(document.body), editor.settings.ui_container).fold(constant(null), function (elm) { return elm.dom(); }); } @@ -8576,17 +8576,17 @@ var inlite = (function () { setupHideFloatPanels(editor); setupUiContainer(editor); setupEnvironment(); - $_76mhli1bnjj661bgi.register(editor); - $_6y7fmz1bijj661bg2.register(editor); - $_d0dgeb1bpjj661bgq.register(editor); - $_39l1fl1bqjj661bgt.register(editor); - $_44e54n1bljj661bg9.register(editor); - $_fuj0rm1bkjj661bg6.register(editor); - $_65273o1bmjj661bgd.register(editor); - $_e1x85z1brjj661bgv.register(editor); - $_it5xw1bojj661bgl.register(editor); - }; - var $_fx6zg81bejj661bf2 = { setup: setup }; + $_9ocvbd1bnjj68zsnv.register(editor); + $_crfv271bijj68zsmq.register(editor); + $_ah4dm41bpjj68zsoc.register(editor); + $_beyizp1bqjj68zsoj.register(editor); + $_9wdhgg1bljj68zsn6.register(editor); + $_2ha4c51bkjj68zsmz.register(editor); + $_6qfkmw1bmjj68zsne.register(editor); + $_8h0cc61brjj68zson.register(editor); + $_5a76fc1bojj68zso2.register(editor); + }; + var $_gevjnq1bejj68zskx = { setup: setup }; var GridLayout = AbsoluteLayout.extend({ recalc: function (container) { @@ -8935,7 +8935,6 @@ var inlite = (function () { menu.animate = true; } if (!menu.renderTo) { - self$$1.menu = global$11.create(menu).parent(self$$1).renderTo(); var elm = self$$1.getRoot().modal ? self$$1.getRoot().getEl() : undefined; self$$1.menu = global$11.create(menu).parent(self$$1).renderTo(elm); } else { @@ -10141,16 +10140,16 @@ var inlite = (function () { return { Selector: Selector, Collection: Collection$2, - ReflowQueue: $_elel2a18wjj661b5b, + ReflowQueue: $_6xudun18wjj68zs1s, Control: Control$1, Factory: global$11, KeyboardNavigation: KeyboardNavigation, Container: Container, DragHelper: DragHelper, - Scrollable: $_dclfif19ajj661b72, + Scrollable: $_1hikkd19ajj68zs5m, Panel: Panel, - Movable: $_cufsqy18yjj661b5i, - Resizable: $_8bbzbe19bjj661b7a, + Movable: $_eciu1x18yjj68zs27, + Resizable: $_9pqcd619bjj68zs5s, FloatPanel: FloatPanel, Window: Window$$1, MessageBox: MessageBox, @@ -10177,7 +10176,7 @@ var inlite = (function () { FitLayout: FitLayout, FlexLayout: FlexLayout, FlowLayout: FlowLayout, - FormatControls: $_fx6zg81bejj661bf2, + FormatControls: $_gevjnq1bejj68zskx, GridLayout: GridLayout, Iframe: Iframe, InfoBox: InfoBox, @@ -10225,9 +10224,9 @@ var inlite = (function () { Api.appendTo(window.tinymce ? window.tinymce : {}); global.add('inlite', function (editor) { var panel = create$3(); - $_fx6zg81bejj661bf2.setup(editor); - $_ftkc1m19djj661b7h.addToEditor(editor, panel); - return $_ajck3u17sjj661b14.get(editor, panel); + $_gevjnq1bejj68zskx.setup(editor); + $_3ofy7619djj68zs64.addToEditor(editor, panel); + return $_8rta2817sjj68zrun.get(editor, panel); }); function Theme () { } diff --git a/js/tinymce/themes/inlite/theme.min.js b/js/tinymce/themes/inlite/theme.min.js index c52b59c7838..9b8c4ed5d36 100644 --- a/js/tinymce/themes/inlite/theme.min.js +++ b/js/tinymce/themes/inlite/theme.min.js @@ -1 +1 @@ -!function(){"use strict";var u,t,e,n,i,r,o=tinymce.util.Tools.resolve("tinymce.ThemeManager"),h=tinymce.util.Tools.resolve("tinymce.Env"),v=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),c=tinymce.util.Tools.resolve("tinymce.util.Delay"),s=function(t){return t.reduce(function(t,e){return Array.isArray(e)?t.concat(s(e)):t.concat(e)},[])},a={flatten:s},l=function(t,e){for(var n=0;n+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,Vt=/^\s*|\s*$/g,qt=Ot.extend({init:function(t){var o=this.match;function s(t,e,n){var i;function r(t){t&&e.push(t)}return r(function(e){if(e)return e=e.toLowerCase(),function(t){return"*"===e||t.type===e}}((i=Ft.exec(t.replace(Vt,"")))[1])),r(function(e){if(e)return function(t){return t._name===e}}(i[2])),r(function(n){if(n)return n=n.split("."),function(t){for(var e=n.length;e--;)if(!t.classes.contains(n[e]))return!1;return!0}}(i[3])),r(function(n,i,r){if(n)return function(t){var e=t[n]?t[n]():"";return i?"="===i?e===r:"*="===i?0<=e.indexOf(r):"~="===i?0<=(" "+e+" ").indexOf(" "+r+" "):"!="===i?e!==r:"^="===i?0===e.indexOf(r):"$="===i&&e.substr(e.length-r.length)===r:!!r}}(i[4],i[5],i[6])),r(function(i){var e;if(i)return(i=/(?:not\((.+)\))|(.+)/i.exec(i))[1]?(e=a(i[1],[]),function(t){return!o(t,e)}):(i=i[2],function(t,e,n){return"first"===i?0===e:"last"===i?e===n-1:"even"===i?e%2==0:"odd"===i?e%2==1:!!t[i]&&t[i]()})}(i[7])),e.pseudo=!!i[7],e.direct=n,e}function a(t,e){var n,i,r,o=[];do{if(Ut.exec(""),(i=Ut.exec(t))&&(t=i[3],o.push(i[1]),i[2])){n=i[3];break}}while(i);for(n&&a(n,e),t=[],r=0;r"!==o[r]&&t.push(s(o[r],[],">"===o[r-1]));return e.push(t),e}this._selectors=a(t,[])},match:function(t,e){var n,i,r,o,s,a,l,u,c,d,f,h,m;for(n=0,i=(e=e||this._selectors).length;na.maxW?a.maxW:n,a.w=n,a.innerW=n-i),(n=t.h)!==undefined&&(n=(n=na.maxH?a.maxH:n,a.h=n,a.innerH=n-r),(n=t.innerW)!==undefined&&(n=(n=na.maxW-i?a.maxW-i:n,a.innerW=n,a.w=n+i),(n=t.innerH)!==undefined&&(n=(n=na.maxH-r?a.maxH-r:n,a.innerH=n,a.h=n+r),t.contentW!==undefined&&(a.contentW=t.contentW),t.contentH!==undefined&&(a.contentH=t.contentH),(e=s._lastLayoutRect).x===a.x&&e.y===a.y&&e.w===a.w&&e.h===a.h||((o=Zt.repaintControls)&&o.map&&!o.map[s._id]&&(o.push(s),o.map[s._id]=!0),e.x=a.x,e.y=a.y,e.w=a.w,e.h=a.h),s):a},repaint:function(){var t,e,n,i,r,o,s,a,l,u,c=this;l=document.createRange?function(t){return t}:Math.round,t=c.getEl().style,i=c._layoutRect,a=c._lastRepaintRect||{},o=(r=c.borderBox).left+r.right,s=r.top+r.bottom,i.x!==a.x&&(t.left=l(i.x)+"px",a.x=i.x),i.y!==a.y&&(t.top=l(i.y)+"px",a.y=i.y),i.w!==a.w&&(u=l(i.w-o),t.width=(0<=u?u:0)+"px",a.w=i.w),i.h!==a.h&&(u=l(i.h-s),t.height=(0<=u?u:0)+"px",a.h=i.h),c._hasBody&&i.innerW!==a.innerW&&(u=l(i.innerW),(n=c.getEl("body"))&&((e=n.style).width=(0<=u?u:0)+"px"),a.innerW=i.innerW),c._hasBody&&i.innerH!==a.innerH&&(u=l(i.innerH),(n=n||c.getEl("body"))&&((e=e||n.style).height=(0<=u?u:0)+"px"),a.innerH=i.innerH),c._lastRepaintRect=a,c.fire("repaint",{},!1)},updateLayoutRect:function(){var t=this;t.parent()._lastRect=null,St.css(t.getEl(),{width:"",height:""}),t._layoutRect=t._lastRepaintRect=t._lastLayoutRect=null,t.initLayoutRect()},on:function(t,e){var n,i,r,o=this;return le(o).on(t,"string"!=typeof(n=e)?n:function(t){return i||o.parentsAndSelf().each(function(t){var e=t.settings.callbacks;if(e&&(i=e[n]))return r=t,!1}),i?i.call(r,t):(t.action=n,void this.fire("execute",t))}),o},off:function(t,e){return le(this).off(t,e),this},fire:function(t,e,n){if((e=e||{}).control||(e.control=this),e=le(this).fire(t,e),!1!==n&&this.parent)for(var i=this.parent();i&&!e.isPropagationStopped();)i.fire(t,e,!1),i=i.parent();return e},hasEventListeners:function(t){return le(this).has(t)},parents:function(t){var e,n=new Xt;for(e=this.parent();e;e=e.parent())n.add(e);return t&&(n=n.filter(t)),n},parentsAndSelf:function(t){return new Xt(this).add(this.parents(t))},next:function(){var t=this.parent().items();return t[t.indexOf(this)+1]},prev:function(){var t=this.parent().items();return t[t.indexOf(this)-1]},innerHtml:function(t){return this.$el.html(t),this},getEl:function(t){var e=t?this._id+"-"+t:this._id;return this._elmCache[e]||(this._elmCache[e]=Nt("#"+e)[0]),this._elmCache[e]},show:function(){return this.visible(!0)},hide:function(){return this.visible(!1)},focus:function(){try{this.getEl().focus()}catch(t){}return this},blur:function(){return this.getEl().blur(),this},aria:function(t,e){var n=this,i=n.getEl(n.ariaTarget);return void 0===e?n._aria[t]:(n._aria[t]=e,n.state.get("rendered")&&i.setAttribute("role"===t?t:"aria-"+t,e),n)},encode:function(t,e){return!1!==e&&(t=this.translate(t)),(t||"").replace(/[&<>"]/g,function(t){return"&#"+t.charCodeAt(0)+";"})},translate:function(t){return Zt.translate?Zt.translate(t):t},before:function(t){var e=this.parent();return e&&e.insert(t,e.items().indexOf(this),!0),this},after:function(t){var e=this.parent();return e&&e.insert(t,e.items().indexOf(this)),this},remove:function(){var e,t,n=this,i=n.getEl(),r=n.parent();if(n.items){var o=n.items().toArray();for(t=o.length;t--;)o[t].remove()}r&&r.items&&(e=[],r.items().each(function(t){t!==n&&e.push(t)}),r.items().set(e),r._lastRect=null),n._eventsRoot&&n._eventsRoot===n&&Nt(i).off();var s=n.getRoot().controlIdLookup;return s&&delete s[n._id],i&&i.parentNode&&i.parentNode.removeChild(i),n.state.set("rendered",!1),n.state.destroy(),n.fire("remove"),n},renderBefore:function(t){return Nt(t).before(this.renderHtml()),this.postRender(),this},renderTo:function(t){return Nt(t||this.getContainerElm()).append(this.renderHtml()),this.postRender(),this},preRender:function(){},render:function(){},renderHtml:function(){return'
'},postRender:function(){var t,e,n,i,r,o=this,s=o.settings;for(i in o.$el=Nt(o.getEl()),o.state.set("rendered",!0),s)0===i.indexOf("on")&&o.on(i.substr(2),s[i]);if(o._eventsRoot){for(n=o.parent();!r&&n;n=n.parent())r=n._eventsRoot;if(r)for(i in r._nativeEvents)o._nativeEvents[i]=!0}ue(o),s.style&&(t=o.getEl())&&(t.setAttribute("style",s.style),t.style.cssText=s.style),o.settings.border&&(e=o.borderBox,o.$el.css({"border-top-width":e.top,"border-right-width":e.right,"border-bottom-width":e.bottom,"border-left-width":e.left}));var a=o.getRoot();for(var l in a.controlIdLookup||(a.controlIdLookup={}),(a.controlIdLookup[o._id]=o)._aria)o.aria(l,o._aria[l]);!1===o.state.get("visible")&&(o.getEl().style.display="none"),o.bindStates(),o.state.on("change:visible",function(t){var e,n=t.value;o.state.get("rendered")&&(o.getEl().style.display=!1===n?"none":"",o.getEl().getBoundingClientRect()),(e=o.parent())&&(e._lastRect=null),o.fire(n?"show":"hide"),ee.add(o)}),o.fire("postrender",{},!1)},bindStates:function(){},scrollIntoView:function(t){var e,n,i,r,o,s,a=this.getEl(),l=a.parentNode,u=function(t,e){var n,i,r=t;for(n=i=0;r&&r!==e&&r.nodeType;)n+=r.offsetLeft||0,i+=r.offsetTop||0,r=r.offsetParent;return{x:n,y:i}}(a,l);return e=u.x,n=u.y,i=a.offsetWidth,r=a.offsetHeight,o=l.clientWidth,s=l.clientHeight,"end"===t?(e-=o-i,n-=s-r):"center"===t&&(e-=o/2-i/2,n-=s/2-r/2),l.scrollLeft=e,l.scrollTop=n,this},getRoot:function(){for(var t,e=this,n=[];e;){if(e.rootControl){t=e.rootControl;break}n.push(e),e=(t=e).parent()}t||(t=this);for(var i=n.length;i--;)n[i].rootControl=t;return t},reflow:function(){ee.remove(this);var t=this.parent();return t&&t._layout&&!t._layout.isNative()&&t.reflow(),this}};function le(n){return n._eventDispatcher||(n._eventDispatcher=new Dt({scope:n,toggleEvent:function(t,e){e&&Dt.isNative(t)&&(n._nativeEvents||(n._nativeEvents={}),n._nativeEvents[t]=!0,n.state.get("rendered")&&ue(n))}})),n._eventDispatcher}function ue(a){var t,e,n,l,i,r;function o(t){var e=a.getParentCtrl(t.target);e&&e.fire(t.type,t)}function s(){var t=l._lastHoverCtrl;t&&(t.fire("mouseleave",{target:t.getEl()}),t.parents().each(function(t){t.fire("mouseleave",{target:t.getEl()})}),l._lastHoverCtrl=null)}function u(t){var e,n,i,r=a.getParentCtrl(t.target),o=l._lastHoverCtrl,s=0;if(r!==o){if((n=(l._lastHoverCtrl=r).parents().toArray().reverse()).push(r),o){for((i=o.parents().toArray().reverse()).push(o),s=0;sn.x&&r.x+r.wn.y&&r.y+r.h
'+t.encode(t.state.get("text"))+"
"},bindStates:function(){var e=this;return e.state.on("change:text",function(t){e.getEl().lastChild.innerHTML=e.encode(t.value)}),e._super()},repaint:function(){var t,e;t=this.getEl().style,e=this._layoutRect,t.left=e.x+"px",t.top=e.y+"px",t.zIndex=131070}}),be=ce.extend({init:function(i){var r=this;r._super(i),i=r.settings,r.canFocus=!0,i.tooltip&&!1!==be.tooltips&&(r.on("mouseenter",function(t){var e=r.tooltip().moveTo(-65535);if(t.control===r){var n=e.text(i.tooltip).show().testMoveRel(r.getEl(),["bc-tc","bc-tl","bc-tr"]);e.classes.toggle("tooltip-n","bc-tc"===n),e.classes.toggle("tooltip-nw","bc-tl"===n),e.classes.toggle("tooltip-ne","bc-tr"===n),e.moveRel(r.getEl(),n)}else e.hide()}),r.on("mouseleave mousedown click",function(){r.tooltip().remove(),r._tooltip=null})),r.aria("label",i.ariaLabel||i.tooltip)},tooltip:function(){return this._tooltip||(this._tooltip=new ve({type:"tooltip"}),ie.inheritUiContainer(this,this._tooltip),this._tooltip.renderTo()),this._tooltip},postRender:function(){var t=this,e=t.settings;t._super(),t.parent()||!e.width&&!e.height||(t.initLayoutRect(),t.repaint()),e.autofocus&&t.focus()},bindStates:function(){var e=this;function n(t){e.aria("disabled",t),e.classes.toggle("disabled",t)}function i(t){e.aria("pressed",t),e.classes.toggle("active",t)}return e.state.on("change:disabled",function(t){n(t.value)}),e.state.on("change:active",function(t){i(t.value)}),e.state.get("disabled")&&n(!0),e.state.get("active")&&i(!0),e._super()},remove:function(){this._super(),this._tooltip&&(this._tooltip.remove(),this._tooltip=null)}}),ye=be.extend({Defaults:{value:0},init:function(t){this._super(t),this.classes.add("progress"),this.settings.filter||(this.settings.filter=function(t){return Math.round(t)})},renderHtml:function(){var t=this._id,e=this.classPrefix;return'
0%
'},postRender:function(){return this._super(),this.value(this.settings.value),this},bindStates:function(){var e=this;function n(t){t=e.settings.filter(t),e.getEl().lastChild.innerHTML=t+"%",e.getEl().firstChild.firstChild.style.width=t+"%"}return e.state.on("change:value",function(t){n(t.value)}),n(e.state.get("value")),e._super()}}),xe=function(t,e){t.getEl().lastChild.textContent=e+(t.progressBar?" "+t.progressBar.value()+"%":"")},we=ce.extend({Mixins:[pe],Defaults:{classes:"widget notification"},init:function(t){var e=this;e._super(t),e.maxWidth=t.maxWidth,t.text&&e.text(t.text),t.icon&&(e.icon=t.icon),t.color&&(e.color=t.color),t.type&&e.classes.add("notification-"+t.type),t.timeout&&(t.timeout<0||0'),t=' style="max-width: '+e.maxWidth+"px;"+(e.color?"background-color: "+e.color+';"':'"'),e.closeButton&&(r=''),e.progressBar&&(o=e.progressBar.renderHtml()),''},postRender:function(){var t=this;return c.setTimeout(function(){t.$el.addClass(t.classPrefix+"in"),xe(t,t.state.get("text"))},100),t._super()},bindStates:function(){var e=this;return e.state.on("change:text",function(t){e.getEl().firstChild.innerHTML=t.value,xe(e,t.value)}),e.progressBar&&(e.progressBar.bindStates(),e.progressBar.state.on("change:value",function(t){xe(e,e.state.get("text"))})),e._super()},close:function(){return this.fire("close").isDefaultPrevented()||this.remove(),this},repaint:function(){var t,e;t=this.getEl().style,e=this._layoutRect,t.left=e.x+"px",t.top=e.y+"px",t.zIndex=65534}});function _e(o){var s=function(t){return t.inline?t.getElement():t.getContentAreaContainer()};return{open:function(t,e){var n,i=R.extend(t,{maxWidth:(n=s(o),St.getSize(n).width)}),r=new we(i);return 0<(r.args=i).timeout&&(r.timer=setTimeout(function(){r.close(),e()},i.timeout)),r.on("close",function(){e()}),r.renderTo(),r},close:function(t){t.close()},reposition:function(t){Rt(t,function(t){t.moveTo(0,0)}),function(n){if(0").css({position:"absolute",top:0,left:0,width:f.width,height:f.height,zIndex:2147483647,opacity:1e-4,cursor:d}).appendTo(x.body),Nt(x).on("mousemove touchmove",v).on("mouseup touchend",p),h.start(t)},v=function(t){if(Re(t),t.button!==g)return p(t);t.deltaX=t.screenX-b,t.deltaY=t.screenY-y,t.preventDefault(),h.drag(t)},p=function(t){Re(t),Nt(x).off("mousemove touchmove",v).off("mouseup touchend",p),m.remove(),h.stop&&h.stop(t)},this.destroy=function(){Nt(w).off()},Nt(w).on("mousedown touchstart",e)}var Ee=tinymce.util.Tools.resolve("tinymce.ui.Factory"),ke=function(t){return!!t.getAttribute("data-mce-tabstop")};function Te(t){var o,r,n=t.root;function i(t){return t&&1===t.nodeType}try{o=document.activeElement}catch(e){o=document.body}function s(t){return i(t=t||o)?t.getAttribute("role"):null}function a(t){for(var e,n=t||o;n=n.parentNode;)if(e=s(n))return e}function l(t){var e=o;if(i(e))return e.getAttribute("aria-"+t)}function u(t){var e=t.tagName.toUpperCase();return"INPUT"===e||"TEXTAREA"===e||"SELECT"===e}function c(e){var r=[];return function t(e){if(1===e.nodeType&&"none"!==e.style.display&&!e.disabled){var n;(u(n=e)&&!n.hidden||ke(n)||/^(button|menuitem|checkbox|tab|menuitemcheckbox|option|gridcell|slider)$/.test(s(n)))&&r.push(e);for(var i=0;i=e.length&&(t=0),e[t]&&e[t].focus(),t}function h(t,e){var n=-1,i=d();e=e||c(i.getEl());for(var r=0;r
'+(t.settings.html||"")+e.renderHtml(t)+"
"},postRender:function(){var t,e=this;return e.items().exec("postRender"),e._super(),e._layout.postRender(e),e.state.set("rendered",!0),e.settings.style&&e.$el.css(e.settings.style),e.settings.border&&(t=e.borderBox,e.$el.css({"border-top-width":t.top,"border-right-width":t.right,"border-bottom-width":t.bottom,"border-left-width":t.left})),e.parent()||(e.keyboardNav=Te({root:e})),e},initLayoutRect:function(){var t=this._super();return this._layout.recalc(this),t},recalc:function(){var t=this,e=t._layoutRect,n=t._lastRect;if(!n||n.w!==e.w||n.h!==e.h)return t._layout.recalc(t),e=t.layoutRect(),t._lastRect={x:e.x,y:e.y,w:e.w,h:e.h},!0},reflow:function(){var t;if(ee.remove(this),this.visible()){for(ce.repaintControls=[],ce.repaintControls.map={},this.recalc(),t=ce.repaintControls.length;t--;)ce.repaintControls[t].repaint();"flow"!==this.settings.layout&&"stack"!==this.settings.layout&&this.repaint(),ce.repaintControls=[]}return this}}),Pe={init:function(){this.on("repaint",this.renderScroll)},renderScroll:function(){var p=this,v=2;function n(){var m,g,t;function e(t,e,n,i,r,o){var s,a,l,u,c,d,f,h;if(a=p.getEl("scroll"+t)){if(f=e.toLowerCase(),h=n.toLowerCase(),Nt(p.getEl("absend")).css(f,p.layoutRect()[i]-1),!r)return void Nt(a).css("display","none");Nt(a).css("display","block"),s=p.getEl("body"),l=p.getEl("scroll"+t+"t"),u=s["client"+n]-2*v,c=(u-=m&&g?a["client"+o]:0)/s["scroll"+n],(d={})[f]=s["offset"+e]+v,d[h]=u,Nt(a).css(d),(d={})[f]=s["scroll"+e]*c,d[h]=u*c,Nt(l).css(d)}}t=p.getEl("body"),m=t.scrollWidth>t.clientWidth,g=t.scrollHeight>t.clientHeight,e("h","Left","Width","contentW",m,"Height"),e("v","Top","Height","contentH",g,"Width")}p.settings.autoScroll&&(p._hasScroll||(p._hasScroll=!0,function(){function t(s,a,l,u,c){var d,t=p._id+"-scroll"+s,e=p.classPrefix;Nt(p.getEl()).append('
'),p.draghelper=new Ce(t+"t",{start:function(){d=p.getEl("body")["scroll"+a],Nt("#"+t).addClass(e+"active")},drag:function(t){var e,n,i,r,o=p.layoutRect();n=o.contentW>o.innerW,i=o.contentH>o.innerH,r=p.getEl("body")["client"+l]-2*v,e=(r-=n&&i?p.getEl("scroll"+s)["client"+c]:0)/p.getEl("body")["scroll"+l],p.getEl("body")["scroll"+a]=d+t["delta"+u]/e},stop:function(){Nt("#"+t).removeClass(e+"active")}})}p.classes.add("scroll"),t("v","Top","Height","Y","Width"),t("h","Left","Width","X","Height")}(),p.on("wheel",function(t){var e=p.getEl("body");e.scrollLeft+=10*(t.deltaX||0),e.scrollTop+=10*t.deltaY,n()}),Nt(p.getEl("body")).on("scroll",n)),n())}},We=De.extend({Defaults:{layout:"fit",containerCls:"panel"},Mixins:[Pe],renderHtml:function(){var t=this,e=t._layout,n=t.settings.html;return t.preRender(),e.preRender(t),void 0===n?n='
'+e.renderHtml(t)+"
":("function"==typeof n&&(n=n.call(t)),t._hasBody=!1),'
'+(t._preBodyHtml||"")+n+"
"}}),Ae={resizeToContent:function(){this._layoutRect.autoResize=!0,this._lastRect=null,this.reflow()},resizeTo:function(t,e){if(t<=1||e<=1){var n=St.getWindowSize();t=t<=1?t*n.w:t,e=e<=1?e*n.h:e}return this._layoutRect.autoResize=!1,this.layoutRect({minW:t,minH:e,w:t,h:e}).reflow()},resizeBy:function(t,e){var n=this.layoutRect();return this.resizeTo(n.w+t,n.h+e)}},Be=[],Le=[];function Ie(t,e){for(;t;){if(t===e)return!0;t=t.parent()}}function ze(){He||(He=function(t){2!==t.button&&function(t){for(var e=Be.length;e--;){var n=Be[e],i=n.getParentCtrl(t.target);if(n.settings.autohide){if(i&&(Ie(i,n)||n.parent()===i))continue;(t=n.fire("autohide",{target:t.target})).isDefaultPrevented()||n.hide()}}}(t)},Nt(document).on("click touchstart",He))}function Fe(r){var t=St.getViewPort().y;function e(t,e){for(var n,i=0;it&&(r.fixed(!1).layoutRect({y:r._autoFixY}).repaint(),e(!1,r._autoFixY-t)):(r._autoFixY=r.layoutRect().y,r._autoFixY').appendTo(i.getContainerElm())),c.setTimeout(function(){e.addClass(n+"in"),Nt(i.getEl()).addClass(n+"in")}),Ne=!0),Ue(!0,i)}}),i.on("show",function(){i.parents().each(function(t){if(t.state.get("fixed"))return i.fixed(!0),!1})}),t.popover&&(i._preBodyHtml='
',i.classes.add("popover").add("bottom").add(i.isRtl()?"end":"start")),i.aria("label",t.ariaLabel),i.aria("labelledby",i._id),i.aria("describedby",i.describedBy||i._id+"-none")},fixed:function(t){var e=this;if(e.state.get("fixed")!==t){if(e.state.get("rendered")){var n=St.getViewPort();t?e.layoutRect().y-=n.y:e.layoutRect().y+=n.y}e.classes.toggle("fixed",t),e.state.set("fixed",t)}return e},show:function(){var t,e=this._super();for(t=Be.length;t--&&Be[t]!==this;);return-1===t&&Be.push(this),e},hide:function(){return qe(this),Ue(!1,this),this._super()},hideAll:function(){Ve.hideAll()},close:function(){return this.fire("close").isDefaultPrevented()||(this.remove(),Ue(!1,this)),this},remove:function(){qe(this),this._super()},postRender:function(){return this.settings.bodyRole&&this.getEl("body").setAttribute("role",this.settings.bodyRole),this._super()}});function qe(t){var e;for(e=Be.length;e--;)Be[e]===t&&Be.splice(e,1);for(e=Le.length;e--;)Le[e]===t&&Le.splice(e,1)}Ve.hideAll=function(){for(var t=Be.length;t--;){var e=Be[t];e&&e.settings.autohide&&(e.hide(),Be.splice(t,1))}};var Ye=[],$e="";function Xe(t){var e,n=Nt("meta[name=viewport]")[0];!1!==h.overrideViewPort&&(n||((n=document.createElement("meta")).setAttribute("name","viewport"),document.getElementsByTagName("head")[0].appendChild(n)),(e=n.getAttribute("content"))&&void 0!==$e&&($e=e),n.setAttribute("content",t?"width=device-width,initial-scale=1.0,user-scalable=0,minimum-scale=1.0,maximum-scale=1.0":$e))}function je(t,e){(function(){for(var t=0;tt.w&&(n=t.x-Math.max(0,e/2),r.layoutRect({w:e,x:n}),i=!0),o&&(o.layoutRect({w:r.layoutRect().innerW}).recalc(),(e=o.layoutRect().minW+t.deltaW)>t.w&&(n=t.x-Math.max(0,e-t.w),r.layoutRect({w:e,x:n}),i=!0)),i&&r.recalc()},initLayoutRect:function(){var t,e=this,n=e._super(),i=0;if(e.settings.title&&!e._fullscreen){t=e.getEl("head");var r=St.getSize(t);n.headerW=r.width,n.headerH=r.height,i+=n.headerH}e.statusbar&&(i+=e.statusbar.layoutRect().h),n.deltaH+=i,n.minH+=i,n.h+=i;var o=St.getWindowSize();return n.x=e.settings.x||Math.max(0,o.w/2-n.w/2),n.y=e.settings.y||Math.max(0,o.h/2-n.h/2),n},renderHtml:function(){var t=this,e=t._layout,n=t._id,i=t.classPrefix,r=t.settings,o="",s="",a=r.html;return t.preRender(),e.preRender(t),r.title&&(o='
'+t.encode(r.title)+'
'),r.url&&(a=''),void 0===a&&(a=e.renderHtml(t)),t.statusbar&&(s=t.statusbar.renderHtml()),'
'+o+'
'+a+"
"+s+"
"},fullscreen:function(t){var n,e,i=this,r=document.documentElement,o=i.classPrefix;if(t!==i._fullscreen)if(Nt(window).on("resize",function(){var t;if(i._fullscreen)if(n)i._timer||(i._timer=c.setTimeout(function(){var t=St.getWindowSize();i.moveTo(0,0).resizeTo(t.w,t.h),i._timer=0},50));else{t=(new Date).getTime();var e=St.getWindowSize();i.moveTo(0,0).resizeTo(e.w,e.h),50<(new Date).getTime()-t&&(n=!0)}}),e=i.layoutRect(),i._fullscreen=t){i._initial={x:e.x,y:e.y,w:e.w,h:e.h},i.borderBox=Pt("0"),i.getEl("head").style.display="none",e.deltaH-=e.headerH+2,Nt([r,document.body]).addClass(o+"fullscreen"),i.classes.add("fullscreen");var s=St.getWindowSize();i.moveTo(0,0).resizeTo(s.w,s.h)}else i.borderBox=Pt(i.settings.border),i.getEl("head").style.display="",e.deltaH+=e.headerH,Nt([r,document.body]).removeClass(o+"fullscreen"),i.classes.remove("fullscreen"),i.moveTo(i._initial.x,i._initial.y).resizeTo(i._initial.w,i._initial.h);return i.reflow()},postRender:function(){var e,n=this;setTimeout(function(){n.classes.add("in"),n.fire("open")},0),n._super(),n.statusbar&&n.statusbar.postRender(),n.focus(),this.dragHelper=new Ce(n._id+"-dragh",{start:function(){e={x:n.layoutRect().x,y:n.layoutRect().y}},drag:function(t){n.moveTo(e.x+t.deltaX,e.y+t.deltaY)}}),n.on("submit",function(t){t.isDefaultPrevented()||n.close()}),Ye.push(n),Xe(!0)},submit:function(){return this.fire("submit",{data:this.toJSON()})},remove:function(){var t,e=this;for(e.dragHelper.destroy(),e._super(),e.statusbar&&this.statusbar.remove(),je(e.classPrefix,!1),t=Ye.length;t--;)Ye[t]===e&&Ye.splice(t,1);Xe(0",n=0;n
";r+=""}return r+="",r+=""}(r,o)),(t=i.dom.select("*[data-mce-id]")[0]).removeAttribute("data-mce-id"),e=i.dom.select("td,th",t),i.selection.setCursorLocation(e[0],0)}))},yn=function(t,e){t.execCommand("FormatBlock",!1,e)},xn=function(t,e,n){var i,r;r=(i=t.editorUpload.blobCache).create(an("mceu"),n,e),i.add(r),t.insertContent(t.dom.createHTML("img",{src:r.blobUri()}))},wn=function(t,e){0===e.trim().length?pn(t):vn(t,e)},_n=pn,Rn=function(n,t){n.addButton("quicklink",{icon:"link",tooltip:"Insert/Edit link",stateSelector:"a[href]",onclick:function(){t.showForm(n,"quicklink")}}),n.addButton("quickimage",{icon:"image",tooltip:"Insert image",onclick:function(){on().then(function(t){var e=t[0];rn(e).then(function(t){xn(n,t,e)})})}}),n.addButton("quicktable",{icon:"table",tooltip:"Insert table",onclick:function(){t.hide(),bn(n,2,2)}}),function(e){for(var t=function(t){return function(){yn(e,t)}},n=1;n<6;n++){var i="h"+n;e.addButton(i,{text:i.toUpperCase(),tooltip:"Heading "+n,stateSelector:i,onclick:t(i),onPostRender:function(){this.getEl().firstChild.firstChild.style.fontWeight="bold"}})}}(n)},Cn=function(){var t=h.container;if(t&&"static"!==v.DOM.getStyle(t,"position",!0)){var e=v.DOM.getPos(t),n=e.x-t.scrollLeft,i=e.y-t.scrollTop;return pt.some({x:n,y:i})}return pt.none()},En=function(t){return/^www\.|\.(com|org|edu|gov|uk|net|ca|de|jp|fr|au|us|ru|ch|it|nl|se|no|es|mil)$/i.test(t.trim())},kn=function(t){return/^https?:\/\//.test(t.trim())},Tn=function(t,e){return!kn(e)&&En(e)?(n=t,i=e,new nn(function(e){n.windowManager.confirm("The URL you entered seems to be an external link. Do you want to add the required http:// prefix?",function(t){e(!0===t?"http://"+i:i)})})):nn.resolve(e);var n,i},Hn=function(r,e){var t,n,i,o={};return t="quicklink",n={items:[{type:"button",name:"unlink",icon:"unlink",onclick:function(){r.focus(),_n(r),e()},tooltip:"Remove link"},{type:"filepicker",name:"linkurl",placeholder:"Paste or type a link",filetype:"file",onchange:function(t){var e=t.meta;e&&e.attach&&(o={href:this.value(),attach:e.attach})}},{type:"button",icon:"checkmark",subtype:"primary",tooltip:"Ok",onclick:"submit"}],onshow:function(t){if(t.control===this){var e,n="";(e=r.dom.getParent(r.selection.getStart(),"a[href]"))&&(n=r.dom.getAttrib(e,"href")),this.fromJSON({linkurl:n}),i=this.find("#unlink"),e?i.show():i.hide(),this.find("#linkurl")[0].focus()}var i},onsubmit:function(t){Tn(r,t.data.linkurl).then(function(t){r.undoManager.transact(function(){t===o.href&&(o.attach(),o={}),wn(r,t)}),e()})}},(i=Ee.create(R.extend({type:"form",layout:"flex",direction:"row",padding:5,name:t,spacing:3},n))).on("show",function(){i.find("textbox").eq(0).each(function(t){t.focus()})}),i},Mn=function(n,t,e){var o,i,s=[];if(e)return R.each(B(i=e)?i:D(i)?i.split(/[ ,]/):[],function(t){if("|"===t)o=null;else if(n.buttons[t]){o||(o={type:"buttongroup",items:[]},s.push(o));var e=n.buttons[t];A(e)&&(e=e()),e.type=e.type||"button",(e=Ee.create(e)).on("postRender",(i=n,r=e,function(){var e,t,n=(t=function(t,e){return{selector:t,handler:e}},(e=r).settings.stateSelector?t(e.settings.stateSelector,function(t){e.active(t)}):e.settings.disabledStateSelector?t(e.settings.disabledStateSelector,function(t){e.disabled(t)}):null);null!==n&&i.selection.selectorChanged(n.selector,n.handler)})),o.items.push(e)}var i,r}),Ee.create({type:"toolbar",layout:"flow",name:t,items:s})},Sn=function(){var l,c,o=function(t){return 0'+this._super(t)}}),Dn=be.extend({Defaults:{classes:"widget btn",role:"button"},init:function(t){var e,n=this;n._super(t),t=n.settings,e=n.settings.size,n.on("click mousedown",function(t){t.preventDefault()}),n.on("touchstart",function(t){n.fire("click",t),t.preventDefault()}),t.subtype&&n.classes.add(t.subtype),e&&n.classes.add("btn-"+e),t.icon&&n.icon(t.icon)},icon:function(t){return arguments.length?(this.state.set("icon",t),this):this.state.get("icon")},repaint:function(){var t,e=this.getEl().firstChild;e&&((t=e.style).width=t.height="100%"),this._super()},renderHtml:function(){var t,e,n=this,i=n._id,r=n.classPrefix,o=n.state.get("icon"),s=n.state.get("text"),a="",l=n.settings;return(t=l.image)?(o="none","string"!=typeof t&&(t=window.getSelection?t[0]:t[1]),t=" style=\"background-image: url('"+t+"')\""):t="",s&&(n.classes.add("btn-has-text"),a=''+n.encode(s)+""),o=o?r+"ico "+r+"i-"+o:"",e="boolean"==typeof l.active?' aria-pressed="'+l.active+'"':"",'
"},bindStates:function(){var o=this,n=o.$,i=o.classPrefix+"txt";function s(t){var e=n("span."+i,o.getEl());t?(e[0]||(n("button:first",o.getEl()).append(''),e=n("span."+i,o.getEl())),e.html(o.encode(t))):e.remove(),o.classes.toggle("btn-has-text",!!t)}return o.state.on("change:text",function(t){s(t.value)}),o.state.on("change:icon",function(t){var e=t.value,n=o.classPrefix;e=(o.settings.icon=e)?n+"ico "+n+"i-"+o.settings.icon:"";var i=o.getEl().firstChild,r=i.getElementsByTagName("i")[0];e?(r&&r===i.firstChild||(r=document.createElement("i"),i.insertBefore(r,i.firstChild)),r.className=e):r&&i.removeChild(r),s(o.state.get("text"))}),o._super()}}),Pn=Dn.extend({init:function(t){t=R.extend({text:"Browse...",multiple:!1,accept:null},t),this._super(t),this.classes.add("browsebutton"),t.multiple&&this.classes.add("multiple")},postRender:function(){var n=this,e=St.create("input",{type:"file",id:n._id+"-browse",accept:n.settings.accept});n._super(),Nt(e).on("change",function(t){var e=t.target.files;n.value=function(){return e.length?n.settings.multiple?e:e[0]:null},t.preventDefault(),e.length&&n.fire("change",t)}),Nt(e).on("click",function(t){t.stopPropagation()}),Nt(n.getEl("button")).on("click",function(t){t.stopPropagation(),e.click()}),n.getEl().appendChild(e)},remove:function(){Nt(this.getEl("button")).off(),Nt(this.getEl("input")).off(),this._super()}}),Wn=De.extend({Defaults:{defaultType:"button",role:"group"},renderHtml:function(){var t=this,e=t._layout;return t.classes.add("btn-group"),t.preRender(),e.preRender(t),'
'+(t.settings.html||"")+e.renderHtml(t)+"
"}}),An=be.extend({Defaults:{classes:"checkbox",role:"checkbox",checked:!1},init:function(t){var e=this;e._super(t),e.on("click mousedown",function(t){t.preventDefault()}),e.on("click",function(t){t.preventDefault(),e.disabled()||e.checked(!e.checked())}),e.checked(e.settings.checked)},checked:function(t){return arguments.length?(this.state.set("checked",t),this):this.state.get("checked")},value:function(t){return arguments.length?this.checked(t):this.checked()},renderHtml:function(){var t=this,e=t._id,n=t.classPrefix;return'
'+t.encode(t.state.get("text"))+"
"},bindStates:function(){var o=this;function e(t){o.classes.toggle("checked",t),o.aria("checked",t)}return o.state.on("change:text",function(t){o.getEl("al").firstChild.data=o.translate(t.value)}),o.state.on("change:checked change:value",function(t){o.fire("change"),e(t.value)}),o.state.on("change:icon",function(t){var e=t.value,n=o.classPrefix;if(void 0===e)return o.settings.icon;e=(o.settings.icon=e)?n+"ico "+n+"i-"+o.settings.icon:"";var i=o.getEl().firstChild,r=i.getElementsByTagName("i")[0];e?(r&&r===i.firstChild||(r=document.createElement("i"),i.insertBefore(r,i.firstChild)),r.className=e):r&&i.removeChild(r)}),o.state.get("checked")&&e(!0),o._super()}}),Bn=tinymce.util.Tools.resolve("tinymce.util.VK"),Ln=be.extend({init:function(i){var r=this;r._super(i),i=r.settings,r.classes.add("combobox"),r.subinput=!0,r.ariaTarget="inp",i.menu=i.menu||i.values,i.menu&&(i.icon="caret"),r.on("click",function(t){var e=t.target,n=r.getEl();if(Nt.contains(n,e)||e===n)for(;e&&e!==n;)e.id&&-1!==e.id.indexOf("-open")&&(r.fire("action"),i.menu&&(r.showMenu(),t.aria&&r.menu.items()[0].focus())),e=e.parentNode}),r.on("keydown",function(t){var e;13===t.keyCode&&"INPUT"===t.target.nodeName&&(t.preventDefault(),r.parents().reverse().each(function(t){if(t.toJSON)return e=t,!1}),r.fire("submit",{data:e.toJSON()}))}),r.on("keyup",function(t){if("INPUT"===t.target.nodeName){var e=r.state.get("value"),n=t.target.value;n!==e&&(r.state.set("value",n),r.fire("autocomplete",t))}}),r.on("mouseover",function(t){var e=r.tooltip().moveTo(-65535);if(r.statusLevel()&&-1!==t.target.className.indexOf(r.classPrefix+"status")){var n=r.statusMessage()||"Ok",i=e.text(n).show().testMoveRel(t.target,["bc-tc","bc-tl","bc-tr"]);e.classes.toggle("tooltip-n","bc-tc"===i),e.classes.toggle("tooltip-nw","bc-tl"===i),e.classes.toggle("tooltip-ne","bc-tr"===i),e.moveRel(t.target,i)}})},statusLevel:function(t){return 0