index-a1d48cbf.js 40 KB

12345
  1. import{r as M,w as te,c as Pe,b as ge,d as se,x as Y,aE as Fe,aF as Qe,Z as ze,Y as Ge,g as _e,v as Ye,a as i,I as oe,_ as we,aG as be,aH as Je,X as Ke,k as We,y as de,ay as Xe,ar as He,f as Ze,V as ve,h as $e,ae as et,F as J,m as X,ab as tt,n as ot,t as H,a4 as nt,z as qe,aI as Se,aJ as rt,ac as at,aK as st,a8 as it,A as j,C as le,U as ct,M as xe,e as ke,a6 as Z,am as lt,L as ut,a1 as ft,aL as pt,aM as dt,E as ue,an as vt,D as mt}from"./index-b9761ea9.js";import{M as ht}from"./index-533426af.js";import{i as yt,b as gt,c as wt}from"./api-ad3762da.js";import{h as bt}from"./html2canvas.esm-9945d45c.js";import{g as G,s as C,a as St,b as xt}from"./api-5c730781.js";import{T as kt}from"./index-2627eaec.js";import"./index-918a2c59.js";import"./index-79f687a0.js";const Ot=(e,t)=>{const n=M(e());return te(e,o=>{o!==n.value&&(n.value=o)}),te(n,o=>{o!==e()&&t(o)}),n},[Et,_]=Pe("notice-bar"),Rt={text:String,mode:String,color:String,delay:ge(1),speed:ge(60),leftIcon:String,wrapable:Boolean,background:String,scrollable:{type:Boolean,default:null}};var At=se({name:Et,props:Rt,emits:["close","replay"],setup(e,{emit:t,slots:n}){let o=0,r=0,c;const u=M(),l=M(),s=Y({show:!0,offset:0,duration:0}),m=()=>{if(n["left-icon"])return n["left-icon"]();if(e.leftIcon)return i(oe,{class:_("left-icon"),name:e.leftIcon},null)},a=()=>{if(e.mode==="closeable")return"cross";if(e.mode==="link")return"arrow"},y=w=>{e.mode==="closeable"&&(s.show=!1,t("close",w))},O=()=>{if(n["right-icon"])return n["right-icon"]();const w=a();if(w)return i(oe,{name:w,class:_("right-icon"),onClick:y},null)},S=()=>{s.offset=o,s.duration=0,Je(()=>{be(()=>{s.offset=-r,s.duration=(r+o)/+e.speed,t("replay")})})},R=()=>{const w=e.scrollable===!1&&!e.wrapable,k={transform:s.offset?`translateX(${s.offset}px)`:"",transitionDuration:`${s.duration}s`};return i("div",{ref:u,role:"marquee",class:_("wrap")},[i("div",{ref:l,style:k,class:[_("content"),{"van-ellipsis":w}],onTransitionend:S},[n.default?n.default():e.text])])},x=()=>{const{delay:w,speed:k,scrollable:v}=e,f=Ke(w)?+w*1e3:0;o=0,r=0,s.offset=0,s.duration=0,clearTimeout(c),c=setTimeout(()=>{if(!u.value||!l.value||v===!1)return;const p=we(u).width,h=we(l).width;(v||h>p)&&be(()=>{o=p,r=h,s.offset=-r,s.duration=r/+k})},f)};return Fe(x),Qe(x),ze("pageshow",x),Ge({reset:x}),te(()=>[e.text,e.scrollable],x),()=>{const{color:w,wrapable:k,background:v}=e;return _e(i("div",{role:"alert",class:_({wrapable:k}),style:{color:w,background:v}},[m(),R(),O()]),[[Ye,s.show]])}}});const Oe=We(At);function P(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function me(e){var t=P(e).Element;return e instanceof t||e instanceof Element}function B(e){var t=P(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Le(e){if(typeof ShadowRoot>"u")return!1;var t=P(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var Q=Math.round;function fe(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function It(){return!/^((?!chrome|android).)*safari/i.test(fe())}function ne(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var o=e.getBoundingClientRect(),r=1,c=1;t&&B(e)&&(r=e.offsetWidth>0&&Q(o.width)/e.offsetWidth||1,c=e.offsetHeight>0&&Q(o.height)/e.offsetHeight||1);var u=me(e)?P(e):window,l=u.visualViewport,s=!It()&&n,m=(o.left+(s&&l?l.offsetLeft:0))/r,a=(o.top+(s&&l?l.offsetTop:0))/c,y=o.width/r,O=o.height/c;return{width:y,height:O,top:a,right:m+y,bottom:a+O,left:m,x:m,y:a}}function Ne(e){var t=P(e),n=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:n,scrollTop:o}}function Ct(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Mt(e){return e===P(e)||!B(e)?Ne(e):Ct(e)}function q(e){return e?(e.nodeName||"").toLowerCase():null}function ie(e){return((me(e)?e.ownerDocument:e.document)||window.document).documentElement}function Bt(e){return ne(ie(e)).left+Ne(e).scrollLeft}function L(e){return P(e).getComputedStyle(e)}function he(e){var t=L(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function Pt(e){var t=e.getBoundingClientRect(),n=Q(t.width)/e.offsetWidth||1,o=Q(t.height)/e.offsetHeight||1;return n!==1||o!==1}function Wt(e,t,n){n===void 0&&(n=!1);var o=B(t),r=B(t)&&Pt(t),c=ie(t),u=ne(e,r,n),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(o||!o&&!n)&&((q(t)!=="body"||he(c))&&(l=Mt(t)),B(t)?(s=ne(t,!0),s.x+=t.clientLeft,s.y+=t.clientTop):c&&(s.x=Bt(c))),{x:u.left+l.scrollLeft-s.x,y:u.top+l.scrollTop-s.y,width:u.width,height:u.height}}function qt(e){var t=ne(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function ye(e){return q(e)==="html"?e:e.assignedSlot||e.parentNode||(Le(e)?e.host:null)||ie(e)}function Ve(e){return["html","body","#document"].indexOf(q(e))>=0?e.ownerDocument.body:B(e)&&he(e)?e:Ve(ye(e))}function ee(e,t){var n;t===void 0&&(t=[]);var o=Ve(e),r=o===((n=e.ownerDocument)==null?void 0:n.body),c=P(o),u=r?[c].concat(c.visualViewport||[],he(o)?o:[]):o,l=t.concat(u);return r?l:l.concat(ee(ye(u)))}function Lt(e){return["table","td","th"].indexOf(q(e))>=0}function Ee(e){return!B(e)||L(e).position==="fixed"?null:e.offsetParent}function Nt(e){var t=/firefox/i.test(fe()),n=/Trident/i.test(fe());if(n&&B(e)){var o=L(e);if(o.position==="fixed")return null}var r=ye(e);for(Le(r)&&(r=r.host);B(r)&&["html","body"].indexOf(q(r))<0;){var c=L(r);if(c.transform!=="none"||c.perspective!=="none"||c.contain==="paint"||["transform","perspective"].indexOf(c.willChange)!==-1||t&&c.willChange==="filter"||t&&c.filter&&c.filter!=="none")return r;r=r.parentNode}return null}function Te(e){for(var t=P(e),n=Ee(e);n&&Lt(n)&&L(n).position==="static";)n=Ee(n);return n&&(q(n)==="html"||q(n)==="body"&&L(n).position==="static")?t:n||Nt(e)||t}var F="top",re="bottom",K="right",D="left",De="auto",Vt=[F,re,K,D],Ue="start",ae="end",Tt=[].concat(Vt,[De]).reduce(function(e,t){return e.concat([t,t+"-"+Ue,t+"-"+ae])},[]),Dt="beforeRead",Ut="read",jt="afterRead",Ft="beforeMain",Qt="main",zt="afterMain",Gt="beforeWrite",_t="write",Yt="afterWrite",pe=[Dt,Ut,jt,Ft,Qt,zt,Gt,_t,Yt];function Jt(e){var t=new Map,n=new Set,o=[];e.forEach(function(c){t.set(c.name,c)});function r(c){n.add(c.name);var u=[].concat(c.requires||[],c.requiresIfExists||[]);u.forEach(function(l){if(!n.has(l)){var s=t.get(l);s&&r(s)}}),o.push(c)}return e.forEach(function(c){n.has(c.name)||r(c)}),o}function Kt(e){var t=Jt(e);return pe.reduce(function(n,o){return n.concat(t.filter(function(r){return r.phase===o}))},[])}function Xt(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function N(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return[].concat(n).reduce(function(r,c){return r.replace(/%s/,c)},e)}var V='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',Ht='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',Re=["name","enabled","phase","fn","effect","requires","options"];function Zt(e){e.forEach(function(t){[].concat(Object.keys(t),Re).filter(function(n,o,r){return r.indexOf(n)===o}).forEach(function(n){switch(n){case"name":typeof t.name!="string"&&console.error(N(V,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":typeof t.enabled!="boolean"&&console.error(N(V,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));break;case"phase":pe.indexOf(t.phase)<0&&console.error(N(V,t.name,'"phase"',"either "+pe.join(", "),'"'+String(t.phase)+'"'));break;case"fn":typeof t.fn!="function"&&console.error(N(V,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":t.effect!=null&&typeof t.effect!="function"&&console.error(N(V,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":t.requires!=null&&!Array.isArray(t.requires)&&console.error(N(V,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(N(V,t.name,'"requiresIfExists"','"array"','"'+String(t.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+t.name+'" modifier, valid properties are '+Re.map(function(o){return'"'+o+'"'}).join(", ")+'; but "'+n+'" was provided.')}t.requires&&t.requires.forEach(function(o){e.find(function(r){return r.name===o})==null&&console.error(N(Ht,String(t.name),o,o))})})})}function $t(e,t){var n=new Set;return e.filter(function(o){var r=t(o);if(!n.has(r))return n.add(r),!0})}function ce(e){return e.split("-")[0]}function eo(e){var t=e.reduce(function(n,o){var r=n[o.name];return n[o.name]=r?Object.assign({},r,o,{options:Object.assign({},r.options,o.options),data:Object.assign({},r.data,o.data)}):o,n},{});return Object.keys(t).map(function(n){return t[n]})}function je(e){return e.split("-")[1]}function to(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function oo(e){var t=e.reference,n=e.element,o=e.placement,r=o?ce(o):null,c=o?je(o):null,u=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,s;switch(r){case F:s={x:u,y:t.y-n.height};break;case re:s={x:u,y:t.y+t.height};break;case K:s={x:t.x+t.width,y:l};break;case D:s={x:t.x-n.width,y:l};break;default:s={x:t.x,y:t.y}}var m=r?to(r):null;if(m!=null){var a=m==="y"?"height":"width";switch(c){case Ue:s[m]=s[m]-(t[a]/2-n[a]/2);break;case ae:s[m]=s[m]+(t[a]/2-n[a]/2);break}}return s}var Ae="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",no="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",Ie={placement:"bottom",modifiers:[],strategy:"absolute"};function Ce(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function ro(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,o=n===void 0?[]:n,r=t.defaultOptions,c=r===void 0?Ie:r;return function(l,s,m){m===void 0&&(m=c);var a={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ie,c),modifiersData:{},elements:{reference:l,popper:s},attributes:{},styles:{}},y=[],O=!1,S={state:a,setOptions:function(k){var v=typeof k=="function"?k(a.options):k;x(),a.options=Object.assign({},c,a.options,v),a.scrollParents={reference:me(l)?ee(l):l.contextElement?ee(l.contextElement):[],popper:ee(s)};var f=Kt(eo([].concat(o,a.options.modifiers)));a.orderedModifiers=f.filter(function(E){return E.enabled});{var p=$t([].concat(f,a.options.modifiers),function(E){var U=E.name;return U});if(Zt(p),ce(a.options.placement)===De){var h=a.orderedModifiers.find(function(E){var U=E.name;return U==="flip"});h||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var b=L(s),A=b.marginTop,d=b.marginRight,I=b.marginBottom,W=b.marginLeft;[A,d,I,W].some(function(E){return parseFloat(E)})&&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 R(),S.update()},forceUpdate:function(){if(!O){var k=a.elements,v=k.reference,f=k.popper;if(!Ce(v,f)){console.error(Ae);return}a.rects={reference:Wt(v,Te(f),a.options.strategy==="fixed"),popper:qt(f)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach(function(E){return a.modifiersData[E.name]=Object.assign({},E.data)});for(var p=0,h=0;h<a.orderedModifiers.length;h++){if(p+=1,p>100){console.error(no);break}if(a.reset===!0){a.reset=!1,h=-1;continue}var b=a.orderedModifiers[h],A=b.fn,d=b.options,I=d===void 0?{}:d,W=b.name;typeof A=="function"&&(a=A({state:a,options:I,name:W,instance:S})||a)}}},update:Xt(function(){return new Promise(function(w){S.forceUpdate(),w(a)})}),destroy:function(){x(),O=!0}};if(!Ce(l,s))return console.error(Ae),S;S.setOptions(m).then(function(w){!O&&m.onFirstUpdate&&m.onFirstUpdate(w)});function R(){a.orderedModifiers.forEach(function(w){var k=w.name,v=w.options,f=v===void 0?{}:v,p=w.effect;if(typeof p=="function"){var h=p({state:a,name:k,instance:S,options:f}),b=function(){};y.push(h||b)}})}function x(){y.forEach(function(w){return w()}),y=[]}return S}}var $={passive:!0};function ao(e){var t=e.state,n=e.instance,o=e.options,r=o.scroll,c=r===void 0?!0:r,u=o.resize,l=u===void 0?!0:u,s=P(t.elements.popper),m=[].concat(t.scrollParents.reference,t.scrollParents.popper);return c&&m.forEach(function(a){a.addEventListener("scroll",n.update,$)}),l&&s.addEventListener("resize",n.update,$),function(){c&&m.forEach(function(a){a.removeEventListener("scroll",n.update,$)}),l&&s.removeEventListener("resize",n.update,$)}}var so={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ao,data:{}};function io(e){var t=e.state,n=e.name;t.modifiersData[n]=oo({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var co={name:"popperOffsets",enabled:!0,phase:"read",fn:io,data:{}},lo={top:"auto",right:"auto",bottom:"auto",left:"auto"};function uo(e){var t=e.x,n=e.y,o=window,r=o.devicePixelRatio||1;return{x:Q(t*r)/r||0,y:Q(n*r)/r||0}}function Me(e){var t,n=e.popper,o=e.popperRect,r=e.placement,c=e.variation,u=e.offsets,l=e.position,s=e.gpuAcceleration,m=e.adaptive,a=e.roundOffsets,y=e.isFixed,O=u.x,S=O===void 0?0:O,R=u.y,x=R===void 0?0:R,w=typeof a=="function"?a({x:S,y:x}):{x:S,y:x};S=w.x,x=w.y;var k=u.hasOwnProperty("x"),v=u.hasOwnProperty("y"),f=D,p=F,h=window;if(m){var b=Te(n),A="clientHeight",d="clientWidth";if(b===P(n)&&(b=ie(n),L(b).position!=="static"&&l==="absolute"&&(A="scrollHeight",d="scrollWidth")),b=b,r===F||(r===D||r===K)&&c===ae){p=re;var I=y&&b===h&&h.visualViewport?h.visualViewport.height:b[A];x-=I-o.height,x*=s?1:-1}if(r===D||(r===F||r===re)&&c===ae){f=K;var W=y&&b===h&&h.visualViewport?h.visualViewport.width:b[d];S-=W-o.width,S*=s?1:-1}}var E=Object.assign({position:l},m&&lo),U=a===!0?uo({x:S,y:x}):{x:S,y:x};if(S=U.x,x=U.y,s){var z;return Object.assign({},E,(z={},z[p]=v?"0":"",z[f]=k?"0":"",z.transform=(h.devicePixelRatio||1)<=1?"translate("+S+"px, "+x+"px)":"translate3d("+S+"px, "+x+"px, 0)",z))}return Object.assign({},E,(t={},t[p]=v?x+"px":"",t[f]=k?S+"px":"",t.transform="",t))}function fo(e){var t=e.state,n=e.options,o=n.gpuAcceleration,r=o===void 0?!0:o,c=n.adaptive,u=c===void 0?!0:c,l=n.roundOffsets,s=l===void 0?!0:l;{var m=L(t.elements.popper).transitionProperty||"";u&&["transform","top","right","bottom","left"].some(function(y){return m.indexOf(y)>=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 a={placement:ce(t.placement),variation:je(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Me(Object.assign({},a,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:u,roundOffsets:s})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Me(Object.assign({},a,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var po={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:fo,data:{}};function vo(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var o=t.styles[n]||{},r=t.attributes[n]||{},c=t.elements[n];!B(c)||!q(c)||(Object.assign(c.style,o),Object.keys(r).forEach(function(u){var l=r[u];l===!1?c.removeAttribute(u):c.setAttribute(u,l===!0?"":l)}))})}function mo(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(o){var r=t.elements[o],c=t.attributes[o]||{},u=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:n[o]),l=u.reduce(function(s,m){return s[m]="",s},{});!B(r)||!q(r)||(Object.assign(r.style,l),Object.keys(c).forEach(function(s){r.removeAttribute(s)}))})}}var ho={name:"applyStyles",enabled:!0,phase:"write",fn:vo,effect:mo,requires:["computeStyles"]},yo=[so,co,po,ho],go=ro({defaultModifiers:yo});function wo(e,t,n){var o=ce(e),r=[D,F].indexOf(o)>=0?-1:1,c=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,u=c[0],l=c[1];return u=u||0,l=(l||0)*r,[D,K].indexOf(o)>=0?{x:l,y:u}:{x:u,y:l}}function bo(e){var t=e.state,n=e.options,o=e.name,r=n.offset,c=r===void 0?[0,0]:r,u=Tt.reduce(function(a,y){return a[y]=wo(y,t.rects,c),a},{}),l=u[t.placement],s=l.x,m=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=m),t.modifiersData[o]=u}var So={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:bo};const[xo,T]=Pe("popover"),ko=["overlay","duration","teleport","overlayStyle","overlayClass","closeOnClickOverlay"],Oo={show:Boolean,theme:X("light"),overlay:Boolean,actions:tt(),actionsDirection:X("vertical"),trigger:X("click"),duration:ot,showArrow:H,placement:X("bottom"),iconPrefix:String,overlayClass:nt,overlayStyle:Object,closeOnClickAction:H,closeOnClickOverlay:H,closeOnClickOutside:H,offset:{type:Array,default:()=>[0,8]},teleport:{type:[String,Object],default:"body"}};var Eo=se({name:xo,props:Oo,emits:["select","touchstart","update:show"],setup(e,{emit:t,slots:n,attrs:o}){let r;const c=M(),u=M(),l=M(),s=Ot(()=>e.show,v=>t("update:show",v)),m=()=>({placement:e.placement,modifiers:[{name:"computeStyles",options:{adaptive:!1,gpuAcceleration:!1}},at({},So,{options:{offset:e.offset}})]}),a=()=>u.value&&l.value?go(u.value,l.value.popupRef.value,m()):null,y=()=>{qe(()=>{s.value&&(r?r.setOptions(m()):(r=a(),Se&&(window.addEventListener("animationend",y),window.addEventListener("transitionend",y))))})},O=v=>{s.value=v},S=()=>{e.trigger==="click"&&(s.value=!s.value)},R=(v,f)=>{v.disabled||(t("select",v,f),e.closeOnClickAction&&(s.value=!1))},x=()=>{s.value&&e.closeOnClickOutside&&(!e.overlay||e.closeOnClickOverlay)&&(s.value=!1)},w=(v,f)=>n.action?n.action({action:v,index:f}):[v.icon&&i(oe,{name:v.icon,classPrefix:e.iconPrefix,class:T("action-icon")},null),i("div",{class:[T("action-text"),{[st]:e.actionsDirection==="vertical"}]},[v.text])],k=(v,f)=>{const{icon:p,color:h,disabled:b,className:A}=v;return i("div",{role:"menuitem",class:[T("action",{disabled:b,"with-icon":p}),{[rt]:e.actionsDirection==="horizontal"},A],style:{color:h},tabindex:b?void 0:0,"aria-disabled":b||void 0,onClick:()=>R(v,f)},[w(v,f)])};return de(()=>{y(),Xe(()=>{var v;c.value=(v=l.value)==null?void 0:v.popupRef.value})}),He(()=>{r&&(Se&&(window.removeEventListener("animationend",y),window.removeEventListener("transitionend",y)),r.destroy(),r=null)}),te(()=>[s.value,e.offset,e.placement],y),Ze([u,c],x,{eventName:"touchstart"}),()=>{var v;return i(J,null,[i("span",{ref:u,class:T("wrapper"),onClick:S},[(v=n.reference)==null?void 0:v.call(n)]),i(ve,$e({ref:l,show:s.value,class:T([e.theme]),position:"",transition:"van-popover-zoom",lockScroll:!1,"onUpdate:show":O},o,et(e,ko)),{default:()=>[e.showArrow&&i("div",{class:T("arrow")},null),i("div",{role:"menu",class:T("content",e.actionsDirection)},[n.default?n.default():e.actions.map(k)])]})])}}});const Be=We(Eo),Ro="_back_1y3kp_1",Ao="_musicCFixed_1y3kp_16",Io="_musicName_1y3kp_21",Co="_popoverMusic_1y3kp_27",Mo="_container_1y3kp_36",Bo="_content_1y3kp_42",Po="_opacityBg_1y3kp_47",Wo="_leftContent_1y3kp_52",qo="_leftBg_1y3kp_57",Lo="_leftBg2_1y3kp_68",No="_types_1y3kp_78",Vo="_type_1y3kp_78",To="_typeActive_1y3kp_98",Do="_typeImg_1y3kp_98",Uo="_scaleBtn_1y3kp_1",jo="_typeIcon_1y3kp_112",Fo="_center_1y3kp_123",Qo="_centerSearch_1y3kp_130",zo="_musicContent_1y3kp_141",Go="_searchNotice_1y3kp_152",_o="_searchNoticeShow_1y3kp_161",Yo="_musicItem_1y3kp_164",Jo="_disableNotic_1y3kp_177",Ko="_musicActive_1y3kp_181",Xo="_musicAvtor_1y3kp_191",Ho="_musicInfo_1y3kp_205",Zo="_noticeBar_1y3kp_213",$o="_musicDes_1y3kp_217",en="_musicFavitor_1y3kp_222",tn="_musicAuthor_1y3kp_234",on="_musicIcon_1y3kp_242",nn="_right_1y3kp_246",rn="_staff_1y3kp_262",an="_rightBox_1y3kp_265",sn="_rightBtns_1y3kp_271",cn="_rightBtnsRight_1y3kp_297",ln="_loadingWrap_1y3kp_323",un="_empty_1y3kp_328",fn="_displayIcon_1y3kp_1",g={back:Ro,musicCFixed:Ao,musicName:Io,popoverMusic:Co,container:Mo,content:Bo,opacityBg:Po,leftContent:Wo,leftBg:qo,leftBg2:Lo,types:No,type:Vo,typeActive:To,typeImg:Do,scaleBtn:Uo,typeIcon:jo,center:Fo,centerSearch:Qo,musicContent:zo,searchNotice:Go,searchNoticeShow:_o,musicItem:Yo,disableNotic:Jo,musicActive:Ko,musicAvtor:Xo,musicInfo:Ho,noticeBar:Zo,musicDes:$o,musicFavitor:en,musicAuthor:tn,musicIcon:on,right:nn,"right-musicName":"_right-musicName_1y3kp_254",staff:rn,rightBox:an,rightBtns:sn,rightBtnsRight:cn,loadingWrap:ln,empty:un,displayIcon:fn},pn=""+new URL("icon_down-27184904.svg",import.meta.url).href,dn=""+new URL("icon_jianpuActive-17580202.svg",import.meta.url).href,vn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANYAAAA8CAMAAAAt4rT4AAAC61BMVEUAAAA+vP9Dyf8nn/9Fyv9Cwf9Eyf8mnv8oof9Fy/9FzP8mnv9Cxv8mnv9Dyf9Eyv8nn/8pov9Izf8roP9Eyv9Gzf8ooP8on/8oov9Gy/8nnv8pn/8qo/9Bx/9Fzf9GzP9Cx/////8mn/8oof9Dyf8rpv8yr/4pov0qpP88vv49wP4sqP83t/8wrP40s/47vf86vP4sp/05uv4tqf81tP82tf8+wv84uP5Eyv8uqv8xrv82tv0vq/8lnf8zsf08v/89v/8/xP5Bxf86u/9Bx/5Fy/8/xP8ysP/n+P89wP/w+//q+f/e9f/b9P/X8/84uP/h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eH/dBEu1iOSsIqVuBc5lYJKonOj/ABMBTrXuhC1L+60Gj1O91MwpDXL3ZfZV2KeqbMCYdLdC1DFBqK8CWjpfSdMAw2XNXI+lkatM4ClYQuCIqsX3SJVWiL+tEJKumiUrvee2aCD3GTMjjIhW2sLDR6rf55p4nqIAiS0MRQSYI0dnZCG8NAs9D1uqXiizZc6EAl0bIKc7OespNFiPbZYjlIUxyuQCVRpXAQUS59WWjcE04Y0412u91DtRvUFIAQhPEEzxeg5hVJGpSjNDVlGJw4oV+BStIsW4TGFBp8B1UqzEQFKsmKPSPNWYlylYN31OUkjXBcNAhxCXguVpA0+tRv4JNDamgnaWZSBNRBSbSIko+bFSRN8EGQZVsGdZWk/SlJ8+BGTJK6qGoDwC4c47NJwJJiGmeLbnEZptwTkJM62QyDCh05CbfmdRGSezIGNMVoUM49lSEn6Wj5nqGYZDnU+og7vNqldDVKoXHxKrBWP8M7egdVHC2UrMFgCvmqxvig9MZFSs3oatplbgWlFrICfEpnC2bZ81ZAraUIMu0yBBTCUMy3cIkqt4upuNllw4UmSAO7gN65rqpcFJVTalswi7wuAVC0z1ZsGejIghLsKZT56YkI8t2AcR8uAyXDLRXG4VJVkkjmbuV2bdb1tlWLG1fshH7jIvZkpwy6FZRauBWbRulOCGD87nj/k3Wy8HxJA0kTHLINF6crBYTIPSWAUE1myxF/ERasJBg1tYvt9y3tSV63MFxTE1thKd5/y48xaBd0kUKOrdBHS1FJHy18k1ITSbyca51JQEl+wastGS3dMtLTk7F3rkpzVluFsRXe+mOMf11rnoZKh2qbAAAAAElFTkSuQmCC",mn={icon_start:vn},hn=se({name:"coai-guide",emits:["close"],setup(e,{emit:t}){const n=Y({box:{},show:!1,steps:[{ele:"",eleRect:{},img:G("coai-1.png"),handStyle:{top:"0.91rem"},imgStyle:{top:"1.5rem",width:"6.55rem",height:"2.76rem"},btnsStyle:{top:"4.7rem",left:"2.0rem",transform:"scale(1.2)"},boxStyle:{borderRadius:"40px",transform:"scale(1)"}},{ele:"",img:G("coai-2.png"),handStyle:{top:"-1.39rem",left:"0.15rem",transform:"rotate(180deg)"},imgStyle:{top:"-4rem"},btnsStyle:{top:"-1.3rem",left:"1.3rem"}},{ele:"",img:G("coai-3.png"),handStyle:{top:"-1.39rem",left:"0.17rem",transform:"rotate(180deg)"},imgStyle:{top:"-4rem"},btnsStyle:{top:"-1.3rem",left:"1.3rem"}},{ele:"",img:G("coai-4.png"),handStyle:{top:"-1.39rem",left:"1.4rem",transform:"rotate(180deg)"},imgStyle:{top:"-4rem",left:"-3.7rem",width:"6.00rem",height:"2.53rem"},boxStyle:{borderRadius:"40px",transform:"scale(1.1)"},btnsStyle:{top:"-1.1rem",left:"-3.8rem","justify-content":"center",padding:0}}],step:0}),o=M(!1),r=M({});(async()=>{var a;try{const y=await St({guideTag:"guideInfo"});y.data?r.value=JSON.parse((a=y.data)==null?void 0:a.guideValue)||null:r.value={},r.value&&r.value.coaiGuide?o.value=!1:o.value=!0}catch(y){console.log(y)}})();const u=()=>{console.log(`coai-${n.step}`);const a=document.getElementById(`coai-${n.step}`);if(a){const y=a.getBoundingClientRect();n.box={left:y.x+"px",top:y.y+"px",width:y.width+"px",height:y.height+"px"}}else s()};de(()=>{u(),window.addEventListener("resize",l)});const l=()=>{u()};it(()=>{window.removeEventListener("resize",l)});const s=()=>{if(n.step>=3){m();return}n.step=n.step+1,u()},m=async()=>{r.value?r.value.coaiGuide=!0:r.value={coaiGuide:!0};try{const a=await xt({guideTag:"guideInfo",guideValue:JSON.stringify(r.value)})}catch(a){console.log(a)}o.value=!1};return()=>i(ve,{teleport:"body",overlay:!1,closeOnClickOverlay:!1,class:["popup-custom",C.guidePopup],show:o.value,"onUpdate:show":a=>o.value=a},{default:()=>[i("div",{class:C.content,onClick:()=>s()},[n.step!=n.steps.length-1&&i("div",{class:C.backBtn,onClick:a=>{a.stopPropagation(),m()}},[j("跳过")]),i("div",{class:C.box,style:{...n.box,...n.steps[n.step].boxStyle},id:`modeType-${n.step}`},[n.steps.map((a,y)=>{var O,S;return i("div",{onClick:R=>R.stopPropagation(),class:C.item,style:{display:y===n.step?"":"none",left:`${(O=a.eleRect)==null?void 0:O.left}px`,top:`${(S=a.eleRect)==null?void 0:S.top}px`}},[i("img",{class:C.img,style:a.imgStyle,src:a.img},null),i("img",{class:C.iconHead,style:a.handStyle,src:G("indexDot.png")},null),i("div",{class:C.btns,style:a.btnsStyle},[n.step+1==n.steps.length?i(J,null,[i(le,{class:[C.btn],round:!0,type:"primary",onClick:()=>m()},{default:()=>[j("完成")]}),i(le,{class:[C.btn,C.endBtn],round:!0,color:"transparent",style:{"border-color":"#fff"},type:"primary",onClick:()=>{n.step=0,u()}},{default:()=>[j("再看一遍")]})]):i(le,{class:C.btn,round:!0,type:"primary",onClick:()=>s()},{default:()=>[j("下一步 ("),n.step+1,j("/"),n.steps.length,j(")")]})])])})])])]})}}),En=se({name:"co-ai",setup(){var k,v;const e=ct(),t=Y({page:1,rows:999,subjectId:((k=xe.user.data)==null?void 0:k.subjectId)||"",musicTagIds:e.query.musicTagId?[e.query.musicTagId]:[]}),n=Y({page:1,rows:20,status:1,keyword:"",musicSheetCategoriesId:e.query.id}),o=Y({musicSheetCategoriesName:e.query.name,typeIndex:0,musicIndex:0,showMusicImg:"first",popoverShow:!1,popoverMusicShow:!1,types:[],musics:[],loading:!0,finshed:!1,searchNoticeShow:!1,searchNotice:{left:"",top:"",width:"",height:""},showVip:!1,vipMember:(v=xe.user.data)==null?void 0:v.vipMember}),r=M(),c=M(!1),u=ke(()=>[{value:"staff",text:"五线谱"},{value:"first",text:"首调"},{value:"fixed",text:"固定调"}].map((f,p)=>({...f,color:o.showMusicImg===f.value?"var(--van-primary-color)":"",className:o.showMusicImg===f.value?"fontBlod":""}))),l=ke(()=>o.types.map(f=>({...f,color:n.musicSheetCategoriesId==f.value?"var(--van-primary-color)":"",className:n.musicSheetCategoriesId==f.value?"fontBlod":""}))),s=()=>{Z({api:"goBack"})},m=()=>{var h;if(!o.vipMember){o.showVip=!0;return}let f="staff";o.showMusicImg==="first"?f="firstTone":o.showMusicImg==="fixed"?f="fixedTone":o.showMusicImg==="staff"&&(f="staff");let p=`${location.origin}/instrument?id=${(h=o.musics[o.musicIndex])==null?void 0:h.id}&musicRenderType=${f}&showGuide=true`;Z({api:"openAccompanyWebView",content:{url:p,orientation:0,isHideTitle:!0,statusBarTextColor:!1,isOpenLight:!0,c_orientation:0}})},a=async()=>{dt({message:"正在保存",duration:0});try{bt(r.value,{backgroundColor:"#fff",allowTaint:!0,useCORS:!0}).then(async f=>{var p=f.toDataURL("image/png",1);setTimeout(()=>{ue("已保存到相册")},500);const h=await vt({api:"savePicture",content:{base64:p}})}).catch(()=>{setTimeout(()=>{ue("保存失败")},500)})}catch(f){setTimeout(()=>{ue("保存失败")},500)}},y=async()=>{var f;try{const p=await gt({...t});if(p.code===200&&Array.isArray((f=p==null?void 0:p.data)==null?void 0:f.rows)){const h=[];p.data.rows.forEach(b=>{h.push({value:b.id,text:b.name})}),o.types=h}}catch(p){console.log("🚀 ~ error:",p)}},O=async()=>{var f;o.loading=!0;try{const p=await wt({...n});p.code===200&&Array.isArray((f=p==null?void 0:p.data)==null?void 0:f.rows)&&(o.musics=[...o.musics,...p.data.rows],o.finshed=!p.data.next),c.value=!0}catch(p){console.log("🚀 ~ error:",p)}o.loading=!1},S=()=>{n.page=1,o.musics=[],O()},R=M(),x=()=>{o.loading||o.finshed||(n.page=n.page+1,O())},w=()=>{const f=document.querySelector(".searchNotice .van-field__control");if(f){const p=f.getBoundingClientRect();o.searchNotice.left=p.x+"px",o.searchNotice.top=p.y+"px",o.searchNotice.width=p.width+"px",o.searchNotice.height=p.height+"px"}};return de(async()=>{Z({api:"setStatusBarVisibility",content:{isVisibility:0}}),await y(),O();const f=new IntersectionObserver(h=>{h[0].intersectionRatio>0&&x()});qe(()=>{f.observe(R.value)});const p=async()=>{const h=await mt.get("/edu-app/user/getUserInfo",{initRequest:!0,requestType:"form",hideLoading:!0});(h==null?void 0:h.code)===200&&(o.vipMember=h.data.vipMember)};lt("webViewOnResume",()=>{console.log("页面显示"),p(),o.typeIndex=0,o.musicIndex=0,S()}),w()}),()=>{var f,p,h,b,A;return i("div",{class:g.container},[i("div",{class:g.back,onClick:s},[i("img",{src:yt},null)]),i("div",{class:g.musicCFixed},[i(Be,{show:o.popoverMusicShow,"onUpdate:show":d=>o.popoverMusicShow=d,class:g.popoverMusic,actions:l.value,placement:"bottom",showArrow:!1,onSelect:d=>{d.value!=n.musicSheetCategoriesId&&(o.musics=[],n.musicSheetCategoriesId=d.value,o.musicSheetCategoriesName=d.text,o.popoverMusicShow=!1,O())}},{reference:()=>i("span",{class:g.musicName},[o.musicSheetCategoriesName,i(oe,{name:"arrow-down"},null)])})]),i("div",{class:g.content},[i("div",{class:[g.leftContent]},[i("div",{class:g.leftBg2},null),i("div",{class:g.center},[i("div",{class:g.centerSearch},[i("div",{id:"coai-0"},[i(ht,{class:["searchNotice",o.searchNoticeShow?g.searchNoticeShow:""],shape:"round",background:"transparent",clearable:!1,placeholder:"请输入关键字",modelValue:n.keyword,onFocus:()=>o.searchNoticeShow=!1,onBlur:d=>{n.keyword=(d==null?void 0:d.trim())||"",requestAnimationFrame(()=>{requestAnimationFrame(()=>{n.keyword&&(o.searchNoticeShow=!0)})})},onSearch:d=>{n.keyword=d,S()}},null)])]),i("div",{class:g.musicContent},[o.musics.map((d,I)=>i("div",{class:[g.musicItem,o.musicIndex===I?g.musicActive:g.disableNotic],onClick:()=>o.musicIndex=I},[i("img",{class:g.musicAvtor,src:d.titleImg,onLoad:W=>{W.target.setAttribute("loaded","true")}},null),i("div",{class:g.musicInfo},[i("div",{class:g.musicName},[i(Oe,{text:d.musicSheetName,class:g.noticeBar,background:"none"},null)]),i("div",{class:g.musicDes},[i("div",{class:g.musicFavitor},[d.usedNum]),i("div",{class:[g.musicAuthor,"van-ellipsis"]},[d.composer||"佚名"])])])])),!o.finshed&&i("div",{ref:R,class:g.loadingWrap},[i(ut,{color:"#259CFE"},null)]),!o.loading&&o.musics.length===0&&i("div",{class:g.empty},[i(ft,{description:"暂无曲谱"},null)])])])]),i("div",{class:[g.opacityBg,g.right]},[i("div",{class:g.rightBox},[i("div",{ref:r},[i("div",{class:g["right-musicName"]},[(f=o.musics[o.musicIndex])==null?void 0:f.musicSheetName]),o.showMusicImg==="first"?i(J,null,[(h=(p=o.musics[o.musicIndex])==null?void 0:p.musicSvg)==null?void 0:h.split(",").map((d,I)=>i("img",{class:g.staff,src:d+"?v="+Date.now(),key:d,crossorigin:"anonymous"},null))]):o.showMusicImg==="fixed"?i(J,null,[i(pt,{name:"van-fade"},{default:()=>{var d,I;return[(I=(d=o.musics[o.musicIndex])==null?void 0:d.musicJianSvg)==null?void 0:I.split(",").map((W,E)=>i("img",{class:g.staff,src:W+"?v="+Date.now(),key:W,crossorigin:"anonymous"},null))]}})]):i(J,null,[(A=(b=o.musics[o.musicIndex])==null?void 0:b.musicImg)==null?void 0:A.split(",").map((d,I)=>i("img",{class:g.staff,src:d+"?v="+Date.now(),key:d,crossorigin:"anonymous"},null))])])]),i("div",{class:g.rightBtns},[i(Be,{show:o.popoverShow,"onUpdate:show":d=>o.popoverShow=d,class:g.popover,actions:u.value,placement:"top-start",onSelect:d=>{o.showMusicImg=d.value,o.popoverShow=!1}},{reference:()=>i("img",{id:"coai-1",src:dn},null)}),i("img",{id:"coai-2",src:pn,onClick:a},null),i("div",{class:g.rightBtnsRight,id:"coai-3"},[i("img",{src:mn.icon_start,onClick:()=>m()},null)])])])]),o.searchNotice.width&&o.searchNoticeShow&&i("div",{class:g.searchNotice,style:{...o.searchNotice}},[i(Oe,{text:n.keyword,color:"#333",background:"none"},null)]),c.value&&i(hn,null,null),i(ve,{class:"popup-custom van-scale",transition:"van-scale",closeOnClickOverlay:!1,show:o.showVip,"onUpdate:show":d=>o.showVip=d},{default:()=>[i(kt,{onClose:d=>{d&&Z({api:"openWebView",content:{url:`${location.origin}${location.pathname}#/member-center`,orientation:1}}),o.showVip=!1}},null)]})])}}});export{En as default};