1import{ax as D,bJ as H,a7 as U,bL as j,by as V,bI as t,bo as a,an as n,cr as e,m as c,bf as k,au as o,ao as s,f as $,B as N,ap as y,am as P,bC as b,at as R,aj as g,cd as F,c7 as M,bl as z,b as T,bx as E,bz as O,bv as G}from"./index-DCQ3fU8B.js";import{V as q,l as J}from"./VAppBar-CL_QMrkC.js";const K=D("landingPageStore",{state:()=>({landingPageContent:{}}),getters:{getLandingPageContent(u){return l=>u.landingPageContent?.[l]}},actions:{async loadLandingPage(u){try{const v=H().getPreviewMode,_=await this.$axios.get("/landing-pages/"+u+"/"+(v?`?preview=${v.token}`:""));this.landingPageContent[u]=_.data}catch(l){console.error(l)}setTimeout(()=>{window.prerenderReady=!0},1e3)}}}),Q="/assets/logoFullPRO-qNAUoGgE.svg",W={key:0,class:"old-price text-textTertiary text-body-extra-small"},X=["test-id"],Y=["test-id"],Z={key:0,class:"text-center flex-1 px-4"},ee={key:0,class:"old-price text-textTertiary text-body-extra-small"},te=["test-id"],ae=["test-id"],oe={__name:"AppBarCustom",props:{data:{type:Object,required:!0,defaul:{}}},setup(u){const{$isMobile:l,$isTablet:v,$isLargeTablet:_,appStore:f,$inAppShop:w,$t:d,$money:h,$price:A,$isPro:L}=j(),B=g({get:()=>f.getSite}),C=g(()=>f.getLogo?f.getLogo.src:B.value==="b2b"?Q:J),i=u,p=g(()=>i.data.text),r=g(()=>i.data.product),S=g(()=>i.data.coupon),x=g(()=>i.data.old_price),m=g(()=>i.data.new_price);return(re,ne)=>{const I=V("HS");return t(l)?(a(),n(q,{key:0,app:"",id:"header",absolute:"",elevation:"0",dense:"",height:p.value?72:56,class:k(["app-bar--component app-bar-mobile custom-app-bar-mobile",t(L)?"bg-dark":""])},{default:e(()=>[p.value?(a(),n(c,{key:0,cols:"12",class:"mobile-text-line section-border-bottom py-0 d-flex align-center"},{default:e(()=>[p.value?(a(),n(c,{key:0,cols:"auto",class:k(["text-center flex-1 ml-0 pa-0",[t(l)?"":"pr-6"]])},{default:e(()=>[o(I,{t:p.value},null,8,["t"])]),_:1},8,["class"])):s("",!0)]),_:1})):s("",!0),o(c,{cols:"12",class:"d-flex justify-start pa-0 align-center"},{default:e(()=>[t(w)?s("",!0):(a(),n($,{key:0,to:{name:"home"},class:"mx-3 pa-0",height:"48px",color:"transparent"},{default:e(()=>[o(N,{src:C.value,height:"37px",width:"120px"},null,8,["src"])]),_:1})),o(c,{cols:"auto",class:"d-flex pa-0 align-center ml-auto mr-0"},{default:e(()=>[m.value?(a(),n(c,{key:0,class:"d-flex flex-column align-end pa-0 text-right pr-2"},{default:e(()=>[x.value&&x.value>m.value?(a(),y("s",W,[P("span",{"test-id":`product-with-coupon-old-price-${r.value}`},b(t(A)(x.value)),9,X)])):s("",!0),P("span",{class:"new-price font-weight-medium text-body","test-id":`product-with-coupon-new-price-${r.value}`},b(t(h)(m.value)),9,Y)]),_:1})):s("",!0),r.value&&S.value?(a(),n(c,{key:1,cols:"auto",class:"pa-0 ml-auto mr-2"},{default:e(()=>[o($,{class:"button-small-primary px-4","test-id":`product-with-coupon-add-to-cart-${r.value}`,to:{name:"cart",query:{product:r.value,coupon:encodeURIComponent(S.value)}}},{default:e(()=>[R(b(t(d)("order")),1)]),_:1},8,["test-id","to"])]),_:1})):s("",!0)]),_:1})]),_:1})]),_:1},8,["height","class"])):(a(),n(q,{key:1,app:"",id:"header",absolute:"",elevation:"0",dense:"",height:"78",class:k(["app-bar--component app-bar-desktop section-border-bottom custom-app-bar-desktop",t(L)?"bg-dark":""])},{default:e(()=>[o(c,{cols:"12",class:"d-flex justify-center pa-0"},{default:e(()=>[o(c,{cols:"12",class:"d-flex main-column-full pa-0 align-center"},{default:e(()=>[P("div",{class:k(["section-border-right section-border-left letter-spacing-wide",t(_)?"":"app-bar-margin-left"])},[o($,{to:{name:"home"},class:"mx-8 my-3 transparent pa-0",height:"54px",color:"transparent"},{default:e(()=>[o(N,{src:C.value,height:"48px",width:"160px"},null,8,["src"])]),_:1})],2),p.value?(a(),y("div",Z,[o(I,{t:p.value},null,8,["t"])])):s("",!0),r.value&&m.value?(a(),y("div",{key:1,class:k(["section-border-right section-border-left d-flex align-center h-100p",[t(_)?"":"app-bar-margin-right",t(v)?"px-4":"px-10"]])},[m.value?(a(),n(c,{key:0,class:"d-flex flex-column align-end pa-0 my-4 text-right"},{default:e(()=>[x.value&&x.value>m.value?(a(),y("s",ee,[P("span",{"test-id":`product-with-coupon-old-price-${r.value}`},b(t(h)(x.value)),9,te)])):s("",!0),P("span",{class:"new-price font-weight-medium text-body","test-id":`product-with-coupon-new-price-${r.value}`},b(t(h)(m.value)),9,ae)]),_:1})):s("",!0),r.value?(a(),n(c,{key:1,class:"pa-0 ml-7"},{default:e(()=>[o($,{class:"button-medium-primary w-142","test-id":`product-with-coupon-add-to-cart-${r.value}`,to:{name:"cart",query:{product:r.value,...S.value?{coupon:encodeURIComponent(S.value)}:{}}}},{default:e(()=>[R(b(t(d)("orderNow")),1)]),_:1},8,["test-id","to"])]),_:1})):s("",!0)],2)):s("",!0)]),_:1})]),_:1})]),_:1},8,["class"]))}}},se=U(oe,[["__scopeId","data-v-06ba37e6"]]),ue={__name:"LandingPageView",props:{slug:{type:String,required:!0}},setup(u){const{appStore:l}=j(),v=F(),_=M(),f=u,w=K(),d=g(()=>w.getLandingPageContent(f.slug)),h=G(!1);return z(async()=>{await w.loadLandingPage(f.slug),d?.value?.header?.reload_user_info&&await l.loadUserInfo(),h.value=!0,_.loadProducts()}),(A,L)=>{const B=V("CustomHead"),C=V("loader");return a(),y(T,null,[o(B,{pageData:t(w).getLandingPageContent(u.slug),type:"landingPage"},null,8,["pageData"]),o(C,{loading:!d.value||!h.value,content:t(l).getLoader(t(v).currentRoute?.value?.name)},{default:e(()=>[d.value?.header?(a(),n(se,{key:0,data:d.value?.header},null,8,["data"])):s("",!0),(a(!0),y(T,null,E(d.value.blocks,(i,p)=>(a(),n(O(i.type),{key:p,data:i.value,"block-id":i.id,"meta-data":d.value.meta},null,8,["data","block-id","meta-data"]))),128))]),_:1},8,["loading","content"])],64)}}};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.