1"use strict";(self.webpackChunk_fify_schlag_immo_de=self.webpackChunk_fify_schlag_immo_de||[]).push([[791],{1226:function(t,e,i){i.d(e,{JD:function(){return l},cK:function(){return s},eY:function(){return o},lI:function(){return n}});const n="media:file:selected",s="media:file:added",o="media:file:removed",a={[n]:(t,e,i,s,o,a,l)=>new CustomEvent(n,{bubbles:!0,detail:{file:t,isImage:s,element:e,url:i,preview:o,galleryModal:a,galleryId:l}}),[s]:t=>new CustomEvent(s,{bubbles:!0,detail:{file:t}}),[o]:t=>new CustomEvent(o,{bubbles:!0,detail:{file:t}})};function l(t,e){for(var i=arguments.length,n=new Array(i>2?i-2:0),s=2;s<i;s++)n[s-2]=arguments[s];const o=a[e](...n);return t.dispatchEvent(o),o}},3068:function(t,e,i){i.d(e,{Dq:function(){return n},Hh:function(){return s},JD:function(){return a}});const n="modal:open",s="modal:close",o={[n]:t=>new CustomEvent(n,{bubbles:!0,detail:{modalId:t}}),[s]:t=>new CustomEvent(s,{bubbles:!0,detail:{modalId:t}})};function a(t,e){for(var i=arguments.length,n=new Array(i>2?i-2:0),s=2;s<i;s++)n[s-2]=arguments[s];const a=o[e](...n);return t.dispatchEvent(a),a}},6791:function(t,e,i){i.r(e),i.d(e,{default:function(){return k}});var n=i(2891),s=i(9601),o=i(9149),a=i(64),l=i(6845),d=i(9209),r=i(2523),c=i(2574),h=i(7507),u=i(9665),p=i(4057);i(2222);class g{constructor(){this.selection=null,this.savedSelectionRange=null,this.isFakeBackgroundEnabled=!1,this.commandBackground="backColor",this.commandRemoveFormat="removeFormat"}isElement(t){return t&&"object"==typeof t&&t.nodeType&&t.nodeType===Node.ELEMENT_NODE}isContentEditable(t){return"true"===t.contentEditable}isNativeInput(t){return!(!t||!t.tagName)&&["INPUT","TEXTAREA"].includes(t.tagName)}canSetCaret(t){let e=!0;if(this.isNativeInput(t))switch(t.type){case"file":case"checkbox":case"radio":case"hidden":case"submit":case"button":case"image":case"reset":e=!1}else e=this.isContentEditable(t);return e}CSS(){return{editorWrapper:"codex-editor",editorZone:"codex-editor__redactor"}}anchorNode(){const t=window.getSelection();return t?t.anchorNode:null}anchorElement(){const t=window.getSelection();if(!t)return null;const e=t.anchorNode;return e?this.isElement(e)?e:e.parentElement:null}anchorOffset(){const t=window.getSelection();return t?t.anchorOffset:null}isCollapsed(){const t=window.getSelection();return t?t.isCollapsed:null}isAtEditor(){const t=g.get();let e=t.anchorNode||t.focusNode;e&&e.nodeType===Node.TEXT_NODE&&(e=e.parentNode);let i=null;return e&&(i=e.closest(`.${g.CSS.editorZone}`)),i&&i.nodeType===Node.ELEMENT_NODE}isSelectionExists(){return!!g.get().anchorNode}static get range(){const t=window.getSelection();return t&&t.rangeCount?t.getRangeAt(0):null}static get rect(){let t,e=document.selection,i={x:0,y:0,width:0,height:0};if(e&&"Control"!==e.type)return t=e.createRange(),i.x=t.boundingLeft,i.y=t.boundingTop,i.width=t.boundingWidth,i.height=t.boundingHeight,i;if(!window.getSelection)return i;if(e=window.getSelection(),null===e.rangeCount||isNaN(e.rangeCount))return i;if(0===e.rangeCount)return i;if(t=e.getRangeAt(0).cloneRange(),t.getBoundingClientRect&&(i=t.getBoundingClientRect()),0===i.x&&0===i.y){const e=document.createElement("span");if(e.getBoundingClientRect){e.appendChild(document.createTextNode("â")),t.insertN
1ode(e),i=e.getBoundingClientRect();const n=e.parentNode;n.removeChild(e),n.normalize()}}return i}static get text(){return window.getSelection?window.getSelection().toString():""}get(){return window.getSelection()}setCursor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const i=document.createRange(),n=window.getSelection();if(this.isNativeInput(t)){if(!this.canSetCaret(t))return;return t.focus(),t.selectionStart=t.selectionEnd=e,t.getBoundingClientRect()}return i.setStart(t,e),i.setEnd(t,e),n.removeAllRanges(),n.addRange(i),i.getBoundingClientRect()}removeFakeBackground(){this.isFakeBackgroundEnabled&&(this.isFakeBackgroundEnabled=!1,document.execCommand(this.commandRemoveFormat))}setFakeBackground(){document.execCommand(this.commandBackground,!1,"#a8d6ff"),this.isFakeBackgroundEnabled=!0}save(){this.savedSelectionRange=g.range}restore(){if(!this.savedSelectionRange)return;const t=window.getSelection();t.removeAllRanges(),t.addRange(this.savedSelectionRange)}clearSaved(){this.savedSelectionRange=null}collapseToEnd(){const t=window.getSelection(),e=document.createRange();e.selectNodeContents(t.focusNode),e.collapse(!1),t.removeAllRanges(),t.addRange(e)}findParentTag(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;const n=window.getSelection();let s=null;if(!n||!n.anchorNode||!n.focusNode)return null;return[n.anchorNode,n.focusNode].forEach((n=>{let o=i;for(;o>0&&n.parentNode&&(n.tagName!==t||(s=n,e&&n.classList&&!n.classList.contains(e)&&(s=null),!s));)n=n.parentNode,o--})),s}expandToTag(t){const e=window.getSelection();e.removeAllRanges();const i=document.createRange();i.selectNodeContents(t),e.addRange(i)}}i(4114);var m=i(1226),w=i(3068),v=i(4845);const f={Header:o.A,List:a.A,Raw:l.A,SimpleImage:d.A,Embed:r.A,Table:c.A,Delimiter:h.A,Underline:u.A,Quote:p.A,Link:class{constructor(t){let{data:e,config:i,api:n,readOnly:s}=t;this.toolbar=n.toolbar,this.inlineToolbar=n.inlineToolbar,this.tooltip=n.tooltip,this.i18n=n.i18n,this.config=i,this.selection=new g,this.commandLink="createLink",this.commandUnlink="unlink",this.CSS={wrapper:"ce-inline-tool-hyperlink-wrapper",wrapperShowed:"ce-inline-tool-hyperlink-wrapper--showed",button:"ce-inline-tool",buttonActive:"ce-inline-tool--active",buttonModifier:"ce-inline-tool--link",buttonUnlink:"ce-inline-tool--unlink",input:"ce-inline-tool-hyperlink--input",selectTarget:"ce-inline-tool-hyperlink--select-target",selectRel:"ce-inline-tool-hyperlink--select-rel",buttonSave:"ce-inline-tool-hyperlink--button"},this.targetAttributes=this.config.availableTargets||["_blank","_self","_parent","_top"],this.relAttributes=this.config.availableRels||["alternate","author","bookmark","external","help","license","next","nofollow","noreferrer","noopener","prev","search","tag"],this.nodes={button:null,wrapper:null,input:null,selectTarget:null,selectRel:null,buttonSave:null},this.inputOpened=!1}render(){return this.nodes.button=document.createElement("button"),this.nodes.button.type="button",this.nodes.button.classList.add(this.CSS.button,this.CSS.buttonModifier),this.nodes.button.appendChild(this.iconSvg("link",24,24)),this.nodes.button}renderActions(){let t;for(this.nodes.wrapper=document.createElement("div"),this.nodes.wrapper.classList.add(this.CSS.wrapper),this.nodes.input=document.createElement("input"),this.nodes.input.placeholder=this.config.placeholder||"Enter URL",this.nodes.input.classList.add(this.CSS.input),this.nodes.selectTarget=document.createElement("select"),this.nodes.selectTarget.classList.add(this.CSS.selectTarget),this.addOption(this.nodes.selectTarget,this.i18n.t("--target"),""),t=0;t<this.targetAttributes.length;t++)this.addOption(this.nodes.selectTarget,this.targetAttributes[t],this.targetAttributes[t]);for(this.config.target&&(0===this.targetAttributes.length&&this.addOption(this.nodes.selectTarget,this.config.target,this.config.target),this.nodes.selectTarget.value=this.config.target),this.nodes.selectRel=document.createElement("select"),this.nodes.selectRel.classList.add(this.CSS.selectRel),this.addOption(this.nodes.selectRel,this.i18n.t("--rel"),""),t=0;t<this.relAttributes.length;t++)this.addOption(this.nodes.selectRel,this.relAttributes[t],this.relAttributes[t]);return this.config.rel&&(0===this.relAttributes.length&&this.addOption(this.nodes.selectTarget,this.config.rel,this.config.rel),this.nodes.selectRel.value=this.config.rel),this.nodes.buttonSave=document.createElement("button"),this.nodes.buttonSave.type="button",this.nodes.buttonSave.classList.add(this.CSS.buttonSave),this.nodes.buttonSave.innerHTML=this.i18n.t("Save"),this.nodes.buttonSave.addEventListener("click",(t=>{this.savePressed(t)})),this.nodes.wrapper.appendChild(this.nodes.input),this.targetAttributes&&this.targetAttributes.length>0&&this.nodes.wrapper.appendChild(this.nodes.selectTarget),this.relAttributes&&this.relAttributes.length>0&&this.nodes.wrapper.appendChild(this.nodes.selectRel),this.nodes.wrapper.appendChild(this.nodes.buttonSave),this.nodes.wrapper}
1surround(t){if(t){this.inputOpened?(this.selection.restore(),this.selection.removeFakeBackground()):(this.selection.setFakeBackground(),this.selection.save());const t=this.selection.findParentTag("A");if(t)return this.selection.expandToTag(t),this.unlink(),this.closeActions(),this.checkState(),void this.toolbar.close()}this.toggleActions()}get shortcut(){return this.config.shortcut||"CMD+L"}get title(){return"Hyperlink"}static get isInline(){return!0}static get sanitize(){return{a:{href:!0,target:!0,rel:!0}}}checkState(){const t=this.selection.findParentTag("A");if(t){this.nodes.button.classList.add(this.CSS.buttonUnlink),this.nodes.button.classList.add(this.CSS.buttonActive),this.openActions();const e=t.getAttribute("href"),i=t.getAttribute("target"),n=t.getAttribute("rel");this.nodes.input.value=e||"",this.nodes.selectTarget.value=i||"",this.nodes.selectRel.value=n||"",this.selection.save()}else this.nodes.button.classList.remove(this.CSS.buttonUnlink),this.nodes.button.classList.remove(this.CSS.buttonActive);return!!t}clear(){this.closeActions()}toggleActions(){this.inputOpened?this.closeActions(!1):this.openActions(!0)}openActions(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.nodes.wrapper.classList.add(this.CSS.wrapperShowed),t&&this.nodes.input.focus(),this.inputOpened=!0}closeActions(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.selection.isFakeBackgroundEnabled){const t=new g;t.save(),this.selection.restore(),this.selection.removeFakeBackground(),t.restore()}this.nodes.wrapper.classList.remove(this.CSS.wrapperShowed),this.nodes.input.value="",this.nodes.selectTarget.value="",this.nodes.selectRel.value="",t&&this.selection.clearSaved(),this.inputOpened=!1}savePressed(t){t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation();let e=this.nodes.input.value||"",i=this.nodes.selectTarget.value||"",n=this.nodes.selectRel.value||"";if(e.trim()||(this.selection.restore(),this.unlink(),t.preventDefault(),this.closeActions()),this.config.validate&&!0==!!this.config.validate&&!this.validateURL(e))return this.tooltip.show(this.nodes.input,"The URL is not valid.",{placement:"top"}),void setTimeout((()=>{this.tooltip.hide()}),1e3);e=this.prepareLink(e),this.selection.restore(),this.selection.removeFakeBackground(),this.insertLink(e,i,n),this.selection.collapseToEnd(),this.inlineToolbar.close()}validateURL(t){return t.startsWith("mailto:")||t.startsWith("tel:")||!t.startsWith("http")||URL.canParse(t)}prepareLink(t){return t=t.trim(),t=this.addProtocol(t)}addProtocol(t){if(/^(\w+):(\/\/)?/.test(t))return t;const e=/^\/[^/\s]?/.test(t),i="#"===t.substring(0,1),n=/^\/\/[^/\s]/.test(t);return e||i||n||(t="http://"+t),t}insertLink(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=this.selection.findParentTag("A");n?this.selection.expandToTag(n):(document.execCommand(this.commandLink,!1,t),n=this.selection.findParentTag("A")),n&&(e?n.target=e:n.removeAttribute("target"),i?n.rel=i:n.removeAttribute("rel"))}unlink(){document.execCommand(this.commandUnlink)}iconSvg(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:14,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:14;const n=document.createElementNS("http://www.w3.org/2000/svg","svg"),s=document.createElementNS("http://www.w3.org/2000/svg","path");return n.setAttribute("width",e+"px"),n.setAttribute("height",i+"px"),n.setAttribute("fill","none"),n.setAttribute("viewBox","0 0 24 24"),n.setAttribute("stroke","black"),n.classList.add("icon"),s.setAttribute("d","M13.19 8.688a4.5 4.5 0 0 1 1.242 7.244l-4.5 4.5a4.5 4.5 0 0 1-6.364-6.364l1.757-1.757m13.35-.622 1.757-1.757a4.5 4.5 0 0 0-6.364-6.364l-4.5 4.5a4.5 4.5 0 0 0 1.242 7.244"),s.setAttribute("stroke-linecap","round"),s.setAttribute("stroke-linejoin","round"),s.setAttribute("stroke-width","2"),n.appendChild(s),n}addOption(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=document.createElement("option");n.text=e,n.value=i,t.add(n)}},Media:class{constructor(t){let{data:e,config:i,api:n,readOnly:s,block:o}=t;this.config=i,this.api=n,this.readOnly=s,this.block=o,this.data={withLink:!1,withCaption:!0,width:null,caption:null,...e||{}},this.container=document.createElement("div"),this.container.classList.add("cdx-media",this.api.styles.block),this.medium=null,this.data.id&&this._fetchMedium().then((()=>{this._renderMedium()})),window.addEventListener(m.lI,this._onFileSelected)}destroy(){window.removeEventListener(m.lI,this._onFileSelected)}static get toolbox(){return{title:"Medium",icon:v._B,data:{_fromToolbox:!0}}}static get sanitize(){return{caption:{br:!1}}}renderSettings(){const t=[{title:this.api.i18n.t("Select medium"),icon:v._B,onActivate:()=>{this._openGallery()}}];return this.medium&&(t.push({title:this.api.i18n.t("Show medium"),icon:v.AX,onActivate:()=>{window.open(this.medium.url,"_blank").focus()}}),this.medium.isImage&&t.push({title:this.api.i18n.t("Edit"),icon:v.QF,children:{items:[{title:this.api.i18n.t("With link"),icon:v.AX,toggle:!0,isActive:this.data.withLink,onActivate:t=>{this.data.withLink=t.isActive=!t.isActive,this.block.dispatchChange()}},{title:this.api.i18n.t("With caption"),icon:v.Yk,toggle:!0,isActive:this.data.withCaption,onActivate:t=>{this.data.withCaption=t.isActive=!t.isActive,this.block.dispatchChange(),this._renderMedium()}},{title:this.api.i18n.t("Width"),icon:v.pK,children:{items:[{title:this.api.i18n.t("Auto"),icon:v.pK,toggle:"width",isActive:"auto"===this.data.width||!this.data.width,onActivate:t=>{this.data.withCaption=t.isActive=!t.isActive,this._changeWidth("auto"),this.block.dispatchChange()}},{title:this.api.i18n.t("Full"),icon:v.pK,toggle:"width",isActive:"full"===this.data.width,onActivate:t=>{this.data.withCaption=t.isActive=!t.isActive,this._changeWidth("full"),this.block.dispatchChange()}},{title:this.api.i18n.t("One third"),icon:v.pK,toggle:"width",isActive:"one-third"===this.data.width,onActivate:t=>{this.data.withCaption=t.isActive=!t.isActive,this._changeWidth("one-third"),this.block.dispatchChange()}},{title:this.api.i18n.t("One half"),icon:v.pK,toggle:"width",isActive:"one-half"===this.data.width,onActivate:t=>{this.data.withCaption=t.isActive=!t.isActive,this._changeWidth("one-half"),this.block.dispatchChange()}},{title:this.api.i18n.t("Two thirds"),icon:v.pK,toggle:"width",isActive:"two-thirds"===this.data.width,onActivate:t=>{this.data.withCaption=t.isActive=!t.isActive,this._changeWidth("tw
1o-thirds"),this.block.dispatchChange()}},{title:this.api.i18n.t("Three quarters"),icon:v.pK,toggle:"width",isActive:"three-quarters"===this.data.width,onActivate:t=>{this.data.withCaption=t.isActive=!t.isActive,this._changeWidth("three-quarters"),this.block.dispatchChange()}}]}}]}})),t}render(){return this._renderMedium(),this.data._fromToolbox&&(delete this.data._fromToolbox,this._openGallery()),this.container}save(){return{id:this.data.id,width:this.data.width,withLink:this.data.withLink,withCaption:this.data.withCaption,caption:this.caption?.innerHTML||null}}static get isReadOnlySupported(){return!0}async _fetchMedium(){if(!this.data.id)return;const t=this.config.endpoint.replace("__ID__",this.data.id),e=await fetch(t,{method:"GET",headers:{Accept:"application/json"}}),i=await e.json();i.success?"medium"in i&&(this.medium=i.medium):i.reason&&"not_found"===i.reason&&(this.fileNotFound=!0)}_onFileSelected=t=>{if(this.readOnly)return;const{file:e,isImage:i,url:n,preview:s,galleryId:o,galleryModal:a}=t.detail;o===this.config.galleryModalId&&this.block.id===a.dataset.fromEditorBlock&&(this.data.id=e,this.medium={isImage:i,url:n,previewUrl:s},i||(this.data.withCaption=!0),this._renderMedium())};_openGallery(){const t=document.getElementById(`modal-${this.config.galleryModalId}`);t&&(t.dataset.fromEditorBlock=this.block.id),(0,w.JD)(window,w.Dq,this.config.galleryModalId)}_renderMedium(){this.container.innerHTML="",this.medium&&this.data.id?this._renderLoadedElement():this._renderPlaceholderElement()}_renderPlaceholderElement(){this.element=document.createElement("div"),this.element.classList.add("ce-stub");const t=document.createElement("div");t.classList.add("ce-stub__info");const e=document.createElement("div");e.classList.add("ce-stub__title"),t.append(e);const i=document.createElement("div");i.classList.add("ce-stub__subtitle"),t.append(i),this.fileNotFound?(this.element.classList.add("cdx-not-found"),this.element.innerHTML=v.iQ,e.textContent=this.api.i18n.t("Error"),i.textContent=this.api.i18n.t("Medium not found")):(this.element.innerHTML=v.x3,e.textContent=this.api.i18n.t("Loading medium")),this.element.append(t),this.container.append(this.element)}_renderLoadedElement(){this.medium.isImage?this._renderImage():this._renderFile(),this.element.dataset.fileId=this.data.id,this._applyWidth(this.data.width)}_renderImage(){this.element=document.createElement("img"),this.element.src=this.medium.previewUrl,this.element.alt=this.medium.url,this.element.classList.add("cdx-image"),this.container.append(this.element),this.data.withCaption&&(this._renderCaption(),this.container.append(this.caption))}_renderFile(){const t=document.createElement("div");t.innerHTML=v.AX,t.classList.add("cdx-file-icon"),this.element=document.createElement("div"),this.element.append(t),this.element.classList.add("cdx-file"),this._renderCaption(),this.element.append(this.caption),this.container.append(this.element)}_renderCaption(){let t;this.caption=document.createElement("div"),this.caption.innerHTML=this.data.caption||"",this.caption.contentEditable=this.readOnly?"false":"true",this.caption.classList.add("ce-paragraph"),this.medium?.isImage?this.caption.classList.add("cdx-media-caption"):this.caption.classList.add(this.api.styles.block),t=this.medium?.description?this.medium.description:this.medium?.isImage?this.api.i18n.t("Caption"):this.medium.url,this.caption.setAttribute("data-placeholder",t)}_changeWidth(t){this.data.width=t,this._applyWidth()}_applyWidth(){this.element&&(this.element.classList.remove("cdx-media-width-full","cdx-media-width-one-third","cdx-media-width-one-half","cdx-media-width-two-thirds","cdx-media-width-three-quarters"),this.data&&this.data.width&&"auto"!==this.data.width&&this.element.classList.add(`cdx-media-width-${this.data.width}`))}}},b={alignment:class{element=null;constructor(t){let{data:e,api:i,block:n}=t;this.data=e||{},this.api=i,this.block=n}static get isTune(){return!0}render(){const t=this.data&&this.data.direction?this.data.direction:null;return[{title:this.api.i18n.t("Alignment"),icon:v.UF,children:{items:[{name:"left",title:this.api.i18n.t("Left"),icon:v.UF,toggle:"alignment",isActive:"left"
1===t,onActivate:()=>{this._changeDirection("left")}},{name:"center",title:this.api.i18n.t("Center"),icon:v.uG,toggle:"alignment",isActive:"center"===t,onActivate:()=>{this._changeDirection("center")}},{name:"right",title:this.api.i18n.t("Right"),icon:v.H5,toggle:"alignment",isActive:"right"===t,onActivate:()=>{this._changeDirection("right")}},{name:"justify",title:this.api.i18n.t("Justify"),icon:v.VP,toggle:"alignment",isActive:"justify"===t,onActivate:()=>{this._changeDirection("justify")}},{name:"none",title:this.api.i18n.t("None"),icon:v.kL,toggle:"alignment",isActive:null===t,onActivate:()=>{this._changeDirection("none")}}]}},{type:"separator"}]}save(){return this.data||{}}wrap(t){return this.element=t,this._applyAlignment(),this.element}_changeDirection(t){this.data="none"===t?{}:{direction:t},this._applyAlignment(),this.block.dispatchChange()}_applyAlignment(){this.element&&(this.element.classList.remove("cdx-alignment-left","cdx-alignment-center","cdx-alignment-right","cdx-alignment-justify"),this.data&&this.data.direction&&"none"!==this.data.direction&&this.element.classList.add(`cdx-alignment-${this.data.direction}`))}},inline:class{element=null;constructor(t){let{data:e,api:i,block:n}=t;this.data=e||{},this.api=i,this.block=n}static get isTune(){return!0}render(){let t=this.data?.inline||null;return[{name:"inline",title:this.api.i18n.t("Inline"),icon:v.hf,toggle:!0,isActive:!!t,onActivate:()=>{this.data.inline=t=!t,this.block.dispatchChange(),this._applyClasses()}},{type:"separator"}]}wrap(t){return this.element=t,this._applyClasses(),this.element}save(){return this.data.inline?{inline:this.data.inline}:{}}_applyClasses(){this.element&&this.element.classList.toggle("cdx-inline",!!this.data.inline)}}};var A=i(6764);class k extends n.xI{static targets=["input","holder"];static values=(()=>({id:String,config:Object}))();editor=null;get id(){return this.idValue}get config(){return this.__config||(this.__config=this.configValue,this._sanitizeData(this.__config.data)),this.__config}get input(){return this.inputTarget}get holder(){return this.holderTarget}connect(){for(const t in this.config.tools){const e=this.config.tools[t];f[e.className]?(e.class=f[e.className],delete e.className,delete e.name):delete this.config.tools[t]}this.config.tools={...this.config.tools,...b},"paragraph"in this.config.tools||(this.config.tools.paragraph={}),this.config.tools.paragraph.tunes=["alignment","inline"],"media"in this.config.tools&&(this.config.tools.media.tunes=["inline"]),this.config.i18n={messages:{ui:{blockTunes:{toggler:{"Click to tune":(0,A.pwD)(A.gEl),"or drag to move":(0,A.pwD)(A.bDm)}},toolbar:{toolbox:{Add:(0,A.pwD)(A.RP5)}},popover:{"Convert to":(0,A.pwD)(A.mUc),Filter:(0,A.pwD)(A.wy9),"Nothing found":(0,A.pwD)(A.Kdj)}},toolNames:{Text:(0,A.pwD)(A.Qo1),Heading:(0,A.pwD)(A.BC$),Quote:(0,A.pwD)(A.zy0),Delimiter:(0,A.pwD)(A.oMD),"Raw HTML":(0,A.pwD)(A.VVi),Table:(0,A.pwD)(A.Z54),Link:(0,A.pwD)(A.NaY),Bold:(0,A.pwD)(A.aHu),Italic:(0,A.pwD)(A.HZK),Underline:(0,A.pwD)(A.xRp),ConvertTo:(0,A.pwD)(A.mUc),Medium:(0,A.pwD)(A.gOs),"Ordered List":(0,A.pwD)(A.n8c),"Unordered List":(0,A.pwD)(A.oIZ),Checklist:(0,A.pwD)(A.EYM)},tools:{stub:{Error:(0,A.pwD)(A.uv7),"The block can not be displayed correctly.":(0,A.pwD)(A.pId)},convertTo:{"Convert to":(0,A.pwD)(A.mUc)},link:{Save:(0,A.pwD)(A.fl)},list:{Ordered:(0,A.pwD)(A.n8c),Unordered:(0,A.pwD)(A.oIZ),Checklist:(0,A.pwD)(A.EYM),"Start with":(0,A.pwD)(A.YbR),"Counter type":(0,A.pwD)(A.wn4),Numeric:(0,A.pwD)(A.crU),"Lower Roman":(0,A.pwD)(A.q2K),"Upper Roman":(0,A.pwD)(A.Lv$),"Lower Alpha":(0,A.pwD)(A.Fk2),"Upper Alpha":(0,A.pwD)(A.In0)},table:{"Add column to left":(0,A.pwD)(A.lqP),"Add column to right":(0,A.pwD)(A.Or2),"Delete column":(0,A.pwD)(A.N9L),"Add row above":(0,A.pwD)(A.F8N),"Add row below":(0,A.pwD)(A.Lng),"Delete row":(0,A.pwD)(A.F72),Heading:(0,A.pwD)(A.FkW),"With headings":(0,A.pwD)(A.non),"Without headings":(0,A.pwD)(A.pCN),Stretch:(0,A.pwD)(A.A0L)},header:{"Heading 1":(0,A.pwD)(A.bKJ),"Heading 2":(0,A.pwD)(A.W7v),"Heading 3":(0,A.pwD)(A.Pti),"Heading 4":(0,A.pwD)(A.WMj),"Heading 5":(0,A.pwD)(A.P_7),"Heading 6":(0,A.pwD)(A.WbA)},image:{"Add Border":(0,A.pwD)(A.w5N),"Stretch Image":(0,A.pwD)(A.Py4),"Add Backgroun
1d":(0,A.pwD)(A.q$J)},quote:{"Enter a quote":(0,A.pwD)(A.PR9),"Enter a caption":(0,A.pwD)(A.b6I)},raw:{"Enter HTML code":(0,A.pwD)(A.uEp)},media:{"No medium selected":(0,A.pwD)(A.aOu),"Select medium":(0,A.pwD)(A.VEw),"Show medium":(0,A.pwD)(A.siv),Edit:(0,A.pwD)(A.ZYJ),Auto:(0,A.pwD)(A.O5e),Full:(0,A.pwD)(A.Kgo),"One third":(0,A.pwD)(A.bbZ),"One half":(0,A.pwD)(A.L3t),"Two thirds":(0,A.pwD)(A.kp2),"Three quarters":(0,A.pwD)(A.py6),Width:(0,A.pwD)(A.ZfJ),"With link":(0,A.pwD)(A.YGZ),"With caption":(0,A.pwD)(A.QL_),Caption:(0,A.pwD)(A.Xlb),"Loading medium":(0,A.pwD)(A.J1I),Error:(0,A.pwD)(A.XDk),"Medium not found":(0,A.pwD)(A.p5K)}},blockTunes:{delete:{Delete:(0,A.pwD)(A.Vs),"Click to delete":(0,A.pwD)(A.KpX)},moveUp:{"Move up":(0,A.pwD)(A.hAv)},moveDown:{"Move down":(0,A.pwD)(A.sXH)},alignment:{Alignment:(0,A.pwD)(A.NoZ),Left:(0,A.pwD)(A.fxk),Center:(0,A.pwD)(A.XPW),Right:(0,A.pwD)(A.C9T),Justify:(0,A.pwD)(A.oPG),None:(0,A.pwD)(A.Yyv)},inline:{Inline:(0,A.pwD)(A.j7x)}}}},this.config.onChange=this._onChange,this.editor=new s.A({...this.config,minHeight:0,readOnly:this.input.readOnly||this.input.disabled,onReady:()=>{this.editor.ui.nodes.wrapper.classList.remove("codex-editor--narrow")}})}disconnect(){this.editor&&this.editor.destroy()}async _save(){const t=await this.editor.save();this.input.value=JSON.stringify(t)}_onChange=async()=>{await this._save()};_sanitizeData(t){if(t&&t instanceof Object&&t.blocks)for(const e of t.blocks)"list"===e.type&&this._sanitizeListData(e.data)}_sanitizeListData(t){if("meta"in t||(t.meta={}),"items"in t)for(const e of t.items)"string"!=typeof e&&this._sanitizeListData(e);else t.items=[]}}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.