Liferay.Loader.define("layout-seo-web@2.0.43/js/seo/seo.es",["module","exports","require","frontend-js-web","./PreviewSeoEvents.es"],(function(e,n,t){window;Object.defineProperty(n,"__esModule",{value:!0}),n.default=function({namespace:e}){const n=document.getElementById("".concat(e,"canonicalURLEnabled")),t=document.getElementById("".concat(e,"canonicalURL")),c=document.getElementById("".concat(e,"canonicalURL_").concat(Liferay.ThemeDisplay.getLanguageId())),l=document.getElementById("".concat(e,"canonicalURLAlert"));n.addEventListener("click",(n=>{const d=!n.target.checked;l.classList.toggle("hide"),(0,a.toggleDisabled)(t,d),(0,a.toggleDisabled)(c,d),!t.value&&t.placeholder&&(t.value=t.placeholder),(0,o.previewSeoFireChange)(e,{disabled:d,type:"url",value:t.value})}))};var a=t("frontend-js-web"),o=t("./PreviewSeoEvents.es")}));
//# sourceMappingURL=seo.es.js.map