const events=function(){function changePlanType(event){const{target:target}=event;const{checked:checked}=target;const switchContent=document.querySelector(`label[for="${target.id}"] .toggle-switch-content`);if(switchContent){switchContent.textContent=checked?"Annual":"Monthly"}ui.populatePlansUI(checked?"annual":"monthly")}function initStaticEvents(){const togglePlan=document.getElementById("planTypeInput");if(togglePlan){togglePlan.addEventListener("change",changePlanType)}}return{initStaticEvents:initStaticEvents}}();