@arcblock/www-wallet
Version:
Start experiencing your digital world with ABT Wallet
2 lines • 6.14 kB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[15],{CEwG:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n("8o2o"),i=n("q1tI"),r=n.n(i),l=n("vOnD"),o=n("ofer");function c(e){var t=e.step,n=e.title,i=e.disabled,l=e.children,c=Object(a.a)(e,["step","title","disabled","children"]);return r.a.createElement(s,Object.assign({disabled:i},c),r.a.createElement("div",{className:"step__header"},r.a.createElement(o.a,{className:"step__header__number"},t),r.a.createElement(o.a,{className:"step__header__title"},n)),!!l&&r.a.createElement("div",{className:"step__content"},l))}c.defaultProps={disabled:!1,children:null};var s=l.default.div.withConfig({displayName:"demo_step__Container",componentId:"sc-1iwm8mc-0"})(["margin-bottom:40px;.step__header{height:24px;display:flex;align-items:center;.step__header__number{width:24px;height:24px;background-color:",";text-align:center;color:#fff;font-size:14px;line-height:24px;border-radius:24px;}.step__header__title{margin-left:14px;font-size:14px;line-height:24px;letter-spacing:2px;color:",";text-transform:uppercase;font-weight:500;}}.step__content{margin-top:32px;display:flex;.btn-outlinedPrimary{height:180px;width:180px;color:"," !important;border-color:"," !important;text-transform:none;&:hover{background-color:rgba(78,106,246,0.1) !important;}.btn-content{width:180px;height:180px;display:flex;flex-direction:column;align-items:center;justify-content:center;.btn-name{margin-top:24px;font-size:16px;}}}.right-content{flex:1;margin:0px 0px 0px 32px;font-size:14px;color:#6e6e6e;}.right-content-no-margin{margin:0;}.meta{display:flex;flex-grow:1;flex-direction:column;justify-content:flex-start;align-items:flex-start;}@media (max-width:","px){margin-top:16px;flex-direction:column-reverse;.right-content{margin-left:0;margin-bottom:16px;}.btn-outlinedPrimary{height:150px;width:150px;.btn-content{width:150px;height:150px;}}}}"],(function(e){return e.disabled?"#9b9b9b":"#4e6af6"}),(function(e){return e.disabled?"#9b9b9b":"#222222"}),(function(e){return e.disabled?"#9b9b9b":"#4e6af6"}),(function(e){return e.disabled?"#9b9b9b":"#4e6af6"}),(function(e){return e.theme.breakpoints.values.sm}))},vBl1:function(e,t,n){"use strict";n.r(t);var a=n("kD0k"),i=n.n(a),r=(n("ls82"),n("/S4K")),l=n("q1tI"),o=n.n(l),c=n("vOnD"),s=n("aBYM"),m=n.n(s),p=n("vlII"),u=n.n(p),d=n("pW3x"),f=n.n(d),g=n("p46w"),h=n.n(g),x=n("Z3vd"),b=n("iae6"),E=n("kfFl"),v=n("tRbT"),w=n("ofer"),_=n("i7VC"),y=n.n(_),k=n("yUF8"),N=n.n(k),C=n("ESp+"),O=n.n(C),j=n("nO1o"),z=n.n(j),I=n("Qo9D"),B=n("Bl7J"),D=n("uxxp"),F=n("CEwG"),P=n("TNpm"),S=n("E2d/"),T=n("Cbtb"),G=n("p041");function J(){return q.apply(this,arguments)}function q(){return(q=Object(r.a)(i.a.mark((function e(){var t,n,a;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([T.a.get("/api/holdings"),T.a.get("/api/session")]);case 2:return t=e.sent,n=t[0].data,a=t[1].data,e.abrupt("return",{holding:n,session:a});case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}t.default=N()(O()(S.a)((function(e){var t=e.t,n=e.pageContext,a=m()(J),i=f()().width,r=Object(l.useState)(),c=r[0],s=r[1],p=u()(!1),d=p[0],g=p[1];if(a.error)return o.a.createElement(B.a,{title:t("course.title")},o.a.createElement(K,null,a.error.message));if(a.loading||!a.value)return o.a.createElement(B.a,{title:t("course.title")},o.a.createElement(K,null,o.a.createElement(b.a,null)));if(!a.value.session.user)return o.a.createElement(B.a,{title:t("course.title")},o.a.createElement(K,null,o.a.createElement(P.a,{t:t})));var _={poh:{action:"poh",title:t("dialog.poh.title"),scan:t("dialog.poh.scan"),confirm:t("dialog.poh.confirm"),success:t("dialog.poh.success")}},k=i>=1e3?600:.9*i,N=337.5*k/600;return o.a.createElement(B.a,{title:t("music.title")},o.a.createElement(K,null,o.a.createElement(v.a,{container:!0,spacing:3},o.a.createElement(v.a,{item:!0,xs:12,md:4},o.a.createElement(D.a,{user:a.value.session.user,locale:n.locale,t:t})),o.a.createElement(v.a,{item:!0,xs:12,md:8},o.a.createElement(w.a,{className:"right-title"},t("music.title")),o.a.createElement(F.a,{step:1,title:t("music.step1.title"),disabled:!1},o.a.createElement(o.a.Fragment,null,!a.value.holding&&o.a.createElement(x.a,{onClick:function(){return s("poh"),void g(!0)},variant:"outlined",color:"primary",className:"btn-outlinedPrimary"},o.a.createElement("div",{className:"btn-content"},o.a.createElement(z.a,{name:"ticket",size:36,color:I.colors.blue}),o.a.createElement("span",{className:"btn-name"},t("music.step1.title")))),o.a.createElement(w.a,{className:a.value.holding?"right-content right-content-no-margin":"right-content"},a.value.holding?t("music.step1.done"):t("music.step1.pending")))),o.a.createElement(F.a,{step:2,title:t("music.step2.title"),disabled:!a.value.holding},o.a.createElement(w.a,{component:"div",className:"right-content right-content-no-margin"},a.value.holding?t("music.step2.done"):t("music.step2.pending"),a.value.holding&&o.a.createElement("div",{className:"meta"},o.a.createElement("iframe",{width:k,height:N,src:t("music.content"),title:"Greatest Love Of All",className:"music-content",frameBorder:"0",allow:"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})))))),c&&_[c]&&d&&o.a.createElement(E.a,{open:!0,maxWidth:"sm",disableBackdropClick:!0,disableEscapeKeyDown:!0,onClose:function(){return g()}},o.a.createElement(y.a,{responsive:!0,locale:h.a.get("nf_lang")||"en",action:_[c].action,checkFn:T.a.get,checkTimeout:3e5,onError:G.b,onClose:function(){return g()},onSuccess:function(){setTimeout((function(){window.location.reload()}),2e3)},messages:_[c]}))))})));var K=c.default.main.withConfig({displayName:"music__Main",componentId:"sc-1lsgy60-0"})(["max-width:1000px;display:flex;flex-direction:column;.right-title{font-size:24px;color:#222222;font-weight:900;letter-spacing:2px;margin:0px 0px 40px 0px;text-transform:uppercase;}.meta{display:flex;flex-grow:1;flex-direction:column;justify-content:flex-start;align-items:flex-start;}.music-content{margin-top:1rem;}"])}}]);
//# sourceMappingURL=component---src-pages-music-js-2b8618f2114ecd7979b7.js.map