PageSourceSearch

https://shoppingways.com/_nuxt/BY2SAVED.js

js shoppingways.com collected 2026-10-02 00:56:34 UTC 4,864 bytes, 1 lines download raw bytes

1import{_ as N}from"./DEax3q1L.js";import{e as B,O as U,q as $,r as j,D,n as f,f as A,u as I,c as l,a as e,b as y,w,t as r,A as n,F as k,N as v,a3 as R,o as a,d as S,L as d}from"./Ct35PZoH.js";import{_}from"./Bz4AsJpL.js";import{a as z}from"./DiGp0oLc.js";import{d as V}from"./B26EToBd.js";const M={class:"post-type"},E={class:"py-8 bg-gray-50 px-3 md:px-0"},F={class:"max-w-7xl mx-auto"},q={class:"flex items-center whitespace-nowrap pb-4"},H={class:"inline-flex items-center"},K={class:"flex items-center text-xs text-gray-400 hover:text-red-600 focus:outline-none focus:text-red-600"},O={class:"inline-flex items-center text-xs font-semibold text-gray-500 truncate","aria-current":"page"},G={class:"font-bold text-2xl"},J={class:"max-w-7xl mx-auto py-10"},Q={class:"grid sm:grid-cols-2 lg:grid-cols-3 gap-6 mx-3 md:mx-0"},W=["onClick"],X={class:"aspect-w-16 aspect-h-11"},Y=["src","alt"],Z=["alt"],ee={class:"my-6"},te={class:"text-xl font-semibold text-gray-800"},oe={class:"mt-auto flex items-center gap-x-3"},se=["src","alt"],le=["alt"],ae={class:"text-sm text-gray-800"},re={class:"max-w-7xl mx-auto"},ne={class:"grid sm:grid-cols-2 lg:grid-cols-4 gap-6 mb-6 mx-3 md:mx-0"},ie=["onClick"],de={class:"aspect-w-16 aspect-h-9"},ce=["src","alt"],ue=["alt"],me={class:"p-4 md:p-5"},_e={class:"mt-2 font-medium text-sm text-gray-800 group-hover:text-blue-600 dark:text-neutral-300 dark:group-hover:text-white"},we=B({__name:"[typelink]",async setup(he){let c,h;const m=U(),{$axios:b}=$(),P=j().public.API_BASE_URL;let o,x=[],p=[];try{const{data:s}=([c,h]=D(()=>b.get(P+V.getModulePostTypePosts+m.params.typelink+"?moduleLink="+m.params.module)),c=await c,h(),c);s?.data||f({path:"/404"}),o=s?.data?.modulePostType,o.seoProfile=z(o,"module_post_type_name"),x=s?.data?.popularPosts,p=s?.data?.posts}catch(s){console.log(s)}const i=s=>s?.updatedBy??s?.createdBy,g=s=>{f({path:`/${s?.moduleId?.moduleLink}/${s?.moduleCategoryPostLink}`})};return o&&(A({title:o.seoProfile.metaTitle,ogTitle:o.seoProfile.ogTitle,description:o.seoProfile.metaDescription,ogDescription:o.seoProfile.ogDescription,keywords:o.seoProfile.metaKeywords}),I({link:[{rel:"canonical",href:`https://shoppingways.com/${m.params.module}/type/${o?.modulePostTypeLink}`}]})),(s,u)=>{const C=N,T=R;return a(),l("div",M,[e("div",E,[e("div",F,[y(T,null,{default:w(()=>[e("ol",q,[e("li",H,[y(C,{to:"/"+n(o)?.moduleId?.moduleLink,class:"ml-2"},{default:w(()=>[e("a",K,r(n(o)?.moduleId?.moduleName),1)]),_:1},8,["to"]),u[0]||(u[0]=e("svg",{class:"shrink-0 mx-2 size-4 text-gray-400",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e("path",{d:"m9 18 6-6-6-6"})],-1))]),u[1]||(u[1]=e("li",{class:"inline-flex items-center text-xs font-semibold text-gray-500 truncate"},[S(" Post Type "),e("svg",{class:"shrink-0 mx-2 size-4 text-gray-400",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e("path",{d:"m9 18 6-6-6-6"})])],-1)),e("li",O,r(n(o)?.modulePostTypeName),1)])]),_:1}),e("h1",G,r(n(o)?.moduleId?.moduleName)+" "+r(n(o)?.modulePostTypeName),1)])]),e("div",J,[e("div",Q,[(a(!0),l(k,null,v(n(x),t=>(a(),l("div",{class:"group flex flex-col h-full border border-gray-200 hover:border-transparent hover:shadow-lg focus:outline-none focus:border-transparent focus:shadow-lg transition duration-300 rounded-xl p-5 cursor-pointer",key:t?._id,onClick:L=>g(t)},[e("div",X,[t?.image!=null?(a(),l("img",{key:0,class:"w-full object-cover rounded-xl",src:t?.image?.url,alt:t?._id},null,8,Y)):d("",!0),t?.image==null?(a(),l("img",{key:1,class:"w-full object-cover rounded-xl",src:_,alt:t?._id},null,8,Z)):d("",!0)]),e("div",ee,[e("h3",te,r(t?.moduleCategoryPostTitle),1)]),e("div",oe,[i(t)?.photoUrl!=null?(a(),l("img",{key:0,class:"size-8 rounded-full",src:i(t)?.photoUrl?.url,alt:i(t)?.name},null,8,se)):d("",!0),i(t)?.photoUrl==null?(a(),l("img",{key:1,class:"size-8 rounded-full",src:_,alt:i(t)?.name},null,8,le)):d("",!0),e("div",null,[e("h5",ae,"By "+r(i(t)?.name),1)])])],8,W))),128))])]),e("div",re,[e("div",ne,[(a(!0),l(k,null,v(n(p),t=>(a(),l("div",{class:"group flex flex-col bg-white border shadow-sm rounded-xl hover:shadow-md focus:outline-none focus:shadow-md transition dark:bg-neutral-900 dark:border-neutral-800 cursor-pointer",key:t?._id,onClick:L=>g(t)},[e("div",de,[t?.image!=null?(a(),l("img",{key:0,class:"w-full h-40 object-cover rounded-t-xl",src:t?.image?.url,alt:t?._id},null,8,ce)):d("",!0),t?.image==null?(a(),l("img",{key:1,class:"w-full h-40 object-cover rounded-t-xl",src:_,alt:t?._id},null,8,ue)):d("",!0)]),e("div",me,[e("h3",_e,r(t?.moduleCategoryPostTitle),1)])],8,ie))),128))])])])}}});
1export{we 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.