1import{_ as H,h as U,u as q,a as j,j as I}from"./index-ac092483.js";import{x as J,y as M,r as h,k as G,P as K,o as n,c as a,a as s,n as w,t as o,g as y,e as x,f as u,F as p,q as v,b as k,u as V,m,J as Q}from"./vendor-a8330dd9.js";import{S as E}from"./effect-fade-0c1fbba6.js";import{_ as B}from"./Carousel-0c16d950.js";const X="/images/opTopSaleLogo.png";const Y={key:0,class:"nav"},Z={key:1,class:"soon"},ss={key:2,class:"pc content-container"},es={id:"one",class:"box"},ts={class:"content"},os={class:"title"},is={class:"list pc"},ns=["href"],as={class:"photo"},ls=["src"],rs={class:"type"},cs={class:"name"},ds={class:"price"},_s={class:"unit_price"},us={class:"list mobile"},ps=["href"],vs={class:"wrap"},ms=["src"],hs={class:"type"},gs={class:"name"},fs={class:"price"},ws={class:"unit_price"},ys={id:"mx",class:"box"},bs={class:"content"},Ss={class:"title"},xs={class:"list pc"},ks=["href"],Vs={class:"photo"},Es=["src"],Bs={class:"type"},Cs={class:"name"},Os={class:"price"},Ts={class:"unit_price"},$s={class:"list mobile"},zs=["href"],Ps={class:"wrap"},Is=["src"],Ls={class:"type"},Rs={class:"name"},Ws={class:"price"},Ds={class:"unit_price"},Ns={id:"dz",class:"box"},As={class:"content"},Fs={class:"title"},Hs={class:"list pc"},Us=["href"],qs={class:"photo"},js=["src"],Js={class:"type"},Ms={class:"name"},Gs={class:"price"},Ks={class:"unit_price"},Qs={class:"list mobile"},Xs=["href"],Ys={class:"wrap"},Zs=["src"],se={class:"type"},ee={class:"name"},te={class:"price"},oe={class:"unit_price"},ie={key:3,class:"notice"},ne={__name:"OpTopSale",setup(ae){const C=J(),L=U(),R=q(),W=j(),{showLog:D,env:le,showHeader:O,showFooter:T,showAppRedirection:N}=M(R),{getOpnCampaignDetail:A}=L,g=h(null),l=h({dz:"å¹ä½æ",mx:"滿件æ",one:"å®ä»¶æ"}),r=h([]),c=h(null),$=async()=>{const t=await A({is_test:1});D.value&&console.log("getOpnCampaignDetail",t),t?r.value=t:c.value="å³å°ä¸æ¶ï¼æ¬
1è«æå¾
"},b=i=>{const t=document.getElementById(i);window.scrollTo({top:t.offsetTop-60,behavior:"smooth"})},z=()=>{Object.keys(l.value).forEach(t=>{const e=document.getElementById(t);if(e){const f=e.getBoundingClientRect().top,S=window.innerHeight;f<S&&f>=0&&(g.value=t)}})},d=i=>{i.target.src="/images/logo_2.png"};h(C.query.gid);const _=i=>P.value?`fdm://OpnRedirct?sapnumber=${i.sapnumber}&route_type=10`:`/opnRedirect?rtt=10&id=${i.sapnumber}`,P=Q(()=>{const i=navigator.userAgent||navigator.vendor||window.opera,t=/FBAN|FBAV|Instagram|wv|WebView|; wv\)/.test(i),e=/android/.test(i)&&/wv/.test(i)&&!/chrome|safari/.test(i),f=/iPhone|iPad|iPod/i.test(i)&&!(/Safari/.test(i)&&!/CriOS|Chrome/.test(i)),S=typeof window.ReactNativeWebView<"u",F=typeof window.webkit<"u"&&typeof window.webkit.messageHandlers<"u";return t||e||f||S||F});return G(()=>{N.value=!1,O.value=!1,T.value=!1,window.addEventListener("scroll",z),P.value?C.query.session_id?$():(localStorage.setItem("redirectUrl","/opTopSale"),I.push("/login")):W.memberData.isLogin?$():(localStorage.setItem("redirectUrl","/opTopSale"),I.push("/login"))}),K(()=>{O.value=!0,T.value=!0,window.removeEventListener("scroll",z)}),(i,t)=>(n(),a("main",{class:w(["opTopSale",{top:!c.value}])},[c.value?y("",!0):(n(),a("nav",Y,[s("div",{class:"item",onClick:t[0]||(t[0]=e=>b("one"))},[s("span",{class:w({active:g.value==="one"})},o(l.value.one),3)]),s("div",{class:"item",onClick:t[1]||(t[1]=e=>b("mx"))},[s("span",{class:w({active:g.value==="mx"})},o(l.value.mx),3)]),s("div",{class:"item",onClick:t[2]||(t[2]=e=>b("dz"))},[s("span",{class:w({active:g.value==="dz"})},o(l.value.dz),3)])])),t[9]||(t[9]=s("div",{class:"header"},[s("img",{class:"logo",src:X,alt:""}),s("div",{class:"line"})],-1)),c.value?(n(),a("div",Z,o(c.value),1)):y("",!0),r.value.length!==0?(n(),a("div",ss,[s("section",es,[s("div",ts,[s("div",os,o(l.value.one),1),s("div",is,[x(B,{slidesPerView:4,spaceBetween:0,grid:{rows:2,fill:"row"},"slides-per-group":4,navigation:!0,loop:!1},{items:u(()=>[(n(!0),a(p,null,v(r.value.one,e=>(n(),k(V(E),{key:e,class:"slider_item"},{default:u(()=>[s("a",{href:_(e),class:"wrap"},[s("div",as,[s("img",{src:e.image_url,alt:"",onError:d},null,40,ls)]),s("div",rs,o(l.value.one),1),s("div",cs,o(e.name),1),s("div",ds,[s("div",_s,[t[3]||(t[3]=m("$",-1)),s("span",null,o(e.price),1)])])],8,ns)]),_:2},1024))),128))]),_:1})]),s("div",us,[(n(!0),a(p,null,v(r.value.one,e=>(n(),a("a",{href:_(e),class:"item"},[s("div",vs,[s("img",{src:e.image_url,alt:"",onError:d},null,40,ms),s("div",hs,o(l.value.one),1),s("div",gs,o(e.name),1),s("div",fs,[s("div",ws,[t[4]||(t[4]=m("$",-1)),s("span",null,o(e.price),1)])])])],8,ps))),256))])])]),s("section",ys,[s("div",bs,[s("div",Ss,o(l.value.mx),1),s("div",xs,[x(B,{slidesPerView:4,spaceBetween:0,grid:{rows:2,fill:"row"},"slides-per-group":4,navigation:!0,loop:!1},{items:u(()=>[(n(!0),a(p,null,v(r.value.mx,e=>(n(),k(V(E),{key:e,class:"slider_item"},{default:u(()=>[s("a",{href:_(e),class:"wrap"},[s("div",Vs,[s("img",{src:e.image_url,alt:"",onError:d},null,40,Es)]),s("div",Bs,o(l.value.mx),1),s("div",Cs,o(e.name),1),s("div",Os,[s("div",Ts,[t[5]||(t[5]=m("$",-1)),s("span",null,o(e.price),1)])])],8,ks)]),_:2},1024))),128))]),_:1})]),s("div",$s,[(n(!0),a(p,null,v(r.value.mx,e=>(n(),a("a",{href:_(e),class:"item"},[s("div",Ps,[s("img",{src:e.image_url,alt:"",onError:d},null,40,Is),s("div",Ls,o(l.value.mx),1),s("div",Rs,o(e.name),1),s("div",Ws,[s("div",Ds,[t[6]||(t[6]=m("$",-1)),s("span",null,o(e.price),1)])])])],8,zs))),256))])])]),s("section",Ns,[s("div",As,[s("div",Fs,o(l.value.dz),1),s("div",Hs,[x(B,{slidesPerView:4,spaceBetween:0,grid:{rows:2,fill:"row"},"slides-per-group":4,navigation:!0,loop:!1},{items:u(()=>[(n(!0),a(p,null,v(r.value.dz,e=>(n(),k(V(E),{key:e,class:"slider_item"},{default:u(()=>[s("a",{href:_(e),class:"wrap"},[s("div",qs,[s("img",{src:e.image_url,alt:"",onError:d},null,40,js)]),s("div",Js,o(l.value.dz),1),s("div",Ms,o(e.name),1),s("div",Gs,[s("div",Ks,[t[7]||(t[7]=m("$",-1)),s("span",null,o(e.price),1)])])],8,Us)]),_:2},1024))),128))]),_:1})]),s("div",Qs,[(n(!0),a(p,null,v(r.value.dz,e=>(n(),a("a",{href:_(e),class:"item"},[s("div",Ys,[s("img",{src:e.image_url,alt:"",onError:d},null,40,Zs),s("div",se,o(l.value.dz),1),s("div",ee,o(e.name),1),s("div",te,[s("div",oe,[t[8]||(t[8]=m("$",-1)),s("span",null,o(e.price),1)])])])],8,Xs))),256))])])])])):y("",!0),c.value?y("",!0):(n(),a("footer",ie," åªæ å忏éæéï¼å®å®çºæ¢ãfoodomo ææ¬é²è¡æ´æ¹ï¼ä¸¦ä»¥å¯¦é販å®å
§å®¹çºä¸»ã "))],2))}},ue=H(ne,[["__scopeId","data-v-1a63ad17"]]);export{ue 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.