1 |
- System.register(["./index-legacy-fa96eed7.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.bl,o=e.d,l=e.bm,a=e.bn,r=e.bo,s=e.w,i=e.bp,p=e.h,u=e.bq,d=e.a5,c=e.br,v=e.bs,y=e.at,f=e.bt,b=e.bk,g=e.bu,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:k,classes:w}=f("popup");const j=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:w(k("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:k("$-fade"),onAfterEnter:t,onAfterLeave:l},{default:()=>[v(p("div",{class:w(k("$--box"),k()),style:{zIndex:f.value-2}},[r&&O(),p(y,{name:s||k("$-pop-"+i)},{default:()=>[a&&p("div",b({class:w(k("content"),k("--"+e.position),[e.defaultStyle,k("--content-background-color")],[e.defaultStyle,k("$-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()}}}));j.install=function(e){e.component(j.name,j)},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)}}))}}}));
|