PageSourceSearch

https://www.kvass.no/_nuxt/BmEdDsll.js

js kvass.no collected 2026-10-09 03:25:37 UTC 15,599 bytes, 4 lines download raw bytes

1import{_ as L}from"./B-RgwXIh.js";import{d as W}from"./DOAlFwLM.js";import{g as x}from"./BG8obbqW.js";import{d as K}from"./CvkQJ_cH.js";import{u as G}from"./6Fr_hrxp.js";import{d as D,H as N,a as O,K as U,J as V,an as q,Q as C,af as R,G as _,N as z,S as E,W as H,f as I,C as M,q as A}from"./BcMBgSph.js";import"./Ct-zv-UT.js";import"./CMlsZsJ-.js";import"./y7mfHjbx.js";import"./CYSeIIeI.js";import"./DHMBf0Rw.js";import"./DcImEAY0.js";import"./DlAUqK2U.js";import"./xlB0K4Qr.js";import"./DLUkacm0.js";import"./Tqighqri.js";import"./DjYgzlXT.js";import"./BZMEH8Vt.js";import"./Bjx1jzmp.js";import"./BzY952Et.js";import"./D-MsIxA1.js";const J=K(({app:T,get:e,t:a})=>{var w,$,y,b,p,F,l,P,j,v,n,u,m,S;const c=e("customFields.flatfinder")||{},r=c["hide-flatfinder"],d=c["hide-residentials"],o=W(e("meta.rawTemplate")||"standard-project-ankerhagen"),f=!(e("customFields.map.settings")||[]).includes("hide-map-on-main-page")&&e("address.location.coordinates.length"),s=e("meta.parentPrefix")?`${e("meta.parentPrefix")}/residential`:"/residential";e("metadata.residentialProperties.saleType");const B=x([{key:"project-hero"},{key:"key-info"}],{get:e,app:T,t:a,page:"project",template:e("meta.rawTemplate")}),h=x([{key:"residential-templates"}],{get:e,app:T,t:a,page:"project",template:e("meta.rawTemplate")});return[...B,{layoutKey:"project-residential-info",component:"Section",condition:!!e("residential.name.length")&&e("type")==="single",props:{class:"section-top-level section-project-residential-intro"},blocks:{default:[{component:"Section",condition:!!e("residential.name"),props:{id:"info",class:"info-section",theme:"primary"},blocks:{default:{component:"Grid",props:{columns:($=(w=o==null?void 0:o["residential-info"])==null?void 0:w.props)==null?void 0:$.columns,gap:"2rem 5rem"},blocks:{default:[{component:"Flex",props:{direction:"column"},blocks:{default:[{component:"Text",props:{class:"residential__description"},data:{content:`<h1>${e("residential.name")}</h1>${e("residential.description")||""}`}}]}},{component:"ResidentialSummary",props:{event:"open:lead-dialog",class:"residential-summary",actionTheme:"primary",leadActionTheme:o==null?void 0:o.defaultButtonTheme},data:{item:e("residential")}}]}}}},{component:"Section",condition:!!e("residential.media.floorplan.length"),props:{class:"section-floorplan",theme:"primary",id:"section-floorplan"},blocks:{default:[{component:"Text",data:{content:`<h2>${a("floorplan",2)}</h2>`}},{component:"ImageGallery",variant:"grid",props:{columns:"repeat(auto-fill, minmax(350px, 1fr))",gap:"2rem",aspectRatio:1,captionPlacement:"outside"},data:{items:(e("residential.media.floorplan")||[]).map(t=>({...t,description:t.name,size:"contain"}))}}]}},{condition:!!e("residential.media.attachments.length"),component:"Divider"},{component:"Section",condition:!!e("residential.media.attachments.length"),props:{class:"section-residential-attachments",theme:"primary",id:"section-attachments"},blocks:{default:[{component:"Attachments",data:{attachments:e("residential.media.attachments")},props:{showIcons:!0,iconStyle:o.iconStyle}}]}}]}},{component:"Section",condition:e("type")==="single"&&!!e("residential.shop.published")&&!e("siteContext.siteSettings.hideShop"),props:{width:"full",id:"section-shop-intro",theme:"none"},blocks:{default:[{component:"ShopIntro",data:{residential:e("residential")},props:{actionVariant:"secondary"}}]}},{id:"project-intro-top-level-section",blockSortWrapper:1,component:"Section",props:{class:"section-top-level section-project-intro",id:"section-top-level-first"},blocks:{default:[...(e("customFields.additional-sections")||[]).map((t,i)=>{var k;return{layoutKey:"additional-sections",id:`project-additional-sections-item-${i}`,condition:!!(t.content||(k=t.images)!=null&&k[0]),component:"ImagesTextSection",data:{content:t},props:{showResponsivePadding:!1,layout:t.layout,width:t.width,theme:t.theme||(o==null?void 0:o.defaultTheme),captionPlacement:t["image-caption-placement"]||"inside",class:`additional-section home-additional-sections--${i}`},blocks:{"content-after":[{component:"WidgetPlacer",id:`project-additional-sections-item-content-${i}`,widgetPlacement:"after"}],"content-before":[{component:"WidgetPlacer",id:`project-additional-sections-item-content-${i}`,widgetPlacement:"before"}]}}}),{component:"WidgetPlacer",id:"project-widget-placer-2"},{condition:!!((b=(y=e("customFields.icons-2.items"))==null?void 0:y.filter(t=>t==null?void 0:t["icon-selected"]))!=null&&b.length&&(e("customFields.additional-sections")||[]).some(t=>{var i;return!!(t.content||(i=t.images)!=null&&i[0])})),component:"Divider"},{layoutKey:"icons-2",id:"project-icons-2",component:"Section",condition:!!((F=(p=e("customFields.icons-2.items"))==null?void 0:p.filter(t=>(t==null?void 0:t["icon-selected"])||(t==null?void 0:t.icon)))!=null&&F.length),width:"medium",props:{class:"section-icons",...(l=o.icons)==null?void 0:l.props,width:"medium",id:"section-icons-first"},blocks:{default:[{component:"Text",data:{content:`<h2>${e("customFields.icons-2.title")||a("travelDistance",2)}</h2>`}},{...o.icons,component:"IconsCards",data:{content:(e("customFields.icons-2.items")||[]).map(t=>({icon:t.icon,"icon-selected":t["icon-selected"],content:t.title,subtitle:t.subtitle,"enable-subtitle":!0}))}}]}}]}},{component:"WidgetPlacer",id:"project-top"},{id:"project-map",layoutKey:"map",component:"Section",props:{width:o==null?void 0:o.defaultWidth,class:`section-map ${f?"":"section--reset-padding"}`,id:"section-map"},blocks:{default:[{condition:f,component:"Map",props:{class:"map",theme:e("customFields.map.theme"),renderType:e("customFields.map.variant"),staticImage:e("customFields.map.static-image"),description:e("customFields.map.content"),mapIcon:e("customFields.map.pin-icon.url"),options:{zoom:"15"}},data:{address:!(e("customFields.map.settings")||[]).includes("hide-address")&&e("address.formatted"),coordinates:e("address.location.coordinates")}}]}},{id:"project-gallery",layoutKey:"media",component:"Section",condition:!!e("media.gallery.length"),props:{id:"section-gallery",class:"section-gallery",width:e("customFields.media.width")||"full",theme:e("customFields.media.theme")},blocks:{default:[{component:"MediaGallery",props:{style:"width: 100%;",variant:e("customFields.media.media-layout")||"carousel-plain",showCount:e("
1customFields.media.show-count"),numberOfGridColumns:e("customFields.media.number-of-columns"),showThumbnailNavigation:e("customFields.media.show-thumbnail-navigation")},data:{items:(e("media.gallery")||[]).map(t=>({src:t.url,caption:t.description,alt:t.alt||t.description,dimensions:t.dimensions,name:t.name,aspectRatio:"initial",...e("customFields.media.contain-images")&&e("customFields.media.media-layout")!=="grid"?{size:"contain"}:{},height:"100%",width:"100%",captionPlacement:"inside",type:t.type,focus:t.focus,thumbnail:t.thumbnail}))}}]}},{component:"Section",id:"project-second-top-level-section",blockSortWrapper:2,props:{class:"section-top-level-2 section-top-level",id:"section-top-level-second"},blocks:{default:[{layoutKey:"icons",id:"project-icons",component:"Section",condition:!!((j=(P=e("customFields.icons.items"))==null?void 0:P.filter(t=>(t==null?void 0:t["icon-selected"])||(t==null?void 0:t.icon)))!=null&&j.length),props:{class:"section-icons",id:"section-icons-second",...(v=o.icons)==null?void 0:v.props},blocks:{default:[{component:"Text",data:{content:`<h2>${e("customFields.icons.title")||a("highlightedInformation")}</h2>`}},{...o.icons,component:"IconsCards",data:{content:(e("customFields.icons.items")||[]).map(t=>({icon:t.icon,"icon-selected":t["icon-selected"],content:t.title,subtitle:t.subtitle,"enable-subtitle":!0}))}}]}},{component:"WidgetPlacer",id:"project-widget-placer-3"},{condition:!!((u=(n=e("customFields.icons.items"))==null?void 0:n.filter(t=>t==null?void 0:t["icon-selected"]))!=null&&u.length),component:"Divider"},...(e("customFields.additional-sections-2")||[]).map((t,i)=>{var k;return{layoutKey:"additional-sections-2",id:`project-additional-sections-2-item-${i}`,condition:!!(t.content||(k=t.images)!=null&&k[0]),component:"ImagesTextSection",data:{content:t},props:{showResponsivePadding:!1,layout:t.layout,width:t.width,theme:t.theme||(o==null?void 0:o.defaultTheme),captionPlacement:t["image-caption-placement"]||"inside",class:`additional-section home-additional-sections-2--${i}`},blocks:{"content-after":[{component:"WidgetPlacer",id:`project-additional-sections-2-item-content-${i}`,widgetPlacement:"after"}],"content-before":[{component:"WidgetPlacer",id:`project-additional-sections-2-item-content-${i}`,widgetPlacement:"before"}]}}}),...h,{id:"project-timeline",layoutKey:"project-phases",component:"Section",condition:Object.entries(e("customFields.project-phases")||{}).some(([t,i])=>!!i)&&!e("customFields.project-phases.hide-on-project"),props:{class:"timeline-section",theme:o==null?void 0:o.defaultTheme,id:"section-timeline"},blocks:{default:[{component:"Timeline",data:e("customFields.project-phases"),props:{content:`<h2>${a("projectProgress")}</h2>`,iconStyle:o==null?void 0:o.iconStyle}}]}}]}},{layoutKey:"cta",id:"project-cta-banner",component:"CtaBanner",condition:!!(e("customFields.cta.content")||e("customFields.cta.button")),props:{class:"cta-bottom",id:"attachments",backgroundImage:e("customFields.cta.background"),content:e("customFields.cta.content"),attachments:e("media.attachments"),brochure:e("media.brochure"),showAttachments:!(e("customFields.cta.settings")||[]).includes("hide-attachments"),showBrochure:!(e("customFields.cta.settings")||[]).includes("hide-brochure"),...(m=o==null?void 0:o["cta-bottom"])==null?void 0:m.props}},{layoutKey:"flatfinder",id:"project-flatfinder-and-residentials-top-level-section",component:"Section",condition:!!e("reference.customFields.flatfinder.useLegacy")&&!!(e("stats.total")&&(!r||!d)&&e("flatfinders.length")),props:{id:"flatfinder",class:"section-top-level"},blocks:{default:[{id:"project-flatfinder-and-residentials-section",component:"Section",props:{class:"flatfinder-section",theme:"primary"},blocks:{default:[{component:"ScrollAnchor",props:{value:"flatfinder"}},{id:"project-flatfinder",component:"FlatfinderLegacy",condition:!!(e("flatfinders.length")&&!r),props:{class:"flatfinder",title:e("customFields.flatfinder.title"),subtitle:e("customFields.flatfinder.subtitle"),pathPrefix:s,connectToResidentials:d?!1:e("customFields.flatfinder.connect-to-residentials"),markReservedAsSold:e("metadata.siteSettings.markReservedUnitsAsSold"),residentialListSettings:{hideFields:e("customFields.flatfinder.hideFields"),unitLabel:e("customFields.flatfinder.unitLabel"),statusLabels:e("customFields.flatfinder.statusLabels")}
1,preventFlatfinderNavigation:e("customFields.flatfinder.preventFlatfinderNavigation")},data:{flatfinders:e("flatfinders")},blocks:{between:[{id:"flatfinder-between",widgetPlacement:"after"}]}},{condition:d?!1:!e("customFields.flatfinder.connect-to-residentials"),id:"project-residentials",component:"Residentials",data:{project:e("id")},props:{markReservedAsSold:e("metadata.siteSettings.markReservedUnitsAsSold"),pathPrefix:s,title:e("customFields.project-settings.residentials")}}]}}]}},{layoutKey:"flatfinder",id:"project-flatfinder-and-residentials-top-level-section",component:"Section",condition:!e("project.customFields.flatfinder.useLegacy")&&!!(e("stats.total")&&e("flatfinders.length")&&!(r&&d)),props:{id:"flatfinder",class:"section-top-level",width:e("customFields.flatfinder.width")||"medium"},blocks:{default:[{id:"project-flatfinder-and-residentials-section",component:"Section",props:{class:"flatfinder-section",width:e("customFields.flatfinder.width")||"medium",theme:"primary"},blocks:{default:[{component:"ScrollAnchor",props:{value:"flatfinder"}},{id:"project-flatfinder",component:"Flatfinder",props:{class:"flatfinder",title:e("customFields.flatfinder.title"),subtitle:e("customFields.flatfinder.subtitle"),pathPrefix:s,layout:e("customFields.flatfinder.layout"),hoverCardLayout:e("customFields.flatfinder.hoverCardLayout"),hideTotalPrice:c.hideTotalPrice,hideRegisterInterest:c.hideRegisterInterest,hideIllustrationDisclaimer:c.hideIllustrationDisclaimer,hideFavorites:c.hideFavorites,hideHelp:c.hideHelp,hideFilter:c.hideFilter,showFloorplan:c.showFloorplan,hideFlatfinder:r,hideUnitLists:d},data:{flatfinders:e("flatfinders")}}]}}]}},{component:"WidgetPlacer",id:"project-bottom"},{id:"project-lead-and-contact-top-level-section",component:"Section",layoutKey:"lead-form",props:{id:"lead",class:"section-top-level"},blocks:{default:[{id:"project-lead-and-contact-section",component:"Section",props:{class:"section-lead",theme:"primary"},blocks:{default:[{component:"Grid",props:{columns:"0.9fr 1fr",gap:"7rem"},blocks:{default:[{component:"Flex",props:{gap:"3rem",class:"section-lead__contact",direction:"column"},blocks:{default:[{id:"project-openhouse",component:"Openhouse",data:{openhouses:e("openhouses")},props:{id:"openhouse",iconStyle:o==null?void 0:o.iconStyle},blocks:{top:[{component:"ScrollAnchor",props:{value:"openhouse"}}]}},{component:"Flex",props:{direction:"column"},blocks:{default:[{id:"project-contact-heading",component:"Text",props:{class:"project-contact-heading"},data:{content:`<h2>${a("getInTouch")}</h2>`}},{id:"project-contact-list",component:"ContactList",variant:(S=o==null?void 0:o.contact)==null?void 0:S.variant,blocks:Object.fromEntries((e("roles.salesman")||[]).flatMap((t,i)=>[[`contact-before-${i}`,{component:"WidgetPlacer",id:`project-contact-list-item-${i}`,widgetPlacement:"before",props:{style:"display: none;"}}],[`contact-after-${i}`,{component:"WidgetPlacer",id:`project-contact-list-item-${i}`,widgetPlacement:"after",props:{style:"display: none;"}}]])),props:{contactDetailStyle:"icon",gap:"2rem",columns:o.template==="lysholmen"?"repeat(2, 1fr)":"1fr",showEmailLabel:!0,iconStyle:o==null?void 0:o.iconStyle},data:{contacts:e("roles.salesman")}}]}}]}},{component:"Lead",props:{actionVariant:"secondary"},blocks:{top:{component:"ScrollAnchor",props:{value:"lead"}},title:{id:"project-lead-heading",component:"Text",data:{content:`
2                              <h2>${e("customFields.lead-form.title")||a("leadFormTitle")}</h2>
3                              ${e("customFields.lead-form.content")||""}
4                              `}}}}]}}]}}]}}]}),Q={key:0},be=D({__name:"home",async setup(T){var j,v;let e,a;const{t:c}=N(),r=O(),d=U(),o=V(),f=q(),s=(j=Object.keys(o.meta))!=null&&j.length?o.meta:r.payload.data.meta,B=C("metadata"),h=C().resourceSubType==="singular",{id:w}=s,y=(v=G().$state)==null?void 0:v.item,b=A(),p=A();h&&([e,a]=R(()=>f("getProjectResidential",{id:w}).then(n=>b.value=n==null?void 0:n.Project)),await e,a());const F=s==null?void 0:s.residentialTemplates;F&&([e,a]=R(()=>f("getResidentialTemplates",{ids:(F||[]).map(n=>n.id)}).then(n=>p.value=n==null?void 0:n.ResidentialTemplates)),await e,a());const l=I(()=>({meta:{...s,parentPrefix:d.value.baseUrl||s.parentPrefix||""},...y||{},residentialTemplates:p==null?void 0:p.value})),P=I(()=>{var u,m,S,t;const n=(m=(u=b.value)==null?void 0:u.residentials)==null?void 0:m[0];return J(r,{...l.value,meta:{...s,parentPrefix:d.value.baseUrl||s.parentPrefix||""},type:h&&(n!=null&&n.id)?"single":"default",siteContext:B,...h&&(n!=null&&n.id)?{residential:{...n,project:l.value},media:{...((S=l==null?void 0:l.value)==null?void 0:S.media)||[],gallery:[...((t=n==null?void 0:n.media)==null?void 0:t.gallery)||[]]}}:{}},c)});return(n,u)=>{const m=L;return _(y)?(M(),z("div",Q,[E(m,{class:"standard-project-home",blocks:_(P),data:_(l)},null,8,["blocks","data"])])):H("",!0)}}});
4export{be 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.