PageSourceSearch

https://wei.city/_nuxt/CZPPsbh3.js

js wei.city collected 2026-09-24 14:37:23 UTC 7,424 bytes, 1 lines download raw bytes

1import{_ as O,w as W}from"./BfdIF0VO.js";import{_ as j}from"./nYV3oLWA.js";import{aR as G,ea as Q,cL as o,aB as c,aw as r,aJ as U,dD as i,dP as a,ay as l,aI as g,ax as X,f as V,d4 as x,eW as Y,eZ as C,Z as ee,cv as p,at as d,dL as B,a1 as te}from"./BQpWByWK.js";import{f as ae}from"./BQWAG1Ph.js";import{u as ne,a as re}from"./B0tXIqJN.js";import{u as se}from"./CZPZSw1p.js";import{u as oe}from"./DxJSeJLe.js";const ce=["href","target","rel"],ie={class:"wc-mcc__badge"},le={key:0,class:"wc-mcc__stat wc-num"},de={class:"wc-aggregate-card__body wc-mcc__body"},ue=["href","target","rel"],me={key:0,class:"wc-mcc__vribbon"},ge={class:"wc-mcc__vribbon-head"},ye={class:"wc-mcc__vribbon-label"},fe={class:"wc-mcc__vribbon-count wc-num"},_e={class:"wc-mcc__vribbon-list"},be=["src","alt"],he={key:1,class:"wc-mcc__vribbon-ph"},we={class:"wc-mcc__vribbon-price wc-num"},ke={key:0},ve=["href","target","rel","aria-label"],Ce={class:"wc-mcc__vribbon-more-n wc-num"},pe={key:1,class:"wc-mcc__meta wc-num"},$e={key:0,class:"wc-mcc__closed-forever"},Ie={key:1},Te={key:2},Ae={key:3,class:"wc-mcc__deal"},Le={key:5},Ne={key:2,class:"wc-mcc__unclaimed"},De={key:3,class:"wc-aggregate-card__summary wc-mcc__summary"},Se={class:"wc-mcc__foot"},Ue={key:0,class:"wc-tag-row wc-mcc__tags"},Ve=["onClick"],xe=["href","target","rel","aria-label"],Be=["href","aria-label"],Ee=G({__name:"MarketplaceChannelCard",props:{item:{},activeCategoryIds:{},trackingSource:{},openInNewTab:{type:Boolean},nearby:{}},emits:["toggle-category"],setup(n,{emit:E}){const{t:y,locale:$}=Q(),s=n,M=E,I=d(()=>{const e=s.item.weeklyHits||0;if(e>0)return y("channel.stat_weekly_visits",{n:e.toLocaleString($.value)});const t=s.item.hits||0;return t>0?y("channel.stat_total_visits",{n:t.toLocaleString($.value)}):s.item.stat||""}),Z=d(()=>s.item.isAggregate?y("common.badge_aggregate"):y("common.badge_channel")),T=d(()=>ae(s.nearby?.distanceKm,y)),k=d(()=>{const e=s.nearby?.openNow;return e===!0?"open":e===!1?"closed":null}),A=d(()=>{const e=s.nearby;if(!e)return"";if(e.hasDeal)return y("nearby.has_deal");const t=(e.dealStartsAt||"").trim();if(!t)return"";const m=ne(t,(e.dealTimeZoneId||"").trim()||re);return m?y("nearby.deal_starts_today",{time:m.slice(11,16)}):""}),_=d(()=>(s.nearby?.vouchers??[]).slice(0,10)),L=d(()=>Math.max(s.nearby?.voucherTotal??0,_.value.length)),v=d(()=>L.value-_.value.length),N=d(()=>{let e="";for(const t of _.value){const m=(t.endsAtUtc||"").trim();!t.activeNow||!m||(!e||m<e)&&(e=m)}return e}),D=d(()=>{const e=s.nearby;return e?`https://www.google.com/maps/dir/?api=1&destination=${e.latitude},${e.longitude}`:""});function z(e){return s.activeCategoryIds?.has(e)??!1}function F(e){B("local_category_filter",{source:s.trackingSource||"directory",aggregate:s.item.isAggregate}),M("toggle-category",e)}const S=d(()=>s.item.categories.slice(0,3));function H(e){if(!e||e==="#")return"#";const t=e.trim();return/^\/app\/c\//i.test(t)?t.replace(/^\/app(?=\/c\/)/i,""):t}const f=d(()=>{const e=H(s.item.channelUrl);return s.nearby?W(e,"nearby"):e}),b=d(()=>(s.item.isAggregate||s.openInNewTab)&&f.value!=="#"?"_blank":void 0),h=d(()=>b.value?"noopener noreferrer":void 0),{onLinkClick:P}=se();function w(e){f.value!=="#"&&(B("local_channel_open",{source:s.trackingSource||"directory",aggregate:s.item.isAggregate}),P(e,f.value))}const R=oe();function K(){s.nearby&&R.trackNavClick(s.item.channelId,"nearby")}return(e,t)=>{const m=O,q=j,J=ee;return o(),c("article",{class:p(["wc-aggregate-card wc-mcc",{"wc-mcc--unclaimed":n.nearby&&!n.nearby.claimed}])},[r("a",{class:"wc-aggregate-card__media",href:a(f),target:a(b),rel:a(h),onClick:w},[U(m,{src:n.item.bannerUrl||n.item.logoUrl,alt:n.item.title,width:800,mode:"fill"},null,8,["src","alt"]),r("span",ie,i(a(Z)),1),a(I)?(o(),c("span",le,i(a(I)),1)):l("",!0)],8,ce),r("div",de,[r("a",{class:"wc-aggregate-card__title wc-mcc__title wc-display",href:a(f),target:a(b),rel:a(h),onClick:w},i(n.item.title),9,ue),a(_).length>0&&!n.item.permanentlyClosed?(o(),c("div",me,[r("div",ge,[r("span",ye,[t[1]||(t[1]=r("i",{class:"fa-solid fa-ticket","aria-hidden":"true"},null,-1)),g(" "+i(e.$t("nearby.vouchers_title"))+" ",1),r("span",fe,i(a(L)),1)]),a(N)?(o(),X(q,{key:0,"ends-at-utc":a(N),variant:"chip","time-zone-id":n.nearby?.dealTimeZoneId},null,8,["ends-at-utc","time-zone-id"])):l("",!0)]),r("ul",_e,[(o(!0),c(V,null,x(a(_),u=>(o(),c("li",{key:u.docId},[U(J,{to:`/deal/${encodeURIComponent(u.docId)}?src=nearby`,onClick:t[0]||(t[0]=C(()=>{},["stop"]))},{default:Y(()=>[u.coverUrl?(o(),c("img",{key:0,src:u.coverUrl,alt:u.title,loading:"lazy"},null,8,be)):(o(),c("span",he,[...t[2]||(t[2]=[r("i",{class:"fa-solid fa-ticket","aria-hidden":"true"},null,-1)])])),r("span",we,i(u.salePriceCents>0?u.salePriceText:e.$t("deal.free")),1)]),_:2},1032,["to"])]))),128)),a(v)>0?(o(),c("li",ke,[r("a",{class:"wc-mcc__vribbon-more",href:a(f),target:a(b),rel:a(h),"aria-label":e.$t("nearby.vouchers_more",{n:a(v)}),onClick:w},[r("span",Ce,"+"+i(a(v)),1)],8,ve)])):l("",!0)])])):l("",!0),n.item.isAggregate||n.item.locationLabel||n.nearby||n.item.permanentlyClosed?(o(),c("div",pe,[n.item.permanentlyClosed?(o(),c("span",$e,[t[3]||(t[3]=r("i",{class:"fa-solid fa-circle-xmark","aria-hidden":"true"}
1,null,-1)),g(" "+i(e.$t("nearby.permanently_closed")),1)])):l("",!0),n.item.isAggregate&&n.item.sourceCount>0?(o(),c("span",Ie,[t[4]||(t[4]=r("i",{class:"fa-solid fa-layer-group","aria-hidden":"true"},null,-1)),g(" "+i(e.$t("channel.source_count",{n:n.item.sourceCount})),1)])):l("",!0),a(T)?(o(),c("span",Te,[t[5]||(t[5]=r("i",{class:"fa-solid fa-route","aria-hidden":"true"},null,-1)),g(" "+i(a(T)),1)])):l("",!0),a(A)&&!n.item.permanentlyClosed?(o(),c("span",Ae,[t[6]||(t[6]=r("i",{class:"fa-solid fa-tag","aria-hidden":"true"},null,-1)),g(" "+i(a(A)),1)])):l("",!0),a(k)&&!n.item.permanentlyClosed?(o(),c("span",{key:4,class:p(["wc-mcc__open",a(k)==="open"?"is-open":"is-closed"])},[t[7]||(t[7]=r("i",{class:"fa-solid fa-clock","aria-hidden":"true"},null,-1)),g(" "+i(a(k)==="open"?e.$t("nearby.open_now"):e.$t("nearby.closed_now")),1)],2)):l("",!0),n.item.locationLabel?(o(),c("span",Le,[t[8]||(t[8]=r("i",{class:"fa-solid fa-location-dot","aria-hidden":"true"},null,-1)),g(" "+i(n.item.locationLabel),1)])):l("",!0)])):l("",!0),n.nearby&&!n.nearby.claimed?(o(),c("div",Ne,[t[9]||(t[9]=r("i",{class:"fa-regular fa-circle-question","aria-hidden":"true"},null,-1)),g(" "+i(e.$t("nearby.unclaimed")),1)])):l("",!0),n.item.summary?(o(),c("p",De,i(n.item.summary),1)):l("",!0),r("div",Se,[a(S).length>0?(o(),c("div",Ue,[(o(!0),c(V,null,x(a(S),u=>(o(),c("button",{key:u.categoryId,type:"button",class:p(["wc-tag wc-tag-button",{"is-active":z(u.categoryId)}]),onClick:C(Me=>F(u.categoryId),["stop"])},i(u.title),11,Ve))),128))])):l("",!0),r("a",{class:"wc-mcc__cta",href:a(f),target:a(b),rel:a(h),"aria-label":`${e.$t("channel.enter")}:${n.item.title}`,onClick:w},[r("span",null,i(e.$t("channel.enter")),1),t[10]||(t[10]=r("i",{class:"fa-solid fa-arrow-right","aria-hidden":"true"},null,-1))],8,xe),a(D)?(o(),c("a",{key:1,class:"wc-mcc__nav",href:a(D),target:"_blank",rel:"noopener noreferrer","aria-label":`${e.$t("nearby.directions")}:${n.item.title}`,onClick:C(K,["stop"])},[t[11]||(t[11]=r("i",{class:"fa-solid fa-diamond-turn-right","aria-hidden":"true"},null,-1)),r("span",null,i(e.$t("nearby.directions")),1)],8,Be)):l("",!0)])])],2)}}}),qe=te(Ee,[["__scopeId","data-v-373f3c0c"]]);export{qe as _};

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.