1const f=()=>{let c=document.querySelectorAll("form.storeganizer-configurator");const a=e=>{const o=e.closest(".multi-step-form-container")?.querySelector(".custom-selection-notice");if(!o)return;const n=Array.from(e.querySelectorAll("select")),l=n.find(t=>t.value==="Custom"),s=e.querySelector('input[name="custom_request"]');l?(o.classList.add("visible"),s&&(s.value="1"),n.forEach(t=>{const r=t.closest(".form__field");r&&(t===l?(r.style.opacity="",t.disabled=!1,t.required=!0):(r.style.opacity="0.4",t.disabled=!0,t.required=!1))})):(o.classList.remove("visible"),s&&(s.value=""),n.forEach(t=>{const r=t.closest(".form__field");r&&(r.style.opacity=""),t.disabled=!1,t.required=!0}))},u=e=>{if(!e)return!1;e.addEventListener("submit",i=>{e.checkValidity()||(i.preventDefault(),e.reportValidity()),e.parentElement.classList.add("loading")})},d=()=>{let e=document.querySelector("button.reset-configurator");if(!e)return!1;e.addEventListener("click",i=>{let o=e.dataset.partner;o?window.location=window.location.href.split("#")[0]+`?partner=${o}`:window.location=window.location.href.split("#")[0]})};c.forEach(e=>{u(e),e.querySelectorAll("select").forEach(i=>{i.addEventListener("change",()=>a(e))})}),d()};export{f as cyConfigurator};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.