jodit
Version:
Jodit is an awesome and useful wysiwyg editor with filebrowser
10 lines (8 loc) • 653 kB
JavaScript
/*!
* jodit - Jodit is an awesome and useful wysiwyg editor with filebrowser
* Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/jodit/)
* Version: v4.6.2
* Url: https://xdsoft.net/jodit/
* License(s): MIT
*/
((e,t)=>{if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var s=t();for(var i in s)("object"==typeof exports?exports:e)[i]=s[i]}})(self,(function(){return function(){var e={140(e,t,s){"use strict";s.d(t,{V(){return C}});var i=s(31635),r=s(77753),n=s(17352),o=s(22664),a=s(66927),l=s(50025),c=s(65147),u=s(63915),d=s(58597),h=s(14961),p=s(36115),m=(s(70265),s(9979)),g=s(31859),f=s(62994),v=s(18043),b=s(80004),y=s(75889),_=s(83797),w=s(10274);let C=class e extends h.T{className(){return"FileBrowser"}get dataProvider(){return(0,_.S)(this,this.options)}onSelect(e){return()=>{if(this.state.activeElements.length){const t=[],s=[];this.state.activeElements.forEach((e=>{const i=e.fileURL;i&&(t.push(i),s.push(e.isImage||!1))})),this.close();const i={baseurl:"",files:t,isImages:s};(0,c.isFunction)(e)&&e(i),this.close()}return!1}}get _dialog(){const e=this.dlg({minWidth:Math.min(700,screen.width),minHeight:300,buttons:this.o.headerButtons??["fullsize","dialog.close"]});return["beforeClose","afterClose","beforeOpen"].forEach((t=>e.events.on(e,t,(()=>this.e.fire(t))))),e.setSize(this.o.width,this.o.height),e}get storage(){return u.wc.makeStorage(!!this.o.saveStateInStorage,this.componentName)}get isOpened(){return this._dialog.isOpened&&"none"!==this.browser.style.display}status(e,t){e&&!(0,c.isAbortError)(e)&&((0,c.isString)(e)||(e=e.message),(0,c.isString)(e)&&(0,c.trim)(e).length&&this.message.message(e,t?"success":"error",this.o.howLongShowMsg))}open(e=this.o.defaultCallback,t=!1){return this.state.onlyImages=t,this.async.promise(((t,s)=>{if(!this.o.items||!this.o.items.url)throw(0,c.error)("Need set options.filebrowser.ajax.url");let i=0;this.e.off(this.files.container,"dblclick").on(this.files.container,"dblclick",this.onSelect(e)).on(this.files.container,"touchstart",(()=>{const t=(new Date).getTime();n.EMULATE_DBLCLICK_TIMEOUT>t-i&&this.onSelect(e)(),i=t})).off("select.filebrowser").on("select.filebrowser",this.onSelect(e));const r=this.c.div();this.toolbar?.appendTo(r),this.__updateToolbarButtons(),this._dialog.open(this.browser,r),this.e.fire("sort.filebrowser",this.state.sortBy),(0,g.r)(this).then(t,s).finally((()=>{this.isInDestruct||this?.e?.fire("fileBrowserReady.filebrowser")}))})).catch((e=>{if(!(0,c.isAbortError)(e)&&!n.IS_PROD)throw e}))}__getButtons(){return(this.o.buttons??[]).filter((e=>{if(!(0,c.isString)(e))return!0;switch(e){case"filebrowser.upload":return this.dataProvider.canI("FileUpload");case"filebrowser.edit":return this.dataProvider.canI("ImageResize")||this.dataProvider.canI("ImageCrop");case"filebrowser.remove":return this.dataProvider.canI("FileRemove")}return!0}))}initUploader(e){const t=this,s=e?.options?.uploader,i=(0,c.ConfigProto)(s||{},p.T.defaultOptions.uploader),r=()=>(0,m.f)(this);t.uploader=t.getInstance("Uploader",i),t.uploader.setPath(t.state.currentPath).setSource(t.state.currentSource).bind(t.browser,r,t.errorHandler),this.state.on(["change.currentPath","change.currentSource"],(()=>{this.uploader.setPath(this.state.currentPath).setSource(this.state.currentSource)})),t.e.on("bindUploader.filebrowser",(e=>{t.uploader.bind(e,r,t.errorHandler)}))}constructor(e){super(e),this.browser=this.c.div(this.componentName),this.status_line=this.c.div(this.getFullElName("status")),this.tree=new w.V(this),this.files=new w.Q(this),this.state=(0,l.sH)({currentPath:"",currentSource:y.o,currentBaseUrl:"",activeElements:[],elements:[],sources:[],view:"tiles",sortBy:"changed-desc",filterWord:"",onlyImages:!1}),this.errorHandler=e=>{(0,c.isAbortError)(e)||this.status(e instanceof Error?this.i18n(e.message):this.dataProvider.getMessage(e))},this.close=()=>{this._dialog.close()},this.__prevButtons=[],this.attachEvents(e);const t=this;t.options=(0,c.ConfigProto)(e||{},p.T.defaultOptions.filebrowser),t.browser.component=this,t.container=t.browser,t.o.showFoldersPanel&&t.browser.appendChild(t.tree.container),t.browser.appendChild(t.files.container),t.browser.appendChild(t.status_line),v.c.call(t),f.nW.call(t),b.r.call(t),["getLocalFileByUrl","crop","resize","create","fileMove","folderMove","fileRename","folderRename","fileRemove","folderRemove","folder","items","permissions"].forEach((e=>{null!=this.options[e]&&(this.options[e]=(0,c.ConfigProto)(this.options[e],this.o.ajax))}));const{storeView:s,storeSortBy:i,storeLastOpenedFolder:n}=this.o.saveStateInStorage||{storeLastOpenedFolder:!1,storeView:!1,storeSortBy:!1},o=s&&this.storage.get("view");t.state.view=o&&null==this.o.view?"list"===o?"list":"tiles":"list"===t.o.view?"list":"tiles",t.files.setMod("view",t.state.view);const a=i&&t.storage.get("sortBy");if(a){const e=a.split("-");t.state.sortBy=["changed","name","size"].includes(e[0])?a:"changed-desc"}else t.state.sortBy=t.o.sortBy||"changed-desc";if(n){const e=t.storage.get("currentPath"),s=t.storage.get("currentSource");t.state.currentPath=e??"",t.state.currentSource=s??""}t.initUploader(t),t.setStatus(r.f.ready)}destruct(){this.isInDestruct||((0,o.cached)(this,"_dialog")?.destruct(),super.destruct(),this.events&&this.e.off(".filebrowser"),this.uploader&&this.uploader.destruct())}__updateToolbarButtons(){const e=this.__getButtons();((e,t)=>{if(e.length!==t.length)return!1;for(let s=0;e.length>s;s++)if(e[s]!==t[s])return!1;return!0})(this.__prevButtons,e)||(this.__prevButtons=e,this.toolbar?.build(e))}};(0,i.Cg)([o.cache],C.prototype,"dataProvider",null),(0,i.Cg)([o.cache],C.prototype,"_dialog",null),(0,i.Cg)([o.cache],C.prototype,"storage",null),(0,i.Cg)([o.autobind],C.prototype,"status",null),(0,i.Cg)([o.autobind],C.prototype,"open",null),(0,i.Cg)([(0,a.w)("dataProvider:changePermissions")],C.prototype,"__updateToolbarButtons",null),C=(0,i.Cg)([(0,o.derive)(d.z)],C)},223(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <path d="M5.09668 6.99707H7.17358L4.17358 3.99707L1.17358 6.99707H3.09668V17.0031H1.15881L4.15881 20.0031L7.15881 17.0031H5.09668V6.99707Z"/> <path d="M22.8412 7H8.84119V5H22.8412V7Z"/> <path d="M22.8412 11H8.84119V9H22.8412V11Z"/> <path d="M8.84119 15H22.8412V13H8.84119V15Z"/> <path d="M22.8412 19H8.84119V17H22.8412V19Z"/> </svg>'},225(e,t,s){"use strict";var i=s(31635),r=s(17352),n=s(22664),o=s(55186),a=s(56298),l=s(71274),c=s(26150),u=s(38322),d=s(29866);s(50248);class h extends d.k{constructor(){super(...arguments),this.addNativeListeners=()=>{this.j.e.off(this.j.editor,"input.placeholder keydown.placeholder").on(this.j.editor,"input.placeholder keydown.placeholder",this.toggle)},this.addEvents=()=>{const e=this.j;e.o.useInputsPlaceholder&&e.element.hasAttribute("placeholder")&&(this.placeholderElm.innerHTML=(0,c.C)(e.element,"placeholder")||""),e.e.fire("placeholder",this.placeholderElm.innerHTML),e.e.off(".placeholder").on("changePlace.placeholder",this.addNativeListeners).on("change.placeholder focus.placeholder keyup.placeholder mouseup.placeholder keydown.placeholder mousedown.placeholder afterSetMode.placeholder changePlace.placeholder",this.toggle).on(window,"load",this.toggle),this.addNativeListeners(),this.toggle()}}afterInit(e){e.o.showPlaceholder&&(this.placeholderElm=e.c.fromHTML(`<span data-ref="placeholder" style="display: none;" class="jodit-placeholder">${e.i18n(e.o.placeholder)}</span>`),"rtl"===e.o.direction&&(this.placeholderElm.style.right="0px",this.placeholderElm.style.direction="rtl"),e.e.on("readonly",(e=>{e?this.hide():this.toggle()})).on("changePlace",this.addEvents),this.addEvents())}show(){const e=this.j;if(e.o.readonly)return;let t=0,s=0;const i=e.s.current(),r=i&&o.J.closest(i,o.J.isBlock,e.editor)||e.editor,n=e.ew.getComputedStyle(r),a=e.ew.getComputedStyle(e.editor);e.workplace.appendChild(this.placeholderElm);const{firstChild:c}=e.editor;if(o.J.isElement(c)&&!(0,l.r)(c)){const i=e.ew.getComputedStyle(c);t=parseInt(i.getPropertyValue("margin-top"),10),s=parseInt(i.getPropertyValue("margin-left"),10),this.placeholderElm.style.fontSize=parseInt(i.getPropertyValue("font-size"),10)+"px",this.placeholderElm.style.lineHeight=i.getPropertyValue("line-height")}else this.placeholderElm.style.fontSize=parseInt(n.getPropertyValue("font-size"),10)+"px",this.placeholderElm.style.lineHeight=n.getPropertyValue("line-height");(0,u.A)(this.placeholderElm,{display:"block",textAlign:n.getPropertyValue("text-align"),paddingTop:parseInt(a.paddingTop,10)+"px",paddingLeft:parseInt(a.paddingLeft,10)+"px",paddingRight:parseInt(a.paddingRight,10)+"px",marginTop:Math.max(parseInt(n.getPropertyValue("margin-top"),10),t),marginLeft:Math.max(parseInt(n.getPropertyValue("margin-left"),10),s)})}hide(){o.J.safeRemove(this.placeholderElm)}toggle(){const e=this.j;e.editor&&!e.isInDestruct&&(e.getRealMode()===r.MODE_WYSIWYG&&(e=>{if(!e.firstChild)return!0;const t=e.firstChild;if(r.INSEPARABLE_TAGS.has(t.nodeName?.toLowerCase())||/^(TABLE)$/i.test(t.nodeName))return!1;const s=o.J.next(t,(e=>e&&!o.J.isEmptyTextNode(e)),e);return o.J.isText(t)&&!s?o.J.isEmptyTextNode(t):!s&&o.J.each(t,(e=>!(o.J.isLeaf(e)||o.J.isList(e))&&(o.J.isEmpty(e)||o.J.isTag(e,"br"))))})(e.editor)?this.show():this.hide())}beforeDestruct(e){this.hide(),e.e.off(".placeholder").off(window,"load",this.toggle)}}(0,i.Cg)([(0,n.debounce)((e=>e.defaultTimeout/10),!0)],h.prototype,"toggle",null),a.fg.add("placeholder",h)},449(e,t,s){"use strict";s.d(t,{N(){return r},k(){return i}});const i=e=>e.replace(/([A-Z])([A-Z])([a-z])/g,"$1-$2$3").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),r=e=>e.replace(/([A-Z])([A-Z])([a-z])/g,"$1-$2$3").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()},641(e,t,s){"use strict";s.d(t,{$(){return n},l(){return r}});var i=s(55186);function r(e,t,s){let i=e.getBoundingClientRect(),r=e;const n=i.top,o=i.height;for(;r&&r!==t&&r.parentNode;){if(r=r.parentNode,i=r.getBoundingClientRect(),n>i.bottom)return!1;if(i.top>=n+o)return!1}return(s.documentElement&&s.documentElement.clientHeight||0)>=n}function n(e,t,s){i.J.isHTMLElement(e)&&!r(e,t,s)&&(t.clientHeight!==t.scrollHeight&&(t.scrollTop=e.offsetTop),r(e,t,s)||e.scrollIntoView())}},926(e,t,s){"use strict";s.d(t,{r(){return r}});var i=s(55186);function r(e,t,s,r,n,o){return i.J.isText(t)&&!t.nodeValue?(t===o&&e.s.isCollapsed()&&e.s.setCursorAfter(t),i.J.safeRemove(t),!0):s}},928(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M621 1280h595v-595zm-45-45l595-595h-595v595zm1152 77v192q0 14-9 23t-23 9h-224v224q0 14-9 23t-23 9h-192q-14 0-23-9t-9-23v-224h-864q-14 0-23-9t-9-23v-864h-224q-14 0-23-9t-9-23v-192q0-14 9-23t23-9h224v-224q0-14 9-23t23-9h192q14 0 23 9t9 23v224h851l246-247q10-9 23-9t23 9q9 10 9 23t-9 23l-247 246v851h224q14 0 23 9t9 23z"/> </svg>'},931(e,t,s){"use strict";s.d(t,{I(){return n}}),s(17352);var i=s(65147),r=s(38322);class n{static getIcon(e){return/<svg/i.test(e)?e:n.icons[e]||n.icons[e.replace(/-/g,"_")]||n.icons[e.replace(/_/g,"-")]||n.icons[(0,i.camelCase)(e)]||n.icons[(0,i.kebabCase)(e)]||n.icons[e.toLowerCase()]}static exists(e){return void 0!==this.getIcon(e)}static get(e,t="<span></span>"){return this.getIcon(e)||t}static set(e,t){return this.icons[e.replace("_","-")]=t,this}static makeIcon(e,t){if(!t)return;let s;const{name:i,iconURL:o,fill:a}=t,l=i.replace(/[^a-zA-Z0-9]/g,"_");let c;/<svg/.test(i)||(c=e.o.getIcon?.(i,l));const u=`${i}${o}${a}${c??""}`;if(e.o.cache&&this.__cache.has(u))return this.__cache.get(u)?.cloneNode(!0);if(o)s=e.c.span(),(0,r.A)(s,"backgroundImage","url("+o.replace("{basePath}",e?.basePath||"")+")");else{const t=c||n.get(i,"")||e.o.extraIcons?.[i];t&&(s=e.c.fromHTML(t.trim()),/^<svg/i.test(i)||s.classList.add("jodit-icon_"+l))}return s&&(s.classList.add("jodit-icon"),s.style.fill=a,e.o.cache&&this.__cache.set(u,s.cloneNode(!0))),s}}n.icons={},n.__cache=new Map},1239(e,t,s){"use strict";var i=s(31635),r=s(22664),n=s(56298),o=s(71005);s(20797);class a extends o.k{constructor(){super(...arguments),this.buttons=[{name:"ul",group:"list"},{name:"ol",group:"list"}]}afterInit(e){e.registerCommand("insertUnorderedList",this.onCommand).registerCommand("insertOrderedList",this.onCommand)}onCommand(e,t,s){return this.jodit.s.commitStyle({element:"insertunorderedlist"===e?"ul":"ol",attributes:{style:{listStyleType:s??null}}}),this.jodit.synchronizeValues(),!1}beforeDestruct(e){}}(0,i.Cg)([r.autobind],a.prototype,"onCommand",null),n.fg.add("orderedList",a)},1311(e){"use strict";e.exports={symbols:"Symbolit"}},1540(e,t,s){"use strict";s.d(t,{$(){return c}});var i,r=s(31635),n=s(24767),o=s(26150),a=s(69198),l=s(84103);let c=i=class e extends a.t{className(){return"UISelect"}createContainer(e){const t=super.createContainer(e),{j:s}=this,{nativeInput:i}=this,r=()=>s.create.element("option");if(void 0!==e.placeholder){const t=r();t.value="",t.text=s.i18n(e.placeholder),i.add(t)}return e.options?.forEach((e=>{const t=r();t.value=""+e.value,t.text=s.i18n(e.text),i.add(t)})),e.size&&e.size>0&&(0,o.C)(i,"size",e.size),e.multiple&&(0,o.C)(i,"multiple",""),t}createNativeInput(){return this.j.create.element("select")}updateValidators(){super.updateValidators(),this.state.required&&(this.validators.delete(l.O.required),this.validators.add(l.U.m))}constructor(e,t){super(e,t),this.state={...i.defaultState},Object.assign(this.state,t)}};c.defaultState={...a.t.defaultState,options:[],size:1,multiple:!1},c=i=(0,r.Cg)([n.s],c)},1663(e){"use strict";e.exports={symbols:"Simbolo"}},1677(e,t,s){"use strict";var i=s(31635),r=s(17352),n=s(22664),o=s(55186),a=s(56298),l=s(65147),c=s(29866);s(63400);const u=!r.IS_ES_NEXT&&r.IS_IE;class d extends c.k{constructor(){super(...arguments),this.__isToolbarStuck=!1,this.__createDummy=e=>{this.__dummyBox=this.j.c.div(),this.__dummyBox.classList.add("jodit_sticky-dummy_toolbar"),this.j.container.insertBefore(this.__dummyBox,e)},this.addSticky=e=>{this.__isToolbarStuck||(u&&!this.__dummyBox&&this.__createDummy(e),this.j.container.classList.add("jodit_sticky"),this.__isToolbarStuck=!0),(0,l.css)(e,{top:this.j.o.toolbarStickyOffset||null,width:this.j.container.offsetWidth-2}),this.__dummyBox&&(0,l.css)(this.__dummyBox,{height:e.offsetHeight})},this.removeSticky=e=>{this.__isToolbarStuck&&((0,l.css)(e,{width:"",top:""}),this.j.container.classList.remove("jodit_sticky"),this.__isToolbarStuck=!1)}}afterInit(e){e.e.on(e.ow,"scroll.sticky wheel.sticky mousewheel.sticky resize.sticky",this.__onScroll).on("getStickyState.sticky",(()=>this.__isToolbarStuck))}__onScroll(){const{jodit:e}=this;if(!e.o.toolbarSticky||!e.o.toolbar)return;const t=e.ow.pageYOffset||e.od.documentElement&&e.od.documentElement.scrollTop||0,s=(0,l.offset)(e.container,e,e.od,!0),i=e.getMode()===r.MODE_WYSIWYG&&t+e.o.toolbarStickyOffset>s.top&&s.top+s.height>t+e.o.toolbarStickyOffset&&!(e.o.toolbarDisableStickyForMobile&&this.__isMobile());if(this.__isToolbarStuck===i)return;const n=e.toolbarContainer;n&&(i?this.addSticky(n):this.removeSticky(n)),e.e.fire("toggleSticky",i)}__isMobile(){const{j:e}=this;return e&&e.options&&e.container&&e.options.sizeSM>=e.container.offsetWidth}beforeDestruct(e){o.J.safeRemove(this.__dummyBox),e.e.off(e.ow,"scroll.sticky wheel.sticky mousewheel.sticky resize.sticky",this.__onScroll).off(".sticky")}}(0,i.Cg)([(0,n.throttle)()],d.prototype,"__onScroll",null),a.fg.add("sticky",d)},1916(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24"> <g transform="scale(1.2 1.2) translate(-2 -0.5)"> <path d="M 22,12.5 A 1.49995,1.49995 0 0 0 20.50006,11 H 20 V 10 A 3,3 0 0 0 17,7 H 13 V 5.7226 a 2,2 0 1 0 -2,0 V 7 H 7 a 3,3 0 0 0 -3,3 v 1 H 3.49994 a 1.5,1.5 0 0 0 0,3 H 4 v 1 A 3.00128,3.00128 0 0 0 6.20251,17.89282 1.03113,1.03113 0 0 1 7,18.86975 v 0.716 a 0.99928,0.99928 0 0 0 1.00726,1.002 0.9792,0.9792 0 0 0 0.69983,-0.29486 l 2,-2 A 1,1 0 0 1 11.41425,18 H 17 a 3,3 0 0 0 3,-3 v -1 h 0.50006 A 1.49995,1.49995 0 0 0 22,12.5 Z M 19,15 a 2.00226,2.00226 0 0 1 -2,2 H 11.41425 A 1.987,1.987 0 0 0 10,17.58575 l -2,2 v -0.716 A 2.02082,2.02082 0 0 0 6.46771,16.92865 2.00439,2.00439 0 0 1 5,15 V 10 A 2.00226,2.00226 0 0 1 7,8 h 10 a 2.00222,2.00222 0 0 1 2,2 z M 10,12.5 A 1.5,1.5 0 1 1 8.5,11 1.5,1.5 0 0 1 10,12.5 Z m 7,0 A 1.5,1.5 0 1 1 15.5,11 1.5,1.5 0 0 1 17,12.5 Z"/> </g> </svg>'},1963(e,t,s){"use strict";s.d(t,{C(){return r}});var i=s(69052);function r(...e){return t=>{const s=t.prototype;for(let t=0;e.length>t;t++){const r=e[t],n=Object.getOwnPropertyNames(r.prototype);for(let e=0;n.length>e;e++){const t=n[e],o=Object.getOwnPropertyDescriptor(r.prototype,t);null!=o&&(0,i.T)(o.value)&&!(0,i.T)(s[t])&&Object.defineProperty(s,t,{enumerable:!0,configurable:!0,writable:!0,value(...e){return o.value.call(this,...e)}})}}}}},1992(e,t,s){"use strict";s.d(t,{b(){return n}});var i=s(65147),r=s(76134);function n(e,t,s,n,o){let a;if((0,i.isFunction)(e))a=e(t);else switch(e){case"ace":if(!t.o.shadowRoot){a=new r.p(t,s,n,o);break}default:a=new r.S(t,s,n,o)}return a.init(t),a.onReadyAlways((()=>{a.setReadOnly(t.o.readonly)})),a}},2461(e,t,s){"use strict";function i(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}s.d(t,{E(){return i}})},2533(e,t,s){"use strict";var i=s(17352),r=s(55186),n=s(56298),o=s(65147),a=s(11648);const l=new Set([i.KEY_TAB,i.KEY_LEFT,i.KEY_RIGHT,i.KEY_UP,i.KEY_DOWN]);n.fg.add("tableKeyboardNavigation",(e=>{e.e.off(".tableKeyboardNavigation").on("keydown.tableKeyboardNavigation",(t=>{const{key:s}=t,n=((e,t)=>{if(!l.has(t))return;const s=e.s.current();if(!s)return;const n=r.J.up(s,r.J.isCell,e.editor);if(!n)return;const{range:a}=e.s;if(t!==i.KEY_TAB&&s!==n){const e=t===i.KEY_RIGHT||t===i.KEY_DOWN,l=(0,o.call)(e?r.J.next:r.J.prev,s,(e=>t===i.KEY_UP||t===i.KEY_DOWN?r.J.isTag(e,"br"):!!e),n);if(!e&&(l||t!==i.KEY_UP&&r.J.isText(s)&&0!==a.startOffset)||e&&(l||t!==i.KEY_DOWN&&r.J.isText(s)&&s.nodeValue&&a.startOffset!==s.nodeValue.length))return}return n})(e,s);if(!n)return;const c=e.getInstance(a.X,e.o),u=r.J.closest(n,"table",e.editor);let d=null;const h=s===i.KEY_LEFT||t.shiftKey,p=()=>(0,o.call)(h?r.J.prev:r.J.next,n,r.J.isCell,u);switch(s){case i.KEY_TAB:case i.KEY_LEFT:d=p(),d||(c.appendRow(u,!!h&&u.querySelector("tr"),!h),d=p());break;case i.KEY_UP:case i.KEY_DOWN:{const e=c.formalMatrix(u),[t,r]=c.formalCoordinate(u,n);s===i.KEY_UP?void 0!==e[t-1]&&(d=e[t-1][r]):void 0!==e[t+1]&&(d=e[t+1][r])}}if(d){if(e.e.fire("hidePopup hideResizer"),d.firstChild)s===i.KEY_TAB?e.s.select(d,!0):e.s.setCursorIn(d,s===i.KEY_RIGHT||s===i.KEY_DOWN);else{const t=e.createInside.element("br");d.appendChild(t),e.s.setCursorBefore(t)}return e.synchronizeValues(),!1}}))}))},2788(e,t,s){"use strict";s.d(t,{M(){return i}});class i{constructor(){this.data=new Map}set(e,t){return this.data.set(e,t),this}delete(e){return this.data.delete(e),this}get(e){return this.data.get(e)}exists(e){return this.data.has(e)}clear(){return this.data.clear(),this}}},2805(e,t,s){"use strict";s(36115).T.prototype.wrapNodes={exclude:new Set(["hr","style","br"]),emptyBlockAfterInit:!0}},2928(e){"use strict";e.exports={"Line height":"גובה שורה"}},3006(e,t,s){"use strict";s.d(t,{c(){return l}});var i,r=s(31635),n=s(22664),o=s(55186),a=s(69198);let l=i=class e extends a.t{className(){return"UICheckbox"}render(){return this.j.c.element("label",{className:this.componentName})}constructor(e,t){super(e,{...t,type:"checkbox"}),this.state={...i.defaultState},Object.assign(this.state,t)}onChangeChecked(){this.value=""+this.state.checked,this.nativeInput.checked=this.state.checked,this.setMod("checked",this.state.checked)}onChangeNativeCheckBox(){this.state.checked=this.nativeInput.checked}onChangeSwitch(){this.setMod("switch",this.state.switch);let e=this.getElm("switch-slider");this.state.switch?(e||(e=this.j.c.div(this.getFullElName("switch-slider"))),o.J.after(this.nativeInput,e)):o.J.safeRemove(e)}};l.defaultState={...a.t.defaultState,checked:!1,switch:!1},(0,r.Cg)([(0,n.watch)("state.checked"),(0,n.hook)("ready")],l.prototype,"onChangeChecked",null),(0,r.Cg)([(0,n.watch)("nativeInput:change")],l.prototype,"onChangeNativeCheckBox",null),(0,r.Cg)([(0,n.watch)("state.switch"),(0,n.hook)("ready")],l.prototype,"onChangeSwitch",null),l=i=(0,r.Cg)([n.component],l)},3101(e,t,s){"use strict";s.d(t,{L(){return a}});var i=s(71842),r=s(26150),n=s(61001),o=s(80394);function a(e,t,s){const a=((e,t,s)=>e.elementIsBlock?i.J.up(t,(e=>i.J.isBlock(e)&&!i.J.isTag(e,l)),s.editor)||(0,o.Y)(e,t,s):((0,r.C)(t,"size",null),t))(e,t,s);return e.elementIsList?(0,n.z)(e,a,s):i.J.replace(a,e.element,s.createInside,!0)}const l=new Set(["td","th","tr","tbody","table","li","ul","ol"])},3258(e,t,s){"use strict";s.d(t,{I(){return m}});var i=s(31635),r=s(64567),n=s(22664),o=s(71842),a=s(65147),l=s(35265),c=s(57023),u=s(931),d=s(80071),h=s(97394),p=s(8809);let m=class e extends l.lD{className(){return"ToolbarButton"}get toolbar(){return this.closest(h.Q)}update(){const{control:e,state:t}=this,s=this.closest(h.Q);if(!s)return;const i=e.value?.(s.jodit,this);void 0!==i&&(t.value=i),t.disabled=this.__calculateDisabledStatus(s),t.activated=this.__calculateActivatedStatus(s),e.update?.(s.jodit,this)}__calculateActivatedStatus(e){return!((0,a.isJoditObject)(this.j)&&!this.j.editorIsActive||!this.control.isActive?.(this.j,this)&&(!e||!e.shouldBeActive(this)))}__calculateDisabledStatus(e){return!(!this.j.o.disabled&&(!this.j.o.readonly||this.j.o.activeButtonsInReadOnly&&this.j.o.activeButtonsInReadOnly.includes(this.control.name))&&!this.control.isDisabled?.(this.j,this)&&(!e||!e.shouldBeDisabled(this)))}onChangeActivated(){(0,a.attr)(this.button,"aria-pressed",this.state.activated),super.onChangeActivated()}onChangeText(){(0,a.isFunction)(this.control.template)?this.text.innerHTML=this.control.template(this.j,this.control.name,this.j.i18n(this.state.text)):super.onChangeText(),this.setMod("text-icons",!!this.text.innerText.trim().length)}onChangeTabIndex(){(0,a.attr)(this.button,"tabindex",this.state.tabIndex)}createContainer(){const e=this.componentName,t=this.j.c.span(e),s=super.createContainer();(0,a.attr)(t,"role","listitem"),s.classList.remove(e),s.classList.add(e+"__button"),Object.defineProperty(s,"component",{value:this}),t.appendChild(s);const i=this.j.c.fromHTML(`<span role="trigger" class="${e}__trigger">${u.I.get("chevron")}</span>`);return s.appendChild(i),t}focus(){this.container.querySelector("button")?.focus()}onChangeHasTrigger(){this.state.hasTrigger?this.container.appendChild(this.trigger):o.J.safeRemove(this.trigger),this.setMod("with-trigger",this.state.hasTrigger||null)}onChangeDisabled(){const e=this.state.disabled?"disabled":null;(0,a.attr)(this.trigger,"disabled",e),(0,a.attr)(this.button,"disabled",e),(0,a.attr)(this.container,"disabled",e)}constructor(e,t,s=null){super(e),this.control=t,this.target=s,this.state={...(0,l.ue)(),theme:"toolbar",currentValue:"",hasTrigger:!1},this.openedPopup=null;const i=this.getElm("button");this.button=i,Object.defineProperty(i,"component",{value:this,configurable:!0});const n=this.getElm("trigger");this.trigger=n,n.remove(),e.e.on([this.button,this.trigger],"mousedown",(e=>e.preventDefault())),this.onAction(this.onClick),this.hookStatus(r.f.ready,(()=>{this.__initFromControl(),this.update()})),t.mods&&Object.keys(t.mods).forEach((e=>{t.mods&&this.setMod(e,t.mods[e])}))}__initFromControl(){const{control:e,state:t}=this;this.updateSize(),t.name=e.name;const{textIcons:s}=this.j.o;if(!0===s||(0,a.isFunction)(s)&&s(e.name)||e.template)t.icon=(0,l.ue)().icon,t.text=e.text||e.name;else{if(e.iconURL)t.icon.iconURL=e.iconURL;else{const s=e.icon||e.name;t.icon.name=u.I.exists(s)||this.j.o.extraIcons?.[s]?s:""}e.iconURL||t.icon.name||(t.text=e.text||e.name)}e.tooltip&&(t.tooltip=this.j.i18n((0,a.isFunction)(e.tooltip)?e.tooltip(this.j,e,this):e.tooltip)),t.hasTrigger=!!(e.list||e.popup&&e.exec)}onTriggerClick(e){if(this.openedPopup)return void this.__closePopup();const{control:t}=this;if(e.buffer={actionTrigger:this},t.list)return this.__openControlList(t);if((0,a.isFunction)(t.popup)){const s=this.openPopup();s.parentElement=this;try{if(!1!==this.j.e.fire((0,a.camelCase)(`before-${t.name}-open-popup`),this.target,t,s)){const e=this.toolbar?.getTarget(this)??this.target??null,i=t.popup(this.j,e,this.__closePopup,this);i?s.setContent((0,a.isString)(i)?this.j.c.fromHTML(i):i).open((()=>(0,a.position)(this.container)),!1,this.j.o.allowTabNavigation?this.container:void 0):this.__closePopup()}}catch(e){throw this.__closePopup(),e}this.j.e.fire((0,a.camelCase)(`after-${t.name}-open-popup`),s.container)}}__openControlList(e){const t=this.jodit.options.controls??{},s=e=>(0,c.x)(e,t),i=e.list,r=this.openPopup(),n=(0,p.$K)(this.j);r.parentElement=this,n.parentElement=r,n.mode="vertical";const o=(t,i)=>{if((0,a.isString)(i)&&s(i))return{name:""+i,...s(i)};if((0,a.isString)(t)&&s(t))return{name:""+t,...s(t),..."object"==typeof i?i:{}};(e=>(0,a.isPlainObject)(e)&&"title"in e&&"value"in e)(t)&&(i=t.value,t=t.title);const{childTemplate:r}=e,n={name:""+t,template:r&&((e,t,s)=>r(e,t,s,this)),exec:e.childExec?(t,s,i)=>e.childExec?.(t,s,{...i,parentControl:e}):e.exec,data:e.data,command:e.command,isActive:e.isChildActive,value:e.value,isDisabled:e.isChildDisabled,mode:e.mode,args:[...e.args?e.args:[],t,i]};return(0,a.isString)(i)&&(n.text=i),n};n.build((0,a.isArray)(i)?i.map(o):(0,a.keys)(i,!1).map((e=>o(e,i[e]))),this.target),r.setContent(n).open((()=>(0,a.position)(this.container)),!1,this.j.o.allowTabNavigation?this.container:void 0),this.state.activated=!0}onOutsideClick(e){this.openedPopup&&(e&&o.J.isNode(e.target)&&(o.J.isOrContains(this.container,e.target)||this.openedPopup.isOwnClick(e))||this.__closePopup())}openPopup(){return this.__closePopup(),this.openedPopup=new d.z(this.j,!1),this.j.e.on(this.ow,"mousedown touchstart",this.onOutsideClick).on("escape closeAllPopups",this.onOutsideClick),this.openedPopup}__closePopup(){this.openedPopup&&(this.j.e.off(this.ow,"mousedown touchstart",this.onOutsideClick).off("escape closeAllPopups",this.onOutsideClick),this.state.activated=!1,this.openedPopup.close(),this.openedPopup.destruct(),this.openedPopup=null)}onClick(e){const{control:t}=this;if((0,a.isFunction)(t.exec)){const s=this.toolbar?.getTarget(this)??this.target??null,i=t.exec(this.j,s,{control:t,originalEvent:e,button:this});if(!1!==i&&!0!==i&&(this.j?.e?.fire("synchro"),this.parentElement&&this.parentElement.update(),this.j?.e?.fire("closeAllPopups afterExec")),!1!==i)return}return t.list?this.__openControlList(t):(0,a.isFunction)(t.popup)?this.onTriggerClick(e):void((t.command||t.name)&&((0,a.call)((0,a.isJoditObject)(this.j)?this.j.execCommand.bind(this.j):this.j.od.execCommand.bind(this.j.od),t.command||t.name,!1,t.args&&t.args[0]),this.j.e.fire("closeAllPopups")))}destruct(){return this.__closePopup(),super.destruct()}};(0,i.Cg)([n.cacheHTML],m.prototype,"createContainer",null),(0,i.Cg)([(0,n.watch)("state.hasTrigger",{immediately:!1})],m.prototype,"onChangeHasTrigger",null),(0,i.Cg)([(0,n.watch)("trigger:click")],m.prototype,"onTriggerClick",null),(0,i.Cg)([n.autobind],m.prototype,"onOutsideClick",null),(0,i.Cg)([n.autobind],m.prototype,"__closePopup",null),m=(0,i.Cg)([n.component],m)},3268(e){e.exports.default=["Begin met typen..","Over Jodit","Jodit Editor","Jodit gebruikershandleiding","bevat gedetailleerde informatie voor gebruik.","Voor informatie over de licentie, ga naar onze website:","Volledige versie kopen","Copyright © XDSoft.net - Chupurnov Valeriy. Alle rechten voorbehouden.","Anker","Open in nieuwe tab","Editor in volledig scherm openen","Opmaak verwijderen","Vulkleur of tekstkleur aanpassen","Opnieuw","Ongedaan maken","Vet","Cursief","Geordende list invoegen","Ongeordende lijst invoegen","Centreren","Uitlijnen op volledige breedte","Links uitlijnen","Rechts uitlijnen","Horizontale lijn invoegen","Afbeelding invoegen","Bestand invoegen","Youtube/Vimeo video invoegen","Link toevoegen","Tekstgrootte","Lettertype","Format blok invoegen","Normaal","Koptekst 1","Koptekst 2","Koptekst 3","Koptekst 4","Citaat","Code","Invoegen","Tabel invoegen","Inspringing verkleinen","Inspringing vergroten","Symbool selecteren","Symbool invoegen","Opmaak kopieren","Modus veranderen","Marges","Boven","Rechts","Onder","Links","CSS styles","CSS classes","Uitlijning","Rechts","Gecentreerd","Links","--Leeg--","Src","Titel","Alternatieve tekst","Link","Link in nieuwe tab openen","Afbeelding","Bestand","Geavanceerd","Afbeeldingseigenschappen","Annuleren","OK","Bestandsbrowser","Fout bij het laden van de lijst","Fout bij het laden van de mappenlijst","Weet je het zeker?","Geef de map een naam","Map aanmaken","Type naam","Sleep hier een afbeelding naartoe","Sleep hier een bestand naartoe","of klik","Alternatieve tekst","Uploaden","Bladeren","Achtergrond","Tekst","Boven","Midden","Onder","Kolom invoegen (voor)","Kolom invoegen (na)","Rij invoegen (boven)","Rij invoegen (onder)","Tabel verwijderen","Rij verwijderen","Kolom verwijderen","Cel leegmaken","Tekens: %d","Woorden: %d","Doorstrepen","Onderstrepen","Superscript","Subscript","Selectie knippen","Selecteer alles","Enter","Zoek naar","Vervangen door","Vervangen","Plakken","Kies content om te plakken","Broncode","vet","cursief","kwast","link","ongedaan maken","opnieuw","tabel","afbeelding","gum","paragraaf","lettergrootte","video","lettertype","over","afdrukken","onderstreept","doorgestreept","inspringen","minder inspringen","volledige grootte","kleiner maken","horizontale lijn","lijst","genummerde lijst","knip","alles selecteren","Embed code","Link openen","Link aanpassen","Niet volgen","link verwijderen","Updaten","Om te bewerken","Recensie"," URL","Bewerken","Horizontaal uitlijnen","Filteren","Sorteren op wijzigingsdatum","Sorteren op naam","Sorteren op grootte","Map toevoegen","Herstellen","Opslaan","Opslaan als ...","Grootte aanpassen","Bijknippen","Breedte","Hoogte","Verhouding behouden","Ja","Nee","Verwijderen","Selecteren","Selecteer: %s","Verticaal uitlijnen","Splitsen","Samenvoegen","Kolom toevoegen","Rij toevoegen",null,"Verwijderen","Verticaal splitsen","Horizontaal splitsen","Rand","Deze code lijkt op HTML. Als HTML behouden?","Invoegen als HTML","Origineel behouden","Als tekst invoegen","Als onopgemaakte tekst invoegen","Je kunt alleen je eigen afbeeldingen aanpassen. Deze afbeelding downloaden?","De afbeelding is succesvol geüploadet!","Palette","Er zijn geen bestanden in deze map.","Hernoemen","Voer een nieuwe naam in","Voorvertoning","Download","Plakken van klembord","Uw browser ondersteunt geen directe toegang tot het klembord.","Selectie kopiëren","kopiëren","Border radius","Toon alle","Toepassen","Vul dit veld in","Voer een webadres in","Standaard","Cirkel","Punt","Kwadraat","Zoeken","Vorige Zoeken","Volgende Zoeken","De geplakte tekst is afkomstig van een Microsoft Word/Excel document. Wil je de opmaak behouden of opschonen?","Word-tekst gedetecteerd","Opschonen","Voeg de klassenaam in","Druk op Alt voor aangepaste grootte",null,null,null]},3392(e,t,s){"use strict";s.d(t,{i(){return r}});var i=s(55186);const r=(e,t)=>`${i.J.isCell(t)?"padding":"margin"}${"rtl"===e?"Right":"Left"}`},3424(e){"use strict";e.exports={newline:"regel",delete:"verwijderen",space:"ruimte","Speech Recognize":"Spraak Herkennen",Sound:"Geluid","Interim Results":"Tussentijdse Resultaten"}},3459(e,t,s){"use strict";var i=s(31635),r=s(22664),n=s(71842),o=s(56298),a=s(65147),l=s(71005),c=s(53048),u=s(96369),d=s(8809);s(15776);class h extends l.k{constructor(){super(...arguments),this.type=null,this.snapRange=null,this.elmsList=(0,a.keys)(this.j.o.popup,!1).filter((e=>!this.isExcludedTarget(e)))}get popup(){return new u.z(this.jodit,!1)}get toolbar(){return(0,d.$K)(this.jodit,this.popup)}onClick(e){const t=this.elmsList,s=n.J.isTag(e,"img")?e:n.J.closest(e,t,this.j.editor);if(s&&this.canShowPopupForType(s.nodeName.toLowerCase()))return this.showPopup((()=>(0,a.position)(s,this.j)),s.nodeName.toLowerCase(),s),!1}showPopup(e,t,s){if(t=t.toLowerCase(),!this.canShowPopupForType(t))return!1;if(this.type!==t||s!==this.previousTarget){this.previousTarget=s;const e=this.j.o.popup[t];let i;i=(0,a.isFunction)(e)?e(this.j,s,this.popup.close):e,(0,a.isArray)(i)&&(this.toolbar.build(i,s),this.toolbar.buttonSize=this.j.o.toolbarButtonSize,i=this.toolbar.container),this.popup.setContent(i),this.type=t}return this.popup.open(e),!0}hidePopup(e){!this.popup.isOpened||(0,a.isString)(e)&&e!==this.type||this.popup.close()}onOutsideClick(){this.popup.close()}canShowPopupForType(e){const t=this.j.o.popup[e.toLowerCase()];return!(this.j.o.readonly||!this.j.o.toolbarInline||!t||this.isExcludedTarget(e))}isExcludedTarget(e){return(0,a.splitArray)(this.j.o.toolbarInlineDisableFor).map((e=>e.toLowerCase())).includes(e.toLowerCase())}afterInit(e){this.j.e.on("getDiffButtons.mobile",(t=>{if(this.toolbar===t){const t=this.toolbar.getButtonsNames();return(0,a.toArray)(e.registeredButtons).filter((e=>!this.j.o.toolbarInlineDisabledButtons.includes(e.name))).filter((e=>{const s=(0,a.isString)(e)?e:e.name;return s&&"|"!==s&&"\n"!==s&&!t.includes(s)}))}})).on("hidePopup",this.hidePopup).on("showInlineToolbar",this.showInlineToolbar).on("showPopup",((e,t,s)=>{this.showPopup(t,s||((0,a.isString)(e)?e:e.nodeName),(0,a.isString)(e)?void 0:e)})).on("mousedown keydown",this.onSelectionStart).on("change",(()=>{this.popup.isOpened&&this.previousTarget&&!this.previousTarget.parentNode&&(this.hidePopup(),this.previousTarget=void 0)})).on([this.j.ew,this.j.ow],"mouseup keyup",this.onSelectionEnd),this.addListenersForElements()}onSelectionStart(){this.snapRange=this.j.s.range.cloneRange()}onSelectionEnd(e){if(e&&e.target&&c.D$.closestElement(e.target,u.z))return;const{snapRange:t}=this,{range:s}=this.j.s;t&&!s.collapsed&&s.startContainer===t.startContainer&&s.startOffset===t.startOffset&&s.endContainer===t.endContainer&&s.endOffset===t.endOffset||this.onSelectionChange()}onSelectionChange(){if(!this.j.o.toolbarInlineForSelection)return;const e="selection",t=this.j.s.sel,s=this.j.s.range;t?.isCollapsed||this.isSelectedTarget(s)?this.type===e&&this.popup.isOpened&&this.hidePopup():this.j.s.current()&&this.showPopup((()=>s.getBoundingClientRect()),e)}isSelectedTarget(e){const t=e.startContainer;return n.J.isElement(t)&&t===e.endContainer&&n.J.isTag(t.childNodes[e.startOffset],new Set((0,a.keys)(this.j.o.popup,!1)))&&e.startOffset===e.endOffset-1}beforeDestruct(e){e.e.off("showPopup").off([this.j.ew,this.j.ow],"mouseup keyup",this.onSelectionEnd),this.removeListenersForElements()}_eventsList(){const e=this.elmsList;return e.map((e=>(0,a.camelCase)("click_"+e))).concat(e.map((e=>(0,a.camelCase)("touchstart_"+e)))).join(" ")}addListenersForElements(){this.j.e.on(this._eventsList(),this.onClick)}removeListenersForElements(){this.j.e.off(this._eventsList(),this.onClick)}showInlineToolbar(e){this.showPopup((()=>{if(e)return e;const{range:t}=this.j.s;return t.getBoundingClientRect()}),"toolbar")}}h.requires=["select"],(0,i.Cg)([r.cache],h.prototype,"popup",null),(0,i.Cg)([r.cache],h.prototype,"toolbar",null),(0,i.Cg)([r.autobind],h.prototype,"onClick",null),(0,i.Cg)([(0,r.wait)((e=>!e.j.isLocked))],h.prototype,"showPopup",null),(0,i.Cg)([(0,r.watch)([":clickEditor",":beforeCommandDelete",":backSpaceAfterDelete"]),r.autobind],h.prototype,"hidePopup",null),(0,i.Cg)([(0,r.watch)(":outsideClick")],h.prototype,"onOutsideClick",null),(0,i.Cg)([r.autobind],h.prototype,"onSelectionStart",null),(0,i.Cg)([r.autobind],h.prototype,"onSelectionEnd",null),(0,i.Cg)([(0,r.debounce)((e=>e.defaultTimeout))],h.prototype,"onSelectionChange",null),(0,i.Cg)([r.autobind],h.prototype,"showInlineToolbar",null),o.fg.add("inlinePopup",h)},3593(e,t,s){"use strict";s.r(t),s.d(t,{allowAttributes(){return i.f},fillEmptyParagraph(){return r.f},removeEmptyTextNode(){return n.r},removeInvTextNodes(){return o.u},replaceOldTags(){return a.H},sanitizeAttributes(){return l.L},tryRemoveNode(){return c.k}});var i=s(5232),r=s(63443),n=s(926),o=s(67431),a=s(81199),l=s(32782),c=s(32014)},3843(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 16 16"> <path stroke-width="0" d="M16 9v-6h-3v-1c0-0.55-0.45-1-1-1h-11c-0.55 0-1 0.45-1 1v3c0 0.55 0.45 1 1 1h11c0.55 0 1-0.45 1-1v-1h2v4h-9v2h-0.5c-0.276 0-0.5 0.224-0.5 0.5v5c0 0.276 0.224 0.5 0.5 0.5h2c0.276 0 0.5-0.224 0.5-0.5v-5c0-0.276-0.224-0.5-0.5-0.5h-0.5v-1h9zM12 3h-11v-1h11v1z"/> </svg>'},3947(e,t,s){"use strict";s.d(t,{E(){return n}});var i=s(12461),r=s(98253);function n(e){return(0,r.K)(e)&&(0,i.k)(e)&&(e=parseFloat(e)),"number"==typeof e&&Number.isFinite(e)&&!(e%1)}},4410(e){"use strict";e.exports={"Line height":"ラインの高さ"}},4679(e){e.exports.default=["Ketik sesuatu","Tentang Jodit","Editor Jodit","Panduan Pengguna Jodit","mencakup detail bantuan penggunaan","Untuk informasi tentang lisensi, silakan kunjungi website:","Beli versi lengkap","Hak Cipta © XDSoft.net - Chupurnov Valeriy. Hak cipta dilindungi undang-undang.","Tautan","Buka di tab baru","Buka editor dalam ukuran penuh","Hapus Pemformatan","Isi warna atau atur warna teks","Ulangi","Batalkan","Tebal","Miring","Sisipkan Daftar Tidak Berurut","Sisipkan Daftar Berurut","Tengah","Penuh","Kiri","Kanan","Sisipkan Garis Horizontal","Sisipkan Gambar","Sisipkan Berkas","Sisipkan video youtube/vimeo","Sisipkan tautan","Ukuran font","Keluarga font","Sisipkan blok format","Normal","Heading 1","Heading 2","Heading 3","Heading 4","Kutip","Kode","Sisipkan","Sisipkan tabel","Kurangi Indentasi","Tambah Indentasi","Pilih Karakter Spesial","Sisipkan Karakter Spesial","Formar warna","Ubah mode","Batas","atas","kanan","bawah","kiri","Gaya","Class","Rata","Kanan","Tengah","Kiri","--Tidak diset--","Src","Judul","Teks alternatif","Tautan","Buka tautan di tab baru","Gambar","berkas","Lanjutan","Properti gambar","Batal","Ya","Penjelajah Berkas","Error ketika memuat list","Error ketika memuat folder","Apakah Anda yakin?","Masukkan nama Direktori","Buat direktori","ketik nama","Letakkan gambar","Letakkan berkas","atau klik","Teks alternatif","Unggah","Jelajahi","Latar Belakang","Teks","Atas","Tengah","Bawah","Sisipkan kolom sebelumnya","Sisipkan kolom setelahnya","Sisipkan baris di atasnya","Sisipkan baris di bawahnya","Hapus tabel","Hapus baris","Hapus kolom","Kosongkan cell","Karakter: %d","Kata: %d","Coret","Garis Bawah","Superskrip","Subskrip","Potong pilihan","Pilih semua","Berhenti","Mencari","Ganti dengan","Mengganti","Paste","Pilih konten untuk dipaste","sumber","tebal","miring","sikat","tautan","batalkan","ulangi","tabel","gambar","penghapus","paragraf","ukuran font","video","font","tentang","cetak","garis bawah","coret","menjorok ke dalam","menjorok ke luar","ukuran penuh","menyusut","hr","ul","ol","potong","Pilih semua","Kode embed","Buka tautan","Edit tautan","No follow","Hapus tautan","Perbarui","pensil","Mata","URL","Edit","Perataan horizontal","Filter","Urutkan berdasarkan perubahan","Urutkan berdasarkan nama","Urutkan berdasarkan ukuran","Tambah folder","Reset","Simpan","Simpan sebagai...","Ubah ukuran","Crop","Lebar","Tinggi","Jaga aspek rasio","Ya","Tidak","Copot","Pilih","Pilih %s","Rata vertikal","Bagi","Gabungkan","Tambah kolom","tambah baris","Lisensi: %s","Hapus","Bagi secara vertikal","Bagi secara horizontal","Bingkai","Kode Anda cenderung ke HTML. Biarkan sebagai HTML?","Paste sebagai HTML","Jaga","Sisipkan sebagai teks","Sisipkan hanya teks","Anda hanya dapat mengedit gambar Anda sendiri. Unduh gambar ini di host?","Gambar telah sukses diunggah ke host!","palet","Tidak ada berkas","ganti nama","Masukkan nama baru","pratinjau","Unduh","Paste dari clipboard","Browser anda tidak mendukung akses langsung ke clipboard.","Copy seleksi","copy","Border radius","Tampilkan semua","Menerapkan","Silahkan mengisi kolom ini","Silahkan masukkan alamat web","Default","Lingkaran","Dot","Kuadrat","Menemukan","Menemukan Sebelumnya","Menemukan Berikutnya","Konten dipaste dari dokumen Microsoft Word/Excel. Apakah Anda ingin tetap menjaga format atau membersihkannya?","Terdeteksi paste dari Word","Bersih","Masukkan nama kelas","Tekan Alt untuk mengubah ukuran kustom",null,null,null]},4726(e){"use strict";e.exports={symbols:"symbol"}},4909(e,t,s){"use strict";s.d(t,{Z(){return l}});var i=s(77753),r=s(55186),n=s(69052),o=s(26150),a=s(53048);const l=(e,t,s)=>{const l=e.c.div("jodit-tabs"),c=e.c.div("jodit-tabs__wrapper"),u=e.c.div("jodit-tabs__buttons");(0,o.C)(u,{role:"tablist","aria-orientation":"horizontal"});const d={},h=[];let p="";l.appendChild(u),l.appendChild(c);const m=e=>{d[e]&&(h.forEach((e=>{e.state.activated=!1})),Object.values(d).forEach((({tab:e})=>e.classList.remove("jodit-tab_active"))),d[e].button.state.activated=!0,d[e].tab.classList.add("jodit-tab_active"))};if(t.forEach((({icon:l,name:g,content:f})=>{const v=e.c.div("jodit-tab");(0,o.C)(v,{role:"tabpanel"});const b=(0,a.$n)(e,l||g,g);b.state.role="tab",e.e.on(b.container,"pointerdown",(e=>e.preventDefault())),p||(p=g),u.appendChild(b.container),h.push(b),b.container.classList.add("jodit-tabs__button","jodit-tabs__button_columns_"+t.length),(0,n.T)(f)?v.appendChild(e.c.div("jodit-tab_empty")):v.appendChild(i.uA.isInstanceOf(f,a.D$)?f.container:f),c.appendChild(v),b.onAction((()=>(m(g),(0,n.T)(f)&&!r.J.isElement(f)&&f.call(e),s&&(s.activeTab=g),!1))),d[g]={button:b,tab:v}})),Object.values(d).forEach((({button:e})=>{e.container.style.width=(100/t.length).toFixed(10)+"%"})),m(s&&s.activeTab&&d[s.activeTab]?s.activeTab:p),s){let e=s.activeTab;Object.defineProperty(s,"activeTab",{configurable:!0,enumerable:!1,get:()=>e,set(t){e=t,m(t)}})}return l}},4960(e,t,s){"use strict";s.d(t,{G(){return r}});var i=s(17352);function r(e){const t=i.globalDocument.createElement("div");return t.textContent=e,t.innerHTML}},5232(e,t,s){"use strict";s.d(t,{f(){return r}});var i=s(55186);function r(e,t,s,r){if(r&&i.J.isElement(t)&&!0!==r[t.nodeName]){const e=t.attributes;if(e&&e.length){const i=[];for(let s=0;e.length>s;s+=1){const n=r[t.nodeName][e[s].name];(!n||!0!==n&&n!==e[s].value)&&i.push(e[s].name)}i.length&&(s=!0),i.forEach((e=>{t.removeAttribute(e)}))}}return s}},5298(e,t,s){"use strict";s.d(t,{W(){return n}});var i=s(17352),r=s(55186);function n(e,t,s){let n=r.J.findSibling(t,s),o=r.J.findSibling(t,!s);for(;r.J.isElement(n)&&!r.J.isTag(n,i.INSEPARABLE_TAGS)&&r.J.isContentEditable(n,e.editor)&&(!o||!r.J.closest(t,r.J.isElement,e.editor));)s||!n.firstChild?n.appendChild(t):r.J.before(n.firstChild,t),n=r.J.sibling(t,s),o=r.J.sibling(t,!s)}},5454(e,t,s){"use strict";s.d(t,{F(){return l}});var i,r=s(31635),n=s(22664),o=s(24767),a=s(69198);let l=i=class e extends a.t{className(){return"UITextArea"}createNativeInput(e){return this.j.create.element("textarea")}constructor(e,t){super(e,t),this.state={...i.defaultState},Object.assign(this.state,t),!1===this.state.resizable&&(this.nativeInput.style.resize="none")}onChangeStateSize(){const{size:e,resizable:t}=this.state;this.nativeInput.style.resize=t?"auto":"none",this.nativeInput.rows=e??5}};l.defaultState={...a.t.defaultState,size:5,resizable:!0},(0,r.Cg)([(0,n.watch)(["state.size","state.resizable"])],l.prototype,"onChangeStateSize",null),l=i=(0,r.Cg)([o.s],l)},5533(e,t,s){"use strict";s.d(t,{p(){return o}});var i=s(17352),r=s(65147),n=s(53380);class o extends n.F{constructor(){super(...arguments),this.className="jodit_ace_editor",this.proxyOnBlur=e=>{this.j.e.fire("blur",e)},this.proxyOnFocus=e=>{this.j.e.fire("focus",e)},this.proxyOnMouseDown=e=>{this.j.e.fire("mousedown",e)}}aceExists(){return void 0!==this.j.ow.ace}getLastColumnIndex(e){return this.instance.session.getLine(e).length}getLastColumnIndices(){const e=this.instance.session.getLength(),t=[];let s=0;for(let i=0;e>i;i++)s+=this.getLastColumnIndex(i),i>0&&(s+=1),t[i]=s;return t}getRowColumnIndices(e){const t=this.getLastColumnIndices();if(t[0]>=e)return{row:0,column:e};let s=1;for(let i=1;t.length>i;i++)e>t[i]&&(s=i+1);return{row:s,column:e-t[s-1]-1}}setSelectionRangeIndices(e,t){const s=this.getRowColumnIndices(e),i=this.getRowColumnIndices(t);this.instance.getSelection().setSelectionRange({start:s,end:i})}getIndexByRowColumn(e,t){return this.getLastColumnIndices()[e]-this.getLastColumnIndex(e)+t}init(e){const t=()=>{if(void 0!==this.instance||!this.aceExists())return;const t=this.j.c.div("jodit-source__mirror-fake");this.container.appendChild(t),this.instance=e.ow.ace.edit(t),"rtl"===e.o.direction&&(this.instance.setOption("rtlText",!0),this.instance.setOption("rtl",!0)),this.instance.setTheme(e.o.sourceEditorNativeOptions.theme),this.instance.renderer.setShowGutter(e.o.sourceEditorNativeOptions.showGutter),this.instance.getSession().setMode(e.o.sourceEditorNativeOptions.mode),this.instance.setHighlightActiveLine(e.o.sourceEditorNativeOptions.highlightActiveLine),this.instance.getSession().setUseWrapMode(!0),this.instance.setOption("indentedSoftWrap",!1),this.instance.setOption("wrap",e.o.sourceEditorNativeOptions.wrap),this.instance.getSession().setUseWorker(!1),this.instance.$blockScrolling=1/0,this.instance.on("change",this.toWYSIWYG),this.instance.on("focus",this.proxyOnFocus),this.instance.on("mousedown",this.proxyOnMouseDown),this.instance.on("blur",this.proxyOnBlur),e.getRealMode()!==i.MODE_WYSIWYG&&this.setValue(this.getValue());const s=this.j.async.throttle((()=>{if(e.isInDestruct||e.getMode()===i.MODE_WYSIWYG)return;const t=this.instance.isFocused();this.instance.setOption("maxLines","auto"!==e.o.height?e.workplace.offsetHeight/this.instance.renderer.lineHeight:1/0),this.instance.resize(),t&&this.focus()}),2*this.j.defaultTimeout);e.e.on(e,"resize",s).on("afterResize afterSetMode",s),s(),this.onReady()};e.e.on("afterSetMode",(()=>{e.getRealMode()!==i.MODE_SOURCE&&e.getMode()!==i.MODE_SPLIT||(this.fromWYSIWYG(),t())})),t(),this.aceExists()||(0,r.loadNext)(e,e.o.sourceEditorCDNUrlsJS).then((()=>{e.isInDestruct||t()})).catch((()=>null))}destruct(){this.instance.off("change",this.toWYSIWYG),this.instance.off("focus",this.proxyOnFocus),this.instance.off("mousedown",this.proxyOnMouseDown),this.instance.destroy(),this.j?.events?.off("aceInited.source")}setValue(e){if(!this.j.o.editHTMLDocumentMode&&this.j.o.beautifyHTML){const t=this.j.e.fire("beautifyHTML",e);(0,r.isString)(t)&&(e=t)}this.instance.setValue(e),this.instance.clearSelection()}getValue(){return this.instance.getValue()}setReadOnly(e){this.instance.setReadOnly(e)}get isFocused(){return this.instance.isFocused()}focus(){this.instance.container.focus(),this.instance.focus()}blur(){this.instance.blur()}getSelectionStart(){const e=this.instance.selection.getRange();return this.getIndexByRowColumn(e.start.row,e.start.column)}getSelectionEnd(){const e=this.instance.selection.getRange();return this.getIndexByRowColumn(e.end.row,e.end.column)}selectAll(){this.instance.selection.selectAll()}insertRaw(e){const t=this.instance.selection.getCursor(),s=this.instance.session.insert(t,e);this.instance.selection.setRange({start:t,end:s},!1)}setSelectionRange(e,t){this.setSelectionRangeIndices(e,t)}setPlaceHolder(e){}replaceUndoManager(){const{history:e}=this.jodit;this.instance.commands.addCommand({name:"Undo",bindKey:{win:"Ctrl-Z",mac:"Command-Z"},exec(){e.undo()}}),this.instance.commands.addCommand({name:"Redo",bindKey:{win:"Ctrl-Shift-Z",mac:"Command-Shift-Z"},exec(){e.redo()}})}}},5549(e,t,s){"use strict";s.d(t,{U(){return l}});var i=s(26150),r=s(74260),n=s(33201),o=s(85079),a=s(17880);async function l(e,t){const{sourceImage:s,values:l}=t;return(0,r.g)(s,l),l.borderRadius=parseInt(s.style.borderRadius||"0",10)||0,l.id=(0,i.C)(s,"id")||"",l.imageTitle=(0,i.C)(s,"title")||"",l.imageAlt=(0,i.C)(s,"alt")||"",l.style=(0,i.C)(s,"style")||"",l.classes=((0,i.C)(s,"class")||"").replace(/jodit_focused_image[\s]*/,""),(0,o.E)(s,l,t),(0,n.X)(t,e,l),l.imageSrc=(0,i.C)(s,"src")||"",(0,a.P)(s,l,t)}},5832(e,t,s){"use strict";s.d(t,{IB(){return i.I},P1(){return r.P},q4(){return n.q}});var i=s(3258),r=s(49405),n=s(48053)},5854(e,t,s){"use strict";s.d(t,{F(){return l}});var i=s(55186),r=s(82317),n=s(69052),o=s(92032),a=s(58006);function l(e,t,s,l="jodit-dialog_alert"){(0,n.T)(t)&&(s=t,t=void 0);const c=this instanceof a.l?this:new a.l({closeOnClickOverlay:!0}),u=c.c.div(l),d=(0,o.$n)(c,"ok","Ok");return(0,r._)(e).forEach((e=>{u.appendChild(i.J.isNode(e)?e:c.c.fromHTML(e))})),d.onAction((()=>{s&&(0,n.T)(s)&&!1===s(c)||c.close()})),c.setFooter([d]),c.open(u,t||" ",!0,!0),d.focus(),c}},5878(e){"use strict";e.exports={"copy-format":"Kopyalama Biçimi"}},5929(e,t,s){"use strict";var i=s(71842),r=s(56298),n=s(65147),o=s(59101),a=s(71005);class l extends a.k{afterInit(e){e.e.on("afterCommand.delete",(e=>{"delete"===e&&this.__afterDeleteCommand()})),e.registerCommand("delete",{exec:this.__onDeleteCommand.bind(this)},{stopPropagation:!1})}beforeDestruct(e){e.e.off("afterCommand.delete")}__afterDeleteCommand(){const e=this.j,t=e.s.current();if(t&&i.J.isTag(t.firstChild,"br")&&e.s.removeNode(t.firstChild),!((0,o.Bq)(e.editor.textContent||"")||e.editor.querySelector("img,table,jodit,iframe,hr")||t&&i.J.closest(t,"table",e.editor))){e.editor.innerHTML="";const t=e.s.setCursorIn(e.editor);e.s.removeNode(t)}}__onDeleteCommand(){const{jodit:e}=this;if(e.s.isCollapsed())return;e.s.expandSelection();const t=e.s.range;t.deleteContents();const s=e.createInside.fake();t.insertNode(s);const r=i.J.findSibling(s,!0),n=i.J.findSibling(s,!1);return this.__moveContentInLeftSibling(s,r,n),t.setStartBefore(s),t.collapse(!0),this.__moveCursorInEditableSibling(e,r,s,t),this.__addBrInEmptyBlock(s,n,t),i.J.safeRemove(s),e.s.selectRange(t),!1}__moveContentInLeftSibling(e,t,s){t=this.__defineRightLeftBox(t),!i.J.isList(s)&&!i.J.isTag(s,"table")&&i.J.isBlock(s)&&i.J.isBlock(t)&&(i.J.append(t,e),i.J.moveContent(s,t),i.J.safeRemove(s)),i.J.isList(s)&&i.J.isLeaf(s.firstElementChild)&&i.J.isEmpty(s.firstElementChild)&&i.J.safeRemove(s.firstElementChild)}__defineRightLeftBox(e){if(!i.J.isList(e))return e;let t=e.lastElementChild;return i.J.isLeaf(t)||(t=this.j.createInside.element("li"