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