1import{aN as oe,az as ne,aQ as te,aU as se,_ as ae}from"./chunk-BY8-DUITmgGY-_onpa.js";import{aN as ie,dI as le,dL as re,cT as ce,at as t,cZ as b,bT as I,cc as ue,cm as de,cI as me,cE as fe,dR as pe,cO as i,aC as l,ay as p,F as _,c_ as R,az as w,d3 as B,dF as M,aA as V,cB as y,cz as v}from"./chunk-C9MwVHZDj8F9-rende.js";import{u as ye}from"./chunk-Bem29hne8tVb-block.js";/* empty css */const ve=ie({__name:"ScreenLayout2Columns",props:{config:{default:()=>({})},modules:{default:()=>[]},layoutInfo:{default:()=>({})},isLightbox:{type:Boolean,default:!1}},emits:["componentLoad","moduleIsVisible"],setup(A,{emit:N}){const s=A,g=oe(),r=le();ne();const O=re(),{getBlockComponentForType:h}=ye(),c=N,{pageScreenLayout:U}=te();ce("screenLayout",U(s.config.breakpoint));const{isLayoutStandard:P}=se({isLightboxScreen:t(()=>!1)}),$=b(),D=b(),G=b(),u=t(()=>{var o;return(o=g==null?void 0:g.page)==null?void 0:o.width}),W=t(()=>s.config.columnsMaxWidth||"1440px"),d=t(()=>{if(!u.value)return!1;const o=u.value>=+W.value.replace("px","");return s.config.flexibleOverflow&&o&&m.value}),Q=t(()=>({"allow-overflow-sections":d.value})),Z=t(()=>{const{columnsRatio:o="30%",overflowRightColumnRatio:n="40%"}=s.config,e=d.value?n:o;return{"--section-content-max-width":W.value,"--section-column-right-ratio":+e.replace("%","")/100,"--section-column-right-ratio-percentage":e}}),m=t(()=>{if(!u.value)return!1;const{breakpoint:o="1170"}=s.config;return C.value.length>0&&u.value>+o.replace("px","")}),F=t(()=>x("hero")),z=t(()=>x("main")),C=t(()=>x("right")),j=t(()=>({"show-2-columns":m.value})),q=t(()=>{const{overflowMainColumnAlign:o}=s.config;return{[o]:d.value}}),J=t(()=>({})),K=t(()=>{var n;const{overflowRightColumnAlign:o}=s.config;return{[o]:d.value,"column-fixed-content":!!((n=s.config)!=null&&n.fixed)}}),X=t(()=>{const{fixed:o,rightColumnBackgroundColor:n}=s.config||{},e={"background-color":n,"align-self":void 0};return m.value&&o&&(e["align-self"]="stretch"),e}),S=t(()=>m.value&&s.config.fixed),Y=t(()=>S.value?{top:`${r.$headerHeight}px`,position:"sticky"}:{}),x=o=>{var H;if(I(s.modules))return[];const n=((H=s.layoutInfo.sections)==null?void 0:H[o])||[];if(I(n)||ue(n[0]))return[];const e=de(n,"_id"),a=s.modules.filter(L=>e.includes(L._id))||[],E=[];return e.forEach(L=>{const T=a.find(ee=>ee._id===L);T&&E.push(T)}),E},k=(o,n)=>{const e=f(o);e>=0&&c("componentLoad",e,n)},f=o=>I(o)?-1:(s.modules||[]).findIndex(n=>n._id===o._id);return me(()=>{r.stickyLayout=!!S.value}),fe(()=>{s.isLightbox&&!P.value||O.responsive.isInRerenderWindow||(r.stickyLayout=!1)}),pe(S,o=>{r.stickyLayout=!!o},{immediate:!0}),(o,n)=>(i(),l("div",{class:v([Q.value,"modular-layout modular-layout-2-columns"]),style:y(Z.value)},[p("div",{ref_key:"sectionHero",ref:$,class:"layout-section-hero"},[F.value.length?(i(!0),l(_,{key:0},R(F.value,e=>(i(),w(B(M(h)(e.type)),{key:e._id,index:f(e),module:e,class:"screen-module",onModuleIsVisible:n[0]||(n[0]=a=>c("moduleIsVisible",a)),onComponentLoad:a=>k(e,a)},null,40,["index","module","onComponentLoad"]))),128)):V("",!0)],512),p("div",{class:v(["columns-wrapper",j.value])},[p("div",{ref_key:"sectionMain",ref:D,class:v(["layout-section-main",q.value]),style:y(J.value)},[z.value.length?(i(!0),l(_,{key:0},R(z.value,e=>(i(),w(B(M(h)(e.type)),{key:e._id,index:f(e),module:e,class:"screen-module",onModuleIsVisible:n[1]||(n[1]=a=>c("moduleIsVisible",a)),onComponentLoad:a=>k(e,a)},null,40,["index","module","onComponentLoad"]))),128)):V("",!0)],6),p("div",{ref_key:"sectionRightColumn",ref:G,class:v(["layout-section-right",K.value]),style:y(X.value)},[C.value.length?(i(),l("div",{key:0,id:"layout-section-right-content-wrapper",style:y(Y.value)},[(i(!0),l(_,null,R(C.value,e=>(i(),w(B(M(h)(e.type)),{key:e._id,index:f(e),module:e,class:"screen-module",onModuleIsVisible:n[2]||(n[2]=a=>c("moduleIsVisible",a)),onComponentLoad:a=>k(e,a)},null,40,["index","module","onComponentLoad"]))),128))],4)):V("",!0)],6)],2)],6))}}),xe=ae(ve,[["__scopeId","data-v-a48ef83f"]]);export{xe 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.