PageSourceSearch

http://www.storexppen.es/_nuxt/1Vk5HlXi.js

js storexppen.es collected 2026-09-26 03:18:36 UTC 35,230 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./CZdskggp.js","./e70eX59T.js","./C-X-zbxt.js","./BW8XdN5T.js","./DVw6L2IV.js","./entry.qMaPnK2u.css","./Yo7J_eos.js","./BOVZfyZy.js","./B2TcdqVY.js","./DLEk_ywu.js","./Dtecwpyw.js","./CPCfUMhX.js","./IUTbEgma.js","./index.BJDjTz-Q.css","./order.SGDB8GG3.css","./BaEdSPx5.js","./index.azlZmD2w.css","./Result.1QFFYf0n.css","./PaymentRiskControlFail.B64W-qGN.css","./index.BsoSh4LY.css","./useSeelEWCart.DVOyDmIw.css","./ChaKNw7s.js","./DpkZH7g2.js","./3UDwCCWS.js","./DbhodJ3I.js","./StoreSiteSwitch.B9M_r6hg.css","./index.My_WA-NL.css","./assetSizeHints.BCC4ZQ6M.css","./update.gwZ8UGbp.css","./ShopCart.BqimoF0d.css"])))=>i.map(i=>d[i]);
2var We=Object.defineProperty,Ye=Object.defineProperties;var Je=Object.getOwnPropertyDescriptors;var Fe=Object.getOwnPropertySymbols;var Ke=Object.prototype.hasOwnProperty,Xe=Object.prototype.propertyIsEnumerable;var Ie=(u,p,s)=>p in u?We(u,p,{enumerable:!0,configurable:!0,writable:!0,value:s}):u[p]=s,se=(u,p)=>{for(var s in p||(p={}))Ke.call(p,s)&&Ie(u,s,p[s]);if(Fe)for(var s of Fe(p))Xe.call(p,s)&&Ie(u,s,p[s]);return u},ce=(u,p)=>Ye(u,Je(p));var G=(u,p,s)=>new Promise((w,b)=>{var d=L=>{try{g(s.next(L))}catch(P){b(P)}},v=L=>{try{g(s.throw(L))}catch(P){b(P)}},g=L=>L.done?w(L.value):Promise.resolve(L.value).then(d,v);g((s=s.apply(u,p)).next())});import{b as Re,S as Be,A as Qe,a as Ne}from"./DxK_XjjR.js";import{N as Ve}from"./BybVBdDW.js";import{b as Ze}from"./Yo7J_eos.js";import{m as M,n as oe,o as De,d as be,i as xe,Y as f,K as o,R as e,O as U,N as S,u as t,L as A,S as V,F as W,Z as K,a3 as N,W as et,J as X,ag as tt,M as ye,C as ue,f as ae,z as nt,a5 as st,a6 as at,j as He,U as Z,T as ze,a9 as ot,ab as it,p as $e,q as Te,h as lt}from"./C-X-zbxt.js";import{_ as ie,f as he,v as de,L as rt,h as ct,b as dt,ao as ut,o as pt,c as ft,s as we,U as gt,T as _t}from"./e70eX59T.js";import{u as le,a as mt,c as vt,b as xt}from"./D6HSoeJ1.js";import{C as te,a as ne,P as yt,_ as bt,b as ht,d as ve}from"./Brr442e_.js";import"./DXB7Srng.js";import{_ as wt}from"./BOVZfyZy.js";import{P as Ct}from"./B2TcdqVY.js";import{_ as kt,d as St,c as Et}from"./CPCfUMhX.js";import{_ as Ft,a as It,b as $t,c as Tt,d as Lt}from"./IUTbEgma.js";import"./BDiRKyTz.js";import"./BW8XdN5T.js";import"./DVw6L2IV.js";import"./CmBvvoHy.js";import"./DbhodJ3I.js";import"./D-dp0DZJ.js";import"./DLEk_ywu.js";import"./Dtecwpyw.js";import"./BaEdSPx5.js";(function(){try{var u=typeof window!="undefined"?window:typeof global!="undefined"?global:typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:{};u.SENTRY_RELEASE={id:"f9b0ef460ef6f95b1d7f321428c950242b680c25"};var p=new u.Error().stack;p&&(u._sentryDebugIds=u._sentryDebugIds||{},u._sentryDebugIds[p]="e86c4b5e-7610-4763-95e9-22d45f3a6f87",u._sentryDebugIdIdentifier="sentry-dbid-e86c4b5e-7610-4763-95e9-22d45f3a6f87")}catch(s){}})();const Ce=Symbol("seriesFilterExpand");function At(){const u=M({});return{expandedSections:u,toggleSection:w=>{u.value[w]=!u.value[w]},syncExpandedSections:w=>{if(!w.length)return;const b=w.some(d=>d.item.some(v=>v.selected===1));w.forEach((d,v)=>{u.value[d.tag_id]=b?d.item.some(g=>g.selected===1):v===0})}}}const Me=Symbol("seriesStickyOffset"),Le=65,Ae="navbar_header_height",Pe="series-category-floating-nav",Oe=u=>{if(!u)return 0;const p=u.getBoundingClientRect();return p.height<=0||p.bottom<=0?0:p.bottom};function Ue(u=0){const p=M(Le+u),s=()=>{if(typeof window=="undefined")return;const v=Oe(document.getElementById(Ae)),g=Oe(document.getElementById(Pe)),L=Math.max(v,g,0);p.value=Math.round(L||Le)+u};let w=null,b=null;oe(()=>{if(s(),window.addEventListener("resize",s,{passive:!0}),window.addEventListener("scroll",s,{passive:!0}),typeof ResizeObserver!="undefined"){const v=document.getElementById(Ae);v&&(w=new ResizeObserver(s),w.observe(v));const g=document.getElementById(Pe);g&&(b=new ResizeObserver(s),b.observe(g))}}),De(()=>{window.removeEventListener("resize",s),window.removeEventListener("scroll",s),w==null||w.disconnect(),b==null||b.disconnect(),w=null,b=null});const d=be(()=>({top:`${p.value}px`,maxHeight:`calc(100vh - ${p.value}px)`}));return{offsetTop:p,stickyPanelStyle:d,syncOffset:s}}const Pt={class:"filter-header flex shrink-0 justify-between items-center border-b border-[#DFE3E6] py-4"},Ot={class:"flex items-center gap-2"},Rt={class:"min-w-0 truncate"},Bt={key:0,class:"selected-filters shrink-0 border-b border-[#DFE3E6] pb-4"},Nt={class:"flex flex-wrap gap-2"}
2,Vt={class:"text-[12px] text-[#69727C] font-medium leading-[16px]"},Dt={class:"text-[12px] font-medium leading-[18px] text-[#69727C]"},Ht=["onClick"],zt={key:0,class:"filter-section-content overflow-hidden"},Mt=["onClick"],Ut={class:"flex shrink-0 items-center justify-center",style:{width:"20px",height:"20px"}},jt=["innerHTML"],Gt=["onClick"],qt={class:"text-[12px] font-medium leading-[18px] text-[#69727C]"},Wt={key:0,class:"bg-white py-[12px]"},Yt={__name:"FilterPanel",props:{initialFilters:{type:Array,default:()=>[]},catId:{type:[String,Array],required:!0},onTagItemClick:{type:Function,default:null},onResetAllFilters:{type:Function,default:null}},setup(u){var j,x;const{t:p}=he(),s=xe(Me,null),{stickyPanelStyle:w}=s!=null?s:Ue(),b=u,d=le(),v=xe(Ce),g=(j=v==null?void 0:v.expandedSections)!=null?j:M({}),L=(x=v==null?void 0:v.toggleSection)!=null?x:()=>{},P=M(!1),O=M({}),y=M(null),D=(n,a)=>G(this,null,function*(){if(y.value===null)try{if(y.value=a,b.onTagItemClick){const i=d.tagList.find(c=>c.tag_id===n),F=i==null?void 0:i.item.find(c=>c.tag_id===a);i&&F&&(yield b.onTagItemClick(i,F))}else d.toggleTagItem(n,a),d.updatePagination(1),yield d.fetchSeriesGoods(b.catId)}finally{y.value=null}}),h=()=>{P.value=!P.value},H=n=>{O.value[n]=!O.value[n]},R=n=>G(this,null,function*(){if(y.value===null)try{y.value="remove-"+n;const a=d.selectedFilters[n];if(a){const i=a.trim();let F=null,c=null;for(const T of d.tagList){const _=T.item.find(l=>l.tag_name===i);if(_){F=T,c=_;break}}F&&c&&b.onTagItemClick?yield b.onTagItemClick(F,c):(d.removeFilter(n),d.updatePagination(1),yield d.fetchSeriesGoods(b.catId))}}finally{y.value=null}}),Y=()=>G(this,null,function*(){if(y.value===null)try{y.value="reset",b.onResetAllFilters?yield b.onResetAllFilters():(d.resetFilters(),d.updatePagination(1),yield d.fetchSeriesGoods(b.catId))}finally{y.value=null}}),J=n=>{const a=n.currentTarget,i=n.deltaY;if(!a||Math.abs(i)<1)return;const F=a.scrollTop<=0,c=a.scrollTop+a.clientHeight>=a.scrollHeight-1;(i>0&&c||i<0&&F)&&(n.preventDefault(),window.scrollBy(0,i))};oe(()=>G(this,null,function*(){b.initialFilters&&b.initialFilters.length>0&&b.initialFilters.forEach(n=>{const a=n.includes(": ")?n.split(": ")[1].trim():n.trim();for(const i of d.tagList){const F=i.item.find(c=>c.tag_name===a);if(F){F.selected=1,d.selectedFilters.includes(a)||d.selectedFilters.push(a);break}}}),yield d.fetchSeriesGoods(b.catId)}));const r=(n,a)=>{n.style.height="0",n.style.opacity="0",n.offsetHeight;const i=n.scrollHeight;n.style.transition="height 0.3s ease, opacity 0.3s ease",n.style.height=`${i}px`,n.style.opacity="1",setTimeout(()=>{n.style.height="auto",a()},300)},C=(n,a)=>{const i=n.scrollHeight;n.style.height=`${i}px`,n.offsetHeight,n.style.transition="height 0.3s ease, opacity 0.3s ease",n.style.height="0",n.style.opacity="0",setTimeout(a,300)};return(n,a)=>{const i=Re,F=Ze;return o(),f("div",{class:"filter-container flex w-full min-h-0 flex-col gap-4",style:ye(t(w))},[e("div",Pt,[e("div",Ot,[a[0]||(a[0]=e("h3",{class:"text-base font-bold"},"Filter",-1)),S(i,{count:t(d).filterCount},null,8,["count"])]),S(t(de),{variant:"ghost",size:"sm",class:"h-8 min-w-[76px] max-w-[176px] shrink-0 overflow-hidden rounded border border-[#FFB996] bg-[#FEFCFB] px-3 text-xs font-bold leading-[18px] text-[#D34900] hover:border-[#FCA782] hover:bg-[#FFF5F0] hover:text-[#D34900] active:border-[#FCA782] active:bg-[#FFEADE] active:text-[#D34900] focus-visible:border-[#FCA782] focus-visible:bg-[#FFF5F0] focus-visible:text-[#D34900] focus-visible:ring-0 disabled:border-[#DFE3E6] disabled:bg-[#F1F3F5] disabled:text-[#7F8A95] disabled:opacity-100",onClick:Y,disabled:y.value!==null,loading:y.value==="reset"},{default:A(()=>[e("span",Rt,V(t(p)("RESET")),1)]),_:1},8,["disabled","loading"])]),t(d).selectedFilters.length>0?(o(),f("div",Bt,[e("div",Nt,[(o(!0),f(W,null,K(P.value?t(d).selectedFilters:t(d).selectedFilters.slice(0,4),(c,T)=>(o(),f("div",{key:T,class:"flex items-center gap-[6px] py-[2px] px-[8px] rounded-[4px] bg-[rgba(0,0,0,0.06)]"},[e("span",Vt,V(c),1),S(t(de),{variant:"ghost",size:"icon",class:"h-[16px] w-[16px] p-0",onClick:_=>R(T),disabled:y.value!==null,loading:y.value===`remove-${T}`,"loading-size":6,loadingInlineHideSlot:""},{default:A(()=>a[1]||(a[1]=[e("i",{class:"iconfont icon-a-SystemIcons-26 text-[16px] text-[#69727C] leading-[16
2px]"},null,-1)])),_:2},1032,["onClick","disabled","loading"])]))),128))]),t(d).selectedFilters.length>4?(o(),f("div",{key:0,class:"mt-[16px] h-[32px] flex items-center justify-center cursor-pointer gap-[4px] py-0 px-[8px]",onClick:h},[e("span",Dt,V(P.value?t(p)("SHOW_LESS"):t(p)("VIEW_MORE")),1),e("i",{class:N([t(te),t(ne),"text-[16px] text-[#69727C] leading-[16px]",P.value&&"rotate-180"])},null,2)])):U("",!0)])):U("",!0),e("div",{class:"min-h-0 flex-1 overflow-y-auto",onWheel:J},[(o(!0),f(W,null,K(t(d).tagList,c=>(o(),f("div",{key:c.tag_id,class:N(["filter-section",{"bg-[#F8F9FA]":t(g)[c.tag_id]}])},[e("div",{class:N(["filter-section-header flex h-[44px] items-center gap-[6px] border-l-2 px-[12px] cursor-pointer",t(g)[c.tag_id]?"border-l-[#1C2024]":"border-l-transparent"]),onClick:T=>t(L)(c.tag_id)},[e("h4",{class:N(["flex-1 text-[14px] leading-[22px] text-[#1C2024]",t(g)[c.tag_id]?"!font-bold":"font-medium"])},V(c.tag_name),3),e("i",{class:N([t(te),t(ne),"text-[20px] leading-[20px] text-[#69727C]",t(g)[c.tag_id]&&"rotate-180"])},null,2)],10,Ht),S(tt,{name:"section-fade",onEnter:r,onLeave:C},{default:A(()=>[t(g)[c.tag_id]?(o(),f("div",zt,[(o(!0),f(W,null,K(O.value[c.tag_id]?c.item:c.item.slice(0,4),T=>(o(),f("div",{key:T.tag_id,class:"item h-[44px] min-w-0 border-l-2 border-l-transparent py-0 px-[12px]"},[e("label",{class:N(["flex h-full min-w-0 items-center gap-[8px]",{"cursor-pointer":y.value===null||y.value===T.tag_id,"cursor-not-allowed opacity-60":y.value!==null&&y.value!==T.tag_id}]),onClick:et(()=>D(c.tag_id,T.tag_id),["prevent"])},[e("div",Ut,[y.value!==T.tag_id?(o(),X(F,{key:0,readonly:"","icon-size":20,modelValue:T.selected===1},null,8,["modelValue"])):(o(),X(t(rt),{key:1,class:"animate-spin text-[#1C2024]",style:{width:"20px",height:"20px"}}))]),e("span",{class:N(["min-w-0 flex-1 truncate text-[14px] leading-[22px] text-[#1C2024]",T.selected===1?"font-bold":"font-medium"]),innerHTML:T.tag_name},null,10,jt)],10,Mt)]))),128)),c.item.length>4?(o(),f("div",{key:0,class:"h-[32px] flex items-center justify-center cursor-pointer gap-[4px] py-0 px-[8px]",onClick:T=>H(c.tag_id)},[e("span",qt,V(O.value[c.tag_id]?t(p)("SHOW_LESS"):t(p)("VIEW_MORE")),1),e("i",{class:N([t(te),t(ne),"text-[16px] text-[#69727C] leading-[16px]",O.value[c.tag_id]&&"rotate-180"])},null,2)],8,Gt)):U("",!0)])):U("",!0)]),_:2},1024),t(g)[c.tag_id]?(o(),f("div",Wt,a[2]||(a[2]=[e("div",{class:"border-t border-[#DFE3E6]"},null,-1)]))):U("",!0)],2))),128))],32)],4)}}},Jt=ie(Yt,[["__scopeId","data-v-1e19d68b"]]),Kt={class:"series-banner uiux2026-banner"},Xt=["srcset"],Qt=["srcset"],Zt=["src"],en={key:0,class:"banner-text-content"},tn={key:0,class:"uiux2026-banner__controls"},nn={__name:"SeriesBanner",props:{bannerItems:{type:Array,default:()=>[]}},emits:["slideChange"],setup(u,{emit:p}){const s=u,w=[Ve,yt,Qe],b={clickable:!0,el:".swiper-pagination",bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",renderBullet:function(D,h){return'<span class="'+h+'"></span>'}},d={nextEl:".series_banner_next",prevEl:".series_banner_prev",disabledClass:"swiper-button-disabled"},v={delay:5e3,disableOnInteraction:!1},g=M(null),L=be(()=>s.bannerItems.length>1),P=D=>{var h;g.value=D,(h=D.pagination)!=null&&h.el&&(D.pagination.render(),D.pagination.update())},O=p,y=D=>{var h;O("slideChange",D.realIndex),(h=g.value)!=null&&h.pagination&&(g.value.pagination.render(),g.value.pagination.update())};return oe(()=>{var D;g.value&&(g.value.update(),(D=g.value.pagination)!=null&&D.el&&(g.value.pagination.render(),g.value.pagination.update()))}),(D,h)=>{const H=ct;return o(),f("div",Kt,[S(t(Ne),{modules:w,"slides-per-view":1,loop:L.value,pagination:L.value?b:!1,navigation:L.value?d:!1,autoplay:L.value?v:!1,breakpoints:{0:{slidesPerView:1.1,centeredSlides:!0,spaceBetween:8},1024:{slidesPerView:1,centeredSlides:!1,spaceBetween:0}},observer:!0,"observe-parents":!0,class:"swiper-container swiper-news",onSwiper:P,onSlideChange:y},{default:A(()=>[(o(!0),f(W,null,K(u.bannerItems,(R,Y)=>(o(),X(t(Be),{key:Y,class:"swiper-slide pc"},{default:A(()=>[S(H,{href:R.image_link_pc,target:"_blank","aria-label":"link"},{default:A(()=>[e("picture",null,[e("source",{media:"(min-width: 1401px)",srcset:R.image_pc_url,loading:"lazy"},null,8,Xt),e("source",{media:"(min-width: 769px)",srcset:R.image_ipad_url,loading:"lazy"},null,8,Qt),e("img",{src:R.image_mobile_url,alt:"image",width:"100%",loading:"lazy",class:"rounded-xl"},null,8,Zt)])]),_:2},1032,["href"]),R.image_content_title||R.image_content_words?(o(),f("div",en,[e("h3",{style:ye({color:R.image_content_title_color||"#ffffff"})},V(R.image_content_title),5),e("p",{style:ye({color:R.image_content_title_color||"#ffffff"})},V(R.image_content_words),5)])):U("",!0)]),_:2},1024))),128)),L.value?(o(),f("div",tn,h[0]||(h[0]=[e("div",{class:"swiper-pagination"},null,-1),e("div",{class:"swiper-button-prev swiper-button series_banner_prev uiux2026-banner__nav-btn","aria-label":"Previous slide"},[e("i",{class:"iconfont icon-a-SystemIcons-32"})],-1),e("div",{class:"swiper-button-next swiper-button series_banner_next uiux2026-banner__nav-btn","aria-label":"Next slide"},[e("i",{class:"iconfont icon-a-SystemIcons-33"})],-1)]))):U("",!0)]),_:1},8,["loop","pagination","navigation","autoplay"])])}}},sn=ie(nn,[["__scopeId","data-v-b765a3ab"]]),an=at(()=>ft(()=>import("./CZdskggp.js").then(u=>u.S),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29]),import.meta.url).then(u=>u.default||u)),on={class:"product-list"},ln=["onClickCapture"],rn={key:1,class:"flex flex-col items-center justify-center py-12"},cn={key:2,class:"mt-8 flex justify-center"},dn=ue({__name:"index",props:{products:{},paginationParams:{}},emits:["pageChange"],setup(u,{emit:p}){const s=dt(),w=le(),{trackListPageItemClick:b}=mt(),d=M(null),v=M(null),g=vt(),L=xt(),P=u,O=p,y=be(()=>{const r=Number(P.paginationParams.total),C=Number(P.paginationParams.pageSize);return!r||!C?!1:Math.ceil(r/C)>1}),D=r=>{O("pageChange",r),g.resetImpressionTracking(),window.scrollTo({top:0,left:0,behavior:"smooth"})},h=()=>{d.value=!0},H=()=>{d.value=!1};function R(r,C,j,x){var n;v.value&&g.handleProductVisible(r,C,j,x,v.value,P.products,(n=s.siteInfo)==null?void 0:n.site_name)}function Y(r,C){var x,n,a;const j=C.target;j!=null&&j.closest("button")||(C.preventDefault(),C.stopPropagation(),b(r),typeof window!="undefined"&&window.gtag&&window.gtag("event","select_content",{content_type:"product",currency:(x=s.siteInfo)==null?void 0:x.currency,value:r.current_price,items:[{item_id:r.id,item_name:r.goods_name,item_brand:(n=s.siteInfo)==null?void 0:n.site_name,price:r.origin_price,item_list_id:r.cat_id,item_list_name:(a=w==null?void 0:w.catInfo)==null?void 0:a.category_name}]}),window.xpstoreNavigateTo(r.buy_url))}function J(){g.resetImpressionTracking()}return ae(()=>P.products,()=>{g.resetImpressionTracking()},{deep:!0}),oe(()=>{window.addEventListener("resize",J)}),nt(()=>{window.removeEventListener("resize",J)}),(r,C)=>{const j=wt,x=ut,n=pt,a=an;return o(),f("div",on,[r.products&&r.products.length>0?(o(),f("div",{key:0,class:"grid grid-cols-2 sm:grid-cols-2 md:grid-cols-3 xl:grid-cols-4 xl:gap-4 gap-2",ref_key:"productGrid",ref:v},[(o(!0),f(W,null,K(r.products,(i,F)=>st((o(),f("div",{key:i.id,onClickCapture:c=>Y(i,c)},[S(j,{product:i,"data-index":F,"data-id":i.id,onOpenCart:h},null,8,["product","data-index","data-id"])],40,ln)),[[t(L),(c,T)=>R(i,c,F,T)]])),128))],512)):(o(),f("div",rn,[S(x,{alt:"No products found",class:"w-48 h-48 object-contain mb-4"})])),y.value?(o(),f("div",cn,[S(n,null,{default:A(()=>[S(Ct,{params:{total:r.paginationParams.total,pageSize:r.paginationParams.pageSize,currentPage:r.paginationParams.currentPage},onSetPagination:D},null,8,["params"])]),_:1})])):U("",!0),d.value?(o(),X(a,{key:3,open:d.value===!0,onCloseModal:H,class:"dialog-root"},null,8,["open"])):U("",!0)])}}}),un={key:0,class:"fixed inset-0 bg-black bg-opacity-50 z-[100] flex flex-col justify-end xl:hidden"},pn={class:"bg-white max-h-[70vh] flex flex-col"},fn={class:"p-4 flex justify-between items-center"},gn={class:"min-h-0 flex-1 overflow-y-auto px-[16px] pb-16"},_n=["onClick"],mn={key:0,class:"flex flex-wrap gap-[8px] py-[16px] px-0"},vn=["onClick"],xn={class:"flex gap-2 p-4 sticky bottom-0 bg-white"},yn=ue({__name:"MobileFilter",props:{modelValue:{type:Boolean,required:!0},catId:{type:[String,Number,Array],required:!0},onTagItemClick:{type:Function,default:null},onResetAllFilters:{type:Function,default:null}},emits:["update:modelValue","apply"],setup(u,{emit:p}){var C,j;const s=u,w=p,b=le(),{tagList:d}=we(b),v=xe(Ce),g=(C=v==null?void 0:v.expandedSections)!=null?C:M({}),L=(j=v==null?void 0:v.toggleSection)!=null?j:()=>{},{toggleTagItem:P,resetFilters:O,updatePagination:y,fetchSeriesGoods:D}=b,h=He(new Map),H=()=>{d.value.forEach(x=>{h.has(x.tag_id)||h.set(x.tag_id,new Map),x.item.forEach(n=>{h.get(x.tag_id).set(n.tag_id,n.selected===1)})})},R=(x,n)=>{h.has(x)||h.set(x,new Map);const a=h.get(x).get(n)||!1;h.get(x).set(n,!a)},Y=(x,n)=>h.has(x)&&h.get(x).get(n)||!1,J=()=>G(this,null,function*(){const x=[];if(d.value.forEach(n=>{h.has(n.tag_id)&&n.item.forEach(a=>{const i=h.get(n.tag_id).get(a.tag_id)||!1;a.selected===1!==i&&x.push({tagCategory:n,tagItem:a,newState:i})})}),s.onTagItemClick&&x.length>0){x.forEach(({tagCategory:i,tagItem:F,newState:c})=>{F.selected===1!==c&&P(i.tag_id,F.tag_id)});const n={tag_id:0,category_id:0},a={tag_id:0};yield s.onTagItemClick(n,a)}else d.value.forEach(n=>{h.has(n.tag_id)&&n.item.forEach(a=>{const i=h.get(n.tag_id).get(a.tag_id)||!1;a.selected===1!==i&&P(n.tag_id,a.tag_id)})});w("update:modelValue",!1),y(1),w("apply")}),r=()=>G(this,null,function*(){s.onResetAllFilters?(w("update:modelValue",!1),yield s.onResetAllFilters()):d.value.forEach(x=>{h.has(x.tag_id)||h.set(x.tag_id,new Map),x.item.forEach(n=>{h.get(x.tag_id).set(n.tag_id,!1)})})});return H(),ae(()=>s.modelValue,x=>{x&&H()}),(x,n)=>{const a=de;return o(),X(ze,{to:"body"},[u.modelValue?(o(),f("div",un,[e("div",pn,[e("div",fn,[n[2]||(n[2]=e("h2",{class:"text-xl font-bold text-[#1C2024]"},"Filter",-1)),e("button",{onClick:n[0]||(n[0]=i=>x.$emit("update:modelValue",!1)),class:"text-[#1C2024]"},n[1]||(n[1]=[e("i",{class:"iconfont icon-a-SystemIcons-26 text-[24px] leading-[24px]"},null,-1)]))]),e("div",gn,[(o(!0),f(W,null,K(t(d),(i,F)=>(o(),f("div",{key:F},[e("div",{class:N(["flex h-[44px] items-center gap-[6px] border-l-2 px-[12px] curs
2or-pointer",t(g)[i.tag_id]?"border-l-[#1C2024] bg-[#F8F9FA]":"border-l-transparent"]),onClick:c=>t(L)(i.tag_id)},[e("h3",{class:N(["flex-1 text-[14px] leading-[22px] text-[#1C2024]",t(g)[i.tag_id]?"font-bold":"font-medium"])},V(i.tag_name),3),e("i",{"aria-hidden":"true",class:N([t(te),t(ne),"text-[20px] leading-[20px] text-[#69727C]",t(g)[i.tag_id]&&"rotate-180"])},null,2)],10,_n),t(g)[i.tag_id]?(o(),f("div",mn,[(o(!0),f(W,null,K(i.item,c=>(o(),f("button",{key:c.tag_id,onClick:T=>R(i.tag_id,c.tag_id),class:N(["rounded-[4px] border px-[10px] py-[4px] text-[14px] font-medium leading-[22px] transition-colors",{"border-[#F76B15] bg-[#F76B15] text-white":Y(i.tag_id,c.tag_id),"border-[rgba(0,0,0,0.27)] text-[#69727C]":!Y(i.tag_id,c.tag_id)}])},V(c.tag_name),11,vn))),128))])):U("",!0)]))),128))]),e("div",xn,[S(a,{class:"mobile-filter-reset-btn flex-1",onClick:r},{default:A(()=>n[3]||(n[3]=[Z(" Reset ")])),_:1}),S(a,{class:"mobile-filter-done-btn flex-1",onClick:J},{default:A(()=>n[4]||(n[4]=[Z(" Done ")])),_:1})])])])):U("",!0)])}}}),bn=ie(yn,[["__scopeId","data-v-a3f56ff8"]]),hn={class:"relative"},wn={class:"relative flex items-center border-b border-[#dfe3e6] bg-white py-2"},Cn={class:"no-scrollbar flex min-h-9 flex-1 items-center gap-[10px] overflow-x-auto overflow-y-hidden whitespace-nowrap pr-[108px]"},kn={class:"text-[14px] font-medium leading-[22px] tracking-[-0.04px] text-[#7f8a95]"},Sn=["onClick"],En={class:"text-[14px] font-medium leading-[22px] tracking-[-0.04px] text-[#7f8a95]"},Fn={class:"mobile-filter-bar__action absolute right-0 top-0 z-[2] flex h-[52px] items-center bg-white px-2"},In={key:0,class:"absolute left-0 right-0 top-full z-50 border-b border-t border-[#dfe3e6] bg-white py-2 shadow-lg"},$n={key:0,class:"fixed inset-0 bg-black bg-opacity-50 z-[100] flex flex-col justify-end"},Tn={class:"bg-white max-h-[70vh] flex flex-col"},Ln={class:"p-4 flex justify-between items-center"},An={class:"text-xl font-bold text-[#1C2024]"},Pn={class:"min-h-0 flex-1 overflow-y-auto px-[16px] pb-4"},On={class:"flex flex-wrap gap-[8px] py-[16px]"},Rn=["onClick"],Bn={class:"flex gap-2 p-4 sticky bottom-0 bg-white"},Nn=ue({__name:"MobileFilterBar",props:{catId:{type:[String,Number,Array],required:!0},onTagItemClick:{type:Function,default:null}},emits:["apply-filter","open-all-filters"],setup(u,{emit:p}){const{t:s}=he(),w=u,b=p,d=le(),{tagList:v,filterCount:g,sortOrder:L}=we(d),{toggleTagItem:P,resetFilters:O,updatePagination:y,fetchSeriesGoods:D,updateSortOrder:h}=d,H=M(!1),R=()=>{H.value=!H.value,H.value&&setTimeout(()=>{const _=()=>{H.value=!1,document.removeEventListener("click",_)};document.addEventListener("click",_)},10)},Y=()=>{switch(L.value){case"asc":return"PRICE_LOW_TO_HIGH";case"desc":return"PRICE_HIGH_TO_LOW";default:return"DEFAULT"}},J=_=>{h(_),H.value=!1,y(1),b("apply-filter")},r=M(""),C=He(new Map),j=_=>{const l=v.value.find($=>$.tag_name===_);l&&(C.has(l.tag_id)||C.set(l.tag_id,new Map),l.item.forEach($=>{C.get(l.tag_id).set($.tag_id,$.selected===1)}))},x=(_,l)=>{C.has(_)||C.set(_,new Map);const $=C.get(_).get(l)||!1;C.get(_).set(l,!$)},n=_=>{r.value===_?r.value="":(r.value=_,j(_))},a=_=>{const l=v.value.find($=>$.tag_name===_);return l?l.tag_id:0},i=_=>{const l=v.value.find($=>$.tag_name===_);return l?l.item:[]},F=(_,l)=>C.has(_)&&C.get(_).get(l)||!1,c=_=>{const l=a(_);if(C.has(l))for(const $ of C.get(l).keys())C.get(l).set($,!1)},T=()=>G(this,null,function*(){const _=[],l=a(r.value);if(C.has(l)){const $=v.value.find(q=>q.tag_id===l);$&&$.item.forEach(q=>{const I=C.get(l).get(q.tag_id)||!1;q.selected===1!==I&&_.push({tagCategory:$,tagItem:q,newState:I})})}if(w.onTagItemClick&&_.length>0){_.forEach(({tagCategory:I,tagItem:B,newState:ee})=>{B.selected===1!==ee&&P(I.tag_id,B.tag_id)});const $={tag_id:0,category_id:0},q={tag_id:0};yield w.onTagItemClick($,q)}else{const $=a(r.value);if(C.has($)){const q=v.value.find(I=>I.tag_id===$);q&&q.item.forEach(I=>{const B=C.get($).get(I.tag_id)||!1;I.selected===1!==B&&P($,I.tag_id)})}}r.value="",y(1),b("apply-filter")});return(_,l)=>{const $=Re,q=de;return o(),f("div",hn,[e("div",wn,[e("div",Cn,[e("button",{type:"button",class:N(["flex h-9 shrink-0 cursor-pointer items-center gap-2 whitespace-nowrap rounded-[4px] border-0 bg-transparent pl-3 pr-2.5",H.value?"bg-[#fbfcfd]":""]),onClick:R},[e("span",kn,V(t(s)(Y())),1),e("i",{class:N([t(te),t(ne),"text-[20px] leading-none text-[#7f8a95]",H.value&&"rotate-180"])},null,2)],2),(o(!0),f(W,null,K(t(v),(I,B)=>(o(),f("button",{key:B,type:"button",class:N(["flex h-9 shrink-0 cursor-pointer items-center gap-2 whitespace-nowrap rounded-[4px] border-0 bg-transparent pl-3 pr-2.5",r.value===I.tag_name?"bg-[#fbfcfd]":""]),onClick:ee=>n(I.tag_name)},[e("span",En,V(I.tag_name),1),e("i",{class:N([t(te),t(ne),"text-[20px] leading-none text-[#7f8a95]",r.value===I.tag_name&&"rotate-180"])},null,2)],10,Sn))),128))]),e("div",Fn,[e("button",{type:"button",class:"flex cursor-pointer items-center gap-[10px] whitespace-nowrap border-0 bg-transparent p-0",onClick:l[0]||(l[0]=I=>_.$emit("open-all-filters"))},[l[6]||(l[6]=e("i",{class:"iconfont icon-a-SystemIcons-18 text-[20px] leading-none text-[#1c2024]"},null,-1)),l[7]||(l[7]=e("span",{class:"text-[14px] font-bold leading-[22px] tracking-[-0.04px] text-[#1c2024]"}," Filter ",-1)),S($,{count:t(g)},null,8,["count"])])])]),H.value?(o(),f("div",In,[e("button",{type:"button",class:"w-full cursor-pointer border-0 bg-transparent px-4 py-2 text-left text-[14px] leading-[22px] tracking-[-0.04px] text-[#1c2024] hover:bg-[#fbfcfd]",onClick:l[1]||(l[1]=I=>J("default"))},V(t(s)("DEFAULT")),1),e("button",{type:"button",class:"w-full cursor-pointer border-0 bg-transparent px-4 py-2 text-left text-[14px] leading-[22px] tracking-[-0.04px] text-[#1c2024] hover:bg-[#fbfcfd]",onClick:l[2]||(l[2]=I=>J("asc"))},V(t(s)("PRICE_LOW_TO_HIGH")),1),e("button",{type:"button",class:"w-full cursor-pointer border-0 bg-transparent px-4 py-2 text-left text-[14px] leading-[22px] tracking-[-0.04px] text-[#1c2024] hover:bg-[#fbfcfd]",onClick:l[3]||(l[3]=I=>J("desc"))},V(t(s)("PRICE_HIGH_TO_LOW")),1)])):U("",!0),(o(),X(ze,{to:"body"},[r.value?(o(),f("div",$n,[e("div",Tn,[e("div",Ln,[e("h2",An,V(r.value),1),e("button",{onClick:l[4]||(l[4]=I=>r.value=""),class:"text-[#1C2024]"},l[8]||(l[8]=[e("i",{class:"iconfont icon-a-SystemIcons-26 text-[24px] leading-[24px]"},null,-1)]))]),e("div",Pn,[e("div",On,[(o(!0),f(W,null,K(i(r.value),I=>(o(),f("button",{key:I.tag_id,onClick:B=>x(a(r.value),I.tag_id),class:N(["rounded-[4px] border px-[10px] py-[4px] text-[14px] font-medium leading-[22px] transition-colors",{"border-[#F76B15] bg-[#F76B15] text-white":F(a(r.value),I.tag_id),"border-[rgba(0,0,0,0.27)] text-[#69727C]":!F(a(r.value),I.tag_id)}])},V(I.tag_name),11,Rn))),128))])]),e("div",Bn,[S(q,{class:"mobile-filter-reset-btn flex-1",onClick:l[5]||(l[5]=I=>c(r.value))},{default:A(()=>l[9]||(l[9]=[Z(" Reset ")])),_:1}),S(q,{class:"mobile-filter-done-btn flex-1",onClick:T},{default:A(()=>l[10]||(l[10]=[Z(" Done ")])),_:1})])])])):U("",!0)]))])}}}),Vn=ie(Nn,[["__scopeId","data-v-f36f22e9"]]),Dn={class:"border-b border-[var(--uiux2026-border)]"},Hn={class:"uiux2026-content-inset"},zn={key:0,class:"w-full lg:mb-[16px] mb-[8px]"},Mn={class:"flex flex-col items-center justify-center"},Un=["onClick"],jn=["src"],Gn={class:"category-icon-name"},qn={class:"uiux2026-content-inset py-2"},Wn={class:"category-floating-container"},Yn={class:"flex items-center gap-[10px] overflow-x-auto hide-scrollbar"},Jn=["onClick"],Kn={class:"category-floating-item__text"},Xn={class:"flex w-full flex-col lg:flex-row"},Qn={key:0,class:"series-layout-sidebar hidden lg:flex shrink-0 justify-end bg-white"},Zn={class:"flex w-[312px] shrink-0 flex-col items-start gap-4 self-stretch py-6 pr-6 pl-0"},es={class:"series-layout-content min-w-0 flex-1 bg-[#F1F3F5]"},ts={class:"mb-[16px] hidden items-center justify-end lg:flex"},ns={class:"w-[180px]"},ss=ue({__name:"index",setup(u){const{t:p}=he(),s=ot(),w=it(),{pushNtmDataEvent:b}=gt(),{trackConvboxEvent:d}=_t(),v=le(),{bannerList:g,products:L,paginationParams:P,tagList:O,subCatInfo:y,breadcrumbData:D,sortOrder:h,catInfo:H}=we(v),R=At();$e(Ce,R);const Y=Ue();$e(Me,Y),ae(O,m=>{m.length>0&&R.syncExpandedSections(m)},{immediate:!0});const J=()=>{var k;const m=(k=H.value)==null?void 0:k.category_name;m&&d("ViewCategory",{categoryName:m})},{fetchSeriesGoods:r,updatePagination:C,resetFilters:j,toggleTagItem:x,updateSortOrder:n,setCurrentBannerIndex:a}=v,i=M(null),F=M(!1),c=M(null),T=M({hasOverflow:!1,isAtStart:!0,isAtEnd:!0}),_=()=>{const m=c.value;m&&(T.value={hasOverflow:!m.isLocked,isAtStart:m.isBeginning,isAtEnd:m.isEnd})},l=m=>{c.value=m,_()};ae(y,()=>G(this,null,function*(){var m;
2yield Te(),(m=c.value)==null||m.update(),_()})),ae(F,m=>G(this,null,function*(){yield Te();const k=document.querySelector(".navbar_header");k&&(k.style.display=m?"none":""),Y.syncOffset()}));const $=()=>{if(i.value){const m=i.value.getBoundingClientRect();F.value=m.bottom<0}},q=m=>{n(m),C(1),r(s.params.id)},I=M([]),B=M(!1),ee=M(!1),pe=(m,k)=>G(this,null,function*(){if(!B.value)try{B.value=!0,x(m.tag_id,k.tag_id),R.syncExpandedSections(O.value);const E=[];O.value.forEach(z=>{z.item.forEach(Q=>{if(Q.selected===1){const re=Q.route_name||Q.tag_name.replace(/\s+/g,"-").toLowerCase();E.push(`${z.category_id}-${re}`)}})}),yield w.push({query:ce(se({},s.query),{tag:E.length>0?E.join(","):void 0})}),yield r(s.params.id)}finally{B.value=!1}}),ke=m=>G(this,null,function*(){if(!B.value)try{B.value=!0,C(1),m.selected===1?(m.selected=0,yield w.push({query:ce(se({},s.query),{category:void 0})})):(y.value.forEach(k=>{k.selected=k.sub_category_route_name===m.sub_category_route_name?1:0}),yield w.push({query:ce(se({},s.query),{category:m.sub_category_route_name})})),yield r(s.params.id)}finally{B.value=!1}}),je=m=>G(this,null,function*(){if(!B.value)try{B.value=!0,C(m),yield r(s.params.id)}finally{B.value=!1}}),Se=()=>G(this,null,function*(){yield r(s.params.id)}),Ge=()=>G(this,null,function*(){try{B.value=!0,J();const m=s.query.category,k=s.query.tag;if(m&&y.value.length>0&&y.value.find(z=>JSON.stringify(z.sub_category_route_name).toUpperCase()==JSON.stringify(m).toUpperCase())&&y.value.forEach(z=>{z.selected=JSON.stringify(z.sub_category_route_name).toUpperCase()==JSON.stringify(m).toUpperCase()?1:0}),k&&O.value.length>0){let E=[];Array.isArray(k)?E=k:E=k.split(","),E.forEach(z=>{const Q=z.indexOf("-");if(Q===-1)return;const re=z.slice(0,Q),fe=z.slice(Q+1);if(!re||!fe)return;const qe=parseInt(re,10);for(const ge of O.value){if(ge.category_id!==qe)continue;const _e=ge.item.find(me=>me.route_name&&me.route_name===fe||me.tag_name.replace(/\s+/g,"-").toLowerCase()===fe.toLowerCase());if(_e){_e.selected!==1&&x(ge.tag_id,_e.tag_id);break}}}),R.syncExpandedSections(O.value)}(m&&y.value.some(E=>E.selected===1)||k&&O.value.some(E=>E.item.some(z=>z.selected===1)))&&setTimeout(()=>{r(s.params.id)},0)}catch(m){}finally{B.value=!1}}),Ee=()=>G(this,null,function*(){if(!B.value)try{B.value=!0,j(),R.syncExpandedSections(O.value),y.value.forEach(k=>{k.selected=0});const m=se({},s.query);delete m.category,delete m.tag,yield w.push({query:m}),yield r(s.params.id)}finally{B.value=!1}});return oe(()=>{Ge(),window.addEventListener("scroll",$),b({pageType:"category",categoryId:H.value.cat_id})}),De(()=>{window.removeEventListener("scroll",$)}),(m,k)=>(o(),f(W,null,[e("div",Dn,[e("div",Hn,[S(t(kt),{class:"hidden lg:box-border lg:flex lg:items-center lg:h-[48px] lg:py-[6px]"},{default:A(()=>[S(t(Ft),{class:"gap-[10px]"},{default:A(()=>[(o(!0),f(W,null,K(t(D),(E,z)=>(o(),f(W,{key:z},[S(t(It),null,{default:A(()=>[E.url?(o(),X(t($t),{key:0,class:"font-medium",href:E.url},{default:A(()=>[Z(V(E.name),1)]),_:2},1032,["href"])):(o(),X(t(Tt),{key:1,class:"font-medium"},{default:A(()=>[Z(V(E.name),1)]),_:2},1024))]),_:2},1024),z<t(D).length-1?(o(),X(t(Lt),{key:0},{default:A(()=>k[3]||(k[3]=[e("i",{class:"iconfont icon-a-SystemIcons-33 shrink-0 text-[14px] leading-none text-[#8b949e]","aria-hidden":"true"},null,-1)])),_:1})):U("",!0)],64))),128))]),_:1})]),_:1}),t(g).length>0?(o(),f("div",zn,[S(sn,{bannerItems:t(g),onSlideChange:t(a)},null,8,["bannerItems","onSlideChange"])])):U("",!0),t(y).length>0?(o(),f("div",{key:1,class:N(["w-full mb- lg:mb-6 category-swiper-container",{"category-swiper-container--overflow":T.value.hasOverflow,"category-swiper-container--at-start":T.value.isAtStart,"category-swiper-container--at-end":T.value.isAtEnd}]),ref_key:"categorySwiperContainer",ref:i},[k[4]||(k[4]=e("div",{class:"category-swiper-fade category-swiper-fade--left","aria-hidden":"true"},null,-1)),k[5]||(k[5]=e("div",{class:"category-swiper-fade category-swiper-fade--right","aria-hidden":"true"},null,-1)),S(t(Ne),{modules:[t(Ve)],"slides-per-view":3.5,breakpoints:{375:{slidesPerView:3.5},768:{slidesPerView:4.5},1024:{slidesPerView:5.5}},"space-between":0,"space-between-small":0,speed:300,"watch-overflow":!0,navigation:{nextEl:".category-swiper-container .swiper-button-next",prevEl:".category-swiper-container .swiper-button-prev"}
2,"center-insufficient-slides":!0,class:"category-swiper",onSwiper:l,onSlideChange:_,onReachBeginning:_,onReachEnd:_,onFromEdge:_,onResize:_},{default:A(()=>[(o(!0),f(W,null,K(t(y),(E,z)=>(o(),X(t(Be),{key:z},{default:A(()=>[e("div",Mn,[e("div",{class:N(["category-icon-wrap flex flex-col items-center justify-center",{"cursor-pointer":!B.value,"cursor-not-allowed opacity-75":B.value}]),onClick:Q=>ke(E)},[e("img",{src:E.thumb,class:"category-icon-img object-contain"},null,8,jn)],10,Un),e("div",Gn,V(E.sub_category_name),1)])]),_:2},1024))),128))]),_:1},8,["modules"]),k[6]||(k[6]=e("button",{type:"button",class:"swiper-button-prev","aria-label":"Previous"},null,-1)),k[7]||(k[7]=e("button",{type:"button",class:"swiper-button-next","aria-label":"Next"},null,-1))],2)):U("",!0)])]),t(y).length>0?(o(),f("div",{key:0,id:"series-category-floating-nav",class:N(["fixed top-0 left-0 right-0 z-[1000] bg-white border-b border-gray-200 transition-transform duration-300",{"translate-y-0":F.value,"-translate-y-full":!F.value,"series-floating-nav--with-sidebar":t(O).length>0}])},[e("div",qn,[e("div",Wn,[e("div",Yn,[(o(!0),f(W,null,K(t(y),(E,z)=>(o(),f("div",{key:z,class:N(["category-floating-item shrink-0 cursor-pointer px-[18px] py-[10px]",{"category-floating-item--selected":E.selected===1}]),onClick:Q=>ke(E)},[e("span",Kn,V(E.sub_category_name),1)],10,Jn))),128))])])])],2)):U("",!0),S(Vn,{class:"lg:hidden",catId:t(s).params.id,onTagItemClick:pe,onApplyFilter:Se,onOpenAllFilters:k[0]||(k[0]=E=>ee.value=!0)},null,8,["catId"]),e("div",{class:N(["series-layout",{"series-layout--no-sidebar":t(O).length===0}])},[e("div",Xn,[t(O).length>0?(o(),f("aside",Qn,[e("div",Zn,[S(Jt,{initialFilters:I.value,catId:t(s).params.id,onTagItemClick:pe,onResetAllFilters:Ee},null,8,["initialFilters","catId"])])])):U("",!0),e("div",es,[e("div",{class:N(["series-layout-content-inner pb-12 pt-6 lg:pt-6",t(O).length===0?"uiux2026-content-inset":"px-4 lg:pl-6 lg:pr-0"])},[e("div",ts,[e("div",ns,[S(t(Et),{modelValue:t(h),"onUpdate:modelValue":[k[1]||(k[1]=E=>lt(h)?h.value=E:null),q]},{default:A(()=>[S(bt,{class:"w-[180px]"},{default:A(()=>[S(t(St),{placeholder:t(p)("SHOW_BY")},null,8,["placeholder"])]),_:1}),S(ht,null,{default:A(()=>[S(ve,{value:"default"},{default:A(()=>[Z(V(t(p)("DEFAULT")),1)]),_:1}),S(ve,{value:"asc"},{default:A(()=>[Z(V(t(p)("PRICE_LOW_TO_HIGH")),1)]),_:1}),S(ve,{value:"desc"},{default:A(()=>[Z(V(t(p)("PRICE_HIGH_TO_LOW")),1)]),_:1})]),_:1})]),_:1},8,["modelValue"])])]),S(dn,{products:t(L),"pagination-params":t(P),onPageChange:je},null,8,["products","pagination-params"])],2)])]),S(bn,{modelValue:ee.value,"onUpdate:modelValue":k[2]||(k[2]=E=>ee.value=E),catId:t(s).params.id,onTagItemClick:pe,onResetAllFilters:Ee,onApply:Se},null,8,["modelValue","catId"])],2)],64))}}),Es=ie(ss,[["__scopeId","data-v-2aabb414"]]);export{Es as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.