1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8034],{3825:()=>{},5380:(e,t,r)=>{"use strict";r.d(t,{s:()=>s.s});var s=r(34401)},7258:(e,t,r)=>{"use strict";r.r(t),r.d(t,{ProductImageGallery:()=>s.j});var s=r(51249)},9599:(e,t,r)=>{"use strict";r.d(t,{PF:()=>s,el:()=>a});let[s,a,i]=(0,r(37220).q)({name:"GalleryPosterContext",defaultValue:{poster:null,presentation:{imageFit:"cover",galleryStyle:{},thumbDirection:"horizontal",hasThumbs:!0}}})},11371:e=>{e.exports={gallery:"ProductImageGallery_gallery__TEqrg",galleryInactive:"ProductImageGallery_galleryInactive__MVxBF",galleryThumbsSide:"ProductImageGallery_galleryThumbsSide__W7lNZ",galleryThumbsSideBox:"ProductImageGallery_galleryThumbsSideBox__XEjSa",galleryViewportBox:"ProductImageGallery_galleryViewportBox__aHviJ",thumbsBox:"ProductImageGallery_thumbsBox__U9D3T",thumbs:"ProductImageGallery_thumbs__ZTm3D",viewport:"ProductImageGallery_viewport__urN2M",container:"ProductImageGallery_container___rUek",scrollContainer:"ProductImageGallery_scrollContainer__GM1_J",slideClickable:"ProductImageGallery_slideClickable__M4U1n",wallItemInner:"ProductImageGallery_wallItemInner__BYgnF",slide:"ProductImageGallery_slide__rgvRF",slideMedia:"ProductImageGallery_slideMedia__DtAx1",thumbsViewport:"ProductImageGallery_thumbsViewport__2WEMm",thumbsContainer:"ProductImageGallery_thumbsContainer__2l5mA",thumbsSlide:"ProductImageGallery_thumbsSlide__cKIJm",thumbsSlideInner:"ProductImageGallery_thumbsSlideInner__YNN_5",thumbsSlideSelected:"ProductImageGallery_thumbsSlideSelected__lfu0Q",nextButton:"ProductImageGallery_nextButton__s3bGI",previousButton:"ProductImageGallery_previousButton___ptPg",nextButtonIcon:"ProductImageGallery_nextButtonIcon__zl2Cu",nextButtonBg:"ProductImageGallery_nextButtonBg__gxbYT",nextButtonFeatureType:"ProductImageGallery_nextButtonFeatureType__vTvRL",badge:"ProductImageGallery_badge__Fgel7",wallStyle:"ProductImageGallery_wallStyle__gocos",wallStyle2:"ProductImageGallery_wallStyle2__YG2La",imageGalleryPresentationItem:"ProductImageGallery_imageGalleryPresentationItem__aDMOd",lightboxLoading:"ProductImageGallery_lightboxLoading__khJH_"}},12477:(e,t,r)=>{"use strict";r.d(t,{v:()=>f});var s=r(54568),a=r(7620),i=r(55364),o=r(68475),l=r(85135),c=r(89587),n=r(110),d=r(13446),u=r(71772),_=r(81880),p=r(31171),m=r.n(p);let h=Array.from({length:8}).fill(u.H9),f=(0,a.forwardRef)((e,t)=>{let{isBuyer:r}=e,p=(0,_.j)(t),{status:f={isMobile:!1}}=(0,a.useContext)(d.ScreenContext),{product:g,productLoading:P,productQuantity:x,promoProductGiveaway:y,selectedProductDetailId:N}=(0,n.KN)(),O=(0,a.useRef)(null);(0,i.E)(()=>{if(p.current){let e=p.current.closest("[data-shop-ui-wrapper]");e&&(r&&!y?e.style.display="none":e.style.display="")}},[r,y,P]);let R=(0,a.useMemo)(()=>r?y?.products||[]:h,[r,y]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(u.Cv,{className:(0,l.A)(m().root,"scroll"),style:{"--shop-ui-custom-product-card-list-items":"3.3",...e.style},...(0,o.A)(e,["style","className"]),ref:p,onClick:e=>{if(!g)return;let t=g.medias?.find(e=>"image"===e.type);O.current?.showGiveaway({product:g,quantity:x,name:g.name,image:t,price:g.price,selectedProductDetailId:N,selectedPromoId:e})},products:R,isLoading:P}),r&&(0,s.jsx)(c.R.Giveaway,{ref:O,isMobile:f.isMobile})]})});f.displayName="ProductGiveaway"},13190:(e,t,r)=>{"use strict";r.d(t,{_b:()=>n,cM:()=>h,qT:()=>_,q_:()=>d,tR:()=>m});var s=r(36047),a=r(17240),i=r(4938),o=r(96010),l=r(69974),c=r(34582);let n={standard:"standard",feature:"feature",light:"light"},d=[{key:"official-product-group",type:s.MN.PRODUCT_GROUP,content:c.A.gettext("ååçµå"),version:1}],u={id:"",type:s.MN.PRODUCT_GROUP,name:"ProductGroup",enable:!0,next:null,deletable:!0},_=[s.fB.RESIZE_HANDLE,s.fB.PRODUCT_CARD_TYPE,s.fB.PRODUCT_GROUP_CARD_DISPLAY_TYPE,s.fB.PRODUCT_GROUP_CARD_GAP,s.fB.PRODUCT_GROUP_CARD_AMOUNT_IN_VIEWPORT,s.fB.PRODUCT_GROUP_CARD_DISPLAY_AMOUNT,s.fB.PRODUCT_GROUP_USE_PRODUCT_NAME,s.fB.PRODUCT_GROUP_USE_PRODUCT_PRICE,s.fB.PRODUCT_GROUP_USE_PRODUCT_BADGE,s.fB.PRODUCT_GROUP_SOURCE_TYPE,s.fB.PRODUCT_GROUP_SOURCE,s.fB.PRODUCT_GROUP_SOURCE_SORTING_TYPE,s.fB.RICH_TEXT,s.fB.FONT_FAMILY,s.fB.FONT_WEIGHT,s.fB.FONT_SIZE_CUSTOM,s.fB.FONT_COLOR,s.fB.TEXT_ALIGNMENT,s.fB.TEXT_LETTER_SPACING,s.fB.COMPONENT_PROMO_BADGE_BG_COLOR,s.fB.COMPONENT_PROMO_BADGE_TEXT_COLOR,s.fB.ANIMATION],p={[s.fB.PRODUCT_CARD_TYPE]:n.standard,[s.fB.PRODUCT_GROUP_CARD_GAP]:"16px",[s.fB.PRODUCT_GROUP_CARD_AMOUNT_IN_VIEWPORT]:"4",[s.fB.PRODUCT_GROUP_CARD_DISPLAY_TYPE]:"scroll",[s.fB.PRODUCT_GROUP_USE_PRODUCT_NAME]:!0,[s.fB.PRODUCT_GROUP_USE_PRODUCT_PRICE]:!0,[s.fB.PRODUCT_GROUP_USE_PRODUCT_BADGE]:!0,[s.fB.PRODUCT_GROUP_SOURCE_TYPE]:a.VO.CATEGORY,[s.fB.PRODUCT_GROUP_SOURCE_SORTING_TYPE]:a._c.POPULARITY,[s.fB.PRODUCT_GROUP_CARD_DISPLAY_AMOUNT]:"8",[s.fB.FONT_FAMILY]:"Noto Sans TC",[s.fB.FONT_WEIGHT]:"600",[s.fB.FONT_SIZE]:"custom",[s.fB.FONT_SIZE_MODIFY_PRESET]:"custom",[s.fB.FONT_SIZE_CUSTOM]:"16",[s.fB.FONT_COLOR]:"rgba(32, 32, 38, 1)",[s.fB.TEXT_ALIGNMENT]:"left",[s.fB.TEXT_LETTER_SPACING]:"0px",[s.fB.COMPONENT_PROMO_BADGE_BG_COLOR]:"rgba(234, 124, 111, 1)",[s.fB.COMPONENT_PROMO_BADGE_TEXT_COLOR]:"rgba(255, 248, 246, 1)"};function m(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.A.gettext("é»é¸é²è¡å塿¨é¡ç·¨è¼¯..."),r=(0,i.Tt)(),s={...u,id:r};return{id:r,layout:s,style:{...p,...e},content:t}}function h(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c.A.gettext("åå¡"),t=arguments.length>1?arguments[1]:void 0,r=m(),a=t?.shouldWrap??!0;return(0,o.tC)(e,[r],{primaryGridType:l.Vk.SINGLE_CELL,secondaryGridType:l.Vk.SINGLE_CELL,shouldWrap:a,primaryGridPresetStyle:{[s.fB.PADDING_TOP]:"27px",[s.fB.PADDING_BOTTOM]:"27px"}})}},14337:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});var s=r(54568),a=r(99680);r(7620);var i=r(10933),o=r.n(i),l=r(85135),c=r(36047),n=r(20979),d=r(34582),u=r(40950);r(89983);let _=d.A.gettext("0 å
è³¼"),p=e=>{let t,r,i,p,m,h,f,g,P,x,y,N,O,R,C,T=(0,a.c)(57),{componentType:I,name:B,id:b,price:A,discounted_price:E,min_add_on_price:v,has_price_range:S,usePriceBadge:D,useShadow:G,useProductName:j,useProductPrice:U,buttonOnClick:M,buttonContent:L,useButton:k,source:w,alt:Y,className:F,badge:$,useProductBadge:H,fullWidth:V,total_stock:W,isBuyer:z,slug:X,productOnClick:K,categoryId:q,promo_id:Z}=e,Q=void 0===H||H,J="number"==typeof W&&W<=0;if(T[0]!==$||T[1]!==I||T[2]!==z||T[3]!==J)t=J?d.A.gettext("å®å®"):z||I!==c.MN.PRODUCT_GIVEAWAY?$:_,T[0]=$,T[1]=I,T[2]=z,T[3]=J,T[4]=t;else t=T[4];let ee=t;T[5]!==E||T[6]!==S||T[7]!==v||T[8]!==A?(r=(0,n.ae)({originalPrice
1:A,discountedPrice:E,minAddOnPrice:v,promoSavingPrice:null,hasPriceRange:S}),T[5]=E,T[6]=S,T[7]=v,T[8]=A,T[9]=r):r=T[9];let et=r,er=V&&"product-card--fullWidth";T[10]!==F||T[11]!==er?(i=(0,l.A)("product-card",F,er),T[10]=F,T[11]=er,T[12]=i):i=T[12];let es=`/product/${X||b}${q?`?categoryId=${q}`:""}`,ea=G&&"product-card__upper-area--shadow";return T[13]!==ea?(p=(0,l.A)("product-card__upper-area",ea),T[13]=ea,T[14]=p):p=T[14],T[15]!==K?(m=K?{onClick:K}:{},T[15]=K,T[16]=m):m=T[16],T[17]!==J||T[18]!==ee||T[19]!==Q?(h=ee&&(Q||J)&&(0,s.jsx)("div",{className:(0,l.A)("product-card__badge",{"product-card__badge--out-of-stock":J}),children:ee}),T[17]=J,T[18]=ee,T[19]=Q,T[20]=h):h=T[20],T[21]!==Y||T[22]!==w?(f=(0,s.jsx)("div",{className:"product-card__image",children:(0,s.jsx)(u.V,{className:"product-card__image__picture",sources:w,alt:Y,useSkeleton:!0})}),T[21]=Y,T[22]=w,T[23]=f):f=T[23],T[24]!==et||T[25]!==D||T[26]!==U?(g=U&&D&&(0,s.jsxs)(s.Fragment,{children:[et.useAddOnPrice&&(0,s.jsxs)("div",{className:"product-card__add-on-price",children:[et.minAddOnPrice?.value," ",d.A.gettext("èµ·")]}),!et.useAddOnPrice&&(0,s.jsx)("span",{className:"product-card__price-badge",children:et.discountedPriceText||et.originalPriceText})]}),T[24]=et,T[25]=D,T[26]=U,T[27]=g):g=T[27],T[28]!==f||T[29]!==g?(P=(0,s.jsxs)("div",{className:"product-card__image-box",children:[f,g]}),T[28]=f,T[29]=g,T[30]=P):P=T[30],T[31]!==B||T[32]!==j?(x=j&&(0,s.jsx)("strong",{className:"product-card__content__title",children:B}),T[31]=B,T[32]=j,T[33]=x):x=T[33],T[34]!==et||T[35]!==D||T[36]!==U?(y=U&&!D&&(0,s.jsxs)("div",{className:"product-card__price-box",children:[et.useAddOnPrice&&(0,s.jsxs)("span",{className:"product-card__price",children:[et.minAddOnPrice?.value," ",d.A.gettext("èµ·")]}),!et.useAddOnPrice&&(0,s.jsxs)(s.Fragment,{children:[et.useDiscountedPrice&&et.discountedPrice&&(0,s.jsx)("span",{className:"product-card__price",children:et.discountedPriceText}),(0,s.jsx)("b",{className:"product-card__price",children:et.originalPriceText})]})]}),T[34]=et,T[35]=D,T[36]=U,T[37]=y):y=T[37],T[38]!==x||T[39]!==y?(N=(0,s.jsxs)("div",{className:"product-card__content",children:[x,y]}),T[38]=x,T[39]=y,T[40]=N):N=T[40],T[41]!==P||T[42]!==N||T[43]!==es||T[44]!==p||T[45]!==m||T[46]!==h?(O=(0,s.jsxs)(o(),{href:es,className:p,...m,children:[h,P,N]}),T[41]=P,T[42]=N,T[43]=es,T[44]=p,T[45]=m,T[46]=h,T[47]=O):O=T[47],T[48]!==L||T[49]!==M||T[50]!==Z||T[51]!==k?(R=k&&(0,s.jsx)("div",{className:"product-card__lower-area",children:(0,s.jsx)("button",{className:"product-card__button",onClick:()=>M?.(Z),children:L})}),T[48]=L,T[49]=M,T[50]=Z,T[51]=k,T[52]=R):R=T[52],T[53]!==O||T[54]!==R||T[55]!==i?(C=(0,s.jsxs)("div",{className:i,children:[O,R]}),T[53]=O,T[54]=R,T[55]=i,T[56]=C):C=T[56],C}},18373:(e,t,r)=>{"use strict";r.d(t,{K:()=>C});var s=r(54568),a=r(7620),i=r(55364),o=r(36047),l=r(110),c=r(43158),n=r(99680),d=r(60726),u=r(51127),_=r(16264),p=r(87495),m=r.n(p);let h=["strong","div","iframe","a","img","br","p","ul","ol","li","em","s","u","span"],f=(0,a.memo)(e=>{let t,r,a,i,o=(0,n.c)(11),{title:l,description:c}=e,{startImageLazy:p}=(0,u.E)();if((0,_.n)(c),o[0]!==l?(t=(0,s.jsx)("h2",{className:m().productDescriptionTitle,children:l}),o[0]=l,o[1]=t):t=o[1],o[2]===Symbol.for("react.memo_cache_sentinel")?(r=(0,s.jsx)("hr",{className:m().productDescriptionDivider}),o[2]=r):r=o[2],o[3]!==c||o[4]!==p){let e;o[6]!==p?(e=e=>{p(e)},o[6]=p,o[7]=e):e=o[7],a=(0,d.A)(u.c.formatForDisplay(c),"div",{className:m().productDescriptionContent,ref:e},{domPurifyConfig:{ALLOWED_TAGS:h}}),o[3]=c,o[4]=p,o[5]=a}else a=o[5];return o[8]!==t||o[9]!==a?(i=(0,s.jsxs)("div",{className:m().productDescriptionItem,children:[t,r,a]}),o[8]=t,o[9]=a,o[10]=i):i=o[10],i});var g=r(13446),P=r(57160),x=r(36448);let y=(0,a.memo)(e=>{let t,r,a=(0,n.c)(5),{title:i,description:o}=e,{startImageLazy:l}=(0,u.E)();return(0,_.n)(o),a[0]===Symbol.for("react.memo_cache_sentinel")?(t=[0],a[0]=t):t=a[0],a[1]!==o||a[2]!==l||a[3]!==i?(r=(0,s.jsx)(g.Accordion,{defaultIndex:t,allowMultiple:!0,children:(0,s.jsx)(g.AccordionItem,{children:e=>{let{isExpanded:t}=e;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(g.AccordionButton,{className:m().productDescriptionTitle,children:[(0,s.jsx)("span",{className:m().accordionTitle,children:i}),t?(0,s.jsx)(P.H,{}):(0,s.jsx)(x.F,{})]}),(0,s.jsx)(g.AccordionPanel,{children:(0,d.A)(u.c.formatForDisplay(o),"div",{className:m().productDescriptionContent,ref:e=>{l(e)}},{domPurifyConfig:{ALLOWED_TAGS:h}})})]})}})}),a[1]=o,a[2]=l,a[3]=i,a[4]=r):r=a[4],r}),N=[(0,c.JN)((0,c.no)("/static/image-gallery/image-gallery-presentation-2.avif")),(0,c.JN)((0,c.no)("/static/image-gallery/image-gallery-presentation-3.avif"))];function O(e){let t=e.getAttribute("width"),r=e.getAttribute("height");t&&r&&(e.style.setProperty("width","100%"),e.style.setProperty("height","auto"),e.style.setProperty("aspect-ratio",`${t} / ${r}`))}let R=[{id:"01JRYDZPN1KTYNYFMEY9H2RZ0A",alias:"ååä»ç´¹",title:"ååä»ç´¹",description:`<p><span style="color: #150000">å¾®çºç´è²ç叿以ååå¾å¯¬é¬èªå¨ççåï¼å¨é å£èè¢å£æè¨è¨ç´°ç¯ï¼è®å¤å£ç©¿æä¸ç¡èã</span></p><p><br></p><p><span style="color: #150000">ååç¹è²</span></p><ul class="rich-text-style--bullet-list"><li class="rich-text-style--list-item"><p><span style="color: #150000">åå¾ï¼¶é </span></p></li><li class="rich-text-style--list-item"><p><span style="color: #150000">è驿£è³ª</span></p></li><li class="rich-text-style--list-item"><p><span style="color: #150000">å£ç´è»ç·</span></p></li></ul><p><br></p><img src=${N[0].src} srcset=${N[0].srcSet} type=${N[0].type} class="rich-text-media"><p><br></p><img src=${N[1].src} srcset=${N[1].srcSet} type=${N[1].type} class="rich-text-media">`},{id:"01JRYE98YZF8PWBD8V4C7FPE1X",alias:"æ´æ»å»ºè°",title:"æ´æ»å»ºè°",description:'<p>æ´æ»å»ºè°</p><ol class="rich-text-style--ordered-list"><li class="rich-text-style--list-item"><p>æ©æ´æææ´çå¯ï¼è¥ä½¿ç¨æ´è¡£æ©è«åå¿
ä½¿ç¨æ´è¡£è¢ã</p></li><li class="rich-text-style--list-item"><p>é®®è±åæ·±è²è¡£ç©ï¼é¦æ¬¡æ¸
æ´å»ºè°å®ç¨ä¸æ°´ã</p></li></ol>'},{id:"01JRYEA3JTN1RYQW9CM73KKSX6",alias:"éæè²¨èªªæ",title:"éæè²¨èªªæ",description:'<ul class="rich-text-style--bullet-list"><li class="rich-text-style--list-item"><p>éæè²¨èªªæå
§å®¹ä¸</p></li><li class="rich-text-style--list-item"><p>éæè²¨èªªæå
§å®¹äº</p></li></ul>'}],C=(0,a.forwardRef)((e,t)=>{let{styleMap:r,isBuyer:c}=e,{product:n}=(0,l.KN)(),d=c?n?.descriptions:R,u=(0,a.useMemo)(()=>"accordion"===(r?.[o.fB.PRODUCT_DESCRIPTION_TEMPLATE_TYPE]||"standard")?y:f,[r]);return(0,i.E)(()=>
1{if(t&&"current"in t&&t.current){let e=new MutationObserver(e=>{let t=[];e.forEach(e=>{e.addedNodes.forEach(e=>{if(e.nodeType===Node.ELEMENT_NODE){let r=e.querySelectorAll?.("iframe")||[];t.push(...Array.from(r)),"IFRAME"===e.tagName&&t.push(e)}})}),t.forEach(O)});return t.current.querySelectorAll("iframe").forEach(O),e.observe(t.current,{childList:!0,subtree:!0}),()=>e.disconnect()}},[d]),(0,s.jsx)("div",{className:m().root,ref:t,children:d?.map(e=>(0,s.jsx)(u,{title:e.title,description:e.description},e.id))})});C.displayName="ProductDescription"},21173:(e,t,r)=>{"use strict";r.r(t),r.d(t,{ProductInfoGroup:()=>s.d});var s=r(92160)},24070:(e,t,r)=>{"use strict";r.d(t,{SQ:()=>o,_N:()=>l,l8:()=>u,qT:()=>n});var s=r(36047),a=r(4938);r(96010),r(69974);var i=r(34582);let o={standard:"standard",feature:"feature",wall:"wall",wall2:"wall-2",scroll:"scroll"},l={horizontal:"horizontal",vertical:"vertical"};s.MN.PRODUCT_IMAGE_GALLERY,i.A.gettext("åå主å");let c={id:"",type:s.MN.PRODUCT_IMAGE_GALLERY,name:"ProductImageGallery",enable:!0,next:null,deletable:!1},n=[s.fB.PRODUCT_IMAGE_GALLERY_TYPE,s.fB.PRODUCT_IMAGE_GALLERY_DIRECTION,s.fB.IMAGE_FIT,s.fB.PRODUCT_IMAGE_GALLERY_BACKGROUND_COLOR,s.fB.ANIMATION],d={[s.fB.PRODUCT_IMAGE_GALLERY_TYPE]:o.standard,[s.fB.PRODUCT_IMAGE_GALLERY_DIRECTION]:l.horizontal,[
1s.fB.IMAGE_FIT]:"cover"};function u(e){let t=(0,a.Tt)(),r={...c,id:t};return{id:t,layout:r,style:{...d,...e}}}},24187:e=>{e.exports={root:"ProductSuggestion_root__z06Be"}},24995:(e,t,r)=>{"use strict";r.d(t,{OZ:()=>p,Sz:()=>n,cM:()=>m,d2:()=>c,qT:()=>u});var s=r(36047),a=r(4938),i=r(96010),o=r(69974),l=r(34582);let c={style1:"filled",style2:"subtle",style4:"icon-only"},n={style1:"style-1",style2:"style-2",style3:"style-3",style4:"style-4"};s.MN.SEARCH_BAR,l.A.gettext("æå°æ¡");let d={id:"",type:s.MN.SEARCH_BAR,name:"SearchBar",enable:!0,next:null,deletable:!0},u=[s.fB.SEARCH_BOX_TYPE,s.fB.SEARCH_BOX_BACKGROUND_COLOR,s.fB.SEARCH_BOX_BORDER_COLOR,s.fB.SEARCH_BOX_BORDER_RADIUS,s.fB.FONT_COLOR,s.fB.RICH_TEXT,s.fB.SEARCH_BOX_ICON_COLOR,s.fB.SEARCH_BOX_ICON_BACKGROUND_COLOR,s.fB.SEARCH_BOX_ICON_BORDER_COLOR,s.fB.SEARCH_BOX_ICON_BORDER_RADIUS],_={[s.fB.SEARCH_BOX_TYPE]:c.style1,[s.fB.SEARCH_BOX_BACKGROUND_COLOR]:"rgba(238, 238, 239, 1)",[s.fB.SEARCH_BOX_BORDER_RADIUS]:"4px",[s.fB.FONT_COLOR]:"rgba(124, 124, 128, 1)",[s.fB.SEARCH_BOX_ICON_BACKGROUND_COLOR]:"rgba(68, 112, 226, 1)",[s.fB.SEARCH_BOX_ICON_BORDER_RADIUS]:"4px"};function p(e,t){let r=(0,a.Tt)(),s={...d,...e,id:r};return{id:r,layout:s,style:{..._,...t},content:l.A.gettext("æå°ééµå")}}function m(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.A.gettext("åå¡"),t=arguments.length>1?arguments[1]:void 0,r=p(),a=t?.shouldWrap??!0;return(0,i.tC)(e,[r],{primaryGridType:o.Vk.SINGLE_CELL,secondaryGridType:o.Vk.SINGLE_CELL,shouldWrap:a,primaryGridPresetStyle:{[s.fB.PADDING_TOP]:"27px",[s.fB.PADDING_BOTTOM]:"27px"}})}},26869:(e,t,r)=>{"use strict";r.r(t),r.d(t,{ProductPromoInfo:()=>s.l});var s=r(39447)},31171:e=>{e.exports={root:"ProductGiveaway_root__5P8lk"}},32987:(e,t,r)=>{"use strict";r.r(t),r.d(t,{ProductGiveaway:()=>s.v});var s=r(12477)},33313:e=>{e.exports={root:"ProductInfoGroup_root__hTql4",shrinkGap:"ProductInfoGroup_shrinkGap__X4ynp",priceBox:"ProductInfoGroup_priceBox__0pdtQ",price:"ProductInfoGroup_price__Oquk7",badge:"ProductInfoGroup_badge__cZbzd",discountBox:"ProductInfoGroup_discountBox__JrbXX",offset:"ProductInfoGroup_offset__R_icC",summary:"ProductInfoGroup_summary__ESjW1",productSpecPicker:"ProductInfoGroup_productSpecPicker__DEa8H",productSpecBox:"ProductInfoGroup_productSpecBox__iHYo5",specPicker:"ProductInfoGroup_specPicker__4zks_",specPickerInner:"ProductInfoGroup_specPickerInner__pThww",selectorArrow:"ProductInfoGroup_selectorArrow__YFHaM",customOptionBox:"ProductInfoGroup_customOptionBox__MUvlz",textOption:"ProductInfoGroup_textOption___a8Fz",imageOption:"ProductInfoGroup_imageOption__gOrCX",active:"ProductInfoGroup_active__bb9E7",disabled:"ProductInfoGroup_disabled__z_bKu",counterBox:"ProductInfoGroup_counterBox__kxGNx",counterAction:"ProductInfoGroup_counterAction__xiEP3",counterInputBox:"ProductInfoGroup_counterInputBox__Och_l",counterInput:"ProductInfoGroup_counterInput___zmsC",buttonsBox:"ProductInfoGroup_buttonsBox__DOw8_",featureButtonBox:"ProductInfoGroup_featureButtonBox__KmqCw",button:"ProductInfoGroup_button__g_wAN",positiveButton:"ProductInfoGroup_positiveButton__IB7E7",negativeButton:"ProductInfoGroup_negativeButton__QVEt4",heading:"ProductInfoGroup_heading__36n4w",purchaseEligibilityBox:"ProductInfoGroup_purchaseEligibilityBox__XtYpm",purchaseEligibilityMessage:"ProductInfoGroup_purchaseEligibilityMessage__LqxDE"}},34401:(e,t,r)=>{"use strict";r.d(t,{s:()=>m});var s=r(54568),a=r(7620),i=r(60726),o=r(10933),l=r.n(o),c=r(85135),n=r(36047),d=r(21507),u=r(49169),_=r(16264),p=r(34582);r(66955);let m=(0,a.forwardRef)((e,t)=>{let r,{className:o,content:m,children:h,type:f,style:g,styleMap:P,isEditingMode:x,isBuyer:y,onPointerDown:N,onClick:O}=e;(0,_.n)(m);let{href:R,generateHref:C}=(0,d.if)({styleMap:P,isEditingMode:x,componentName:"RichText"}),T=!!(P&&P[n.fB.ENABLE_LINK]),I=(0,a.useMemo)(()=>T?u.r9.removeInlineMark(m,"link"):m,[m,T]),[B,b]=(0,a.useState)(null);(0,a.useEffect)(()=>{b({source:I,html:(0,u.fe)(I,(e,t)=>C(e,t))})},[I,C]);let A=B?.source===I?B.html:I,E=(0,a.useMemo)(()=>{let e=A;return!A&&x&&(e=p.A.gettext("編輯æå")),(0,i.A)(e,"p")}
1,[A,x]);if(P&&P[n.fB.ENABLE_LINK]){let e=P[n.fB.SHOULD_OPEN_NEW_WINDOW]?"_blank":"_self";r=(0,s.jsx)(l(),{href:R,target:e,className:(0,c.$)(f,o,!y&&"is-editing"),children:E})}return(0,s.jsx)("div",{ref:t,style:g,className:(0,c.$)(f,x&&"is-editing",o),onPointerDown:N,onClick:O,children:r||((0,a.isValidElement)(h)?h:E)})});m.displayName="RichText"},39447:(e,t,r)=>{"use strict";r.d(t,{l:()=>h});var s=r(54568),a=r(99680),i=r(7620),o=r(85135),l=r(110),c=r(34582),n=r(36047),d=r(52560),u=r(77341),_=r.n(u);let p=e=>{let t,r,i,l,n,d,u,p,m=(0,a.c)(11),{enableContent:h,content:f}=e;return m[0]!==f||m[1]!==h?(t=h&&(0,s.jsx)("h3",{className:_().productPromoInfoTitle,children:f}),m[0]=f,m[1]=h,m[2]=t):t=m[2],m[3]===Symbol.for("react.memo_cache_sentinel")?(r=(0,s.jsx)("span",{className:(0,o.$)(_().productPromoInfoItemBadge,_().promoBadge),children:c.A.gettext("åªæ ")}),m[3]=r):r=m[3],m[4]===Symbol.for("react.memo_cache_sentinel")?(i=(0,s.jsxs)("li",{className:_().productPromoInfoItem,children:[r,(0,s.jsx)("p",{className:_().productPromoInfoItemContent,children:c.A.gettext("ãæ´»åå稱ãå
¨é¤¨ååæ»¿ NT$ 3,000 æ NT$ 300")})]}),m[4]=i):i=m[4],m[5]===Symbol.for("react.memo_cache_sentinel")?(l=(0,s.jsx)("span",{className:(0,o.$)(_().productPromoInfoItemBadge,_().giveawayBadge),children:c.A.gettext("è´å")}),m[5]=l):l=m[5],m[6]===Symbol.for("react.memo_cache_sentinel")?(n=(0,s.jsxs)("li",{className:_().productPromoInfoItem,children:[l,(0,s.jsx)("p",{className:_().productPromoInfoItemContent,children:c.A.gettext("æ¶è²»æ»¿ NT$ 2,500 å³å¯ç²å¾è´å")})]}),m[6]=n):n=m[6],m[7]===Symbol.for("react.memo_cache_sentinel")?(d=(0,s.jsx)("span",{className:(0,o.$)(_().productPromoInfoItemBadge,_().shippingBadge),children:c.A.gettext("éè²»")}),m[7]=d):d=m[7],m[8]===Symbol.for("react.memo_cache_sentinel")?(u=(0,s.jsxs)("ul",{className:_().productPromoInfoList,children:[i,n,(0,s.jsxs)("li",{className:_().productPromoInfoItem,children:[d,(0,s.jsx)("p",{className:_().productPromoInfoItemContent,children:c.A.gettext("ãæ´»åå稱ãå
¨é¤¨æ¶è²»è¨å®å
é")})]})]}),m[8]=u):u=m[8],m[9]!==t?(p=(0,s.jsxs)(s.Fragment,{children:[t,u]}),m[9]=t,m[10]=p):p=m[10],p},m=e=>{let t,r,i,l,n,u=(0,a.c)(17),{promos:p,enableContent:m,content:h,highlightColor:f}=e;if(!p||!p.length)return null;if(u[0]!==h||u[1]!==m||u[2]!==f||u[3]!==p){let e,a={promo:_().promoBadge,giveaway:_().giveawayBadge,shipping:_().shippingBadge,coupon:_().promoBadge};u[7]===Symbol.for("react.memo_cache_sentinel")?(e={promo:c.A.gettext("åªæ "),giveaway:c.A.gettext("è´å"),shipping:c.A.gettext("éè²»"),coupon:c.A.gettext("åªæ ")},u[7]=e):e=u[7];let l=e;u[8]!==h||u[9]!==m?(i=m&&(0,s.jsx)("h3",{className:_().productPromoInfoTitle,children:h}),u[8]=h,u[9]=m,u[10]=i):i=u[10],t=_().productPromoInfoList,r=p.map((e,t)=>{let r=function(e,t){return"promo"===e&&"shipping"===t?"shipping":e}(e.type,e.subject);return(0,s.jsxs)("li",{className:_().productPromoInfoItem,children:[(0,s.jsx)("span",{className:(0,o.$)(_().productPromoInfoItemBadge,a[r]),children:l[r]}),(0,s.jsxs)("p",{className:_().productPromoInfoItemContent,children:[e.is_display_name&&e.name+" ",(0,d.Y)(e.promotional_copy.text,e.promotional_copy.placeholder,f)]})]},e.id+e.type+t)}),u[0]=h,u[1]=m,u[2]=f,u[3]=p,u[4]=t,u[5]=r,u[6]=i}else t=u[4],r=u[5],i=u[6];return u[11]!==t||u[12]!==r?(l=(0,s.jsx)("ul",{className:t,children:r}),u[11]=t,u[12]=r,u[13]=l):l=u[13],u[14]!==i||u[15]!==l?(n=(0,s.jsxs)(s.Fragment,{children:[i,l]}),u[14]=i,u[15]=l,u[16]=n):n=u[16],n},h=(0,i.forwardRef)((e,t)=>{let r,i,c,d,u=(0,a.c)(18),{className:h,style:f,styleMap:g,content:P,isBuyer:x}=e,y=!!g?.[n.fB.ENABLE_CONTENT],N=g?.[n.fB.FONT_COLOR]||"inherit",{product:O}=(0,l.KN)(),R=x?O?.promos??null:null;return u[0]!==h?(r=(0,o.$)(_().root,h),u[0]=h,u[1]=r):r=u[1],u[2]!==P||u[3]!==y||u[4]!==x?(i=!x&&(0,s.jsx)(p,{enableContent:y,content:P}),u[2]=P,u[3]=y,u[4]=x,u[5]=i):i=u[5],u[6]!==P||u[7]!==y||u[8]!==N||u[9]!==x||u[10]!==R?(c=x&&(0,s.jsx)(m,{promos:R,enableContent:y,content:P,highlightColor:N}),u[6]=P,u[7]=y,u[8]=N,u[9]=x,u[10]=R,u[11]=c):c=u[11],u[12]!==t||u[13]!==f||u[14]!==r||u[15]!==i||u[16]!==c?(d=(0,s.jsxs)("div",{style:f,className:r,ref:t,children:[i,c]}),u[12]=t,u[13]=f,u[14]=r,u[15]=i,u[16]=c,u[17]=d):d=u[17],d});h.displayName="ProductPromoInfo"},41840:(e,t,r)=>{"use strict";r.d(t,{C:()=>x});var s=r(54568),a=r(7620),i=r(68380),o=r(55364),l=r(81880),c=r(85135),n=r(43158),d=r
1(34582),u=r(71628),_=r(36047),p=r(14337),m=r(99680);r(89983);let h=()=>{let e,t,r=(0,m.c)(2);return r[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,s.jsx)("div",{className:"product-card__image-box",children:(0,s.jsx)("div",{className:"product-card__image skeleton-light-color"})}),r[0]=e):e=r[0],r[1]===Symbol.for("react.memo_cache_sentinel")?(t=(0,s.jsx)("div",{className:"product-card product-card--skeleton",children:(0,s.jsxs)("div",{className:"product-card__upper-area",children:[e,(0,s.jsxs)("div",{className:"product-card__content",children:[(0,s.jsx)("div",{className:"product-card__titleSkeleton skeleton-light-color"}),(0,s.jsx)("div",{className:"product-card__priceSkeleton skeleton-light-color"})]})]})}),r[1]=t):t=r[1],t};var f=r(13190);let g={[f._b.standard]:"",[f._b.feature]:"",[f._b.light]:"product-card-list--light"},P={useButton:!0,usePriceBadge:!0,useShadow:!0,useSquareImage:!0,useProductName:!0,useProductPrice:!0,useProductBadge:!0,buttonContent:d.A.gettext("æè¦å è³¼"),buttonOnClick:()=>{}},x=(0,a.forwardRef)((e,t)=>{let{id:r,type:m,style:x,styleMap:y,className:N,isEditingMode:O,onClick:R,isBuyer:C,products:T,productCardOptions:I={},content:B,isLoading:b=!1}=e,A=(0,l.j)(t),E=(0,a.useRef)(null),v=(0,a.useRef)(null),S=(0,a.useRef)(null),{products:D,options:G}=(0,a.useMemo)(()=>{if(!y)return{products:[],options:{}};let e=y[_.fB.PRODUCT_CARD_TYPE]===f._b.feature,t=y[_.fB.PRODUCT_CARD_TYPE]===f._b.light,r=window.innerWidth,s=Number(y[_.fB.PRODUCT_GROUP_CARD_AMOUNT_IN_VIEWPORT]);Number.isNaN(s)&&(s=4);let a=r/s,i=(0,u.d)(a);return{products:T.map(e=>({source:[(0,n.Ql)(e.image?.src,i,0)],...e})),options:{...P,...I,usePriceBadge:e,useShadow:t,useSquareImage:t,buttonContent:d.A.gettext("æè¦å è³¼"),buttonOnClick:R}}},[y,T,R,I]),j=y&&y[_.fB.PRODUCT_CARD_TYPE]?g[y[_.fB.PRODUCT_CARD_TYPE]]:"grid",U=(0,a.useRef)((0,i.A)(function(e,t){e&&(e.style.position="absolute"),t&&e&&(t.style.height=`${e.clientHeight}px`)},300)).current;return((0,o.E)(()=>{let e=y?.[_.fB.PRODUCT_GROUP_CARD_DISPLAY_TYPE]||"scroll";function t(){v.current&&E.current&&"scroll"===e&&!b&&!S.current&&requestAnimationFrame(()=>{U(v.current,E.current)})}return t(),window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t)}},[y,b]),D&&0!==D.length||b)?(0,s.jsxs)("div",{ref:A,className:(0,c.A)("product-card-list",j,N),style:x,children:[b?(0,s.jsx)("div",{className:"product-card-list__title skeleton skeleton--xs skeleton--ssr"}):B&&(0,s.jsx)("h2",{className:"product-card-list__title",children:B}),(0,s.jsx)("div",{ref:E,className:(0,c.A)("product-card-list__viewport",O&&"is-editing"),children:(0,s.jsx)("div",{ref:v,className:"product-card__box",children:b?[,,,,].fill(null).map((e,t)=>(0,s.jsx)("div",{className:"product-card__container",children:(0,s.jsx)(h,{})},`${r}_product_card_skeleton_${t}`)):D.map((e,t)=>(0,s.jsx)("div",{className:"product-card__container",children:(0,s.jsx)(p.A,{...e,...G,componentType:m,isEditingMode:O,isBuyer:C})},`${e.name}_${t}`))})})]}):(0,s.jsx)("div",{ref:A})});x.displayName="ProductCardList"},42901:(e,t,r)=>{"use strict";r.d(t,{D:()=>p});var s=r(54568),a=r(7620),i=r(20769),o=r(85135),l=r(3699),c=r(34582),n=r(110),d=r(65619);r(47483);let u=[{key:"å°ç£",value:"TW"}],_=[{id:(0,i.Z0)(),shipping_type:"standard",shipping_type_name:"åºæ¬ééï¼ä¸è¬å®
é
ï¼",shipping_fee:{value:"NT$ 120",currency:"TWD",amount:"120"}},{id:(0,i.Z0)(),shipping_type:"express",shipping_type_name:"å¿«æ·éé",shipping_fee:{value:"NT$ 150",currency:"TWD",amount:"150"}},{id:(0,i.Z0)(),shipping_type:"7-ELEVEN",shipping_type_name:"7-ELEVEN åè²¨ä»æ¬¾",shipping_fee:{value:"NT$ 60",currency:"TWD",amount:"60"}},{id:(0,i.Z0)(),shipping_type:"family_mart",shipping_type_name:"å
¨å®¶åè²¨ä»æ¬¾",shipping_fee:{value:"NT$ 60",currency:"TWD",amount:"60"}}],p=(0,a.forwardRef)((e,t)=>{let{className:r,style:i,isEditingMode:p,isBuyer:m}=e,{shipTo:h,setShipTo:f,shippingMethods:g,addressCountry:P}=(0,n.KN)(),x=(0,a.useDeferredValue)(h),y=(0,a.useMemo)(()=>m?g:_,[g,m]),N=(0,a.useMemo)(()=>m?P:u,[P,m]);return(0,s.jsxs)("section",{className:(0,o.A)("product-shipping-detail",r),style:i,ref:t,children:[(0,s.jsx)("h2",{className:"product-shipping-detail__title",children:c.A.gettext("ç©æµåé費說æ")}
1),(0,s.jsxs)("div",{className:"product-shipping-detail__content",children:[(0,s.jsxs)("div",{className:"product-ship-to",children:[(0,s.jsx)("label",{className:"product-ship-to__label",children:c.A.gettext("å¯å¾ï¼")}),(0,s.jsx)("div",{className:"product-ship-to__select-wrapper",children:(0,s.jsxs)("div",{className:(0,o.A)("product-ship-to__select",{"product-ship-to__select--disabled":p}),children:[(0,s.jsx)("select",{value:x,onChange:e=>f(e.target.value),disabled:!N.length,children:N.map(e=>(0,s.jsx)("option",{value:e.value,children:e.key},e.key+e.value))}),(0,s.jsx)("span",{className:"product-ship-to__select-icon",children:(0,s.jsx)(l.a,{size:"1em",weight:"bold"})})]})})]}),(0,s.jsxs)("div",{className:"product-shipping-fee",children:[(0,s.jsx)("div",{className:"product-shipping-fee__item product-shipping-fee__item--a",children:c.A.gettext("æä¾çééæ¹å¼")}),(0,s.jsx)("div",{className:"product-shipping-fee__item product-shipping-fee__item--b",children:c.A.gettext("éè²»")}),(0,s.jsx)("div",{className:"product-shipping-fee__item product-shipping-fee__item--c",children:(0,s.jsx)("hr",{})}),(0,s.jsx)("div",{className:"product-shipping-fee__item product-shipping-fee__item--d",children:y.map(e=>(0,s.jsx)("div",{className:"product-shipping-method",children:e.shipping_type_name},e.id+"shipping_type_name"))}),(0,s.jsx)("div",{className:"product-shipping-fee__item product-shipping-fee__item--e",children:y.map(e=>(0,s.jsx)("div",{className:"product-shipping-method",children:(0,d.E)(e)},e.id+"shipping_fee"))}),(0,s.jsx)("div",{className:"product-shipping-fee__item product-shipping-fee__item--f",children:c.A.gettext("實ééè²»éé¡ä»¥è³¼ç©è»çµç®çºæº")})]})]})]})});p.displayName="ProductShippingDetail"},45143:(e,t,r)=>{"use strict";r.r(t),r.d(t,{ProductShippingDetail:()=>s.D});var s=r(42901)},47483:()=>{},49357:(e,t,r)=>{"use strict";r.r(t),r.d(t,{ProductGroup:()=>s.$});var s=r(65315)},51249:(e,t,r)=>{"use strict";r.d(t,{j:()=>T});var s=r(54568),a=r(7620),i=r(97509),o=r(5367),l=r(36047),c=r(110),n=r(43158),d=r(46510),u=r(15783),_=r(34582),p=r(24070),m=r(11371),h=r.n(m),f=r(99680),g=r(85135),P=r(40950),x=r(9599);let y=()=>{let e,t,r,a,i,o,l,c,d,u=(0,f.c)(25),{poster:_,presentation:p}=(0,x.el)();u[0]!==_?(e=_?(0,n.HE)(_.src):null,u[0]=_,u[1]=e):e=u[1];let m=e;u[2]!==p.backgroundColor?(t=p.backgroundColor&&{backgroundColor:p.backgroundColor},u[2]=p.backgroundColor,u[3]=t):t=u[3],u[4]!==p.imageFit||u[5]!==t?(r={"--image-fit":p.imageFit,...t},u[4]=p.imageFit,u[5]=t,u[6]=r):r=u[6];let y=r,O="vertical"===p.thumbDirection,R=O&&h().galleryThumbsSide;u[7]!==R?(a=(0,g.A)(h().gallery,R),u[7]=R,u[8]=a):a=u[8];let C=p.galleryStyle,T=O&&h().galleryThumbsSideBox;return u[9]!==T?(i=(0,g.A)(T),u[9]=T,u[10]=i):i=u[10],u[11]!==_||u[12]!==m||u[13]!==y?(o=(0,s.jsx)("div",{className:h().galleryViewportBox,children:_&&m?(0,s.jsx)("div",{className:h().viewport,style:y,children:(0,s.jsx)("div",{className:h().container,children:(0,s.jsx)("div",{className:h().slide,children:(0,s.jsx)(P.V,{sources:[{srcSet:m.srcSet,type:m.type}],sizes:_.sizes,alt:_.alt,priority:!0})})})}):(0,s.jsx)("div",{className:(0,g.A)(h().viewport,"skeleton","skeleton--ssr"),style:y})}),u[11]=_,u[12]=m,u[13]=y,u[14]=o):o=u[14],u[15]!==p.hasThumbs?(l=p.hasThumbs&&(0,s.jsx)("div",{className:h().thumbsBox,children:(0,s.jsx)("div",{className:h().thumbs,children:(0,s.jsx)("div",{className:h().thumbsViewport,children:(0,s.jsx)("div",{className:h().thumbsContainer,children:Array.from({length:3}).map(N)})})})}),u[15]=p.hasThumbs,u[16]=l):l=u[16],u[17]!==i||u[18]!==o||u[19]!==l?(c=(0,s.jsxs)("div",{className:i,children:[o,l]}),u[17]=i,u[18]=o,u[19]=l,u[20]=c):c=u[20],u[21]!==p.galleryStyle||u[22]!==c||u[23]!==a?(d=(0,s.jsx)("div",{className:a,style:C,children:c}),u[21]=p.galleryStyle,u[22]=c,u[23]=a,u[24]=d):d=u[24],d};function N(e,t){return(0,s.jsx)("div",{className:(0,g.A)(h().thumbsSlide,"skeleton","skeleton--ssr")},`thumb-loading-${t}`)}let O=(0,o.default)(()=>Promise.all([r.e(9486),r.e(8779),r.e(8405),r.e(622),r.e(4269),r.e(408),r.e(8925),r.e(7525)]).then(r.bind(r,14963)).then(e=>
1e.Carousel),{loadableGenerated:{webpack:()=>[14963]},loading:()=>(0,s.jsx)(y,{}),ssr:!0}),R=(0,o.default)(()=>r.e(6803).then(r.bind(r,4937)).then(e=>e.Wall),{loadableGenerated:{webpack:()=>[4937]},loading:()=>(0,s.jsx)(y,{}),ssr:!0}),C=a.lazy(()=>Promise.all([r.e(9486),r.e(1331),r.e(3010),r.e(5157),r.e(6558),r.e(6740),r.e(4196),r.e(5111),r.e(3645),r.e(6509),r.e(1531),r.e(8034),r.e(2072),r.e(5647),r.e(4480),r.e(7245),r.e(843),r.e(6998),r.e(589),r.e(4819),r.e(4568),r.e(7324)]).then(r.bind(r,5586)).then(e=>({default:e.Lightbox}))),T=(0,a.forwardRef)((e,t)=>{let{styleMap:r}=e,o=(0,c.KN)(),m=(0,a.useMemo)(()=>{let e=[...o.product?.medias||[],...o.product?.spec_metas.map(e=>e.specs.map(e=>({...e.image,id:e.id,specName:e.name}))).flat().filter(e=>e.src)||[]],t=r?r[l.fB.PRODUCT_IMAGE_GALLERY_DIRECTION]:"horizontal";return{medias:e,alt:o.product?.name||_.A.gettext("åååç"),type:r?r[l.fB.PRODUCT_IMAGE_GALLERY_TYPE]:"standard",thumbDirection:t||"horizontal"}},[r,o.product]),f=(0,a.useMemo)(()=>(function(e,t){let r=t?.[l.fB.IMAGE_FIT]==="contain"?"contain":"cover";return{imageFit:r,backgroundColor:function(e,t){if("contain"===e)return t?.[l.fB.PRODUCT_IMAGE_GALLERY_BACKGROUND_COLOR]}(r,t),galleryStyle:e!==p.SQ.scroll?{}:{"--slide-size":"85%","--slide-next-button-size":"32px","--slide-next-button-icon-size":"12px","--viewport-aspect-ratio":"100 / 85","--viewport-fallback-padding-top":"85%"},thumbDirection:t?.[l.fB.PRODUCT_IMAGE_GALLERY_DIRECTION]==="vertical"?"vertical":"horizontal",hasThumbs:e!==p.SQ.scroll}})(m.type,r),[m.type,r]),g=(0,u.Dt)((0,u.o3)()),P=m.medias[0],y=P?.src&&!(0,n.fX)(P.src)?{src:P.src,alt:`${m.alt} - 1`,sizes:g}:null,[N,T]=(0,a.useState)(null),I=(0,a.useRef)(null),B=(0,a.useCallback)((e,t)=>{I.current=t??null,T(e)},[]),b=(0,a.useCallback)(()=>{T(null),I.current?.focus()},[]),A=(0,a.useMemo)(()=>m.medias.map((e,t)=>({src:e.src,alt:`${m.alt} - ${t+1}`})),[m.medias,m.alt]),E=null!==N&&(0,s.jsx)(d.E,{onError:b,children:(0,s.jsx)(a.Suspense,{fallback:(0,i.createPortal)((0,s.jsx)("div",{className:h().lightboxLoading}),document.body),children:(0,s.jsx)(C,{items:A,ariaLabel:m.alt,initialIndex:N,onClose:b})})});switch(m.type){case p.SQ.standard:case p.SQ.feature:case p.SQ.scroll:return(0,s.jsxs)(x.PF,{value:{poster:y,presentation:f},children:[(0,s.jsx)(O,{ref:t,...e,slideOptions:m,onOpenLightbox:B}),E]});case p.SQ.wall:case p.SQ.wall2:return(0,s.jsxs)(x.PF,{value:{poster:y,presentation:f},children:[(0,s.jsx)(R,{ref:t,...e,slideOptions:m,onOpenLightbox:B}),E]});default:return null}});T.displayName="ProductImageGallery"},58374:(e,t,r)=>{"use strict";r.r(t),r.d(t,{ProductDescription:()=>s.K});var s=r(18373)},60263:(e,t,r)=>{"use strict";r.d(t,{I:()=>A});var s=r(54568),a=r(7620),i=r(13446),o=r(36047),l=r(85135),c=r(22272),n=r(57614);let d=(0,a.forwardRef)((e,t)=>{let{name:r,content:o,defaultValue:l="",onChange:d,onEnter:u}=e,[_,p]=(0,a.useState)([]),m=(0,a.useCallback)(async e=>{d(e);try{let t=await (0,c.J)({query:e});t?.data&&p(t.data)}catch(e){(0,n.e8)(e),p([])}},[p,d]);return(0,s.jsx)("div",{className:"search-bar__box",children:(0,s.jsx)(i.FormControlCombobox,{name:r,defaultValue:l,inputProps:{ref:t,className:"search-bar__input",height:"auto"},items:_.map(e=>e.text),placeholder:o,onChange:m,onEnter:u})})});d.displayName="SearchCombo";let u=(0,a.forwardRef)((e,t)=>{let{name:r,content:a,onChange:o,onEnter:l,defaultValue:c=""}=e;return(0,s.jsx)("div",{className:"search-bar__box",children:(0,s.jsx)(i.FormControlInput,{ref:t,id:r,name:r,className:"search-bar__input",defaultValue:c,placeholder:a,onChange:o,enterEvent:l})})});u.displayName="SearchInput";var _=r(99680),p=r(74467);let m=e=>{let t,r,a,i=(0,_.c)(5),{onClick:o}=e;return i[0]!==o?(t=()=>o(),i[0]=o,i[1]=t):t=i[1],i[2]===Symbol.for("react.memo_cache_sentinel")?(r=(0,s.jsx)(p.e,{className:"search-bar__button-icon",weight:"bold"}),i[2]=r):r=i[2],i[3]!==t?(a=(0,s.jsx)("button",{className:"search-bar__button",onClick:t,children:r}),i[3]=t,i[4]=a):a=i[4],a};var h=r(24995),f=r(902),g=r(81880),P=r(25902),x=r(3674),y=r(19446);let[N,O,R]=(0,r(37220).q)({name:"SearchBarDataContext"}),C=(0,a.forwardRef)((e,t)=>{let{styleType:r,style:i,content:o,isBuyer:c,isMobile:n,isEditingMode:_}=e,{status:{permission:p,searchKeyword:f,isFocused:g,combinedRef:P},actions:{handleOnChange:x,handleOnEnter:y,inputNodeRef:N}}=O(),R=(0,a.useMemo)(()=>p.typingSuggestion?d:u,[p]);return p.searchBar?(0,s.jsxs)("div",{ref:t,style:i,className:(0,l.A)("search-bar",`search-bar--${r}`,{"is-editing":!c,"is-focused":g}),children:[(0,s.jsx)(R,{name:"search",ref:p.typingSuggestion?N:P,content:o,defaultValue:f,onChange:x,onEnter:y}),(_||!n)&&r!==h.d2.style4&&(0,s.jsx)(m,{onClick:y}
1)]}):null});C.displayName="SearchBox";var T=r(43594);let I=(0,a.forwardRef)((e,t)=>{let{styleMap:r,styleType:a,style:o,content:c,isBuyer:n,isMobile:d}=e,{status:{isOpenSearchBar:u},actions:{handleOnEnter:_,handleCloseSearchBar:p}}=O();return(0,s.jsx)(i.Modal,{onClose:p,isOpen:u,containerProps:{p:"0 !important"},dialogProps:{display:"contents !important",position:"relative",m:"0 !important",w:"0 !important",h:"0 !important",backgroundColor:"transparent !important"},sx:{maxWidth:"unset !important"},children:(0,s.jsx)("div",{className:(0,l.A)("search-bar__modal",{"search-bar__modal--mobile":d}),children:(0,s.jsxs)("div",{className:"search-bar__modal-search-box",children:[(0,s.jsx)(m,{onClick:_}),(0,s.jsx)(C,{ref:t,styleMap:r,styleType:a,style:o,content:c,isBuyer:n,isMobile:d}),(0,s.jsx)("button",{className:"search-bar__modal-search-box-close",onClick:p,children:(0,s.jsx)(T.X,{size:"24px",weight:"bold"})})]})})})});I.displayName="SearchPopup";let B=(0,a.forwardRef)((e,t)=>{let{styleMap:r,styleType:a,style:i,content:o,isBuyer:c,isMobile:n}=e,{status:{permission:d},actions:{handleOpenSearchBar:u}}=O();return d.searchBar?(0,s.jsxs)("div",{ref:t,style:i,className:(0,l.A)("search-bar",`search-bar--${a}`,{"is-editing":!c}),children:[(0,s.jsx)(m,{onClick:u}),(0,s.jsx)(I,{styleMap:r,styleType:a,style:i,content:o,isBuyer:c,isMobile:n})]}):null});B.displayName="SearchIconOnly";let b=e=>e===h.Sz.style1?h.d2.style1:e===h.Sz.style2?h.d2.style2:e===h.Sz.style3?h.d2.style1:e===h.Sz.style4?h.d2.style4:e??h.d2.style1;r(63127);let A=(0,a.forwardRef)((e,t)=>{let{styleMap:r,style:l,isBuyer:c,isEditingMode:n,content:d}=e,{status:{isMobileDevice:u}}=(0,i.useScreenStore)(),p=b(n||!u?r?.[o.fB.SEARCH_BOX_TYPE]:h.d2.style4),m=b(r?.[o.fB.SEARCH_BOX_TYPE]),O=function(e){let t,r,s,o,l,c,n,d,u,p,m=(0,_.c)(33),{isEditingMode:h}=e,N=(0,f.useSearchParams)(),[O,R]=(0,a.useState)(null);m[0]===Symbol.for("react.memo_cache_sentinel")?(t=e=>{e&&e.input&&R(e.input)},m[0]=t):t=m[0];let C=t,T=(0,g.j)(null,C),[I,B]=(0,a.useState)(!1),{isOpen:b,onOpen:A,onClose:E}=(0,i.useDisclosure)();m[1]!==N?(r=N.get("search")||"",m[1]=N,m[2]=r):r=m[2];let[v,S]=(0,a.useState)(r),D=(0,f.useRouter)(),{plan:G}=(0,P.k)(),j=void 0===G?null:G;m[3]===Symbol.for("react.memo_cache_sentinel")?(s=e=>{S(e)},m[3]=s):s=m[3];let U=s;m[4]!==E||m[5]!==D||m[6]!==v||m[7]!==N?(o=e=>{let t=(e||v).trim();if(t&&t!==N.get("search")){(0,x.$s)(x.pF.SEARCH,{search_term:t},"ga");let e=encodeURIComponent(t);D.push(`/browse?search=${e}&manual_pixel_event=1`)}E()},m[4]=E,m[5]=D,m[6]=v,m[7]=N,m[8]=o):o=m[8];let M=o;if(m[9]!==h||m[10]!==j){if(l={searchBar:!1,typingSuggestion:!1},h&&(l.typingSuggestion=!1),j){let e,t;m[12]!==j?(e=(0,y.tb)(j,y.N3.AI_SEARCH_ENGINE),m[12]=j,m[13]=e):e=m[13],l.searchBar=e,m[14]!==j?(t=(0,y.tb)(j,y.N3.AI_TYPING_SUGGESTION),m[14]=j,m[15]=t):t=m[15],l.typingSuggestion=t}h&&(l.searchBar=!0),m[9]=h,m[10]=j,m[11]=l}else l=m[11];let L=l;m[16]!==O?(c=()=>{let e=function(){B(!1)},t=function(){B(!0)};if(O)return O.addEventListener("blur",e),O.addEventListener("focus",t),()=>{O.removeEventListener("blur",e),O.removeEventListener("focus",t)}},n=[O,B],m[16]=O,m[17]=c,m[18]=n):(c=m[17],n=m[18]),(0,a.useEffect)(c,n),m[19]!==T||m[20]!==O||m[21]!==I||m[22]!==b||m[23]!==L||m[24]!==v?(d={isFocused:I,inputNode:O,combinedRef:T,searchKeyword:v,permission:L,isOpenSearchBar:b},m[19]=T,m[20]=O,m[21]=I,m[22]=b,m[23]=L,m[24]=v,m[25]=d):d=m[25];let k=d;m[26]!==E||m[27]!==M||m[28]!==A?(u={inputNodeRef:C,handleOnChange:U,handleOnEnter:M,handleOpenSearchBar:A,handleCloseSearchBar:E},m[26]=E,m[27]=M,m[28]=A,m[29]=u):u=m[29];let w=u;return m[30]!==w||m[31]!==k?(p={status:k,actions:w},m[30]=w,m[31]=k,m[32]=p):p=m[32],p}({isEditingMode:n});if(!p)return null;let R=p===h.d2.style4?B:C;return(0,s.jsxs)(N,{value:O,children:[u&&m&&m!==h.d2.style4&&(0,s.jsx)("style",{children:` 2 .search-bar__button-icon { 3 --shop-ui-custom-search-box-icon-color: var(--shop-ui-custom-color); 4 } 5 `}),(0,s.jsx)(R,{ref:t,styleType:p,styleMap:r,content:d,style:l,isEditingMode:n,isBuyer:c,isMobile:u})]})});A.displayName="SearchBar"},63127:()=>{},65315:(e,t,r)=>{"use strict";r.d(t,{$:()=>P});var s=r(54568),a=r(7620),i=r(85135),o=r(68475),l=r(36047),c=r(71772),n=r(17240),d=r(25902),u=r(92261),_=r(57614);function p(e){if(Array.isArray(e))return e;if("string"==typeof e)try{let t=JSON.parse(e);return Array.isArray(t)?t:[e]}catch{return[e]}return[]}function m(e){return Object.entries(e).map(e=>{let[t,r]=e;return("boolean"!=typeof r||r)&&null!=r?`${t}=${r}`:`${t}=0`}).join("&")}var h=r(94585),f=r.n(h);let g={scroll:"scroll",grid:"grid"},P=(0,a.forwardRef)((e,t)=>{let{id:r,isBuyer:h,styleMap:P={}}=e,{productCards:x,isLoading:y}=(e=>{let{styleMap:t,isBuyer:r=!1,nodeId:s}=e,{productGroupSeeds:i}=(0,u.lN)(),o=s?i?.[s]:void 0,h=void 0!==o,[f,g]=(0,a.useState)(()=>
5o??[]),[P,x]=(0,a.useState)(r&&!h),y=(0,a.useRef)(!1),N=(0,d.k)(e=>e.setProductGroupCache),O=(0,d.k)(e=>e.getProductGroupCache),R=(0,d.k)(e=>e.deleteProductGroupCache);return(0,a.useEffect)(()=>{let e=function(e){let t=e?.[l.fB.PRODUCT_GROUP_SOURCE_TYPE]||"";if(!t)return null;let r=null;return t===n.VO.SELECTED&&e?.[l.fB.PRODUCT_GROUP_SOURCE]&&(r=p(e[l.fB.PRODUCT_GROUP_SOURCE]).join(",")),t===n.VO.RECOMMEND&&e?.[l.fB.PRODUCT_GROUP_SOURCE]&&(r=p(e[l.fB.PRODUCT_GROUP_SOURCE]).join(",")),t===n.VO.KEYWORD&&e?.[l.fB.PRODUCT_GROUP_SOURCE]&&(r=e[l.fB.PRODUCT_GROUP_SOURCE]||null),t===n.VO.CATEGORY&&e?.[l.fB.PRODUCT_GROUP_SOURCE]&&(r=p(e[l.fB.PRODUCT_GROUP_SOURCE]).reduceRight((e,t)=>e||t,null)),{type:t,query:r,order_by:e?.[l.fB.PRODUCT_GROUP_SOURCE_SORTING_TYPE]||null,per_page:e?.[l.fB.PRODUCT_GROUP_CARD_DISPLAY_AMOUNT]||1,asc:!1}}(t);if(h){e&&N(m(e),o);return}(async()=>{if(x(!0),y.current)return;function t(){g(Array.from({length:4}).fill(c.H9)),x(!1),y.current=!1}if(y.current=!0,!e){if(r)return;t();return}let s=m(e);if(O(s)){g(O(s)),x(!1),y.current=!1;return}try{let a=await (0,n.OM)(e);if(a?.data){if(!r&&0===a.data.length)return void t();g(a.data),N(s,a.data)}else R(s)}catch(t){(0,_.e8)(t,{tags:{scope:"Component",component:"ProductGroup"},extra:{payload:{params:e}}}),R(s)}x(!1),y.current=!1})()},[t,r,h,o,O,N,R]),{productCards:f,isLoading:P}})({styleMap:P,isBuyer:h,nodeId:r}),N=P?.[l.fB.PRODUCT_GROUP_CARD_DISPLAY_TYPE];return(0,s.jsx)(c.Cv,{className:(0,i.A)(f().root,N&&g[N]),style:{"--shop-ui-custom-product-card-list-items":"3.7",...function(e){let t={...e},r=l.VW[l.fB.PRODUCT_GROUP_CARD_AMOUNT_IN_VIEWPORT],s=l.VW[l.fB.PRODUCT_GROUP_CARD_GAP];if(!e)return{[r]:"4",[s]:"0px"};let a=Number(t[r]),i=Number(t[s]?.replace("px",""));return(Number.isNaN(i)||void 0===i)&&(t[s]="0px"),(Number.isNaN(a)||a<1)&&(t[r]="4"),t}(e.style)},...(0,o.A)(e,["style","className"]),ref:t,onClick:()=>{},products:x||[],productCardOptions:{useButton:!1,usePriceBadge:!1,useShadow:!1,useSquareImage:!1,useProductBadge:!!e.styleMap?.[l.fB.PRODUCT_GROUP_USE_PRODUCT_BADGE],useProductName:!!e.styleMap?.[l.fB.PRODUCT_GROUP_USE_PRODUCT_NAME],useProductPrice:!!e.styleMap?.[l.fB.PRODUCT_GROUP_USE_PRODUCT_PRICE]},isLoading:y})});P.displayName="ProductGroup"},66955:()=>{},71772:(e,t,r)=>{"use strict";r.d(t,{Cv:()=>s.C,H9:()=>a.H}),r(14337);var s=r(41840),a=r(91448);r(96752)},75924:(e,t,r)=>{"use strict";r.d(t,{OZ:()=>s.OZ,d2:()=>s.d2});var s=r(24995);r(60263)},77341:e=>{e.exports={root:"ProductPromoInfo_root__TXK8U",productPromoInfoTitle:"ProductPromoInfo_productPromoInfoTitle__2i0RR",productPromoInfoList:"ProductPromoInfo_productPromoInfoList__RR3nR",productPromoInfoItem:"ProductPromoInfo_productPromoInfoItem__6ufFo",productPromoInfoItemBadge:"ProductPromoInfo_productPromoInfoItemBadge__vALVQ",promoBadge:"ProductPromoInfo_promoBadge__FG1Wm",giveawayBadge:"ProductPromoInfo_giveawayBadge__harbn",shippingBadge:"ProductPromoInfo_shippingBadge__I9DQl",productPromoInfoItemContent:"ProductPromoInfo_productPromoInfoItemContent__X_OJm"}},79914:(e,t,r)=>{"use strict";r.r(t),r.d(t,{ProductSuggestion:()=>s.A});var s=r(97731)},87495:e=>{e.exports={root:"ProductDescription_root__4O9_O",productDescriptionItem:"ProductDescription_productDescriptionItem__lq9A6",productDescriptionTitle:"ProductDescription_productDescriptionTitle__jY8aS",productDescriptionDivider:"ProductDescription_productDescriptionDivider__8Zrsu",accordionTitle:"ProductDescription_accordionTitle__PKcng"}},89983:()=>{},91448:(e,t,r)=>{"use strict";r.d(t,{H:()=>a});var s=r(43158);let a={name:r(34582).A.gettext("Cozy Knit æ
µæ¶ç³»é«é éç¹æ¯è¡£"),price:{value:"NT$ 1,480",currency:"NT$",amount:"1480"},discountedPrice:{value:"NT$ 0",currency:"NT$",amount:"0"},source:[(0,s.JN)((0,s.no)("/static/product-card-default_v2.avif"))],alt:""}},92160:(e,t,r)=>{"use strict";r.d(t,{d:()=>M});var s=r(54568),a=r(7620),i=r(36047),o=r(85135),l=r(99680),c=r(34582),n=r(110),d=r(20979),u=r(33313),_=r.n(u);let p={value:"NT$ 1890",amount:"1890",currency:"TWD"},m={value:"NT$ 2100",amount:"2100",currency:"TWD"},h={value:"NT$ 100",amount:"100",currency:"TWD"},f=e=>{let t,r,a,i,o,u=(0,l.c)(17),{isBuyer:f}=e,{product:g,selectedProductDetailId:P}=(0,n.KN)();if(u[0]!==f||u[1]!==g||u[2]!==P){e:{let e,r=g;r||((r={}).price=m,r.promo_saving_price=h,r.discounted_price=p,r.spec_details=[]);let s=f?r.price:m,a=f?r.promo_saving_price:h,i=f?r.discounted_price:p;u[4]!==P?(e=e=>
5e.id===P,u[4]=P,u[5]=e):e=u[5];let o=r.spec_details.find(e),l=(0,d.ae)({originalPrice:s,discountedPrice:i,promoSavingPrice:a,minAddOnPrice:null});if(o){t=(0,d.ae)({originalPrice:o.price,discountedPrice:o.discounted_price,promoSavingPrice:o.promo_saving_price,minAddOnPrice:null});break e}t=l}u[0]=f,u[1]=g,u[2]=P,u[3]=t}else t=u[3];let x=t;u[6]!==x.discountedPrice||u[7]!==x.useDiscountedPrice?(r=x.useDiscountedPrice&&x.discountedPrice&&(0,s.jsx)("span",{className:_().price,children:x.discountedPrice.value}),u[6]=x.discountedPrice,u[7]=x.useDiscountedPrice,u[8]=r):r=u[8];let y=x.originalPrice?.value;return u[9]!==y?(a=(0,s.jsx)("b",{className:_().price,children:y}),u[9]=y,u[10]=a):a=u[10],u[11]!==x.promoSavingPrice?(i=x.promoSavingPrice&&(0,s.jsx)("div",{className:_().discountBox,children:(0,s.jsxs)("span",{className:_().badge,children:[c.A.gettext("çä¸")," ",x.promoSavingPrice.value]})}),u[11]=x.promoSavingPrice,u[12]=i):i=u[12],u[13]!==r||u[14]!==a||u[15]!==i?(o=(0,s.jsxs)("div",{className:_().priceBox,children:[r,a,i]}),u[13]=r,u[14]=a,u[15]=i,u[16]=o):o=u[16],o},g=e=>{let t,r,a=(0,l.c)(5),{isBuyer:i}=e,{product:o}=(0,n.KN)();a[0]!==i||a[1]!==o?.name?(t=i?o?.name||"":c.A.gettext("é裡æé¡¯ç¤ºå忍é¡"),a[0]=i,a[1]=o?.name,a[2]=t):t=a[2];let d=t;return a[3]!==d?(r=(0,s.jsx)("div",{className:_().heading,children:(0,s.jsx)("h1",{children:d})}),a[3]=d,a[4]=r):r=a[4],r},P=e=>{let t,r,a=(0,l.c)(5),{isBuyer:i}=e,{product:o}=(0,n.KN)();a[0]!==i||a[1]!==o?.summary?(t=i?o?.summary:c.A.gettext("é裡æé¡¯ç¤ºåçæä¾çååæè¦"),a[0]=i,a[1]=o?.summary,a[2]=t):t=a[2];let d=t;return d?(a[3]!==d?(r=(0,s.jsx)("div",{className:_().summaryBox,children:(0,s.jsx)("p",{className:_().summary,children:d})}),a[3]=d,a[4]=r):r=a[4],r):null};var x=r(3699),y=r(40950),N=r(43158);let O=[{group_name:"é¸åè¦æ ¼",layer:1,specs:[{id:"defaultSpecMetaId1",name:"è¦æ ¼ 1",image:{id:"defaultSpecMetaImageId1",src:"",type:"image"}},{id:"defaultSpecMetaId2",name:"è¦æ ¼ 2",image:{id:"defaultSpecMetaImageId2",src:"",type:"image"}}]},{group_name:"é¡è²",layer:2,specs:[{id:"defaultSpecMetaId3",name:"red",image:{id:"defaultSpecMetaImageId3",src:"",type:"image"}},{id:"defaultSpecMetaId4",name:"blue",image:{id:"defaultSpecMetaImageId4",src:"",type:"image"}}]},{group_name:"尺寸",layer:3,specs:[{id:"defaultSpecMetaId5",name:"xs",image:{id:"defaultSpecMetaImageId5",src:"",type:"image"}},{id:"defaultSpecMetaId6",name:"s",image:{id:"defaultSpecMetaImageId6",src:"",type:"image"}}]}],R=e=>{let t,r,a,i,c,n=(0,l.c)(26),{name:d,options:u,isStandardType:p,activeName:m,layerIndex:h,onSelect:f,isBuyer:g}=e,P=`spec-picker-${h}`;n[0]!==m||n[1]!==u?(t=u.find(e=>e.name===m)??u[0],n[0]=m,n[1]=u,n[2]=t):t=n[2];let O=t;return n[3]!==P||n[4]!==d?(r=(0,s.jsx)("label",{className:_().label,htmlFor:P,children:d}),n[3]=P,n[4]=d,n[5]=r):r=n[5],n[6]!==P||n[7]!==p||n[8]!==h||n[9]!==d||n[10]!==f||n[11]!==u||n[12]!==O?(a=p&&(0,s.jsxs)("div",{className:_().specPicker,children:[(0,s.jsx)("div",{className:_().selectorArrow,children:(0,s.jsx)(x.a,{width:"20px",height:"20px",weight:"bold"})}),(0,s.jsx)("select",{name:d,id:P,className:_().specPickerInner,value:O?`${O.name}:::${O.id}`:"",onChange:e=>{let[t,r]=e.target.value.split(":::");f(h,t,r)},children:u.map(T)})]}),n[6]=P,n[7]=p,n[8]=h,n[9]=d,n[10]=f,n[11]=u,n[12]=O,n[13]=a):a=n[13],n[14]!==m||n[15]!==P||n[16]!==g||n[17]!==p||n[18]!==h||n[19]!==f||n[20]!==u?(i=!p&&(0,s.jsx)("div",{id:P,className:_().customOptionBox,children:u.map((e,t)=>(0,s.jsx)("button",{title:e.name,className:(0,o.A)(e.image.src?_().imageOption:_().textOption,(m===e.name||!g&&0===t)&&_().active),onClick:()=>{f(h,e.name,e.id)},children:e.image.src?(0,s.jsx)(y.V,{sources:[{...(0,N.Ql)(e.image.src,50)}],alt:e.name}):e.name},e.id+t))}),n[14]=m,n[15]=P,n[16]=g,n[17]=p,n[18]=h,n[19]=f,n[20]=u,n[21]=i):i=n[21],n[22]!==r||n[23]!==a||n[24]!==i?(c=(0,s.jsxs)("div",{className:_().productSpecBox,children:[r,a,i]}),n[22]=r,n[23]=a,n[24]=i,n[25]=c):c=n[25],c},C=e=>{let t,r,a,i,c=(0,l.c)(17),{type:d,isEditingMode:u,isBuyer:p}=e,m="standard"===d,h=(0,n.KN)();c[0]!==p||c[1]!==h?(t=p?h.product?.spec_metas||[]:O,c[0]=p,c[1]=h,c[2]=t):t=c[2];let f=t,g=u&&_().disabled;if(c[3]!==g?(r=(0,o.A)(_().productSpecPicker,g),c[3]=g,c[4]=r):r=c[4],c[5]!==p||c[6]!==m||c[7]!==h||c[8]!==f){let e;c[10]!==p||c[11]!==m||c[12]!==h?(e=(e,t)=>(0,s.jsx)(R,{name:e.group_name,options:e.specs,layerIndex:t,isStandardType:m,activeName:h.specMetaLayerNameList[t],onSelect:h.setSpecMetaLayerNameList,isBuyer:p},e.group_name+t),c[10]=p,c[11]=m,c[12]=h,c[13]=e):e=c[13],a=f.map(e),c[5]=p,c[6]=m,c[7]=h,c[8]=f,c[9]=a}else a=c[9];return c[14]!==r||c[15]!==a?(i=(0,s.jsx)("span",{className:r,children:a}),c[14]=r,c[15]=a,c[16]=i):i=c[16],i};function T(e){return(0,s.jsx)("option",{value:`${e.name}:::${e.id}`,children:e.name},e.id)}var I=r(13446),B=r(57160),b=r(36448);let A=()=>{let e,t,r,i,c,d,u,p,m,h,f,g,P,x,y,N,O=(0,l.c)(36),{productQuantity:R,setProductQuantity:C,product:T,selectedProductDetailId:A}=(0,n.KN)();O[0]!==T||O[1]!==R||O[2]!==A||O[3]!==C?(e={productQuantity:R,product:T,selectedProductDetailId:A,onChange:C},O[0]=T,O[1]=R,O[2]=A,O[3]=C,O[4]=e):e=O[4];let E=function(e){let t,r,s,i,o,c,n,d,u,_,p=(0,l.c)(31),{productQuantity:m,onChange:h,product:f,selectedProductDetailId:g}=e,P=void 0===m?1:m,[x,y]=(0,a.useState)(P),[N,O]=(0,a.useState)(!1);e:{if(!f){t=0;break e}if(f.spec_details&&f.spec_details.length>0){let e;if(p[0]!==f.spec_details||p[1]!==g){let t;p[3]!==g?(t=e=>e.id===g,p[3]=g,p[4]=t):t=p[4],e=f.spec_details.find(t),p[0]=f.spec_details,p[1]=g,p[2]=e}else e=p[2];let r=e;if(r){t=r.stock;break e}t=0;break e}t=f.total_stock??0}let R=t;p[5]!==x||p[6]!==R||p[7]!==h?(r={step:1,value:x,min:1,precision:0,max:R,onChange(e,t){let r=Number.isNaN(t)?1:Math.max(t,1);y(r),h(r)}},p[5]=x,p[6]=R,p[7]=h,p[8]=r):r=p[8];let{getInputProps:C,getIncrementButtonProps:T,getDecrementButtonProps:B}=(0,I.useNumberInput)(r);p[9]!==T?(s=T(),p[9]=T,p[10]=s):s=p[10];let b=s;p[11]!==B?(i=B(),p[11]=B,p[12]=i):i=p[12];let A=i;p[13]!==C?(o=C(),p[13]=C,p[14]=o):o=p[14];let E=o;return p[15]!==x||p[16]!==h||p[17]!==P?(c=()=>{P!==x&&(y(P),h(P))},n=[P,x,h],p[15]=x,p[16]=h,p[17]=P,p[18]=c,p[19]=n):(c=p[18],n=p[19]),(0,a.useEffect)(c,n),p[20]!==x||p[21]!==R||p[22]!==h||p[23]!==P?(d=()=>{let e;O(R<=P||0===R);let t=Math.max(R,1);return R<=P&&x!==t&&(y(t),h(t)),()=>{clearTimeout(e)}},u=[R,P,y,h,x],p[20]=x,p[21]=R,p[22]=h,p[23]=P,p[24]=d,p[25]=u):(d=p[24],u=p[25]),(0,a.useEffect)(d,u),p[26]!==A||p[27]!==b||p[28]!==E||p[29]!==N?(_={inc:b,dec:A,input:E,outOfStock:N},p[26]=A,p[27]=b,p[28]=E,p[29]=N,p[30]=_):_=p[30],_}(e);if(O[5]!==E){let e;({outOfStock:i,...c}=E),m=_().counterBox,O[15]===Symbol.for("react.memo_cache_sentinel")?(e=(0,s.jsx)(B.H,{size:"1.25em",weight:"bold"}),O[15]=e):e=O[15],h=(0,s.jsx)(I.Box,{as:"button",role:"button",className:_().counterAction,...c.dec,children:e}),r=I.Box,p=_().counterInputBox,t=I.ChakraInput,d="none",u=c.input.value.toString().length||1,O[5]=E,O[6]=t,O[7]=r,O[8]=i,O[9]=c,O[10]=d,O[11]=u,O[12]=p,O[13]=m,O[14]=h}else t=O[6],r=O[7],i=O[8],c=O[9],d=O[10],u=O[11],p=O[12],m=O[13],h=O[14];O[16]!==t||O[17]!==c.input||O[18]!==d||O[19]!==u?(f=(0,s.jsx)(t,{border:d,htmlSize:u,className:_().counterInput,...c.input}),O[16]=t,O[17]=c.input,O[18]=d,O[19]=u,O[20]=f):f=O[20],O[21]!==r||O[22]!==p||O[23]!==f?(g=(0,s.jsx)(r,{className:p,children:f}),O[21]=r,O[22]=p,O[23]=f,O[24]=g):g=O[24];let v=i&&_().disabled;return O[25]!==v?(P=(0,o.A)(_().counterAction,v),O[25]=v,O[26]=P):P=O[26],O[27]===Symbol.for("react.memo_cache_sentinel")?(x=(0,s.jsx)(b.F,{size:"1.25em",weight:"bold"}),O[27]=x):x=O[27],O[28]!==c.inc||O[29]!==P?(y=(0,s.jsx)(I.Box,{as:"button",role:"button",className:P,...c.inc,children:x}),O[28]=c.inc,O[29]=P,O[30]=y):y=O[30],O[31]!==y||O[32]!==m||O[33]!==h||O[34]!==g?(N=(0,s.jsxs)("div",{className:m,children:[h,g,y]}),O[31]=y,O[32]=m,O[33]=h,O[34]=g,O[35]=N):N=O[35],N};var E=r(902),v=r(6648),S=r(89312),D=r(66873),G=r(3674),j=r(33828);let U=e=>{let t,r,a,i,d,u,p,m,h=(0,l.c)(41),{type:f}=e,g=(0,E.useRouter)(),P=(0,I.useToast)(),{state:x,actions:y}=(0,j.RC)()||{},{productId:N,productQuantity:O,selectedProductDetailId:R,product:C}=(0,n.KN)(),T=!!x?.profile?.id;h[0]!==y?(t=()=>{y?.triggerLoginModal&&y.triggerLoginModal({nextUrl:window.location.href})},h[0]=y,h[1]=t):t=h[1];let B=t;e:{let e;if(!C||"number"==typeof C?.total_stock&&C?.total_stock<=0){r=!0;break e}if(h[2]!==C.spec_details||h[3]!==R){let t;h[5]!==R?(t=e=>e.id===R,h[5]=R,h[6]=t):t=h[6],e=C.spec_details.find(t),h[2]=C.spec_details,h[3]=R,h[4]=e}else e=h[4];let t=e;r=t&&t.stock<=0}let b=r;h[7]!==C||h[8]!==N||h[9]!==O||h[10]!==g||h[11]!==R||h[12]!==P?(a=e=>{(0,S.LL)({product_id:N,quantity:O,...R?{spec_detail_id:R}:{}}).then(()=>
5{if((0,v.j)(D.kO.buyerCartCount),!C)return;let e=C.discounted_price?.amount||C.price.amount;(0,G.$s)(G.pF.ADD_TO_CART,{currency:"TWD",value:Number(e),items:[{item_id:C.id,item_name:C.name,price:Number(e),quantity:O}]},"ga"),(0,G.$s)(G.pF.ADD_TO_CART,{currency:"TWD",value:Number(e),items:[{item_id:C.id,item_name:C.name,price:Number(e),quantity:O}]},"ads"),(0,G.$s)(G.pF.ADD_TO_CART,{content_ids:[C.id],content_type:"product",content_name:C.name,value:Number(e),currency:"TWD"},"pixel"),(0,G.$s)(G.pF.ADD_TO_CART,(0,G.zN)({items:[{id:C.id,name:C.name,quantity:O,price:Number(e)}],total:Number(e)*O,currency:C.price.currency}),"openai"),P({title:c.A.gettext("å·²å å
¥è³¼ç©è»"),status:"success"})}),e&&g.push("/cart")},h[7]=C,h[8]=N,h[9]=O,h[10]=g,h[11]=R,h[12]=P,h[13]=a):a=h[13];let A=a;t:{if(!C||!C.launch_datetime){i=!1;break t}let e=Date.now();i=1e3*C.launch_datetime>e}let U=i;if(C&&!1===C.can_add_to_cart){let e,t,r,a,i,l;h[14]===Symbol.for("react.memo_cache_sentinel")?(e=(0,o.A)(_().buttonsBox,_().purchaseEligibilityBox),t=(0,o.A)(_().button,_().positiveButton),h[14]=e,h[15]=t):(e=h[14],t=h[15]);let n=T?void 0:B;return h[16]!==T?(r=T?c.A.gettext("æªç¬¦åçç´æ¢ä»¶ï¼ç¡æ³è³¼è²·"):c.A.gettext("éæå¡/ç«å³ç»å
¥è³¼è²·"),h[16]=T,h[17]=r):r=h[17],h[18]!==T||h[19]!==n||h[20]!==r?(a=(0,s.jsx)("button",{className:t,disabled:T,onClick:n,children:r}),h[18]=T,h[19]=n,h[20]=r,h[21]=a):a=h[21],h[22]!==C.purchase_eligibility_message?(i=C.purchase_eligibility_message&&(0,s.jsx)("p",{className:_().purchaseEligibilityMessage,children:C.purchase_eligibility_message}),h[22]=C.purchase_eligibility_message,h[23]=i):i=h[23],h[24]!==a||h[25]!==i?(l=(0,s.jsxs)("div",{className:e,children:[a,i]}),h[24]=a,h[25]=i,h[26]=l):l=h[26],l}let M="feature"===f&&_().featureButtonBox;return h[27]!==M?(d=(0,o.A)(_().buttonsBox,M),h[27]=M,h[28]=d):d=h[28],h[29]!==A||h[30]!==U||h[31]!==b?(u=!U&&(0,s.jsx)("button",{disabled:b,className:(0,o.A)(_().button,_().positiveButton),onClick:()=>A(!1),children:b?c.A.gettext("å·²å®å®"):c.A.gettext("å å
¥è³¼ç©è»")}),h[29]=A,h[30]=U,h[31]=b,h[32]=u):u=h[32],h[33]!==A||h[34]!==U||h[35]!==b?(p=!b&&(0,s.jsx)("button",{disabled:U,className:(0,o.A)(_().button,_().negativeButton),onClick:()=>A(!0),children:U?c.A.gettext("å°æªè²©å®"):c.A.gettext("ç´æ¥è³¼è²·")}),h[33]=A,h[34]=U,h[35]=b,h[36]=p):p=h[36],h[37]!==d||h[38]!==u||h[39]!==p?(m=(0,s.jsxs)("div",{className:d,children:[u,p]}),h[37]=d,h[38]=u,h[39]=p,h[40]=m):m=h[40],m},M=(0,a.forwardRef)((e,t)=>{let{styleMap:r,style:a,isEditingMode:l,isBuyer:c}=e,n=r?r[i.fB.PRODUCT_INFO_GROUP_TYPE]:"";return(0,s.jsxs)("div",{ref:t,style:a,className:(0,o.$)(_().root,_().shrinkGap),"data-shop-element-type":i.MN.PRODUCT_INFO_GROUP,children:[(0,s.jsx)(g,{isBuyer:c}),(0,s.jsx)(f,{isBuyer:c}),(0,s.jsx)(P,{isBuyer:c}),(0,s.jsx)(C,{type:n,isEditingMode:l,isBuyer:c}),(0,s.jsx)(A,{}),(0,s.jsx)(U,{type:n})]})});M.displayName="ProductInfoGroup"},94585:e=>{e.exports={root:"ProductGroup_root__tS9a_"}},96752:(e,t,r)=>{"use strict";r.d(t,{H:()=>o});var s=r(54568),a=r(99680);r(7620);var i=r(20979);r(3825);let o={ProductCard:e=>{let t,r,o,l,c,n,d,u,_,p=(0,a.c)(23),{product:m}=e,h=m?.price,f=m?.discounted_price,g=m?.min_add_on_price,P=m?.has_price_range;p[0]!==h||p[1]!==f||p[2]!==g||p[3]!==P?(t=(0,i.ae)({originalPrice:h,discountedPrice:f,minAddOnPrice:g,promoSavingPrice:null,hasPriceRange:P}),p[0]=h,p[1]=f,p[2]=g,p[3]=P,p[4]=t):t=p[4];let x=t,y=m?.id||"",N=m?.slug||"",O=m?.name||"",R=`/product/${N||y}`;return p[5]===Symbol.for("react.memo_cache_sentinel")?(r=(0,s.jsx)("div",{className:"skeleton skeleton--ssr skeleton--full"}),o=(0,s.jsx)("div",{className:"skeleton-spacer"}),p[5]=r,p[6]=o):(r=p[5],o=p[6]),p[7]!==O?(l=(0,s.jsx)("strong",{className:"skeleton skeleton--ssr skeleton--sm",children:(0,s.jsx)("p",{className:"ssr-hidden",children:O})}),p[7]=O,p[8]=l):l=p[8],p[9]===Symbol.for("react.memo_cache_sentinel")?(c=(0,s.jsx)("div",{className:"skeleton-spacer"}),p[9]=c):c=p[9],p[10]!==x.discountedPrice||p[11]!==x.discountedPriceText||p[12]!==x.useDiscountedPrice?(n=x.useDiscountedPrice&&x.discountedPrice&&(0,s.jsx)("span",{className:"ssr-hidden",children:x.discountedPriceText}),p[10]=x.discountedPrice,p[11]=x.discountedPriceText,p[12]=x.useDiscountedPrice,p[13]=n):n=p[13],p[14]!==x.originalPriceText?(d=(0,s.jsx)("b",{className:"ssr-hidden",children:x.originalPriceText}),p[14]=x.originalPriceText,p[15]=d):d=p[15],p[16]!==n||p[17]!==d?(u=(0,s.jsx)("div",{children:(0,s.jsxs)("div",{className:"skeleton
5skeleton--ssr skeleton--xs",children:[n,d]})}),p[16]=n,p[17]=d,p[18]=u):u=p[18],p[19]!==u||p[20]!==R||p[21]!==l?(_=(0,s.jsxs)("a",{href:R,className:"ssr-product-card",children:[r,o,l,c,u]}),p[19]=u,p[20]=R,p[21]=l,p[22]=_):_=p[22],_}}},97731:(e,t,r)=>{"use strict";r.d(t,{A:()=>g});var s=r(54568),a=r(7620),i=r(55364),o=r(85135),l=r(68475),c=r(36047),n=r(110),d=r(81880),u=r(71772),_=r(99680),p=r(17240),m=r(24187),h=r.n(m);let f={scroll:"scroll",grid:"grid"},g=(0,a.forwardRef)((e,t)=>{let{isBuyer:r,styleMap:m={}}=e,g=(0,d.j)(t),{productId:P}=(0,n.KN)(),{productCards:x,isLoading:y}=(e=>{let t,r,s,i,o=(0,_.c)(9),{productId:l,isBuyer:n,styleMap:d}=e,m=void 0!==n&&n;o[0]===Symbol.for("react.memo_cache_sentinel")?(t=[],o[0]=t):t=o[0];let[h,f]=(0,a.useState)(t),[g,P]=(0,a.useState)(m);return o[1]!==m||o[2]!==l||o[3]!==d?(r=()=>{(async()=>{P(!0);let e=d?.[c.fB.PRODUCT_GROUP_CARD_DISPLAY_AMOUNT]||20,t=await (0,p.OM)({type:p.VO.RECOMMEND,query:l,order_by:p._c.POPULARITY,per_page:e});if(t?.data){if(!m&&0===t.data.length){f(Array.from({length:e}).fill(u.H9)),P(!1);return}f(t.data)}P(!1)})()},s=[l,m,d],o[1]=m,o[2]=l,o[3]=d,o[4]=r,o[5]=s):(r=o[4],s=o[5]),(0,a.useEffect)(r,s),o[6]!==g||o[7]!==h?(i={productCards:h,isLoading:g},o[6]=g,o[7]=h,o[8]=i):i=o[8],i})({productId:P,isBuyer:r,styleMap:m}),N=m?.[c.fB.PRODUCT_GROUP_CARD_DISPLAY_TYPE];return(0,i.E)(()=>{if(g.current){let e=g.current.closest("[data-shop-ui-wrapper]");e&&(r&&0===x.length?e.style.display="none":e.style.display="")}},[r,x]),(0,s.jsx)(u.Cv,{ref:g,className:(0,o.A)(h().root,N&&f[N]),style:{"--shop-ui-custom-product-card-list-items":"3.7",...e.style},...(0,l.A)(e,["style","className"]),onClick:()=>{},products:x||[],productCardOptions:{useButton:!1,usePriceBadge:!1,useShadow:!1,useSquareImage:!1,useProductBadge:!!e.styleMap?.[c.fB.PRODUCT_GROUP_USE_PRODUCT_BADGE],useProductName:!!e.styleMap?.[c.fB.PRODUCT_GROUP_USE_PRODUCT_NAME],useProductPrice:!!e.styleMap?.[c.fB.PRODUCT_GROUP_USE_PRODUCT_PRICE]},isLoading:y})});g.displayName="ProductSuggestion"},98848:(e,t,r)=>{"use strict";r.r(t),r.d(t,{SearchBar:()=>s.I});var s=r(60263)}}]); 6//# sourceMappingURL=https://mypinzap.com/static/chunks/common-core-6ba04853-83a8c1e78c6b4ec5.js.map
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.