PageSourceSearch

https://www.miway.co.za/_nuxt/DIEZPdRv.js

js miway.co.za collected 2026-10-04 13:46:48 UTC 2,448 bytes, 1 lines download raw bytes

1import{u as T,a as U,_ as j}from"./CIjT83HH.js";import{S as v}from"./Dpe8tZHy.js";import{d as x,a as A,j as E,l as F,k as N,n as w,D as O,p as m,m as c,y as S,e as V,o as z,i as n,R as q}from"./B6LkSsyp.js";import{H as K}from"./B9mjsiIt.js";import"./B-qdMzz8.js";import"./M53gFSZD.js";import"./DCR7GXfE.js";import"./CJqC4vI-.js";import"./-stVx9LP.js";import"./DEAyErXm.js";import"./BFg4lEjj.js";import"./ChJj5-Kz.js";import"./D97McXof.js";import"./LPFH-yEd.js";import"./DmmMpdxM.js";import"./CUqs8NND.js";import"./DSamgf7X.js";import"./DeCFhbXC.js";const la=x({__name:"[uid]",async setup(Z){var l,f,y,g,_;let r,u;const s=A(),i=E(),o=s.params.uid,{data:e,error:D,refresh:P}=([r,u]=F(async()=>N(`[page-${o}-${s.fullPath}]`,async()=>{try{const a=await Promise.any([i.client.getByUID("page",o),i.client.getByUID("product",o),i.client.getByUID("campaign",o)]);if(!a){q({statusCode:404,message:"could not find page"});return}return a}catch{q({statusCode:404,message:"could not find page"})}})),r=await r,u(),r);w(async()=>{var a,t;(a=e==null?void 0:e.value)!=null&&a.data||(await P(),(t=e==null?void 0:e.value)!=null&&t.data||await O(`${v.page_404}?code=404&retryPage=${s.path}`))});const p=((l=e.value)==null?void 0:l.data.meta_title)??v.company_name,k=((f=e.value)==null?void 0:f.data.meta_description)??"",H=((g=(y=e.value)==null?void 0:y.data)==null?void 0:g.meta_keywords)??"",B=i.asImageSrc((_=e.value)==null?void 0:_.data.meta_image)??void 0,C=s.fullPath;m(K({pageTitle:p,metaDescription:k,metaKeywords:H,metaImage:B,pageUrl:C})),c(()=>{var a;return(a=e.value)==null?void 0:a.type});const I=c(()=>{var a,t,h;return(h=(t=(a=e.value)==null?void 0:a.data)==null?void 0:t.slices)==null?void 0:h.some(R=>R.slice_type==="faqs")}),{productSchema:J,fetch:L}=T(e.value,{brandName:"Miway.co.za",defaultLogo:"https://miway-website.cdn.prismic.io/miway-website/Z5yRt5bqstJ9-E2V_logo_miway.svg?auto=compress,format",ratingValue:"4.51",ratingCount:"43645"}),{faqSchema:d,fetch:$}=U(e.value),b=c(()=>JSON.stringify(J.value)),M=c(()=>d.value?JSON.stringify(d.value):null);return S(b,a=>{a&&m({script:[{type:"application/ld+json",innerHTML:a,key:"product-schema-ld"}]})},{immediate:!0}),S(M,a=>{a&&m({script:[{type:"application/ld+json",innerHTML:a,key:"faq-schema-ld"}]})},{immediate:!0}),w(()=>{e.value&&(L(),I.value&&$())}),(a,t)=>(z(),V(j,{"page-title":n(p),uid:n(o),page:n(e),error:n(D)},null,8,["page-title","uid","page","error"]))}});export{la 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.