index.f14348d8.js 30 KB

12345
  1. import{A as We,$ as re,aV as Ue,E as Te,G as q,H as Ve,d as Q,S as G,U as we,a4 as Ne,a2 as Me,bs as He,j as p,aR as je,a7 as De,aA as Ke,F as ze,W as be,I as Ge,M as Fe,aY as Qe,N as qe,Z as ye,X as Je,z as Ye,av as _e,n as X,f as ce,b0 as Xe,bq as Ze,w as $e,t as et}from"./index.e6d6174e.js";import{I as ae}from"./index.67c54471.js";import{P as tt}from"./index.77ef0efc.js";import{a as Oe,S as Ce}from"./index.b4a53c6a.js";import"./index.9093bc60.js";import{T as ot,a as le}from"./index.54627972.js";import{T as pe}from"./index.6cc61bb5.js";import{c as Se,g as ue}from"./shop-mall.60cd47e3.js";import"./use-id.f239f36f.js";import"./use-tab-status.e9ba8498.js";import"./use-refs.eb803454.js";import"./index.f904775d.js";import"./index.f6065c02.js";import"./index.af99cf22.js";import"./index.cbc70232.js";import"./index.d92a5aca.js";import"./index.36f208b2.js";import"./index.05f2b7dd.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 xe(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 Ee(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 Ie(t){var e=S(t),o=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:o,scrollTop:r}}function rt(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function nt(t){return t===S(t)||!C(t)?Ie(t):rt(t)}function x(t){return t?(t.nodeName||"").toLowerCase():null}function te(t){return((xe(t)?t.ownerDocument:t.document)||window.document).documentElement}function at(t){return Z(te(t)).left+Ie(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 it(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 st(t,e,o){o===void 0&&(o=!1);var r=C(e),n=C(e)&&it(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=nt(e)),C(e)?(i=Z(e,!0),i.x+=e.clientLeft,i.y+=e.clientTop):a&&(i.x=at(a))),{x:c.left+l.scrollLeft-i.x,y:c.top+l.scrollTop-i.y,width:c.width,height:c.height}}function ct(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||(Ee(t)?t.host:null)||te(t)}function Re(t){return["html","body","#document"].indexOf(x(t))>=0?t.ownerDocument.body:C(t)&&ie(t)?t:Re(se(t))}function _(t,e){var o;e===void 0&&(e=[]);var r=Re(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 lt(t){return["table","td","th"].indexOf(x(t))>=0}function fe(t){return!C(t)||E(t).position==="fixed"?null:t.offsetParent}function pt(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(Ee(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 Be(t){for(var e=S(t),o=fe(t);o&&lt(o)&&E(o).position==="static";)o=fe(o);return o&&(x(o)==="html"||x(o)==="body"&&E(o).position==="static")?e:o||pt(t)||e}var M="top",$="bottom",F="right",U="left",Le="auto",ut=[M,$,F,U],Pe="start",ee="end",ft=[].concat(ut,[Le]).reduce(function(t,e){return t.concat([e,e+"-"+Pe,e+"-"+ee])},[]),dt="beforeRead",ht="read",vt="afterRead",mt="beforeMain",At="main",gt="afterMain",wt="beforeWrite",bt="write",yt="afterWrite",ne=[dt,ht,vt,mt,At,gt,wt,bt,yt];function Ot(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 Ct(t){var e=Ot(t);return ne.reduce(function(o,r){return o.concat(e.filter(function(n){return n.phase===r}))},[])}function St(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 k='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',xt='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',de=["name","enabled","phase","fn","effect","requires","options"];function Et(t){t.forEach(function(e){[].concat(Object.keys(e),de).filter(function(o,r,n){return n.indexOf(o)===r}).forEach(function(o){switch(o){case"name":typeof e.name!="string"&&console.error(B(k,String(e.name),'"name"','"string"','"'+String(e.name)+'"'));break;case"enabled":typeof e.enabled!="boolean"&&console.error(B(k,e.name,'"enabled"','"boolean"','"'+String(e.enabled)+'"'));break;case"phase":ne.indexOf(e.phase)<0&&console.error(B(k,e.name,'"phase"',"either "+ne.join(", "),'"'+String(e.phase)+'"'));break;case"fn":typeof e.fn!="function"&&console.error(B(k,e.name,'"fn"','"function"','"'+String(e.fn)+'"'));break;case"effect":e.effect!=null&&typeof e.effect!="function"&&console.error(B(k,e.name,'"effect"','"function"','"'+String(e.fn)+'"'));break;case"requires":e.requires!=null&&!Array.isArray(e.requires)&&console.error(B(k,e.name,'"requires"','"array"','"'+String(e.requires)+'"'));break;case"requiresIfExists":Array.isArray(e.requiresIfExists)||console.error(B(k,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 '+de.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(xt,String(e.name),r,r))})})})}function It(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 Rt(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 ke(t){return t.split("-")[1]}function Bt(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Lt(t){var e=t.reference,o=t.element,r=t.placement,n=r?oe(r):null,a=r?ke(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 U:i={x:e.x-o.width,y:l};break;default:i={x:e.x,y:e.y}}var f=n?Bt(n):null;if(f!=null){var s=f==="y"?"height":"width";switch(a){case Pe: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 he="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",Pt="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",ve={placement:"bottom",modifiers:[],strategy:"absolute"};function me(){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 kt(t){t===void 0&&(t={});var e=t,o=e.defaultModifiers,r=o===void 0?[]:o,n=e.defaultOptions,a=n===void 0?ve:n;return function(l,i,f){f===void 0&&(f=a);var s={placement:"bottom",orderedModifiers:[],options:Object.assign({},ve,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:xe(l)?_(l):l.contextElement?_(l.contextElement):[],popper:_(i)};var b=Ct(Rt([].concat(r,s.options.modifiers)));s.orderedModifiers=b.filter(function(y){return y.enabled});{var w=It([].concat(b,s.options.modifiers),function(y){var V=y.name;return V});if(Et(w),oe(s.options.placement)===Le){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,P=h.marginRight,j=h.marginBottom,D=h.marginLeft;[R,P,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(!me(O,b)){console.error(he);return}s.rects={reference:st(O,Be(b),s.options.strategy==="fixed"),popper:ct(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(Pt);break}if(s.reset===!0){s.reset=!1,m=-1;continue}var h=s.orderedModifiers[m],R=h.fn,P=h.options,j=P===void 0?{}:P,D=h.name;typeof R=="function"&&(s=R({state:s,options:j,name:D,instance:d})||s)}}},update:St(function(){return new Promise(function(u){d.forceUpdate(),u(s)})}),destroy:function(){g(),I=!0}};if(!me(l,i))return console.error(he),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 J={passive:!0};function Wt(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,J)}),l&&i.addEventListener("resize",o.update,J),function(){a&&f.forEach(function(s){s.removeEventListener("scroll",o.update,J)}),l&&i.removeEventListener("resize",o.update,J)}}var Ut={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Wt,data:{}};function Tt(t){var e=t.state,o=t.name;e.modifiersData[o]=Lt({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var Vt={name:"popperOffsets",enabled:!0,phase:"read",fn:Tt,data:{}},Nt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Mt(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 Ae(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=U,w=M,m=window;if(f){var h=Be(o),R="clientHeight",P="clientWidth";if(h===S(o)&&(h=te(o),E(h).position!=="static"&&l==="absolute"&&(R="scrollHeight",P="scrollWidth")),h=h,n===M||(n===U||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===U||(n===M||n===$)&&a===ee){b=F;var D=A&&h===m&&m.visualViewport?m.visualViewport.width:h[P];d-=D-r.width,d*=i?1:-1}}var y=Object.assign({position:l},f&&Nt),V=s===!0?Mt({x:d,y:g}):{x:d,y:g};if(d=V.x,g=V.y,i){var K;return Object.assign({},y,(K={},K[w]=O?"0":"",K[b]=v?"0":"",K.transform=(m.devicePixelRatio||1)<=1?"translate("+d+"px, "+g+"px)":"translate3d("+d+"px, "+g+"px, 0)",K))}return Object.assign({},y,(e={},e[w]=O?g+"px":"",e[b]=v?d+"px":"",e.transform="",e))}function Ht(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:ke(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,Ae(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,Ae(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 jt={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Ht,data:{}};function Dt(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 Kt(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 zt={name:"applyStyles",enabled:!0,phase:"write",fn:Dt,effect:Kt,requires:["computeStyles"]},Gt=[Ut,Vt,jt,zt],Ft=kt({defaultModifiers:Gt});function Qt(t,e,o){var r=oe(t),n=[U,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,[U,F].indexOf(r)>=0?{x:l,y:c}:{x:c,y:l}}function qt(t){var e=t.state,o=t.options,r=t.name,n=o.offset,a=n===void 0?[0,0]:n,c=ft.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 Jt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:qt};const[Yt,W]=We("popover"),_t=["show","overlay","duration","teleport","overlayStyle","overlayClass","closeOnClickOverlay"],Xt={show:Boolean,theme:re("light"),overlay:Boolean,actions:Ue(),trigger:re("click"),duration:Te,showArrow:q,placement:re("bottom"),iconPrefix:String,overlayClass:Ve,overlayStyle:Object,closeOnClickAction:q,closeOnClickOverlay:q,closeOnClickOutside:q,offset:{type:Array,default:()=>[0,8]},teleport:{type:[String,Object],default:"body"}};var Zt=Q({name:Yt,props:Xt,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?Ft(a.value,c.value.popupRef.value,{placement:t.placement,modifiers:[{name:"computeStyles",options:{adaptive:!1,gpuAcceleration:!1}},Ge({},Jt,{options:{offset:t.offset}})]}):null,i=()=>{be(()=>{!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(Fe,{name:u.icon,classPrefix:t.iconPrefix,class:W("action-icon")},null),p("div",{class:[W("action-text"),Qe]},[u.text])],g=(u,v)=>{const{icon:O,color:b,disabled:w,className:m}=u;return p("div",{role:"menuitem",class:[W("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 we(i),Ne(()=>{n&&(n.destroy(),n=null)}),Me(()=>[t.show,t.placement],i),He(a,d,{eventName:"touchstart"}),()=>{var u;return p(ze,null,[p("span",{ref:a,class:W("wrapper"),onClick:s},[(u=o.reference)==null?void 0:u.call(o)]),p(je,De({ref:c,class:W([t.theme]),position:"",transition:"van-popover-zoom",lockScroll:!1,onTouchstart:A,"onUpdate:show":f},r,Ke(t,_t)),{default:()=>[t.showArrow&&p("div",{class:W("arrow")},null),p("div",{role:"menu",class:W("content")},[o.default?o.default():t.actions.map(g)])]})])}}});const $t=qe(Zt);var eo="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+IVk87QeVZOeOHGZVWAtv8hOYdr5wIHOoadjpa2lp7u0Elauqa1PAJ8Kaf0Nxje+YrpbcbfTTVFZY87gaVOLSss1I4XJX/496FfkL1v+2rABk5q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gAVgGmABugxlABigXaEMgWACZDU+ENV9OTWXKPGT/H7sivFsgCuwT+8ncAaGKhU7YJ2Kfr2BnQFuwDEr+rM1wAdYBYBvEUC2MAWzJKdkPoCLywz4jd9GciGAKWmyLE7FWbTAIWB6L7JahiWzqIE+GJitO2mgqZF7LWh1mKhzyPfib2DkyEmjpNUSIFtIkrPr/wMjhDS5mC5rjQAAAABJRU5ErkJggg==",no="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAoCAYAAACWwljjAAAAAXNSR0IArs4c6QAAAWlJREFUWEftmL9Lw0AUx7+v6VIVBzuqo65KLsR01slVsjsLiiDo36AgiIOze3F10tlYklBXHW1HHUTt0vTJDXYoqSfpWY9yt4Xj5T73ee/y4xEAcl13h4iOACzIa4x3MIAWMx+naXpBQohdAOfjZRi62p4EagGYNwSoLYF6/5CmYftnCSRz2B9Jkoy1hgbXt0CDubKGVKfXGvoTQ77vV7Ms22bmGdUCefNE9O44zmWj0XjRUtSe590w83oRmO8YIrqN43hDC5AQ4hNAZRQgAJ0kSaa0ABlnyLgaGjFVP4bb55DKrjVkDakMqOYno4bc6CroMZ8BvKjacf48PZeI9tNgK9Ly6li9qz8CWCoG0496atbCZV1A8rNhbkSg12YtrGoBWonqBwBOiFEqAsUE+e93+BCEp1qA5E3WouvZbrkzXQSo3K183Aebb3mxk3HKilj5bYw1pDJlDU2EIeMaVsa19MxqeprWFv4Cg3ombpWgR0sAAAAASUVORK5CYII=",ao="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAABLtJREFUWEe9l2toXEUUgM+Zu4kaQVKpVVLKZjMz2bYrRiEpEhHFltJqWpXijxbBNlUQrIoSKkIrFqvS+kb7Q3yB+kPoQ2tBqVLjI7WowUeFxt25s5uIkFCVsk26mN29c2R0d5ndbDebJuT8u/eexzdzzp1zBqEO0Vp3GWN6ELGbiNoRcSERNQLABACMAMBJxlh/KBT6KBwOn6nD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oflFKXIeJ7RFRWrfWmwNGb8Dyvt62tbb9S6hkAuM+eN1LKn8rSXM0xEaHW2vbxHUR05UyDI+KnRNQnpTyllHoRAB4p+DhjjFkTjUa/L/qseTEZGxu7dHx8/EFE3EpEYhoQ29SOMsb2cs4HrK5Sah0AVJ4nZxHxViHEcatTE8ANWBixuhGxnYjsncHeCcYZY7aXnDTGDEgpz1ZCaq2fMMaUmk/h+wQirhdC9NcNMNM0uPpKqccQ8Vmb2tLWI2YYY3fOC4ANqrV+2BhjB9JSTMbY/nkDsBCJROJ+RLStmAHAgXQ6vWleASyE7/ubAeAWzvkWe/n5F1ek5boVi45TAAAAAElFTkSuQmCC";const io="_hotGoods_1xtmi_1",so="_title_1xtmi_8",co="_tips_1xtmi_20",lo="_hotGoodsSection_1xtmi_36",po="_hotGoodsItem_1xtmi_42",uo="_hotGoodsItemImg_1xtmi_43",fo="_hotGoodsWrap_1xtmi_50",ho="_hotIcon_1xtmi_53";var Y={hotGoods:io,title:so,tips:co,hotGoodsSection:lo,hotGoodsItem:po,hotGoodsItemImg:uo,hotGoodsWrap:fo,hotIcon:ho},vo=Q({name:"hot-goods",props:{hotProductList:{type:Array,default:[]},onOpenWebView:{type:Function,default:t=>{}}},render(){return p("div",{class:Y.hotGoods},[p("div",{class:Y.hotGoodsSection},[this.hotProductList.map(t=>p("div",{class:Y.hotGoodsItem,onClick:()=>{this.onOpenWebView("/goodsDetail?id="+t.id)}},[p(ae,{class:Y.hotGoodsItemImg,src:t.pic,fit:"cover"},null)]))])])}});const mo="_swipeType_se6u6_1",Ao="_swipeTypeShow_se6u6_17",go="_typeSection_se6u6_20",wo="_typeItem_se6u6_24",bo="_swipeTypeImg_se6u6_28",yo="_typeName_se6u6_34";var N={swipeType:mo,swipeTypeShow:Ao,typeSection:go,typeItem:wo,swipeTypeImg:bo,typeName:yo};function ge(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!ye(t)}var Oo=Q({name:"menu-list",props:{productList:{type:Array,default:[]},onOpenWebView:{type:Function,default:t=>{}}},render(){let t;return p(Ce,{class:[N.swipeType,this.productList.length>1&&N.swipeTypeShow],"indicator-color":"var(--van-primary)",loop:!1,showIndicators:this.productList.length>1},ge(t=this.productList.map(e=>{let o;return p(Oe,{class:N.typeSection},ge(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 Co="_shopMall_3fob3_1",So="_hotContent_3fob3_5",xo="_dot_3fob3_15",Eo="_iconBadge_3fob3_24",Io="_searchBox_3fob3_27",Ro="_swipe_3fob3_33",Bo="_swipeItemImg_3fob3_38",Lo="_tabs_3fob3_53";var z={shopMall:Co,hotContent:So,"icon-shop-cart":"_icon-shop-cart_3fob3_10",dot:xo,iconBadge:Eo,searchBox:Io,swipe:Ro,swipeItemImg:Bo,tabs:Lo};const Po="_theHomeHeader_1wz49_1",ko="_content_1wz49_8",Wo="_mall_1wz49_12",Uo="_cart_1wz49_17",To="_more_1wz49_22",Vo="_searchBox_1wz49_29",No="_iconSearch_1wz49_41",Mo="_popover_1wz49_46";var L={theHomeHeader:Po,content:ko,mall:Wo,cart:Uo,more:To,searchBox:Vo,iconSearch:No,popover:Mo};var Ho=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:ro,onClick:()=>e("more")},null)};we(()=>{be(()=>{setTimeout(()=>{const{height:i}=Je(r);e("headerDom",i)},300)})});const c=G(!1),l=[{text:"\u6211\u7684\u8BA2\u5355",icon:no,url:"/goodsOrder"},{text:"\u6211\u7684\u5730\u5740",icon:to,url:"/"}];return()=>p("div",{class:L.theHomeHeader,ref:r},[p("div",{style:{height:o.value+"px",background:"#fff"}},null),p("div",{class:L.content},[p("img",{class:L.mall,src:oo},null),p("div",{class:L.searchBox,onClick:()=>e("search")},[p("img",{class:L.iconSearch,src:ao},null),p("span",null,[Ye("\u641C\u7D22\u4F60\u559C\u6B22\u7684\u5185\u5BB9")])]),p(_e,{content:Se.value,showZero:!1},{default:()=>[p("img",{class:L.cart,src:eo,onClick:()=>e("cart")},null)]}),p($t,{placement:"bottom-end",class:L.popover,show:c.value,"onUpdate:show":i=>c.value=i,actions:l,onSelect:i=>e("more",i)},a)])])}});function jo(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!ye(t)}var ir=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){ue();const e=this.$refs.tabFirst;e==null||e.onSearch()}}):Xe("UpdateToken",t=>{t!=null&&t.content.token&&et(t==null?void 0:t.content.token),ue();const e=this.$refs.tabFirst;e==null||e.onSearch()})},unmounted(){Ze("UpdateToken",()=>{})},methods:{onRefresh(){this.productCategoryList=[],this.$nextTick(()=>{this.init()});const t=this.$refs.tabFirst;t==null||t.onSearch()},async init(){try{const e=(await $e.get("/api-mall-portal/home/content")).data||{};this.count=e.count,Se.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),console.log("\u8DF3\u8F6Curl:",t),!ce().isApp){location.href=t;return}X({api:"openWebView",content:{url:t,orientation:1,isHideTitle:!1}})}catch{}}},render(){let t;return p("div",{class:z.shopMall},[p(Ho,{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(tt,{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:z.hotContent},[p(Ce,{class:z.swipe,autoplay:3e3},jo(t=this.advertiseList.map(e=>p(Oe,{onClick:()=>this.openWebView(e.url)},{default:()=>[p(ae,{class:z.swipeItemImg,src:e.pic,fit:"fill"},null)]})))?t:{default:()=>[t]}),p(Oo,{productList:this.productList,onOpenWebView:this.openWebView},null)]),this.hotProductList.length===3&&p(vo,{hotProductList:this.hotProductList,onOpenWebView:this.openWebView},null),p(ot,{shrink:!0,lineWidth:25,background:"#f6f8f9",color:"var(--van-primary)",class:z.tabs,sticky:!0,offsetTop:this.height,lazyRender:!0},{default:()=>[p(le,{title:"\u5168\u90E8",name:0},{default:()=>[p(pe,{ref:"tabFirst",isTab:!0,productAttributeCategoryId:0,onOpenWebView:this.openWebView,showAdd:!1},null)]}),this.productCategoryList.map(e=>p(le,{title:e.name,name:e.id},{default:()=>[p(pe,{isTab:!0,showAdd:!1,productAttributeCategoryId:e.id,onOpenWebView:this.openWebView},null)]}))]})]})])}});export{ir as default};