1var n=Object.defineProperty;var a=(o,e,t)=>e in o?n(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t;var i=(o,e,t)=>a(o,typeof e!="symbol"?e+"":e,t);import{C as d}from"./application-k8eSbXnI.js";import{p}from"./verbs-D8LzV1YN.js";class r extends d{connect(){this.hasDisplayPeriodTarget&&this.showDisplayPeriodOptions()}disconnect(){var e;this.styleElement&&(this.styleElement.remove(),this.styleElement=null),(e=document.querySelector('[data-controller="cms--popup-component"]'))==null||e.remove()}preview(e){e.preventDefault();const t=new FormData(this.element);t.delete("_method"),p(this.urlValue,{body:t}).then(s=>s.json).then(s=>{var l;(l=document.querySelector('[data-controller="cms--popup-component"]'))==null||l.remove(),this.styleElement||(this.styleElement=document.createElement("style"),this.styleElement.id="popup-form-preview",document.head.appendChild(this.styleElement)),this.styleElement.innerHTML="/*<![CDATA[*/ ".concat(s.style," /*]]>*/"),document.body.insertAdjacentHTML("beforeend",s.html)}).catch(s=>console.error("Error:",s))}showDisplayPeriodOptions(e){e==null||e.preventDefault();const t=this.displayPeriodTarget.value;document.querySelectorAll("[data-display-period]").forEach(l=>l.classList.toggle("hidden",l.dataset.displayPeriod!==t))}}i(r,"targets",["displayPeriod"]),i(r,"values",{url:String});export{r as default}; 2//# sourceMappingURL=popup_form_controller-BwVjJg9c.js.map
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.