!function(t){var e={};function o(i){if(e[i])return e[i].exports;var n=e[i]={i:i,l:!1,exports:{}};return t[i].call(n.exports,n,n.exports,o),n.l=!0,n.exports}o.m=t,o.c=e,o.d=function(t,e,i){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(o.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)o.d(i,n,function(e){return t[e]}.bind(null,n));return i},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=6)}({6:function(t,e){function o(t,e,o){return e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}window.Toolset=window.Toolset||{};var i=window.Toolset;i.Types=i.Types||{},i.Types.Compatibility=i.Types.Compatibility||{},i.Types.Compatibility.TinyMCE=i.Types.Compatibility.TinyMCE||{},"undefined"!=typeof tinymce&&(tinymce.create("tinymce.plugins.toolset_add_types_shortcode_button",{init:function(t){void 0!==i&&"undefined"!=typeof types_shortcode_i18n&&(t.addButton("toolset_types_shortcodes",{title:types_shortcode_i18n.mce.types.button,cmd:"toolset_types_shortcodes_command",icon:"icon icon-types-logo ont-icon-23 ont-icon-block-classic-toolbar"}),t.addCommand("toolset_types_shortcodes_command",(function(){window.wpcfActiveEditor=t.id,i.hooks.doAction("toolset-action-set-shortcode-gui-action","insert"),i.Types.shortcodeGUI.openTypesDialog()})))}}),tinymce.PluginManager.add("toolset_add_types_shortcode_button",tinymce.plugins.toolset_add_types_shortcode_button));i.Types.Compatibility.TinyMCE.InitWysiwyg=new function t(){var e=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),o(this,"isWpEditorAvailable",null),o(this,"checkWpEditorAvailable",(function(){return null===e.isWpEditorAvailable&&(e.isWpEditorAvailable=_.has(window,"wp")&&_.has(window.wp,"editor")&&_.has(window.wp.editor,"remove")&&_.has(window.wp.editor,"initialize")),e.isWpEditorAvailable})),o(this,"initWysiwygField",(function(t){e.checkWpEditorAvailable()?(wp.editor.remove(t),jQuery(document).on("tinymce-editor-setup",(function(e,o){if(t===o.id){var i="undefined"!=typeof types_tinymce_compatibility_l10n&&_.isObject(types_tinymce_compatibility_l10n)?types_tinymce_compatibility_l10n:{},n=_.has(i,"editor_settings")?i.editor_settings:{};o.settings=_.extendOwn(o.settings,n)}})),wp.editor.initialize(t,{tinymce:!0,quicktags:!0,mediaButtons:!0}),jQuery("#wp-"+t+"-wrap .wp-media-buttons").attr("id","wp-"+t+"-media-buttons"),jQuery(document).trigger("toolset:types:wysiwygFieldInited",[t])):(jQuery("#wp-"+t+"-editor-tools").remove(),jQuery("#wp-"+t+"-editor-container").removeClass("wp-editor-container").find(".mce-container").remove(),jQuery("#qt_"+t+"_toolbar").remove(),jQuery("#"+t).removeClass("wp-editor-area").show().css({width:"100%"}))}))}}});