PageSourceSearch

https://www.buy123.com.tw/_next/static/chunks/3504.e90dd24273ac2ea7.js

js buy123.com.tw collected 2026-10-03 19:12:02 UTC 162,808 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3504],{47202:function(e,i,t){t.d(i,{Z:function(){return m}});var n=t(67294),o=t(50445),r=t(32613),a=t(62928),s=t(39659),c=function(e){var i=e.width;return i?i+"px":"520px"},l=(0,o.iv)(["position:absolute;left:0;right:0;margin:auto;width:",";.drawer{@media (max-height:700px){overflow-y:scroll;}background-color:white;",";margin:auto;width:",";max-height:",";height:fit-content;overflow:",";border-radius:10px;transition:transform 0.25s ease-out;transform:",";.main-title{height:54px;line-height:54px;font-size:16px;font-weight:500;text-align:center;color:",";border-bottom:0.5px solid ",";display:flex;align-items:center;border-radius:10px 10px 0 0;"," background-color:white;.lastAction{z-index:100;margin-left:12px;color:",";cursor:pointer;}.text{position:absolute;margin-left:auto;margin-right:auto;left:0;right:0;text-align:center;max-width:calc(100% - 120px);padding:0 16px;max-height:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}.action{color:",";z-index:100;}.icon{margin-left:auto;margin-right:16px;width:24px;height:24px;&.icon-back{margin-left:16px;line-height:54px;}}.cancel{margin-right:auto;margin-left:12px;}.confirm{margin-left:auto;margin-right:12px;}}}.drawerContent{padding:",";}.backdrop{position:fixed;width:100%;height:100%;background-color:rgba(0,0,0,0.5);z-index:100;top:0;right:0;}"],c,(0,s.Bd)({top:"50%",left:0,right:0,zIndex:200}),c,(function(e){return e.height?"".concat(e.height,"px"):"90vh"}),(function(e){return e.isPreselect?"none":"auto"}),(function(e){return e.isOpen?"translateY(-50%)":"translateY(100vh)"}),(0,s.QT)("dark"),(0,s.QT)("dark4"),(0,s.CA)({top:0,zIndex:10}),(0,s.QT)("siteColor"),(0,s.QT)("siteColor"),(function(e){return e.isPreselect||e.isOpenInner?"0px":"0 28px 36px 28px"})),d=t(85893),p=function(e){var i=e.className,t=e.title,o=e.isOpen,s=e.setIsOpen,c=e.closeAction,l=e.lastAction,p=e.children,m=e.hideTitle,u=e.backIcon,g=e.setisOpenInner;(0,n.useEffect)((function(){(0,r.qT)(o)}),[o]),(0,n.useEffect)((function(){return function(){return(0,r.qT)(!1)}}),[]);var h=function(e){e.stopPropagation(),s(!1),g(!1)};return(0,d.jsxs)("div",{className:i,children:[(0,d.jsxs)("div",{className:"drawer",children:[!1===m&&(0,d.jsxs)("div",{className:"main-title",children:[l&&!u&&(0,d.jsx)("div",{className:"lastAction",onClick:function(){l(),g(!1)},children:"\u4e0a\u4e00\u6b65"}),l&&u&&(0,d.jsx)(a.Z,{icon:"back",onClick:l,page:"orders"}),(0,d.jsx)("div",{className:"text",children:t}),(0,d.jsx)("img",{className:"action icon pointer",onClick:function(e){c(),h(e)},src:"/vImages/cart/drawer-close.svg"})]}),(0,d.jsxs)("div",{className:"drawerContent",children:[" ",p]})]}),o&&(0,d.jsx)("div",{className:"backdrop pointer",onClick:h})]})};p.defaultProps={title:"",width:520,height:300,hideTitle:!1,promoteText:null,setIsOpen:function(){},closeAction:function(){},lastAction:null,backIcon:!1,setisOpenInner:function(){}};var m=(0,o.ZP)(p).withConfig({componentId:"sc-1xg5nf-0"})(["",""],l)},15765:function(e,i,t){t.r(i),t.d(i,{default:function(){return Rn}});var n=t(16835),o=t(94184),r=t.n(o),a=t(94315),s=t.n(a),c=t(11163),l=t(67294),d=t(50445),p=t(32873),m=t(37729),u=t(85353),g=t(84392),h=t(96260),f=t(17997),x=t(68621),v=t(30021),k=t(81248),b=t(15548),j=t(89528),w=t(44040),y=t(29720),O=t(39659),N=(0,d.iv)([".activity-swiper-container{position:relative;overflow:hidden;}"]),_=d.ZP.img.withConfig({componentId:"sc-1tv90yt-0"})(["width:100%;"]),C=d.ZP.div.withConfig({componentId:"sc-1tv90yt-1"})(["border-radius:12px;display:flex;justify-content:center;",";transform:translate(-50%);.swiper-pagination-bullet{width:7px;height:7px;background-color:black;opacity:0.2;border-radius:50%;margin-right:9px;}.swiper-pagination-bullet:last-child{margin-right:0px;}.swiper-pagination-bullet-active{background-color:",";opacity:1;}"],(0,O.AG)({bottom:"6px",left:"50%",zIndex:50}),(0,O.QT)("siteColor")),Z=t(85893);w.ZP.use(w.oM);var I=(0,d.ZP)((function(e){var i=e.className,t=e.activities;if((0,l.useEffect)((function(){t&&null!==t&&void 0!==t&&t.mweb&&(s().any.empty(null===t||void 0===t?void 0:t.mweb,t)||new w.ZP(".activity-swiper-container",{lazy:{loadPrevNext:!0,loadPrevNextAmount:1},autoplay:!1,pagination:{el:".swiper-pagination",type:"bullets",clickable:!0}}))}),[]),!t||null===t||void 0===t||!t.mweb)return null;var n=t.mweb,o=void 0===n?[]:n;return s().any.empty(o,t)?null:(0,Z.jsxs)("div",{className:"".concat(i," bg-white block"),children:[(0,Z.jsx)("div",{className:"block-header",children:"\u71b1\u9580\u6d3b\u52d5"}),(0,Z.jsxs)("div",{className:"activity-swiper-container swiper-container",children:[(0,Z.jsx)("div",{className:"swiper-wrapper",children:o.map((function(e,i){return(0,Z.jsx)("a",{className:"swiper-slide",href:e.link+"#ref=".concat((0,y.fJ)(),"_item_campaignBanner_").concat(i),rel:"noreferrer",target:"_blank",children:(0,Z.jsx)(_,{alt:e.subject,className:"swiper-lazy","data-src":e.image})},i)}))}),(0,Z.jsx)(C,{className:"swiper-pagination"})]})]})})).withConfig({componentId:"je1jhv-0"})(["",""],N),P=t(76871),T=t(32613),S=t(28661),F=(0,d.iv)(["padding-bottom:",";.modal-open{position:relative;z-index:0;}.verify{width:100%;height:",";background-color:",";margin-bottom:",";.verify-content{max-width:",";}.verify-ctn{width:",";height:",";background-color:white;color:",";text-align:center;line-height:",";cursor:pointer;border-radius:",";}}.minor{color:",";}.text-center{text-align:center;}.text-left{text-align:left;}.border-radius{border-radius:",";}.block{padding:",";margin-bottom:",";&:nth-last-child(2){margin-bottom:",";}}.block-header{font-size:",";padding-left:11px;position:relative;margin-bottom:",';font-weight:600;::before{content:"";position:absolute;
1left:0;top:45%;width:6px;height:',";background-color:",";border-radius:11px;transform:scale(0.5) translate(-0%,-100%);}}.sub-title{font-weight:600;margin-right:",";padding-right:",";border-right:1px solid ",";white-space:nowrap;&.empty{border-right:1px solid white;}}.commodities-container{flex-wrap:wrap;line-height:1.3;overflow:hidden !important;.search-item{width:",";margin-bottom:",";border-radius:8px;.search-images{",';position:relative;overflow:hidden;background:url("/vImages/search/img_loading.svg") center center no-repeat white;background-size:60%;border-radius:8px 8px 0 0;.discount-info{width:100%;color:',";padding:"," 0;text-align:center;background:rgba(0,0,0,0.65);","}.adult{",";text-align:center;padding-top:",";background-color:rgba(255,255,255,0.9);",";.icon{width:",";}}}.img{",";border-radius:4px 4px 0 0;object-fit:contain;position:absolute;&.frame{","}}.item-info{position:relative;padding:"," ",";.item-name{height:",";margin:"," 0 ",";}.business-tag{display:block;",' &::before{content:"";',";"," border-style:solid;border-width:0 0 2px 2px;border-color:transparent transparent #212652 transparent;}.icon{min-width:",";height:",";}}.unit{margin-left:2px;letter-spacing:2px;}.icon-discount_text{",";margin-left:",";}}.review-info{padding:0 ",";.icon-review{",";margin-right:2px;}.bolder{margin-right:",";}}}}.drawer-wrapper{.backdrop{z-index:100;}.modal{z-index:900;background-color:#fff;}}"],(0,O.Ok)(120),(0,O.Ok)(50),(0,O.QT)("red-80"),(0,O.Ok)(8),(0,O.Ok)(263),(0,O.Ok)(68),(0,O.Ok)(28),(0,O.QT)("red-100"),(0,O.Ok)(28),(0,O.Ok)(4),(0,O.QT)("dark-60"),(0,O.Ok)(4),(0,O.Ok)(16),(0,O.Ok)(8),(0,O.Ok)(1),(0,O.Ok)(16),(0,O.Ok)(12),(0,O.Ok)(32),(0,O.QT)("siteColor"),(0,O.Ok)(12),(0,O.Ok)(12),(0,O.QT)("dark-50"),(0,O.Ok)(172),(0,O.Ok)(7),(0,O.aF)(172),(0,O.QT)("site60"),(0,O.Ok)(4),(0,O.AG)({bottom:0,left:0,zIndex:10}),(0,O.dp)("100%"),(0,O.Ok)(22),(0,O.AG)({top:0,left:0,zIndex:10}),(0,O.Ok)(106),(0,O.dp)("100%"),(0,O.AG)({top:0,left:0,zIndex:10}),(0,O.Ok)(4),(0,O.Ok)(8),(0,O.Ok)(37),(0,O.Ok)(24),(0,O.Ok)(3),(0,O.AG)({top:"4px",left:"-2px"}),(0,O.dp)(0),(0,O.AG)({top:"-2px",left:0}),(0,O.Ok)(32),(0,O.Ok)(16),(0,O.aF)(59,12),(0,O.Ok)(4),(0,O.Ok)(8),(0,O.dp)("10px"),(0,O.Ok)(4)),Q=(0,d.iv)(["margin-bottom:",';.swiper-container{width:100%;.swiper-slide{height:100vw;position:relative;&.video-slide{height:100vw;background-color:black;position:relative;:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;z-index:1;display:block;}:hover:after{content:none;}iframe{height:100%;position:sticky;top:0;border:none !important;}}img{margin:0 auto;height:100%;display:block;}.frame{',"}.video{height:100%;","}}.swiper-pagination{padding:"," ",";font-size:",";",";background-color:rgba(0,0,0,0.65);border:1px solid #dcdcdc;border-radius:12px;}.swiper-button{"," &.swiper-button-prev{left:",";right:auto;}&.swiper-button-next{left:auto;right:",";}&.swiper-button-disabled{display:none;}.icon{",";}}}.commodity-info{padding:"," "," ",";.tag-header{display:flex;align-items:center;gap:",";.product-tag{height:",";}}.coupon-area{display:flex;}.icon{vertical-align:middle;}.name{font-size:",";margin:"," 0 ",";}.promote{line-height:1.4;margin:"," 0;.tag-item{float:left;margin-right:",";}.icon-tag_prefix,.icon-tag_prefix_golden{height:100%;}.tag-context{border-radius:0 "," "," 0;padding:"," "," "," 0;margin-left:-1px;background-color:",";}.tag-golden{background-color:#ff9b00;}.prefix{display:inline-block;border-radius:",";padding:"," ",";background:linear-gradient( 93.51deg,#ff4807 1.14%,rgba(255,92,129,0.99) 101.98% );}.primary{flex:1;padding:",";background-color:",";border:1px solid ",";border-radius:",";}.golden-primary{background:#fff0d8;border:1px solid #ff9b00;.display-price{width:100%;color:#ff9b00;}}.secondary{margin-left:",";.secondary-price{padding:",";margin-bottom:",";border-radius:",";border:1px solid ",";}}.gmc-secondary{margin-left:",";width:",";display:grid;grid-template-rows:1fr 1fr;.gmc-content{color:white;display:grid;grid-template-columns:1fr ",";border-radius:",";grid-row-start:2;padding:",";align-items:center;background:linear-gradient(93.51deg,#fc637d 1.14%,#f64d3a 101.98%);img{filter:brightness(0) invert(1);}}}}.buy-button{margin-bottom:",";}.review-info{.icon-review{","}.review{padding-right:",";margin:"," ",";border-right:1px solid #e3e3e3;}.favorite-count{border-right:1px solid #e3e3e3;margin-right:",";padding-right:",";img{margin-right:",";}}}}.platform-info{padding:",";margin-bottom:",";background-color:",";div{margin:0 "," 0 ",";}.business-tag{height:",";}.icon-info{",";}}.business-and-slogan-tag{display:flex;padding:"," ",";background:#f9f9f9;align-items:center;}"],(0,O.Ok)(8),(0,O.AG)({top:0,left:0}),(0,O.AG)({top:0,left:0}),(0,O.Ok)(2),(0,O.Ok)(10),(0,O.Ok)(12),(0,O.AG)({right:(0,O.Ok)(16),bottom:(0,O.Ok)(13),"z-index":10}),(0,O.AG)({top:"45%","z-index":10}),(0,O.Ok)(16),(0,O.Ok)(16),(0,O.aF)(30),(0,O.Ok)(16),(0,O.Ok)(16),(0,O.Ok)(20),(0,O.Ok)(8),(0,O.Ok)(22),(0,O.Ok)(18),(0,O.Ok)(8),(0,O.Ok)(18),(0,O.Ok)(12),(0,O.Ok)(8),(0,O.Ok)(4),(0,O.Ok)(4),(0,O.Ok)(2),(0,O.Ok)(8),(0,O.Ok)(2),(0,O.QT)("siteColor"),(0,O.Ok)(4),(0,O.Ok)(2),(0,O.Ok)(8),(0,O.Ok)(8),(0,O.QT)("site10"),(0,O.QT)("siteColor"),(0,O.Ok)(8),(0,O.Ok)(12),(0,O.Ok)(8),(0,O.Ok)(12),(0,O.Ok)(8),(0,O.QT)("dark-30"),(0,O.Ok)(12),(0,O.Ok)(118),(0,O.Ok)(12),(0,O.Ok)(8),(0,O.Ok)(8),(0,O.Ok)(15),(0,O.aF)(12),(0,O.Ok)(6),(0,O.Ok)(0),(0,O.Ok)(6),(0,O.Ok)(6),(0,O.Ok)(6),(0,O.Ok)(6),(0,O.Ok)(8.5),(0,O.Ok)(8),(0,O.QT)("dark-10"),(0,O.Ok)(14),(0,O.Ok)(12),(0,O.Ok)(16),(0,O.aF)(17),(0,O.Ok)(8),(0,O.Ok)(16)),z=(0,d.iv)(["margin-bottom:",";padding:"," ",";line-height:20px;.list-item{padding:"," 0;}.label{margin-right:",";padding:"," ",";border:1px solid ",";white-space:nowrap;&.bank{color:#53d133;border:1px solid #53d133;}&.event{color:",";border:1px solid ",";}}.shipping-desc{max-width:",";}.shipping-img{width:",";margin-left:",";}.delete-fee{text-decoration:line-through;}.event-fee{margin-left:",";font-weight:500;color:",";}.break{border:0;border-top:1px solid ",";margin:"," 0;padding:0;}.ellipsis{max-width:",";}.icon-chevron_right{","}.icon-fastshipping{margin-right:12px;padding:2px 0;}.show-more{cursor:pointer;}.extra-banner{margin-top:",";}"],(0,O.Ok)(8),(0,O.Ok)(8),(0,O.Ok)(16),(0,O.Ok)(8),(0,O.Ok)(12),(0,O.Ok)(2),(0,O.Ok)(6),(0,O.QT)("siteColor"),(0,O.QT)("red-80"),(0,O.QT)("red-80"),(0,O.Ok)(216),(0,O.Ok)(22),(0,O.Ok)(12),(0,O.Ok)(12),(0,O.QT)("siteColor"),(0,O.QT)("dark-30"),(0,O.Ok)(8),(0,O.Ok)(215),(0,O.aF)(20),(0,O.Ok)(16)),D=(0,d.iv)([".store-logo{"," margin-right:",";border-radius:4px;}.store-link{color:",";padding:"," ",";border:1px solid ",";}.store-review{margin-top:",";}.review-item{flex:1;border-right:1px solid ",";&:last-child{border-right:0;}p{margin:0;}.data{margin-bottom:",";color:",";}}.store-banner{width:100%;margin-top:",";}"],(0,O.aF)(24),(0,O.Ok)(12),(0,O.QT)("red-100"),(0,O.Ok)(2),(0,O.Ok)(6),(0,O.QT)("red-100"),(0,O.Ok)(20),(0,O.QT)("dark-30"),(0,O.Ok)(8),(0,O.QT)("red-100"),(0,O.Ok)(22)),U=(0,d.iv)(["margin-bottom:",";&.block{padding-right:0 !important;}.swiper-slide{width:",";.images{position:relative;img{"," vertical-align:middle;}.frame{","}}.source-label{margin-top:",";padding:0 ",";}.item-name{margin:"," 0 ",';}.display-price{font-family:"Spartan800";}.original-price{color:',";margin-left:",";}}"],(0,O.Ok)(8),(0,O.Ok)(120),(0,O.aF)(120),(0,O.AG)({top:0,left:0}),(0,O.Ok)(8),(0,O.Ok)(6),(0,O.Ok)(2),(0,O.Ok)(8),(0,O.QT)("dark-50"),(0,O.Ok)(2)),A=(0,d.iv)(['@font-face{font-family:"Spartan800";font-style:normal;font-weight:800;font-display:swap;
1src:url(https://fonts.gstatic.com/s/spartan/v7/l7gAbjR61M69yt8Z8w6FZf9WoBxdBrEFvl6JABLPepqTef0.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}.comparison-aips{display:flex;align-items:center;margin:0 auto ',";width:fit-content;color:#9b9b9b;.icon-aips{margin:0 ",";}}.comparison{font-size:",";margin-bottom:",';.comparison-number{font-family:"Spartan800",sans-serif;font-size:',";font-weight:800;margin-left:",";span{font-size:",";margin-left:",";}}}.square{","}.platform{margin:0 ",";}.buy123-bar{margin:"," 0 ",";background-color:#fff0e6;}.bar{margin:"," 0 ",";background-color:",";}.progress{white-space:nowrap;padding:"," ",";}.icon-info{",";vertical-align:bottom;}.cheap-report{margin:"," auto 0;display:inline-block;border-radius:",";padding:"," ",";border:1px solid ",";}.main-site{position:relative;.progress,.square{background-color:#ff6b00;}}.icon-win_stamp{position:absolute;right:",";bottom:",";}.other-site{.progress,.square{background-color:#d0d0d0;}}.no-price{font-size:",";padding:"," ",";color:#c3c3c3;}.site-color{",";}.buy123-site-color{color:#ff6b00;}.package-name{color:#ff974d;}"],(0,O.Ok)(8),(0,O.Ok)(2),(0,O.Ok)(16),(0,O.Ok)(12),(0,O.Ok)(40),(0,O.Ok)(8),(0,O.Ok)(18),(0,O.Ok)(8),(0,O.aF)(10),(0,O.Ok)(5),(0,O.Ok)(2),(0,O.Ok)(12),(0,O.Ok)(2),(0,O.Ok)(12),(0,O.QT)("dark-20"),(0,O.Ok)(6),(0,O.Ok)(16),(0,O.aF)(15),(0,O.Ok)(12),(0,O.Ok)(18),(0,O.Ok)(4),(0,O.Ok)(18),(0,O.QT)("siteColor"),(0,O.Ok)(16),(0,O.Ok)(8),(0,O.Ok)(12),(0,O.Ok)(6),(0,O.Ok)(16),(0,O.QT)("siteColor")),E=(0,d.iv)([".eventsRewardsWrapper{padding:"," ",";border-bottom:0.5px solid ",";display:flex;align-items:center;.line-clamp{max-width:",";word-wrap:break-word;}}.eventsRewardsSecondWrapper{padding:",";}"],(0,O.Ok)(12),(0,O.Ok)(16),(0,O.QT)("dark-30"),(0,O.Ok)(269),(0,O.Ok)(16)),q=(0,d.iv)(["position:fixed;top:0;width:100vw;height:100vh;z-index:1000;padding:"," "," 0 ",";.title{margin:"," 0 ",";}.desc{color:",";margin-bottom:",";}.adult-btn{height:",";color:white;display:flex;align-items:center;justify-content:center;margin-bottom:",";border-radius:4px;}.agree{background-color:#3ecb1a;}.disAgree{background-color:#f85544;}"],(0,O.Ok)(80),(0,O.Ok)(40),(0,O.Ok)(40),(0,O.Ok)(20),(0,O.Ok)(10),(0,O.QT)("dark-60"),(0,O.Ok)(36),(0,O.Ok)(42),(0,O.Ok)(12)),B=(0,d.iv)(["line-height:1.4;.shipping-banner{width:100%;}.notice{color:",";margin:"," 0;padding:"," 0;background-color:",";}.maximum-package{background-color:#fffaf5;border:1px solid #f7432f;box-shadow:0px 1px 8px rgba(0,0,0,0.15);border-radius:",";overflow:hidden;margin:"," 0;.maximum-header{position:relative;padding:"," ",";.icon-fire,.wording{position:relative;}.icon-fire{"," margin-right:",";vertical-align:middle;}.icon-flashlight{width:100%;height:100%;",";}}.maximum-content{position:relative;padding:"," "," ",";.icon-fire,.icon-fire_golden{height:100%;",";}.icon-fire_golden{opacity:0.3;}.package-name{flex:1;margin-right:",";}.price{margin-right:",";.unit-price{font-weight:500;}.display-price-bold{font-weight:500;}}.golden-text{color:#ff9b00;}}}.golden-package{background-color:#fffaf5;border:1px solid #ff9b00;box-shadow:0px 1px 8px rgba(0,0,0,0.15);}.package{padding:"," 0 "," ",";margin-top:",";border-radius:",";border:1px solid ",";.count{",";text-align:center;background-color:",";}}.name-col{flex:1;padding-left:10px;word-break:break-all;}.price-col{width:",";margin-left:",";}.package-list{.golden-text{color:#ff9b00;}.package-list-display-price-bold{font-weight:500;}}"],(0,O.QT)("red-100"),(0,O.Ok)(16),(0,O.Ok)(6),(0,O.QT)("red-10"),(0,O.Ok)(4),(0,O.Ok)(16),(0,O.Ok)(2),(0,O.Ok)(8),(0,O.aF)(20),(0,O.Ok)(8),(0,O.AG)({top:0,left:0}),(0,O.Ok)(8),(0,O.Ok)(16),(0,O.Ok)(16),(0,O.AG)({bottom:0,right:0}),(0,O.Ok)(8),(0,O.Ok)(4),(0,O.Ok)(8),(0,O.Ok)(8),(0,O.Ok)(10),(0,O.Ok)(16),(0,O.Ok)(4),(0,O.QT)("dark-20"),(0,O.aF)(20),(0,O.QT)("dark-10"),(0,O.Ok)(66),(0,O.Ok)(20)),R=(0,d.iv)([".shipping-info{.title{height:",";color:",";margin:0 ",";display:flex;align-items:center;border-bottom:1px solid ",";}.content{padding:"," ",";line-height:20px;.add-margin{margin-bottom:",";}.coupon-label{font-weight:normal;border-radius:4px;color:",";border:solid 1px ",";font-size:",";height:",";padding:3px 6px 2px 6px;display:flex;align-items:center;margin-right:10px;white-space:nowrap;}.shipping-icon{margin-right:10px;padding:2px 0;}.delete-fee{text-decoration:line-through;}.event-fee{margin-left:",";font-weight:500;color:",";}.small-content{display:flex;align-items:center;
1.last_date{color:",";margin:0 4px;}}.note{color:",";}}}"],(0,O.Ok)(42),(0,O.QT)("siteColor"),(0,O.Ok)(16),(0,O.QT)("dark-30"),(0,O.Ok)(12),(0,O.Ok)(16),(0,O.Ok)(12),(0,O.QT)("siteColor"),(0,O.QT)("siteColor"),(0,O.Ok)(12),(0,O.Ok)(22),(0,O.Ok)(12),(0,O.QT)("siteColor"),(0,O.QT)("siteColor"),(0,O.QT)("dark-60")),G=(0,d.iv)([".announce{height:",";border-bottom:1px solid ",";color:",";img{margin-right:5px;}}.payment{height:",";display:flex;align-items:center;justify-content:space-between;padding:0 ",";border-bottom:1px solid ",";.fee_notice{color:",";margin-left:",";}.icons{img{width:",";margin-left:",";}}.chevron{width:",";margin-left:",";}.bank-count{display:flex;align-items:center;}.link{display:flex;align-items:center;color:",";border:1px solid ",";border-radius:14px;padding:1px 8px;}}.interest_rate_limit{padding:0 ",";color:",";height:",";border-bottom:1px solid ",";display:flex;align-items:center;}.no-border{border:0;}.invoice{padding:",";}.bankInfo{.installment{height:",";margin:0 ",";display:flex;align-items:center;color:",";border-bottom:1px solid ",";}.content{margin:"," ",";}}"],(0,O.Ok)(31),(0,O.QT)("dark-30"),(0,O.QT)("dark-60"),(0,O.Ok)(42),(0,O.Ok)(16),(0,O.QT)("dark-30"),(0,O.QT)("dark-60"),(0,O.Ok)(8),(0,O.Ok)(20),(0,O.Ok)(12),(0,O.Ok)(14),(0,O.Ok)(8),(0,O.QT)("siteColor"),(0,O.QT)("dark-30"),(0,O.Ok)(16),(0,O.QT)("dark-60"),(0,O.Ok)(26),(0,O.QT)("dark-30"),(0,O.Ok)(16),(0,O.Ok)(42),(0,O.Ok)(16),(0,O.QT)("siteColor"),(0,O.QT)("dark-30"),(0,O.Ok)(16),(0,O.Ok)(12)),M=(0,d.iv)(["position:fixed;width:100%;top:",";left:0px;background-color:white;display:flex;justify-content:space-between;z-index:100;opacity:0;height:",";max-height:0;overflow:hidden;transition:max-height 0.5s ease-in-out;&.show{opacity:1;max-height:100vw;overflow:visible;.area{padding:"," 0;}}.area{width:100%;display:flex;justify-content:center;align-items:center;color:",";padding:0;border-bottom:2px solid transparent;}.active{color:",";border-bottom:2px solid ",";}"],(function(e){return e.showDownload?(0,O.Ok)(92):(0,O.Ok)(50)}),(0,O.Ok)(40),(0,O.Ok)(10),(0,O.QT)("dark-60"),(0,O.QT)("siteColor"),(0,O.QT)("siteColor")),H=(0,d.ZP)((function(e){var i=e.className,t=(0,l.useContext)(u.kn).setAllowAdult;return(0,Z.jsxs)("div",{className:"".concat(i," bg-white text-center"),children:[(0,Z.jsx)("img",{src:"/vImages/commodity/".concat(P.Ey,"/adult.svg")}),(0,Z.jsxs)("div",{className:"title",children:[(0,Z.jsx)("div",{children:(0,Z.jsx)(S.d9,{children:"\u672c\u985e\u70ba\u9650\u5236\u7d1a\u5546\u54c1"})}),(0,Z.jsx)("div",{children:(0,Z.jsx)(S.d9,{children:"\u9650 18 \u6b72\u4ee5\u4e0a\u6703\u54e1\u624d\u53ef\u700f\u89bd\u53ca\u8cfc\u8cb7"})})]}),(0,Z.jsx)("div",{className:"desc",children:(0,Z.jsx)(S.vF,{children:"\u4f9d\u64da\u672c\u7db2\u7ad9\u5206\u7d1a\u4fdd\u8b77\u63aa\u65bd\u76f8\u95dc\u898f\u7bc4\uff0c\u9808\u5e74\u6eff18\u6b72\u4ee5\u4e0a\u6216\u9054\u7576\u5730\u570b\u5bb6\u6cd5\u5b9a\u5e74\u9f61\u4eba\u58eb\uff1b\u4e14\u9858\u610f\u63a5\u53d7\u672c\u7ad9\u5167\u5bb9\u53ca\u5404\u9805\u689d\u6b3e\u65b9\u53ef\u9032\u5165\uff0c\u672a\u6eff\u6cd5\u5b9a\u5e74\u9f61\u4eba\u58eb\u4e0d\u5f97\u700f\u89bd\u3002"})}),(0,Z.jsx)("div",{className:"adult-btn agree",onClick:function(){(0,T.d8)("allowAdult",1),t(!0)},children:(0,Z.jsx)(S.TB,{children:"\u540c\u610f\uff0c\u5df2\u6eff 18 \u6b72"})}),(0,Z.jsx)("div",{className:"adult-btn disAgree",onClick:function(){window.location.href="/"},children:(0,Z.jsx)("a",{href:"/",children:(0,Z.jsx)(S.TB,{children:"\u96e2\u958b\uff0c\u6211\u672a\u6eff 18 \u6b72"})})})]})})).withConfig({componentId:"sc-1wstanh-0"})(["",""],q),L=t(1312),J=t(84406),V=t(70131),W={backgroundColor:"buy123"===P.Ey?"#FFF0E6":"#FEECEA"},$={background:"".concat((0,O.QT)("siteColor")),color:"#FFFFFF"},Y={background:"#FFFFFF",color:"#9B9B9B"},X=function(e){var i,t,n,o,r,a,s=e.cardIndex,c=e.link,l=e.refHash,d=e.image,p=e.item,m=e.isScrolling,u=e.inViewCardsArray,g=e.skuArrayRef,h=e.productTags,f=e.tagsIcon,x=(0,V.YD)({threshold:0}),v=x.ref,k=x.inView;!m&&k&&null!==p&&void 0!==p&&null!==(i=p.tracking)&&void 0!==i&&i.tracking_id&&u.push(null===p||void 0===p||null===(r=p.tracking)||void 0===r?void 0:r.tracking_id);return!m&&k&&null!==p&&void 0!==p&&p.display_id&&g.push(null===p||void 0===p?void 0:p.display_id),(0,Z.jsxs)("a",{className:"swiper-slide",href:"".concat(c).concat(l),ref:v,style:W,children:[(0,Z.jsxs)("div",{className:"images",children:[(0,Z.jsx)("img",{loading:"lazy",src:d}),(0,Z.jsx)("img",{className:"frame",loading:"lazy",src:(a=s+1,"/vImages/commodity/bestSellers/mobile/".concat(P.Ey,"_top").concat(a,".svg"))},s)]}),(0,Z.jsx)("div",{className:"recommend-product-tags",children:h.map((function(e){var i=f.find((function(i){return i.name===e}))||null;return i?(0,Z.jsx)("img",{className:"recommend-product-tag",src:i.image},"".concat(e)):(0,Z.jsx)(Z.Fragment,{})}))}),(0,Z.jsx)("div",{className:"line-clamp item-name",children:p.name}),p.sold_count&&(0,Z.jsx)("div",{className:"line-clamp item-sell-count",style:s<3?$:Y,children:p.sold_count}),p.wordings&&(0,Z.jsxs)("div",{className:"d-flex justify-content-start",children:[(0,Z.jsx)("div",{className:"display-price site-color medium-font",children:null===(t=p.wordings)||void 0===t||null===(n=t.primary)||void 0===n?void 0:n.display_price}),(0,Z.jsx)("div",{className:"original-price text-line-through minor tiny-font",children:null===(o=p.wordings)||void 0===o?void 0:o.display_original_price})]})]},s)},K=(0,d.iv)([""," .item-name{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;}.item-name,.d-flex{margin:"," ",";}.item-name{padding:0 ",";}.item-sell-count{background:",";border-radius:40px;
1display:inline-flex;color:white;font-weight:500;font-size:",";line-height:",";padding:"," ",";margin-left:",";}.d-flex{padding:0 ",";}.recommend-product-tags{padding:"," "," 0;}.recommend-product-tag{height:",";margin-right:",";width:auto;}"],U,(0,O.Ok)(8),(0,O.Ok)(6),(0,O.Ok)(6),(0,O.QT)("siteColor"),(0,O.Ok)(12),(0,O.Ok)(17),(0,O.Ok)(2),(0,O.Ok)(8),(0,O.Ok)(6),(0,O.Ok)(4),(0,O.Ok)(8),(0,O.Ok)(8),(0,O.Ok)(16),(0,O.Ok)(4)),ee=d.ZP.div.withConfig({componentId:"sc-15c1caw-0"})(["display:flex;overflow-y:hidden;overflow-x:scroll;.swiper-slide{margin-right:",";}@media not all and (min-resolution:0.001dpcm){@supports (-webkit-appearance:none){margin-right:",";}}"],(0,O.Ok)(16),(0,O.Ok)(16)),ie=(0,d.ZP)((function(e){var i=e.className,t=e.header,n=e.data,o=e.type,r=e.tagsIcon,a=(0,l.useContext)(u.kn).allowAdult,s=(0,l.useRef)([]),c=(0,l.useRef)([]),d=(0,J.Z)(),m=(0,l.useRef)(),g=(0,J.Z)(m),h=d||g;return(0,l.useEffect)((function(){0!==s.current.length&&function(){var e=s.current.join(","),i=c.current.join(",");L.Z.send("ViewRecommendedItems",{commodity:e,sku:i,type:o}),s.current=[],c.current=[]}()}),[h]),(0,Z.jsxs)("div",{className:"".concat(i," block bg-white"),children:[(0,Z.jsx)("div",{className:"block-header",children:t}),(0,Z.jsx)(ee,{className:"block-content",ref:m,children:n.map((function(e,i){var t,n=e.images.small,l=(0,T.is)(e.display_id),d=(0,p.rY)("item_".concat(o,"_").concat(i)),m=e.product_tags,u=void 0===m?[]:m;return u=(null===(t=u)||void 0===t?void 0:t.slice(0,2))||[],!a&&e.adult&&(n="/vImages/shared/adult.svg"),(0,Z.jsx)(X,{cardIndex:i,image:n,inViewCardsArray:s.current,isScrolling:h,item:e,link:l,productTags:u,refHash:d,skuArrayRef:c.current,tagsIcon:r},i)}))})]})})).withConfig({componentId:"sc-16c4isu-0"})(["",""],K),te=t(59499),ne=t(50029),oe=t(87794),re=t.n(oe),ae=t(22125),se=t(77166),ce=t(99356),le=(0,d.ZP)((function(e){var i=e.className;return(0,Z.jsxs)("div",{className:"".concat(i," white d-flex bolder justify-content-center align-items-center bigger-font"),children:[(0,Z.jsx)("div",{className:!0,children:"\u7981\u6b62\u9152\u99d5"}),(0,Z.jsx)("img",{src:"/vImages/shared/alcohol-icon.svg"}),(0,Z.jsx)("div",{className:!0,children:"\u672a\u6eff\u5341\u516b\u6b72\u7981\u6b62\u98f2\u9152"})]})})).withConfig({componentId:"pohpta-0"})(["background-color:rgba(0,0,0,0.5);width:100%;padding:"," 0;letter-spacing:",";img{",";margin:0 ",";}"],(0,O.Ok)(5),(0,O.Ok)(4),(0,O.aF)(17.7),(0,O.Ok)(5)),de=t(64685),pe=t(58442),me=t(24091),ue=t(62928),ge=(0,d.ZP)((function(e){var i=e.pos,t=e.className,n=e.modalRef,o=e.openPreselectModal,r=(0,l.useContext)(m.I),a=r.commodity,c=r.saleStatus;return(0,l.useEffect)((function(){}),[]),(0,Z.jsxs)("div",{className:"".concat(t," d-flex justify-content-center buy-button white text-center medium-font ").concat(c.sale?"":"disable"),onClick:function(){var e="";"bottomPanel"===i?e="item_buy":"mainInfo"===i&&(e="item_buyTop"),h.Z.send("ViewItemPackage",{commodity:a,from:e}),o(),n.current.openModal()},children:["appOnly"===c.status&&(0,Z.jsx)("span",{children:"\u9650APP\u5167\u8cfc\u8cb7"}),"soldout"===c.status&&(0,Z.jsx)("span",{children:"\u5df2\u552e\u5b8c"}),"notOnSale"===c.status&&(0,Z.jsx)("span",{children:"\u5c1a\u672a\u958b\u8ce3"}),"onSale"===c.status&&"bottomPanel"===i&&(0,Z.jsxs)("div",{className:"d-flex align-items-center justify-content-center btn-contents",children:[(0,Z.jsx)("span",{children:"click_discount"===a.price_display_type?"\u4e0b\u55ae\u518d\u6298":s().null(null===a||void 0===a?void 0:a.alcohol)||s().empty(null===a||void 0===a?void 0:a.alcohol)?"\u7acb\u5373\u6436\u8cfc":"\u524d\u5f80\u9078\u8cfc"}),(0,Z.jsx)(ue.Z,{icon:"finger",page:"commodity"})]}),"onSale"===c.status&&"mainInfo"===i&&(0,Z.jsx)("span",{className:"small-font btn-contents",children:"click_discount"===a.price_display_type?(0,Z.jsx)(ue.Z,{icon:"after_discount",page:"commodity"}):"".concat(s().null(null===a||void 0===a?void 0:a.alcohol)||s().empty(null===a||void 0===a?void 0:a.alcohol)?"\u7acb\u5373\u6436\u8cfc":"\u524d\u5f80\u9078\u8cfc")})]})})).withConfig({componentId:"sc-1m6313l-0"})(["flex:1;padding:"," 0;border-radius:",";background-color:",";height:",";font-weight:500;gap:",";.btn-contents{line-height:",";}&.buy-button.disable{background-color:",";}.icon-finger{width:4.26vw;}"],(0,O.Ok)(10),(0,O.Ok)(8),(0,O.QT)("siteColor"),(0,O.Ok)(42),(0,O.Ok)(4),(0,O.Ok)(22),(0,O.QT)("dark-50"));
1function he(e,i){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);i&&(n=n.filter((function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable}))),t.push.apply(t,n)}return t}function fe(e){for(var i=1;i<arguments.length;i++){var t=null!=arguments[i]?arguments[i]:{};i%2?he(Object(t),!0).forEach((function(i){(0,te.Z)(e,i,t[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):he(Object(t)).forEach((function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(t,i))}))}return e}var xe="point",ve=(0,d.ZP)((function(e){var i,t,n,o,r=e.className,a=e.display_id,c=e.modalRef,d=e.openPreselectModal,p=(0,l.useState)(!1),g=p[0],h=p[1],f=(0,l.useState)({}),x=f[0],v=f[1],k=(0,l.useContext)(ae.t).initPreSelect,b=(0,l.useContext)(m.I),j=b.commodity,w=b.saleStatus,y=b.setPreSelect,O=(0,l.useContext)(u.kn),N=O.isLogin,_=O.buy123Point,C="buy123"===P.Ey,I=s().object(null===j||void 0===j?void 0:j.alcohol)&&s().not.empty(null===j||void 0===j?void 0:j.alcohol);(0,ce.R)((function(e){var i,t=e.currPos;Math.abs(t.y)>290&&N&&"$0"!==(null===_||void 0===_?void 0:_.points)&&null!==j&&void 0!==j&&null!==(i=j.point)&&void 0!==i&&i.show?h(!0):h(!1)}),0),(0,l.useEffect)((function(){var e=document.getElementsByClassName("float-buttons")[0];e&&(e.style.bottom=g&&!I||!g&&I?"calc(28vw + env(safe-area-inset-bottom))":g&&I?"calc(35vw + env(safe-area-inset-bottom))":"calc(16vw + env(safe-area-inset-bottom))")}),[g]);var T=function(){var e=(0,ne.Z)(re().mark((function e(){var i;return re().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,se.yC)(xe);case 3:i=e.sent,v(fe({type:xe},i)),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),console.error(e.t0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(){return e.apply(this,arguments)}}();return(0,Z.jsxs)("div",{className:"".concat(r," d-flex bg-white text-center"),children:[I&&(0,Z.jsx)(le,{}),g&&C&&(0,Z.jsxs)("div",{className:"coin-control d-flex justify-content-start align-items-center",onClick:T,children:[(0,Z.jsx)("div",{children:null===j||void 0===j||null===(i=j.point)||void 0===i?void 0:i.title_left}),(0,Z.jsx)("img",{src:null===j||void 0===j||null===(t=j.point)||void 0===t?void 0:t.image}),(0,Z.jsx)("div",{className:"bolder",children:null===j||void 0===j||null===(n=j.point)||void 0===n?void 0:n.subtitle}),(0,Z.jsx)("div",{className:"bolder site-color points",children:null===_||void 0===_?void 0:_.points}),(0,Z.jsx)("div",{children:null===j||void 0===j||null===(o=j.point)||void 0===o?void 0:o.title_right})]}),(null===x||void 0===x?void 0:x.show)&&(0,Z.jsx)(me.Z,{children:(0,Z.jsx)(de.Z,{BcoinRef:"m_item_point",incentiveData:x,onClose:function(){v({})}})}),(0,Z.jsxs)("div",{className:"bottom-panel d-flex",children:[(0,Z.jsx)("div",{className:"favourite btn",children:(0,Z.jsx)(pe.Z,{commodity:j,display_id:a})}),w.sale&&(s().not.object(null===j||void 0===j?void 0:j.alcohol)||s().empty(null===j||void 0===j?void 0:j.alcohol))&&(0,Z.jsxs)("div",{className:"add-cart",onClick:function(){k(),y({isOpen:!0,needToCart:!1,from:"item_addToCart"})},children:[(0,Z.jsx)("span",{children:"\u52a0\u5165\u8cfc\u7269\u8eca"}),(0,Z.jsx)("img",{className:"icon-add_cart",src:"/vImages/cartBuy123/add-cart.svg"})]}),(0,Z.jsx)(ge,{modalRef:c,openPreselectModal:d,pos:"bottomPanel"})]})]})})).withConfig({componentId:"sc-25x93k-0"})(["width:100%;"," background-color:transparent;flex-wrap:wrap;.coin-control{width:100%;height:",";line-height:16px;padding:0 ",";background-color:white;.points{margin:0 4px;}img{margin:0 4px;height:100%;}}.bottom-panel{width:100%;padding:"," "," calc(1.8vw + env(safe-area-inset-bottom));background-color:white;gap:",";}.icon-like,.icon-dislike,.icon-add_cart{width:",";height:",";}.buy-button{background-color:",";}.btn{border-radius:",";padding:"," ",";border:1px solid ",";height:",";}.add-cart{display:flex;align-items:center;justify-content:center;flex:1;color:#f7422f;font-size:",";font-weight:500;border:1px solid #f7422f;border-radius:",";padding:"," 0;height:",";}"],(0,O.Bd)({left:0,bottom:0,"z-index":888}),(0,O.Ok)(30),(0,O.Ok)(12),(0,O.Ok)(12),(0,O.Ok)(12),(0,O.Ok)(8),(0,O.Ok)(22),(0,O.Ok)(22),(0,O.QT)("red-100"),(0,O.Ok)(4),(0,O.Ok)(7.5),(0,O.Ok)(12),(0,O.QT)("dark-30"),(0,O.Ok)(42),(0,O.Ok)(16),(0,O.Ok)(8),(0,O.Ok)(10),(0,O.Ok)(42)),ke=t(55388),be=(0,d.iv)(["display:flex;flex-direction:column;justify-content:space-around;.infomation:not(:last-child){margin-bottom:",";}"],(0,O.Ok)(12)),je=(0,d.ZP)(ke.Z).withConfig({componentId:"w0bqb7-0"})(["",""],be),we=t(96924),ye=(0,d.iv)(["display:flex;flex-wrap:wrap;.chevron{width:",";margin:0 ",";}a{",";}"],(0,O.Ok)(5.5),(0,O.Ok)(11),(function(e){var i=e.siteColor;return"color: ".concat(i?(0,O.QT)("siteColor"):(0,O.QT)("dark-60"),";\n        &:last-child {\n          color: ").concat(i?(0,O.QT)("siteColor"):(0,O.QT)("dark-90"),";\n      }\n    ")})),Oe=(0,d.ZP)(we.Z).withConfig({componentId:"sc-1bqnqjx-0"})(["",""],ye),Ne=(0,d.iv)([".breadcrumbs{& > div:not(:last-child){margin-bottom:12px;}}"]),_e=(0,d.ZP)((function(e){var i,t=e.className,n=e.categories;return s().null(n)?(0,Z.jsx)(Z.Fragment,{}):(0,Z.jsxs)("div",{className:"bg-white block ".concat(t),children:[(0,Z.jsx)("div",{className:"block-header text-left",children:"\u5546\u54c1\u76f8\u95dc\u5206\u985e"}),(0,Z.jsx)("div",{className:"breadcrumbs",children:null===n||void 0===n||null===(i=n.breadcrumbs)||void 0===i?void 0:i.map((function(e,i){return(0,Z.jsx)(Oe,{breadcrumb:e,className:"breadcrumb",groupIndex:i,siteColor:!0},i)}))})]})})).withConfig({componentId:"sc-1qkba13-0"})(["",""],Ne),Ce=(0,d.iv)(["display:flex;margin-bottom:",";.title{text-wrap:nowrap;}.breadcrumbs{margin-left:",";& >
1 div:not(:last-child){margin-bottom:12px;}}"],(0,O.Ok)(12),(0,O.Ok)(24.5)),Ze=(0,d.ZP)((function(e){var i,t=e.className,n=e.categories;return s().null(n)?(0,Z.jsx)(Z.Fragment,{}):(0,Z.jsxs)("div",{className:t,children:[(0,Z.jsx)("div",{className:"title",children:"\u5206\u985e"}),(0,Z.jsx)("div",{className:"breadcrumbs",children:null===n||void 0===n||null===(i=n.breadcrumbs)||void 0===i?void 0:i.map((function(e,i){return(0,Z.jsx)(Oe,{breadcrumb:e,className:"breadcrumb",groupIndex:i,siteColor:!0},i)}))})]})})).withConfig({componentId:"sc-1802wjc-0"})(["",""],Ce),Ie=t(32588),Pe=d.ZP.div.withConfig({componentId:"sc-1we5ibc-0"})(["display:flex;.hashtag:first-child{margin-left:0;}.hashtag{margin-right:",";margin-bottom:",";}.body{margin-left:",";display:flex;flex-wrap:wrap;width:80%;}"],(0,O.Ok)(8),(0,O.Ok)(8),(0,O.Ok)(24.5)),Te=function(e){var i=e.hashtags;return i&&0!=i.length?(0,Z.jsxs)(Pe,{children:[(0,Z.jsx)("div",{className:"title",children:"\u6a19\u7c64"}),(0,Z.jsx)("div",{className:"body",children:i.map((function(e,i){return(0,Z.jsx)(Ie.Z,{className:"hashtag",index:i,text:e},i)}))})]}):null};Te.defaultProps={hashtags:[]};var Se=Te,Fe=function(e){var i=e.tags,t=e.categories,n=e.className;return i||t?(0,Z.jsxs)("div",{className:"".concat(n," bg-white text-center"),children:[(0,Z.jsx)("div",{className:"block-header text-left",children:"\u5546\u54c1\u76f8\u95dc\u5206\u985e\u8207\u63a8\u85a6"}),(0,Z.jsxs)("div",{className:"block-container",children:[(0,Z.jsx)(Ze,{categories:t}),(0,Z.jsx)(Se,{hashtags:i})]})]}):null};Fe.defaultProps={categories:[],tags:[]};var Qe=(0,d.ZP)(Fe).withConfig({componentId:"sc-1kf6avh-0"})(["display:flex;flex-direction:column;justify-content:space-around;padding:",";margin-bottom:",";.block-container{display:flex;flex-direction:column;}"],(0,O.Ok)(16),(0,O.Ok)(8)),ze=t(86589),De=(0,d.ZP)((function(e){var i,t=e.className,n=e.comparison_report,o=(0,l.useState)(!1),r=o[0],a=o[1],c=(0,l.useRef)("");if(s().empty(n))return null;var d,p=n.description,m=n.result_text,u=n.result_price,g=n.stores,h=void 0===g?[]:g,f=n.report_link,x=(i=h.filter((function(e){return e.unit_price})))[i.length-1],v=i.length>1;return(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsxs)(ze.Z,{background:"#333333ac",show:r,children:[(0,Z.jsx)(ze.Z.Header,{title:c.current?"AIPS \u67e5\u50f9\u7cfb\u7d71":"\u67e5\u50f9\u6642\u9593"}),(0,Z.jsx)(ze.Z.Content,{content:c.current?"\u751f\u6d3b\u5e02\u96c6\u63a1\u7528 AIPS (AI Price-tracking System \u4eba\u5de5\u667a\u6167\u67e5\u50f9\u7cfb\u7d71)\uff0c\u70ba\u60a8\u722d\u53d6\u6700\u512a\u60e0\u50f9\u683c\u3002":"\u7531\u67e5\u50f9\u7279\u6d3e\u54e1\u4eba\u5de5\u67e5\u50f9\u5f8c\u66f4\u65b0\u3002\u56e0\u6642\u9593\u5dee\uff0c\u6240\u986f\u793a\u50f9\u683c\u53ef\u80fd\u8207\u60a8\u7576\u4e0b\u67e5\u8a62\u7684\u50f9\u683c\u6709\u51fa\u5165\uff0c\u8acb\u4ee5\u5be6\u969b\u7db2\u9801\u8cc7\u6599\u70ba\u4e3b\u3002"}),(0,Z.jsx)(ze.Z.ButtonsContainer,{children:(0,Z.jsx)(ze.Z.ButtonsContainer.CancelButton,{callback:function(){a(!1),c.current=""},width:300,wording:"\u6211\u77e5\u9053\u4e86"})})]}),(0,Z.jsxs)("div",{className:"".concat(t," bg-white block text-center"),children:[(0,Z.jsxs)("div",{className:"comparison-aips",onClick:function(){a(!0),c.current="aips"},children:["\u67e5\u50f9\u7279\u6d3e\u54e1\u4f7f\u7528",(0,Z.jsx)(ue.Z,{icon:"aips",page:"commodity"}),"\u70ba\u60a8\u6642\u6642\u67e5\u50f9 ",(0,Z.jsx)(ue.Z,{icon:"question",page:"commodity"})]}),(0,Z.jsxs)("div",{className:"text-center comparison",children:[m,u&&(0,Z.jsxs)("span",{className:"comparison-number site-color",children:[(d=u,isNaN(d)?d:Math.round(10*d)/10),(0,Z.jsx)("span",{children:"\u5143"})]})]}),s().not.empty(h)&&h.map((function(e,t){var n,o=0===t,r=(n=e.unit_price,1===i.length?30:n/x.unit_price*90);return(0,Z.jsxs)("div",{className:"platform-bar text-left ".concat(o?"main-site":"other-site"),children:[o&&v&&(0,Z.jsx)(ue.Z,{icon:"win_stamp",page:"commodity"}),(0,Z.jsxs)("div",{className:"d-flex justify-content-start align-items-baseline ",children:[(0,Z.jsx)("div",{className:"square",style:{backgroundColor:e.store_color}}),(0,Z.jsx)("div",{className:o?"platform buy123-site-color":"platform",children:e.platform_name}),(0,Z.jsx)("div",{className:o?"package-name tiny-font buy123-site-color":"package-name tiny-font minor",children:e.package_name}),0!=t&&t==i.length-1&&(0,Z.jsx)("div",{className:"flex-end minor tiny-font",children:"\u6bd4\u50f9\u5
17fa\u6e96"})]}),(0,Z.jsx)("div",{className:0!=t?"bar":"buy123-bar",children:null!==e&&void 0!==e&&e.unit_price_text?(0,Z.jsx)("div",{className:"progress white",style:{width:"".concat(r,"%")},children:e.unit_price_text}):(0,Z.jsx)("div",{className:"no-price",children:"\u67e5\u50f9\u7279\u6d3e\u54e1\u67e5\u7121\u6b64\u5546\u54c1"})})]},t)})),(0,Z.jsxs)("div",{className:"minor tiny-font",onClick:function(){a(!0)},children:[p," ",(0,Z.jsx)(ue.Z,{icon:"info",page:"commodity"})]}),(null===f||void 0===f?void 0:f.mweb_link)&&(0,Z.jsx)("a",{className:"cheap-report site-color",href:null===f||void 0===f?void 0:f.mweb_link,rel:"noreferrer",target:"_blank",children:"\u6211\u767c\u73fe\u5176\u4ed6\u5730\u65b9\u66f4\u4fbf\u5b9c"})]})]})})).withConfig({componentId:"w6nl6u-0"})(["",""],A),Ue=t(25935),Ae=t(12988),Ee=t(39939),qe=t.n(Ee),Be=t(9008),Re=t.n(Be),Ge=t(63049),Me=(0,d.ZP)((function(e){var i=e.className,t=e.description,n=e.specification,o=(0,l.useRef)(null),r=(0,l.useState)(""),a=r[0],s=r[1],c=(0,l.useState)(!1),d=c[0],p=c[1],m=(0,l.useState)(!1),u=m[0],g=m[1],h="";(0,l.useEffect)((function(){var e,i=(null===o||void 0===o||null===(e=o.current)||void 0===e?void 0:e.clientHeight)>=312;p(i),s(t)}),[]);var f=function(e){return Ae.push("font"),e=(e=qe()(e)).replace(/<(\/?)([^\s>]+)[^>]*>/g,(function(e,i,t){return/^[a-z][a-z0-9-]*$/.test(t)?e:e.replace(/</g,"&lt;").replace(/>/g,"&gt;")})),(0,Ue.ZP)(e,{replace:function(e){if("tag"===e.type&&"img"===e.name)return e.attribs.loading="lazy",(0,Ue.du)(e);if("tag"===e.type&&"iframe"===e.name){var i,t=null===e||void 0===e||null===(i=e.attribs)||void 0===i?void 0:i.src;if(t){var n=t.match(/(?:https?:\/\/)?(?:www\.)?(?:youtube\.com\/(?:[^/\n\s]+\/\S+\/|(?:v|e(?:mbed)?)\/|\S*?[?&]v=)|youtu\.be\/)([a-zA-Z0-9_-]{11})/i);if(n)return(0,Z.jsx)(Ge.Z,{videoId:n[1]})}return e.attribs.loading="lazy",(0,Ue.du)(e)}return"tag"===e.type&&"style"in e.attribs&&"iframe"!==e.name?(e.attribs.style.match(/color/)||(e.attribs={}),(0,Ue.du)(e)):void 0}})};a&&(h=a);var x=f(h),v=f(n);return(0,Z.jsxs)("div",{className:i,children:[(0,Z.jsx)(Re(),{children:(0,Z.jsx)("link",{href:"/vCss/EditormdPreview.css",media:"print",onLoad:"this.media='all'",rel:"stylesheet"})}),(0,Z.jsxs)("div",{className:" bg-white block text-center",children:[(0,Z.jsx)("div",{className:"block-header text-left",children:"\u5546\u54c1\u8a73\u60c5"}),(0,Z.jsx)("article",{className:"markdown-body markdown-body-img editormd-html-preview",children:x})]}),n&&(0,Z.jsxs)("div",{className:" bg-white block text-center",id:"Specification",children:[(0,Z.jsx)("div",{className:"block-header text-left",children:"\u8a73\u7d30\u898f\u683c"}),(0,Z.jsx)("article",{className:"specification markdown-body markdown-body-img editormd-html-preview ".concat(u?"extend":""),ref:o,children:v}),d&&(0,Z.jsxs)("div",{className:"more text-center site-color ".concat(u?"rotate":""),onClick:function(){return g(!u)},children:["\u67e5\u770b\u66f4\u591a",(0,Z.jsx)(ue.Z,{icon:"chevron_down",page:"commodity",site:!0})]})]})]})})).withConfig({componentId:"sc-5ky5t6-0"})(["line-height:1.4;.specification{max-height:",";overflow:hidden;transition:max-height 0.5s linear;&.extend{max-height:",";}}.more{padding:"," 0;margin-top:",";border-top:1px solid ",";&.rotate > .icon-chevron_down{transform:rotate(180deg);}}.icon-chevron_down{width:",";margin-left:",';vertical-align:middle;transition:transform 0.5s linear;}article{overflow:hidden;}.video-container{position:relative;:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;z-index:1;display:block;}:hover:after{content:none;}}article > p > img:last-child{margin-bottom:initial;}'],(0,O.Ok)(312),(0,O.Ok)(1e5),(0,O.Ok)(10),(0,O.Ok)(12),(0,O.QT)("dark-30"),(0,O.Ok)(12),(0,O.Ok)(2)),He=t(90612),Le=t(60378),Je=t(38644),Ve=t(65166),We=t(36964),$e=t.n(We),Ye=t(547),Xe=function(e){var i=e.className,t=e.banner,n=void 0===t?{}:t,o=e.fetchDiscountPriceList;if(!n||s().empty(n))return null;return(0,Z.jsxs)("div",{className:"".concat(i," d-flex bolder white"),onClick:function(){return function(e){o(e.cta),Ye.Z.send("ClickDiscountBanner")}(n)},children:[(0,Z.jsx)(ue.Z,{icon:"flash",page:"commodity"}),(0,Z.jsx)("p",{className:"medium-font",children:n.title}),(0,Z.jsxs)("div",{className:"site-color flex-end wording tiny-font",children:[n.wording,(0,Z.jsx)(ue.Z,{icon:"chevron_down",page:"commodity",site:!0})]})]})};Xe.defaultProps={banner:{}};var Ke=(0,d.ZP)(Xe).withConfig({componentId:"sc-1u6kksx-0"}
1)(["height:",";padding:",";background:url(",") 0 0 no-repeat transparent;background-size:contain;.icon-flash{",";margin-right:",";}.wording{background-color:white;border-radius:",";padding:"," "," "," ",";}.icon-chevron_down{",";vertical-align:middle;transform:rotate(-90deg);}"],(0,O.Ok)(56),(0,O.Ok)(16),"/vImages/commodity/".concat(P.Ey,"/coupon_banner.svg"),(0,O.aF)(16),(0,O.Ok)(2),(0,O.Ok)(30),(0,O.Ok)(4),(0,O.Ok)(5),(0,O.Ok)(4),(0,O.Ok)(10),(0,O.aF)(15)),ei=d.ZP.div.withConfig({componentId:"sc-1skjook-0"})(["text-align:center;margin:15vw auto;img{width:74.66667vw;}"]),ii=function(){var e="\u76f4\u71df\u9650\u5b9a\u512a\u60e0\uff0c\u514d\u5238\u76f4\u63a5\u6298\u7d66\u4f60\uff01";return"pcone"===P.Ey&&(e="\u751f\u6d3b\u5e02\u96c6\u9650\u5b9a\u512a\u60e0\uff0c\u514d\u5238\u76f4\u63a5\u6298\u7d66\u4f60\uff01"),(0,Z.jsxs)(ei,{children:[(0,Z.jsx)(ue.Z,{icon:"mascot_empty_coupon",page:"commodity",site:!0}),(0,Z.jsx)("div",{className:"medium-font minor-color",children:e})]})},ti=(0,d.iv)([".coupon-group-info{padding:0 ",";}.group-title{padding:"," 0;}.group-notice{padding-bottom:",";}"],(0,O.Ok)(16),(0,O.Ok)(11),(0,O.Ok)(11)),ni=d.ZP.div.withConfig({componentId:"sc-1uruadr-0"})(["line-height:1.4;margin-bottom:",";border-radius:",";background-color:",";.coupon-info{flex:1;padding:",";.coupon-header{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:",";color:",";}.duration{margin-bottom:",";}.package-cta{white-space:nowrap;padding:"," "," "," ",";border:1px solid ",";background-color:",";border-radius:",";font-size:",";.icon{",";vertical-align:unset;}}}.coupon-status{display:flex;align-items:center;justify-content:center;width:",";position:relative;border-left:1px dashed ",";color:",";&:not(.none){color:",";}.coupon-stamp{","}}&.golden,&.golden-applied{border:1px solid #ffce93;background:linear-gradient(180deg,#fce099 76.56%,#fdd192 100%);.coupon-info{.coupon-header,.duration,.desc{color:#c36e05;}.package-cta{border:1px solid white;background-color:white;}}.coupon-status{border-left:1px dashed #c36e05;&:not(.none){color:#c36e05;}}}&.disabled{color:",";border:1px solid ",";background-color:",";.coupon-info{.coupon-header,.duration,.desc{color:",";}.package-cta{border:1px solid white;background-color:white;}}.coupon-status{border-left:1px dashed ",";color:",";&:not(.none){color:",";}}}"],(0,O.Ok)(8),(0,O.Ok)(8),(0,O.QT)("site10"),(0,O.Ok)(8),(0,O.Ok)(8),(0,O.QT)("siteColor"),(0,O.Ok)(4),(0,O.Ok)(4),(0,O.Ok)(5),(0,O.Ok)(4),(0,O.Ok)(10),(0,O.QT)("siteColor"),(0,O.QT)("site10"),(0,O.Ok)(30),(0,O.Ok)(12),(0,O.aF)(12),(0,O.Ok)(80),(0,O.QT)("site40"),(0,O.QT)("dark-60"),(0,O.QT)("siteColor"),(0,O.AG)({bottom:0,right:0}),(0,O.QT)("dark-50"),(0,O.QT)("dark-20"),(0,O.QT)("dark-20"),(0,O.QT)("dark-50"),(0,O.QT)("dark-50"),(0,O.QT)("dark-50"),(0,O.QT)("dark-50")),oi=(0,d.iv)(["line-height:1.4;padding:0 "," ",";overflow-y:auto;&.package-highlight-info.golden{.notice{color:#e49928;}.maximum-package{border:1px solid #e49928;}.price,.maximum-package .maximum-content .price{color:#e49928;}}&.package-highlight-info{.shipping-banner{width:100%;}.notice{margin:0;padding:"," 0;color:",";background-color:transparent;}.maximum-package{background-color:#fffaf5;border:1px solid #f7432f;box-shadow:0px 1px 8px rgba(0,0,0,0.15);border-radius:",";overflow:hidden;margin:0 0 "," 0;.maximum-header{position:relative;padding:"," ",";.icon-fire,.wording{position:relative;}.icon-fire{"," margin-right:",";vertical-align:middle;}.icon-flashlight,.icon-flashlight_golden{width:100%;height:100%;",";}}.maximum-content{position:relative;padding:"," "," ",";.icon-fire{height:100%;",";}.package-name{flex:1;margin-right:",";}.price{margin-right:",";color:",";}}}.package{padding:"," 0 "," ",";margin-top:",";border-radius:",";border:1px solid ",";.count{",";text-align:center;background-color:",";}}.name-col{flex:1;padding-left:10px;word-break:break-all;}.price-col{width:",";margin-left:",";}.price{color:",";}}"],(0,O.Ok)(16),(0,O.Ok)(16),(0,O.Ok)(11),(0,O.QT)("siteColor"),(0,O.Ok)(4),(0,O.Ok)(16),(0,O.Ok)(2),(0,O.Ok)(8),(0,O.aF)(20),(0,O.Ok)(8),(0,O.AG)({top:0,left:0}),(0,O.Ok)(8),(0,O.Ok)(16),(0,O.Ok)(16),(0,O.AG)({bottom:0,right:0}),(0,O.Ok)(8),(0,O.Ok)(4),(0,O.QT)("siteColor"),(0,O.Ok)(8),(0,O.Ok)(8),(0,O.Ok)(10),(0,O.Ok)(16),(0,O.Ok)(4),(0,O.QT)("dark-20"),(0,O.aF)(20),(0,O.QT)("dark-10"),(0,O.Ok)(66),(0,O.Ok)(20),(0,O.QT)("siteColor")),ri=function(e){var i=e.className,t=e.groups,n=e.banner,o=e.handleCouponCtaAction,r=e.fetchDiscountPriceList;return!s().not.empty(n)||t&&!s().empty(t)?(0,Z.jsxs)("div",{className:i,children:[(0,Z.jsx)(Ke,{banner:n,fetchDiscountPriceList:r}),t.map((function(e,i){return(0,Z.jsxs)("div",{className:"coupon-group-info",children:[(0,Z.jsx)("div",{className:"group-title",children:e.title}),s().array(e.coupons)&&e.coupons.map((function(i,t){var n,r,a=(null===i||void 0===i?void 0:i.style)||"normal",c=a.includes("applied")||a.includes("disabled"),l=a.replace("-applied","");return(0,Z.jsxs)(ni,{className:"d-flex coupon align-items-stretch ".concat(a),coupon:i,children:[(0,Z.jsxs)("div",{className:"coupon-info",children:[(0,Z.jsxs)("div",{className:"coupon-header",children:[(0,Z.jsx)("div",{className:"coupon-title medium-font bolder",children:i.title}),(null===i||void 0===i?void 0:i.package_cta_text)&&s().not.empty(null===i||void 0===i?void 0:i.package_cta_text)&&(0,Z.jsx)("div",{className:"package-cta",children:i.package_cta_text})]}),(0,Z.jsx)("div",{className:"duration tiny-font",children:i.duration}),(0,Z.jsx)("div",{className:"desc minor tiny-font",children:i.desc})]}),"copy"===(null===i||void 0===i||null===(n=i.coupon_cta)||void 0===n?void 0:n.action)?(0,Z.jsx)($e(),{className:"coupon-status medium-font text-center",component:"div","data-clipboard-text":null===i||void 0===i?void 0:i.code,onClick:function(){Ye.Z.send("CopyDiscountCoupon",{event:"copy",seq:t,type:e.type})},onSuccess:function(){alert("\u8907\u88fd\u6210\u529f")},children:i.coupon_cta_text}):(null===i||void 0===i?void 0:i.coupon_cta)&&(0,Z.jsxs)("div",{className:"coupon-status medium-font text-center ".concat(null===i||void 0===i||null===(r=i.coupon_cta)||void 0===r?void 0:r.action),onClick:function(){o(null===i||void 0===i?void 0:i.coupon_cta),Ye.Z.send("ReceiveDiscountCoupon",{event:"receive",seq:t,type:e.type,from:"coupon_list"})},children:[i.coupon_cta_text,c&&(0,Z.jsx)(ue.Z,{className:"coupon-stamp",icon:"coupon_stamp_".concat(l),page:"commodity",site:"normal"===l})]})]},t)})),(0,Z.jsx)("div",{className:"group-notice minor tiny-font",children:e.group_notice})]},i)}))]}):[(0,Z.jsx)(Ke,{banner:n,fetchDiscountPriceList:r},"CouponBanner"),(0,Z.jsx)(ii,{},"EmptyCoupon")]};ri.defaultProps={banner:{}};var ai=(0,d.ZP)(ri).withConfig({componentId:"kinx4w-0"})(["",""],ti),si=(0,d.ZP)((function(e){var i=e.className,t=e.packagesDiscountPrice,n=t.wordings,o=t.packages,r=t.highlight_style,a=t.highlight_package_id,c=n.unit,d=n.packages_notice,p=n.packages_price_prefix,m=n.highlight_package_prefix,u=(0,l.useMemo)((function(){if(s().empty(t)||s().not.array(o))return{};if(1===o.length)return o[0];var e=o.filter((function(e){return e.id==a}));return e.length&&(e=e[0]),e}),[o,t,a]);return(0,Z.jsxs)("div",{className:"package-highlight-info ".concat(i," ").concat(r),children:[(0,Z.jsx)("div",{className:"notice bolder medium-font",children:d}),s().not.empty(u)&&(0,Z.jsxs)("div",{className:"maximum-package",children:[(0,Z.jsxs)("div",{className:"maximum-header d-flex justify-content-start",children:[(0,Z.jsx)(ue.Z,{ext:"gif",icon:"flashlight".concat("golden"===r?"_"+r:""),page:"commodity",svg:!1}),(0,Z.jsx)(ue.Z,{icon:"fire",page:"commodity"}),(0,Z.jsx)("div",{className:"wording white",children:"\u55ae\u50f9\u6700\u8d85\u503c"})]}),(0,Z.jsxs)("div",{className:"maximum-content d-flex align-items-start",children:[(0,Z.jsx)(ue.Z,{icon:"fire",page:"commodity",site:!0}),(0,Z.jsx)("div",{className:"package-name",children:u.name}),(0,Z.jsxs)("div",{className:"maximum-price",children:[(0,Z.jsxs)("div",{className:"unit-price d-flex justify-content-start",children:[(0,Z.jsxs)("div",{className:"medium-font price bolder",children:["\u6bcf",c," ",(0,Z.jsx)("span",{className:"large-font",children:u.display_unit_price})]}),(0,Z.jsxs)("div",{className:"minor text-line-through",children:[" ",u.display_unit_original_price]})]}),u.display_unit_price!==u.display_price&&(0,Z.jsxs)("div",{className:"display-price d-flex justify-content-start",children:[(0,Z.jsxs)("div",{className:"price",children:[m," ",(0,Z.jsx)("span",{className:"medium-font",children:u.display_price})]}),(0,Z.jsx)("div",{className:"minor text-line-through",children:u.display_original_price})]})]})]})]}),(0,Z.jsxs)("div",{className:"package-list-wrap",children:[(0,Z.jsxs)("div",{className:"d-flex package-header",children:[(0,Z.jsx)("div",{className:"name-col",children:"\u65b9\u6848"}),(0,Z.jsxs)("div",{className:"price-col",children:["\u6bcf",c]}),(0,Z.jsx)("div",{className:"price-col",children:p})]}),(0,Z.jsx)("div",{className:"package-list",children:o.map((function(e,i){return(0,Z.jsxs)("div",{className:"package align-items-start d-flex",children:[(0,Z.jsx)("div",{className:"count",children:i+1}),(0,Z.jsx)("div",{className:"name-col package-name ",children:e.name}),(0,Z.jsxs)("div",{className:"price-col",children:[(0,Z.jsx)("div",{className:"medium-font price",children:e.display_unit_price}),(0,Z.jsx)("div",{className:"minor tiny-font text-line-through",children:e.display_unit_original_price})]}),(0,Z.jsxs)("div",{className:"price-col",children:[(0,Z.jsx)("div",{className:"medium-font price",children:e.display_price}),(0,Z.jsx)("div",{className:"minor tiny-font text-line-through",children:e.display_original_price})]})]},i)}))})]})]})})).withConfig({componentId:"sc-1ducbqs-0"})(["",""],oi),ci=function(e){var i=e.isOpen,t=e.setIsOpen,n=(0,He.uH)(),o=n.couponList,r=n.loadCommodityCouponList,a=n.handleCouponCtaAction,c=n.packagesDiscountPrice,d=n.fetchDiscountPriceList,p=(0,Le.Z)().isLogin;if((0,l.useEffect)((function(){i&&(s().array(o)&&s().not.empty(o)||r(p))}
1),[i]),!o||s().empty(o))return null;var m=o.title,u=o.groups,g=o.banner,h=s().not.empty(c)?function(){return d({})}:null;return(0,Z.jsxs)("div",{children:[i&&s().empty(o)&&(0,Z.jsx)(Ve.Z,{visible:!0}),(0,Z.jsx)(Je.Z,{backIcon:!0,height:530,isOpen:i,lastAction:h,setIsOpen:t,title:m||"\u4fc3\u92b7\u512a\u60e0",children:s().not.empty(c)?(0,Z.jsx)(si,{packagesDiscountPrice:c}):(0,Z.jsx)(ai,{banner:g,fetchDiscountPriceList:d,groups:u,handleCouponCtaAction:a})})]})},li=function(e){var i=e.isOpen,t=e.setIsOpen,n=e.packagesHighlightData,o=(0,He.uH)(),r=o.packagesDiscountPrice,a=o.fetchDiscountPriceList;return(0,l.useEffect)((function(){i&&(s().not.empty(r)||a(null===n||void 0===n?void 0:n.cta))}),[i,n]),s().empty(r)?null:(0,Z.jsxs)("div",{children:[i&&s().empty(r)&&(0,Z.jsx)(Ve.Z,{visible:!0}),(0,Z.jsx)(Je.Z,{height:530,isOpen:i,setIsOpen:t,title:"\u65b9\u6848\u8a73\u7d30\u50f9\u683c",children:(0,Z.jsx)(si,{packagesDiscountPrice:r})})]})},di=(0,d.ZP)((function(e){var i=e.className,t=(0,c.useRouter)(),n=(0,l.useState)(!1),o=n[0],r=n[1],a=(0,He.uH)(),d=a.display_id,p=a.loginCouponData,m=(void 0===p?{}:p).highlightData,u=null===m||void 0===m?void 0:m.mobile;(0,l.useEffect)((function(){var e="open_coupon",i=t.query[e];(0,T.$f)([e]),m&&!s().empty(m)&&i&&g()}),[m]);var g=function(){o||(r(!0),Ye.Z.send("ClickCouponActivity"))};return!m||s().empty(m)||!u||s().empty(u)?null:(0,Z.jsxs)("div",{className:"".concat(i," bg-white d-flex pointer justify-content-start align-items-stretch"),onClick:function(){return g()},style:{backgroundImage:'url("'.concat(null===u||void 0===u?void 0:u.background,'")')},children:[(0,Z.jsx)("img",{alt:"highlight coupon",className:"heading",src:null===u||void 0===u?void 0:u.heading_icon}),(0,Z.jsx)(ci,{display_id:d,isOpen:o,setIsOpen:r})]})})).withConfig({componentId:"skfd9i-0"})(["height:",";padding:"," "," 0;background-size:100% auto;background-repeat:no-repeat;.heading{height:",";margin-right:",";}.title{margin-bottom:",";}"],(0,O.Ok)(66),(0,O.Ok)(12),(0,O.Ok)(12),(0,O.Ok)(48),(0,O.Ok)(12),(0,O.Ok)(4)),pi=d.ZP.div.withConfig({componentId:"sc-147si7a-0"})(["color:white;height:",";padding:0 ",";background:url(",") transparent 0 0 no-repeat;background-size:100% auto;"],(0,O.Ok)(44),(0,O.Ok)(16),(function(e){return encodeURI(e.bgImage)})),mi=(0,d.ZP)((function(e){var i=e.className,t=(0,l.useState)(!1),n=t[0],o=t[1],r=(0,He.uH)(),a=r.display_id,c=r.loginCouponData,d=(void 0===c?{}:c).packagesHighlightData,p=void 0===d?{}:d;return!p||s().empty(p)?null:(0,Z.jsxs)("div",{className:"".concat(i," bg-white"),children:[(0,Z.jsx)(pi,{bgImage:p.background_mobile,className:"d-flex align-items-center",onClick:function(){n||(o(!0),Ye.Z.send("ClickPackagePriceHighlight"))},children:p.heading_text}),(0,Z.jsx)(ci,{display_id:a,isOpen:n,setIsOpen:o})]})})).withConfig({componentId:"sc-147si7a-1"})(["margin-bottom:",";"],(0,O.Ok)(16)),ui=function(e){var i=e.children;return(0,Z.jsx)(He.ik,{children:i})};ui.HighLight=di,ui.PackageHighLight=mi,ui.LoginCouponDrawer=ci,ui.PackagesDiscountPriceDrawer=li;var gi=ui,hi=function(e){var i=e.className,t=e.discounts,n=e.onClick,o=e.limited_wording;return(0,Z.jsx)("div",{className:"".concat(i," align-items-center"),onClick:n,children:(0,Z.jsxs)("div",{className:"d-flex bg-white justify-content-start align-items-center content",children:[(0,Z.jsx)("div",{className:"sub-title",children:"\u512a\u60e0"}),s().not.empty(t)&&t.map((function(e,i){return(0,Z.jsx)("div",{className:"site-color label label-item border-radius ".concat(i==t.length-1?"ellipsis":""),children:(0,Z.jsx)("span",{className:"label-context",children:e})},i)})),s().empty(t)&&(0,Z.jsx)("div",{className:"limited-wording",children:o}),s().not.empty(t)&&(0,Z.jsx)(ue.Z,{className:"flex-end",icon:"chevron_right",page:"commodity"})]})})},fi=(0,d.ZP)(hi).withConfig({componentId:"sfzbad-0"})(["padding:",";margin-bottom:",";background-color:white;.label{white-space:nowrap;margin-right:",";padding:"," ",";border:1px solid ",";}.limited-wording{color:",";}.icon-chevron_right{","}"],(0,O.Ok)(16),(0,O.Ok)(8),(0,O.Ok)(12),(0,O.Ok)(2),(0,O.Ok)(6),(0,O.QT)("siteColor"),(0,O.QT)("dark-70"),(0,O.aF)(20));hi.defaultProps={fromMainInfo:!1,limited_wording:""};var xi=(0,d.ZP)((function(e){var i=e.className,t=e.discounts,n=e.onClick;return(0,Z.jsx)("div",{className:"".concat(i," align-items-center"),onClick:n,children:(0,Z.jsxs)("div",{className:"d-flex bg-white justify-content-start content",children:[t.map((function(e,i){return(0,Z.jsxs)("div",{className:"site-color label label-item d-flex align-items-stretch ",children:[(0,Z.jsx)("div",{children:(0,Z.jsx)(ue.Z,{className:"label-icon",icon:"tag_prefix",page:"commodity",site:!0})}),(0,Z.jsx)("span",{className:"label-context",children:e})]},i)})),(0,Z.jsxs)("div",{className:"flex-end d-flex buttons site-color",children:[(0,Z.jsx)("div",{className:"small-font wording",children:"\u9818\u5238"}),(0,Z.jsx)(ue.Z,{className:"flex-end",icon:"chevron_down",page:"commodity",site:!0})]})]})})})).withConfig({componentId:"hp27m1-0"})(["margin-bottom:0;padding:"," "," 0;background-color:white;.content{padding:",";background-color:",";border-radius:",";position:relative;}.label-item{margin-right:",";}.label-icon{height:100%;}.label-context{display:block;border-radius:0 "," "," 0;padding:"," "," "," 0;color:white;white-space:nowrap;background-color:",";}.buttons{height:100%;padding:0 ",";background-color:",";",";.icon-chevron_down{",";transform:rotate(-90deg);}}"],(0,O.Ok)(16),(0,O.Ok)(16),(0,O.Ok)(8),(0,O.QT)("site10"),(0,O.Ok)(4),(0,O.Ok)(8),(0,O.Ok)(4),(0,O.Ok)(4),(0,O.Ok)(4),(0,O.Ok)(8),(0,O.Ok)(4),(0,O.QT)("siteColor"),(0,O.Ok)(8),(0,O.QT)("site10"),(0,O.AG)({top:0,right:0}),(0,O.aF)(15)),vi=function(e){var i=e.mainDiscounts,t=e.discount_info,n=e.display_id,o=e.fromMainInfo,r=(0,l.useState)(!1),a=r[0],c=r[1],d=t.discounts,p=void 0===d?[]:d,m=t.limited_wording,u=void 0===m?"":m,g=o?i:p,f=function(){s().empty(g)?c(!1):(c(!0),h.Z.send("ClickMainDiscount"))};return o?s().not.array(i)||0==i.length?(0,Z.jsx)(Z.Fragment,{}):(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(xi,{discounts:i,onClick:f}),(0,Z.jsx)(gi,{children:(0,Z.jsx)(gi.LoginCouponDrawer,{display_id:n,isOpen:a,setIsOpen:c})})]}):u||!s().not.array(g)&&0!=g.length?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(fi,{discounts:p,limited_wording:u,onClick:f}),(0,Z.jsx)(gi,{children:(0,Z.jsx)(gi.LoginCouponDrawer,{display_id:n,isOpen:a,setIsOpen:c})})]}):(0,Z.jsx)(Z.Fragment,{})},ki=vi;vi.defaultProps={fromMainInfo:!1,mainDiscounts:[]};var bi=(0,d.ZP)((function(e){var i=e.className,t=(0,l.useContext)(m.I),n=t.isOpenPromoteDrawer,o=t.setIsOpenPromoteDrawer;return(0,Z.jsx)("div",{className:i,children:(0,Z.jsx)(Je.Z,{height:500,isOpen:n,setIsOpen:o,title:"\u6d3b\u52d5\u898f\u5247",children:(0,Z.jsxs)("div",{className:"announecement",children:[(0,Z.jsx)("div",{children:"\u958b\u904b\u522e\u522e\u6a02\uff01\u767b\u5165\u62bd\u51fa\u5c08\u5c6c\u4f60\u7684\u6bcf\u65e5\u5546\u54c1"}),(0,Z.jsxs)("ol",{children:[(0,Z.jsx)("li",{children:"\u6bcf\u5929\u767b\u5165\u5373\u53ef\u73a9\u522e\u522e\u6a02\uff01\u4f9d\u64da\u6bcf\u5929\u522e\u958b\u7684\u6298\u6263\u5546\u54c1\uff0c\u7d66\u4f60\u5c08\u5c6c\u8d85\u4f4e\u50f9\u3002"}),(0,Z.jsx)("li",{children:"\u522e\u4e2d\u5546\u54c1\u9700\u65bc 30\u5206\u9418\u5167\u4e0b\u55ae\u5b8c\u7562\uff0c\u903e\u671f\u5c07\u7121\u6cd5\u4f7f\u7528\u8d85\u512a\u60e0\u6298\u6263\u4e0b\u55ae\uff0c\u4e14\u5546\u54c1\u5c08\u5c6c\u6298\u50f9\u5238\u4e0d\u984d\u5916\u88dc\u767c\u3002"}),(0,Z.jsx)("li",{children:"\u522e\u4e2d\u5546\u54c1\uff0c\u53ef\u65bc\u904a\u6232\u9032\u884c\u4e2d\u8fd4\u56de\u300c\u958b\u904b\u522e\u522e\u6a02\u300d\u9801\u9762\u67e5\u7
170b\uff0c\u5546\u54c1\u6298\u50f9\u5238\u4e0d\u6703\u984d\u5916\u986f\u793a\u65bc\u300c\u6211\u7684\u512a\u60e0\u5238\u300d\u5167\u3002"}),(0,Z.jsx)("li",{children:"\u522e\u4e2d\u672c\u5340\u9650\u6642\u6298\u6263\u5546\u54c1\uff0c\u6298\u50f9\u5238\u50c5\u53ef\u8cfc\u8cb7\u4e00\u6b21\u3002 "}),(0,Z.jsx)("li",{children:" \u6bcf\u500b\u7528\u6236\u6bcf\u5929\u9650\u522e\u4e59\u6b21\uff0c\u6055\u7121\u6cd5\u88dc\u522e\u3002"}),(0,Z.jsx)("li",{children:" \u751f\u6d3b\u5e02\u96c6\u6709\u89e3\u91cb\u3001\u8b8a\u66f4\u6216\u66ab\u505c\u6d3b\u52d5\u4e4b\u6b0a\u5229\u3002"})]})]})})})})).withConfig({componentId:"sc-6qa5id-0"})([".announecement{padding:",";ol{margin:0 auto 0 ",";padding:0;}li{margin-top:",";}}"],(0,O.Ok)(16),(0,O.Ok)(20),(0,O.Ok)(20)),ji=t(22151),wi=t(22999),yi=(0,d.iv)(["padding:",";font-weight:500;.gridrecommends-header{font-size:",";margin-bottom:",";}.gridrecommends-block{display:flex;flex-wrap:wrap;justify-content:space-between;.production{width:",";margin-bottom:",";border-radius:8px;.production-images{",';position:relative;background:url("/vImages/search/img_loading.svg") center center no-repeat white;border-radius:8px 8px 0 0;overflow:hidden;img{width:100%;}.frame{',"}}.production-details{width:100%;padding:",";height:",";border-radius:0 0 8px 8px;.production-details-tags{height:",";margin-bottom:",";.tag-icon{height:100%;margin-right:",";display:inline-block;&:last-child{margin-right:0;}}}.highlight-tag-wrapper{min-height:",";margin-bottom:",";}.price-and-like{display:flex;justify-content:space-between;align-items:flex-end;}}}}"],(0,O.Ok)(12),(0,O.Ok)(18),(0,O.Ok)(12),(0,O.Ok)(172),(0,O.Ok)(7),(0,O.aF)(172),(0,O.AG)({top:0,left:0}),(0,O.Ok)(8),(0,O.Ok)(150),(0,O.Ok)(16),(0,O.Ok)(6),(0,O.Ok)(8),(0,O.Ok)(20),(0,O.Ok)(6)),Oi=(0,d.ZP)((function(e){var i=e.className,t=e.recommends,n=e.type,o=(0,x.z)().data,r=(0,l.useRef)([]),a=(0,l.useRef)([]),s=(0,J.Z)(),c=(0,p.rY)("item_".concat(n));return(0,l.useEffect)((function(){0!==r.current.length&&0!==a.current.length&&function(){var e=r.current.join(","),i=a.current.join(",");L.Z.send("ViewRecommendedItems",{commodity:e,type:n,sku:i}),r.current=[],a.current=[]}()}),[s]),(0,Z.jsxs)("div",{className:"".concat(i),children:[(0,Z.jsx)("div",{className:"gridrecommends-header",children:"\u52a0\u8cfc\u63a8\u85a6"}),(0,Z.jsx)("div",{className:"gridrecommends-block commodities-container",children:t.map((function(e,i){return(0,Z.jsx)(wi.Z,{buy123_business:o.businesses_for_list.buy123_business,inViewCardsArray:r.current,isScrolling:s,pageType:c,pcone_business:o.businesses_for_list.pcone_business,productIndex:i,productInfo:e,skuArrayRef:a.current,tagsIconOutlineMapping:(0,T.vv)((null===o||void 0===o?void 0:o.tags_icon_outline)||[])},i)}))})]})})).withConfig({componentId:"ap8at9-0"})(["",""],yi),Ni=t(55153),_i=t(78770),Ci=t(61581),Zi=t(91127),Ii=d.ZP.div.withConfig({componentId:"gwbmyg-0"})(["width:100%;height:",";background:pink;background:",';background-size:cover;background-repeat:no-repeat;display:flex;align-items:center;justify-content:center;@font-face{font-family:"Spartan800";font-style:normal;font-weight:800;font-display:swap;src:url(https://fonts.gstatic.com/s/spartan/v7/l7gAbjR61M69yt8Z8w6FZf9WoBxdBrEFvl6JABLPepqTef0.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}.text{margin-right:',";font-size:",";padding-top:",";font-weight:bold;}.duration{width:",";height:",";background:",";border-radius:4px;color:white;display:flex;justify-content:center;align-items:center;padding-top:",';font-family:"Spartan800",sans-serif;font-size:',';}.count-down{display:flex;font-family:"Spartan800",sans-serif;.colon{margin:0 ',";padding-top:",";}.time-block{width:",";height:",";background:",";border-radius:4px;color:white;display:flex;justify-content:center;align-items:center;font-weight:800;font-size:",";padding-top:",";}}"],(0,O.Ok)(28),(function(e){return e.background_image?"url(".concat(e.background_image,")"):"yellow"}),(0,O.Ok)(8),(0,O.Ok)(14),(0,O.Ok)(3),(0,O.Ok)(115),(0,O.Ok)(18),(0,Zi.QT)("dark-90"),(0,O.Ok)(2),(0,O.Ok)(12),(0,O.Ok)(3),(0,O.Ok)(2),(0,O.Ok)(24.4),(0,O.Ok)(18),(0,Zi.QT)("dark-90"),(0,O.Ok)(12),(0,O.Ok)(3)),Pi=function(e){var i=e.endtime,t=(0,Ci.Z)(1e3*i),n=t.hour,o=void 0===n?"00":n,r=t.min,a=void 0===r?"00":r,s=t.sec,c=void 0===s?"00":s;return(0,Z.jsxs)("div",{className:"count-down",children:[(0,Z.jsx)("div",{className:"day time-block",children:o}),(0,Z.jsx)("div",{className:"colon",children:":"}),(0,Z.jsx)("div",{className:"hour time-block",children:a}),(0,Z.jsx)("div",{className:"colon",children:":"}),(0,Z.jsx)("div",{className:"sec time-block",children:c})]})},Ti=function(e){var i=e.starttime,t=e.endtime,n=new Date(1e3*i).getMonth()+1,o=new Date(1e3*i).getDate(),r=new Date(1e3*t).getMonth()+1,a=new Date(1e3*t).getDate();return(0,Z.jsxs)("div",{className:"duration",children:[n," / ",o," - ",r," / ",a]})},Si=function(e){var i=e.countdown,t=i.starttime,n=void 0===t?"":t,o=i.endtime,r=void 0===o?"":o,a=i.background_image,s=void 0===a?"":a,c=i.text,l=void 0===c?"":c,d=Date.now(),p=null;return d>=1e3*n&&(p=1e3*r-d<=864e5?(0,Z.jsx)(Pi,{endtime:r}):(0,Z.jsx)(Ti,{endtime:r,starttime:n})),(0,Z.jsxs)(Ii,{background_image:s,children:[(0,Z.jsx)("div",{className:"text",children:l}),p]})},Fi=d.ZP.div.withConfig({componentId:"sc-1qa96t-0"})(["margin-top:",";"],(0,O.Ok)(5)),Qi=function(e){var i=e.image;return(0,Z.jsx)(Fi,{children:(0,Z.jsx)("img",{alt:"",src:i,width:"100%"})})},zi=d.ZP.div.withConfig({componentId:"sc-1qa96t-1"})(["font-size:",";font-weight:800;"],(0,O.Ok)(16)),Di=function(e){var i=e.text;return(0,Z.jsx)(zi,{children:i})},Ui=d.ZP.div.withConfig({componentId:"sc-1i7nh7k-0"})(["display:flex;flex-direction:column;justify-content:center;height:100%;padding:"," "," "," ",";"],(0,O.Ok)(17),(0,O.Ok)(21),(0,O.Ok)(17),(0,O.Ok)(13)),Ai=d.ZP.div.withConfig({componentId:"sc-1i7nh7k-1"})(["display:flex;flex-direction:column;justify-content:space-between;
1height:100%;padding:"," "," "," ",";"],(0,O.Ok)(27.6),(0,O.Ok)(21),(0,O.Ok)(27.6),(0,O.Ok)(12.6)),Ei=d.ZP.div.withConfig({componentId:"sc-1i7nh7k-2"})(["display:flex;flex-direction:column;justify-content:center;height:100%;padding:"," "," "," ",";"],(0,O.Ok)(20),(0,O.Ok)(25),(0,O.Ok)(17),(0,O.Ok)(13)),qi=d.ZP.div.withConfig({componentId:"sc-1i7nh7k-3"})(["position:relative;width:",";height:",";background:",";background-size:cover;background-repeat:no-repeat;"],(0,O.Ok)(154),(0,O.Ok)(115),(function(e){return"url(".concat(e.highlight_bg,")")})),Bi=function(e){var i=e.data,t=i.background_image.mweb,n=i.values.slice(0,2),o=i.style,r=(0,l.useState)(!1),a=r[0],s=r[1],c=(0,x.P)().isReady,d=(0,Le.Z)().isLogin;(0,l.useEffect)((function(){c&&d&&!a&&(localStorage.getItem("isCouponOpen")&&(s(!0),localStorage.removeItem("isCouponOpen")))}),[c,d]);var p=Ui;switch(o){case"single":n=i.values.slice(0,1),p=Ui;break;case"multiple":p=Ai;break;case"cta":p=Ei}return(0,Z.jsxs)(qi,{highlight_bg:t,highlight_style:o,children:[(0,Z.jsx)(p,{onClick:function(){"cta"==o&&(h.Z.send("ClickCouponActivity"),s(!0))},children:n.map((function(e,i){return"image"==e.type?(0,Z.jsx)(Qi,{image:e.value},i):"text"==e.type?(0,Z.jsx)(Di,{text:e.value},i):void 0}))}),(0,Z.jsx)(me.Z,{children:(0,Z.jsx)(gi,{children:(0,Z.jsx)(gi.LoginCouponDrawer,{isOpen:a,setIsOpen:s})})})]})},Ri=function(e){var i=e.color;return(0,Z.jsx)("div",{className:"prefix-arrow",children:(0,Z.jsx)("svg",{fill:"none",height:(0,O.Ok)(10),viewB
1ox:"0 0 7 10",width:(0,O.Ok)(7),xmlns:"http://www.w3.org/2000/svg",children:(0,Z.jsx)("path",{clipRule:"evenodd",d:"M2.2864 0.358819L5.84117 3.91359C6.19264 4.26506 6.19264 4.83491 5.84117 5.18638L2.2864 8.74116C1.93492 9.09263 1.36508 9.09263 1.0136 8.74116C0.844821 8.57237 0.75 8.34345 0.75 8.10476V0.995215C0.75 0.498159 1.15294 0.0952148 1.65 0.0952148C1.88869 0.0952148 2.11761 0.190036 2.2864 0.358819Z",fill:i,fillRule:"evenodd"})})})},Gi=d.ZP.div.withConfig({componentId:"hpeo12-0"})(['display:flex;@font-face{font-family:"Spartan600";font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/spartan/v7/l7gAbjR61M69yt8Z8w6FZf9WoBxdBrFbvl6JABLPepqTef0.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:"Spartan800";font-style:normal;font-weight:800;font-display:swap;src:url(https://fonts.gstatic.com/s/spartan/v7/l7gAbjR61M69yt8Z8w6FZf9WoBxdBrEFvl6JABLPepqTef0.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}.prefix-wrapper{display:flex;align-items:end;.prefix-arrow{margin-right:',";}.prefix{color:",";font-size:",";font-weight:600;letter-spacing:",';}.ori-price-wrapper{display:flex;position:relative;font-family:"Spartan800",sans-serif;color:',";}.dollar-prefix{margin-left:",";height:",";padding-top:",";}.ori-price{margin-left:",";font-weight:800;font-size:",";height:",";}.slash-wrapper{position:absolute;width:100%;height:100%;display:flex;align-items:center;justify-content:center;.slash{width:95%;height:",";background:rgba(255,255,255,0.8);transform:rotate(172deg);}}}"],(0,O.Ok)(5.9),(function(e){return e.prefix_color}),(0,O.Ok)(14),(0,O.Ok)(1),(function(e){return e.origin_price_color}),(0,O.Ok)(4),(0,O.Ok)(20),(0,O.Ok)(4),(0,O.Ok)(2),(0,O.Ok)(20),(0,O.Ok)(20),(0,O.Ok)(4)),Mi=function(e){var i=e.prefix,t=e.ori_price,n=e.style,o=n.prefix_color,r=void 0===o?"":o,a=n.origin_price_color,s=void 0===a?"":a;return(0,Z.jsx)(Gi,{origin_price_color:s,prefix_color:r,children:(0,Z.jsxs)("div",{className:"prefix-wrapper",children:[(0,Z.jsx)(Ri,{color:r}),(0,Z.jsx)("div",{className:"prefix",children:i}),t&&(0,Z.jsxs)("div",{className:"ori-price-wrapper",children:[(0,Z.jsx)("div",{className:"dollar-prefix",children:"$"}),(0,Z.jsx)("div",{className:"ori-price",children:t.replace("$","")}),(0,Z.jsx)("div",{className:"slash-wrapper",children:(0,Z.jsx)("div",{className:"slash"})})]})]})})},Hi=t(323),Li=d.ZP.div.withConfig({componentId:"a6p0ah-0"})(['color:white;display:flex;@font-face{font-family:"Spartan800";font-style:normal;font-weight:800;font-display:swap;src:url(https://fonts.gstatic.com/s/spartan/v7/l7gAbjR61M69yt8Z8w6FZf9WoBxdBrEFvl6JABLPepqTef0.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}font-family:"Spartan800",sans-serif;.dollar-prefix-wrapper{padding-top:',";}.price-wrapper{margin-left:",";}.suffix-wrapper{padding-top:",";margin-left:",";}"],(0,O.Ok)(7),(0,O.Ok)(5),(0,O.Ok)(7),(0,O.Ok)(4)),Ji=function(e){var i=e.price,t=e.suffix,n=e.style,o=i.replace("$","");return(0,Z.jsxs)(Li,{cssStyle:n,children:[(0,Z.jsx)("div",{className:"dollar-prefix-wrapper",children:(0,Z.jsx)(Hi.Z,{border_color:n.border_color,border_width:"4.5",text:"$",text_colors:n.text_colors,text_size:20})}),(0,Z.jsx)("div",{className:"price-wrapper",children:(0,Z.jsx)(Hi.Z,{border_color:n.border_color,border_width:"5.5",text:o,text_colors:n.text_colors,text_size:30})}),(0,Z.jsx)("div",{className:"suffix-wrapper",children:(0,Z.jsx)(Hi.Z,{border_color:n.border_color,border_width:"4.5",text:t,text_colors:n.text_colors,text_size:20})})]})},Vi=d.ZP.div.withConfig({componentId:"h3o31d-0"})([".primary-price-wrapper{margin-top:",";}"],(0,O.Ok)(10)),Wi=function(e){var i=e.primary,t=e.prefix,n=e.ori_price,o=e.style;return(0,Z.jsxs)(Vi,{children:[(0,Z.jsx)(Mi,{ori_price:n,prefix:t,style:o}),(0,Z.jsx)("div",{className:"primary-price-wrapper",children:(0,Z.jsx)(Ji,{price:i.display_price,style:o,suffix:i.display_price_suffix})})]})},$i=t(45697),Yi=t.n($i);function Xi(e,i){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);i&&(n=n.filter((function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable}))),t.push.apply(t,n)}return t}function Ki(e){for(var i=1;i<arguments.length;i++){var t=null!=arguments[i]?arguments[i]:{};
1i%2?Xi(Object(t),!0).forEach((function(i){(0,te.Z)(e,i,t[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Xi(Object(t)).forEach((function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(t,i))}))}return e}var et=d.ZP.div.withConfig({componentId:"bxhnj8-0"})(["background-color:",";height:",";width:",";align-self:center;color:",";padding-left:",";.time{background-color:white;border-radius:",";padding:",";color:",";}.unit{margin:0 ",";}.wording{margin-left:",";}img{justify-self:flex-end;margin-right:",";}"],(function(e){return e.background}),(0,O.Ok)(39),(0,O.Ok)(375),(function(e){return e.text_color}),(0,O.Ok)(12),(0,O.Ok)(4),(0,O.Ok)(4),(function(e){return e.timer_color}),(0,O.Ok)(4),(0,O.Ok)(12),(0,O.Ok)(16)),it=(0,l.memo)((function(e){var i=e.time;return(0,Z.jsx)("span",{className:"time ",children:i})}));it.displayName="timer",it.propTypes={time:Yi().string.isRequired};var tt=function(){var e,i=(0,l.useContext)(m.I),t=i.promoteConfig,n=i.setIsOpenPromoteDrawer,o=(null===t||void 0===t||null===(e=t.countdown)||void 0===e?void 0:e.end_ts)||null,r=(0,l.useState)({text_color:"#F7422F",timer_color:"#F7422F",background:"#FDE7DE",wording:"\u512a\u60e0\u7d50\u675f\uff01\u660e\u5929\u518d\u4f86\uff01",image:"/vImage/guaguaCard/question_red.svg"}),a=r[0],s=r[1],c=1e3*o||0,d=(0,Ci.Z)(c),p=d.min,u=void 0===p?"00":p,g=d.sec,h=void 0===g?"00":g,f=d.milliSec,x=void 0===f?"0":f;return(0,l.useEffect)((function(){if(0===parseInt(u)&&0===parseInt(h)&&0===parseInt(x))s(Ki(Ki({},a),{},{text_color:"#F7422F",timer_color:"#F7422F",background:"#FDE7DE",wording:"\u512a\u60e0\u7d50\u675f\uff01\u660e\u5929\u518d\u4f86\uff01",image:"/vImages/guaguaCard/question_red.svg"}));else if(parseInt(u)<10){var e;s(Ki(Ki({},a),{},{text_color:"white",timer_color:"#3B3B3B",background:"#FD4F4F",wording:null===t||void 0===t||null===(e=t.countdown)||void 0===e?void 0:e.text,image:"/vImages/guaguaCard/question_white.svg"}))}else{var i;s(Ki(Ki({},a),{},{text_color:"#3B3B3B",timer_color:"#3B3B3B",background:"#FFD600",wording:null===t||void 0===t||null===(i=t.countdown)||void 0===i?void 0:i.text,image:"/vImages/guaguaCard/question.svg"}))}}),[u,h,x]),t?(0,Z.jsxs)(et,{background:a.background,className:" smaller-font bolder d-flex align-items-center ",text_color:a.text_color,timer_color:a.timer_color,children:[(0,Z.jsxs)("div",{children:[(0,Z.jsx)(it,{time:u}),(0,Z.jsx)("span",{className:"unit",children:"\u5206"}),(0,Z.jsx)(it,{time:h}),(0,Z.jsx)("span",{className:"unit",children:"\u79d2"}),(0,Z.jsx)(it,{time:x}),(0,Z.jsx)("span",{className:"wording",children:a.wording})]}),(0,Z.jsx)("div",{onClick:function(){n(!0)},style:{display:"none"},children:(0,Z.jsx)("img",{src:a.image})})]}):null},nt=(0,d.iv)([".time{width:",";padding:"," "," ",";background-color:white;border-radius:",';font-family:"Spartan800";font-size:',";color:#3b3b3b;display:flex;align-items:center;justify-content:center;}.unit{margin:0 ",";}.wording{margin-left:",";}img{justify-self:flex-end;margin-right:",";}.promotion-start{display:flex;align-items:center;height:",";width:",";padding-left:",";background-color:#ffd600;color:#3b3b3b;}.promotion-ending-soon{background-color:#fd4f4f;color:#fff;}.promotion-ended{background-color:#fde7de;color:#f7422f;.time{color:#f7422f;}}"],(0,O.Ok)(33),(0,O.Ok)(6),(0,O.Ok)(4),(0,O.Ok)(2),(0,O.Ok)(4),(0,O.Ok)(16),(0,O.Ok)(4),(0,O.Ok)(12),(0,O.Ok)(16),(0,O.Ok)(39),(0,O.Ok)(375),(0,O.Ok)(12)),ot=(0,l.memo)((function(e){var i=e.time;return(0,Z.jsx)("span",{className:"time ",children:i})}));ot.displayName="timer",ot.propTypes={time:Yi().string.isRequired};var rt=(0,d.ZP)((function(e){var i=e.className,t=e.promoteConfig,n=1e3*((null===t||void 0===t?void 0:t.end_ts)||null)||0,o=(0,Ci.Z)(n),a=o.hour,s=void 0===a?"00":a,c=o.min,l=void 0===c?"00":c,d=o.sec,p=void 0===d?"00":d,m=0===parseInt(s)&&0===parseInt(l)&&0===parseInt(p);return(0,Z.jsx)("div",{className:"".concat(i," smaller-font bolder"),children:(0,Z.jsxs)("div",{className:r()("promotion-start",{"promotion-ending-soon":parseInt(s)<=1,"promotion-ended":m}),children:[(0,Z.jsx)(ot,{time:s}),(0,Z.jsx)("span",{className:"unit",children:"\u6642"}),(0,Z.jsx)(ot,{time:l}),(0,Z.jsx)("span",{className:"unit",children:"\u5206"}),(0,Z.jsx)(ot,{time:p}),(0,Z.jsx)("span",{className:"unit",children:"\u79d2"}),(0,Z.jsx)("span",{className:"wording",children:m?"\u9650\u6642\u512a\u60e0\u7d50\u675f\uff01":t.text})]})})})).withConfig({componentId:"sc-17zasty-0"})(["",""],nt),at=function(e){var i=e.promoteConfig,t="guaguacard"===(null===i||void 0===i?void 0:i.type),n="sku_coupon"===(null===i||void 0===i?void 0:i.type);return(0,Z.jsxs)(Z.Fragment,{children:[t&&(0,Z.jsx)(tt,{}),n&&(0,Z.jsx)(rt,{promoteConfig:null===i||void 0===i?void 0:i.countdown})]})},st=d.ZP.div.withConfig({componentId:"sc-1cv0sr9-0"})(["display:flex;font-size:",";font-weight:600;.prefix-wrapper{display:flex;margin-right:",";.default-prefix{margin-right:",";color:",";}.prefix{color:",";margin-right:",";}.prefix-arrow{margin-right:",";}}.price-wrapper{display:flex;color:",";}"],(0,O.Ok)(14),(0,O.Ok)(4),(0,O.Ok)(5.9),(function(e){return e.suffix_package_color}),(function(e){return e.prefix_color}),(0,O.Ok)(4),(0,O.Ok)(5.9),(function(e){return e.suffix_package_color})),ct=function(e){var i=e.prefix,t=e.price,n=e.price_suffix,o=e.style;return(0,Z.jsx)(st,{prefix_color:o.prefix_color,suffix_package_color:o.suffix_package_color,children:(0,Z.jsxs)("div",{className:"prefix-wrapper",children:[i&&(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(Ri,{color:o.prefix_color}),(0,Z.jsx)("div",{className:"prefix",children:i}),(0,Z.jsxs)("div",{className:"price-wrapper",children:[(0,Z.jsx)("div",{className:"price",children:t}),(0,Z.jsx)("div",{className:"price-suffix",children:n})]})]}),!i&&(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)("div",{className:"default-prefix",children:"\u67e5\u7
170b\u65b9\u6848\u8a73\u60c5"}),(0,Z.jsx)(Ri,{color:o.suffix_package_color})]})]})})},lt=d.ZP.div.withConfig({componentId:"sc-63t4b9-0"})(['position:relative;@font-face{font-family:"Spartan600";font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/spartan/v7/l7gAbjR61M69yt8Z8w6FZf9WoBxdBrFbvl6JABLPepqTef0.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}.discount-price-area{position:relative;width:100%;height:',";background:",";background-size:cover;background-repeat:no-repeat;.highlight-wrapper{position:absolute;z-index:1;}.primary-wrapper{position:absolute;left:",";top:",";}.secondary-wrapper{position:absolute;bottom:",";left:",";z-index:1;}.bottom-mask{position:absolute;bottom:0;width:100%;height:",";background:rgba(255,255,255,0.2);}}"],(0,O.Ok)(115),(function(e){return"url(".concat(e.background_img,")")}),(0,O.Ok)(162),(0,O.Ok)(13),(0,O.Ok)(7),(0,O.Ok)(162),(0,O.Ok)(32)),dt=d.ZP.img.withConfig({componentId:"sc-63t4b9-1"})(["position:absolute;right:",";height:",";"],(0,O.Ok)(5),(0,O.Ok)(80)),pt=function(e){var i,t,n=e.wordings,o=e.promotion,r=(0,l.useContext)(m.I),a=r.setPreSelect,s=r.promoteConfig,c=(0,l.useContext)(ae.t).initPreSelect,d=o.countdown,p=void 0===d?{}:d,u=o.primary_style,g=void 0===u?{}:u,h=o.secondary_style,f=void 0===h?{}:h,x=o.background_image,v=void 0===x?{}:x,k=o.flash_image,b=void 0===k?"":k,j=o.primary_prefix,w=void 0===j?"":j,y=o.secondary_prefix,O=void 0===y?"":y,N=o.highlight,_=void 0===N?{}:N;return(0,Z.jsxs)(lt,{background_img:v.mweb,children:[!s&&p&&(0,Z.jsx)(Si,{countdown:p}),s&&(0,Z.jsx)(at,{promoteConfig:s}),(0,Z.jsxs)("div",{className:"discount-price-area",children:[(0,Z.jsx)("div",{className:"highlight-wrapper",children:(0,Z.jsx)(Bi,{data:_})}),(0,Z.jsxs)("div",{onClick:function(){c(),a({isOpen:!0,needToCart:!0,from:"item_SeeMorePackage"})},children:[(0,Z.jsx)("div",{className:"primary-wrapper",children:(0,Z.jsx)(Wi,{ori_price:n.display_original_price,prefix:w,primary:n.primary,style:g})}),(0,Z.jsx)("div",{className:"secondary-wrapper",children:(0,Z.jsx)(ct,{prefix:O,price:null===n||void 0===n||null===(i=n.secondary)||void 0===i?void 0:i.display_price,price_suffix:null===n||void 0===n||null===(t=n.primary)||void 0===t?void 0:t.display_price_suffix,style:f})})]}),(0,Z.jsx)(dt,{src:b}),(0,Z.jsx)("div",{className:"bottom-mask"})]})]})},mt=function(e){var i=e.wordings,t=(0,c.useRouter)(),n=i.primary,o=void 0===n?{}:n,r=i.secondary,a=void 0===r?{}:r,l=i.display_original_price,d=i.display_original_price_prefix,p=void 0===d?null:d,m=i.display_original_price_suffix,u=void 0===m?null:m,g=!1;return("gmc"in t.query&&t.query.gmc||"utm_campaign"in t.query&&"gsa"==t.query.utm_campaign)&&(g=!0),(0,Z.jsxs)("div",{children:[p&&(0,Z.jsxs)("div",{className:"origin-price site-color text-line-through",children:[p," ",l," ",u]}),(0,Z.jsxs)("div",{className:"promote d-flex justify-content-start align-items-stretch",onClick:function(){var e=document.getElementById("header"),i=document.getElementById("Package");(0,T.X5)(i.offsetTop-e.clientHeight),h.Z.send("ClickSeeMorePackage")},children:[(0,Z.jsxs)("div",{className:"primary ".concat("golden"===(null===o||void 0===o?void 0:o.style)?"golden-primary":""),children:[(0,Z.jsx)("div",{className:"coupon-area",children:s().array(o.tags)&&o.tags.map((function(e,i){return"coupon"===e.style||"golden_coupon"===e.style?(0,Z.jsxs)("div",{className:"tag d-flex white justify-content-start tag-item align-items-stretch",children:[(0,Z.jsx)("div",{children:(0,Z.jsx)(ue.Z,{icon:"".concat("golden_coupon"===e.style?"tag_prefix_golden":"tag_prefix"),page:"commodity",site:"golden_coupon"!==e.style})}),(0,Z.jsx)("div",{className:"tag-context ".concat("golden_coupon"===e.style?"tag-golden":""),children:e.text})]},i):(0,Z.jsx)("div",{className:"tag prefix white",children:e.text},i)}))}),(0,Z.jsxs)("div",{className:"".concat("golden"===(null===o||void 0===o?void 0:o.style)?"golden-text":"site-color"),children:[(0,Z.jsx)("span",{className:"x-large-font",children:String(o.display_price).includes("$")?o.display_price:"$".concat(o.display_price)}),o.display_price_suffix]}),(0,Z.jsx)("div",{className:"minor",children:o.unit_text})]}),s().object(a)&&s().not.empty(a)&&!g&&(0,Z.jsxs)("div",{className:"secondary",children:[(0,Z.jsxs)("div",{className:"secondary-price",children:[(0,Z.jsxs)("div",{className:"".concat("golden"===(null===o||void 0===o?void 0:o.style)?"golden-text":"site-color"),children:[(0,Z.jsx)("span",{className:"large-font",children:a.display_price}),a.display_price_suffix]}),(0,Z.jsx)("div",{className:"minor",children:a.unit_text})]}),(0,Z.jsxs)("div",{className:"minor tiny-font",children:["\u66f4\u591a\u512a\u60e0\u65b9\u6848",(0,Z.jsx)(ue.Z,{icon:"caret_right",page:"commodity"})]})]}),g&&(0,Z.jsx)("div",{className:"gmc-secondary",children:(0,Z.jsxs)("div",{className:"gmc-content tiny-font",children:[(0,Z.jsxs)("span",{children:["\u8cb7\u591a\u66f4\u4fbf\u5b9c!",(0,Z.jsx)("br",{}),"\u770b\u66f4\u591a\u8d85\u503c\u65b9\u6848"]}),(0,Z.jsx)(ue.Z,{icon:"caret_right",page:"commodity"})]})})]})]})},ut=t(71930),gt=(0,d.ZP)(ut.Z).withConfig({componentId:"qluluf-0"})(["margin-bottom:",";.placard-container{display:flex;align-items:center;}.placard{display:inline-block;border-radius:",";height:",";line-height:",";padding:"," ",";font-size:14px;}img{cursor:pointer;}"],(0,O.Ok)(16),(0,O.Ok)(28),(0,O.Ok)(28),(0,O.Ok)(20),(0,O.Ok)(4),(0,O.Ok)(12)),ht=function(e){return"/store/".concat(e.display_id,"#ref=m_item_overProductName")},ft=(0,d.ZP)((function(e){var i=e.className,t=e.merchant;return(0,Z.jsxs)("a",{className:r()(i,"small-font"),href:ht(t),target:"_self",children:[(0,Z.jsx)("div",{className:"merchant-name",children:t.store_name}),(0,Z.jsx)(ue.Z,{className:"business-tag",icon:"review",page:"commodity"}),(0,Z.jsx)("span",{className:"merchant-review",children:t.reviews_avg})]})})).withConfig({componentId:"epxydh-0"})(["margin-left:",";color:",";.merchant-name{display:inline-block;}.icon-review{",";margin-left:",";margin-right:",";}.merchant-review{font-size:",";}"],(0,O.Ok)(10),(0,O.QT)("dark-60"),(0,O.aF)(12),(0,O.Ok)(8),(0,O.Ok)(3),(0,O.Ok)(12)),xt=function(e){var i,t=e.commodity,n=e.businesses,o=e.openPreselectModal,r=e.modalRef,a=t.merchant,c=void 0===a?{}:a,d=t.wordings,p=void 0===d?{}:d,m=t.reviews_info,u=void 0===m?{}:m,g=t.ticket,f=void 0===g||g,x=t.ticket_count,v=void 0===x?0:x,k=t.source_site,b
1=void 0===k?"":k,j=t.promotion,w=t.placards,N=void 0===w?[]:w,_=t.is_show_business_tag,C=t.favorite_count,I=void 0===C?null:C,T=(0,l.useState)(!1),S=T[0],F=T[1],Q=n[t.business],z=null===(i=n[t.business])||void 0===i?void 0:i.tag,D="0"===I||""===I||null===I;return(0,Z.jsxs)(Z.Fragment,{children:[j&&(0,Z.jsx)(pt,{promotion:j,wordings:p}),(0,Z.jsxs)("div",{className:"commodity-info bg-white",children:[s().array(N)&&(0,Z.jsx)(gt,{placards:N}),(0,Z.jsx)("div",{className:"tag-header",children:s().not.empty(c)&&b===Ni.Ut&&(0,Z.jsx)(ft,{merchant:c})}),(0,Z.jsx)("h1",{className:"name",children:t.name}),("pcone"==P.Ey||!j)&&(0,Z.jsx)(mt,{wordings:p}),(0,Z.jsx)(ge,{modalRef:r,openPreselectModal:o,pos:"mainInfo"}),(0,Z.jsxs)("div",{className:"review-info d-flex justify-content-start",children:[(0,Z.jsx)(ue.Z,{className:"business-tag",icon:"review",page:"commodity"}),(0,Z.jsxs)("div",{className:"review",onClick:function(){var e=document.getElementById("Rating").offsetTop-90;window.scrollTo({top:e,behaviro:"smooth"}),h.Z.send("ClickItemAnchor",{anchorType:"Rating"})},children:[u.avg,(0,Z.jsx)("span",{className:"minor",children:" ( "}),u.count,(0,Z.jsx)("span",{className:"minor",children:" ) \u8a55\u50f9"})]}),(0,Z.jsxs)("div",{className:"favorite-count",children:[(0,Z.jsx)(ue.Z,{icon:"favorite",page:"commodity",site:"buy123"}),!D&&I,(0,Z.jsx)("span",{className:"minor",children:D?"\u4eba\u6c23\u7d2f\u7a4d\u4e2d":" \u4eba\u6c23"})]}),t.sold_count?(0,Z.jsxs)("div",{children:[t.sold_count," ",(0,Z.jsx)("span",{className:"minor",children:"\u8cfc\u8cb7"})]}):(0,Z.jsx)("div",{className:"minor",children:"\u6436\u8cfc\u4e2d"}),f&&(0,Z.jsxs)("div",{className:"flex-end",children:[(0,Z.jsx)(ue.Z,{icon:"faq",page:"commodity"}),v||"",(0,Z.jsx)("a",{href:"https://www.pcone.com.tw/product/qalist/".concat(t.display_id,"#ref=").concat((0,y.fJ)(),"_item_QAList"),children:(0,Z.jsx)("span",{className:"minor",children:"\u554f\u7b54"})})]})]})]}),_&&Q&&z&&(0,Z.jsx)("div",{className:"pointer business-and-slogan-tag",onClick:function(){F(!0),h.Z.send("ClickBusinesses")},children:(0,Z.jsx)("img",{className:"slogan-tag",src:null===z||void 0===z?void 0:z.url,style:{width:(0,O.Ok)((null===z||void 0===z?void 0:z.width)/3),height:(0,O.Ok)((null===z||void 0===z?void 0:z.height)/3)}})}),(0,Z.jsx)(_i.Z,{businesses:n,isOpen:S,setIsOpen:F})]})},vt=(0,l.memo)((function(e){var i=e.time,t=e.name;return(0,Z.jsx)("span",{className:"time white ".concat(t),children:i})}));vt.displayName="timer",vt.propTypes={time:Yi().string.isRequired,name:Yi().string.isRequired};var kt=(0,d.ZP)((function(e){var i=e.className,t=e.campaign,n=(0,Ci.Z)(1e3*t.countdown_ts),o=n.hour,r=void 0===o?"00":o,a=n.min,s=void 0===a?"00":a,c=n.sec,l=void 0===c?"00":c,d=n.milliSec,p=void 0===d?"0":d;return(0,Z.jsxs)("div",{className:i,children:[(0,Z.jsx)(vt,{name:"hour",time:r}),(0,Z.jsx)("span",{className:"colon site-color",children:" : "}),(0,Z.jsx)(vt,{name:"min",time:s}),(0,Z.jsx)("span",{className:"colon site-color",children:" : "}),(0,Z.jsx)(vt,{name:"sec",time:l}),(0,Z.jsx)("span",{className:"colon site-color",children:" : "}),(0,Z.jsx)("span",{className:"time white milli",children:p})]})})).withConfig({componentId:"sc-7riubq-0"})([".time{padding:"," ",";background:",";border-radius:4px;}"],(0,O.Ok)(2),(0,O.Ok)(4),(function(e){return e.campaign.countdown_background_color})),bt=(0,d.ZP)((function(e){var i=e.className,t=e.campaign,n=t.title,o=t.label,r=t.wording,a=t.primary_text,s=t.secondary_text,c=t.strikethrough_text;return(0,Z.jsxs)("div",{className:"".concat(i," small-font white"),children:[(0,Z.jsxs)("div",{className:"title-block bolder d-flex",children:[(0,Z.jsxs)("div",{className:"price-title d-flex small-font",children:[(0,Z.jsx)(ue.Z,{icon:"flash",page:"commodity"}),(0,Z.jsx)("div",{className:"title",children:n}),(0,Z.jsx)("label",{className:"label tiny-font",children:null===o||void 0===o?void 0:o.text})]}),(0,Z.jsx)("div",{className:"wording",children:r})]}),(0,Z.jsxs)("div",{className:"price-block d-flex",children:[(0,Z.jsxs)("div",{className:"price-content",children:[(0,Z.jsx)("span",{className:"large-font bolder primary-text",children:a}),(0,Z.jsx)("span",{className:"unit",children:s}),(0,Z.jsx)("label",{className:"tiny-font text-line-through",children:c})]}),(0,Z.jsx)(kt,{campaign:t})]})]})})).withConfig({componentId:"pui6m5-0"}
1)(["height:",";padding:"," "," 0;background:url(",") 0 0 no-repeat transparent;background-size:100% auto;.title-block{margin-bottom:",";.icon-flash{",";}.label{padding:",";margin-left:",";border-radius:",";color:",";background-color:",";}.wording{color:",";}}.price-block{.unit{margin:0 "," 0 ",";}}"],(0,O.Ok)(64),(0,O.Ok)(9.75),(0,O.Ok)(13.125),(function(e){var i=e.campaign;return encodeURI(i.background_image)}),(0,O.Ok)(3.7),(0,O.aF)(12),(0,O.Ok)(4),(0,O.Ok)(8),(0,O.Ok)(4),(function(e){var i,t=e.campaign;return null===t||void 0===t||null===(i=t.label)||void 0===i?void 0:i.text_color}),(function(e){var i,t=e.campaign;return null===t||void 0===t||null===(i=t.label)||void 0===i?void 0:i.background_color}),(function(e){return e.campaign.wording_color}),(0,O.Ok)(2),(0,O.Ok)(4)),jt=(0,d.ZP)((function(e){var i=e.className,t=e.campaign,n=t.title,o=t.primary_text,r=t.secondary_text;return(0,Z.jsxs)("div",{className:"d-flex ".concat(i," justify-content-start bolder medium-font align-items-center"),children:[(0,Z.jsxs)("div",{className:"price-block site-color d-flex align-items-center",children:[(0,Z.jsx)(ue.Z,{icon:"flash",page:"commodity",site:!0}),(0,Z.jsx)("span",{className:"unit",children:r}),(0,Z.jsx)("span",{className:"x-large-font primary-text",children:o})]}),(0,Z.jsx)("div",{className:"white",children:n})]})})).withConfig({componentId:"sc-191xba3-0"})(["height:",";padding-left:",";background:url(",") 0 0 no-repeat transparent;background-size:100% auto;.price-block{align-self:center;margin-right:",";background-color:#ffffff;border-radius:",";padding:"," "," "," ",";.icon{",";}.unit{margin:0 ",";}}"],(0,O.Ok)(64),(0,O.Ok)(12),(function(e){var i=e.campaign;return encodeURI(i.background_image)}),(0,O.Ok)(8),(0,O.Ok)(24),(0,O.Ok)(4),(0,O.Ok)(12),(0,O.Ok)(4),(0,O.Ok)(8),(0,O.aF)(16),(0,O.Ok)(4)),wt=function(e){var i=e.campaign;if(!i||s().empty(i))return null;var t=i.countdown;return(0,Z.jsxs)("div",{className:"discount-campaign",children:[!t&&(0,Z.jsx)(jt,{campaign:i}),t&&(0,Z.jsx)(bt,{campaign:i})]})},yt=wt;wt.defaultProps={campaign:{}};t(30933);var Ot=t(86),Nt=d.ZP.div.withConfig({componentId:"fs2h8f-0"})(["width:100%;height:100%;background-image:url(",");background-repeat:no-repeat;background-position:center;background-size:contain;"],(function(e){return encodeURI(e.datasrc)})),_t=(0,d.iv)(["position:relative;overflow:hidden;"]);w.ZP.use([w.oM,w.W_,w.tl]);var Ct="",Zt=function(e){var i=e.images,t=e.videos,n=e.className,o=(0,l.useContext)(ae.t).dispatch,r=(0,l.useState)(!1),a=r[0],s=r[1],c=(0,l.useState)(0),d=c[0],p=c[1],m=(0,l.useRef)(0);return(0,l.useEffect)((function(){new w.ZP(".main-swiper-container",{lazy:{loadPrevNext:!0,loadPrevNextAmount:2},autoplay:!1,pagination:{el:".swiper-pagination",type:"fraction"},navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"}}).on("slideChange",(function(e){h.Z.send("SwipeMainImg",{image_order:e.activeIndex})}))}),[i,t]),0==m.current&&(m.current=1,Ct=i.details[0]),(0,Z.jsxs)("div",{className:n,children:[(0,Z.jsxs)("div",{className:"main-swiper-container swiper-container bg-white",id:"main-image",children:[(0,Z.jsxs)("div",{className:"swiper-wrapper",children:[i.details.map((function(e,t){return 0===t?(0,Z.jsxs)("div",{className:"swiper-slide",onClick:function(){o({type:"step",step:void 0}),p(t),s(!0)},children:[(0,Z.jsx)("img",{fetchpriority:"high",src:Ct}),i.frames&&i.frames.map((function(e,i){return(0,Z.jsx)("img",{className:"frame",fetchpriority:"high",src:e},i)}))]},t):(0,Z.jsx)("div",{className:"swiper-slide",children:(0,Z.jsx)(Nt,{datasrc:e,onClick:function(){o({type:"step",step:void 0}),p(t),s(!0)}})},t)})),t.map((function(e,i){return(0,Z.jsx)("div",{className:"swiper-slide video-slide",children:(0,Z.jsx)("iframe",{className:"video swiper-lazy","data-src":"https://www.youtube.com/embed/".concat(e,"?controls=1"),loading:"lazy",width:"100%"})},i)}))]}),(0,Z.jsx)("div",{className:"swiper-pagination white"}),(0,Z.jsx)("div",{className:"swiper-button swiper-button-prev",children:(0,Z.jsx)(ue.Z,{icon:"prev",page:"commodity"})}),(0,Z.jsx)("div",{className:"swiper-button swiper-button-next",children:(0,Z.jsx)(ue.Z,{icon:"next",page:"commodity"})})]}),a&&(0,Z.jsx)(me.Z,{children:(0,Z.jsx)(Ot.Z,{images:null===i||void 0===i?void 0:i.details,initialSlideIndex:d,onClose:function(){return s(!1)},selectedPackage:{}})})]})};Zt.defaultProps={datasrc:""};var It=(0,d.ZP)(Zt).withConfig({componentId:"sc-1p6yg8w-0"})(["",""],_t),Pt=(0,d.ZP)((function(e){var i,t,n,o=e.className,r=e.discount_info,a=e.display_id,c=e.openPreselectModal,d=e.modalRef,p=(0,l.useContext)(m.I),u=p.commodity,g=p.businesses,h=p.loginCouponData,f=u.videos,x=void 0===f?[]:f,v=u.images,k=void 0===v?{}:v,b=u.discounts,j=void 0===b?[]:b,w=u.campaign,y=void 0===w?{}:w,O=u.source_site,N=void 0===O?"":O,_=u.promotion,C=void 0===_?{}:_,I="pcone"===N,P=null===(null===r||void 0===r?void 0:r.limited_wording);return(0,Z.jsxs)("div",{className:"".concat(o," small-font"),id:"Item",children:[(0,Z.jsx)(It,{images:k,videos:x}),s().object(y)&&s().not.empty(y)&&"available"!==(null===h||void 0===h||null===(i=h.highlightData)||void 0===i?void 0:i.highlightStatus)&&!C&&(0,Z.jsx)(yt,{campaign:y}),(null===h||void 0===h||null===(t=h.highlightData)||void 0===t?void 0:t.highlightStatus)&&"available"===(null===h||void 0===h||null===(n=h.highlightData)||void 0===n?void 0:n.highlightStatus)&&!C&&(0,Z.jsx)(gi,{children:(0,Z.jsx)(gi.HighLight,{})}),I&&P&&(0,Z.jsx)(ki,{discount_info:r,display_id:a,fromMainInfo:!0,mainDiscounts:j||[]}),(0,Z.jsx)(xt,{businesses:g,commodity:u,modalRef:d,openPreselectModal:c})]})})).withConfig({componentId:"sc-6d0rqt-0"})(["",""],Q);w.ZP.use([w.oM,w.pt]);var Tt=(0,d.ZP)((function(e){var i=e.className,t=e.merchant,n=e.source_site,o=t.display_id,r=t.logo,a=t.store_name,c=t.banners,d=void 0===c?[]:c,p=t.commodities_count,m=t.reviews_avg,u=t.avg_days,g=t.ticket_reply_rate,h=(null===d||void 0===d?void 0:d.mweb)||[];if((0,l.useEffect)((function(){s().empty(h)||s().not.array(h)||h.length<=1||new w.ZP(".store-swiper-container",{lazy:!0,autoplay:{delay:3e3}})}),[]),"pcone"!=n)return(0,Z.jsx)(Z.Fragment,{});if(s().empty(t))return null;var f=null;return"pcone"===P.Ey&&(f="https://m.pcone.com.tw/store/".concat(o)),(0,Z.jsxs)("div",{className:"".concat(i," bg-white block"),children:[(0,Z.jsxs)("div",{className:"store-header d-flex justify-content-start",children:[!r&&(0,Z.jsx)(ue.Z,{className:"store-logo",icon:"shop",page:"commodity",site:!0}),r&&(0,Z.jsx)("img",{alt:a,className:"store-logo",loading:"lazy",src:r}),(0,Z.jsx)("div",{className:"store-name",children:a}),f&&(0,Z.jsx)("a",{className:"store-link flex-end tiny-font border-radius",href:f+"#ref=".concat((0,y.fJ)(),"_item_store"),children:"\u67e5\u7
170b\u5546\u5e97"})]}),(0,Z.jsxs)("div",{className:"d-flex store-review",children:[(0,Z.jsxs)("div",{className:"review-item text-center",children:[(0,Z.jsx)("p",{className:"data medium-font",children:p||"--"}),(0,Z.jsx)("p",{children:"\u5546\u54c1"})]}),(0,Z.jsxs)("div",{className:"review-item text-center",children:[(0,Z.jsx)("p",{className:"data medium-font",children:m||"--"}),(0,Z.jsx)("p",{children:"\u8a55\u50f9"})]}),(0,Z.jsxs)("div",{className:"review-item text-center",children:[(0,Z.jsx)("p",{className:"data medium-font",children:u||"--"}),(0,Z.jsx)("p",{children:"\u51fa\u8ca8\u5929"})]}),(0,Z.jsxs)("div",{className:"review-item text-center",children:[(0,Z.jsx)("p",{className:"data medium-font",children:g||"--"}),(0,Z.jsx)("p",{children:"\u56de\u8986\u7387"})]})]}),s().not.empty(h)&&s().array(h)&&"pcone"==P.Ey&&(0,Z.jsx)("div",{className:"store-swiper-container swiper-container",children:(0,Z.jsx)("div",{className:"swiper-wrapper",children:h.map((function(e,i){return(0,Z.jsx)("a",{className:"swiper-slide",href:e.link+"#ref=".concat((0,y.fJ)(),"_item_campaignBannerStore"),rel:"noreferrer",target:"_blank",children:(0,Z.jsx)("img",{alt:a,className:"swiper-lazy store-banner",loading:"lazy",src:e.image})},i)}))})})]})})).withConfig({componentId:"bbcgl7-0"})(["",""],D),St=(0,d.ZP)((function(e){var i=e.className,t=e.positions,n=(0,f.HJ)({includeHeader:!0}),o=n.navigationRef,r=n.position,a=n.setPosition,s=n.isOutOfObserveScope;return(0,Z.jsx)("div",{className:i,ref:o,children:t.map((function(e,i){return(0,Z.jsx)("div",{className:"area ".concat(r.area!==e[0]||s?"":"active"),onClick:function(){return a({area:e[0],goTo:!0})},children:(0,Z.jsx)(S.d9,{children:e[1]})},i)}))})})).withConfig({componentId:"w4jn66-0"})(["",""],M),Ft=t(74972),Qt=(0,d.iv)(["display:flex;flex-direction:column;justify-content:space-around;.newproducttag{display:flex;.title{white-space:nowrap;margin-right:24px;}.options{display:flex;flex-wrap:wrap;.option{margin-right:8px;margin-bottom:12px;color:",";}}}"],(0,O.QT)("siteColor")),zt=(0,d.ZP)(Ft.Z).withConfig({componentId:"a5wfgu-0"})(["",""],Qt),Dt=(0,d.ZP)((function(e){var i=e.className,t=e.options,n=(0,l.useRef)(null),o=(0,l.useState)(!1),r=o[0],a=o[1],c=(0,l.useState)(!1),d=c[0],p=c[1];return(0,l.useEffect)((function(){if(n.current){var e=n.current.clientHeight>=76;a(e)}}),[]),!t||s().empty(t)||Object.values(t).filter((function(e){return e.name})).length<=0?null:(0,Z.jsxs)("div",{className:"".concat(i," block bg-white"),children:[(0,Z.jsx)("div",{className:"block-header",children:"\u9078\u9805"}),(0,Z.jsx)("div",{className:"options ".concat(d?"extend":""),ref:n,children:Object.values(t).map((function(e,i){var n=" \u3001 ";return""===e.name?null:(i+1===Object.values(t).length&&(n=null),(0,Z.jsxs)("span",{className:"opt",children:[e.name,n]},i))}))}),r&&(0,Z.jsxs)("div",{className:"more text-center site-color ".concat(d?"rotate":""),onClick:function(){return p(!d)},children:["\u67e5\u770b\u66f4\u591a",(0,Z.jsx)(ue.Z,{icon:"chevron_down",page:"commodity",site:!0})]})]})})).withConfig({componentId:"to37on-0"})(["line-height:1.4;.options{max-height:76px;overflow:hidden;transition:max-height 0.5s linear;&.extend{max-height:50vh;}}.more{padding:"," 0;margin-top:",";border-top:1px solid ",";&.rotate > .icon-chevron_down{transform:rotate(180deg);}}.icon-chevron_down{width:",";margin-left:",";vertical-align:middle;transition:transform 0.5s linear;}"],(0,O.Ok)(10),(0,O.Ok)(12),(0,O.QT)("dark-30"),(0,O.Ok)(12),(0,O.Ok)(2)),Ut=t(1583),At=function(e){var i=e.className,t=e.commodity,n=e.loginCouponData,o=t.unit,r=t.wordings,a=t.packages,c=t.highlight_package_id,d=t.shipping_banner,p=t.packages_style,u=(0,l.useContext)(m.I),g=u.saleStatus,h=u.setPreSelect,f=(0,l.useContext)(ae.t),x=f.dispatch,v=f.initPreSelect,k=!0,b="\u62b1\u6b49\uff01\u6240\u6709\u65b9\u6848\u5df2\u552e\u5b8c\uff01";"soldout"!==g.status&&"notOnSale"!==g.status||(k=!1),"notOnSale"===g.status&&(b="\u518d\u7b49\u4e00\u4e0b\uff01\u6b64\u5546\u54c1\u5c1a\u672a\u958b\u8ce3\uff01");var j=a.filter((function(e){return e.id==c}));return j.length&&(j=j[0]),(0,Z.jsxs)("div",{className:"".concat(i," block bg-white"),id:"Package",children:[(0,Z.jsx)("div",{className:"block-header",children:"\u65b9\u6848"}),d&&d.mweb&&(0,Z.jsx)("img",{className:"shipping-banner",src:d.mweb}),(null===r||void 0===r?void 0:r.packages_notice)&&!(null!==n&&void 0!==n&&n.packagesHighlightData)&&(0,Z.jsx)("div",{className:"notice text-center border-radius",children:r.packages_notice}),(0,Z.jsx)(gi,{children:(0,Z.jsx)(gi.PackageHighLight,{})}),s().not.empty(j)&&(0,Z.jsxs)("div",{className:"maximum-package ".concat("golden"===p?"golden-package":""),onClick:function(){k||(0,Ut.C)(b),v(
1),h({isOpen:k,needToCart:!0,from:"item_packageBuy"}),x({type:"package",package:j})},children:[(0,Z.jsxs)("div",{className:"maximum-header d-flex justify-content-start",children:["golden"!==p&&(0,Z.jsx)(ue.Z,{ext:"gif",icon:"flashlight",page:"commodity",svg:!1}),"golden"==p&&(0,Z.jsx)(ue.Z,{ext:"gif",icon:"flashlight_golden",page:"commodity",svg:!1}),(0,Z.jsx)(ue.Z,{icon:"fire",page:"commodity"}),(0,Z.jsx)("div",{className:"wording white",children:"\u55ae\u50f9\u6700\u8d85\u503c"})]}),(0,Z.jsxs)("div",{className:"maximum-content d-flex align-items-start",children:["golden"===p?(0,Z.jsx)(ue.Z,{icon:"fire_golden",page:"commodity"}):(0,Z.jsx)(ue.Z,{icon:"fire",page:"commodity",site:!0}),(0,Z.jsx)("div",{className:"package-name",children:j.name}),(0,Z.jsxs)("div",{className:"maximum-price",children:[(0,Z.jsxs)("div",{className:"unit-price d-flex justify-content-start",children:[(0,Z.jsxs)("div",{className:"medium-font price ".concat("golden"===p?"golden-text":"site-color"),children:["\u6bcf",o," ",(0,Z.jsx)("span",{className:"large-font unit-price",children:j.display_unit_price})]}),(0,Z.jsxs)("div",{className:"minor text-line-through",children:[" ",j.display_unit_original_price]})]}),j.display_unit_price!==j.display_price&&(0,Z.jsxs)("div",{className:"display-price d-flex justify-content-start",children:[(0,Z.jsxs)("div",{className:"price ".concat("golden"===p?"golden-text":"site-color"),children:[r.packages_price_prefix," ",(0,Z.jsx)("span",{className:"medium-font display-price-bold",children:j.display_price})]}),(0,Z.jsx)("div",{className:"minor text-line-through",children:j.display_original_price})]})]})]})]}),(s().empty(j)||a.length>1)&&(0,Z.jsxs)("div",{className:"package-list",children:[(0,Z.jsxs)("div",{className:"d-flex package-header",children:[(0,Z.jsx)("div",{className:"name-col",children:"\u65b9\u6848"}),(0,Z.jsxs)("div",{className:"price-col",children:["\u6bcf",o,"\u5e73\u5747"]}),(0,Z.jsx)("div",{className:"price-col",children:r.packages_price_prefix})]}),a.map((function(e,i){return(0,Z.jsxs)("div",{className:"package align-items-start d-flex",onClick:function(){k||(0,Ut.C)(b),v(),h({isOpen:k,needToCart:!0,from:"item_packageBuy"}),x({type:"package",package:e}),e.soldout&&(0,Ut.C)("\u60a8\u6240\u9ede\u9078\u7684\u65b9\u6848\u5df2\u552e\u5b8c")},children:[(0,Z.jsx)("div",{className:"count",children:i+1}),(0,Z.jsx)("div",{className:"name-col package-name ",children:e.name}),(0,Z.jsxs)("div",{className:"price-col",children:[(0,Z.jsx)("div",{className:" medium-font ".concat("golden"===p?"golden-text":"site-color"),children:e.display_unit_price}),(0,Z.jsx)("div",{className:"minor tiny-font text-line-through",children:e.display_unit_original_price})]}),(0,Z.jsxs)("div",{className:"price-col",children:[(0,Z.jsx)("div",{className:" medium-font ".concat("golden"===p?"golden-text":"site-color"),children:(0,Z.jsx)("span",{className:"package-list-display-price-bold",children:e.display_price})}),(0,Z.jsx)("div",{className:"minor tiny-font text-line-through",children:e.display_original_price})]})]},i)}))]})]})},Et=(0,d.ZP)(At).withConfig({componentId:"sc-3jwk39-0"})(["",""],B);At.defaultProps={loginCouponData:{}};var qt=t(27812),Bt=function(){var e=(0,l.useState)(0),i=e[0],t=e[1],n=(0,l.useState)(0),o=n[0],r=n[1],a=function(){t(window.innerWidth),r(window.innerHeight)};return(0,l.useEffect)((function(){return a(),window.addEventListener("resize",a),function(){return window.removeEventListener("resize",a)}}),[]),[i,o]},Rt=t(23902),Gt=t(65162),Mt=t(20792),Ht=t(37231),Lt=(0,d.iv)([""," width:100%;height:",";padding:0 "," env(safe-area-inset-bottom,20px);border-top:1px solid ",";background-color:#ffffff;overflow:",";.selected-package{height:60px;display:flex;flex-flow:row nowrap;align-items:center;align-self:baseline;justify-content:space-between;font-size:14px;line-height:20px;.package{.title{font-size:14px;line-height:20px;}.reminder-text{font-size:12px;line-height:20px;color:",";}}.operate{display:flex;.select-input{width:48px;height:30px;border-radius:4px;border:1px solid #e3e3e3;margin:0 4px;color:",";}.icon{background-color:#f9f9f9;}}.select-option{height:inherit;overflow-y:auto;}.select-number{flex:0 0 110px;display:flex;justify-content:space-around;}}.selected-price-step{margin-top:8px;display:flex;justify-content:space-between;align-items:center;.prices{.price{font-size:24px;line-height:24px;color:",";}.text{font-size:12px;line-height:20px;color:",";}}button{width:90px;padding:10px 0;margin-left:12px;border-radius:4px;border:1px solid ",";font-size:16px;line-height:20px;&.next{background-color:",";border:1px solid ",";color:#fff;}}}"],(0,O.Bd)({bottom:"0",zIndex:100}),(function(e){var i=e.ratioHeight;return e.isFixedDeviceHeight?"15vh":"".concat(100*i,"vh")}),(0,O.Ok)(16),(0,O.QT)("dark-30"),(function(e){return e.isFixedDeviceHeight?"auto":"visible"}),(0,O.QT)("red-100"),(0,O.QT)("siteColor"),(0,O.QT)("siteColor"),(0,O.QT)("dark-60"),(0,O.QT)("dark-30"),(0,O.QT)("siteColor"),(0,O.QT)("siteColor")),Jt=(0,d.ZP)((function(e){var i=e.activeStep,t=e.allStep,o=e.className,r=e.commodity,a=e.optionGroups,c=e.optionGroupsQuantity,d=e.optionIdFocus,p=e.packageAmount,m=e.selectedOptionGroups,u=e.selectedPackage,g=e.shippingFeeNotice,f=e.setActiveStep,x=e.setPackageAmount,v=(0,l.useState)(!1),k=v[0],b=v[1],j=(0,l.useState)(!1),w=j[0],y=j[1],N=r.id,_=r.contract_id,C=r.source_site,I=r.display_id,S=t.findIndex((function(e){return e===i})),F=a[S-1],Q=(0,l.useContext)(ae.t).dispatch,z=function(){var e=(0,ne.Z)(re().mark((function e(){var t,o,r,a,s,c;return re().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=u.option_groups.map((function(e){var i=e.id,t=e.option_ids,o=e.quantity;return m[i]?{id:i,options:Object.entries(m[i]).map((function(e){var i=(0,n.Z)(e,2);return{id:i[0],quantity:i[1]}}))}:{id:i,options:[{id:t[0],quantity:p*o}]}})),o={site:P.Ey,item_id:"buy123"===P.Ey?N:_,source_site:C,sku_id:I,product_id:u.id,product_quantity:p,option_groups:t,check:1,uncheck_others:0},b(!0),e.prev=3,e.next=6,(0,se._7)(o);case 6:r=window.location.origin,a=i===Rt.bQ?"itemPackage":"options",s="d_".concat(a,"_addToCart"),P.Jq&&(s="m_".concat(a,"_addToCart")),c="".concat(r,"/cart?source_site=").concat(C,"&ref=").concat(s),(0,T.hh)(c,(function(){window.location.href=c})),e.next=17;break;case 14:e.prev=14,e.t0=e.catch(3),console.error(e.t0);case 17:return e.prev=17,b(!1),e.finish(17);case 20:case"end":return e.stop()}}),e,null,[[3,14,17,20]])})));return function(){return e.apply(this,arguments)}}();return(0,Z.jsxs)("div",{className:o,children:[k&&(0,Z.jsx)(Mt.L,{children:(0,Z.jsx)(Ht.Z,{color:(0,O.QT)("siteColor"),height:60,visible:k,width:60})}),i===Rt.bQ&&(0,Z.jsxs)("div",{className:"selected-package",children:[(0,Z.jsxs)("div",{className:"package",children:[(0,Z.jsx)("div",{className:"title",children:"\u65b9\u6848\u6578\u91cf"}),s().not.empty((0,Gt._)(u.canChooseQuantity,u.cod_limit,p,p*u.price))&&(0,Z.jsx)("div",{className:"reminder-text",children:(0,Gt._)(u.canChooseQuantity,u.cod_limit,p,p*u.price)})]}),(0,Z.jsxs)("div",{className:"operate",children:[(0,Z.jsx)(ue.Z,{className:"icon",icon:0===(null===u||void 0===u?void 0:u.canChooseQuantity)||s().empty(u)||p<=1||w?"minus_disable":"minus",onClick:function(){0===(null===u||void 0===u?void 0:u.canChooseQuantity)||s().empty(u)||p<=1||w||x(p-1)},page:"commodity",site:!0}),(0,Z.jsx)("input",{className:"select-input text-center",disabled:s().empty(u),onBlur:function(){y(!1),isNaN(p)||p<=0?x(1):p>(null===u||void 0===u?void 0:u.canChooseQuantity)&&x(null===u||void 0===u?void 0:u.canChooseQuantity)},onChange:function(e){var i=e.target.value;e.preventDefault(),/[0-9]/.test(i)&&x(Number(i)),/[0-9]/.test(i)||""!==i||x()}
1,onClick:function(e){y(!0),e.target.focus(),e.target.select()},pattern:"[0-9]*",type:"number",value:0===(null===u||void 0===u?void 0:u.canChooseQuantity)||s().empty(u)?0:p}),(0,Z.jsx)(ue.Z,{className:"icon",icon:s().empty(u)||p>=(null===u||void 0===u?void 0:u.canChooseQuantity)?"plus_disable":"plus",onClick:function(){s().empty(u)||p>=(null===u||void 0===u?void 0:u.canChooseQuantity)||x(p+1)},page:"commodity",site:!0})]})]}),(0,Z.jsxs)("div",{className:"selected-price-step",children:[(0,Z.jsxs)("div",{className:"prices",children:[(0,Z.jsx)("div",{className:"price",children:s().empty(u)||isNaN(p)?"$0":"$".concat(p*u.price)}),(0,Z.jsx)("div",{className:"text",children:g})]}),(0,Z.jsx)("div",{children:(0,Z.jsxs)(Z.Fragment,{children:[i!==Rt.bQ&&(0,Z.jsx)("button",{className:"ctrl-btn site-color bg-white pointer",onClick:function(){Q({type:"step",step:"package"}),h.Z.send("ViewItemPackage",{commodity:r,from:"options_backward"}),t[S-1]&&(f(t[S-1]),Q({type:"set_option_group_id",currentOptionGroupIdx:S-2}),Q({type:"reset_option_index"}))},children:"\u4e0a\u4e00\u6b65"}),(0,Z.jsx)("button",{className:"button pointer ".concat(i===Rt.bQ?!s().empty(u)&&(null===u||void 0===u?void 0:u.canChooseQuantity)>0&&!w?"next":"":s().empty(u)||(0,Rt.Sd)(m,i,d)!==(null===F||void 0===F?void 0:F.quantity)||k?"":"next"),disabled:w||function(e,i){return!!i||(e===Rt.bQ?0===(null===u||void 0===u?void 0:u.canChooseQuantity)||s().empty(u):(0,Rt.Sd)(m,e,d)!==(null===F||void 0===F?void 0:F.quantity))}(i,k),onClick:function(){Q({type:"step",step:"option"});var e=a.length>0&&1===a[0].option_ids.length;t[S+1]&&(e||(h.Z.send("ViewOptions",{commodity:r,ref:i===Rt.bQ?"itemPackage_forward":"options_next"}),f(t[S+1]),Q({type:"set_option_group_id",currentOptionGroupIdx:S}),Q({type:"reset_option_index"}))),(0,Rt.VV)(c,m,a,i)===rn&&z()},children:(0,Rt.pd)((0,Rt.VV)(c,m,a,i))})]})})]})]})})).withConfig({componentId:"geyma9-0"})(["",""],Lt),Vt=(0,d.iv)(["padding:16px 24px 8px;position:relative;overflow:",";background-color:#ffffff;z-index:100;border-bottom:1px solid ",";.header-info{display:flex;.preview-img{width:",";height:",";}.header-text{margin:0px 16px;.title{font-size:",";margin:0 0 8px;}.line-clamp{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;}}}.header-package{margin-top:8px;font-size:14px;display:flex;line-height:initial;.package-text{flex:1;color:",";white-space:nowrap;text-overflow:ellipsis;overflow:hidden;}}.close{width:24px;height:24px;position:absolute;top:16px;right:16px;z-index:10;}"],(function(e){return e.isFixedDeviceHeight?"auto":"visible"}),(0,O.QT)("dark-30"),(function(e){var i=e.deviceWidth;return(0,O.DY)(80/i)}),(function(e){var i=e.deviceHeight;return(0,O.oo)(80/i)}),(function(e){var i=e.deviceWidth;return(0,O.DY)(14/i)}),(0,O.QT)("red-100")),Wt=(0,d.ZP)((function(e){var i=e.activeStep,t=e.allStep,n=e.className,o=e.commodity,r=e.commodityName,a=e.convenienceStoreText,s=e.setShowZoomWithThumbnail,c=e.onClose,l=e.optionGroups,d=e.optionIdFocus,p=e.selectedOptionGroups,m=e.src,u=l[t.findIndex((function(e){return e===i}))-1],g=o.options;return(0,Z.jsxs)("div",{className:n,children:[(0,Z.jsxs)("div",{className:"header-info",children:[(0,Z.jsx)("div",{className:"pointer",onClick:function(){s(!0)},children:(0,Z.jsx)("img",{className:"preview-img",src:m})}),(0,Z.jsxs)("div",{className:"header-text",children:[(0,Z.jsx)("h3",{className:"title line-clamp",children:r}),(0,Z.jsx)("div",{className:"minor line-clamp"})]})]}),(0,Z.jsxs)("div",{className:"header-package",children:[(0,Z.jsx)("span",{className:"package-text",children:i===Rt.bQ?"\u9078\u64c7\u65b9\u6848":(0,Rt.E7)(g,p[i])}),(0,Z.jsx)("span",{className:"minor",children:i===Rt.bQ?a:" ".concat((0,Rt.Sd)(p,i,d)," / ").concat(null===u||void 0===u?void 0:u.quantity)})]}),(0,Z.jsx)(ue.Z,{className:"pointer close",icon:"drawer-close",onClick:function(){c()},page:"cart"})]})})).withConfig({componentId:"sc-1mn48gi-0"})(["",""],Vt),$t=(0,d.iv)(["height:50vh;flex:1;display:flex;transition:all 0.5s;transform:translateX(","%);.preselect-content{"," max-height:83vw;flex-shrink:0;width:100%;overflow-y:auto;padding:0 "," "," ",";.package{padding:10px;position:relative;border:1px solid rgb(227,227,227);border-radius:8px;margin:8px 0px;&.selected{color:",";background-color:",";border:1px solid ",";}&.soldout{color:",";background-color:rgba(255,255,255,0.6);}.package-price{line-height:1;display:flex;align-items:flex-end;justify-content:flex-end;margin-top:4px;.highlight{font-size:14px;line-height:20px;
1display:flex;margin-right:4px;}.text:not(:last-child){margin-right:4px;}.price-prefix{font-size:14px;line-height:20px;}.per-unit-price{font-size:14px;line-height:20px;color:",";}.best-price{font-size:16px;line-height:22px;}}.info{display:flex;justify-content:center;align-items:center;font-size:14px;line-height:20px;.package-index{margin-right:8px;}.ship-icons{> img{width:20px;height:20px;&:not(:first-child){margin-left:6px;}}}}.icon-fire{width:100px;height:100px;",";z-index:0;}}.option{margin:8px 0px;border-radius:8px;padding:0 16px;border:1px solid rgb(227,227,227);display:flex;justify-content:space-between;align-items:center;.option-name{font-size:14px;line-height:20px;}.operate{display:flex;}input{color:",';width:48px;height:30px;border-radius:4px;border:0 none;}input[type="number"]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}input[type="number"]{-moz-appearance:textfield;}&.soldout{color:',";}&.active{background:",";border:1px solid ",";color:",";}&.preview{border:1px solid ",";color:",";}}}"],(function(e){return e.contentTranslateX}),(0,O.dp)("50%","50vh"),(0,O.Ok)(16),(0,O.Ok)(34),(0,O.Ok)(16),(0,O.QT)("siteColor"),(0,O.QT)("site10"),(0,O.QT)("siteColor"),(0,O.QT)("dark-50"),(0,O.QT)("dark-60"),(0,O.AG)({top:"-20%",right:"-2%"}),(0,O.QT)("siteColor"),(0,O.QT)("dark-50"),(0,O.QT)("site10"),(0,O.QT)("site50"),(0,O.QT)("site100"),(0,O.QT)("site50"),(0,O.QT)("site100"));function Yt(e,i){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);i&&(n=n.filter((function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable}))),t.push.apply(t,n)}return t}function Xt(e){for(var i=1;i<arguments.length;i++){var t=null!=arguments[i]?arguments[i]:{};i%2?Yt(Object(t),!0).forEach((function(i){(0,te.Z)(e,i,t[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Yt(Object(t)).forEach((function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(t,i))}))}return e}var Kt=(0,d.ZP)((function(e){var i=e.activeStep,t=e.className,n=e.commodity,o=e.contentTranslateX,a=e.optionGroups,c=e.packages,d=e.selectedOptionGroups,p=e.selectedPackage,m=e.setOptionIdFocus,u=e.setSelectedOptionGroups,g=e.setSelectedPackage,f=e.setUserPreviewImg,x=e.userPreviewImg,v=(0,l.useContext)(ae.t),k=v.state.currentOptionGroupIdx,b=v.dispatch,j=(0,l.useRef)(Array.from({length:c.length},(function(){return(0,l.createRef)()}))),w=n.options,y=n.wordings.pre_select_price_prefix;return(0,l.useEffect)((function(){if(!s().empty(p)&&"packages"!==i){var e=p.option_groups[k].option_ids.map((function(e){var i;return null===(i=w[e])||void 0===i?void 0:i.image}));b({type:"optionImages",optionImages:e});var t=p.option_groups[k].option_ids.map((function(e){var i;return null===(i=w[e])||void 0===i?void 0:i.name}));b({type:"optionNames",optionNames:t}),b({type:"previewImg",previewImg:e[0]})}}),[p,w,b,k,i]),(0,Z.jsxs)("div",{className:t,contentTranslateX:o,children:[(0,Z.jsx)("div",{className:"preselect-content ".concat(Rt.bQ),children:c.map((function(e,i){var t=(null===p||void 0===p?void 0:p.id)===(null===e||void 0===e?void 0:e.id),o=e.soldout,a=null!==e&&void 0!==e&&e.shipping_method_icons?null===e||void 0===e?void 0:e.shipping_method_icons:[],s=e.name,c=!1===e.soldout&&n.highlight_package_id===e.id,l=n.unit,d=e.display_unit_best_price,m=e.display_best_price;return(0,Z.jsxs)("div",{className:r()("package pointer",{selected:t,soldout:o}),onClick:function(){o?(0,Ut.C)("\u60a8\u6240\u9ede\u9078\u7684\u65b9\u6848\u5df2\u552e\u5b8c"):(!function(e){var i=(null===j||void 0===j?void 0:j.current)[e];i&&(null===i||void 0===i||i.scrollIntoView({behavior:"smooth"}))}(i),h.Z.send("SelectItemPackage",{commodity:n,order:i}),g(e))},ref:function(e){return j.current[i]=e},children:[(0,Z.jsxs)("div",{className:"info",children:[(0,Z.jsxs)("div",{className:"package-index",children:[i+1,"."]}),(0,Z.jsx)("div",{children:s}),(0,Z.jsx)("div",{className:"ship-icons flex-end",children:null===a||void 0===a?void 0:a.map((function(e,i){return(0,Z.jsx)("img",{alt:"cod",src:e},i)}))})]}),(0,Z.jsxs)("div",{className:"package-price",children:[c&&(0,Z.jsxs)("div",{className:"highlight",children:[(0,Z.jsx)(ue.Z,{icon:"fire_solid",page:"commodity",site:!0})," ",(0,Z.jsx)("span",{className:"site-color",children:"\u55ae\u50f9\u6700\u8d85\u503c"})]}),(0,Z.jsx)("span",{className:"text price-prefix",children:y}),(0,Z.jsx)("span",{className:"text best-price",children:m}),(0,Z.jsxs)("span",{className:"text per-unit-price",children:["(\u6bcf",l,d,")"]})]}),c&&(0,Z.jsx)(ue.Z,{icon:"fire",page:"commodity",site:!0})]},i)}))}),a.length>0&&a.map((function(e,t){var o=e.id,c=e.option_ids,l=e.quantity;return(0,Z.jsx)("div",{className:"preselect-content ".concat(o),children:c.map((function(e,t){var c,p,g,v,k,j,y,O=w[e],N=O.name;return O.remaining>0?(0,Z.jsxs)("div",{className:r()("option",{active:d[o]&&(null===(c=d[o])||void 0===c?void 0:c[e])||""===(null===(p=d[o])||void 0===p?void 0:p[e]),preview:x[o]===e}),onClick:function(){f((function(i){return Xt(Xt({},i),{},(0,te.Z)({},o,e))})),h.Z.send("SelectOptions",{haveImage:!!w[e].image,order:t,commodity:n}),b({type:"optionIndex",optionIndex:t})},children:[(0,Z.jsx)("p",{className:"option-name",children:N}),(0,Z.jsxs)("div",{className:"operate",children:[!s().empty(d)&&d[o]&&((null===(g=d[o])||void 0===g?void 0:g[e])||""===(null===(v=d[o])||void 0===v?void 0:v[e]))&&(0,Z.jsx)(ue.Z,{icon:"minus",onClick:function(i){i.stopPropagation(),h.Z.send("MinusOptionsAmount",{commodity:n}),u((function(i){var t=Xt(Xt({},i),{},(0,te.Z)({},o,Xt({},i[o])));return t[o][e]-1===0?(delete t[o][e],0===Object.keys(t[o]).length&&delete t[o],t):Xt(Xt({},i),{},(0,te.Z)({},o,Xt(Xt({},i[o]),{},(0,te.Z)({},e,i[o][e]-1))))}))},page:"commodity",site:!0}),!s().empty(d)&&d[o]&&((null===(k=d[o])||void 0===k?void 0:k[e])||""===(null===(j=d[o])||void 0===j?void 0:j[e]))&&(0,Z.jsx)("input",{className:"text-center",onBlur:function(){var i,t=a.find((function(e){return e.id===o}));if(""===(null===(i=d[o])||void 0===i?void 0:i[e]))return u((function(i){var t=Xt(Xt({},i),{},(0,te.Z)({},o,Xt({},i[o])));return Object.keys(i[o]).length>1&&delete t[o][e],1===Object.keys(i[o]).length&&delete t[o],t})),void m(null);var n=Object.values(d[o]).reduce((function(e,i){return e+i}))-(null===t||void 0===t?void 0:t.quantity);/[0-9]/.test(null===t||void 0===t?void 0:t.quantity)&&n<=0?m(null):s().undefined(null===t||void 0===t?void 0:t.quantity)||(u((function(i){return Xt(Xt({},i),{},(0,te.Z)({},o,Xt(Xt({},i[o]),{},(0,te.Z)({},e,i[o][e]-n))))})),m(null))},onChange:function(i){var t=i.target.value;if(i.preventDefault(),/[0-9]/.test(t))return 0===Number(t)?void u((function(i){var t=Xt(Xt({},i),{},(0,te.Z)({},o,Xt({},i[o])));return Object.keys(i[o]).length>1&&delete t[o][e],1===Object.keys(i[o]).length&&delete t[o],t})):void u((function(i){return void 0===i[o]?Xt(Xt({},i),{},(0,te.Z)({},o,(0,te.Z)({},e,Number(t)))):Xt(Xt({},i),{},(0,te.Z)({},o,Xt(Xt({},i[o]),{},(0,te.Z)({},e,Number(t)))))}));/[0-9]/.test(t)||""!==t||u((function(i){return Xt(Xt({},i),{},(0,te.Z)({},o,Xt(Xt({},i[o]),{},(0,te.Z)({},e,""))))}))}
1,onClick:function(i){i.stopPropagation(),m(e),i.target.focus(),i.target.select()},pattern:"[0-9]*",type:"number",value:d[o]&&(null===(y=d[o])||void 0===y?void 0:y[e])}),(0,Z.jsx)(ue.Z,{icon:(0,Rt.Sd)(d,i)===l?"plus_disable":"plus",onClick:function(t){t.stopPropagation(),(0,Rt.Sd)(d,i)!==l&&(h.Z.send("AddOptionsAmount",{commodity:n}),u((function(i){return void 0===i[o]||void 0===i[o][e]?Xt(Xt({},i),{},(0,te.Z)({},o,Xt(Xt({},i[o]),{},(0,te.Z)({},e,1)))):Xt(Xt({},i),{},(0,te.Z)({},o,Xt(Xt({},i[o]),{},(0,te.Z)({},e,i[o][e]+1))))})))},page:"commodity",site:!0})]})]},e):(0,Z.jsxs)("div",{className:"option soldout",children:[(0,Z.jsx)("p",{className:"option-name",children:N}),(0,Z.jsx)("div",{children:"\u5df2\u552e\u5b8c"})]},e)}))},t)}))]})})).withConfig({componentId:"gzbi25-0"})(["",""],$t),en=(0,d.iv)(["height:100%;border-top-right-radius:8px;border-top-left-radius:8px;background-color:#fff;display:flex;flex-direction:column;height:100%;text-align:initial;position:relative;.pre-select-notice{position:absolute;top:-20px;left:50%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;transform:translate(-50%,-50%);width:90%;text-align:center;background-color:",";border-radius:4px;color:#fff;padding:4px 8px;font-size:14px;line-height:20px;}.divider{margin:0 auto;height:1px;background-color:#e3e3e3;}.content{overflow:hidden;}.red{color:",";}"],(0,O.QT)("orange-80"),(0,O.QT)("red-100"));function tn(e,i){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);i&&(n=n.filter((function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable}))),t.push.apply(t,n)}return t}function nn(e){for(var i=1;i<arguments.length;i++){var t=null!=arguments[i]?arguments[i]:{};i%2?tn(Object(t),!0).forEach((function(i){(0,te.Z)(e,i,t[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):tn(Object(t)).forEach((function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(t,i))}))}return e}var on=667,rn="addCart",an=(0,d.ZP)((function(e){var i,t,o,r=e.commodity,a=e.className,c=e.modalRef,d=Bt(),p=(0,n.Z)(d,2),m=p[0],u=p[1],g=(0,l.useState)(!1),h=g[0],f=g[1],x=(null===r||void 0===r?void 0:r.name)||"",v=(null===r||void 0===r||null===(i=r.images)||void 0===i?void 0:i.details[0])||"",k=r.options,b=(null===r||void 0===r||null===(t=r.wordings)||void 0===t?void 0:t.pre_select_notice)||"",j=r.wordings.shipping_fee_notice,w=(0,l.useContext)(ae.t).state,y=w.optionImages,O=w.optionIndex,N=(0,l.useState)(!1),_=N[0],C=N[1],I=(0,l.useState)([]),P=I[0],S=I[1],F=(0,l.useState)({}),Q=F[0],z=F[1],D=(0,l.useState)(1),U=D[0],A=D[1],E=(0,l.useState)(Rt.bQ),q=E[0],B=E[1],R=(0,l.useState)({}),G=R[0],M=R[1],H=(0,l.useState)({}),L=H[0],J=H[1],V=(0,l.useState)({}),W=V[0],$=V[1],Y=(0,l.useState)([Rt.bQ]),X=Y[0],K=Y[1],ee=(0,l.useState)([]),ie=ee[0],ne=ee[1],oe=(0,l.useState)({}),re=oe[0],se=oe[1],ce=(0,l.useState)(null),le=ce[0],de=ce[1];return(0,l.useEffect)((function(){var e=(0,Rt.qJ)(r.packages,r.options);return S(e),function(){S([])}}),[r]),(0,l.useEffect)((function(){if(!s().empty(Q)){s().empty(re)||(se({}),M({}));var e=Q.option_groups.filter((function(e){return e.option_ids.length>1})).map((function(e){return e.id}));K([Rt.bQ].concat((0,qt.Z)(e)));var i=Q.option_groups.filter((function(e){return e.option_ids.length>1}));ne(i),A(1)}}),[Q]),(0,l.useEffect)((function(){if(!s().empty(Q)&&!s().empty(ie)){var e=(0,qt.Z)(Q.option_groups).filter((function(e){return e.option_ids.length>1})).map((function(e){return nn(nn({},e),{},{quantity:e.quantity*U})})),i=e.filter((function(e){return e.option_ids.length>1})).map((function(e){return e.id}));K([Rt.bQ].concat((0,qt.Z)(i))),ne(e)}}),[U]),(0,l.useEffect)((function(){if(s().empty(ie)&&s().not.empty(W))$({});else if(!s().empty(ie)){var e={},i={};ie.forEach((function(t){var n=t.id,o=t.option_ids,r=t.quantity;e=nn(nn({},e),{},(0,te.Z)({},n,G[n]?G[n]:o[0])),i=nn(nn({},i),{},(0,te.Z)({},n,r))})),J(e),$(i)}}),[ie,G]),(0,l.useEffect)((function(){u<=on?h||f(!0):h&&f(!1)}),[u]),(0,l.useEffect)((function(){return(0,T.qT)(!0),function(){(0,T.qT)(!1)}})),(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsxs)("div",{className:a,children:[b&&(0,Z.jsx)("div",{className:"pre-select-notice",children:b}),(0,Z.jsx)(Wt,{activeStep:q,allStep:X,commodity:r,commodityImgSrc:v,commodityName:x,convenienceStoreText:(0,Rt.LI)(r.packages),deviceHeight:u,deviceWidth:m,isFixedDeviceHeight:h,onClose:function(){return c.current.closeModal()},optionGroups:ie,optionIdFocus:le,optionIndex:O,ratioHeight:.14992503748125938,selectedOptionGroups:re,setShowZoomWithThumbnail:C,src:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=arguments.length>2?arguments[2]:void 0;if(t===Rt.bQ)return v;if(!s().empty(i)){var n=i[t],o=e[n];return null===o||void 0===o?void 0:o.image}}(k,L,q)}),(0,Z.jsx)("div",{className:"divider"}),(0,Z.jsx)(Kt,{activeStep:q,commodity:r,contentTranslateX:-100*X.findIndex((function(e){return e===q})),isFixedDeviceHeight:h,optionGroups:ie,packages:P,ratioHeight:.46476761619190404,selectedOptionGroups:re,selectedPackage:Q,setOptionIdFocus:de,setSelectedOptionGroups:se,setSelectedPackage:z,setUserPreviewImg:M,userPreviewImg:G}),(0,Z.jsx)("div",{className:"divider"}),(0,Z.jsx)(Jt,{activeStep:q,allStep:X,commodity:r,isFixedDeviceHeight:h,optionGroups:ie,optionGroupsQuantity:W,optionIdFocus:le,packageAmount:U,ratioHeight:q===Rt.bQ?.1619190404797601:.09295352323838081,selectedOptionGroups:re,selectedPackage:Q,setA
1ctiveStep:B,setPackageAmount:A,shippingFeeNotice:j})]}),_&&(0,Z.jsx)(me.Z,{children:(0,Z.jsx)(Ot.Z,{activeStep:q,images:"packages"===q?null===r||void 0===r||null===(o=r.images)||void 0===o?void 0:o.details:y,initialSlideIndex:"packages"===q?0:O,onClose:function(){return C(!1)},selectedPackage:Q})})]})})).withConfig({componentId:"dcis3m-0"})(["",""],en),sn=function(e){var i,t,n,o,r,a=e.link,s=e.refHash,c=e.frame,l=e.image,d=e.item,p=e.isScrolling,m=e.inViewCardsArray,u=e.skuArrayRef,g=e.productTags,h=e.tagsIcon,f=(0,V.YD)({threshold:0}),x=f.ref,v=f.inView;!p&&v&&null!==d&&void 0!==d&&null!==(i=d.tracking)&&void 0!==i&&i.tracking_id&&m.push(null===d||void 0===d||null===(r=d.tracking)||void 0===r?void 0:r.tracking_id);return!p&&v&&null!==d&&void 0!==d&&d.display_id&&u.push(null===d||void 0===d?void 0:d.display_id),(0,Z.jsxs)("a",{className:"swiper-slide",href:"".concat(a).concat(s),ref:x,children:[(0,Z.jsxs)("div",{className:"images",children:[(0,Z.jsx)("img",{loading:"lazy",src:l}),c&&(0,Z.jsx)("img",{className:"frame",loading:"lazy",src:c})]}),(0,Z.jsxs)("div",{className:"content",children:[g.map((function(e){var i=h.find((function(i){return i.name===e}))||null;return i?(0,Z.jsx)("img",{className:"recommend-product-tag",src:i.image},"".concat(e)):(0,Z.jsx)(Z.Fragment,{})})),(0,Z.jsx)("div",{className:"line-clamp item-name",children:d.name}),d.wordings&&(0,Z.jsxs)("div",{className:"d-flex justify-content-start",children:[(0,Z.jsx)("div",{className:"site-color medium-font display-price",children:null===(t=d.wordings)||void 0===t||null===(n=t.primary)||void 0===n?void 0:n.display_price}),(0,Z.jsx)("div",{className:"original-price text-line-through minor tiny-font",children:null===(o=d.wordings)||void 0===o?void 0:o.display_original_price})]})]})]})},cn=sn;sn.defaultProps={frame:""};var ln=(0,d.iv)([""," .item-name{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;}.item-name,.d-flex{margin:"," ",";}.item-name{padding:0 ",";}.item-sell-count{background:",";border-radius:40px;display:inline-flex;color:white;font-weight:500;font-size:",";line-height:",";padding:"," ",";margin-left:",";}.d-flex{padding:0 ",';}.display-price{font-family:"Spartan800";}.content{padding:',";}.recommend-product-tag{height:",";margin-right:",";width:auto;}"],U,(0,O.Ok)(8),(0,O.Ok)(6),(0,O.Ok)(6),(0,O.QT)("siteColor"),(0,O.Ok)(12),(0,O.Ok)(17),(0,O.Ok)(2),(0,O.Ok)(8),(0,O.Ok)(6),(0,O.Ok)(4),(0,O.Ok)(8),(0,O.Ok)(16),(0,O.Ok)(4)),dn=d.ZP.div.withConfig({componentId:"sc-1go2go-0"})(["display:flex;overflow-y:hidden;overflow-x:scroll;.swiper-slide{margin-right:",";}"],(0,O.Ok)(16)),pn=(0,d.ZP)((function(e){var i=e.className,t=e.header,n=e.data,o=e.type,r=e.tagsIcon,a=(0,l.useContext)(u.kn).allowAdult,s=(0,l.useRef)([]),c=(0,l.useRef)([]),d=(0,J.Z)(),m=(0,l.useRef)(),g=(0,J.Z)(m),h=d||g;return(0,l.useEffect)((function(){0!==s.current.length&&0!==c.current.length&&function(){var e=s.current.join(","),i=c.current.join(",");L.Z.send("ViewRecommendedItems",{commodity:e,type:o,sku:i}),s.current=[],c.current=[]}()}),[h]),(0,Z.jsxs)("div",{className:"".concat(i," block bg-white"),children:[(0,Z.jsx)("div",{className:"block-header",children:t}),(0,Z.jsx)(dn,{className:"block-content",ref:m,children:n.map((function(e,i){var t,n=e.images.small,l=e.images.frame,d=(0,T.is)(e.display_id),m=(0,p.rY)("item_".concat(o,"_").concat(i)),u=e.product_tags,g=void 0===u?[]:u;return g=(null===(t=g)||void 0===t?void 0:t.slice(0,2))||[],!a&&e.adult&&(l=null,n="/vImages/shared/adult.svg"),(0,Z.jsx)(cn,{frame:l,image:n,inViewCardsArray:s.current,isScrolling:h,item:e,link:d,productTags:g,refHash:m,skuArrayRef:c.current,tagsIcon:r},i)}))})]})})).withConfig({componentId:"sc-6qlnmm-0"})(["",""],ln),mn=t(41844),un=t(79529),gn=t(67103),hn=d.ZP.div.withConfig({componentId:"sc-1gu618i-0"})(["width:100%;min-height:",";max-height:",";background:#00000070;position:absolute;bottom:0;display:flex;flex-direction:column;justify-content:space-between;padding:"," ",";z-index:10;.expand-button{display:flex;justify-content:center;color:white;top:",";width:100%;left:0;position:absolute;}.top{display:flex;justify-content:space-between;}.mid{margin-top:",";margin-bottom:",";.comment{transition:height ease 0.4s;height:",";overflow-y:scroll;max-height:",";line-height:25px;}.comment.line-clamp{height:50px !important;}}.bottom{width:100%;}.user-info{display:flex;justify-content:space-between;align-items:center;width:",";.user-image{border-radius:100%;width:",";}}.rating{display:flex;align-items:center;}.create-time{color:#9b9b9b;}"],(0,O.Ok)(200),(0,O.Ok)(600),(0,O.Ok)(40),(0,O.Ok)(16),(0,O.Ok)(11),(0,O.Ok)(6),(0,O.Ok)(6),(0,O.Ok)(300),(0,O.Ok)(400),(0,O.Ok)(90),(0,O.Ok)(30)),fn=function(e){var i=e.review,t=e.infoExpand,n=e.setInfoExpand,o=e.display_id,r=e.index,a=function(){return t?(0,Z.jsx)("img",{alt:"",src:"/vImages/sh
1ared/expand-arrow-reverse.svg"}):(0,Z.jsx)("img",{alt:"",src:"/vImages/shared/expand-arrow.svg"})};return void 0===i?null:(0,Z.jsxs)(hn,{children:[(0,Z.jsx)("div",{className:"expand-button",onClick:function(){n(!t),t?document.getElementById("comment").classList.add("line-clamp"):document.getElementById("comment").classList.remove("line-clamp")},children:(0,Z.jsx)(a,{})}),(0,Z.jsxs)("div",{className:"top",children:[(0,Z.jsxs)("div",{className:"user-info",children:[(0,Z.jsx)("div",{className:"user-image-container",children:(0,Z.jsx)("img",{alt:"",className:"user-image",loading:"lazy",src:i.user_image})}),(0,Z.jsx)("div",{className:"user-name white",children:i.user_name})]}),(0,Z.jsx)("div",{className:"rating",children:(0,Z.jsx)(un.Z,{rating:i.rating})})]}),(0,Z.jsx)("div",{className:"mid",children:(0,Z.jsx)("div",{className:"comment line-clamp white",id:"comment",children:i.comment})}),(0,Z.jsxs)("div",{className:"bottom d-flex ",children:[(0,Z.jsx)("div",{className:"create-time",children:i.create_time}),(0,Z.jsx)(gn.Z,{contract_id:i.contract_id,count:i.likes_count||0,display_id:o,index:r,pos:"item",review_id:i.review_id})]})]})},xn=t(30719),vn=d.ZP.div.withConfig({componentId:"sc-1elci0f-0"})(["position:relative;max-width:100%;max-height:100% !important;background-repeat:no-repeat;width:100%;height:100%;background-position:center;display:flex;justify-content:center;align-items:center;.image-frames{position:absolute;top:0;left:0;}img{max-width:100%;max-height:100%;}"]),kn=d.ZP.div.withConfig({componentId:"sc-1elci0f-1"})(["height:100%;#swiper{height:100%;}"]),bn=function(e){var i=e.reviews,t=e.setSwiper,n=e.setCurrentReviewPopupImageIndex;return(0,Z.jsx)(kn,{children:(0,Z.jsx)(xn.tq,{id:"swiper",onSlideChange:function(e){h.Z.send("SwipeRatingImg",{pos:"itemRating",order:e.activeIndex}),n(e.activeIndex)},onSwiper:function(e){return t(e)},slidesPerView:1,spaceBetween:50,children:i.map((function(e,i){return(0,Z.jsx)(xn.o5,{children:(0,Z.jsxs)(vn,{children:[(0,Z.jsx)("div",{className:"image-frames",children:e.image_frames.map((function(e,i){return(0,Z.jsx)("img",{className:"image-frame",src:e,width:"100%"},i)}))}),(0,Z.jsx)("img",{alt:"",loading:"lazy",src:e?e.image:""})]})},i)}))})})},jn=l.memo(bn),wn=d.ZP.div.withConfig({componentId:"hhenml-0"})(["position:fixed;top:0;z-index:1000;min-height:",";min-height:-webkit-fill-available;width:100%;overflow:hidden;display:",";flex-direction:column;align-items:center;.index-container{width:100%;position:relative;display:flex;justify-content:space-between;font-size:16px;top:",";.mid{display:flex;justify-content:center;position:absolute;width:100%;.inner-container{display:flex;justify-content:center;.slash{margin-left:3px;margin-right:3px;}}}.right{margin-right:20px;z-index:10;}}.image{width:100%;height:",";position:absolute;top:92px;bottom:75px;}"],(function(e){return e.show?"100vh":"0"}),(function(e){return e.show?"flex":"none"}),(0,O.Ok)(61),(0,O.Ok)(500)),yn=d.ZP.div.withConfig({componentId:"hhenml-1"})(["background:transparent;width:",";height:",';display:flex;align-items:center;justify-content:center;background-image:url("/vImages/shared/popup-close.svg");background-size:contain;background-repeat:no-repeat;'],(0,O.Ok)(18),(0,O.Ok)(18)),On=function(e){var i=e.reviews,t=e.total_images_count,n=e.show,o=e.setShow,r=e.sorting,a=e.type,s=e.total_pages,c=e.imageApiPage,d=e.setImageApiPage,p=e.currentReviewPopupImageIndex,m=e.setCurrentReviewPopupImageIndex,u=e.currentReviewsForImagePopup,g=e.setCurrentReviewsForImagePopup,h=e.display_id,f=e.contract_id,x=(0,l.useState)(null),v=x[0],k=x[1],b=(0,l.useState)({}),j=b[0],w=b[1],y=(0,l.useState)(!1),O=y[0],N=y[1],_=function(){var e=(0,ne.Z)(re().mark((function e(i){var t;return re().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return d(i),e.next=3,(0,se.$G)({display_id:h,page:i,sorting:r,filter:a});case 3:t=e.sent,0==(0,mn.gn)(t.reviews,u).length&&i<=s&&_(i+1),d(i+1),g((function(e){return[].concat((0,qt.Z)(e),(0,qt.Z)((0,mn.gn)(t.reviews,u)))}));case 8:case"end":return e.stop()}}),e)})));return function(i){return e.apply(this,arguments)}}();return(0,l.useEffect)((function(){p>
1=0&&(w(i[p]),p==u.length-1&&c<=s&&_(c))}),[p]),(0,l.useEffect)((function(){n||(m(-1),N(!1)),n&&(v.update(),v.slideTo(p,1))}),[n]),(0,Z.jsxs)(wn,{className:"bg-black",id:"review-image-popup",show:n,children:[(0,Z.jsxs)("div",{className:"white index-container",children:[(0,Z.jsx)("div",{className:"left"}),(0,Z.jsx)("div",{className:"mid",children:(0,Z.jsxs)("div",{className:"inner-container",children:[(0,Z.jsx)("div",{children:p+1}),(0,Z.jsx)("div",{className:"slash",children:"/"}),(0,Z.jsx)("div",{children:t})]})}),(0,Z.jsx)("div",{className:"right",children:(0,Z.jsx)("div",{children:(0,Z.jsx)(yn,{onClick:function(){return o(!1)}})})})]}),(0,Z.jsx)("div",{className:"image",children:(0,Z.jsx)(jn,{reviews:i,setCurrentReviewPopupImageIndex:m,setSwiper:k,total_images_count:t})}),(0,Z.jsx)(fn,{contract_id:f,display_id:h,index:p,infoExpand:O,review:j,setInfoExpand:N})]})};On.defaultProps={contract_id:""};var Nn=On,_n=(0,d.iv)(["display:flex;flex-direction:column;justify-content:space-around;.block-header{display:flex;align-items:center;}.review-sub-title,.reviews-avg,.reviews-count{color:#9b9b9b;font-weight:normal;}.yellow-star{margin-left:",";height:12px;background-size:cover;}.reviews-avg{margin-left:8px;}.reviews-count{margin-left:4px;}.review-sub-title{font-size:",";text-align:left;padding-bottom:",";border-bottom:1px solid #e3e3e3;}.review-none-value{border-bottom:none;}.block-container{display:flex;flex-direction:column;}.review-item{padding:"," 0 "," 0;}.more-reviews-btn-container{display:flex;align-items:center;justify-content:center;padding-top:",";}.more-reviews-btn{border:1px solid ",";border-radius:18px;padding:"," ",";}.review-page-review-item{padding:"," 0;}"],(0,O.Ok)(12),(0,O.Ok)(12),(0,O.Ok)(12.5),(0,O.Ok)(12),(0,O.Ok)(16.5),(0,O.Ok)(8),(0,O.QT)("site-color"),(0,O.Ok)(4),(0,O.Ok)(16),(0,O.Ok)(12)),Cn=d.ZP.div.withConfig({componentId:"sc-1i1k2bs-0"})(["width:12px;"]),Zn=d.ZP.div.withConfig({componentId:"sc-1i1k2bs-1"})([".commodity-page-review-item{padding:"," 0 "," 0;border-bottom:1px solid #e3e3e3;}"],(0,O.Ok)(12),(0,O.Ok)(16.5)),In=!1,Pn=(0,d.ZP)((function(e){var i=e.reviews_info,t=e.className,n=e.display_id,o=e.contract_id,r=i.avg,a=void 0===r?"":r,s=i.count,d=void 0===s?"":s,p=i.reviews,m=void 0===p?[]:p,u=(0,l.useState)(null),g=u[0],h=u[1],f=(0,l.useState)(0),x=f[0],v=f[1],k=(0,l.useState)(0),b=k[0],j=k[1],w=(0,l.useState)(1),y=w[0],O=w[1],N=(0,l.useState)([]),_=N[0],C=N[1],I=(0,l.useState)(-1),P=I[0],T=I[1],S=(0,c.useRouter)(),F=0;(0,l.useEffect)((function(){In||(In=!0,(0,se.$G)({display_id:n,page:1,sorting:"default",filter:"all"}).then((function(e){h(e.info),C((0,mn.gn)(e.reviews,_,!0)),j(e.paging.total_pages)})))})),(0,l.useEffect)((function(){if(g){var e=g.images_count;v(e)}}),[g]);var Q=(0,l.useState)(!1),z=Q[0],D=Q[1],U=m.length>0;return(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsxs)(Zn,{className:" bg-white block text-center ".concat(t),id:"Rating",children:[(0,Z.jsxs)("div",{className:"block-header text-left",children:[(0,Z.jsx)("div",{children:"\u6574\u9ad4\u8a55\u50f9"}),(0,Z.jsx)(Cn,{className:"yellow-star"}),(0,Z.jsx)("div",{className:"reviews-avg small-font",children:a}),(0,Z.jsxs)("div",{className:"reviews-count small-font",children:["(",d,"\u5247\u8a55\u5206)"]})]}),(0,Z.jsx)("div",{className:"review-sub-title ".concat(U?"":"review-none-value"),children:0===parseFloat(a)?"\u5546\u54c1\u5c1a\u7121\u8a55\u50f9\uff0c\u8a55\u50f9\u8490\u96c6\u4e2d\uff01":"\u672c\u5206\u6578\u70ba\u8a72\u4f9b\u61c9\u5546\u53ca\u6b64\u5546\u54c1\u7d2f\u8a08\u92b7\u552e\u6210\u7e3e\u4e4b\u7d9c\u5408\u8a55\u5206"}),(0,Z.jsxs)("div",{className:"reviews-container",children:[m.map((function(e,i){return(0,Z.jsx)(l.Fragment,{children:(0,Z.jsx)(mn.Nh,{contract_id:o,customClass:"commodity-page-review-item",display_id:n,index:i,info:e,review_index:e.images.length>0?function(){var i=[];return e.images.forEach((function(){i.push(F++)})),i}():-1,setCurrentReviewPopupImageIndex:T,setShowImagePopup:D})},i)})),m.length>0?(0,Z.jsx)("div",{className:"more-reviews-btn-container",children:(0,Z.jsx)("div",{className:"more-reviews-btn site-color",onClick:function(){return S.push("/review/".concat(n))},children:"\u770b\u66f4\u591a\u8a55\u50f9"})}):(0,Z.jsx)(Z.Fragment,{})]})]}),(0,Z.jsx)(Nn,{contract_id:o,currentReviewPopupImageIndex:P,currentReviewsForImagePopup:_,display_id:n,imageApiPage:y,reviews:_,setCurrentReviewPopupImageIndex:T,setCurrentReviewsForImagePopup:C,setImageApiPage:O,setShow:D,show:z,sorting:"default",total_images_count:x,total_pages:b,type:"all"})]})})).withConfig({componentId:"sc-1i1k2bs-2"})([""," ",""],_n,z),Tn=(0,d.ZP)((function(e){var i=e.className,t=e.isOpen,n=e.setIsOpen,o=e.currentType,r=e.dis
1play_id,a=(0,l.useContext)(m.I),c=a.eventsRewardsInfo,d=a.loadRewardsData,p=(0,l.useState)({}),u=p[0],g=p[1];(0,l.useEffect)((function(){t&&("rewards"===o?h.Z.send("ClickRewards"):h.Z.send("ClickEvents"),s().empty(c)&&d(r)),g({})}),[t]);var f=s().not.empty(u)?function(){g({})}:null;return(0,Z.jsxs)("div",{className:i,children:[t&&s().empty(c)&&(0,Z.jsx)(Ve.Z,{visible:!0}),(0,Z.jsx)(Je.Z,{height:380,isOpen:t,lastAction:f,setIsOpen:n,title:u.subject||"\u76f8\u95dc\u6d3b\u52d5",children:s().not.empty(u)?(0,Z.jsx)("div",{className:"eventsRewardsSecondWrapper",dangerouslySetInnerHTML:{__html:u.content}}):c[o]?c[o].map((function(e,i){return(0,Z.jsxs)("div",{className:"eventsRewardsWrapper",onClick:function(){"rewards"===o?h.Z.send("ClickRewardsDetail",{order:i}):h.Z.send("ClickEventsDetail",{order:i}),g({subject:e.subject,content:e.content})},children:[(0,Z.jsx)("span",{className:"label border-radius site-color ".concat("events"===o?"event":"bank"),children:e.tag}),(0,Z.jsx)("span",{className:"line-clamp",children:e.subject}),(0,Z.jsx)(ue.Z,{className:"flex-end",icon:"chevron_right",page:"commodity"})]},e.id)})):(0,Z.jsx)("div",{})})]})})).withConfig({componentId:"sc-1eon18v-0"})(["",""],E),Sn=(0,d.ZP)((function(e){var i=e.className,t=e.commodity,n=e.display_id,o=(0,l.useState)(!1),a=o[0],c=o[1],d=(0,l.useState)(""),p=d[0],m=d[1],u=t.rewards,g=void 0===u?[]:u,h=t.events,f=void 0===h?[]:h,x=s().array(f)&&s().not.empty(f),v=s().array(g)&&s().not.empty(g),k=[],b=function(e){c(!0),m(e)};return x||v?(x&&(k=f.slice(0,6)),(0,Z.jsxs)("div",{className:"".concat(i," bg-white"),children:[v&&(0,Z.jsxs)("div",{className:"list-item d-flex justify-content-start",onClick:function(){return b("rewards")},children:[(0,Z.jsx)("div",{className:"sub-title",children:"\u56de\u994b"}),(0,Z.jsx)("div",{className:"label border-radius bank site-color",children:g[0].tag}),(0,Z.jsx)("div",{className:"ellipsis",children:g[0].subject}),(0,Z.jsx)(ue.Z,{className:"flex-end",icon:"chevron_right",page:"commodity"})]}),x&&k.map((function(e,i){return(0,Z.jsxs)("div",{className:"list-item d-flex justify-content-start",onClick:function(){return b("events")},children:[(0,Z.jsx)("div",{className:r()("sub-title",{empty:0!=i,white:0!=i}),children:0==i?"\u6d3b\u52d5":"\u7a7a\u767d"}),(0,Z.jsx)("div",{className:"label border-radius event site-color",children:e.tag}),(0,Z.jsx)("div",{className:"ellipsis",children:e.subject}),0==i&&(0,Z.jsx)(ue.Z,{className:"flex-end",icon:"chevron_right",page:"commodity"})]},i)})),x&&(null===f||void 0===f?void 0:f.length)>6&&(0,Z.jsxs)("div",{className:"list-item d-flex justify-content-start",children:[(0,Z.jsx)("div",{className:"sub-title empty white",children:"\u7a7a\u767d"}),(0,Z.jsx)("div",{className:"show-more",onClick:function(){return b("events")},children:"...\u67e5\u770b\u66f4\u591a\u512a\u60e0"})]}),(0,Z.jsx)(Tn,{currentType:p,display_id:n,isOpen:a,setIsOpen:c})]})):(0,Z.jsx)(Z.Fragment,{})})).withConfig({componentId:"sc-1tnyqdl-0"})(["",""],z),Fn=(0,d.ZP)((function(e){var i=e.className,t=e.isOpen,n=e.setIsOpen,o=e.display_id,r=(0,l.useContext)(m.I),a=r.guaranteeInfo,c=r.loadGuaranteeData;return(0,l.useEffect)((function(){t&&(h.Z.send("ClickGuarantee"),a||c(o))}),[t]),(0,Z.jsxs)("div",{className:i,children:[t&&s().empty(a)&&(0,Z.jsx)(Ve.Z,{visible:!0}),(0,Z.jsx)(Je.Z,{height:500,isOpen:t,setIsOpen:n,title:"\u76f8\u95dc\u4fdd\u969c",children:a&&null!==a&&void 0!==a&&a.web?(0,Z.jsx)("div",{dangerouslySetInnerHTML:{__html:a.web}}):(0,Z.jsx)("div",{})})]})})).withConfig({componentId:"k07egb-0"})(["",""],G),Qn=(0,d.ZP)((function(e){var i=e.className,t=e.isOpen,n=e.setIsOpen,o=e.display_id,r=(0,l.useContext)(m.I),a=r.paymentInfo,c=r.loadPaymentData,d=(0,l.useState)([]),p=d[0],u=d[1];(0,l.useEffect)((function(){t&&(h.Z.send("ClickPaymentInfo"),s().empty(a)&&c(o))}),[t]);var g=s().not.empty(p)?function(){u([])}:null;return(0,Z.jsxs)("div",{className:i,children:[t&&s().empty(a)&&(0,Z.jsx)(Ve.Z,{visible:!0}),(0,Z.jsx)(Je.Z,{height:500,isOpen:t,lastAction:g,setIsOpen:n,title:"\u4ed8\u6b3e\u65b9\u5f0f",children:s().not.empty(p)?(0,Z.jsx)("div",{children:p.map((function(e,i){return(0,Z.jsxs)("div",{className:"bankInfo",children:[(0,Z.jsx)("div",{className:"installment",children:e.installment}),(0,Z.jsx)("div",{className:"content",children:e.content})]},i)}))}):(0,Z.jsx)(Z.Fragment,{children:s().not.empty(a)?(0,Z.jsxs)("div",{children:[s().not.empty(p)?(0,Z.jsx)("div",{children:p.map((function(e,i){return(0,Z.jsxs)("div",{children:[e.installment,e.content]},i)}))}):(0,Z.jsxs)("div",{children:[(0,Z.jsxs)("div",{className:" announce d-flex justify-content-center tiny-font al
1ign-items-center",children:[(0,Z.jsx)("img",{src:"/vImages/commodity/shell.svg"}),(0,Z.jsx)("span",{children:"\u63a1\u7528SSL 256 bits\u6700\u9ad8\u5b89\u5168\u7b49\u7d1a\u52a0\u5bc6\u6a5f\u5236 \u4ed8\u6b3e\u8cc7\u8a0a\u4e0d\u5916\u6d29"})]}),a.payments.map((function(e,i){return function(e,i){if("creditcard_installment"===e.method){var t=e.creditcard_installment,n=t.bank_count,o=t.banks,r=t.interest_rate_limit;return(0,Z.jsxs)("div",{children:[(0,Z.jsxs)("div",{className:"payment".concat(r||e.notice?" no-border":""),children:[(0,Z.jsx)("div",{children:e.title}),(0,Z.jsxs)("div",{className:"bank-count",onClick:function(){return u(o)},children:[n,(0,Z.jsx)("img",{className:"chevron",src:"/vImages/cart/chevron-right.svg"})]})]}),r&&(0,Z.jsx)("div",{children:(0,Z.jsx)(S.vF,{children:r})}),e.notice&&(0,Z.jsx)("div",{className:"interest_rate_limit",children:(0,Z.jsx)(S.vF,{children:e.notice})})]},i)}if("creditcard_red"===e.method){var a=e.creditcard_red,s=a.title,c=a.web_link;return(0,Z.jsx)("div",{children:(0,Z.jsxs)("div",{className:"payment",children:[(0,Z.jsx)("div",{children:e.title}),(0,Z.jsx)("a",{className:"link",href:c,target:"blank",children:(0,Z.jsx)("span",{children:s})})]})},i)}return(0,Z.jsxs)("div",{className:"payment",children:[(0,Z.jsxs)("div",{children:[e.title,(0,Z.jsx)("span",{className:"fee_notice",children:e.fee_notice})]}),e.icons&&(0,Z.jsx)("div",{className:"icons",children:e.icons.map((function(e,i){return(0,Z.jsx)("img",{src:e},i)}))})]},i)}(e,i)}))]}),(0,Z.jsx)("div",{className:"invoice",children:a.invoice})]}):(0,Z.jsx)("div",{})})})]})})).withConfig({componentId:"sc-1pvrgtc-0"})(["",""],G),zn=t(96864),Dn=(0,d.ZP)((function(e){var i=e.className,t=e.isOpen,n=e.setIsOpen,o=e.currentType,a=e.display_id,c=(0,l.useContext)(m.I),d=c.shippingInfo,p=c.loadShippingData;return(0,l.useEffect)((function(){t&&("shipping"===o?h.Z.send("ClickShipmentInfo"):h.Z.send("ClickShipmentFee"),s().empty(d)&&p(a))}),[t]),(0,Z.jsxs)("div",{className:i,children:[t&&s().empty(d)&&(0,Z.jsx)(Ve.Z,{visible:!0}),(0,Z.jsx)(Je.Z,{height:500,isOpen:t,setIsOpen:n,title:"shipping"===o?"\u51fa\u8ca8\u8207\u914d\u9001":"\u904b\u8cbb\u8cc7\u8a0a",children:s().not.empty(d)?(0,Z.jsx)(Z.Fragment,{children:"shipping"===o?(0,Z.jsxs)("div",{children:[(0,Z.jsxs)("div",{className:"shipping-info",children:[(0,Z.jsx)("div",{className:"title",children:"\u51fa\u8ca8\u8cc7\u8a0a"}),(0,Z.jsxs)("div",{className:"content",children:[(0,Z.jsxs)("div",{className:"d-flex justify-content-start ".concat(d.note?"add-margin":""),children:["express"===d.type?(0,Z.jsx)(ue.Z,{className:"shipping-icon",icon:"fastshipping",page:"commodity"}):(null===d||void 0===d?void 0:d.title)&&(0,Z.jsx)("span",{className:"coupon-label",children:d.title}),(0,Z.jsx)("div",{className:"small-content",children:(0,Z.jsx)(zn.q,{shipping:d})})]}),(0,Z.jsx)("div",{className:"note",children:(0,T.wn)(d.note.replace("\n","<br />"))})]})]}),d.adult_pack&&(0,Z.jsxs)("div",{className:"shipping-info",children:[(0,Z.jsx)("div",{className:"title",children:"\u5b89\u5fc3\u5305\u88dd"}),(0,Z.jsx)("div",{className:"content",children:(0,Z.jsx)("div",{children:d.adult_pack})})]}),(0,Z.jsxs)("div",{className:"shipping-info",children:[(0,Z.jsx)("div",{className:"title",children:"\u914d\u9001\u8cc7\u8a0a"}),(0,Z.jsx)("div",{className:"content",children:(0,Z.jsx)("div",{children:(0,T.wn)(d.information.replace("\n","<br />"))})})]})]}):(0,Z.jsx)("div",{children:null===d||void 0===d?void 0:d.methods.map((function(e,i){return(0,Z.jsxs)("div",{className:"shipping-info",children:[(0,Z.jsx)("div",{className:"title",children:e.title}),(0,Z.jsx)("div",{className:"content",children:(0,Z.jsxs)("div",{className:"fee",children:[(0,Z.jsx)("span",{className:r()("origin-fee",{"delete-fee":null===e||void 0===e?void 0:e.shipping_event}),children:e.fee}),(0,Z.jsx)("span",{className:"event-fee",children:null===e||void 0===e?void 0:e.shipping_event})]})})]},i)}))})}):(0,Z.jsx)("div",{})})]})})).withConfig({componentId:"qgmkl4-0"})(["",""],R),Un=t(12622),An=(0,d.ZP)((function(e){var i=e.className,t=e.commodity,n=e.display_id,o=(0,l.useState)(!1),a=o[0],c=o[1],d=(0,l.useState)(!1),p=d[0],m=d[1],u=(0,l.useState)(!1),g=u[0],h=u[1],f=(0,l.useState)(""),x=f[0],v=f[1],k=t.shipping,b=t.payments,j=t.guarantee,w=t.extra_banner,y=function(e){c(!0),v(e)};return(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsxs)("div",{className:"".concat(i," bg-white"),children:[(null===k||void 0===k?void 0:k.title)&&(0,Z.jsxs)("div",{className:"list-item d-flex justify-content-start",onClick:function(){return y("shipping")},children:[(0,Z.jsx)("div",{className:"sub-title",children:"\u51fa\u8ca8"}),"express"===(null===k||void 0===k?void 0:k.type)?(0,Z.jsx)(ue.Z,{icon:"fastshipping",page:"commodity"}):(0,Z.jsx)("div",{className:"label border-radius site-color",children:k.title}),(0,Z.jsx)(zn.q,{shipping:k}),(0,Z.jsx)(ue.Z,{className:"flex-end",icon:"chevron_right",page:"commodity"})]}),(0,Z.jsxs)("div",{className:"list-item d-flex justify-content-start",children:[(0,Z.jsx)("div",{className:"sub-title",children:"\u914d\u9001"}),(0,Z.jsx)("div",{children:k.method_title}),s().not.empty(k.method_icons)&&k.method_icons.map((function(e,i){return(0,Z.jsx)("img",{className:"shipping-img",loading:"lazy",src:e},i)}))]}),(0,Z.jsxs)("div",{className:"list-item d-flex justify-content-start",onClick:function(){return y("methods")},children:[(0,Z.jsx)("div",{className:"sub-title",children:"\u904b\u8cbb"}),(0,Z.jsxs)("div",{className:"fee",children:[(0,Z.jsx)("span",{className:r()("origin-fee",{"delete-fee":null===k||void 0===k?void 0:k.shipping_event}),children:k.fee}),(0,Z.jsx)("span",{className:"event-fee",children:null===k||void 0===k?void 0:k.shipping_event})]}),(0,Z.jsx)(ue.Z,{className:"flex-end",icon:"chevron_right",page:"commodity"})]}),(0,Z.jsxs)("div",{className:"list-item d-flex justify-content-start",onClick:function(){return m(!0)},children:[(0,Z.jsx)("div",{className:"sub-title",children:"\u4ed8\u6b3e"}),(0,Z.jsx)("div",{children:b}),(0,Z.jsx)(ue.Z,{className:"flex-end",icon:"chevron_right",page:"commodity"})]}),(0,Z.jsx)("hr",{className:"break"}),(0,Z.jsxs)("div",{className:"list-item d-flex justify-content-start",onClick:function(){return h(!0)},children:[(0,Z.jsx)("div",{className:"sub-title",children:"\u4fdd\u969c"}),(0,Z.jsx)("div",{children:j}),(0,Z.jsx)(ue.Z,{className:"flex-end",icon:"chevron_right",page:"commodity"})]}),w&&(0,Z.jsx)(Un.Z,{displayId:n,extraBanner:w})]}),(0,Z.jsx)(Dn,{currentType:x,display_id:n,isOpen:a,setIsOpen:c}),(0,Z.jsx)(Qn,{display_id:n,isOpen:p,setIsOpen:m}
1),(0,Z.jsx)(Fn,{display_id:n,isOpen:g,setIsOpen:h})]})})).withConfig({componentId:"cjls0p-0"})(["",""],z),En=t(7333),qn=(0,d.iv)(["background-color:#fff;margin-bottom:",";.store-info{display:flex;justify-content:space-between;align-items:center;padding:"," "," 0;.store-details{display:flex;gap:",";}.store-name{max-width:",";overflow:hidden;text-overflow:ellipsis;}.store-image{height:",";border-radius:",";}.store-cta-btn{flex-shrink:0;width:",";height:",";border:1px solid #ff6b00;border-radius:",";padding:"," 0;text-align:center;color:#ff6b00;font-weight:500;background-color:inherit;cursor:pointer;}}.store-text-fields{padding:"," ",";display:flex;gap:",";.text-wrapper{display:flex;gap:",";}.divider{color:#e3e3e3;}}"],(0,O.Ok)(8),(0,O.Ok)(12),(0,O.Ok)(16),(0,O.Ok)(12),(0,O.Ok)(128),(0,O.Ok)(64),(0,O.Ok)(8),(0,O.Ok)(126),(0,O.Ok)(42),(0,O.Ok)(8),(0,O.Ok)(10),(0,O.Ok)(12),(0,O.Ok)(16),(0,O.Ok)(12),(0,O.Ok)(4)),Bn=(0,d.ZP)((function(e){var i=e.className,t=e.store,n=t.link,o=void 0===n?"":n,r=t.image_url,a=void 0===r?"":r,s=t.store_name,c=void 0===s?"":s,l=t.button_text,d=void 0===l?"":l,p=t.text_fields,m=void 0===p?[]:p;return(0,Z.jsxs)("div",{className:i,onClick:function(){!function(){var e={event:"pageview",ref:"".concat(P.iw,"_item_store")};(0,En.qP)("pageview",{dejavu_payload:(0,En.PL)(e)}),window.open(o,"_blank")}()},children:[(0,Z.jsxs)("div",{className:"store-info",children:[(0,Z.jsxs)("div",{className:"store-details",children:[(0,Z.jsx)("img",{className:"store-image",src:a}),(0,Z.jsx)("h3",{className:"store-name",children:c})]}),(0,Z.jsx)("button",{className:"store-cta-btn",children:d})]}),(0,Z.jsx)("div",{className:"store-text-fields",children:m.map((function(e,i){return(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)("span",{className:"text-wrapper",children:e.map((function(e){return(0,Z.jsx)("span",{className:"text",style:{color:e.color},children:e.text},e)}))},i),i!==m.length-1&&(0,Z.jsx)("span",{className:"divider",children:"|"})]})}))})]})})).withConfig({componentId:"qe8jxa-0"})(["",""],qn),Rn=(0,d.ZP)((function(e){var i,t,o,a,d,w=e.className,y=e.tagsIconSheet,O=e.closePreselectModal,N=e.openPreselectModal,_=e.preselectModalOpen,C=(0,l.useRef)(),P=(0,l.useContext)(u.kn),T=P.logining,S=P.allowAdult,F=(0,l.useContext)(m.I),Q=F.affiliateWording,z=F.commodity,D=F.display_id,U=F.loginCouponData,A=F.preSelect,E=F.recommendData,q=(0,l.useContext)(g.L).showDownload,B=(0,x.z)().data,R=(0,c.useRouter)(),G=E.best_sellers_rank,M=void 0===G?[]:G,L=E.grid_recommends,J=void 0===L?[]:L,V=E.merchant_recommends,W=void 0===V?[]:V,$=E.recommends,Y=void 0===$?[]:$,X=z.activities,K=void 0===X?{}:X,ee=z.adult,te=void 0!==ee&&ee,ne=z.business_information,oe=void 0===ne?{}:ne,re=z.categories,ae=void 0===re?{}:re,se=z.comparison_report,ce=z.description,le=void 0===ce?"":ce,de=z.discount_info,pe=void 0===de?{}:de,me=z.merchant,ue=void 0===me?{}:me,ge=z.new_product_tags,he=void 0===ge?[]:ge,fe=z.options,xe=void 0===fe?[]:fe,ke=z.placards,be=void 0===ke?[]:ke,we=z.reviews_info,ye=void 0===we?{}:we,Oe=z.source_site,Ne=void 0===Oe?"":Oe,Ce=z.specification,Ze=void 0===Ce?"":Ce,Ie=z.tags,Pe=void 0===Ie?"":Ie,Te=z.store,Se=void 0===Te?{}:Te,Fe=function(e){var i=e.excludePositions;return e.positions.filter((function(e){var t=(0,n.Z)(e,1)[0];return!i.includes(t)}))}({excludePositions:Ze?[]:["Specification"],positions:f.m7}),ze=(0,l.useState)(!1),Ue=ze[0],Ae=ze[1];return(0,l.useEffect)((function(){Q&&Ae(!0)}),[Q]),(0,l.useEffect)((function(){T||h.Z.send("ViewItem",{commodity:z,ref:R.query.ref||""})}),[T]),(0,l.useEffect)((function(){A.isOpen&&h.Z.send("ViewItemPackage",{commodity:z,from:A.from})}),[A.isOpen]),(0,l.useEffect)((function(){(0,p.Jn)().includes("m_search_product")&&sessionStorage.setItem("fromSearch",!0)}),[]),(0,Z.jsxs)("div",{className:"".concat(w," small-font"),children:[(0,Z.jsx)(St,{positions:Fe,showDownload:q}),(0,Z.jsx)(Pt,{discount_info:pe,display_id:D,modalRef:C,openPreselectModal:N}),s().object(null===z||void 0===z?void 0:z.alcohol)&&s().not.empty(null===z||void 0===z?void 0:z.alcohol)&&(0,Z.jsxs)("a",{className:"verify d-flex justify-content-center align-items-center",href:(null===z||void 0===z||null===(i=z.alcohol)||void 0===i||null===(t=i.cta)||void 0===t?void 0:t.link)+"#ref=m_item_verify",children:[(0,Z.jsx)("span",{className:"white tiny-font verify-content",children:null===z||void 0===z||null===(o=z.alcohol)||void 0===o?void 0:o.wording}),(0,Z.jsx)("div",{className:"verify-ctn small-font",children:null===z||void 0===z||null===(a=z.alcohol)||void 0===a||null===(d=a.cta)||void 0===d?void 0:d.text})]}),s().not.empty(Se)&&s().not.null(Se)&&(0,Z.jsx)(Bn,{store:Se}),(0,Z.jsx)(ki,{discount_info:pe,display_id:D}),(0,Z.jsx)(An,{commodity:z,display_id:D}),(0,Z.jsx)(Sn,{commodity:z,display_id:D}),(0,Z.jsx)(I,{activities:K||{}}),(0,Z.jsx)(_e,{categories:ae}),(0,Z.jsx)(Tt,{merchant:ue,source_site:Ne}),W&&W.length>0&&(0,Z.jsx)(pn,{data:W,header:"\u540c\u5e97\u63a8\u85a6",type:"recommendSameStore"}),M&&M.length>0&&(0,Z.jsx)(ie,{data:M,header:"\u71b1\u92b7\u63a8\u85a6\u699c",tagsIcon:B.tags_icon,type:"recommendTopSales"}),Y&&Y.length>0&&(0,Z.jsx)(pn,{data:Y,header:"\u76f8\u95dc\u63a8\u85a6",tagsIcon:B.tags_icon,type:"recommendSimilarity"}),se&&(0,Z.jsx)(De,{comparison_report:se}),(0,Z.jsx)(Et,{commodity:z,loginCouponData:U}),(0,Z.jsx)(Dt,{options:xe}),(0,Z.jsx)(Me,{description:le,specification:Ze}),(0,Z.jsx)(Pn,{contract_id:z.contract_id,display_id:D,reviews_info:ye}),(0,Z.jsx)(je,{businessInfomation:oe}),(0,Z.jsx)(Qe,{categories:ae,tags:Pe}),(0,Z.jsx)(zt,{newproducttags:he}),J&&J.length>0&&(0,Z.jsx)(Oi,{recommends:J,tagsIconSheet:y,type:"gridRecommendSimilarity"}),te&&!S&&(0,Z.jsx)(H,{}),(0,Z.jsx)("div",{children:(0,Z.jsx)(ve,{display_id:D,modalRef:C,openPreselectModal:N})}),(0,Z.jsxs)(k.Z,{children:[(0,Z.jsx)(k.Z.FloatingButton,{refPrefix:"item",showFloatingButtons:!0}),(0,Z.jsx)(k.Z.GoTop,{}),(0,Z.jsx)(k.Z.GrayBar,{page:"item"}),(0,Z.jsx)(k.Z.CouponOverLay,{page:"item"})]}),A.isOpen&&(0,Z.jsx)(ji.Z,{}),(0,Z.jsx)(b.Z,{alert:!0,content:Q||"",setShow:Ae,show:Ue,title:"\u56de\u994b\u8aaa\u660e"}),(0,Z.jsx)(bi,{}),(0,Z.jsx)(j.Z,{placards:be}),(0,Z.jsx)(v.Z,{borderRadius:8,className:r()("",{"drawer-wrapper":_}),closeModal:function(){O()},ratioHeight:"80%",ref:C,children:(0,Z.jsx)(an,{commodity:z,modalRef:C})})]})})).withConfig({componentId:"y8nnu4-0"})(["",""],F)},86589:function(e,i,t){t.d(i,{Z:function(){return T}});var n=t(67294),o=t(50445),r=t(39659),a=t(85893),s=o.ZP.button.withConfig({componentId:"clid
1d6-0"})(["border:0;border-radius:4px;background:white;color:",";height:",";width:",";"],(0,r.QT)("dark-90"),(0,r.Ok)(40),(function(e){return(0,r.Ok)(e.width)})),c=function(e){var i=e.wording,t=e.width,n=e.callback;return(0,a.jsx)(s,{onClick:n,width:t,children:i})};c.defaultProps={wording:"\u53d6\u6d88",width:149.5,callback:null};var l=c,d=o.ZP.button.withConfig({componentId:"sc-4bw7r7-0"})(["border:0;border-radius:4px;background:",";height:",";width:",";color:white;"],(0,r.QT)("siteColor"),(0,r.Ok)(40),(function(e){return(0,r.Ok)(e.width)})),p=function(e){var i=e.wording,t=e.width,n=e.callback;return(0,a.jsx)(d,{onClick:n,width:t,children:i})};p.defaultProps={wording:"\u78ba\u8a8d",width:149.5,callback:null};var m=p,u=o.ZP.div.withConfig({componentId:"sc-1jiphv4-0"})(["display:flex;padding-top:",";border-top:1px solid rgba(227,227,227,1);justify-content:",";button:last-child{margin-left:",";}button:first-child{margin-left:0;}"],(0,r.Ok)(16),(function(e){switch(e.align){case"center":return"space-between";case"left":return"flex-start";case"right":return"flex-end";case"around":return"space-around"}}),(0,r.Ok)(12)),g=function(e){var i=e.align,t=e.children;return(0,a.jsx)(u,{align:i,children:t&&n.Children.map(t,(function(e){return n.cloneElement(e)}))})};g.CancelButton=l,g.ConfirmButton=m,g.defaultProps={align:"center"};var h=g,f=o.ZP.div.withConfig({componentId:"sc-1quoe4h-0"})(["font-size:",";margin-top:",";margin-bottom:",";"],(0,r.Ok)(16),(0,r.Ok)(16),(0,r.Ok)(16.5)),x=function(e){var i=e.content;return(0,a.jsx)(f,{children:i})};x.defaultProps={content:""};var v=x,k=o.ZP.div.withConfig({componentId:"yq5qoq-0"})(['background:url("/vImages/cart/drawer-close.svg");width:',";height:",";background-size:cover;"],(0,r.Ok)(24),(0,r.Ok)(24)),b=function(){return(0,a.jsx)(k,{})},j=function(e){var i=e.title;return(0,a.jsx)("div",{children:i})},w=o.ZP.div.withConfig({componentId:"gn80d1-0"})(["height:",";.header-container{display:flex;.title{position:absolute;left:",";color:",";font-size:",";}.close-btn{position:absolute;right:",";}}"],(0,r.Ok)(28),(0,r.Ok)(16),(0,r.QT)("dark-90"),(0,r.Ok)(20),(0,r.Ok)(16)),y=function(e){var i=e.title,t=e.close,n=e.closeCb;return(0,a.jsx)(w,{children:(0,a.jsxs)("div",{className:"header-container",children:[i&&(0,a.jsx)("div",{className:"title",children:(0,a.jsx)(j,{title:i})}),t&&(0,a.jsx)("div",{className:"close-btn",onClick:n,children:(0,a.jsx)(b,{})})]})})};y.defaultProps={title:"",close:!1,closeCb:function(){}};var O=y,N=o.ZP.div.withConfig({componentId:"ywguo0-0"})(["height:",";text-align:center;color:",";font-size:",";margin-top:",";"],(0,r.Ok)(16),(0,r.QT)("dark-60"),(0,r.Ok)(12),(0,r.Ok)(16)),_=function(e){var i=e.remind;return(0,a.jsx)(N,{children:i})};_.defaultProps={remind:""};var C=_,Z=o.ZP.div.withConfig({componentId:"sc-1ee56yz-0"})(["display:",";position:fixed;width:100%;height:100%;top:0;left:0;background:",";align-items:center;justify-content:center;z-index:999;"],(function(e){return e.show?"flex":"none"}),(function(e){return e.background})),I=o.ZP.div.withConfig({componentId:"sc-1ee56yz-1"})(["background:white;width:",";min-height:",";border:4px;padding:",";display:flex;flex-direction:column;justify-content:space-between;border-radius:4px;position:relative;"],(function(e){return(0,r.Ok)(e.width)}),(0,r.Ok)(150),(0,r.Ok)(16)),P=function(e){var i=e.show,t=e.width,o=e.background,r=e.children;return(0,a.jsx)(Z,{background:o,show:i,children:i&&(0,a.jsx)(I,{width:t,children:r&&n.Children.map(r,(function(e){return n.cloneElement(e)}))})})};P.Header=O,P.Content=v,P.ButtonsContainer=h,P.RemindText=C,P.defaultProps={width:343,background:"transparent"};var T=P},30021:function(e,i,t){var n=t(67294),o=t(20792),r=t(85893),a=(0,n.forwardRef)((function(e,i){var t=e.ratioHeight,a=e.heightAuto,s=e.height,c=e.children,l=e.onBackdropClick,d=e.className,p=(0,n.useState)(!1),m=p[0],u=p[1],g=(0,n.useState)(0),h=g[0],f=g[1],x=function(){f(2),u(!1)};return(0,n.useImperativeHandle)(i,(function(){return{isOpen:m,openModal:function(){f(1),u(!0)},closeModal:x}})),(m||0!==h)&&(m||3!==h)?(0,r.jsxs)(o.Z,{className:d,height:s,heightAuto:a,isOpen:m,ratioHeight:t,children:[m&&(0,r.jsx)("div",{className:"backdrop",onClick:function(){l(),x()}}),(0,r.jsx)("div",{className:"modal",onAnimationEnd:function(){m||2!==h||f(3)},ref:i,children:c})]}):null}));a.displayName="DrawerWrapper",a.defaultProps={height:450,heightAuto:!1,children:null,onBackdropClick:function(){},ratioHeight:null},i.Z=a},28661:function(e,i,t){t.d(i,{BB:function(){return a},TB:function(){return l},d9:function(){return c},kY:function(){return s},vF:function(){return d}});var n=t(50445),o=t(76871),r=t(39659),a=(n.ZP.span.withConfig({componentId:"sc-1fdh3yu-0"})(["font-size:",";line-height:",";"],o.Jq?(0,r.Ok)(30):"30px",o.Jq?(0,r.Ok)(42):"42px"),n.ZP.span.withConfig({componentId:"sc-1fdh3yu-1"})(["font-size:",";line-height:",";"],o.Jq?(0,r.Ok)(28):"28px",o.Jq?(0,r.Ok)(40):"40px"),n.ZP.span.withConfig({componentId:"sc-1fdh3yu-2"})(["font-size:",";line-height:",";"],o.Jq?(0,r.Ok)(24):"24px",o.Jq?(0,r.Ok)(34):"34px"),n.ZP.span.withConfig({componentId:"sc-1fdh3yu-3"})(["font-size:",";line-height:",";"],o.Jq?(0,r.Ok)(20):"20px",o.Jq?(0,r.Ok)(28):"28px")),s=n.ZP.span.withConfig({componentId:"sc-1fdh3yu-4"})(["font-size:",";line-height:",";font-weight:",";"],o.Jq?(0,r.Ok)(18):"18px",o.Jq?(0,r.Ok)(24):"24px",(function(e){return e.bold?"bold":"normal"})),c=n.ZP.span.withConfig({componentId:"sc-1fdh3yu-5"})(["font-size:",";line-height:",";"],o.Jq?(0,r.Ok)(16):"16px",o.Jq?(0,r.Ok)(22):"22px"),l=n.ZP.span.withConfig({componentId:"sc-1fdh3yu-6"})(["font-size:",";line-height:",";"],o.Jq?(0,r.Ok)(14):"14px",o.Jq?(0,r.Ok)(20):"20px"),d=n.ZP.span.withConfig({componentId:"sc-1fdh3yu-7"})(["font-size:",";line-height:",";"],o.Jq?(0,r.Ok)(12):"12px",o.Jq?(0,r.Ok)(14):"14px");n.ZP.span.withConfig({componentId:"sc-1fdh3yu-8"})(["font-size:",";line-height:",";"],o.Jq?(0,r.Ok)(10):"10px",o.Jq?(0,r.Ok)(16):"16px")}}]);

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.