1import{_ as v}from"./Dhu1l8hq.js";import{d as h}from"./DZdBfQzl.js";import{_ as k}from"./BAGQ7jWP.js";import{_ as T}from"./AKXHFSdZ.js";import{u as C}from"./CYqwwJ2g.js";import{d as x,i as F,j as S,k as B,h as P,l as j,u as d,c as R,g as $,n as A,a as I,f as u,o as z}from"./CV5s_dc1.js";import"./BijJqey6.js";import"./BNNTdvy3.js";import"./B1TQOWTR.js";import"./HnTuy3E7.js";import"./CNFhC_5R.js";import"./B9kzv0UG.js";import"./CVrJWrwM.js";import"./DlAUqK2U.js";import"./BZMEH8Vt.js";const N=h(({get:t,t:p})=>[{condition:t("media.cover.length"),component:"Carousel",data:{items:t("media.cover").map(e=>({src:e.url,alt:e.alt||e.description,type:e.type,caption:e.description||"",aspectRatio:"initial",height:"100%",width:"100%"}))},props:{"portal-blocked-warning-to":".hero",showNavigation:!1,showPagination:!1,autoplay:4e3,class:"hero hero__placement--center"},blocks:{overlay:[{component:"Flex",condition:!!t("title"),props:{class:"hero__overlay hero__overlay-placement--center",justify:"center",nowrap:!0,direction:"column"},blocks:{default:[{component:"Section",props:{width:"medium",class:"hero__overlay-content"},blocks:{default:[{component:"Image",props:{style:"margin-bottom: 2em",height:"5rem",size:"contain",class:"hero__overlay-image"},data:{item:{url:"https://assets.kvass.no/662f5a4c554d2a0a991d16f2"}}},{component:"Text",condition:!!t("title"),props:{style:"margin-bottom: 2em",textAlign:"center"},data:{content:`<h1>${t("title")}</h1>`}}]}}]}}]}},{condition:t("content"),component:"Section",props:{width:"small",theme:"none",class:"hero-content-section"},blocks:{default:[{component:"Text",props:{textAlign:"center",class:"hero-content"},data:{content:t("content")}}]}},{component:"Section",props:{class:"additional-section",width:"full",theme:"primary"},blocks:{default:[{component:"Grid",props:{columns:"1fr 1fr",gap:"0",class:"additional-section__wrapper"},blocks:{default:[...(t("customFields.additional-sections")||[]).map(e=>{var n,o,s;return{condition:!!(e!=null&&e.content||(n=e==null?void 0:e.images)!=null&&n[0]||(s=(o=e==null?void 0:e.chart)==null?void 0:o.items)!=null&&s[0]),component:"ImagesTextSection",data:{content:e},props:{showResponsivePadding:!1,layout:e.layout,width:e.width||"full",theme:e.theme||"none",captionPlacement:e["image-caption-placement"]||"inside",class:"additional-section"}}})]}}]}},{component:"Section",props:{width:"large",theme:"none",class:"offer-section"},conditions:()=>(t("customFields.products")||[]).some(e=>{var a,i;const n=e.content,o=(((a=e.table)==null?void 0:a.rows)||[]).some(c=>c==null?void 0:c.value),s=(((i=e.table)==null?void 0:i.columns)||[]).some(c=>c==null?void 0:c.label);return n||o||s}),blocks:{default:[{component:"Text",data:{content:"<h3>Tilbud</h3>"},props:{textAlign:"center"}},...(t("customFields.products")||[]).map((e,n)=>{var o,s;return[{component:"Text",data:{content:e.content}},{condition:()=>{var c,m;const a=(((c=e.table)==null?void 0:c.rows)||[]).some(l=>l==null?void 0:l.value),i=(((m=e.table)==null?void 0:m.columns)||[]).some(l=>l==null?void 0:l.label);return a||i},component:"Table",data:{rows:((o=e.table)==null?void 0:o.rows)||[],columns:(((s=e.table)==null?void 0:s.columns)||[]).map((a,i)=>i===e.table.columns.length-1?{...a,align:"end"}:a)},props:{boldHeader:!1}}]}).flat()]}},{condition:()=>!!(t("customFields.references")||[]).filter(e=>e?e.content||e.image||e.url:!1).length,component:"Section",props:{width:"none",theme:"none",style:"--section-padding-inline: 0rem; padding-bottom: 0"},blocks:{default:[{component:"Text",data:{content:"<h3>Referanser</h3>"},props:{textAlign:"center"}},{component:"Grid",props:{gap:"0rem",justifyContent:"center",columns:2,class:"references-grid"},blocks:{default:(t("customFields.references")||[]).map((e,n)=>({component:"Reference",data:{index:n,url:e.url,image:e.image,content:e.content}}))}}]}},{condition:()=>!!(t("customFields.icons")||[]).filter(e=>e?e.icon:!1).length,component:"Section",props:{width:"large",theme:"none",class:"builders-logo-section"},blocks:{default:[{component:"IconsCards",props:{columns:6,iconBackgroundColor:"inherit",placement:"center",padding:0},data:{content:t("customFields.icons")},variant:"none"}]}}]),O=Object.freeze(Object.defineProperty({__proto__:null,default:N},Symbol.toStringTag,{value:"Module"})),G=h(({get:t,t:p})=>
1[{condition:t("media.cover.length"),component:"Carousel",data:{items:t("media.cover").map(e=>({src:e.url,alt:e.alt||e.description,type:e.type,caption:e.description||"",aspectRatio:"initial",height:"100%",width:"100%"}))},props:{"portal-blocked-warning-to":".hero",showNavigation:!1,showPagination:!1,autoplay:4e3,class:"hero hero__placement--center"},blocks:{overlay:[{component:"Flex",condition:!!t("title"),props:{class:"hero__overlay hero__overlay-placement--center",justify:"center",nowrap:!0,direction:"column"},blocks:{default:[{component:"Section",props:{width:"medium",class:"hero__overlay-content"},blocks:{default:[{component:"Image",props:{style:"margin-bottom: 2em",height:"5rem",size:"contain",class:"hero__overlay-image"},data:{item:{url:"https://assets.kvass.no/662f5a4c554d2a0a991d16f2"}}},{component:"Text",condition:!!t("title"),props:{style:"margin-bottom: 2em",textAlign:"center"},data:{content:`<h1>${t("title")}</h1>`}}]}}]}}]}},{condition:t("content"),component:"Section",props:{width:"small",theme:"none",class:"hero-content-section"},blocks:{default:[{component:"Text",props:{textAlign:"center",class:"hero-content"},data:{content:t("content")}}]}},{component:"Section",props:{class:"additional-section",width:"full",theme:"primary"},blocks:{default:[{component:"Grid",props:{columns:"1fr 1fr",gap:"0",class:"additional-section__wrapper"},blocks:{default:[...(t("customFields.additional-sections")||[]).map(e=>{var n,o,s;return{condition:!!(e!=null&&e.content||(n=e==null?void 0:e.images)!=null&&n[0]||(s=(o=e==null?void 0:e.chart)==null?void 0:o.items)!=null&&s[0]),component:"ImagesTextSection",data:{content:e},props:{showResponsivePadding:!1,layout:e.layout,width:e.width||"full",theme:e.theme||"white",captionPlacement:e["image-caption-placement"]||"inside",class:"additional-section"}}})]}}]}},{condition:()=>!!(t("customFields.priceConsiderations")||[]).filter(e=>e?e.content||e.title||e.price||e.propertyType:!1).length,component:"Section",props:{width:"large",theme:"none",style:"--section-padding-inline: 0rem"},blocks:{default:[{component:"Text",data:{content:"<h3>Prisbetraktninger</h3>"},props:{class:"price-considerations-title"}},{component:"Grid",props:{gap:"0rem",justifyContent:"center",columns:2,class:"price-considerations-grid"},blocks:{default:[...(t("customFields.priceConsiderations")||[]).filter(e=>{var n,o;return e?e.title||e.price||e.propertyType||e.content||((o=(n=e==null?void 0:e.chart)==null?void 0:n.items)==null?void 0:o[0]):!1}).map((e,n)=>{const o=n%2===0,s=n,a=n+1;return[{component:"Price",data:{index:n,title:e.title,price:e.price,propertyType:e.propertyType,content:e.content},props:{class:"",style:`order: ${o?s:a}`}},{component:"Chart",data:{value:e.chart},props:{class:"price-considerations-chart",style:`order: ${o?a:s}`}}]}).flat()]}}]}},{component:"Section",props:{width:"large",theme:"none",class:"price-table-section"},condition:()=>{const e=t("customFields.priceTable.content"),n=(t("customFields.priceTable.table.rows")||[]).some(s=>s==null?void 0:s.value),o=(t("customFields.priceTable.table.columns")||[]).some(s=>s==null?void 0:s.label);return e||n||o},blocks:{default:[{component:"Text",condition:t("customFields.priceTable.content"),data:{content:t("customFields.priceTable.content")}},{component:"Table",condition:()=>{const e=(t("customFields.priceTable.table.rows")||[]).some(o=>o==null?void 0:o.value),n=(t("customFields.priceTable.table.columns")||[]).some(o=>o==null?void 0:o.label);return e||n},data:{rows:t("customFields.priceTable.table.rows"),columns:t("customFields.priceTable.table.columns")},props:{theme:"border"}}]}}]),M=Object.freeze(Object.defineProperty({__proto__:null,default:G},Symbol.toStringTag,{value:"Module"})),E=h(({get:t,t:p})=>[{condition:t("media.cover.length"),component:"Carousel",data:{items:t("media.cover").map(e=>({src:e.url,alt:e.alt||e.description,type:e.type,caption:e.description||"",aspectRatio:"initial",height:"100%",width:"100%"}))},props:{"portal-blocked-warning-to":".hero",showNavigation:!1,showPagination:!1,autoplay:4e3,class:"hero hero__placement--center"},blocks:{overlay:[{component:"Flex",condition:!!t("title"),props:{class:"hero__overlay hero__overlay-placement--center",justify:"center",nowrap:!0,direction:"column"},blocks:{default:[{component:"Section",props:{width:"medium",class:"hero__overlay-content"},blocks:{default:[{component:"Image",props:{style:"margin-bottom: 2em",height:"5rem",size:"contain",class:"hero__overlay-image"},data:{item:{url:"https://assets.kvass.no/662f5a4c554d2a0a991d16f2"}}},{component:"Text",condition:!!t("title"),props:{style:"margin-bottom: 2em",textAlign:"center"},data:{content:`<h1>${t("title")}</h1>`}}]}}]}}]}},{condition:t("content"),component:"Section",props:{width:"small",theme:"none",class:"hero-content-section"},blocks:{default:[{component:"Text",props:{textAlign:"center",class:"hero-content"},data:{content:t("content")}}]}},{component:"Section",props:{class:"additional-section",width:"full",theme:"primary"},blocks:{default:[{component:"Grid",props:{columns:"1fr 1fr",gap:"0",class:"additional-section__wrapper"},blocks:{default:[...(t("customFields.additional-sections")||[]).map(e=>{var n,o,s;return{condition:!!(e!=null&&e.content||(n=e==null?void 0:e.images)!=null&&n[0]||(s=(o=e==null?void 0:e.chart)==null?void 0:o.items)!=null&&s[0]),component:"ImagesTextSection",data:{content:e},props:{showResponsivePadding:!1,layout:e.layout,width:e.width||"full",theme:e.theme||"white",captionPlacement:e["image-caption-placement"]||"inside",class:"additional-section"}}})]}}]}}]),V=Object.freeze(Object.defineProperty({__proto__:null,default:E}
1,Symbol.toStringTag,{value:"Module"})),_=Object.assign({"./offer.ts":O,"./project.ts":M,"./subpage.ts":V}),y={};for(const t in _)if(t&&t.includes(".ts")){const p=t.replace(/(\.\/|\.ts)/g,"");y[p]=_[t].default}const ne=x({__name:"post",setup(t){var f;const p=F(),e=S();B();const{t:n}=P();j("post",{});const{identifier:o}=e.meta||p.payload.data.meta,a=(f=C().$state)==null?void 0:f.item,i=u(()=>({Reference:k,Price:T})),c=u(()=>((a==null?void 0:a.posts)||[]).find(r=>r.slug===((o==null?void 0:o.split("/")[1])||o))),m=u(()=>{var r;return(((r=c.value.customFieldsConfig)==null?void 0:r.map(b=>b.source))||["subpage"])[0]}),l=u(()=>{var r;return{...c.value,source:m.value,posts:a==null?void 0:a.posts,page:{...a,logo:(r=a==null?void 0:a.media)==null?void 0:r.logo}}}),g=u(()=>{const r=y[m.value];return r(p,l.value,n)});return(r,b)=>{const w=v;return d(c)&&d(m)?(z(),R("div",{key:0,class:A(`em1-sale-page-post post post-type--${d(m)} post-view--${d(c).slug}`)},[$(w,{blocks:d(g),"custom-components":d(i),data:d(l)},null,8,["blocks","custom-components","data"])],2)):I("",!0)}}});export{ne 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.