1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,20828,e=>{"use strict";var t=e.i(43476),s=e.i(932),r=e.i(47163),a=e.i(57688),l=e.i(22016),i=e.i(33245),n=e.i(9039),o=e.i(71645),c=e.i(6601);function d(e){let r,a,l,i,n,c,d,m,u=(0,s.c)(17),{message:h,isVisible:x,onClose:g,onClick:p}=e;if(u[0]!==x||u[1]!==g?(r=()=>{if(x){let e=setTimeout(()=>{g()},3e3);return()=>clearTimeout(e)}},a=[x,g],u[0]=x,u[1]=g,u[2]=r,u[3]=a):(r=u[2],a=u[3]),(0,o.useEffect)(r,a),!x)return null;let f=`flex items-center gap-3 rounded-lg bg-green-500 px-4 py-3 text-white shadow-lg ${p?"cursor-pointer hover:bg-green-600 transition-colors":""}`;return u[4]===Symbol.for("react.memo_cache_sentinel")?(l=(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14"}),(0,t.jsx)("polyline",{points:"22 4 12 14.01 9 11.01"})]}),u[4]=l):l=u[4],u[5]!==h?(i=(0,t.jsx)("span",{className:"font-medium",children:h}),u[5]=h,u[6]=i):i=u[6],u[7]!==g?(n=e=>{e.stopPropagation(),g()},u[7]=g,u[8]=n):n=u[8],u[9]===Symbol.for("react.memo_cache_sentinel")?(c=(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,t.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]}),u[9]=c):c=u[9],u[10]!==n?(d=(0,t.jsx)("button",{onClick:n,className:"ml-2 text-white/80 hover:text-white",children:c}),u[10]=n,u[11]=d):d=u[11],u[12]!==p||u[13]!==f||u[14]!==i||u[15]!==d?(m=(0,t.jsx)("div",{className:"fixed bottom-4 right-4 z-50 animate-fade-in-up",children:(0,t.jsxs)("div",{onClick:p,className:f,children:[l,i,d]})}),u[12]=p,u[13]=f,u[14]=i,u[15]=d,u[16]=m):m=u[16],m}var m=e.i(92989),u=e.i(52482),h=e.i(61664);function x(e){let r,a,l=(0,s.c)(5),{rating:i,interactive:n,onRate:o}=e,c=void 0!==n&&n;return l[0]===Symbol.for("react.memo_cache_sentinel")?(r=[1,2,3,4,5],l[0]=r):r=l[0],l[1]!==c||l[2]!==o||l[3]!==i?(a=(0,t.jsx)("div",{className:"flex gap-1",children:r.map(e=>(0,t.jsx)("button",{type:c?"button":void 0,onClick:()=>c&&o?.(e),className:`text-xl ${c?"cursor-pointer hover:scale-110 transition-transform":"cursor-default"}`,disabled:!c,children:(0,t.jsx)("span",{className:e<=i?"text-yellow-400":"text-gray-600",children:"â
"})},e))}),l[1]=c,l[2]=o,l[3]=i,l[4]=a):a=l[4],a}function g({productId:e,productSlug:s,productTitle:r}){let[a,l]=(0,o.useState)([]),[i,c]=(0,o.useState)(0),[d,m]=(0,o.useState)(0),[g,p]=(0,o.useState)(!0),[f,b]=(0,o.useState)(!1),[v,j]=(0,o.useState)(!1),[w,y]=(0,o.useState)(!1),{t:N,language:_}=(0,n.useLanguage)(),[k,S]=(0,o.useState)(""),[C,L]=(0,o.useState)(5),[$,z]=(0,o.useState)(""),[M,R]=(0,o.useState)(""),[T,B]=(0,o.useState)("");(0,o.useEffect)(()=>{A()},[e]);let A=async()=>{try{let t=await fetch(`${h.API_URL}/products/${e}/reviews`);if(t.ok){let e=await t.json();l(e.reviews),c(e.average_rating),m(e.total_count)}}catch(e){console.error("Failed to fetch reviews",e)}finally{p(!1)}},I=async t=>{if(t.preventDefault(),B(""),M.trim().length<10)return void B("en"===_?"Review must be at least 10 characters":"è©è«è³å°éè¦10åå符");j(!0);try{let t=await fetch(`${h.API_URL}/products/${e}/reviews`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({author_name:k,rating:C,title:$,content:M})});if(t.ok)y(!0),b(!1),S(""),L(5),z(""),R("");else{let e=await t.json();B(e.message||"Failed to submit review")}}catch(e){B("Failed to submit review")}finally{j(!1)}};return(0,t.jsxs)("div",{className:"mt-12 pt-8 border-t border-white/10",children:[d>0&&s&&r&&(0,t.jsx)(u.AggregateRatingSchema,{productName:r,averageRating:i,reviewCount:d,productUrl:`https://wanta.net/products/${s}`}),(0,t.jsxs)("div",{className:"flex flex-col sm:flex-row justify-between items-start sm:items-center gap-4 mb-8",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:"text-2xl font-bold text-white mb-2",children:"en"===_?"Customer Reviews":"顧客è©è«"}),d>0&&(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)(x,{rating:Math.round(i)}),(0,t.jsx)("span",{className:"text-white font-medium",children:i.toFixed(1)}),(0,t.jsxs)("span",{className:"text-gray-400",children:["(",d," ","en"===_?"reviews":"è©è«",")"]})]})]}),!f&&!w&&(0,t.jsx)("button",{onClick:()=>b(!0),className:"px-6 py-2 bg-primary hover:bg-primary/90 text-white font-medium rounded-lg transition-colors",children:"en"===_?"Write a Review":"æ°å¯«è©è«"})]}),w&&(0,t.jsx)("div",{className:"mb-6 p-4 bg-green-500/10 border border-green-500/30 rounded-lg",children:(0,t.jsx)("p",{className:"text-green-400 font-medium",children:"en"===_?"Thank you! Your review has been submitted for moderation.":"è¬è¬ï¼æ¨çè©è«å·²æäº¤å¯©æ ¸ã"})}),f&&(0,t.jsxs)("form",{onSubmit:I,className:"mb-8 p-6 bg-white/5 border border-white/10 rounded-2xl",children:[(0,t.jsx)("h4",{className:"text-lg font-bold text-white mb-4",children:"en"===_?"Write Your Review":"æ°å¯«æ¨çè©è«"}),(0,t.jsxs)("div",{className:"grid gap-4",children:[(0,t.jsxs)("div",{className:"grid sm:grid-cols-2 gap-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("label",{className:"block text-sm text-gray-400 mb-1",children:["en"===_?"Your Name":"æ¨çå§å"," *"]}),(0,t.jsx)("input",{type:"text",required:!0,value:k,onChange:e=>S(e.target.value),className:"w-full px-4 py-2 bg-black/30 border border-white/10 rounded-lg text-white focus:border-primary focus:outline-none",placeholder:"en"===_?"John Doe":"å¼µä¸"})]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("label",{className:"block text-sm text-gray-400 mb-1",children:["en"===_?"Rating":"è©å"," *"]}),(0,t.jsx)(x,{rating:C,interactive:!0,onRate:L})]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block text-sm text-gray-400 mb-1",children:"en"===_?"Review Title":"è©è«æ¨é¡"}),(0,t.jsx)("input",{type:"text",value:$,onChange:e=>z(e.target.value),className:"w-full px-4 py-2 bg-black/30 border border-white/10 rounded-lg text-white focus:border-primary focus:outline-none",placeholder:"en"===_?"Great product!":"徿£çç¢åï¼"})]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("label",{className:"block text-sm text-gray-400 mb-1",children:["en"===_?"Your Review":"æ¨çè©è«"," *"]}),(0,t.jsx)("textarea",{required:!0,value:M,onChange:e=>R(e.target.value),rows:4,className:"w-full px-4 py-2 bg-black/30 border border-white/10 rounded-lg text-white focus:border-primary focus:outline-none resize-none",placeholder:"en"===_?"Share your experience with this product...":"å享æ¨å°éåç¢åçé«é©..."})]}),T&&(0,t.jsx)("p",{className:"text-red-400 text-sm",children:T}),(0,t.jsxs)("div",{className:"flex gap-3",children:[(0,t.jsx)("button",{type:"submit",disabled:v,className:"px-6 py-2 bg-primary hover:bg-primary/90 disabled:bg-gray-600 text-white font-medium rounded-lg transition-colors",children:v?"en"===_?"Submitting...":"æäº¤ä¸...":"en"===_?"Submit Review":"æäº¤è©è«"}),(0,t.jsx)("button",{type:"button",onClick:()=>b(!1),className:"px-6 py-2 bg-white/10 hover:bg-white/20 text-white font-medium rounded-lg transition-colors",children:"en"===_?"Cancel":"åæ¶"})]})]})]}),g?(0,t.jsx)("div",{className:"text-gray-400",children:"en"===_?"Loading reviews...":"å è¼è©è«ä¸..."}):0===a.length?(0,t.jsx)("div",{className:"text-center py-8",children:(0,t.jsx)("p",{className:"text-gray-400",children:"en"===_?"No reviews yet. Be the first to review this product!":"æ«ç¡è©è«ã
1æçºç¬¬ä¸åè©è«æ¤ç¢åç人ï¼"})}):(0,t.jsx)("div",{className:"space-y-6",children:a.map(e=>{let s,r,a,l;return(0,t.jsxs)("div",{className:"p-5 bg-white/5 border border-white/10 rounded-xl",children:[(0,t.jsxs)("div",{className:"flex justify-between items-start mb-3",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"font-medium text-white",children:e.author_name}),(0,t.jsx)(x,{rating:e.rating})]}),(0,t.jsx)("span",{className:"text-sm text-gray-400",children:(r=(s=new Date(e.created_at)).getDate().toString().padStart(2,"0"),a=(s.getMonth()+1).toString().padStart(2,"0"),l=s.getFullYear(),`${r}/${a}/${l}`)})]}),e.title&&(0,t.jsx)("h5",{className:"font-medium text-white mb-2",children:e.title}),(0,t.jsx)("p",{className:"text-gray-400",children:e.content})]},e.id)})})]})}function p(e,t){let s={flesh:"color_flesh",black:"color_black",caramel:"color_caramel",brown:"color_brown",white:"color_white",pink:"color_pink",purple:"color_purple",lavender:"color_lavender",blue:"color_blue","seafoam blue":"color_seafoam_blue","pale rosette":"color_pale_rosette",red:"color_red",green:"color_green",gold:"color_gold",silver:"color_silver",transparent:"color_transparent",natural:"color_natural",skin:"color_skin"}[e.toLowerCase()];if(s){let e=t(s);if(e&&e!==s)return e}return e}function f(e){let r,a,l,i,o,c,d,m=(0,s.c)(39),{variants:u,currentProductId:h,variantType:x}=e,{t:g,language:p}=(0,n.useLanguage)(),f=x?.includes("_")||!1;e:{let e;if(!f||!u[0]?.dimensions){r=null;break e}m[0]!==u[0].dimensions?(e=Object.keys(u[0].dimensions),m[0]=u[0].dimensions,m[1]=e):e=m[1],r=e}let w=r;t:{let e,t;if(!f||!w){a=null;break t}m[2]!==w?(e=w.find(v)||w[0],m[2]=w,m[3]=e):e=m[3];let s=e;m[4]!==s||m[5]!==u?(t=function(e,t){let s={};for(let r of e){let e=r.dimensions?.[t]||"default";s[e]||(s[e]=[]),s[e].push(r)}return s}(u,s),m[4]=s,m[5]=u,m[6]=t):t=m[6],a=t}let y=a;if(!u||u.length<=1)return null;let N=x||u[0]?.variant_type;if(m[7]!==g||m[8]!==N)l=({color:g("color")||"é¡è²",size:g("size")||"尺寸",volume:g("volume")||"容é",size_color:g("options")||"é¸é ",color_size:g("options")||"é¸é "})[N||""]||g("options")||"é¸é ",m[7]=g,m[8]=N,m[9]=l;else l=m[9];let _=l;if(y&&Object.keys(y).length>1){let e,s,r,a,l;return m[10]!==h||m[11]!==y||m[12]!==p||m[13]!==g?(r="mb-6",e="space-y-4",s=Object.keys(y).sort(b).map(e=>(0,t.jsxs)("div",{className:"flex items-start gap-3",children:[(0,t.jsxs)("span",{className:"text-sm font-medium text-gray-400 w-20 shrink-0 pt-2",children:[g("size_prefix")," ",e,":"]}),(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:y[e].map(e=>(0,t.jsx)(j,{variant:e,isCurrent:e.product_id===h,t:g,language:p},e.product_id))})]},e)),m[10]=h,m[11]=y,m[12]=p,m[13]=g,m[14]=e,m[15]=s,m[16]=r):(e=m[14],s=m[15],r=m[16]),m[17]!==e||m[18]!==s?(a=(0,t.jsx)("div",{className:e,children:s}),m[17]=e,m[18]=s,m[19]=a):a=m[19],m[20]!==r||m[21]!==a?(l=(0,t.jsx)("div",{className:r,children:a}),m[20]=r,m[21]=a,m[22]=l):l=m[22],l}if(m[23]!==_?(i=(0,t.jsx)("div",{className:"flex items-center gap-3 mb-3",children:(0,t.jsxs)("span",{className:"text-sm font-medium text-gray-400",children:[_,":"]})}),m[23]=_,m[24]=i):i=m[24],m[25]!==h||m[26]!==p||m[27]!==g||m[28]!==u){let e;m[30]!==h||m[31]!==p||m[32]!==g?(e=e=>(0,t.jsx)(j,{variant:e,isCurrent:e.product_id===h,t:g,language:p},e.product_id),m[30]=h,m[31]=p,m[32]=g,m[33]=e):e=m[33],o=u.map(e),m[25]=h,m[26]=p,m[27]=g,m[28]=u,m[29]=o}else o=m[29];return m[34]!==o?(c=(0,t.jsx)("div",{className:"flex flex-wrap gap-3",children:o}),m[34]=o,m[35]=c):c=m[35],m[36]!==i||m[37]!==c?(d=(0,t.jsxs)("div",{className:"mb-6",children:[i,c]}),m[36]=i,m[37]=c,m[38]=d):d=m[38],d}function b(e,t){return(parseFloat(e.replace(/[^\d.]/g,""))||0)-(parseFloat(t.replace(/[^\d.]/g,""))||0)}function v(e){return"color"!==e}function j(e){let r,i,n,o,c,d,m,u=(0,s.c)(28),{variant:h,isCurrent:x,t:g,language:f}=e,b=!1===h.in_stock;u[0]!==f||u[1]!==g||u[2]!==h.name||u[3]!==h.name_en||u[4]!==h.name_zh?(r="zh"===f?h.name_zh||function(e,t){let s=e.match(/^(\d+(?:\.\d+)?["â³']?)\s*\/\s*(.+)$/);if(s){let e=s[1],r=p(s[2],t);return`${e} / ${r}`}return p(e,t)}(h.name,g):h.name_en||h.name,u[0]=f,u[1]=g,u[2]=h.name,u[3]=h.name_en,u[4]=h.name_zh,u[5]=r):r=u[5];let v=r,j=`/products/${h.slug}`,w=` 2 relative group 3 w-14 h-14 4 rounded-lg overflow-hidden 5 border-2 transition-all duration-200 6 ${x?"border-primary shadow-[0_0_10px_rgba(217,70,239,0.5)]":"border-white/10 hover:border-white/30 opacity-70 hover:opacity-100"} 7 ${b?"opacity-50":""} 8 `;u[6]!==b||u[7]!==g?(i=b?` (${g("out_of_stock")||"缺貨"})`:"",u[6]=b,u[7]=g,u[8]=i):i=u[8];let y=v+i;return u[9]!==v||u[10]!==b||u[11]!==h.image?(n=h.image?(0,t.jsx)(a.default,{src:h.image,alt:v,fill:!0,className:`object-cover ${b?"grayscale":""}`,unoptimized:!0}):(0,t.jsx)("div",{className:"w-full h-full bg-gray-800 flex items-center justify-center",children:(0,t.jsx)("span",{className:"text-xs text-gray-500 text-center px-1 leading-tight",children:v})}),u[9]=v,u[10]=b,u[11]=h.image,u[12]=n):n=u[12],u[13]!==b?(o=b&&(0,t.jsx)("div",{className:"absolute inset-0 flex items-center justify-center",children:(0,t.jsx)("div",{className:"w-full h-0.5 bg-red-500 rotate-45 transform origin-center"})}),u[13]=b,u[14]=o):o=u[14],u[15]!==b||u[16]!==g?(c=b&&(0,t.jsxs)("span",{className:"text-red-400 ml-1",children:["⢠",g("out_of_stock")||"缺貨"]}),u[15]=b,u[16]=g,u[17]=c):c=u[17],u[18]!==v||u[19]!==c?(d=(0,t.jsxs)("div",{className:"absolute -bottom-8 left-1/2 -translate-x-1/2 opacity-0 group-hover:opacity-100 transition-opacity duration-200 bg-black/90 text-white text-xs px-2 py-1 rounded whitespace-nowrap pointer-events-none z-10",children:[v,c]}),u[18]=v,u[19]=c,u[20]=d):d=u[20],u[21]!==j||u[22]!==w||u[23]!==y||u[24]!==n||u[25]!==o||u[26]!==d?(m=(0,t.jsxs)(l.default,{href:j,className:w,title:y,children:[n,o,d]}),u[21]=j,u[22]=w,u[23]=y,u[24]=n,u[25]=o,u[26]=d,u[27]=m):m=u[27],m}var w=e.i(14519);function y(e){let a,l,i,c,d,m,u,h,x,g,p,f=(0,s.c)(21),{className:b}=e,{language:v}=(0,n.useLanguage)(),[j,y]=(0,o.useState)(!1),N=(0,o.useRef)(null),_=(0,o.useRef)(null),k="zh"===v;f[0]!==j?(a=()=>
8{if(!j)return;let e=e=>{N.current&&!N.current.contains(e.target)&&_.current&&!_.current.contains(e.target)&&y(!1)};return document.addEventListener("click",e),()=>document.removeEventListener("click",e)},l=[j],f[0]=j,f[1]=a,f[2]=l):(a=f[1],l=f[2]),(0,o.useEffect)(a,l);let S=`relative inline-flex ${void 0===b?"":b}`;f[3]!==j?(i=()=>y(!j),f[3]=j,f[4]=i):i=f[4],f[5]===Symbol.for("react.memo_cache_sentinel")?(c=()=>y(!0),d=()=>y(!1),m=(0,t.jsx)("span",{className:"text-lg",children:"ð"}),f[5]=c,f[6]=d,f[7]=m):(c=f[5],d=f[6],m=f[7]);let C=k?"å¯äº«ç¨%åªæ ææ£":"% Volume discount";return f[8]!==C?(u=(0,t.jsx)("span",{className:"text-sm text-green-400 font-medium",children:C}),f[8]=C,f[9]=u):u=f[9],f[10]===Symbol.for("react.memo_cache_sentinel")?(h=(0,t.jsx)("span",{className:"w-4 h-4 rounded-full bg-white/10 text-gray-400 text-[10px] font-bold flex items-center justify-center group-hover:bg-primary/20 group-hover:text-primary transition-colors",children:"?"}),f[10]=h):h=f[10],f[11]!==u||f[12]!==i?(x=(0,t.jsxs)("div",{ref:_,className:"flex items-center gap-1.5 cursor-pointer group",onClick:i,onMouseEnter:c,onMouseLeave:d,children:[m,u,h]}),f[11]=u,f[12]=i,f[13]=x):x=f[13],f[14]!==k||f[15]!==j?(g=j&&(0,t.jsxs)("div",{ref:N,className:"absolute left-0 top-full mt-2 z-50 w-72 rounded-xl bg-[#1a1a2e] border border-white/15 shadow-2xl shadow-black/50 p-4 animate-in fade-in slide-in-from-top-2 duration-200",children:[(0,t.jsx)("h4",{className:"text-white font-bold text-sm mb-2",children:k?"åªæ ææ£:":"Volume discounts"}),(0,t.jsx)("p",{className:"text-gray-400 text-xs mb-3",children:k?"åªæ ææ£å¾é顿å¨è³¼ç©è»é¡¯ç¤º:":"Volume discount will be applied at checkout:"}),(0,t.jsx)("ul",{className:"space-y-1.5",children:[...w.VOLUME_DISCOUNT_TIERS].reverse().map(e=>(0,t.jsxs)("li",{className:"flex items-center gap-2 text-sm",children:[(0,t.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-primary flex-shrink-0"}),(0,t.jsx)("span",{className:"text-gray-300",children:k?`è¨å®æ»¿${(0,r.formatPrice)(e.min)}å¯äº«æ${100-e.percent}æ`:`${e.percent}% OFF for orders ${(0,r.formatPrice)(e.min)}+`})]},e.min))}),(0,t.jsx)("div",{className:"absolute -top-1.5 left-6 w-3 h-3 bg-[#1a1a2e] border-l border-t border-white/15 rotate-45"})]}),f[14]=k,f[15]=j,f[16]=g):g=f[16],f[17]!==x||f[18]!==g||f[19]!==S?(p=(0,t.jsxs)("div",{className:S,children:[x,g]}),f[17]=x,f[18]=g,f[19]=S,f[20]=p):p=f[20],p}var N=e.i(43082);function _(e){let r,a,l,i,n,c,d,m,u,h,x,g,p,f=(0,s.c)(33),{price:b,t:v,language:j}=e,[w,y]=(0,o.useState)(!1),N=b>=300;f[0]!==w?(r=()=>y(!w),f[0]=w,f[1]=r):r=f[1],f[2]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsx)("div",{className:"w-10 h-10 rounded-full bg-primary/20 flex items-center justify-center flex-shrink-0",children:(0,t.jsxs)("svg",{className:"w-5 h-5 text-primary",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"}),(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 11a3 3 0 11-6 0 3 3 0 016 0z"})]})}),f[2]=a):a=f[2],f[3]!==v?(l=v("delivery_to"),f[3]=v,f[4]=l):l=f[4];let _="zh"===j?"\uD83C\uDDED\uD83C\uDDF0\uD83C\uDDF2\uD83C\uDDF4 ":"";f[5]!==v?(i=v("hong_kong_macau"),f[5]=v,f[6]=i):i=f[6],f[7]!==_||f[8]!==i?(n=(0,t.jsxs)("span",{className:"text-white font-medium whitespace-nowrap",children:[_,i]}),f[7]=_,f[8]=i,f[9]=n):n=f[9],f[10]!==l||f[11]!==n?(c=(0,t.jsxs)("div",{className:"text-sm text-gray-400 flex items-center gap-2",children:[l," ",n]}),f[10]=l,f[11]=n,f[12]=c):c=f[12],f[13]!==N||f[14]!==v?(d=(0,t.jsx)("div",{className:"text-sm",children:N?(0,t.jsx)("span",{className:"text-green-400 font-medium",children:v("delivery_free")}):(0,t.jsx)("span",{className:"text-gray-300",children:v("delivery_from_price")})}),f[13]=N,f[14]=v,f[15]=d):d=f[15],f[16]!==c||f[17]!==d?(m=(0,t.jsxs)("div",{className:"flex-1",children:[c,d]}),f[16]=c,f[17]=d,f[18]=m):m=f[18];let k=`w-5 h-5 text-gray-400 transition-transform ${w?"rotate-180":""}`;return f[19]===Symbol.for("react.memo_cache_sentinel")?(u=(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"}),f[19]=u):u=f[19],f[20]!==k?(h=(0,t.jsx)("svg",{className:k,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:u}),f[20]=k,f[21]=h):h=f[21],f[22]!==r||f[23]!==h||f[24]!==m?(x=(0,t.jsxs)("button",{onClick:r,className:"w-full p-4 rounded-xl bg-white/5 border border-white/10 hover:bg-white/10 transition-all flex items-center gap-3 text-left",children:[a,m,h]}),f[22]=r,f[23]=h,f[24]=m,f[25]=x):x=f[25],f[26]!==N||f[27]!==w||f[28]!==v?(g=w&&(0,t.jsxs)("div",{className:"mt-2 rounded-xl bg-white/5 border border-white/10 overflow-hidden",children:[(0,t.jsxs)("div",{className:"p-4 border-b border-white/10 flex justify-between items-start",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"font-medium text-white",children:v("self_pickup_shop")}),(0,t.jsx)("div",{className:"text-sm text-gray-400",children:v("self_pickup_time")})]}),(0,t.jsx)("span",{className:"text-primary font-bold",children:v("free")})]}),(0,t.jsxs)("div",{className:"p-4 border-b border-white/10 flex justify-between items-start",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"font-medium text-white",children:v("courier_express")}),(0,t.jsx)("div",{className:"text-sm text-gray-400",children:v("courier_time")}
8)]}),(0,t.jsx)("span",{className:`font-bold ${N?"text-green-400":"text-white"}`,children:N?v("free"):"HK$49"})]})]}),f[26]=N,f[27]=w,f[28]=v,f[29]=g):g=f[29],f[30]!==x||f[31]!==g?(p=(0,t.jsxs)("div",{className:"mb-10",children:[x,g]}),f[30]=x,f[31]=g,f[32]=p):p=f[32],p}function k({product:e,priceValidUntil:s}){let[h,x]=(0,o.useState)(1),[p,b]=(0,o.useState)(!1),[v,j]=(0,o.useState)(!1),[k,S]=(0,o.useState)(!1),{language:C,t:L}=(0,n.useLanguage)(),{addItem:$}=(0,c.useCart)(),z=(0,m.useRouter)(),[M,R]=(0,o.useState)(0),[T,B]=(0,o.useState)(0),A=(0,o.useRef)(null),I=(0,o.useRef)(null),[E,O]=(0,o.useState)(!1),[F,P]=(0,o.useState)(!1),D=(0,o.useCallback)(()=>{let e=A.current;e&&(O(e.scrollTop>2),P(e.scrollTop+e.clientHeight<e.scrollHeight-2))},[]);(0,o.useEffect)(()=>{let e=A.current;if(!e)return;D(),e.addEventListener("scroll",D,{passive:!0});let t=new ResizeObserver(()=>D());return t.observe(e),()=>{e.removeEventListener("scroll",D),t.disconnect()}},[D,M]);let W=e=>{let t=A.current;t&&t.scrollBy({top:"up"===e?-144:144,behavior:"smooth"})},q=e=>{let t=I.current;if(!t)return;let s=("left"===e?Math.max(0,T-1):Math.min(U?.length?U.length-1:0,T+1))*t.offsetWidth;t.scrollTo({left:s,behavior:"smooth"})},[V,H]=(0,o.useState)(null);(0,o.useEffect)(()=>{let e=sessionStorage.getItem("from_category");e&&(sessionStorage.removeItem("from_category"),H(e))},[]),(0,o.useEffect)(()=>{let t=e.category_path_en||e.category_path,s="string"==typeof t?JSON.parse(t):t||[];(0,N.trackViewItem)({id:e.original_id||e.id,title:e.title_en||e.title,price:e.price,brand:e.brand||"",category:Array.isArray(s)&&s[0]||""})},[e]);let U=[];try{"string"==typeof e.images?U=JSON.parse(e.images):Array.isArray(e.images)&&(U=e.images)}catch(e){console.error("Failed to parse images",e)}if(0===U.length){let t=(0,r.extractImagesFromHtml)(e.description_html);U=t.length>0?t:["/placeholder.png"]}let J="en"===C,G=J&&e.title_en?e.title_en:e.title,K=(0,r.decodeHtmlEntities)(G),Y=J&&e.description_html_en?e.description_html_en:e.description_html,Q=J&&e.specifications_en?e.specifications_en:e.specifications,X="string"==typeof e.variants?JSON.parse(e.variants):e.variants||[],Z=X.length>0?X[0]:null,ee=e.price,et=Number(e.original_price)||0;e.original_id;let es=Z?Z.weight:null,er=et>ee,ea=er?Math.round((et-ee)/et*100):0,el=(0,w.getVolumePreviewPrice)(ee),ei=null!==el,en=ei?Math.round((ee-el)/ee*100):0,eo=ei&&(!er||ea<en),ec=ee,ed=et,em=ea,eu=er;eo&&el&&(ec=el,ed=er?et:ee,em=er?Math.round((et-el)/et*100):en,eu=!0);let eh={vibrators:"vibrators",masturbators:"masturbators","app controlled":"app-controlled","remote control":"app-controlled","smartphone app":"app-controlled","anal toys":"anal-toys","dildos and wands":"dildos",dildos:"dildos",bdsm:"bdsm",lubricants:"lubes-care","personal care":"lubes-care","cleansing and maintenances":"lubes-care","skin care":"lubes-care","sexual enhancers":"enhancers","sensual delights":"enhancers","sexual accessories":"enhancers","clitoral vibrators":"clitoral-stimulators",clitoral:"clitoral-stimulators","rabbit vibrators":"rabbit-vibrators",rabbit:"rabbit-vibrators","g-spot vibrators":"g
8-spot-vibrators","g-spot":"g-spot-vibrators","wand massagers":"massagers",massagers:"massagers",bullets:"bullets-eggs",eggs:"bullets-eggs","bullet vibrators":"bullets-eggs","vibrating masturbators":"vibro-masturbators",vibro:"vibro-masturbators","av masturbators":"av-masturbators","japanese masturbators":"av-masturbators",hentai:"hentai-masturbators",anime:"hentai-masturbators","anal plugs":"anal-plugs","butt plugs":"anal-plugs","prostate massager":"prostate-massager",prostate:"prostate-massager","cleaning douche":"anal-douches",enema:"anal-douches","anal douche":"anal-douches","realistic dildos":"realistic-dildos",realistic:"realistic-dildos","vibrating dildos":"vibro-dildos","vibro dildos":"vibro-dildos","strap-ons":"strap-ons","strap on":"strap-ons",harness:"strap-ons","sex machine":"sex-machine","fucking machine":"sex-machine","water based":"lubes","silicone based":"lubes",hybrid:"lubes",condoms:"condoms",prolonging:"prolonging",delay:"prolonging","liquid stimulators":"liquid-stimulators",arousal:"liquid-stimulators","cock pumps":"cock-pumps","penis pumps":"cock-pumps",pump:"cock-pumps","stimulating for men":"stimulating-for-men","male enhancement":"stimulating-for-men","stimulating for women":"stimulating-for-women","female enhancement":"stimulating-for-women"},ex=e=>{let t=e.toLowerCase().trim();for(let e of i.MAIN_CATEGORIES){if(e.name.toLowerCase()===t||e.slug===t)return{main:e};for(let s of e.subcategories)if(s.name.toLowerCase()===t||s.slug===t)return{main:e,sub:s}}let s=eh[t];if(s)for(let e of i.MAIN_CATEGORIES){if(e.slug===s)return{main:e};for(let t of e.subcategories)if(t.slug===s)return{main:e,sub:t}}return null},eg=(e,t)=>{if(!e)return[];let s=[{name:e.name,name_zh:e.name_zh,slug:e.slug}];return t&&s.push({name:t.name,name_zh:t.name_zh,slug:t.slug,parentSlug:e.slug}),s},ep=[];try{let t=e.category_path_en||e.category_path,s="string"==typeof t?JSON.parse(t):t||[];if(Array.isArray(s)&&s.length>0){let e=[],t=[];for(let r of s)for(let s of r.includes("/")?r.split("/").map(e=>e.trim()):[r.trim()]){let r=s.toLowerCase();if("sex toy"===r||"sex toys"===r||"brands"===r)continue;let a=ex(s);a&&(a.sub&&t.push({main:a.main,sub:a.sub}),e.some(e=>e.slug===a.main.slug)||e.push(a.main))}t.length>0?ep=eg(t[0].main,t[0].sub):e.length>0&&(ep=eg(e[0],null))}}catch(e){console.error("Failed to parse categories",e)}let ef=(()=>{if(!V)return ep;let e=V.toLowerCase();for(let t of i.MAIN_CATEGORIES){if(t.slug===e)return eg(t,null);let s=t.subcategories.find(t=>t.slug===e);if(s)return eg(t,s)}return ep})(),eb=(()=>{let t=(0,r.formatBrand)(e.brand||"");if(!t)return"/search";let s=ef.length>0?ef[0].slug:null;return s?`/categories/${s}?brand=${encodeURIComponent(t)}`:`/search?q=${encodeURIComponent(t)}`})(),ev=(0,r.fixHtmlContent)(Y),ej={Brand:"åç",Color:"é¡è²",Country:"ç¢å°",Material:"æè³ª","Length (cm)":"é·åº¦ï¼åç±³ï¼","Diameter (cm)":"ç´å¾ï¼åç±³ï¼",Vibration:"æ¯å",Waterproof:"鲿°´","Warranty (months)":"ä¿ä¿®ï¼æï¼"},ew=0===e.quantity||"out_of_stock"===e.stock_status,ey=e.quantity||100;return(0,t.jsxs)("main",{className:"min-h-screen bg-background text-foreground pb-20 overflow-x-hidden",children:[(0,t.jsx)(u.ProductSchema,{product:{title:e.title,title_en:e.title_en,description:e.description_html?.replace(/<[^>]*>/g,"").slice(0,500),price:ee,original_price:et,images:U,sku:e.sku||e.original_id,brand:(0,r.formatBrand)(e.brand),stock_status:e.stock_status,quantity:e.quantity,slug:e.slug||String(e.id),price_valid_until:s},language:C}),(0,t.jsx)(u.ProductFAQSchema,{productName:K,brand:(0,r.formatBrand)(e.brand),isInStock:!ew,language:C}),(0,t.jsx)(u.BreadcrumbSchema,{items:[{name:"en"===C?"Home":"é¦é ",url:"https://wanta.net"},...ep.map(e=>({name:J?e.name:e.name_zh,url:e.parentSlug?`https://wanta.net/categories/${e.parentSlug}/${e.slug}`:`https://wanta.net/categories/${e.slug}`})),{name:K,url:`https://wanta.net/products/${e.slug||e.id}`}]}),(0,t.jsx)(d,{message:L("added_to_cart")||"Added to cart successfully!",isVisible:v,onClose:()=>j(!1),onClick:()=>z.push("/cart")}),(0,t.jsxs)("div",{className:"container mx-auto px-4 py-8 lg:py-12",children:[(0,t.jsxs)("div",{className:"mb-6 text-sm text-gray-400 flex items-center gap-2 flex-wrap",children:[(0,t.jsx)(l.default,{href:"/",className:"hover:text-white transition-colors",children:L("home")}),ef.map((e,s)=>(0,t.jsxs)("span",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{children:">"}),(0,t.jsx)(l.default,{href:e.parentSlug?`/categories/${e.parentSlug}/${e.slug}`:`/categories/${e.slug}`,className:"hover:text-white transition-colors",children:J?e.name:e.name_zh})]},s))]}),(0,t.jsxs)("div",{className:"mb-4 lg:hidden",children:[(0,t.jsx)("h1",{className:"text-2xl font-bold text-white leading-tight mb-1",children:K}),(0,t.jsxs)("div",{className:"flex items-center gap-4 text-sm text-gray-400",children:[(0,t.jsxs)("span",{children:["SKU: ",e.sku||e.original_id]}),e.brand&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"w-1 h-1 rounded-full bg-gray-600"}),(0,t.jsx)(l.default,{href:eb,className:"text-primary font-medium hover:text-primary/80 hover:underline transition-colors",children:(0,r.formatBrand)(e.brand)})]})]})]}),(0,t.jsxs)("div",{className:"flex flex-col lg:grid lg:grid-cols-[5fr_7fr] gap-8 lg:gap-12",children:[(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsxs)("div",{className:"lg:hidden relative w-full aspect-square overflow-hidden rounded-2xl bg-white",children:[(0,t.jsxs)("div",{ref:I,className:"flex w-full h-full overflow-x-auto snap-x snap-mandatory scrollbar-hide",onScroll:e=>{B(Math.round(e.currentTarget.scrollLeft/e.currentTarget.offsetWidth))},children:[U.map((e,s)=>(0,t.jsx)("div",{className:"w-full h-full flex-shrink-0 snap-center relative",children:(0,t.jsx)(a.default,{src:e,alt:`${K} - View ${s+1}`,fill:!0,className:"object-contain",priority:0===s,unoptimized:!0})},s)),0===U.length&&(0,t.jsx)("div",{className:"w-full h-full flex items-center justify-center text-gray-500",children:"No Image"})]}),U.length>1&&(0,t.jsxs)(t.Fragment,{children:[T>0&&(0,t.jsx)("button",{onClick:()=>q("left"),className:"absolute left-2 top-1/2 -translate-y-1/2 z-10 w-8 h-8 rounded-full bg-black/30 backdrop-blur-sm flex items-center justify-center text-white/70 hover:text-white hover:bg-black/50 transition-all","aria-label":"Previous image",children:(0,t.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:(0,t.jsx)("polyline",{points:"15 18 9 12 15 6"})})}),T<U.length-1&&(0,t.jsx)("button",{onClick:()=>q("right"),className:"absolute right-2 top-1/2 -translate-y-1/2 z-10 w-8 h-8 rounded-full bg-black/30 backdrop-blur-sm flex items-center justify-center text-white/70 hover:text-white hover:bg-black/50 transition-all","aria-label":"Next image",children:(0,t.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:(0,t.jsx)("polyline",{points:"9 18 15 12 9 6"})})})]}),U.length>1&&(0,t.jsx)("div",{className:"absolute bottom-4 left-0 right-0 flex justify-center gap-2 z-10",children:U.map((e,s)=>(0,t.jsx)("div",{className:`w-2 h-2 rounded-full transition-all ${T===s?"bg-white w-4":"bg-white/30"}`},s))})]}),(0,t.jsxs)("div",{className:"hidden lg:flex gap-3",children:[U&&U.length>1&&(0,t.jsxs)("div",{className:"flex flex-col items-center gap-1",children:[(0,t.jsx)("button",{onClick:()=>W("up"),className:`w-16 flex justify-center py-1 transition-all ${E?"text-white/50 hover:text-white":"text-transparent pointer-events-none"}`,"aria-label":"Scroll thumbnails up",children:(0,t.jsx)("svg",{width:"12",height:"8",viewBox:"0 0 12 8",fill:"
8currentColor",children:(0,t.jsx)("polygon",{points:"6,0 12,8 0,8"})})}),(0,t.jsx)("div",{ref:A,className:"flex flex-col gap-2 overflow-y-auto max-h-[500px] scrollbar-hide pr-0",style:{scrollbarWidth:"none",msOverflowStyle:"none"},children:U.map((e,s)=>(0,t.jsx)("button",{onClick:()=>R(s),className:`relative w-16 h-16 flex-shrink-0 overflow-hidden rounded-lg border-2 transition-all ${M===s?"border-primary shadow-[0_0_10px_rgba(217,70,239,0.5)]":"border-transparent opacity-60 hover:opacity-100"}`,children:(0,t.jsx)(a.default,{src:e,alt:`${K} ${s+1}`,fill:!0,className:"object-cover",unoptimized:!0})},s))}),(0,t.jsx)("button",{onClick:()=>W("down"),className:`w-16 flex justify-center py-1 transition-all ${F?"text-white/50 hover:text-white":"text-transparent pointer-events-none"}`,"aria-label":"Scroll thumbnails down",children:(0,t.jsx)("svg",{width:"12",height:"8",viewBox:"0 0 12 8",fill:"currentColor",children:(0,t.jsx)("polygon",{points:"6,8 0,0 12,0"})})})]}),(0,t.jsx)("div",{className:"relative aspect-square flex-1 overflow-hidden rounded-2xl bg-white",children:U&&U[M]?(0,t.jsx)(a.default,{src:U[M],alt:K,fill:!0,className:"object-contain",priority:!0,unoptimized:!0}):(0,t.jsx)("div",{className:"w-full h-full flex items-center justify-center text-gray-500",children:"No Image"})})]})]}),(0,t.jsxs)("div",{className:"flex flex-col min-w-0",children:[(0,t.jsxs)("div",{className:"mb-3 hidden lg:block",children:[(0,t.jsx)("h1",{className:"text-2xl font-bold text-white sm:text-3xl lg:text-3xl leading-tight mb-1",children:K}),(0,t.jsxs)("div",{className:"flex items-center gap-4 text-sm text-gray-400",children:[(0,t.jsxs)("span",{children:["SKU: ",e.sku||e.original_id]}),e.brand&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"w-1 h-1 rounded-full bg-gray-600"}),(0,t.jsx)(l.default,{href:eb,className:"text-primary font-medium hover:text-primary/80 hover:underline transition-colors",children:(0,r.formatBrand)(e.brand)})]})]})]}),e.product_variants&&e.product_variants.length>1&&(0,t.jsx)(f,{variants:e.product_variants,currentProductId:e.internal_id||e.id,variantType:e.variant_type}),(0,t.jsxs)("div",{className:"mb-4",children:[(0,t.jsxs)("div",{className:"flex items-baseline gap-3",children:[(0,t.jsx)("p",{className:"text-2xl font-bold text-white",children:(0,r.formatPrice)(ec)}),eu&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"text-lg text-gray-400 line-through",children:(0,r.formatPrice)(ed)}),(0,t.jsxs)("span",{className:"text-sm font-bold text-red-400",children:[L("save")," ",em,"%"]})]}),(0,t.jsx)("span",{className:`inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium border ml-auto ${ew?"bg-red-500/10 text-red-500 border-red-500/20":"bg-green-500/10 text-green-500 border-green-500/20"}`,children:L(ew?"out_of_stock":"in_stock")})]}),ei&&(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsx)(y,{})})]}),(0,t.jsx)("div",{className:"mb-4 p-4 rounded-xl bg-white/5 border border-white/10 backdrop-blur-sm",children:(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsxs)("div",{className:"flex items-center rounded-lg border border-white/10 bg-black/20",children:[(0,t.jsx)("button",{onClick:()=>x(e=>Math.max(1,e-1)),disabled:ew||h<=1,className:"px-3 py-2 text-gray-400 hover:text-white transition-colors disabled:opacity-50",children:"-"}),(0,t.jsx)("span",{className:"w-6 text-center text-sm font-medium text-white",children:h}),(0,t.jsx)("button",{onClick:()=>x(e=>Math.min(ey,e+1)),disabled:ew||h>=ey,className:"px-3 py-2 text-gray-400 hover:text-white transition-colors disabled:opacity-50",children:"+"})]}),(0,t.jsx)("button",{onClick:()=>{k||!ew&&e&&(S(!0),$(e,h,void 0,{title:K,price:ee,originalPrice:er?et:void 0,image:U[0]}),b(!0),j(!0),(0,N.trackAddToCart)({id:e.original_id||e.id,title:e.title_en||e.title,price:ee,quantity:h,brand:e.brand||""}),setTimeout(()=>b(!1),3e3),setTimeout(()=>S(!1),500))},disabled:ew,className:`rounded-lg px-6 py-2 text-sm font-bold text-white transition-all ${ew?"bg-gray-500 cursor-not-allowed":"bg-primary hover:bg-primary/90 hover:shadow-[0_0_20px_rgba(217,70,239,0.4)]"}`,children:L(ew?"out_of_stock":"add_to_cart")}),(0,t.jsx)("span",{className:"text-xs text-gray-300 ml-auto hidden sm:inline",children:L("discreet_shipping")})]})}),(0,t.jsx)(_,{price:ee,t:L,language:C}),(Q&&Object.keys(Q).length>0||es)&&(0,t.jsxs)("div",{className:"mb-5 pt-4 border-t border-white/10",children:[(0,t.jsx)("h3",{className:"text-base font-bold text-white mb-2",children:L("specifications")}),(0,t.jsxs)("div",{className:"grid grid-cols-2 lg:grid-cols-3 gap-x-6 gap-y-1",children:[es&&(0,t.jsxs)("div",{className:"flex gap-2 py-1 text-sm",children:[(0,t.jsxs)("span",{className:"text-gray-400",children:[L("weight"),":"]}),(0,t.jsxs)("span",{className:"text-white",children:[es,L("unit_g")]})]}),Q&&Object.entries(Q).map(([e,s])=>(0,t.jsxs)("div",{className:"flex gap-2 py-1 text-sm",children:[(0,t.jsxs)("span",{className:"text-gray-400",children:[!J&&ej[e]?ej[e]:e,":"]}),(0,t.jsx)("span",{className:"text-white",children:(e=>{let t=String(e);if(t.includes("|")){let e=t.split("|");t=J?e[0]:e[1]||e[0]}return isNaN(Number(t))||""===t.trim()?t:Number(t).toString()})(s)})]},e))]})]}),(0,t.jsxs)("div",{className:"prose prose-invert prose-sm max-w-none text-gray-400 mb-5",children:[(0,t.jsx)("h3",{className:"text-base font-bold text-white mb-2",children:L("description")}),(0,t.jsx)("div",{dangerouslySetInnerHTML:{__html:ev},className:"[&_img]:rounded-xl [&_img]:my-3 [&_table]:w-full [&_td]:p-2 [&_td]:border-b [&_td]:border-white/10"})]}),(0,t.jsx)(g,{productId:e.id,productSlug:e.slug||String(e.id),productTitle:K})]})]})]})]})}e.s(["default",()=>
8k],20828)},3104,e=>{"use strict";var t=e.i(43476),s=e.i(932),r=e.i(22016),a=e.i(9039);function l(){let e,l,i,n,o,c,d,m,u,h,x=(0,s.c)(21),{language:g}=(0,a.useLanguage)(),p="en"===g;x[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsxs)("div",{className:"mb-8 relative",children:[(0,t.jsx)("div",{className:"w-32 h-32 mx-auto rounded-full bg-gradient-to-br from-amber-500/20 to-orange-500/20 flex items-center justify-center border border-white/10",children:(0,t.jsx)("svg",{className:"w-16 h-16 text-amber-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M20 7l-8-4-8 4m16 0l-8 4m8-4v10l-8 4m0-10L4 7m8 4v10M4 7v10l8 4"})})}),(0,t.jsx)("div",{className:"absolute inset-0 w-32 h-32 mx-auto rounded-full bg-amber-500/10 animate-pulse"})]}),x[0]=e):e=x[0];let f=p?"Product No Longer Available":"åå已䏿¶";x[1]!==f?(l=(0,t.jsx)("h1",{className:"text-3xl font-bold text-white mb-2",children:f}),x[1]=f,x[2]=l):l=x[2];let b=p?"åå已䏿¶":"Product No Longer Available";x[3]!==b?(i=(0,t.jsx)("p",{className:"text-lg text-gray-500 mb-6",children:b}),x[3]=b,x[4]=i):i=x[4];let v=p?"This product has been discontinued and is no longer available for purchase. Please browse our catalog for similar items.":"æ¤ååå·²åå®ï¼ç®åç¡æ³è³¼è²·ãè«ç覽æåçç®éæ¥çé¡ä¼¼ååã";x[5]!==v?(n=(0,t.jsx)("p",{className:"text-gray-400 mb-10 leading-relaxed max-w-sm mx-auto",children:v}),x[5]=v,x[6]=n):n=x[6],x[7]===Symbol.for("react.memo_cache_sentinel")?(o=(0,t.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})}),x[7]=o):o=x[7];let j=p?"Go to Homepage":"åå¾é¦é ";x[8]!==j?(c=(0,t.jsxs)(r.default,{href:"/",className:"w-full inline-flex items-center justify-center gap-2 rounded-full bg-primary px-8 py-3 text-sm font-bold text-white hover:bg-primary/90 transition-all hover:shadow-[0_0_20px_rgba(217,70,239,0.3)]",children:[o,j]}),x[8]=j,x[9]=c):c=x[9],x[10]===Symbol.for("react.memo_cache_sentinel")?(d=(0,t.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2V6zM14 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2V6zM4 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2v-2zM14 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2v-2z"})}),x[10]=d):d=x[10];let w=p?"Browse Catalog":"ç覽ç®é";return x[11]!==w?(m=(0,t.jsxs)(r.default,{href:"/categories",className:"w-full inline-flex items-center justify-center gap-2 rounded-full border border-white/20 px-8 py-3 text-sm font-bold text-white hover:bg-white/5 transition-all",children:[d,w]}),x[11]=w,x[12]=m):m=x[12],x[13]!==m||x[14]!==c?(u=(0,t.jsxs)("div",{className:"flex flex-col gap-3 items-center max-w-xs mx-auto",children:[c,m]}),x[13]=m,x[14]=c,x[15]=u):u=x[15],x[16]!==u||x[17]!==l||x[18]!==i||x[19]!==n?(h=(0,t.jsx)("main",{className:"flex-1 bg-background flex items-center justify-center px-4 py-16 sm:py-24",children:(0,t.jsxs)("div",{className:"text-center max-w-lg",children:[e,l,i,n,u]})}),x[16]=u,x[17]=l,x[18]=i,x[19]=n,x[20]=h):h=x[20],h}e.s(["default",()=>l])}]);
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.