12345 |
- import{l as H,w as X,b6 as je,d as le,c as Ae,bk as Le,ar as Me,M as De,h as g,C as Te,bj as Oe,bi as Ie,F as Ne,bc as re,bl as Be,b9 as qe,bf as _,ba as Ve,aE as We,bm as pe,bd as $e,I as Ue,bn as ze,bb as Fe,bo as T,bp as He,bq as Xe,br as Ye,bs as _e,bt as Ge,a4 as Je,bu as V,bv as Ze,as as de,bw as Ke,bx as Qe,n as et,m as P,U as ve}from"./index-68c4f086.js";function R(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ce(e){var t=R(e).Element;return e instanceof t||e instanceof Element}function E(e){var t=R(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Se(e){if(typeof ShadowRoot>"u")return!1;var t=R(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var $=Math.round;function oe(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function tt(){return!/^((?!chrome|android).)*safari/i.test(oe())}function Z(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),a=1,o=1;t&&E(e)&&(a=e.offsetWidth>0&&$(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&$(n.height)/e.offsetHeight||1);var c=ce(e)?R(e):window,l=c.visualViewport,s=!tt()&&r,f=(n.left+(s&&l?l.offsetLeft:0))/a,i=(n.top+(s&&l?l.offsetTop:0))/o,p=n.width/a,w=n.height/o;return{width:p,height:w,top:i,right:f+p,bottom:i+w,left:f,x:f,y:i}}function xe(e){var t=R(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function rt(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function nt(e){return e===R(e)||!E(e)?xe(e):rt(e)}function j(e){return e?(e.nodeName||"").toLowerCase():null}function ee(e){return((ce(e)?e.ownerDocument:e.document)||window.document).documentElement}function at(e){return Z(ee(e)).left+xe(e).scrollLeft}function A(e){return R(e).getComputedStyle(e)}function fe(e){var t=A(e),r=t.overflow,n=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+n)}function ot(e){var t=e.getBoundingClientRect(),r=$(t.width)/e.offsetWidth||1,n=$(t.height)/e.offsetHeight||1;return r!==1||n!==1}function it(e,t,r){r===void 0&&(r=!1);var n=E(t),a=E(t)&&ot(t),o=ee(t),c=Z(e,a,r),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(n||!n&&!r)&&((j(t)!=="body"||fe(o))&&(l=nt(t)),E(t)?(s=Z(t,!0),s.x+=t.clientLeft,s.y+=t.clientTop):o&&(s.x=at(o))),{x:c.left+l.scrollLeft-s.x,y:c.top+l.scrollTop-s.y,width:c.width,height:c.height}}function st(e){var t=Z(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function ue(e){return j(e)==="html"?e:e.assignedSlot||e.parentNode||(Se(e)?e.host:null)||ee(e)}function Ee(e){return["html","body","#document"].indexOf(j(e))>=0?e.ownerDocument.body:E(e)&&fe(e)?e:Ee(ue(e))}function J(e,t){var r;t===void 0&&(t=[]);var n=Ee(e),a=n===((r=e.ownerDocument)==null?void 0:r.body),o=R(n),c=a?[o].concat(o.visualViewport||[],fe(n)?n:[]):n,l=t.concat(c);return a?l:l.concat(J(ue(c)))}function lt(e){return["table","td","th"].indexOf(j(e))>=0}function he(e){return!E(e)||A(e).position==="fixed"?null:e.offsetParent}function ct(e){var t=/firefox/i.test(oe()),r=/Trident/i.test(oe());if(r&&E(e)){var n=A(e);if(n.position==="fixed")return null}var a=ue(e);for(Se(a)&&(a=a.host);E(a)&&["html","body"].indexOf(j(a))<0;){var o=A(a);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return a;a=a.parentNode}return null}function Re(e){for(var t=R(e),r=he(e);r&<(r)&&A(r).position==="static";)r=he(r);return r&&(j(r)==="html"||j(r)==="body"&&A(r).position==="static")?t:r||ct(e)||t}var W="top",K="bottom",Y="right",B="left",ke="auto",ft=[W,K,Y,B],Pe="start",Q="end",ut=[].concat(ft,[ke]).reduce(function(e,t){return e.concat([t,t+"-"+Pe,t+"-"+Q])},[]),pt="beforeRead",dt="read",vt="afterRead",ht="beforeMain",mt="main",yt="afterMain",bt="beforeWrite",gt="write",wt="afterWrite",ie=[pt,dt,vt,ht,mt,yt,bt,gt,wt];function Ot(e){var t=new Map,r=new Set,n=[];e.forEach(function(o){t.set(o.name,o)});function a(o){r.add(o.name);var c=[].concat(o.requires||[],o.requiresIfExists||[]);c.forEach(function(l){if(!r.has(l)){var s=t.get(l);s&&a(s)}}),n.push(o)}return e.forEach(function(o){r.has(o.name)||a(o)}),n}function St(e){var t=Ot(e);return ie.reduce(function(r,n){return r.concat(t.filter(function(a){return a.phase===n}))},[])}function xt(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function M(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return[].concat(r).reduce(function(a,o){return a.replace(/%s/,o)},e)}var I='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',Et='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',me=["name","enabled","phase","fn","effect","requires","options"];function Rt(e){e.forEach(function(t){[].concat(Object.keys(t),me).filter(function(r,n,a){return a.indexOf(r)===n}).forEach(function(r){switch(r){case"name":typeof t.name!="string"&&console.error(M(I,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":typeof t.enabled!="boolean"&&console.error(M(I,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));break;case"phase":ie.indexOf(t.phase)<0&&console.error(M(I,t.name,'"phase"',"either "+ie.join(", "),'"'+String(t.phase)+'"'));break;case"fn":typeof t.fn!="function"&&console.error(M(I,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":t.effect!=null&&typeof t.effect!="function"&&console.error(M(I,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":t.requires!=null&&!Array.isArray(t.requires)&&console.error(M(I,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(M(I,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 '+me.map(function(n){return'"'+n+'"'}).join(", ")+'; but "'+r+'" was provided.')}t.requires&&t.requires.forEach(function(n){e.find(function(a){return a.name===n})==null&&console.error(M(Et,String(t.name),n,n))})})})}function kt(e,t){var r=new Set;return e.filter(function(n){var a=t(n);if(!r.has(a))return r.add(a),!0})}function te(e){return e.split("-")[0]}function Pt(e){var t=e.reduce(function(r,n){var a=r[n.name];return r[n.name]=a?Object.assign({},a,n,{options:Object.assign({},a.options,n.options),data:Object.assign({},a.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}function Ce(e){return e.split("-")[1]}function Ct(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function jt(e){var t=e.reference,r=e.element,n=e.placement,a=n?te(n):null,o=n?Ce(n):null,c=t.x+t.width/2-r.width/2,l=t.y+t.height/2-r.height/2,s;switch(a){case W:s={x:c,y:t.y-r.height};break;case K:s={x:c,y:t.y+t.height};break;case Y:s={x:t.x+t.width,y:l};break;case B:s={x:t.x-r.width,y:l};break;default:s={x:t.x,y:t.y}}var f=a?Ct(a):null;if(f!=null){var i=f==="y"?"height":"width";switch(o){case Pe:s[f]=s[f]-(t[i]/2-r[i]/2);break;case Q:s[f]=s[f]+(t[i]/2-r[i]/2);break}}return s}var ye="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",At="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",be={placement:"bottom",modifiers:[],strategy:"absolute"};function ge(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function Lt(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,a=t.defaultOptions,o=a===void 0?be:a;return function(l,s,f){f===void 0&&(f=o);var i={placement:"bottom",orderedModifiers:[],options:Object.assign({},be,o),modifiersData:{},elements:{reference:l,popper:s},attributes:{},styles:{}},p=[],w=!1,v={state:i,setOptions:function(O){var u=typeof O=="function"?O(i.options):O;m(),i.options=Object.assign({},o,i.options,u),i.scrollParents={reference:ce(l)?J(l):l.contextElement?J(l.contextElement):[],popper:J(s)};var h=St(Pt([].concat(n,i.options.modifiers)));i.orderedModifiers=h.filter(function(x){return x.enabled});{var S=kt([].concat(h,i.options.modifiers),function(x){var q=x.name;return q});if(Rt(S),te(i.options.placement)===ke){var y=i.orderedModifiers.find(function(x){var q=x.name;return q==="flip"});y||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var d=A(s),k=d.marginTop,D=d.marginRight,U=d.marginBottom,z=d.marginLeft;[k,D,U,z].some(function(x){return parseFloat(x)})&&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 L(),v.update()},forceUpdate:function(){if(!w){var O=i.elements,u=O.reference,h=O.popper;if(!ge(u,h)){console.error(ye);return}i.rects={reference:it(u,Re(h),i.options.strategy==="fixed"),popper:st(h)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach(function(x){return i.modifiersData[x.name]=Object.assign({},x.data)});for(var S=0,y=0;y<i.orderedModifiers.length;y++){if(S+=1,S>100){console.error(At);break}if(i.reset===!0){i.reset=!1,y=-1;continue}var d=i.orderedModifiers[y],k=d.fn,D=d.options,U=D===void 0?{}:D,z=d.name;typeof k=="function"&&(i=k({state:i,options:U,name:z,instance:v})||i)}}},update:xt(function(){return new Promise(function(b){v.forceUpdate(),b(i)})}),destroy:function(){m(),w=!0}};if(!ge(l,s))return console.error(ye),v;v.setOptions(f).then(function(b){!w&&f.onFirstUpdate&&f.onFirstUpdate(b)});function L(){i.orderedModifiers.forEach(function(b){var O=b.name,u=b.options,h=u===void 0?{}:u,S=b.effect;if(typeof S=="function"){var y=S({state:i,name:O,instance:v,options:h}),d=function(){};p.push(y||d)}})}function m(){p.forEach(function(b){return b()}),p=[]}return v}}var G={passive:!0};function Mt(e){var t=e.state,r=e.instance,n=e.options,a=n.scroll,o=a===void 0?!0:a,c=n.resize,l=c===void 0?!0:c,s=R(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&f.forEach(function(i){i.addEventListener("scroll",r.update,G)}),l&&s.addEventListener("resize",r.update,G),function(){o&&f.forEach(function(i){i.removeEventListener("scroll",r.update,G)}),l&&s.removeEventListener("resize",r.update,G)}}var Dt={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Mt,data:{}};function Tt(e){var t=e.state,r=e.name;t.modifiersData[r]=jt({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var It={name:"popperOffsets",enabled:!0,phase:"read",fn:Tt,data:{}},Nt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Bt(e){var t=e.x,r=e.y,n=window,a=n.devicePixelRatio||1;return{x:$(t*a)/a||0,y:$(r*a)/a||0}}function we(e){var t,r=e.popper,n=e.popperRect,a=e.placement,o=e.variation,c=e.offsets,l=e.position,s=e.gpuAcceleration,f=e.adaptive,i=e.roundOffsets,p=e.isFixed,w=c.x,v=w===void 0?0:w,L=c.y,m=L===void 0?0:L,b=typeof i=="function"?i({x:v,y:m}):{x:v,y:m};v=b.x,m=b.y;var O=c.hasOwnProperty("x"),u=c.hasOwnProperty("y"),h=B,S=W,y=window;if(f){var d=Re(r),k="clientHeight",D="clientWidth";if(d===R(r)&&(d=ee(r),A(d).position!=="static"&&l==="absolute"&&(k="scrollHeight",D="scrollWidth")),d=d,a===W||(a===B||a===Y)&&o===Q){S=K;var U=p&&d===y&&y.visualViewport?y.visualViewport.height:d[k];m-=U-n.height,m*=s?1:-1}if(a===B||(a===W||a===K)&&o===Q){h=Y;var z=p&&d===y&&y.visualViewport?y.visualViewport.width:d[D];v-=z-n.width,v*=s?1:-1}}var x=Object.assign({position:l},f&&Nt),q=i===!0?Bt({x:v,y:m}):{x:v,y:m};if(v=q.x,m=q.y,s){var F;return Object.assign({},x,(F={},F[S]=u?"0":"",F[h]=O?"0":"",F.transform=(y.devicePixelRatio||1)<=1?"translate("+v+"px, "+m+"px)":"translate3d("+v+"px, "+m+"px, 0)",F))}return Object.assign({},x,(t={},t[S]=u?m+"px":"",t[h]=O?v+"px":"",t.transform="",t))}function qt(e){var t=e.state,r=e.options,n=r.gpuAcceleration,a=n===void 0?!0:n,o=r.adaptive,c=o===void 0?!0:o,l=r.roundOffsets,s=l===void 0?!0:l;{var f=A(t.elements.popper).transitionProperty||"";c&&["transform","top","right","bottom","left"].some(function(p){return f.indexOf(p)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',`
- `,'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.",`
- `,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var i={placement:te(t.placement),variation:Ce(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,we(Object.assign({},i,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:c,roundOffsets:s})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,we(Object.assign({},i,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Vt={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:qt,data:{}};function Wt(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},a=t.attributes[r]||{},o=t.elements[r];!E(o)||!j(o)||(Object.assign(o.style,n),Object.keys(a).forEach(function(c){var l=a[c];l===!1?o.removeAttribute(c):o.setAttribute(c,l===!0?"":l)}))})}function $t(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var a=t.elements[n],o=t.attributes[n]||{},c=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),l=c.reduce(function(s,f){return s[f]="",s},{});!E(a)||!j(a)||(Object.assign(a.style,l),Object.keys(o).forEach(function(s){a.removeAttribute(s)}))})}}var Ut={name:"applyStyles",enabled:!0,phase:"write",fn:Wt,effect:$t,requires:["computeStyles"]},zt=[Dt,It,Vt,Ut],Ft=Lt({defaultModifiers:zt});function Ht(e,t,r){var n=te(e),a=[B,W].indexOf(n)>=0?-1:1,o=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,c=o[0],l=o[1];return c=c||0,l=(l||0)*a,[B,Y].indexOf(n)>=0?{x:l,y:c}:{x:c,y:l}}function Xt(e){var t=e.state,r=e.options,n=e.name,a=r.offset,o=a===void 0?[0,0]:a,c=ut.reduce(function(i,p){return i[p]=Ht(p,t.rects,o),i},{}),l=c[t.placement],s=l.x,f=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=f),t.modifiersData[n]=c}var Yt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Xt};const _t=(e,t)=>{const r=H(e());return X(e,n=>{n!==r.value&&(r.value=n)}),X(r,n=>{n!==e()&&t(n)}),r},[Gt,N]=je("popover"),Jt=["overlay","duration","teleport","overlayStyle","overlayClass","closeOnClickOverlay"],Zt={show:Boolean,theme:re("light"),overlay:Boolean,actions:Be(),trigger:re("click"),duration:qe,showArrow:_,placement:re("bottom"),iconPrefix:String,overlayClass:Ve,overlayStyle:Object,closeOnClickAction:_,closeOnClickOverlay:_,closeOnClickOutside:_,offset:{type:Array,default:()=>[0,8]},teleport:{type:[String,Object],default:"body"}};var Kt=le({name:Gt,props:Zt,emits:["select","touchstart","update:show"],setup(e,{emit:t,slots:r,attrs:n}){let a;const o=H(),c=H(),l=H(),s=_t(()=>e.show,u=>t("update:show",u)),f=()=>({placement:e.placement,modifiers:[{name:"computeStyles",options:{adaptive:!1,gpuAcceleration:!1}},$e({},Yt,{options:{offset:e.offset}})]}),i=()=>c.value&&l.value?Ft(c.value,l.value.popupRef.value,f()):null,p=()=>{We(()=>{s.value&&(a?a.setOptions(f()):(a=i(),pe&&(window.addEventListener("animationend",p),window.addEventListener("transitionend",p))))})},w=u=>{s.value=u},v=()=>{e.trigger==="click"&&(s.value=!s.value)},L=(u,h)=>{u.disabled||(t("select",u,h),e.closeOnClickAction&&(s.value=!1))},m=()=>{s.value&&e.closeOnClickOutside&&(!e.overlay||e.closeOnClickOverlay)&&(s.value=!1)},b=(u,h)=>r.action?r.action({action:u,index:h}):[u.icon&&g(Ue,{name:u.icon,classPrefix:e.iconPrefix,class:N("action-icon")},null),g("div",{class:[N("action-text"),ze]},[u.text])],O=(u,h)=>{const{icon:S,color:y,disabled:d,className:k}=u;return g("div",{role:"menuitem",class:[N("action",{disabled:d,"with-icon":S}),k],style:{color:y},tabindex:d?void 0:0,"aria-disabled":d||void 0,onClick:()=>L(u,h)},[b(u,h)])};return Ae(()=>{p(),Le(()=>{var u;o.value=(u=l.value)==null?void 0:u.popupRef.value})}),Me(()=>{a&&(pe&&(window.removeEventListener("animationend",p),window.removeEventListener("transitionend",p)),a.destroy(),a=null)}),X(()=>[s.value,e.offset,e.placement],p),De([c,o],m,{eventName:"touchstart"}),()=>{var u;return g(Ne,null,[g("span",{ref:c,class:N("wrapper"),onClick:v},[(u=r.reference)==null?void 0:u.call(r)]),g(Te,Oe({ref:l,show:s.value,class:N([e.theme]),position:"",transition:"van-popover-zoom",lockScroll:!1,"onUpdate:show":w},n,Ie(e,Jt)),{default:()=>[e.showArrow&&g("div",{class:N("arrow")},null),g("div",{role:"menu",class:N("content")},[r.default?r.default():e.actions.map(O)])]})])}}});const nr=Fe(Kt);function Qt(e){return["top","bottom","right","left","center"].includes(e)}var er={show:{type:Boolean,default:!1},position:{type:String,default:"center",validator:Qt},transition:{type:String},overlay:{type:Boolean,default:!0},overlayClass:{type:String},overlayStyle:{type:Object},lockScroll:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0},defaultStyle:{type:Boolean,default:!0},teleport:{type:String},onOpen:T(),onOpened:T(),onClose:T(),onClosed:T(),onClickOverlay:T(),"onUpdate:show":T(),onRouteChange:T()};function se(){return se=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},se.apply(this,arguments)}function tr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Je(e)}var{n:C,classes:ne}=Ke("popup");const ae=le({name:"VarPopup",inheritAttrs:!1,props:er,setup(e,t){var{slots:r,attrs:n}=t,{zIndex:a}=He(()=>e.show,3),{disabled:o}=Xe(),c=()=>{var{closeOnClickOverlay:i,onClickOverlay:p}=e;V(p),i&&V(e["onUpdate:show"],!1)};Ye(()=>e.show,()=>e.lockScroll),X(()=>e.show,i=>{i?V(e.onOpen):V(e.onClose)}),_e(()=>V(e.onRouteChange));var l=()=>{var{overlayClass:i="",overlayStyle:p}=e;return g("div",{class:ne(C("overlay"),i),style:se({zIndex:a.value-1},p),onClick:c},null)},s=()=>g("div",Oe({class:ne(C("content"),C("--"+e.position),[e.defaultStyle,C("--content-background-color")],[e.defaultStyle,C("$-elevation--3")]),style:{zIndex:a.value}},n),[V(r.default)]),f=()=>{var{onOpened:i,onClosed:p,show:w,overlay:v,transition:L,position:m}=e;return g(de,{name:C("$-fade"),onAfterEnter:i,onAfterLeave:p},{default:()=>[Ze(g("div",{class:ne(C("$--box"),C()),style:{zIndex:a.value-2}},[v&&l(),g(de,{name:L||C("$-pop-"+m)},{default:()=>[w&&s()]})]),[[Qe,w]])]})};return()=>{var{teleport:i}=e;if(i){var p;return g(Ge,{to:i,disabled:o.value},tr(p=f())?p:{default:()=>[p]})}return f()}}});ae.install=function(e){e.component(ae.name,ae)};const ar=le({name:"measureSpeed",setup(){const e=H(!1),t=et({speed:P.speed,originSpeed:P.originSpeed});return X(()=>P.section.length,()=>{if(P.modeType==="practise"){if(!e.value&&P.section.length===2){e.value=!0,t.speed=P.speed;const r=P.section[0].beatSpeed;P.originSpeed=r,ve(r)}e.value&&P.section.length===0&&(e.value=!1,P.originSpeed=t.originSpeed,ve(t.speed))}}),()=>g("div",null,null)}});export{ar as M,nr as P,ae as a};
|