1import{_ as V}from"./Ci7JURf8.js";import{_ as D}from"./Dw7Lepr0.js";import{b6 as O,b5 as w,aZ as A,k as H,f as C,r as I,b7 as W,d as $,c as g,o as i,a as n,A as h,g as r,G as _,q as v,a_ as M,J as a,a$ as N,a0 as T,b9 as k,B as F,H as y,I as x,w as R,p as q,t as E,h as z}from"./DQw3abuF.js";import{b as G,_ as J,c as U,a as Z}from"./DXeR-gIx.js";import{_ as j}from"./zPpuwr7z.js";import{_ as K,a as Q}from"./DXkZIkcR.js";import"./BfV2dnEt.js";import"./59G1EeP3.js";import"./CxAMSI1g.js";import"./Dqtxcsig.js";import"./B7t6Wlje.js";import"./CUKz77oz.js";import"./CFwq43ir.js";function X(o){const t=o?.attributes,l={images:O(t?.hero?.image),title:t?.hero?.title??"",subtitle:t?.hero?.subtitle??""},u={title:t?.premium_banner_section?.title??"",items:(t?.premium_banner_section?.features??[]).filter(e=>!!e.icon).map(e=>({icon:e.icon??"arrowRight",text:e.text??""}))},p={title:t?.product_overview_section?.title??"",image:w(t?.product_overview_section?.image,"medium"),features:(t?.product_overview_section?.features??[]).filter(e=>!!e.icon).map(e=>({icon:e.icon??"arrowRight",text:e.text??""}))},s=(t?.information_section?.information_items??[]).map(e=>({image:w(e.image,"medium"),text:e.text??"",buttonText:e.cta_text,buttonLocation:e.cta_link})),c={title:t?.how_it_works_section_title??"",items:(t?.how_it_works_section??[]).map(e=>({title:e.title??"",description:e.description,steps:(e.steps??[]).map(d=>d.text??""),image:w(e.image,"medium"),ctaText:e.cta_text,ctaLink:e.cta_link}))},b={title:t?.video_mosaic_section?.title??"",videos:(t?.video_mosaic_section?.videos??[]).map(e=>({provider:e.provider??"youtube",code:e.code??""}))},f={title:t?.offers_section_title??"",offers:(t?.offers_section??[]).map(e=>({title:e.title??"",description:e.description??"",image:e.image&&w(e.image,"medium"),termsTitle:e.terms_title??"",termsContent:e.terms_content??"",rules:(e.description_items??[]).map(d=>d.text??"").filter(d=>!!d),buttonText:e.cta_text,buttonLocation:e.cta_link}))},B={serviceType:A.Leasing,title:t?.btc_section?.title??"",description:t?.btc_section?.description??"",image:w(t?.btc_section?.image,"medium")},L={title:t?.btb_section?.title??"",description:t?.btb_section?.description??"",buttonText:t?.btb_section?.cta_text??"",buttonLocation:t?.btb_section?.cta_link??"",imageUrl:w(t?.btb_section?.image,"medium").src};return{hero:l,premiumBannerSection:u,productOverviewBannerSection:p,informationSection:s,howItWorksSection:c,embedVideosSection:b,offersSection:f,mobileAppsBanner:B,ctaBanner:L}}const Y=["hero.image","premium_banner_section.features","product_overview_section.image","product_overview_section.features","information_section.information_items.image","how_it_works_section.image","how_it_works_section.steps","video_mosaic_section.videos","offers_section.image","offers_section.description_items","btb_section.image","btc_section.image","seo.image"];async function ee(){const{data:o,error:t,pending:l,refresh:u}=await H("showcase-leasing",{queryParams:{populate:Y}}),p=C(()=>X(o.value?.data)),s=C(()=>o.value?.data?.attributes?.seo?I(o.value?.data?.attributes?.seo):W(o.value?.data?.attributes?.hero));return{data:p,seoData:s,error:t,pending:l,refresh:u}}const te={class:"FcwShowcaseLeasingTemplate"},oe=$({__name:"FcwShowcaseLeasingTemplate",props:{hero:{},premiumBannerSection:{},productOverviewBannerSection:{},informationSection:{},howItWorksSection:{},embedVideosSection:{},offersSection:{},mobileAppsBanner:{},ctaBanner:{}},setup(o){return(t,l)=>{const u=V,p=D,s=N,c=M,b=G,f=j,B=J,L=U,e=Z,d=K,P=Q;return i(),g("div",te,[n(u,v(o.hero,{"cta-location":"#discover"}),null,16),l[0]||(l[0]=h("div",{id:"discover"},null,-1)),o.premiumBannerSection.items.length?(i(),r(c,{key:0,class:"FcwShowcaseLeasingTemplate__premiumBannerSection FcwShowcaseLeasingTemplate__overlappingSection",corners:"sharp",color:"neutral--dark-5"},{default:a(()=>[n(s,null,{default:a(()=>[n(p,T(k(o.premiumBannerSection)),null,16)]),_:1})]),_:1})):_("",!0),o.productOverviewBannerSection.title?(i(),r(c,{key:1,class:"FcwShowcaseLeasingTemplate__productOverviewSection FcwShowcaseLeasingTemplate__overlappingSection",color:"neutral--light-5"},{default:a(()=>[n(s,null,{default:a(()=>[h("h3",null,F(o.productOverviewBannerSection.title),1),n(b,T(k(o.productOverviewBannerSection)),null,16)]),_:1})]),_:1})):_("",!0),o.informationSection.length?(i(),r(c,{key:2,class:"FcwShowcaseLeasingTemplate__infoSection FcwShowcaseLeasingTemplate__overlappingSection",color:"neutral--light-5"},{default:a(()=>[(i(!0),g(y,null,x(o.informationSection,(S,m)=>(i(),r(s,{key:m},{default:a(()=>[n(f,v({ref_for:!0},S,{reverse:m%2===0}),null,16,["reverse"])]),_:2},1024))),128))]),_:1})):_("",!0),o.howItWorksSection.items.length?(i(),r(c,{key:3,class:"FcwShowcaseLeasingTemplate__howItWorksSection"},{default:a(()=>[n(s,null,{default:a(()=>[h("h3",null,F(o.howItWorksSection.title),1),(i(!0),g(y,null,x(o.howItWorksSection.items,(S,m)=>(i(),g("div",{class:"FcwShowcaseLeasingTemplate__howItWorks",key:m},[n(B,v({class:"FcwShowcaseLeasingTemplate__howItWorksCard"},{ref_for:!0},S,{reverse:m%2===0}),null,16,["reverse"])]))),128))]),_:1})]),_:1})):_("",!0),o.embedVideosSection.videos.length?(i(),r(c,{key:4,class:"FcwShowcaseSharingTemplate__embedVideosSection"},{default:a(()=>[n(s,null,{default:a(()=>[h("h3",null,F(o.embedVideosSection.title),1),n(L,{videos:o.embedVideosSection.videos},null,8,["videos"])]),_:1})]),_:1})):_("",!0),o.offersSection.offers.length?(i(),r(c,{key:5,class:"FcwShowcaseLeasingTemplate__offersSection FcwShowcaseLeasingTemplate__overlappingSection",color:"neutral--light-3"},{default:a(()=>[n(s,null,{default:a(()=>[h("h3",null,F(o.offersSection.title),1),(i(!0),g(y,null,x(o.offersSection.offers,(S,m)=>(i(),g("div",{class:"FcwOfferWrapper",key:m},[n(e,v({ref_for:!0},S,{reverse:m%2===0}),null,16,["reverse"])]))),128))]),_:1})]),_:1}
1)):_("",!0),o.mobileAppsBanner.title?(i(),r(c,{key:6,class:"FcwShowcaseLeasingTemplate__mobileAppsBannerSection FcwShowcaseLeasingTemplate__overlappingSection",color:"primary"},{default:a(()=>[n(s,null,{default:a(()=>[n(d,T(k(o.mobileAppsBanner)),null,16)]),_:1})]),_:1})):_("",!0),o.ctaBanner.title?(i(),r(c,{key:7,class:"FcwShowcaseLeasingTemplate__ctaBannerSection FcwShowcaseLeasingTemplate__overlappingSection",color:"neutral--dark-4"},{default:a(()=>[n(s,null,{default:a(()=>[n(P,v(o.ctaBanner,{"background-color":"primary--light-1"}),null,16)]),_:1})]),_:1})):_("",!0)])}}}),ge=$({__name:"leasing",async setup(o){let t,l;const{data:u,seoData:p,error:s}=([t,l]=R(()=>ee()),t=await t,l(),t);return q(s),E(p),(c,b)=>{const f=oe;return i(),r(f,T(k(z(u))),null,16)}}});export{ge as default}; 2//# sourceMappingURL=BLY4NUcm.js.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.