1 |
- System.register(["./index-legacy-c607a020.js"],(function(e,t){"use strict";var n,o,l,a,r,s,i,p,u,d,c,v,y,f,b,g,S,h,O,C;return{setters:[e=>{n=e.bm,o=e.d,l=e.bn,a=e.bo,r=e.bp,s=e.w,i=e.bq,p=e.h,u=e.br,d=e.a5,c=e.bs,v=e.bt,y=e.au,f=e.bu,b=e.bl,g=e.bv,S=e.l,h=e.n,O=e.m,C=e.V}],execute:function(){var t={show:{type:Boolean,default:!1},position:{type:String,default:"center",validator:function(e){return["top","bottom","right","left","center"].includes(e)}},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:n(),onOpened:n(),onClose:n(),onClosed:n(),onClickOverlay:n(),"onUpdate:show":n(),onRouteChange:n()};function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},m.apply(this,arguments)}var{n:w,classes:j}=f("popup");const k=e("P",o({name:"VarPopup",inheritAttrs:!1,props:t,setup(e,t){var{slots:n,attrs:o}=t,{zIndex:f}=l((()=>e.show),3),{disabled:S}=a(),h=()=>{var{closeOnClickOverlay:t,onClickOverlay:n}=e;c(n),t&&c(e["onUpdate:show"],!1)};r((()=>e.show),(()=>e.lockScroll)),s((()=>e.show),(t=>{c(t?e.onOpen:e.onClose)})),i((()=>c(e.onRouteChange)));var O=()=>{var{overlayClass:t="",overlayStyle:n}=e;return p("div",{class:j(w("overlay"),t),style:m({zIndex:f.value-1},n),onClick:h},null)},C=()=>{var{onOpened:t,onClosed:l,show:a,overlay:r,transition:s,position:i}=e;return p(y,{name:w("$-fade"),onAfterEnter:t,onAfterLeave:l},{default:()=>[v(p("div",{class:j(w("$--box"),w()),style:{zIndex:f.value-2}},[r&&O(),p(y,{name:s||w("$-pop-"+i)},{default:()=>[a&&p("div",b({class:j(w("content"),w("--"+e.position),[e.defaultStyle,w("--content-background-color")],[e.defaultStyle,w("$-elevation--3")]),style:{zIndex:f.value}},o),[c(n.default)])]})]),[[g,a]])]})};return()=>{var t,n,{teleport:o}=e;return o?p(u,{to:o,disabled:S.value},"function"==typeof(n=t=C())||"[object Object]"===Object.prototype.toString.call(n)&&!d(n)?t:{default:()=>[t]}):C()}}}));k.install=function(e){e.component(k.name,k)},e("M",o({name:"measureSpeed",setup(){const e=S(!1),t=h({speed:O.speed,originSpeed:O.originSpeed});return s((()=>O.section.length),(()=>{if("practise"===O.modeType){if(!e.value&&2===O.section.length){e.value=!0,t.speed=O.speed;const n=O.section[0].beatSpeed;O.originSpeed=n,C(n)}e.value&&0===O.section.length&&(e.value=!1,O.originSpeed=t.originSpeed,C(t.speed))}})),()=>p("div",null,null)}}))}}}));
|