PageSourceSearch

https://www.mobibikes.ca/_nuxt/CbBLN1QT.js

js mobibikes.ca collected 2026-10-02 07:51:40 UTC 4,797 bytes, 2 lines download raw bytes

1import{_ as M}from"./Ci7JURf8.js";import{_ as P}from"./-VqVU_yW.js";import{b5 as A,b6 as D,b as $,e as q,Z as B,az as H,k as E,f as _,r as L,b7 as z,d as F,c as S,o as i,A as u,a as m,q as h,B as k,g as l,G as g,a_ as G,J as r,a$ as K,H as N,I as Q,b8 as R,w as x,p as V,t as j,a0 as J,b9 as Z,h as O}from"./DQw3abuF.js";import{_ as U}from"./zPpuwr7z.js";import{_ as X}from"./7k3tP4vD.js";import{S as Y,g as W}from"./BfV2dnEt.js";import{u as tt}from"./CFwq43ir.js";import"./BoYeCoEM.js";function et(t){const e=t?.attributes;return{kpiSections:(e?.kpi_sections??[]).map(n=>({name:n.name??"",kpis:(n.kpis??[]).filter(o=>o.value&&o.caption||o.dynamic_metric_key).map(o=>({value:o.value??0,valueSuffix:o.value_suffix??"",caption:o.caption??"",dynamicMetricKey:o.dynamic_metric_key??""}))})),hero:{images:D(e?.hero?.image),title:e?.hero?.title??"",subtitle:e?.hero?.subtitle??""},contentItems:(e?.content||[]).map(ot),bottomContentTitle:e?.bottom_section?.title,bottomContentImage:A(e?.bottom_section?.image,"small")}}function ot(t){switch(t.__component){default:return at(t)}}function at(t){return{type:"common.image-with-text",props:{title:t.title??"",text:t.text??"",buttonText:t?.cta_text??"",buttonLocation:t?.cta_link??"",image:A(t.image,"medium")}}}async function nt(t){const{locale:e}=$(),{clientState:n}=q(),o=H(),s=B([]);if(!o.public.analyticsMetricsApiEndpoint)return{metrics:s};const{data:a}=await tt(o.public.analyticsMetricsApiEndpoint,{query:{locale:e.value,fields:t.value,area_ids:n.areaIds.join(",")},watch:[e]},"$TJ6QLw1FrQ");return s.value=a.value??[],{metrics:s}}async function st(){const{data:t,error:e,pending:n,refresh:o}=await E("about",{queryParams:{populate:["hero.image","content.image","bottom_section","bottom_section.image","seo.image","kpi_sections.kpis"]}}),s=_(()=>et(t.value?.data)),a=_(()=>t.value?.data?.attributes?.seo?L(t.value?.data?.attributes?.seo):z(t.value?.data?.attributes?.hero));return{data:s,seoData:a,error:e,pending:n,refresh:o}}const ct={class:"FcwTestimony"},it={class:"FcwTestimony__avatar"},mt={cite:"https://www.huxley.net/bnw/four.html"},rt={class:"FcwTestimony__blockquote__quote"},ut={class:"FcwTestimony__blockquote__author"},lt=F({__name:"FcwTestimony",props:{image:{},text:{},author:{}},setup(t){return(e,n)=>{const o=X;return i(),S("div",ct,[u("div",it,[m(o,h(t.image,{size:"144"}),null,16)]),u("figure",null,[u("blockquote",mt,[u("p",rt,"“"+k(t.text)+"”",1)]),u("figcaption",ut,k(t.author),1)])])}}}),_t={class:"FcwShowcaseAboutTemplate"},pt={id:"kpis"},dt=F({__name:"FcwShowcaseAboutTemplate",props:{hero:{},kpiSections:{},contentItems:{},bottomContentTitle:{},bottomContentImage:{}},setup(t){const e=t,n=_(()=>e.contentItems.reduce((s,a,c)=>a.type==="common.image-with-text"?[...s,c]:s,[]));function o(s){return n.value.findIndex(a=>a===s)%2!==0}return(s,a)=>{const c=M,p=P,d=G,y=U,v=lt,f=W,b=Y,T=K,I=R;return i(),S("div",_t,[m(c,h(t.hero,{"cta-location":"#kpis"}),null,16),u("div",pt,[t.kpiSections.length>0?(i(),l(d,{key:0,class:"FcwShowcaseAboutTemplate__kpisSections",color:"neutral--light-4"},{default:r(()=>[m(p,{"kpi-sections":t.kpiSections},null,8,["kpi-sections"])]),_:1})):g("",!0)]),m(d,{class:"FcwShowcaseAboutTemplate__content"},{default:r(()=>[m(T,null,{default:r(()=>[m(b,{columns:"1",gap:"64"},{default:r(()=>[(i(!0),S(N,null,Q(t.contentItems,(w,C)=>(i(),l(f,{key:C,span:"1"},{default:r(()=>[w.type==="common.image-with-text"?(i(),l(y,h({key:0,ref_for:!0},w.props,{reverse:o(C)}),null,16,["reverse"])):g("",!0),w.type==="common.testimony"?(i(),l(v,h({key:1,ref_for:!0},w.props),null,16)):g("",!0)]),_:2},1024))),128))]),_:1})]),_:1})]),_:1}),t.bottomContentImage.src?(i(),l(d,{key:0},{default:r(()=>[m(T,{class:"FcwShowcaseAboutTemplate__bottomContent"},{default:r(()=>[u("h5",null,k(t.bottomContentTitle),1),m(I,h({class:"FcwShowcaseAboutTemplate__bottomContentImage"},t.bottomContentImage,{height:"100%",corners:"sharp"}),null,16)]),_:1})]),_:1})):g("",!0)])}}});function ft(t,e){const n=_(()=>t.kpiSections.map(o=>({name:o.name,kpis:o.kpis.reduce((s,a)=>{if(a.dynamicMetricKey&&e.value){const c=e.value.find(p=>p.key===a.dynamicMetricKey);return s.concat(c?{value:c.value,valueSuffix:c.unit,caption:c.label}:[])}return s.concat(a.value?{value:a.value,valueSuffix:a.valueSuffix,caption:a.caption}:[])},[])})));return{...t,kpiSections:n.value}}const Ft=F({__name:"about",async setup(t){let e,n;const{data:o,seoData:s,error:a}=([e,n]=x(()=>st()),e=await e,n(),e),c=_(()=>{const y=o.value.kpiSections.flatMap(f=>f.kpis.filter(b=>b.dynamicMetricKey).map(b=>b.dynamicMetricKey));return[...new Set(y)].join(",")}),{metrics:p}=([e,n]=x(()=>nt(c)),e=await e,n(),e),d=_(()=>ft(o.value,p));return V(a),j(s),(y,v)=>{const f=dt;return i(),l(f,J(Z(O(d))),null,16)}}});
1export{Ft as default};
2//# sourceMappingURL=CbBLN1QT.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.