PageSourceSearch

https://www.popchill.com/_next/static/chunks/pages/appModule/hotDeals-b1c17503cbe2ab50.js

js popchill.com collected 2026-09-24 10:06:00 UTC 5,009 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1739],{8537:function(e,t,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/appModule/hotDeals",function(){return l(72089)}])},72089:function(e,t,l){"use strict";l.r(t),l.d(t,{default:function(){return hotDeals}});var s=l(85893),a=l(61681),r=l(78551),n=l(18117);let getHotdeals=async()=>{try{let e=await (0,n.ZP)({queryKey:["hotdeals"],options:{method:"get",url:"getRecommendHotdeals"}});return"number"==typeof e?null:e.data}catch(e){return Promise.reject(e)}},useGetHotdeals=e=>(0,r.a)({queryKey:["hotdeals"],queryFn:()=>getHotdeals(),...e});var products_HotDeals=e=>{let{title:t,moreLink:l,isApp:r=!1,ga:n,className:c=""}=e,i=useGetHotdeals();if(!i.data||!i.data.data||0==i.data.data.length)return null;let{data:o}=i.data;return(0,s.jsxs)("section",{className:"mb-11 lg:w-web m-auto ".concat(c),children:[t&&(0,s.jsxs)("header",{className:"flex justify-between items-center px-1.5 lg:mb-1 lg:px-0 ",children:[(0,s.jsx)("div",{className:"text-lg lg:text-xl font-bold flex-1",children:t}),""!==l&&(0,s.jsx)("a",{className:"text-xs lg:text-sm text-primary ",href:l,children:"查看全部"})]}),(0,s.jsx)("div",{className:"overflow-x-auto w-screen block invisible-scrollbar lg:w-full lg:overflow-hidden mt-1.5 lg:mt-0",children:(0,s.jsxs)("div",{className:"flex max-w-max",children:[o.map((e,t)=>{var l;let c=t+1;return(0,s.jsx)(a.Z,{className:"",product:e,ga:{action:n.action,params:{...n.params,id:(null===(l=e.product_no)||void 0===l?void 0:l.toString())||"",index:c.toString()},isApp:r},ranking:t<3?t+1:null},t)}),(0,s.jsx)("div",{className:"pr-3 lg:hidden"})]})})]})},hotDeals=()=>(0,s.jsx)("div",{className:"h-[300px] overflow-hidden",children:(0,s.jsx)(products_HotDeals,{title:"每日熱門精選",moreLink:"https://www.popchill.com/collection/1001",isApp:!0,ga:{action:"appModule_click",params:{}}})})},61681:function(e,t,l){"use strict";l.d(t,{Z:function(){return products_ProductLight}});var s=l(85893);l(67294);var a=l(64691),r=l(41664),n=l.n(r),c=l(11163),i=l(21179),o=l(63736),d=l(4728),x=l(2804),svgs_MarkIcon=e=>(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:14,height:20,fill:"none",...e,children:[(0,s.jsx)("mask",{id:"a",width:14,height:20,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,s.jsx)("path",{fill:"#fff",d:"M14 0H0v20h14V0Z"})}),(0,s.jsx)("g",{mask:"url(#a)",children:(0,s.jsx)("path",{fill:"#55CECB",d:"m12.9 19.934-5.571-2.716a.735.735 0 0 0-.659 0L1.1 19.934c-.535.261-1.1-.287-1.1-1.071V0h14v18.863c0 .784-.562 1.332-1.1 1.071Z"})})]}),h=l(19509),products_ProductLight=e=>{let{product:t,ga:l,className:r="",style:u={},imageClassName:m="lg:w-[190px] lg:h-[190px]",ranking:p=null,priority:g=!1}=e,w=(0,c.useRouter)(),{isLg:f}=(0,i.Z)();if((0,x.sJ)(d.K),!t)return null;let v=w.query&&"1"===w.query.inapp,j=t.product_no||t.no||0,b="".concat(v||"/explore"===w.pathname?"popchill:/":"").concat(o.buildProductHref(j,null==l?void 0:l.params,o.resolveGa4Source(w.pathname))),_=(0,h.b)(t.image,f?380:160,f?380:160);return(0,s.jsx)("div",{className:"flex-shrink-0 text-sm p-1.5 lg:py-3 relative ".concat(r," "),children:(0,s.jsxs)(n(),{href:b,id:j.toString(),onClick:()=>{o.sendGA4Event(l.action,l.params,l.isApp)},style:u,target:f?"_blank":"_self",rel:"noreferrer",children:[(0,s.jsxs)("div",{className:"rounded w-[40vw] h-[40vw] ".concat(m," overflow-hidden relative"),children:[(0,s.jsx)("img",{src:_,alt:t.title,className:"image_placeholder w-[40vw] h-[40vw] ".concat(m," object-cover object-center"),loading:g?"eager":"lazy",decoding:g?"sync":"async",...g?{fetchpriority:"high"}:{fetchpriority:"low"},width:190,height:190}),t.price_reduction&&(0,s.jsx)("div",{className:"absolute bottom-0 right-0 text-sm px-2 py-1 bg-black/50 text-center text-white z-9 flex items-center rounded",children:(0,s.jsx)("div",{className:"flex-1",children:t.price_reduction})}),p&&(0,s.jsxs)("div",{className:"absolute -left-1 top-0 text-sm px-2 text-center text-white z-9 flex items-center rounded",children:[(0,s.jsx)(svgs_MarkIcon,{}),(0,s.jsx)("span",{className:"text-white text-xs absolute left-3",children:p})]}),"sold_out"===t.status&&(0,s.jsx)("div",{className:"absolute top-0 text-lg bg-black/50 text-center text-white  w-[40vw] h-[40vw] ".concat(m," z-10 flex items-center rounded"),children:(0,s.jsx)("div",{className:"flex-1",children:"SOLD"})})]}),(0,s.jsx)("div",{className:"w-[40vw] lg:w-[190px] text-sm font-bold mt-1.5 h-5 lg:text-base lg:h-[22px]",children:t.brand_name&&(0,s.jsx)("div",{className:"w-full text-sm truncate pr-4 lg:pr-7",children:t.brand_name})}),(0,s.jsx)("div",{className:"w-[40vw] lg:w-[190px] h-[2.125rem] text-xs truncate line-clamp-2 break-all whitespace-normal mt-1.5 lg:text-sm lg:h-[40px]",children:t.title}),(0,s.jsx)("div",{className:"mt-1.5 lg:py-1",children:(0,s.jsx)("span",{className:"mr-1 font-semibold lg:text-[21px] lg:mr-1.5",children:(0,a.fm)(t.price,t.currency)})})]})})}}},function(e){e.O(0,[9774,2888,179],function(){return e(e.s=8537)}),_N_E=e.O()}]);

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.