Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.179/page_editor/app/processors/TextProcessor",["module","exports","require","@liferay/layout-js-components-web","../utils/getEditableLinkValue","./getAlloyEditorProcessor","./getLinkableEditableEditorWrapper"],(function(e,t,r){window;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r("@liferay/layout-js-components-web"),a=r("../utils/getEditableLinkValue"),i=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(r("./getAlloyEditorProcessor")),l=r("./getLinkableEditableEditorWrapper");var n=(0,i.default)("text",l.getLinkableEditableEditorWrapper,((e,t,r={},i)=>{const l=(0,a.getEditableLinkValue)(r,i);if(l.href){let o=e instanceof HTMLAnchorElement?e:e.querySelector("a");o||(o=document.createElement("a")),o.href="".concat(r.prefix||"").concat(l.href),o.target=l.target||"",o.innerHTML=t,e.contains(o)||(e.innerHTML=o.outerHTML)}else(0,o.isNullOrUndefined)(t)||(e.innerHTML=t)}));t.default=n}));
//# sourceMappingURL=TextProcessor.js.map