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