1import{H as I,q as M,r as p,s as n,t as f,j as e,L as m,B as h,a1 as O}from"./index-CqGqwWKp.js";import{B as E}from"./badge-CajhVRbo.js";import{S as N,P as u}from"./shopping-cart-yxAq1BY3.js";import{T as U}from"./truck-CHOL57Yb.js";import{S as z}from"./shield-D2WoJTIM.js";import{C as G}from"./chevron-right-D_p0tWne.js";import{T as q}from"./tag-D35s9gRy.js";const Q="https://files.manuscdn.com/user_upload_by_module/session_file/310519663548498135/UYKhCjMlJhWFQIeo.png",B="https://d2xsxph8kpxj0f.cloudfront.net/310519663548498135/8FWXHBGLaXzwMXfkkMnXxw/shop_hero_bg-LKqzjK3aSEcPPhCscZ7gHQ.webp",$="hant-goods",F=[{slug:"hant-goods",label:"HANT 굿ì¦",icon:"ð½",desc:"í°ì
ì¸ Â·ìì건·í¤ë§Â·ìí"},{slug:"outdoor",label:"ììëì´",icon:"ð¥¾",desc:"í©ë¦¬ì ì¸ ê°ê²©ì ë¸ëë"},{slug:"limited",label:"íì í",icon:"â",desc:"í¹ë³ ìëì
컬ë ì
"},{slug:"set",label:"ì¸í¸",icon:"ð",desc:"HANTì주 기ë
ì¸í¸"}];function se(){I();const{user:a}=M(),[o,t]=p.useState(void 0),[c,r]=p.useState(0),i=12,d=p.useRef(null),{data:g}=n.shop.getCategories.useQuery(),{data:v,isLoading:A}=n.shop.getProducts.useQuery({categoryId:o,limit:i,offset:c}),{data:R}=n.shop.getCart.useQuery(void 0,{enabled:!!a}),x=p.useMemo(()=>g?.find(s=>
1s.slug===$)?.id,[g]),{data:S}=n.shop.getProducts.useQuery({categoryId:x,limit:8,offset:0},{enabled:!!x}),{data:b}=n.shop.getTrendingKeywords.useQuery({}),H=n.shop.addToCart.useMutation({onSuccess:()=>{f.success("ì¥ë°êµ¬ëì ì¶ê°ëììµëë¤.")},onError:()=>{f.error("ë¡ê·¸ì¸ì´ íìí©ëë¤.")}}),y=R?.reduce((s,l)=>s+l.quantity,0)??0,w=(s,l)=>{if(s.preventDefault(),s.stopPropagation(),!a){f.error("ë¡ê·¸ì¸ì´ íìí©ëë¤.");return}H.mutate({productId:l,quantity:1})},C=()=>{t(void 0),r(0),setTimeout(()=>{d.current?.scrollIntoView({behavior:"smooth",block:"start"})},50)},L=s=>{const l=g?.find(_=>_.slug===s);l?(t(l.id),r(0),setTimeout(()=>{d.current?.scrollIntoView({behavior:"smooth",block:"start"})},50)):C()},k=v?.products??[],T=v?.total??0,j=Math.ceil(T/i),P=Math.floor(c/i)+1;return e.jsxs("div",{"data-loc":"client/src/pages/ShopPage.tsx:108",className:"min-h-screen bg-gray-50",children:[e.jsx("header",{"data-loc":"client/src/pages/ShopPage.tsx:110",className:"bg-white border-b border-gray-200 sticky top-0 z-40",children:e.jsxs("div",{"data-loc":"client/src/pages/ShopPage.tsx:111",className:"max-w-6xl mx-auto px-4 py-3 flex items-center justify-between",children:[e.jsxs("div",{"data-loc":"client/src/pages/ShopPage.tsx:112",className:"flex items-center gap-3",children:[e.jsx(m,{"data-loc":"client/src/pages/ShopPage.tsx:113",href:"/",children:e.jsx("span",{"data-loc":"client/src/pages/ShopPage.tsx:114",className:"text-sm text-gray-500 hover:text-gray-700 cursor-pointer",children:"â í"})}),e.jsx("span",{"data-loc":"client/src/pages/ShopPage.tsx:116",className:"text-gray-300",children:"|"}),e.jsx("h1",{"data-loc":"client/src/pages/ShopPage.tsx:117",className:"text-xl font-bold text-green-800 tracking-tight",children:"HANT STORE"})]}),e.jsx("div",{"data-loc":"client/src/pages/ShopPage.tsx:119",className:"flex items-center gap-3",children:e.jsx(m,{"data-loc":"client/src/pages/ShopPage.tsx:120",href:"/shop/cart",children:e.jsxs(h,{"data-loc":"client/src/pages/ShopPage.tsx:121",variant:"outline",size:"sm",className:"relative",children:[e.jsx(N,{"data-loc":"client/src/pages/ShopPage.tsx:122",className:"w-4 h-4 mr-1"}),"ì¥ë°êµ¬ë",y>0&&e.jsx("span",{"data-loc":"client/src/pages/ShopPage.tsx:125",className:"absolute -top-1.5 -right-1.5 bg-green-600 text-white text-xs rounded-full w-5 h-5 flex items-center justify-center font-bold",children:y})]})})})]})}),e.jsxs("div",{"data-loc":"client/src/pages/ShopPage.tsx:136",className:"relative bg-gradient-to-br from-green-900 via-green-800 to-green-700 text-white overflow-hidden",children:[e.jsx("div",{"data-loc":"client/src/pages/ShopPage.tsx:138",className:"absolute pointer-events-none",style:{top:0,right:0,bottom:0,width:"55%",backgroundImage:`url(${B})`,backgroundSize:"90%",backgroundRepeat:"no-repeat",backgroundPosition:"right top",opacity:.45}}),e.jsxs("div",{"data-loc":"client/src/pages/ShopPage.tsx:152",className:"relative max-w-6xl mx-auto px-4 py-16 flex flex-col md:flex-row items-center gap-8",children:[e.jsxs("div",{"data-loc":"client/src/pages/ShopPage.tsx:153",className:"flex-1 z-10",children:[e.jsx(E,{"data-loc":"client/src/pages/ShopPage.tsx:154",className:"bg-green-500/30 text-green-100 border-green-500/50 mb-4",children:"NEW ARRIVAL"}),e.jsxs("h2",{"data-loc":"client/src/pages/ShopPage.tsx:155",className:"text-4xl md:text-5xl font-black mb-4 leading-tight",children:[e.jsx("span",{"data-loc":"client/src/pages/ShopPage.tsx:156",className:"text-green-300",children:"íêµí¸ë ì¼"}),e.jsx("br",{"data-loc":"client/src/pages/ShopPage.tsx:156"}),"HANT ì¤í ì´"]}),e.jsxs("p",{"data-loc":"client/src/pages/ShopPage.tsx:159",className:"text-green-100 text-lg mb-6 leading-relaxed",children:["íêµ í¸ë ì¼ ë¬¸í를 ë´ì 굿ì¦ì",e.jsx("br",{"data-loc":"client/src/pages/ShopPage.tsx:160"}),"ììëì´ ë¸ëë를 í©ë¦¬ì ì¸ ê°ê²©ì¼ë¡"]}),e.jsx("div",{"data-loc":"client/src/pages/ShopPage.tsx:163",className:"flex gap-3",children:e.jsx(h,{"data-loc":"client/src/pages/ShopPage.tsx:164",className:"bg-white text-green-800 hover:bg-green-50 font-bold px-6",onClick:C,children:"ì ì²´ ìí 보기"})})]}
1),e.jsx("div",{"data-loc":"client/src/pages/ShopPage.tsx:172",className:"flex-1 flex justify-center z-10",children:e.jsx("div",{"data-loc":"client/src/pages/ShopPage.tsx:173",className:"grid grid-cols-2 gap-3 max-w-xs w-full",children:F.map(s=>e.jsxs("button",{"data-loc":"client/src/pages/ShopPage.tsx:175",className:"bg-white/10 backdrop-blur rounded-xl p-4 text-center hover:bg-white/20 transition-colors cursor-pointer",onClick:()=>L(s.slug),children:[e.jsx("div",{"data-loc":"client/src/pages/ShopPage.tsx:180",className:"text-3xl mb-2",children:s.icon}),e.jsx("div",{"data-loc":"client/src/pages/ShopPage.tsx:181",className:"font-bold text-sm",children:s.label}),e.jsx("div",{"data-loc":"client/src/pages/ShopPage.tsx:182",className:"text-green-200 text-xs mt-1",children:s.desc})]},s.slug))})})]})]}),e.jsx("div",{"data-loc":"client/src/pages/ShopPage.tsx:191",className:"bg-green-800 text-white",children:e.jsx("div",{"data-loc":"client/src/pages/ShopPage.tsx:192",className:"max-w-6xl mx-auto px-4 py-3 flex flex-wrap justify-center gap-8 text-sm",children:[{icon:e.jsx(U,{"data-loc":"client/src/pages/ShopPage.tsx:194",className:"w-4 h-4"}),text:"5ë§ì ì´ì 무ë£ë°°ì¡"},{icon:e.jsx(z,{"data-loc":"client/src/pages/ShopPage.tsx:195",className:"w-4 h-4"}),text:"ì í ë³´ì¦"},{icon:e.jsx(O,{"data-loc":"client/src/pages/ShopPage.tsx:196",className:"w-4 h-4"}),text:"7ì¼ êµí·ë°í"},{icon:e.jsx(u,{"data-loc":"client/src/pages/ShopPage.tsx:197",className:"w-4 h-4"}),text:"ìì í¬ì¥"}].map(s=>e.jsxs("div",{"data-loc":"client/src/pages/ShopPage.tsx:199",className:"flex items-center gap-2 text-green-100",children:[s.icon,e.jsx("span",{"data-loc":"client/src/pages/ShopPage.tsx:201",children:s.text})]},s.text))})}),e.jsxs("div",{"data-loc":"client/src/pages/ShopPage.tsx:207",className:"max-w-6xl mx-auto px-4 py-8",children:[b&&b.length>0&&e.jsxs("section",{"data-loc":"client/src/pages/ShopPage.tsx:210",className:"mb-10",children:[e.jsxs("div",{"data-loc":"client/src/pages/ShopPage.tsx:211",className:"flex items-center gap-2 mb-4",children:[e.jsx("span",{"data-loc":"client/src/pages/ShopPage.tsx:212",className:"text-lg",children:"ð¥"}),e.jsx("h3",{"data-loc":"client/src/pages/ShopPage.tsx:213",className:"text-lg font-black text-gray-900",children:"ì§ê¸ ì¸ê¸° ìì´í
"}),e.jsx("span",{"data-loc":"client/src/pages/ShopPage.tsx:214",className:"text-xs text-gray-400 ml-1",children:"ë¤ì´ë² ì¼í í¸ë ë 기ì¤"})]}),e.jsx("div",{"data-loc":"client/src/pages/ShopPage.tsx:216",className:"flex flex-wrap gap-2",children:b.map(s=>e.jsxs("a",{"data-loc":"client/src/pages/ShopPage.tsx:218",href:`https://search.shopping.naver.com/search/all?query=${encodeURIComponent(s.keyword)}`,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1.5 px-3 py-1.5 rounded-full border text-sm font-medium transition-colors",style:{background:s.trend==="up"?"#f0fdf4":s.trend==="down"?"#fef2f2":"#f9fafb",borderColor:s.trend==="up"?"#86efac":s.trend==="down"?"#fca5a5":"#e5e7eb",color:s.trend==="up"?"#166534":s.trend==="down"?"#991b1b":"#374151"},children:[e.jsx("span",{"data-loc":"client/src/pages/ShopPage.tsx:230",children:s.trend==="up"?"â":s.trend==="down"?"â":"â"}),e.jsx("span",{"data-loc":"client/src/pages/ShopPage.tsx:231",children:s.keyword}),e.jsxs("span",{"data-loc":"client/src/pages/ShopPage.tsx:232",className:"text-xs opacity-60",children:[s.ratio.toFixed(0),"%"]})]},s.keyword))})]}),S&&S.products.length>0&&e.jsxs("section",{"data-loc":"client/src/pages/ShopPage.tsx:241",className:"mb-14",children:[e.jsxs("div",{"data-loc":"client/src/pages/ShopPage.tsx:243",className:"flex items-center justify-between mb-6",children:[e.jsxs("div",{"data-loc":"client/src/pages/ShopPage.tsx:244",className:"flex items-center gap-3",children:[e.jsx("img",{"data-loc":"client/src/pages/ShopPage.tsx:245",src:Q,alt:"HANT ë¡ê³ ",className:"w-10 h-10 object-contain"}),e.jsxs("div",{"data-loc":"client/src/pages/ShopPage.tsx:246",children:[e.jsx("h3",{"data-loc":"client/src/pages/ShopPage.tsx:247",className:"text-xl font-black text-gray-900",children:"HANT 굿ì¦"}
1),e.jsx("p",{"data-loc":"client/src/pages/ShopPage.tsx:248",className:"text-sm text-green-700",children:"íêµí¸ë ì¼ ê³µì 기ë
í"})]})]}),x&&e.jsxs("button",{"data-loc":"client/src/pages/ShopPage.tsx:252",className:"text-sm text-green-700 hover:text-green-900 flex items-center gap-1 font-medium",onClick:()=>{t(x),r(0),setTimeout(()=>{d.current?.scrollIntoView({behavior:"smooth",block:"start"})},50)},children:["ì 체보기 ",e.jsx(G,{"data-loc":"client/src/pages/ShopPage.tsx:262",className:"w-4 h-4"})]})]}),e.jsx("div",{"data-loc":"client/src/pages/ShopPage.tsx:268",className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:S.products.map(s=>e.jsx(K,{"data-loc":"client/src/pages/ShopPage.tsx:270",product:s,onAddToCart:w},s.id))})]}),e.jsxs("div",{"data-loc":"client/src/pages/ShopPage.tsx:281",ref:d,children:[e.jsxs("div",{"data-loc":"client/src/pages/ShopPage.tsx:283",className:"flex gap-2 overflow-x-auto pb-2 mb-6 scrollbar-hide",children:[e.jsx("button",{"data-loc":"client/src/pages/ShopPage.tsx:284",onClick:()=>{t(void 0),r(0)},className:`px-4 py-2 rounded-full text-sm font-medium whitespace-nowrap transition-colors ${o===void 0?"bg-green-700 text-white":"bg-white text-gray-600 border border-gray-200 hover:border-green-400"}`,children:"ì ì²´"}),g?.map(s=>e.jsx("button",{"data-loc":"client/src/pages/ShopPage.tsx:295",onClick:()=>{t(s.id),r(0)},className:`px-4 py-2 rounded-full text-sm font-medium whitespace-nowrap transition-colors ${o===s.id?"bg-green-700 text-white":"bg-white text-gray-600 border border-gray-200 hover:border-green-400"}`,children:s.name},s.id))]}),A?e.jsx("div",{"data-loc":"client/src/pages/ShopPage.tsx:311",className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4",children:Array.from({length:8}).map((s,l)=>e.jsxs("div",{"data-loc":"client/src/pages/ShopPage.tsx:313",className:"bg-white rounded-xl overflow-hidden animate-pulse",children:[e.jsx("div",{"data-loc":"client/src/pages/ShopPage.tsx:314",className:"bg-gray-200 aspect-square"}),e.jsxs("div",{"data-loc":"client/src/pages/ShopPage.tsx:315",className:"p-3 space-y-2",children:[e.jsx("div",{"data-loc":"client/src/pages/ShopPage.tsx:316",className:"h-4 bg-gray-200 rounded w-3/4"}),e.jsx("div",{"data-loc":"client/src/pages/ShopPage.tsx:317",className:"h-4 bg-gray-200 rounded w-1/2"})]})]},l))}):k.length===0?e.jsxs("div",{"data-loc":"client/src/pages/ShopPage.tsx:323",className:"text-center py-20",children:[e.jsx(u,{"data-loc":"client/src/pages/ShopPage.tsx:324",className:"w-16 h-16 text-gray-300 mx-auto mb-4"}),e.jsx("p",{"data-loc":"client/src/pages/ShopPage.tsx:325",className:"text-gray-500 text-lg font-medium",children:"ì¤ë¹ ì¤ì¸ ìíì
ëë¤"}),e.jsx("p",{"data-loc":"client/src/pages/ShopPage.tsx:326",className:"text-gray-400 text-sm mt-2",children:"ê³§ ë¤ìí HANT 굿ì¦ì ììëì´ ë¸ëë를 ë§ëë³´ì¤ ì ììµëë¤."})]}):e.jsxs(e.Fragment,{children:[e.jsx("div",{"data-loc":"client/src/pages/ShopPage.tsx:330",className:"flex items-center justify-between mb-4",children:e.jsxs("p",{"data-loc":"client/src/pages/ShopPage.tsx:331",className:"text-sm text-gray-500",children:["ì´ ",T,"ê° ìí"]})}),e.jsx("div",{"data-loc":"client/src/pages/ShopPage.tsx:333",className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4",children:k.map(s=>e.jsx(V,{"data-loc":"client/src/pages/ShopPage.tsx:335",product:s,onAddToCart:w},s.id))}),j>1&&e.jsxs("div",{"data-loc":"client/src/pages/ShopPage.tsx:344",className:"flex justify-center gap-2 mt-8",children:[e.jsx(h,{"data-loc":"client/src/pages/ShopPage.tsx:345",variant:"outline",size:"sm",disabled:P===1,onClick:()=>r(Math.max(0,c-i)),children:"ì´ì "}),e.jsxs("span",{"data-loc":"client/src/pages/ShopPage.tsx:353",className:"flex items-center px-4 text-sm text-gray-600",children:[P," / ",j]}),e.jsx(h,{"data-loc":"client/src/pages/ShopPage.tsx:356",variant:"outline",size:"sm",disabled:P===j,onClick:()=>r(c+i),children:"ë¤ì"})]})]})]})]}),e.jsx("footer",{"data-loc":"client/src/pages/ShopPage.tsx:372",className:"bg-gray-900 text-gray-400 mt-16 py-10",children:e.jsxs("div",{"data-loc":"client/src/pages/Sh
1opPage.tsx:373",className:"max-w-6xl mx-auto px-4 text-center",children:[e.jsx("p",{"data-loc":"client/src/pages/ShopPage.tsx:374",className:"font-bold text-white text-lg mb-1",children:"HANT STORE"}),e.jsx("p",{"data-loc":"client/src/pages/ShopPage.tsx:375",className:"text-sm mb-4",children:"íì´ì° · HANT íêµí¸ë ì¼"}),e.jsxs("div",{"data-loc":"client/src/pages/ShopPage.tsx:376",className:"border-t border-gray-700 pt-4 space-y-1.5 text-xs text-gray-400",children:[e.jsx("p",{"data-loc":"client/src/pages/ShopPage.tsx:377",children:"ìí¸ëª
: íì´ì°  · ì¬ì
ìë±ë¡ë²í¸ : 299-46-01121  · ëíì : ëì¼ì"}),e.jsx("p",{"data-loc":"client/src/pages/ShopPage.tsx:378",children:"주ì : ìì¸í¹ë³ì ê°ë¨êµ¬ ë
¼íë¡67길 28-1 (ìì¼ë) Aë 303í¸ Â Â·Â TEL : 02-6203-6123"}),e.jsx("p",{"data-loc":"client/src/pages/ShopPage.tsx:379",children:"ì´ë©ì¼ : [email protected]  · ì¤í ì´ ìíì í ì¤íì´ë¨¼ì¸ ë¨ê±´ ê²°ì ë¡ ê²°ì ë©ëë¤."})]})]})})]})}function K({product:a,onAddToCart:o}){const t=a.originalPrice?Math.round((1-a.price/a.originalPrice)*100):0;return e.jsx(m,{"data-loc":"client/src/pages/ShopPage.tsx:400",href:`/shop/product/${a.id}`,children:e.jsxs("div",{"data-loc":"client/src/pages/ShopPage.tsx:401",className:"bg-white rounded-2xl overflow-hidden border-2 border-green-100 hover:border-green-400 hover:shadow-lg transition-all cursor-pointer group",children:[e.jsxs("div",{"data-loc":"client/src/pages/ShopPage.tsx:403",className:"relative aspect-square bg-gradient-to-br from-green-50 to-gray-100 overflow-hidden",children:[a.imageUrls?.[0]?e.jsx("img",{"data-loc":"client/src/pages/ShopPage.tsx:405",src:a.imageUrls[0],alt:a.name,className:"w-full h-full object-contain group-hover:scale-105 transition-transform duration-300 p-2"}):e.jsx("div",{"data-loc":"client/src/pages/ShopPage.tsx:411",className:"w-full h-full flex items-center justify-center",children:e.jsx(u,{"data-loc":"client/src/pages/ShopPage.tsx:412",className:"w-12 h-12 text-gray-300"})}),t>0&&e.jsxs("div",{"data-loc":"client/src/pages/ShopPage.tsx:416",className:"absolute top-2 left-2 bg-red-500 text-white text-xs font-bold px-2 py-0.5 rounded-full",children:["-",t,"%"]}),e.jsxs("div",{"data-loc":"client/src/pages/ShopPage.tsx:421",className:"absolute top-2 right-2 bg-green-700 text-white text-xs font-bold px-2 py-0.5 rounded-full flex items-center gap-1",children:[e.jsx(q,{"data-loc":"client/src/pages/ShopPage.tsx:422",className:"w-3 h-3"}),"ê³µì"]}),a.stock===0&&e.jsx("div",{"data-loc":"client/src/pages/ShopPage.tsx:426",className:"absolute inset-0 bg-black/50 flex items-center justify-center",children:e.jsx("span",{"data-loc":"client/src/pages/ShopPage.tsx:427",className:"text-white font-bold text-sm",children:"íì "})})]}),e.jsxs("div",{"data-loc":"client/src/pages/ShopPage.tsx:432",className:"p-3",children:[e.jsx("p",{"data-loc":"client/src/pages/ShopPage.tsx:433",className:"text-sm font-semibold text-gray-900 line-clamp-2 leading-snug mb-2",children:a.name}),e.jsxs("div",{"data-loc":"client/src/pages/ShopPage.tsx:434",className:"flex items-center justify-between",children:[e.jsxs("div",{"data-loc":"client/src/pages/ShopPage.tsx:435",children:[e.jsxs("span",{"data-loc":"client/src/pages/ShopPage.tsx:436",className:"text-base font-black text-green-800",children:[a.price.toLocaleString(),"ì"]}),a.originalPrice&&e.jsxs("span",{"data-loc":"client/src/pages/ShopPage.tsx:438",className:"text-xs text-gray-400 line-through ml-1",children:[a.originalPrice.toLocaleString(),"ì"]})]}),e.jsx("button",{"data-loc":"client/src/pages/ShopPage.tsx:441",onClick:c=>o(c,a.id),disabled:a.stock===0,className:"p-1.5 rounded-lg bg-green-100 hover:bg-green-200 text-green-700 transition-colors disabled:opacity-40",children:e.jsx(N,{"data-loc":"client/src/pages/ShopPage.tsx:446",className:"w-4 h-4"})})]})]})]})})}function V({product:a,onAddToCart:o}){const t=a.originalPrice?Math.round((1-a.price/a.originalPrice)*100):0;return e.jsx(m,{"data-loc":"client/src/pages/ShopPage.tsx:467",href:`/shop/product/${a.id}
1`,children:e.jsxs("div",{"data-loc":"client/src/pages/ShopPage.tsx:468",className:"bg-white rounded-xl overflow-hidden border border-gray-100 hover:shadow-md transition-shadow cursor-pointer group",children:[e.jsxs("div",{"data-loc":"client/src/pages/ShopPage.tsx:470",className:"relative aspect-square bg-gray-100 overflow-hidden",children:[a.imageUrls?.[0]?e.jsx("img",{"data-loc":"client/src/pages/ShopPage.tsx:472",src:a.imageUrls[0],alt:a.name,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-300"}):e.jsx("div",{"data-loc":"client/src/pages/ShopPage.tsx:478",className:"w-full h-full flex items-center justify-center",children:e.jsx(u,{"data-loc":"client/src/pages/ShopPage.tsx:479",className:"w-12 h-12 text-gray-300"})}),t>0&&e.jsxs("div",{"data-loc":"client/src/pages/ShopPage.tsx:483",className:"absolute top-2 left-2 bg-red-500 text-white text-xs font-bold px-2 py-0.5 rounded-full",children:["-",t,"%"]}),a.isFeatured&&e.jsx("div",{"data-loc":"client/src/pages/ShopPage.tsx:488",className:"absolute top-2 right-2 bg-yellow-400 text-yellow-900 text-xs font-bold px-2 py-0.5 rounded-full",children:"ì¶ì²"}),a.stock===0&&e.jsx("div",{"data-loc":"client/src/pages/ShopPage.tsx:493",className:"absolute inset-0 bg-black/50 flex items-center justify-center",children:e.jsx("span",{"data-loc":"client/src/pages/ShopPage.tsx:494",className:"text-white font-bold text-sm",children:"íì "})})]}),e.jsxs("div",{"data-loc":"client/src/pages/ShopPage.tsx:499",className:"p-3",children:[a.categoryName&&e.jsx("p",{"data-loc":"client/src/pages/ShopPage.tsx:501",className:"text-xs text-green-700 font-medium mb-1",children:a.categoryName}),e.jsx("p",{"data-loc":"client/src/pages/ShopPage.tsx:503",className:"text-sm font-medium text-gray-900 line-clamp-2 leading-snug mb-2",children:a.name}),e.jsxs("div",{"data-loc":"client/src/pages/ShopPage.tsx:504",className:"flex items-center justify-between",children:[e.jsxs("div",{"data-loc":"client/src/pages/ShopPage.tsx:505",children:[e.jsxs("span",{"data-loc":"client/src/pages/ShopPage.tsx:506",className:"text-base font-bold text-gray-900",children:[a.price.toLocaleString(),"ì"]}),a.originalPrice&&e.jsxs("span",{"data-loc":"client/src/pages/ShopPage.tsx:508",className:"text-xs text-gray-400 line-through ml-1",children:[a.originalPrice.toLocaleString(),"ì"]})]}),e.jsx("button",{"data-loc":"client/src/pages/ShopPage.tsx:511",onClick:c=>o(c,a.id),disabled:a.stock===0,className:"p-1.5 rounded-lg bg-green-50 hover:bg-green-100 text-green-700 transition-colors disabled:opacity-40",children:e.jsx(N,{"data-loc":"client/src/pages/ShopPage.tsx:516",className:"w-4 h-4"})})]})]})]})})}export{se 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.