1import{A as a,aa as u,b2 as b,_ as h,b0 as y,b1 as H}from"./modulepreload-polyfill-trVd5wej.chunk.mjs";import{q as w,P as S,G as I,R as L,a1 as g,S as N,h as q,at as C,n as R,H as v,f as E}from"./vendor-B3URFQuQ.chunk.mjs";import{a as M}from"./NcContent-BYh5hWDN-BPwGkukI.chunk.mjs";import P from"./Submit-BhptrB7X.chunk.mjs";import"./NcEmptyContent-CGAPqk4S-ZCj1NrfL.chunk.mjs";import"./block-DZVCVZ-G.chunk.mjs";import"./useViewForm-DjCsfQly.chunk.mjs";import"./index-BXi7ely9.chunk.mjs";import"./Logger-CiAvKPyj.chunk.mjs";import"./index-CYZJX8z8.chunk.mjs";import"./SetWindowTitle-DtNjTRES.chunk.mjs";import"./index-uk7FDsol.chunk.mjs";import"./index-El39kthj.chunk.mjs";const m="forms",z=w({name:"FormsSubmit",components:{NcContent:M,Submit:P},setup(){const s=a(m,"form"),p=a(m,"isLoggedIn"),i=a(m,"isEmbedded",!1),c=a(m,"shareHash");let o;const l=e=>{window.parent?.postMessage({type:"form-saved",payload:{id:e}},"*")},r=e=>{const t=Number(e);Number.isFinite(t)&&l(t)},n=e=>{let t=e.getBoundingClientRect().top+e.scrollHeight,f=e.scrollWidth;t===0&&(e=document.querySelector(".app-forms-embedded main .empty-content"),t=e.getBoundingClientRect().top+e.scrollHeight,f=Math.max(e.scrollWidth,document.querySelector(".app-forms-embedded main header").scrollWidth)),window.parent?.postMessage({type:"resize-iframe",payload:{width:f,height:t}},"*")};return S(()=>
1{i&&(u("forms:last-updated:set",r),o=new ResizeObserver(e=>{n(e[0].target)}),I(()=>{const e=document.querySelector(".app-forms-embedded form");e&&o?.observe(e)}))}),L(()=>{b("forms:last-updated:set",r),o?.disconnect()}),{form:s,isLoggedIn:p,isEmbedded:i,shareHash:c}}});function B(s,p,i,c,o,l){const r=g("Submit"),n=g("NcContent");return N(),q(n,{appName:"forms",class:v({"app-forms-embedded":s.isEmbedded})},{default:C(()=>[R(r,{form:s.form,publicView:"",shareHash:s.shareHash,isLoggedIn:s.isLoggedIn,sidebarOpened:!1},null,8,["form","shareHash","isLoggedIn"])]),_:1},8,["class"])}const W=h(z,[["render",B]]),d=E(W);d.config.globalProperties.t=y,d.config.globalProperties.n=H,d.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.