PageSourceSearch

https://www.leiriashopping.pt/_nuxt/_slug_.413b7f04.js

js leiriashopping.pt collected 2026-10-05 22:04:19 UTC 6,331 bytes, 1 lines download raw bytes

1import{_ as L,g as x,f as M}from"./utils.ae9e3b84.js";import{_ as B}from"./ShopsGallery.2b1c41aa.js";import{_ as V,f as $,g as O,h as W,m as E,q as j,c as a,a as s,s as y,i as e,j as T,t as l,b as h,k as _,d as u,F as g,r as S,o,p as A,e as H}from"./entry.f9cbded1.js";import{u as Y}from"./useStrapi4.7f7d93d7.js";import{g as q}from"./schedule.8043c269.js";import{m as z}from"./index.da1eb3fd.js";import"./nuxt-link.a9ffb7e7.js";const C=m=>(A("data-v-df04575a"),m=m(),H(),m),D={class:"shop d-lg-flex"},G={class:"shop__content px-4 py-5 p-md-5 py-xl-6 px-xl-7"},J={class:"mb-4"},K={class:"shop__name me-4"},Q={key:0,class:"shop__social-item me-3"},U=["href"],X={key:1,class:"shop__social-item me-3"},Z=["href"],ee={key:2,class:"shop__social-item me-3"},se=["href"],te={key:3,class:"shop__social-item me-3"},oe=["href"],ae={key:4,class:"shop__social-item me-3"},ne=["href"],ie={key:5,class:"shop__social-item me-3"},re=["href"],_e={key:6,class:"shop__social-item me-3"},le=["href"],ce={class:"shop__info row"},he={class:"col-sm-6"},de={class:"shop__floor"},pe={class:"shop__floor-number"},ue=C(()=>s("div",{class:"shop__schedule-indicator"},null,-1)),me={class:"shop__schedule-content ms-3"},fe={class:"shop__schedule-state mt-0 mb-1"},be={class:"mb-1"},ge={class:"shop__schedule-time my-0"},ke={class:"shop__schedule-time my-0"},ve={class:"col-sm-6"},ye={class:"shop__contact-list"},Se={key:0,class:"mb-2"},Ce=["href"],Pe={key:1,class:"mb-2"},we=["href"],Ne={key:2,class:"mb-2"},xe=["href"],Me={key:3,class:"mb-2"},Ee=["href"],Te=["innerHTML"],Fe={key:0,class:"mb-4"},Ie=C(()=>s("div",{class:"mb-2"}," Serviços ",-1)),Re={class:"shopping__badge --sm me-3"},Le={key:1,class:"mb-4"},Be=C(()=>s("div",{class:"mb-2"}," Categorias ",-1)),Ve={class:"shopping__badge --sm me-3"},$e={class:"shop__related-section py-6"},Oe={class:"container"},We={__name:"[slug]",async setup(m){let f,P;const F=$(),I=z({breaks:!0}),{findOne:R}=Y(),{data:w}=([f,P]=O(()=>R("shops",{populate:{name:!0,description:!0,email:!0,phone:!0,mobilePhone:!0,photo:!0,links:!0,floor:!0,logo:!0,schedule:{populate:{periods:{populate:"*"}},fields:["periods"]},shopCategories:{populate:{name:!0,slug:!0,parentCategory:!0},fields:["name","slug","parentCategory"]},shopServices:!0},filters:{slug:F.params.slug},fields:["name","description","email","logo","phone","mobilePhone","photo","links","floor","schedule","shopCategories","shopServices"],sort:"name"})),f=await f,P(),f);if(w.length<=0)throw W({statusCode:404,statusMessage:"Page Not Found"});const t=w[0].attributes,i=E({});t.links.forEach(n=>{i.value[n.socialNetwork]=n.link});const d=E([]);t.shopCategories.data.forEach(n=>{var v,p,c,b,r,N;d.value.includes((v=n.attributes)==null?void 0:v.name)||d.value.push(n.attributes.name),(p=n.attributes.parentCategory)!=null&&p.data&&!d.value.includes((b=(c=n.attributes.parentCategory)==null?void 0:c.data)==null?void 0:b.attributes.name)&&d.value.unshift((N=(r=n.attributes.parentCategory)==null?void 0:r.data)==null?void 0:N.attributes.name)});const k=()=>q(t.schedule.data.attributes.periods);return(n,v)=>{const p=L,c=j("font-awesome-icon"),b=B;return o(),a(g,null,[s("article",D,[s("aside",{class:y(["shop__image-wrapper",{"--fallback":!e(t).photo.data}])},[e(t).photo.data?(o(),T(p,{key:0,class:"shop__image",src:("getStrapiMedia"in n?n.getStrapiMedia:e(x))(e(t).photo.data.attributes.url),alt:e(t).photo.data.attributes.alterntiveText||e(t).name},null,8,["src","alt"])):(o(),T(p,{key:1,class:"shop__logo",src:("getStrapiMedia"in n?n.getStrapiMedia:e(x))(e(t).logo.data.attributes.url),alt:e(t).logo.data.attributes.alternativeText||e(t).name},null,8,["src","alt"]))],2),s("div",G,[s("header",J,[s("h1",K,l(e(t).name),1),s("ul",{class:y(["shop__social",{"text-end":n.orientation==="right"}])},[e(i).Facebook?(o(),a("li",Q,[s("a",{href:e(i).Facebook,target:"_blank"},[h(c,{icon:["fab","facebook-f"]})],8,U)])):_("",!0),e(i).Instagram?(o(),a("li",X,[s("a",{href:e(i).Instagram,target:"_blank"},[h(c,{icon:["fab","instagram"]})],8,Z)])):_("",!0),e(i).Whatsapp?(o(),a("li",ee,[s("a",{href:e(i).Whatsapp,target:"_blank"},[h(c,{icon:["fab","whatsapp"]})],8,se)])):_("",!0),e(i).Youtube?(o(),a("li",te,[s("a",{href:e(i).Youtube,target:"_blank"}
1,[h(c,{icon:["fab","youtube"]})],8,oe)])):_("",!0),e(i).Pinterest?(o(),a("li",ae,[s("a",{href:e(i).Pinterest,target:"_blank"},[h(c,{icon:["fab","pinterest"]})],8,ne)])):_("",!0),e(i).Reddit?(o(),a("li",ie,[s("a",{href:e(i).Reddit,target:"_blank"},[h(c,{icon:["fab","reddit"]})],8,re)])):_("",!0),e(i).Site?(o(),a("li",_e,[s("a",{href:e(i).Site,target:"_blank"},[h(c,{icon:["fas","house"]})],8,le)])):_("",!0)],2)]),s("main",null,[s("div",ce,[s("div",he,[s("p",de,[u(" Piso "),s("span",pe,l(e(t).floor),1)]),s("div",{class:y(["shop__schedule mb-4",{"--open":k().find(r=>r.isOpenRightNow)}])},[ue,s("div",me,[s("p",fe,l(k().find(r=>r.isOpenRightNow)?"Aberto":"Fechado"),1),(o(!0),a(g,null,S(k(),r=>(o(),a("div",be,[s("p",ge,l(r.open==="Encerrado"?"Encerrado":"")+" "+l(r.days),1),s("p",ke,l(r.times),1)]))),256))])],2)]),s("div",ve,[s("ul",ye,[e(t).phone?(o(),a("li",Se,[u(" Telefone "),s("a",{class:"shop__contact --no-underline",href:`tel:+351${e(t).phone}`}," (+351) "+l(("formattedPhoneNumber"in n?n.formattedPhoneNumber:e(M))(e(t).phone)),9,Ce)])):_("",!0),e(t).mobilePhone?(o(),a("li",Pe,[u(" Telemóvel "),s("a",{class:"shop__contact --no-underline",href:`tel:+351${e(t).mobilePhone}`}," (+351) "+l(("formattedPhoneNumber"in n?n.formattedPhoneNumber:e(M))(e(t).mobilePhone)),9,we)])):_("",!0),e(t).email?(o(),a("li",Ne,[u(" Email "),s("a",{class:"shop__contact --no-underline",href:`mailto:${e(t).email}`},l(e(t).email),9,xe)])):_("",!0),e(i).Site?(o(),a("li",Me,[u(" Website "),s("a",{class:"shop__contact --no-underline",href:`mailto:${e(t).email}`,target:"_blank"},l(e(i).Site),9,Ee)])):_("",!0)])]),s("div",{class:"shop__description col-xl-10 my-4 markdown",innerHTML:e(I).render(e(t).description)},null,8,Te),e(t).shopServices.data.length>0?(o(),a("div",Fe,[Ie,(o(!0),a(g,null,S(e(t).shopServices.data,r=>(o(),a("span",Re,l(r.attributes.name),1))),256))])):_("",!0),e(d).length>0?(o(),a("div",Le,[Be,(o(!0),a(g,null,S(e(d),r=>(o(),a("span",Ve,l(r),1))),256))])):_("",!0)])])])]),s("section",$e,[s("div",Oe,[h(b,{title:"Lojas relacionadas"})])])],64)}}},Ge=V(We,[["__scopeId","data-v-df04575a"]]);export{Ge 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.