useFee-legacy-ffd4bc8f.js 5.5 KB

1
  1. System.register(["./index-legacy-835c2a22.js"],(function(e,t){"use strict";var o,n,l,a,s,i,c,r,u,d,m,f,g,B,b,p,h,w,v,y,C,x,k,S,T,D,E,P,A,O,H,N,z,M,U,F,I,j;return{setters:[e=>{o=e.t,n=e.d,l=e.Q,a=e.aY,s=e.y,i=e.v,c=e.a,r=e.C,u=e.D,d=e.E,m=e.H,f=e.G,g=e.c,B=e.ag,b=e.B,p=e.aZ,h=e.w,w=e.aq,v=e.N,y=e.a_,C=e.r,x=e.J,k=e.ay,S=e.z,T=e.P,D=e.a$,E=e.b0,P=e.b1,A=e.b2,O=e.A,H=e.ao,N=e.a4,z=e.b3,M=e.b4,U=e.p,F=e.g,I=e.b5,j=e.s}],execute:function(){e("b",le);const[t,q]=o("action-bar"),G=Symbol(t),J={placeholder:Boolean,safeAreaInsetBottom:i};var K=n({name:t,props:J,setup(e,{slots:t}){const o=l(),n=a(o,q),{linkChildren:i}=s(G);i();const r=()=>{var n;return c("div",{ref:o,"class":[q(),{"van-safe-area-bottom":e.safeAreaInsetBottom}]},[null==(n=t["default"])?void 0:n.call(t)])};return()=>e.placeholder?n(r):r()}});const L=r(K),[Q,R]=o("action-bar-button"),V=u({},d,{type:String,text:String,icon:String,color:String,loading:Boolean,disabled:Boolean});var W=n({name:Q,props:V,setup(e,{slots:t}){const o=m(),{parent:n,index:l}=f(G),a=g((()=>{if(n){const e=n.children[l.value-1];return!(e&&"isButton"in e)}})),s=g((()=>{if(n){const e=n.children[l.value+1];return!(e&&"isButton"in e)}}));return B({isButton:!0}),()=>{const{type:n,icon:l,text:i,color:r,loading:u,disabled:d}=e;return c(b,{"class":R([n,{last:s.value,first:a.value}]),size:"large",type:n,icon:l,color:r,loading:u,disabled:d,onClick:o},{"default":()=>[t["default"]?t["default"]():i]})}}});const Y=r(W),[Z,$,_]=o("dialog"),X=u({},p,{title:String,theme:String,width:h,message:[String,Function],callback:Function,allowHtml:Boolean,className:w,transition:v("van-dialog-bounce"),messageAlign:String,closeOnPopstate:i,showCancelButton:Boolean,cancelButtonText:String,cancelButtonColor:String,cancelButtonDisabled:Boolean,confirmButtonText:String,confirmButtonColor:String,confirmButtonDisabled:Boolean,showConfirmButton:i,closeOnClickOverlay:Boolean}),ee=[...y,"transition","closeOnPopstate"];var te=n({name:Z,props:X,emits:["confirm","cancel","keydown","update:show"],setup(e,{emit:t,slots:o}){const n=l(),a=C({confirm:!1,cancel:!1}),s=e=>t("update:show",e),i=t=>{var o;s(!1),null==(o=e.callback)||o.call(e,t)},r=o=>()=>{e.show&&(t(o),e.beforeClose?(a[o]=!0,H(e.beforeClose,{args:[o],done(){i(o),a[o]=!1},canceled(){a[o]=!1}})):i(o))},u=r("cancel"),d=r("confirm"),m=D((o=>{var l,a;o.target===(null==(a=null==(l=n.value)?void 0:l.popupRef)?void 0:a.value)&&({Enter:e.showConfirmButton?d:E,Escape:e.showCancelButton?u:E}[o.key](),t("keydown",o))}),["enter","esc"]),f=()=>{const t=o.title?o.title():e.title;if(t)return c("div",{"class":$("header",{isolated:!e.message&&!o["default"]})},[t])},g=t=>{const{message:o,allowHtml:n,messageAlign:l}=e,a=$("message",{"has-title":t,[l]:l}),s=P(o)?o():o;return n&&"string"==typeof s?c("div",{"class":a,innerHTML:s},null):c("div",{"class":a},[s])},B=()=>{if(o["default"])return c("div",{"class":$("content")},[o["default"]()]);const{title:t,message:n,allowHtml:l}=e;if(n){const e=!(!t&&!o.title);return c("div",{key:l?1:0,"class":$("content",{isolated:!e})},[g(e)])}},p=()=>o.footer?o.footer():"round-button"===e.theme?c(L,{"class":$("footer")},{"default":()=>[e.showCancelButton&&c(Y,{type:"warning",text:e.cancelButtonText||_("cancel"),"class":$("cancel"),color:e.cancelButtonColor,loading:a.cancel,disabled:e.cancelButtonDisabled,onClick:u},null),e.showConfirmButton&&c(Y,{type:"danger",text:e.confirmButtonText||_("confirm"),"class":$("confirm"),color:e.confirmButtonColor,loading:a.confirm,disabled:e.confirmButtonDisabled,onClick:d},null)]}):c("div",{"class":[O,$("footer")]},[e.showCancelButton&&c(b,{size:"large",text:e.cancelButtonText||_("cancel"),"class":$("cancel"),style:{color:e.cancelButtonColor},loading:a.cancel,disabled:e.cancelButtonDisabled,onClick:u},null),e.showConfirmButton&&c(b,{size:"large",text:e.confirmButtonText||_("confirm"),"class":[$("confirm"),{[A]:e.showCancelButton}],style:{color:e.confirmButtonColor},loading:a.confirm,disabled:e.confirmButtonDisabled,onClick:d},null)]);return()=>{const{width:t,title:o,theme:l,message:a,className:i}=e;return c(T,x({ref:n,role:"dialog","class":[$([l]),i],style:{width:S(t)},tabindex:0,"aria-labelledby":o||a,onKeydown:m,"onUpdate:show":s},k(e,ee)),{"default":()=>[f(),B(),p()]})}}});let oe,ne=u({},{title:"",width:"",theme:null,message:"",overlay:!0,callback:null,teleport:"body",className:"",allowHtml:!1,lockScroll:!0,transition:void 0,beforeClose:null,overlayClass:"",overlayStyle:void 0,messageAlign:"",cancelButtonText:"",cancelButtonColor:null,cancelButtonDisabled:!1,confirmButtonText:"",confirmButtonColor:null,confirmButtonDisabled:!1,showConfirmButton:!0,showCancelButton:!1,closeOnPopstate:!0,closeOnClickOverlay:!1});function le(e){return N?new Promise(((t,o)=>{oe||function(){const e={setup(){const{state:e,toggle:t}=M();return()=>c(te,x(e,{"onUpdate:show":t}),null)}};({instance:oe}=z(e))}(),oe.open(u({},ne,e,{callback:e=>{("confirm"===e?t:o)(e)}}))})):Promise.resolve(void 0)}e("s",(e=>le(u({showCancelButton:!0},e)))),r(te);const ae=e("g",(()=>{U({api:"back"});const e=F();let t="/";if((/gym.lexiaoya.cn/.test(location.origin)||/test.gym.lexiaoya.cn/.test(location.origin))&&(t="/mdaya/"),e.isApp){const e=window.location.origin+t+"#/member";U({api:"openWebView",content:{url:e,orientation:1}})}else location.href=window.location.origin+t+"#/member"}));e("h",(()=>!(!I().isBefore(I(j.user.data.student.membershipEndTime))&&!j.user.data.isExistPendingMember))),e("a",(()=>!("STUDENT"==j.platformType&&!I().isBefore(I(j.user.data.student.membershipEndTime))&&!j.user.data.isExistPendingMember&&(le({title:"温馨提示",message:"您暂未开通云练习,请开通后使用"}).then((()=>{ae()})),1))))}}}));