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