1import{_ as n,aa as p,b2 as c,A as o,b0 as f,b1 as l}from"./modulepreload-polyfill-B0pBnZtK.chunk.mjs";import{$ as i,Q as g,h,aq as u,n as b,H as S,f as y}from"./vendor-Cpwh4zMN.chunk.mjs";import{a as H}from"./NcContent-BhMoPROW-bHEqLMX_.chunk.mjs";import M from"./Submit-DymEjq8W.chunk.mjs";import"./NcEmptyContent-CGAPqk4S-DQ61DbTK.chunk.mjs";import"./refresh-BjgPkRXU.chunk.mjs";import"./Logger-DLUF6qcF.chunk.mjs";import"./ViewsMixin-BONnKZ-n.chunk.mjs";import"./index-HslberaV.chunk.mjs";import"./index-DFuWvtHB.chunk.mjs";import"./SetWindowTitle-BxzqOgB9.chunk.mjs";import"./index-ncdt33-H.chunk.mjs";import"./index-D4N9XJuu.chunk.mjs";const w={name:"FormsSubmit",components:{NcContent:H,Submit:M},data(){return{form:o("forms","form"),isLoggedIn:o("forms","isLoggedIn"),isEmbedded:o("forms","isEmbedded",!1),shareHash:o("forms","shareHash")}},unmounted(){c("forms:last-updated:set",this.emitSubmitMessage)},mounted(){if(this.isEmbedded){p("forms:last-updated:set",this.emitSubmitMessage);const e=new ResizeObserver(s=>{this.emitResizeMessage(s[0].target)});this.$nextTick(()=>e.observe(document.querySelector(".app-forms-embedded form")))}},methods:{emitSubmitMessage(e){window.parent?.postMessage({type:"form-saved",payload:{id:e}},"*")},emitResizeMessage(e){let s=e.getBoundingClientRect().top+e.scrollHeight,r=e.scrollWidth;s===0&&(e=document.querySelector(".app-forms-embedded main .empty-content"),s=e.getBoundingClientRect().top+e.scrollHeight,r=Math.max(e.scrollWidth,document.querySelector(".app-forms-embedded main header").scrollWidth)),window.parent?.postMessage({type:"resize-iframe",payload:{width:r,height:s}},"*")}}};function R(e,s,r,C,t,I){const a=i("Submit"),d=i("NcContent");return g(),h(d,{appName:"forms",class:S({"app-forms-embedded":t.isEmbedded})},{default:u(()=>[b(a,{form:t.form,publicView:"",shareHash:t.shareHash,isLoggedIn:t.isLoggedIn,sidebarOpened:!1},null,8,["form","shareHash","isLoggedIn"])]),_:1},8,["class"])}const z=n(w,[["render",R]]),m=y(z);m.config.globalProperties.t=f,m.config.globalProperties.n=l,m.mount("#content"); 2//# sourceMappingURL=forms-submit.mjs.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.