index.fa310059.js 30 KB

12345
  1. import{E as Te,a0 as re,aY as Ve,G as Ne,H as J,I as Me,d as Q,U as G,V as be,a5 as He,a3 as je,bu as De,j as p,aS as ze,a8 as Ke,aB as Ge,F as Fe,X as ye,J as Qe,N as Je,aV as Ye,O as qe,$ as Oe,Y as _e,g as Ce,A as Xe,aw as Ze,n as X,f as ce,b5 as $e,bs as et,y as tt,bC as le,u as ot}from"./ResizeObserver.es.f28023e0.js";import{I as ae}from"./index.7a1af785.js";import{P as rt}from"./index.7ea44a52.js";import{a as Se,S as xe}from"./index.966d1893.js";import"./index.b0753b8c.js";import{T as nt,a as pe}from"./index.aa87c0e3.js";import{T as ue}from"./index.a09f0cae.js";import{c as Ee,g as fe}from"./shop-mall.6ab98b7b.js";import{C as at}from"./index.bd375ca9.js";import"./use-id.cc14bbe9.js";import"./use-tab-status.653933d8.js";import"./use-refs.b4f9d723.js";import"./index.79f59946.js";import"./index.436b29b1.js";import"./index.3b2e70c8.js";import"./index.697873a0.js";import"./index.49ee134a.js";import"./index.7e7497a9.js";import"./index.af901340.js";import"./icon-sell-out.98742fd0.js";function S(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Ie(t){var e=S(t).Element;return t instanceof e||t instanceof Element}function C(t){var e=S(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Re(t){if(typeof ShadowRoot=="undefined")return!1;var e=S(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}var H=Math.round;function Z(t,e){e===void 0&&(e=!1);var o=t.getBoundingClientRect(),r=1,n=1;if(C(t)&&e){var a=t.offsetHeight,c=t.offsetWidth;c>0&&(r=H(o.width)/c||1),a>0&&(n=H(o.height)/a||1)}return{width:o.width/r,height:o.height/n,top:o.top/n,right:o.right/r,bottom:o.bottom/n,left:o.left/r,x:o.left/r,y:o.top/n}}function Be(t){var e=S(t),o=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:o,scrollTop:r}}function it(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function st(t){return t===S(t)||!C(t)?Be(t):it(t)}function x(t){return t?(t.nodeName||"").toLowerCase():null}function te(t){return((Ie(t)?t.ownerDocument:t.document)||window.document).documentElement}function ct(t){return Z(te(t)).left+Be(t).scrollLeft}function E(t){return S(t).getComputedStyle(t)}function ie(t){var e=E(t),o=e.overflow,r=e.overflowX,n=e.overflowY;return/auto|scroll|overlay|hidden/.test(o+n+r)}function lt(t){var e=t.getBoundingClientRect(),o=H(e.width)/t.offsetWidth||1,r=H(e.height)/t.offsetHeight||1;return o!==1||r!==1}function pt(t,e,o){o===void 0&&(o=!1);var r=C(e),n=C(e)&&lt(e),a=te(e),c=Z(t,n),l={scrollLeft:0,scrollTop:0},i={x:0,y:0};return(r||!r&&!o)&&((x(e)!=="body"||ie(a))&&(l=st(e)),C(e)?(i=Z(e,!0),i.x+=e.clientLeft,i.y+=e.clientTop):a&&(i.x=ct(a))),{x:c.left+l.scrollLeft-i.x,y:c.top+l.scrollTop-i.y,width:c.width,height:c.height}}function ut(t){var e=Z(t),o=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-o)<=1&&(o=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:o,height:r}}function se(t){return x(t)==="html"?t:t.assignedSlot||t.parentNode||(Re(t)?t.host:null)||te(t)}function Le(t){return["html","body","#document"].indexOf(x(t))>=0?t.ownerDocument.body:C(t)&&ie(t)?t:Le(se(t))}function _(t,e){var o;e===void 0&&(e=[]);var r=Le(t),n=r===((o=t.ownerDocument)==null?void 0:o.body),a=S(r),c=n?[a].concat(a.visualViewport||[],ie(r)?r:[]):r,l=e.concat(c);return n?l:l.concat(_(se(c)))}function ft(t){return["table","td","th"].indexOf(x(t))>=0}function de(t){return!C(t)||E(t).position==="fixed"?null:t.offsetParent}function dt(t){var e=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,o=navigator.userAgent.indexOf("Trident")!==-1;if(o&&C(t)){var r=E(t);if(r.position==="fixed")return null}var n=se(t);for(Re(n)&&(n=n.host);C(n)&&["html","body"].indexOf(x(n))<0;){var a=E(n);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||e&&a.willChange==="filter"||e&&a.filter&&a.filter!=="none")return n;n=n.parentNode}return null}function ke(t){for(var e=S(t),o=de(t);o&&ft(o)&&E(o).position==="static";)o=de(o);return o&&(x(o)==="html"||x(o)==="body"&&E(o).position==="static")?e:o||dt(t)||e}var M="top",$="bottom",F="right",W="left",Pe="auto",ht=[M,$,F,W],Ue="start",ee="end",vt=[].concat(ht,[Pe]).reduce(function(t,e){return t.concat([e,e+"-"+Ue,e+"-"+ee])},[]),mt="beforeRead",At="read",gt="afterRead",wt="beforeMain",bt="main",yt="afterMain",Ot="beforeWrite",Ct="write",St="afterWrite",ne=[mt,At,gt,wt,bt,yt,Ot,Ct,St];function xt(t){var e=new Map,o=new Set,r=[];t.forEach(function(a){e.set(a.name,a)});function n(a){o.add(a.name);var c=[].concat(a.requires||[],a.requiresIfExists||[]);c.forEach(function(l){if(!o.has(l)){var i=e.get(l);i&&n(i)}}),r.push(a)}return t.forEach(function(a){o.has(a.name)||n(a)}),r}function Et(t){var e=xt(t);return ne.reduce(function(o,r){return o.concat(e.filter(function(n){return n.phase===r}))},[])}function It(t){var e;return function(){return e||(e=new Promise(function(o){Promise.resolve().then(function(){e=void 0,o(t())})})),e}}function B(t){for(var e=arguments.length,o=new Array(e>1?e-1:0),r=1;r<e;r++)o[r-1]=arguments[r];return[].concat(o).reduce(function(n,a){return n.replace(/%s/,a)},t)}var P='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',Rt='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',he=["name","enabled","phase","fn","effect","requires","options"];function Bt(t){t.forEach(function(e){[].concat(Object.keys(e),he).filter(function(o,r,n){return n.indexOf(o)===r}).forEach(function(o){switch(o){case"name":typeof e.name!="string"&&console.error(B(P,String(e.name),'"name"','"string"','"'+String(e.name)+'"'));break;case"enabled":typeof e.enabled!="boolean"&&console.error(B(P,e.name,'"enabled"','"boolean"','"'+String(e.enabled)+'"'));break;case"phase":ne.indexOf(e.phase)<0&&console.error(B(P,e.name,'"phase"',"either "+ne.join(", "),'"'+String(e.phase)+'"'));break;case"fn":typeof e.fn!="function"&&console.error(B(P,e.name,'"fn"','"function"','"'+String(e.fn)+'"'));break;case"effect":e.effect!=null&&typeof e.effect!="function"&&console.error(B(P,e.name,'"effect"','"function"','"'+String(e.fn)+'"'));break;case"requires":e.requires!=null&&!Array.isArray(e.requires)&&console.error(B(P,e.name,'"requires"','"array"','"'+String(e.requires)+'"'));break;case"requiresIfExists":Array.isArray(e.requiresIfExists)||console.error(B(P,e.name,'"requiresIfExists"','"array"','"'+String(e.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+e.name+'" modifier, valid properties are '+he.map(function(r){return'"'+r+'"'}).join(", ")+'; but "'+o+'" was provided.')}e.requires&&e.requires.forEach(function(r){t.find(function(n){return n.name===r})==null&&console.error(B(Rt,String(e.name),r,r))})})})}function Lt(t,e){var o=new Set;return t.filter(function(r){var n=e(r);if(!o.has(n))return o.add(n),!0})}function oe(t){return t.split("-")[0]}function kt(t){var e=t.reduce(function(o,r){var n=o[r.name];return o[r.name]=n?Object.assign({},n,r,{options:Object.assign({},n.options,r.options),data:Object.assign({},n.data,r.data)}):r,o},{});return Object.keys(e).map(function(o){return e[o]})}function We(t){return t.split("-")[1]}function Pt(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Ut(t){var e=t.reference,o=t.element,r=t.placement,n=r?oe(r):null,a=r?We(r):null,c=e.x+e.width/2-o.width/2,l=e.y+e.height/2-o.height/2,i;switch(n){case M:i={x:c,y:e.y-o.height};break;case $:i={x:c,y:e.y+e.height};break;case F:i={x:e.x+e.width,y:l};break;case W:i={x:e.x-o.width,y:l};break;default:i={x:e.x,y:e.y}}var f=n?Pt(n):null;if(f!=null){var s=f==="y"?"height":"width";switch(a){case Ue:i[f]=i[f]-(e[s]/2-o[s]/2);break;case ee:i[f]=i[f]+(e[s]/2-o[s]/2);break}}return i}var ve="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",Wt="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",me={placement:"bottom",modifiers:[],strategy:"absolute"};function Ae(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function Tt(t){t===void 0&&(t={});var e=t,o=e.defaultModifiers,r=o===void 0?[]:o,n=e.defaultOptions,a=n===void 0?me:n;return function(l,i,f){f===void 0&&(f=a);var s={placement:"bottom",orderedModifiers:[],options:Object.assign({},me,a),modifiersData:{},elements:{reference:l,popper:i},attributes:{},styles:{}},A=[],I=!1,d={state:s,setOptions:function(v){var O=typeof v=="function"?v(s.options):v;g(),s.options=Object.assign({},a,s.options,O),s.scrollParents={reference:Ie(l)?_(l):l.contextElement?_(l.contextElement):[],popper:_(i)};var b=Et(kt([].concat(r,s.options.modifiers)));s.orderedModifiers=b.filter(function(y){return y.enabled});{var w=Lt([].concat(b,s.options.modifiers),function(y){var V=y.name;return V});if(Bt(w),oe(s.options.placement)===Pe){var m=s.orderedModifiers.find(function(y){var V=y.name;return V==="flip"});m||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var h=E(i),R=h.marginTop,k=h.marginRight,j=h.marginBottom,D=h.marginLeft;[R,k,j,D].some(function(y){return parseFloat(y)})&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return T(),d.update()},forceUpdate:function(){if(!I){var v=s.elements,O=v.reference,b=v.popper;if(!Ae(O,b)){console.error(ve);return}s.rects={reference:pt(O,ke(b),s.options.strategy==="fixed"),popper:ut(b)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach(function(y){return s.modifiersData[y.name]=Object.assign({},y.data)});for(var w=0,m=0;m<s.orderedModifiers.length;m++){if(w+=1,w>100){console.error(Wt);break}if(s.reset===!0){s.reset=!1,m=-1;continue}var h=s.orderedModifiers[m],R=h.fn,k=h.options,j=k===void 0?{}:k,D=h.name;typeof R=="function"&&(s=R({state:s,options:j,name:D,instance:d})||s)}}},update:It(function(){return new Promise(function(u){d.forceUpdate(),u(s)})}),destroy:function(){g(),I=!0}};if(!Ae(l,i))return console.error(ve),d;d.setOptions(f).then(function(u){!I&&f.onFirstUpdate&&f.onFirstUpdate(u)});function T(){s.orderedModifiers.forEach(function(u){var v=u.name,O=u.options,b=O===void 0?{}:O,w=u.effect;if(typeof w=="function"){var m=w({state:s,name:v,instance:d,options:b}),h=function(){};A.push(m||h)}})}function g(){A.forEach(function(u){return u()}),A=[]}return d}}var Y={passive:!0};function Vt(t){var e=t.state,o=t.instance,r=t.options,n=r.scroll,a=n===void 0?!0:n,c=r.resize,l=c===void 0?!0:c,i=S(e.elements.popper),f=[].concat(e.scrollParents.reference,e.scrollParents.popper);return a&&f.forEach(function(s){s.addEventListener("scroll",o.update,Y)}),l&&i.addEventListener("resize",o.update,Y),function(){a&&f.forEach(function(s){s.removeEventListener("scroll",o.update,Y)}),l&&i.removeEventListener("resize",o.update,Y)}}var Nt={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Vt,data:{}};function Mt(t){var e=t.state,o=t.name;e.modifiersData[o]=Ut({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var Ht={name:"popperOffsets",enabled:!0,phase:"read",fn:Mt,data:{}},jt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Dt(t){var e=t.x,o=t.y,r=window,n=r.devicePixelRatio||1;return{x:H(e*n)/n||0,y:H(o*n)/n||0}}function ge(t){var e,o=t.popper,r=t.popperRect,n=t.placement,a=t.variation,c=t.offsets,l=t.position,i=t.gpuAcceleration,f=t.adaptive,s=t.roundOffsets,A=t.isFixed,I=c.x,d=I===void 0?0:I,T=c.y,g=T===void 0?0:T,u=typeof s=="function"?s({x:d,y:g}):{x:d,y:g};d=u.x,g=u.y;var v=c.hasOwnProperty("x"),O=c.hasOwnProperty("y"),b=W,w=M,m=window;if(f){var h=ke(o),R="clientHeight",k="clientWidth";if(h===S(o)&&(h=te(o),E(h).position!=="static"&&l==="absolute"&&(R="scrollHeight",k="scrollWidth")),h=h,n===M||(n===W||n===F)&&a===ee){w=$;var j=A&&h===m&&m.visualViewport?m.visualViewport.height:h[R];g-=j-r.height,g*=i?1:-1}if(n===W||(n===M||n===$)&&a===ee){b=F;var D=A&&h===m&&m.visualViewport?m.visualViewport.width:h[k];d-=D-r.width,d*=i?1:-1}}var y=Object.assign({position:l},f&&jt),V=s===!0?Dt({x:d,y:g}):{x:d,y:g};if(d=V.x,g=V.y,i){var z;return Object.assign({},y,(z={},z[w]=O?"0":"",z[b]=v?"0":"",z.transform=(m.devicePixelRatio||1)<=1?"translate("+d+"px, "+g+"px)":"translate3d("+d+"px, "+g+"px, 0)",z))}return Object.assign({},y,(e={},e[w]=O?g+"px":"",e[b]=v?d+"px":"",e.transform="",e))}function zt(t){var e=t.state,o=t.options,r=o.gpuAcceleration,n=r===void 0?!0:r,a=o.adaptive,c=a===void 0?!0:a,l=o.roundOffsets,i=l===void 0?!0:l;{var f=E(e.elements.popper).transitionProperty||"";c&&["transform","top","right","bottom","left"].some(function(A){return f.indexOf(A)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',`
  2. `,'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.",`
  3. `,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var s={placement:oe(e.placement),variation:We(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:n,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,ge(Object.assign({},s,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:c,roundOffsets:i})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,ge(Object.assign({},s,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:i})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var Kt={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:zt,data:{}};function Gt(t){var e=t.state;Object.keys(e.elements).forEach(function(o){var r=e.styles[o]||{},n=e.attributes[o]||{},a=e.elements[o];!C(a)||!x(a)||(Object.assign(a.style,r),Object.keys(n).forEach(function(c){var l=n[c];l===!1?a.removeAttribute(c):a.setAttribute(c,l===!0?"":l)}))})}function Ft(t){var e=t.state,o={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,o.popper),e.styles=o,e.elements.arrow&&Object.assign(e.elements.arrow.style,o.arrow),function(){Object.keys(e.elements).forEach(function(r){var n=e.elements[r],a=e.attributes[r]||{},c=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:o[r]),l=c.reduce(function(i,f){return i[f]="",i},{});!C(n)||!x(n)||(Object.assign(n.style,l),Object.keys(a).forEach(function(i){n.removeAttribute(i)}))})}}var Qt={name:"applyStyles",enabled:!0,phase:"write",fn:Gt,effect:Ft,requires:["computeStyles"]},Jt=[Nt,Ht,Kt,Qt],Yt=Tt({defaultModifiers:Jt});function qt(t,e,o){var r=oe(t),n=[W,M].indexOf(r)>=0?-1:1,a=typeof o=="function"?o(Object.assign({},e,{placement:t})):o,c=a[0],l=a[1];return c=c||0,l=(l||0)*n,[W,F].indexOf(r)>=0?{x:l,y:c}:{x:c,y:l}}function _t(t){var e=t.state,o=t.options,r=t.name,n=o.offset,a=n===void 0?[0,0]:n,c=vt.reduce(function(s,A){return s[A]=qt(A,e.rects,a),s},{}),l=c[e.placement],i=l.x,f=l.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=i,e.modifiersData.popperOffsets.y+=f),e.modifiersData[r]=c}var Xt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:_t};const[Zt,U]=Te("popover"),$t=["show","overlay","duration","teleport","overlayStyle","overlayClass","closeOnClickOverlay"],eo={show:Boolean,theme:re("light"),overlay:Boolean,actions:Ve(),trigger:re("click"),duration:Ne,showArrow:J,placement:re("bottom"),iconPrefix:String,overlayClass:Me,overlayStyle:Object,closeOnClickAction:J,closeOnClickOverlay:J,closeOnClickOutside:J,offset:{type:Array,default:()=>[0,8]},teleport:{type:[String,Object],default:"body"}};var to=Q({name:Zt,props:eo,emits:["select","touchstart","update:show"],setup(t,{emit:e,slots:o,attrs:r}){let n;const a=G(),c=G(),l=()=>a.value&&c.value?Yt(a.value,c.value.popupRef.value,{placement:t.placement,modifiers:[{name:"computeStyles",options:{adaptive:!1,gpuAcceleration:!1}},Qe({},Xt,{options:{offset:t.offset}})]}):null,i=()=>{ye(()=>{!t.show||(n?n.setOptions({placement:t.placement}):n=l())})},f=u=>e("update:show",u),s=()=>{t.trigger==="click"&&f(!t.show)},A=u=>{u.stopPropagation(),e("touchstart",u)},I=(u,v)=>{u.disabled||(e("select",u,v),t.closeOnClickAction&&f(!1))},d=()=>{t.closeOnClickOutside&&(!t.overlay||t.closeOnClickOverlay)&&f(!1)},T=(u,v)=>o.action?o.action({action:u,index:v}):[u.icon&&p(Je,{name:u.icon,classPrefix:t.iconPrefix,class:U("action-icon")},null),p("div",{class:[U("action-text"),Ye]},[u.text])],g=(u,v)=>{const{icon:O,color:b,disabled:w,className:m}=u;return p("div",{role:"menuitem",class:[U("action",{disabled:w,"with-icon":O}),m],style:{color:b},tabindex:w?void 0:0,"aria-disabled":w||void 0,onClick:()=>I(u,v)},[T(u,v)])};return be(i),He(()=>{n&&(n.destroy(),n=null)}),je(()=>[t.show,t.placement],i),De(a,d,{eventName:"touchstart"}),()=>{var u;return p(Fe,null,[p("span",{ref:a,class:U("wrapper"),onClick:s},[(u=o.reference)==null?void 0:u.call(o)]),p(ze,Ke({ref:c,class:U([t.theme]),position:"",transition:"van-popover-zoom",lockScroll:!1,onTouchstart:A,"onUpdate:show":f},r,Ge(t,$t)),{default:()=>[t.showArrow&&p("div",{class:U("arrow")},null),p("div",{role:"menu",class:U("content")},[o.default?o.default():t.actions.map(g)])]})])}}});const oo=qe(to);var ro="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAoCAYAAACIC2hQAAAAAXNSR0IArs4c6QAAA9pJREFUWEfN2H1oVWUcwPHvc69Z0ybONpGZmU6NEt2mhdsw06B8AVFcW4hS4gvOl0jDNJUsRSgyUHoPEl+CEZso+s/Y/lDKV2jSNrXwlXKuLIZOXc2md4/85J7tuYe7c869ec7t+e/ee57n+dzzvP2enwIKgB3AU4AitrQB3wGLgIjtt0A/CuwM8IxLr/OAXYHKbJ0J9BqQ4YL4EliaaugHwDsuiGpgSqqh0v+Ltjk6AXjVgJ0HRvwfoHbDTGCf8WU7kAZ0pAprX+WWYzRQb6IGrV0yI3P6pBuBQnuEdaSDSw0FxVe6gz4K3DS3q5xt635PH5efHSgU0OgOQuGl3UHF8xeQZcEGrlrYnFU8OTNoqPSnFVedoCeAcRas/+uz7maXze6RCihw3QlaDsy2YH3GP3dt6JbV/VIE/ckJuhlYb8FU2sP1uQfLlwUBVUTWaNR0qy8Ne52gC4BvDNifwIAgoHnHKqtRvNzZl1IfO0EnAQcNmAbSgb/9xuYdrzwHDO+ChpY5QQcDv9pQo4DTvkK1DuWd2CNRW8/OaQfTnKBh4B+zAjADOOAndGxtxRORO+o3s4+IVk87QeVZOeOHGZVWAtv8hOYdr5wIHOoadjpa2lp7u0Elauqa1PAJ8Kaf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AAAXNSR0IArs4c6QAAAKhJREFUOE+9k80NwjAMhb8ugMQQZQUYgAVgGmABugxlABigXaEMgWACZDU+ENV9OTWXKPGT/H7sivFsgCuwT+8ncAaGKhU7YJ2Kfr2BnQFuwDEr+rM1wAdYBYBvEUC2MAWzJKdkPoCLywz4jd9GciGAKWmyLE7FWbTAIWB6L7JahiWzqIE+GJitO2mgqZF7LWh1mKhzyPfib2DkyEmjpNUSIFtIkrPr/wMjhDS5mC5rjQAAAABJRU5ErkJggg==",so="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAoCAYAAACWwljjAAAAAXNSR0IArs4c6QAAAWlJREFUWEftmL9Lw0AUx7+v6VIVBzuqo65KLsR01slVsjsLiiDo36AgiIOze3F10tlYklBXHW1HHUTt0vTJDXYoqSfpWY9yt4Xj5T73ee/y4xEAcl13h4iOACzIa4x3MIAWMx+naXpBQohdAOfjZRi62p4EagGYNwSoLYF6/5CmYftnCSRz2B9Jkoy1hgbXt0CDubKGVKfXGvoTQ77vV7Ms22bmGdUCefNE9O44zmWj0XjRUtSe590w83oRmO8YIrqN43hDC5AQ4hNAZRQgAJ0kSaa0ABlnyLgaGjFVP4bb55DKrjVkDakMqOYno4bc6CroMZ8BvKjacf48PZeI9tNgK9Ly6li9qz8CWCoG0496atbCZV1A8rNhbkSg12YtrGoBWonqBwBOiFEqAsUE+e93+BCEp1qA5E3WouvZbrkzXQSo3K183Aebb3mxk3HKilj5bYw1pDJlDU2EIeMaVsa19MxqeprWFv4Cg3ombpWgR0sAAAAASUVORK5CYII=",co="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAABLtJREFUWEe9l2toXEUUgM+Zu4kaQVKpVVLKZjMz2bYrRiEpEhHFltJqWpXijxbBNlUQrIoSKkIrFqvS+kb7Q3yB+kPoQ2tBqVLjI7WowUeFxt25s5uIkFCVsk26mN29c2R0d5ndbDebJuT8u/eexzdzzp1zBqEO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zURESjxhj7vAgR7Uhm//Mp4xgA2NnxcSnlHt/3FwkhTp93B4oflFKXIeJ7RFRWrfWmwNGb8Dyvt62tbb9S6hkAuM+eN1LKn8rSXM0xEaHW2vbxHUR05UyDI+KnRNQnpTyllHoRAB4p+DhjjFkTjUa/L/qseTEZGxu7dHx8/EFE3EpEYhoQ29SOMsb2cs4HrK5Sah0AVJ4nZxHxViHEcatTE8ANWBixuhGxnYjsncHeCcYZY7aXnDTGDEgpz1ZCaq2fMMaUmk/h+wQirhdC9NcNMNM0uPpKqccQ8Vmb2tLWI2YYY3fOC4ANqrV+2BhjB9JSTMbY/nkDsBCJROJ+RLStmAHAgXQ6vWleASyE7/ubAeAWzvkWe/n5F1ek5boVi45TAAAAAElFTkSuQmCC";const lo="_hotGoods_1xtmi_1",po="_title_1xtmi_8",uo="_tips_1xtmi_20",fo="_hotGoodsSection_1xtmi_36",ho="_hotGoodsItem_1xtmi_42",vo="_hotGoodsItemImg_1xtmi_43",mo="_hotGoodsWrap_1xtmi_50",Ao="_hotIcon_1xtmi_53";var q={hotGoods:lo,title:po,tips:uo,hotGoodsSection:fo,hotGoodsItem:ho,hotGoodsItemImg:vo,hotGoodsWrap:mo,hotIcon:Ao},go=Q({name:"hot-goods",props:{hotProductList:{type:Array,default:[]},onOpenWebView:{type:Function,default:t=>{}}},render(){return p("div",{class:q.hotGoods},[p("div",{class:q.hotGoodsSection},[this.hotProductList.map(t=>p("div",{class:q.hotGoodsItem,onClick:()=>{this.onOpenWebView("/goodsDetail?id="+t.id)}},[p(ae,{class:q.hotGoodsItemImg,src:t.pic,fit:"cover"},null)]))])])}});const wo="_swipeType_se6u6_1",bo="_swipeTypeShow_se6u6_17",yo="_typeSection_se6u6_20",Oo="_typeItem_se6u6_24",Co="_swipeTypeImg_se6u6_28",So="_typeName_se6u6_34";var N={swipeType:wo,swipeTypeShow:bo,typeSection:yo,typeItem:Oo,swipeTypeImg:Co,typeName:So};function we(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!Oe(t)}var xo=Q({name:"menu-list",props:{productList:{type:Array,default:[]},onOpenWebView:{type:Function,default:t=>{}}},render(){let t;return p(xe,{class:[N.swipeType,this.productList.length>1&&N.swipeTypeShow],"indicator-color":"var(--van-primary)",loop:!1,showIndicators:this.productList.length>1},we(t=this.productList.map(e=>{let o;return p(Se,{class:N.typeSection},we(o=e.map(r=>p("div",{class:N.typeItem,onClick:()=>{this.onOpenWebView("/goodsList?id="+r.id+"&tag="+encodeURIComponent(r.name))}},[p(ae,{class:N.swipeTypeImg,src:r.icon,fit:"cover"},null),p("p",{class:N.typeName},[r.name])])))?o:{default:()=>[o]})}))?t:{default:()=>[t]})}});const Eo="_shopMall_3fob3_1",Io="_hotContent_3fob3_5",Ro="_dot_3fob3_15",Bo="_iconBadge_3fob3_24",Lo="_searchBox_3fob3_27",ko="_swipe_3fob3_33",Po="_swipeItemImg_3fob3_38",Uo="_tabs_3fob3_53";var K={shopMall:Eo,hotContent:Io,"icon-shop-cart":"_icon-shop-cart_3fob3_10",dot:Ro,iconBadge:Bo,searchBox:Lo,swipe:ko,swipeItemImg:Po,tabs:Uo};const Wo="_theHomeHeader_1wz49_1",To="_content_1wz49_8",Vo="_mall_1wz49_12",No="_cart_1wz49_17",Mo="_more_1wz49_22",Ho="_searchBox_1wz49_29",jo="_iconSearch_1wz49_41",Do="_popover_1wz49_46";var L={theHomeHeader:Wo,content:To,mall:Vo,cart:No,more:Mo,searchBox:Ho,iconSearch:jo,popover:Do};var zo=Q({name:"TheHomeHeader",emits:["cart","more","search","headerDom"],setup(t,{emit:e}){const o=G(sessionStorage.getItem("navHeight")),r=G(null);(()=>{X({api:"setBarStatus",content:{status:0}}),!o.value&&X({api:"getNavHeight"},i=>{const{content:f}=i,s=f.dpi||2;if(f.navHeight){const A=f.navHeight/s+"";sessionStorage.setItem("navHeight",A),o.value=A}})})();const a={reference:()=>p("img",{class:L.more,src:io,onClick:()=>e("more")},null)};be(()=>{ye(()=>{setTimeout(()=>{const{height:i}=_e(r);e("headerDom",i)},300)})});const c=G(!1),l=[{text:"\u6211\u7684\u8BA2\u5355",icon:so,url:"/goodsOrder"},{text:"\u6211\u7684\u5730\u5740",icon:no,url:"/"}];return()=>p("div",{class:L.theHomeHeader,ref:r},[Ce.sourcType==="kt"?p(at,null,null):p("div",{style:{height:o.value+"px",background:"#fff"}},null),p("div",{class:L.content},[p("img",{class:L.mall,src:ao},null),p("div",{class:L.searchBox,onClick:()=>e("search")},[p("img",{class:L.iconSearch,src:co},null),p("span",null,[Xe("\u641C\u7D22\u4F60\u559C\u6B22\u7684\u5185\u5BB9")])]),p(Ze,{content:Ee.value,showZero:!1},{default:()=>[p("img",{class:L.cart,src:ro,onClick:()=>e("cart")},null)]}),p(oo,{placement:"bottom-end",class:L.popover,show:c.value,"onUpdate:show":i=>c.value=i,actions:l,onSelect:i=>e("more",i)},a)])])}});function Ko(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!Oe(t)}var pr=Q({name:"shop-mall",data(){return{loading:!1,height:"auto",count:0,advertiseList:[],productList:[],hotProductList:[],productCategoryList:[]}},mounted(){this.init(),ce().ios?document.addEventListener("visibilitychange",t=>{if(!document.hidden){fe();const e=this.$refs.tabFirst;e==null||e.onSearch()}}):$e("UpdateToken",t=>{t!=null&&t.content.token&&ot(t==null?void 0:t.content.token),fe();const e=this.$refs.tabFirst;e==null||e.onSearch()})},unmounted(){et("UpdateToken",()=>{})},methods:{onRefresh(){this.productCategoryList=[],this.$nextTick(()=>{this.init()});const t=this.$refs.tabFirst;t==null||t.onSearch()},async init(){try{const e=(await tt.get("/api-mall-portal/home/content")).data||{};this.count=e.count,Ee.value=e.count,this.advertiseList=e.advertiseList;const o=e.productCategoryList||[],r=[];for(;o.length>0;){const n=o.splice(0,5);r.push(n)}this.productList=r,this.hotProductList=e.hotProductList||[],this.productCategoryList=e.productAttributeCategoryList||[]}catch{}setTimeout(()=>{this.loading=!1},500)},openWebView(t){try{const e=location.origin+location.pathname+"#";if(!t)return;if(t.indexOf("http")<0&&(t=e+t),!ce().isApp){location.href=t;return}Ce.sourcType==="kt"&&(t.indexOf("?")!==-1?t+=`&Authorization=${encodeURI(le()||"")}&source=kt`:t+=`?Authorization=${encodeURI(le()||"")}&source=kt`),X({api:"openWebView",content:{url:t,orientation:1,isHideTitle:!1}})}catch{}}},render(){let t;return p("div",{class:K.shopMall},[p(zo,{onCart:()=>this.openWebView("/cart"),onSearch:()=>this.openWebView("/goodsList?input=focus"),onHeaderDom:e=>{console.log(e,"height"),this.height=e+"px"},onMore:e=>{!e||(e.text=="\u6211\u7684\u5730\u5740"?X({api:"setAddress",content:{}}):this.openWebView(e.url))}},null),p(rt,{modelValue:this.loading,"onUpdate:modelValue":e=>this.loading=e,"loading-text":"\u6B63\u5728\u5237\u65B0...","success-text":"\u5237\u65B0\u5B8C\u6210",onRefresh:()=>this.onRefresh()},{default:()=>[p("div",{class:K.hotContent},[p(xe,{class:K.swipe,autoplay:3e3},Ko(t=this.advertiseList.map(e=>p(Se,{onClick:()=>this.openWebView(e.url)},{default:()=>[p(ae,{class:K.swipeItemImg,src:e.pic,fit:"fill"},null)]})))?t:{default:()=>[t]}),p(xo,{productList:this.productList,onOpenWebView:this.openWebView},null)]),this.hotProductList.length===3&&p(go,{hotProductList:this.hotProductList,onOpenWebView:this.openWebView},null),p(nt,{shrink:!0,lineWidth:25,background:"#f6f8f9",color:"var(--van-primary)",class:K.tabs,sticky:!0,offsetTop:this.height,lazyRender:!0},{default:()=>[p(pe,{title:"\u5168\u90E8",name:0},{default:()=>[p(ue,{ref:"tabFirst",isTab:!0,productAttributeCategoryId:0,onOpenWebView:this.openWebView,showAdd:!1},null)]}),this.productCategoryList.map(e=>p(pe,{title:e.name,name:e.id},{default:()=>[p(ue,{isTab:!0,showAdd:!1,productAttributeCategoryId:e.id,onOpenWebView:this.openWebView},null)]}))]})]})])}});export{pr as default};