PageSourceSearch

https://invitedhome.com/_nuxt/C5QMWEY5.js

js invitedhome.com collected 2026-09-26 04:16:50 UTC 2,587 bytes, 1 lines download raw bytes

1import{_ as R,a as T}from"./BiTM6ia8.js";import{e as P,y as Y,x as j,r as c,z as q,s as D,j as O,i as W,cA as F,u as G,c as J,p as K,g as Q,a as $,b as z,h as u,n as L,m as U,o as M,cB as X}from"./Otvr6JEh.js";import{u as Z}from"./BAXrNrVU.js";import"./Br2k1zdz.js";const se=P({__name:"white-label",setup(ee){const y=Y(),{locale:k}=j(),p=Z(),_=c(null),i=c(null),v=c(null),m=q({className:"",variables:{}}),f=c(!1),h=c(!1),w=c(0),{desktop:x}=D(p),N=e=>{i.value&&(e?(h.value=!0,i.value.style.top=`-${w.value}px`,i.value.classList.add("modal-opened"),scrollTo({top:0})):(h.value=!1,i.value.classList.remove("modal-opened"),scrollTo({top:w.value})))},C=()=>{if(_.value&&v.value){const e=getComputedStyle(_.value),t=r=>e.getPropertyValue(r),a=t("--breakpoint").trim(),o={padding:parseInt(t("--grid-padding"),10),container:parseInt(t("--grid-container"),10),gutter:parseInt(t("--grid-gutter"),10),total:parseInt(t("--grid-columns"),10),width:document.body.clientWidth||-1,viewport:v.value.clientHeight||window.innerHeight},l=V(o),s=B(l,o);A(s),p&&(p.change(a),p.update(o.width,o.viewport))}},V=e=>
1{const t=e.total-1,{padding:a,container:o,gutter:l,total:s,width:r}=e,g=Math.min(o+l+a*2,r)-a*2,n=Math.floor(g/s*10)/10;return Array(s).fill(0).map((d,b)=>b===t?g-n*t:n).reduce((d,b)=>{const E=d.length>0?d[d.length-1]:0;return[...d,E+b]},[])},B=(e,t)=>{const a={},{padding:o,container:l,gutter:s,width:r,viewport:g}=t;if(r!==-1){a["--page-width"]=`${r}px`,a["--page-viewport"]=`${g}px`;const n=l+s+o*2;n!==-1&&(a["--grid-diff"]=`${(Math.max(n,r)-n)/-2}px`)}if(e.length>0)for(let n=0;n<e.length;n++)a[`--grid-column-${n+1}`]=`${e[n]}px`;return a},A=e=>{m.variables=e},S=()=>{m.className=`lang-${k.value} ${f.value?" is-debug":""}`,document.body.classList.add("loaded")},H=()=>{h.value||(w.value=window.scrollY)};O(()=>{var e;f.value=!!((e=y.query)!=null&&e.debug),C(),S(),window.addEventListener("resize",C,{passive:!0}),window.addEventListener("scroll",H,{passive:!0})}),W(k,()=>{S()});const I=F({addSeoAttributes:!0});return G({link:[{rel:"canonical",href:"https://invitedhome.com"+y.path}],htmlAttrs:{lang:I.value.htmlAttrs.lang}}),(e,t)=>{const a=T,o=X,l=R;return M(),J("div",{ref_key:"main",ref:_,class:L(["main__container",u(m).className]),style:U(u(m).variables)},[u(f)?(M(),K(a,{key:0,class:"main__debugger"})):Q("",!0),$("div",{ref_key:"element",ref:v,class:"main__viewport"},null,512),$("div",{ref_key:"content",ref:i,class:L(["main__content",{"is-desktop":u(x),"not-desktop":u(x)}])},[z(o)],2),z(l,{class:"main__modal",onModalChange:t[0]||(t[0]=s=>N(s))})],6)}}});
1export{se as default};

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.