Liferay.Loader.define("@liferay/commerce-order-web@5.0.55/js/termsDescriptionHandler",["module","exports","require"],(function(e,n,t){window;Object.defineProperty(n,"__esModule",{value:!0}),n.default=function({selectId:e,terms:n}){const t=document.getElementById("description-container"),d=document.getElementById("description-label");document.getElementById(e).addEventListener("change",(({target:e})=>{e.value?(t.innerHTML=n[e.value],d.classList.remove("d-none")):(t.innerHTML="",d.classList.add("d-none"))}))}}));
//# sourceMappingURL=termsDescriptionHandler.js.map