diff --git a/semag/al2/js/loading-screen.96060098.js b/semag/al2/js/loading-screen.96060098.js new file mode 100644 index 00000000..369dce31 --- /dev/null +++ b/semag/al2/js/loading-screen.96060098.js @@ -0,0 +1,2 @@ +(function(e){function t(t){for(var o,a,u=t[0],s=t[1],c=t[2],l=0,f=[];l{if(e.keyCode!==o["b"])return;const t=e.srcElement||e.target;if(!t||!t.tagName)return;const n=t.tagName.toUpperCase(),i=(t.type||"").toUpperCase();let a=!0;("INPUT"===n&&r.includes(i)||"TEXTAREA"===n)&&(a=t.readOnly||t.disabled),a&&e.preventDefault()},a=e=>{const t=document.createEvent("Event");t.initEvent(e,!0,!0),document.dispatchEvent(t)},u=(e=document.body,t,n=!0)=>{const o=document.createEvent("MouseEvents");o.initMouseEvent(t,!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,0,null),o.simulated=n,e.dispatchEvent(o)},s=(e=document.body,t=!0)=>u(e,"mouseup",t)},"2ae7":function(e,t,n){"use strict";function o(){const e=document.createElement("fakeelement"),t={animation:"a",WebkitAnimation:"webkitA"},n=Object.keys(t).find(t=>void 0!==e.style[t])||"animation";return t[n]}n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i}));const r="transitionend",i=`${o()}nimationend`;o()},"571d":function(e,t,n){"use strict";n.d(t,"d",(function(){return o})),n.d(t,"e",(function(){return r})),n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return u}));const o=window.PointerEvent?["pointerdown"]:["mousedown","touchstart"],r=(window.PointerEvent,window.PointerEvent?["pointerup"]:["mouseup","touchend"]),i="GAME_READY",a="PLAY",u="PLAY_NOT_READY"},"6e95":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n("2b0e");new o["a"];const r=o["a"]},7897:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return r}));const o=e=>{if(!e)return null;try{const t=localStorage.getItem(e);if(!t)return null;const n=JSON.parse(t);return n}catch(t){return null}},r=(e,t)=>{if(e)try{localStorage.setItem(e,JSON.stringify(t))}catch(n){console.error(n)}}},8233:function(e,t,n){"use strict";n("8f17")},"8f17":function(e,t,n){},d257:function(e,t,n){"use strict";var o=n("2ae7");const r=(e,t="animationend")=>new Promise(n=>{const o=()=>{e.removeEventListener(t,o),n()};e.addEventListener(t,o)}),i=e=>{const{className:t}=e;e.className="",e.offsetWidth,e.className=t},a=(e,t)=>(e.addEventListener(o["a"],t,!1),()=>e.removeEventListener(o["a"],t)),u=(e,t)=>a(e,({animationName:e})=>t(e)),s=(e,t)=>(e.addEventListener(o["b"],t,!1),()=>e.removeEventListener(o["b"],t)),c=e=>new Promise(t=>window.setTimeout(t,e)),d=e=>window.setTimeout(e,0),l=window.requestAnimationFrame?()=>new Promise(e=>requestAnimationFrame(()=>e())):()=>c(0),f=["Webkit","Moz","ms","Ms","O"],m=document.documentElement.style,p=window.getComputedStyle?e=>getComputedStyle(e,null):e=>e.currentStyle,h=e=>{if("string"===typeof m[e])return e;const t=`${e.charAt(0).toUpperCase()}${e.slice(1)}`;let n;for(let o=0,r=f.length;o{const t=getComputedStyle(e);return e.offsetHeight+parseInt(t.marginTop||"0",10)+parseInt(t.marginBottom||"0",10)};var w=n("0347");const g=Object(w["a"])(),v=g.any,b=navigator.userAgent,E=()=>/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,k=()=>/Edge/.test(navigator.userAgent),P=()=>(b.includes("Chrome")||b.includes("Chromium"))&&!k(),O=()=>b.includes("Safari")&&!P()&&!k(),C=()=>E()&&P(),A=(e,t)=>{let n=t.parentNode;while(null!==n){if(n===e)return!0;n=n.parentNode}return!1},S=e=>{e.parentNode&&e.parentNode.appendChild(e)},M=e=>new Promise((t,n)=>{const o=new XMLHttpRequest;o.open("get",e,!0),o.responseType="json",o.onload=()=>{200===o.status?t(o.response):n(o.status)},o.send()}),j=(e,...t)=>{},_=(e,t,n)=>{},T=(e,t)=>{e.scrollTop=t},N=e=>e.scrollY||e.scrollTop,L=e=>"getComputedStyle"in window&&"smooth"===window.getComputedStyle(e)["scroll-behavior"],R=(e,t,n=250)=>{if(0===n||L(e))return void T(e,t);const o=N(e),r=Math.max(0,t)-o,i=(new Date).getTime(),a=n||Math.min(Math.abs(r),n);(function t(){setTimeout(()=>{const n=Math.min(1,((new Date).getTime()-i)/a),u=n<.5?2*n*n:n*(4-2*n)-1,s=Math.max(0,Math.floor(o+r*u));T(e,s),n<1&&t()},9)})()},$=e=>`${e.charAt(0).toUpperCase()}${e.slice(1)}`,x=60,q=60*x,D=24*q,I=e=>{const t=Date.now(),n=Math.round((t-e)/1e3),o=Math.floor(n/D),r=Math.floor((n-o*D)/q),i=Math.floor((n-o*D-r*q)/x);return{days:o,hours:r,minutes:i}},G=e=>{const{days:t,hours:n,minutes:o}=I(e);return 0===t&&0===n&&o<2?"just now":0===t&&0===n?`${o} minutes ago`:0===t&&1===n?`${n} hour ${o} minutes ago`:0===t&&n<3?`${n} hours ${o} minutes ago`:0===t?`${n} hours ago`:1===t?`${t} day ago`:`${t} days ago`},H=(e,t)=>{const n=new XMLHttpRequest;return n.open("POST",e,!0),n.setRequestHeader("Content-type","application/json"),n.send(JSON.stringify(t)),new Promise((e,t)=>{n.onload=()=>e(n.response),n.onerror=t})},J=e=>{const t=new XMLHttpRequest;return t.open("GET",e,!0),t.send(),new Promise((e,n)=>{t.onload=()=>e(t.response),t.onerror=n})};n.d(t,"t",(function(){return r})),n.d(t,"y",(function(){return i})),n.d(t,"s",(function(){return a})),n.d(t,"u",(function(){return u})),n.d(t,"v",(function(){return s})),n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return d})),n.d(t,"r",(function(){return l})),n.d(t,"g",(function(){return p})),n.d(t,"h",(function(){return h})),n.d(t,"e",(function(){return y})),n.d(t,"o",(function(){return v})),n.d(t,"n",(function(){return E})),n.d(t,"l",(function(){return k})),n.d(t,"j",(function(){return P})),n.d(t,"p",(function(){return O})),n.d(t,"k",(function(){return C})),n.d(t,"m",(function(){return A})),n.d(t,"x",(function(){return S})),n.d(t,"d",(function(){return M})),n.d(t,"q",(function(){return j})),n.d(t,"A",(function(){return _})),n.d(t,"z",(function(){return R})),n.d(t,"a",(function(){return $})),n.d(t,"i",(function(){return G})),n.d(t,"w",(function(){return H})),n.d(t,"f",(function(){return J}))},e69b:function(e,t,n){"use strict";n.r(t);var o=n("2b0e"),r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.visible?n("main",{staticClass:"loading-screen",attrs:{id:"loading-screen"},on:{click:function(t){return t.stopPropagation(),e.onClick(t)}}},[n("div",{staticClass:"loading-screen-container"},[n("div",{staticClass:"btn",class:e.classes,on:{click:function(t){return t.stopPropagation(),e.onClick(t)}}},[n("span",{staticClass:"label"},[e._v("play")]),e._m(0)]),n("img",{ref:"logo",attrs:{alt:"logo"}})])]):e._e()},i=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"loading-screen-button-animation"},[n("div"),n("div"),n("div"),n("div")])}],a=n("6e95"),u=n("571d"),s=n("152b");const c=(e,t)=>{if(!window.google_optimize)return"original";const n=window.google_optimize.get(e);return 0!==n&&t[n]?t[n]:"original"};var d=n("d257"),l=n("7897");const f=1100;var m=a["a"].extend({name:"loading-screen",data:()=>({visible:!0,clicked:!1,ready:!1}),computed:{classes(){return{"js-ready":this.ready}}},mounted(){this.$refs.logo.src="/static/img/logo.svg",this.onGameReady=this.onGameReady.bind(this),document.addEventListener(u["a"],this.onGameReady,!1);const e=document.querySelector("#loading-screen .btn");e&&(e.removeEventListener("mousedown",window.playClickNotReady,!1),e.removeEventListener("touchstart",window.playClickNotReady,!1),window.playClickNotReady=null)},methods:{onClick(){this.clicked=!0,this.checkPlay()},async onGameReady(){document.removeEventListener(u["a"],this.onGameReady,!1);const e=this.getAutohideVariant();"hide"===e?(await Object(d["c"])(30),this.play()):"hideAfterDelay"===e?(await Object(d["c"])(f),this.play()):(this.ready=!0,this.checkPlay())},checkPlay(){this.ready&&this.clicked?this.play():this.ready||Object(s["a"])(u["c"])},play(){Object(s["a"])(u["b"]),this.visible=!1,this.$nextTick(()=>this.$destroy())},getAutohideVariant(){const e="experiment-auto-hide";let t=Object(l["a"])(e);return null!==t?t:(t=c("O_ZkAo4qS_yyPKq34rk6FA",{1:"hide",2:"hideAfterDelay"}),Object(l["b"])(e,t),t)}}}),p=m,h=(n("8233"),n("2877")),y=Object(h["a"])(p,r,i,!1,null,null,null),w=y.exports;o["a"].config.productionTip=!1,o["a"].config.devtools=!1,o["a"].config.silent=!0,window.playClickNotReady=()=>{if(!window.ga)return;const e=window.performance&&window.performance.now?window.performance.now():(new Date).getTime();window.ga("send","event","metrics","not_ready_play_click","timing",e,{nonInteraction:!0})};const g=document.querySelector("#loading-screen .btn");g&&(g.addEventListener("mousedown",window.playClickNotReady,!1),g.addEventListener("touchstart",window.playClickNotReady,!1));const v=o["a"].extend(w),b=new v;b.$mount("#loading-screen",!0)}}); +//# sourceMappingURL=loading-screen.96060098.js.map \ No newline at end of file diff --git a/semag/al2/js/login.2eb274c1.js b/semag/al2/js/login.2eb274c1.js new file mode 100644 index 00000000..27ec63fd --- /dev/null +++ b/semag/al2/js/login.2eb274c1.js @@ -0,0 +1,2 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["login"],{a167:function(e,t,s){"use strict";s.r(t);var i=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("CloseButton",{attrs:{"is-back":!e.isSuccess},on:{click:e.back}}),s("div",{staticClass:"popup-header"},[e._v("Sign in")]),s("div",{staticClass:"content"},[s("transition",{attrs:{name:"login-transition",mode:"out-in"}},[e.isStep("chooser")?s("div",{staticClass:"step"},[s("div",{staticClass:"group text-center"},[e._v(" Use your existing account or set up a new one using your e‑mail address. ")]),s("div",{staticClass:"group text-center"},[e._v(" By signing in you accept our "),s("span",{staticClass:"privacy-policy"},[s("a",{attrs:{href:"https://www.iubenda.com/privacy-policy/8201056",target:"_blank",rel:"noopener noreferrer"}},[e._v("Privacy Policy")])]),e._v(". ")]),s("div",{staticClass:"button-group"},[s("div",{staticClass:"popup-button login-google",on:{click:e.loginGoogle}},[s("span",{staticClass:"label"},[e._v("Google")])]),s("div",{staticClass:"popup-button login-facebook",on:{click:e.loginFacebook}},[s("span",{staticClass:"label"},[e._v("Facebook")])]),s("div",{staticClass:"popup-button login-mail",on:{click:e.loginMail}},[s("span",{staticClass:"label"},[e._v("E-mail")])])])]):e.isStep("mail")?s("mail-login",{ref:"mailFlow"}):e.isStep("success")?s("div",{staticClass:"step"},[s("div",{staticClass:"text-center bold group"},[e._v("Signed in successfully.")]),e.shouldShowNewsletterOptin?e._e():s("div",{staticClass:"text-center group"},[e._v("Now onwards! Discover new worlds!")]),e.shouldShowNewsletterOptin?s("div",[s("div",{staticClass:"group text-center"},[e._v(" While you're here, would you like to receive email notifications when we release updates? ")]),s("div",{staticClass:"group flex-row flex-justify-content-center"},[s("div",{staticClass:"flip-switch newsletter-switch"},[s("input",{directives:[{name:"model",rawName:"v-model",value:e.joinNewsletter,expression:"joinNewsletter"}],attrs:{id:"newsletterCheckbox",type:"checkbox"},domProps:{checked:Array.isArray(e.joinNewsletter)?e._i(e.joinNewsletter,null)>-1:e.joinNewsletter},on:{change:function(t){var s=e.joinNewsletter,i=t.target,a=!!i.checked;if(Array.isArray(s)){var r=null,o=e._i(s,r);i.checked?o<0&&(e.joinNewsletter=s.concat([r])):o>-1&&(e.joinNewsletter=s.slice(0,o).concat(s.slice(o+1)))}else e.joinNewsletter=a}}}),s("label",{attrs:{for:"newsletterCheckbox"}})]),s("label",{attrs:{for:"newsletterCheckbox"}},[e._v("join Little Alchemy newsletter")])])]):e._e(),s("div",{staticClass:"group"},[s("div",{staticClass:"popup-button",on:{click:e.hide}},[s("span",{staticClass:"label"},[e._v("continue")])])])]):e._e()],1)],1)],1)},a=[],r=s("6e95"),o=s("5c57"),n=s("d257"),l=s("b2eb"),c=s("1663"),u=s("da33"),h=s("7897");const p="newsletter",d="https://us-central1-little-alchemy-2.cloudfunctions.net/joinNewsletter",v="https://us-central1-little-alchemy-2.cloudfunctions.net/isSubscribed";class m{constructor(){0}async join(e){try{await Object(n["w"])(d,{email:e}),this.updateStorage(e)}catch(t){throw new Error(t)}}updateStorage(e){Object(h["b"])(p,e)}async hasJoined(e){if(this.hasJoinedLocally(e))return!0;const t=await this.hasSubscribed(e);return t}hasJoinedLocally(e){const t=Object(h["a"])(p);return null!==t&&t===e}async hasSubscribed(e){const t=`${v}?email=${e}`;try{const e=await Object(n["f"])(t),s=!["Email not passed","Email does not exist in list"].includes(e);return s}catch(s){return!1}}}var w=new m,g=s("437d"),b=s("e879"),y=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("transition",{attrs:{name:"login-transition",mode:"out-in"},on:{"after-leave":e.afterLeave}},["mail"===e.step?s("div",{staticClass:"step"},[s("div",{staticClass:"error-container",class:e.errorClasses},[s("div",[e._v(e._s(e.error))])]),s("label",[s("div",{staticClass:"popup-input-label"},[e._v("e-mail address")]),s("input",{directives:[{name:"model",rawName:"v-model",value:e.mail,expression:"mail"}],attrs:{type:"email",name:"mail",autofocus:""},domProps:{value:e.mail},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.mailSubmit(t)},input:function(t){t.target.composing||(e.mail=t.target.value)}}})]),e.isLogin||e.isSignup?s("label",[s("div",{staticClass:"popup-input-label"},[e._v(e._s(e.isLogin?"password":"new password"))]),s("input",{directives:[{name:"model",rawName:"v-model",value:e.password,expression:"password"}],ref:"password",attrs:{type:"password"},domProps:{value:e.password},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.mailSubmit(t)},input:function(t){t.target.composing||(e.password=t.target.value)}}})]):e._e(),e.isSignup?s("div",[e._v(" By clicking the 'register' button, you indicate your agreement with our "),s("a",{staticClass:"link",attrs:{href:"https://www.iubenda.com/privacy-policy/8201056",target:"_blank",rel:"noopener noreferrer"}},[e._v("Privacy Policy")]),e._v(". ")]):e._e(),s("div",{staticClass:"popup-button width-200",on:{click:e.mailSubmit}},[e.isCheck?s("div",{staticClass:"label"},[e._v("next")]):e._e(),e.isSignup?s("div",{staticClass:"label"},[e._v("register")]):e._e(),e.isLogin?s("div",{staticClass:"label"},[e._v("sign in")]):e._e()]),e.isLogin?s("div",{staticClass:"troubles-signing-in",on:{click:function(t){return e.showNext("recover")}}},[e._v(" Troubles signing in? ")]):e._e()]):e._e(),"recover"===e.step?s("div",{staticClass:"step text-center"},[s("div",{staticClass:"error-container",class:e.errorClasses},[s("div",[e._v(e._s(e.error))])]),s("div",{staticClass:"group"},[e._v("You'll get an email with instructions on how to recover your password.")]),s("label",[s("div",{staticClass:"popup-input-label"},[e._v("e-mail address")]),s("input",{directives:[{name:"model",rawName:"v-model",value:e.mail,expression:"mail"}],attrs:{type:"email",name:"mail"},domProps:{value:e.mail},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.recoverSubmit(t)},input:function(t){t.target.composing||(e.mail=t.target.value)}}})]),s("div",{staticClass:"popup-button width-200",on:{click:e.recoverSubmit}},[s("div",{staticClass:"label"},[e._v("recover")])])]):e._e(),"recoverSuccess"===e.step?s("div",{staticClass:"step text-center"},[e._v(" An e-mail with the recovery instructions was sent to your email address. ")]):e._e()])],1)},f=[];const k=4e3;var _=r["a"].extend({name:"mail-login",data(){return{step:"mail",flow:"check",mail:"",password:"",error:"",errorVisible:!1,nextStep:""}},computed:{isCheck(){return"check"===this.flow},isSignup(){return"signup"===this.flow},isLogin(){return"password"===this.flow},errorClasses(){return{"js-visible":this.errorVisible}}},mounted(){this.handleError=this.handleError.bind(this)},methods:{mailSubmit(){this.errorVisible=!1;const e={mail:this.mail,password:this.password};this.isCheck?this.checkProvider():this.isSignup?u["a"].mailSignup(e).catch(this.handleError):u["a"].mailLogin(e).catch(this.handleError)},async checkProvider(){try{const e=await u["a"].mailCheckProviders(this.mail);if(!e)return void this.hide();this.flow=e,this.showNext("mail")}catch(e){this.handleError(e)}},async recoverSubmit(){this.errorVisible=!1;try{await u["a"].mailReset(this.mail),this.showNext("recoverSuccess")}catch(e){this.handleError(e)}},async handleError(e){this.error=e.message,this.errorVisible=!0,await Object(n["c"])(k),this.errorVisible=!1},afterLeave(){this.step=`${this.nextStep}`,this.nextStep="",this.$nextTick(()=>{this.$refs.password&&this.$refs.password.focus()})},showNext(e){this.step="",this.nextStep=e},back(){return"mail"===this.step?!this.isCheck&&(this.flow="check",this.showNext("mail"),!0):"recover"===this.step?(this.showNext("mail"),!0):"recoverSuccess"===this.step&&(this.flow="password",this.showNext("mail"),!0)},hide(){this.$store.dispatch("popupHide",void 0),this.reset()},async reset(){await Object(n["c"])(2*l["DELAY"]),this.mail="",this.password="",this.errorVisible=!1,this.error="",this.flow="check",this.step="mail"}}}),C=_,S=s("2877"),N=Object(S["a"])(C,y,f,!1,null,null,null),x=N.exports;const j=!1;var E=r["a"].extend({name:"login-popup",components:{BasePopup:g["a"],CloseButton:b["a"],MailLogin:x},data:()=>({step:"chooser",joinNewsletter:j,hasJoined:null}),computed:{...Object(o["b"])(["isPopupWithNameActive","isLoggedIn","user"]),name(){return l["LOGIN"]},isLoginActive(){return this.isPopupWithNameActive(l["LOGIN"])},isSuccess(){return"success"===this.step},userEmail(){return this.user?this.user.email:null},hasJoinedNewsletter(){return!!this.hasJoined},shouldShowNewsletterOptin(){return!!this.userEmail&&null!==this.hasJoined&&!this.hasJoinedNewsletter}},mounted(){c["a"].on("POPUP_HIDE",()=>{this.isLoginActive&&(this.$refs.mailFlow&&this.$refs.mailFlow.reset(),this.handleNewsletter(),this.reset())})},watch:{isLoggedIn(e){e&&this.isLoginActive&&(this.step="success")},userEmail(e){e&&this.fetchNewsletterStatus()}},methods:{isStep(e){return this.step===e},loginGoogle(){u["a"].login("google")},loginFacebook(){u["a"].login("facebook")},loginMail(){this.step="mail"},async reset(){await Object(n["c"])(l["HIDE_DURATION"]),this.step="chooser",this.joinNewsletter=j,this.hasJoined=null},back(){if(this.isStep("success"))this.hide();else if(this.isStep("chooser"))this.hide();else{const e=this.$refs.mailFlow.back();if(e)return;this.step="chooser"}},hide(){this.reset(),this.isSuccess?this.$store.dispatch("popupHide",void 0):this.$store.dispatch("popupShowNext",{name:l["SETTINGS"]})},async fetchNewsletterStatus(){if(!this.userEmail)return;const e=await w.hasJoined(this.userEmail);this.hasJoined=e},handleNewsletter(){this.joinNewsletter&&this.userEmail&&w.join(this.userEmail)}}}),L=E,O=Object(S["a"])(L,i,a,!1,null,null,null);t["default"]=O.exports}}]); +//# sourceMappingURL=login.2eb274c1.js.map \ No newline at end of file diff --git a/semag/al2/js/popups.7ff1f250.js b/semag/al2/js/popups.7ff1f250.js new file mode 100644 index 00000000..f197fa3d --- /dev/null +++ b/semag/al2/js/popups.7ff1f250.js @@ -0,0 +1,2 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["popups"],{"437d":function(t,e,s){"use strict";var a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{class:t.classes},[t.shouldRender?s("div",{staticClass:"popup"},[t._t("default",null,{isVisible:t.isActive&&t.isVisible})],2):t._e()])},i=[],n=s("6e95"),o=s("d257");const r=500;var c=n["a"].extend({name:"popup",props:{name:{type:String,required:!0},isDrawer:{type:Boolean,default:!1},isModal:{type:Boolean,default:!0},isModalSmall:{type:Boolean,default:!1},alwaysRender:{type:Boolean,default:!1}},data:()=>({isVisible:!1}),computed:{isActive(){return this.$store.getters.isPopupWithNameActive(this.name)},shouldRender(){return!!this.alwaysRender||(this.isActive||this.isVisible)},classes(){const t={drawer:this.isDrawer,modal:this.isModal,"modal-small":this.isModalSmall,"js-show":this.isVisible&&this.isActive,"js-hide":!this.isVisible||!this.isActive};return t}},mounted(){this.isActive&&this.onActive()},watch:{isActive(t,e){t!==e&&(t?this.onActive():this.onInactive())}},methods:{async onActive(){await Object(o["c"])(10),this.$nextTick(()=>{this.isVisible=!0})},async onInactive(){await Object(o["c"])(r),this.isVisible=!1}}}),l=c,u=s("2877"),p=Object(u["a"])(l,a,i,!1,null,null,null);e["a"]=p.exports},"59a1":function(t,e,s){"use strict";s.r(e);var a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"dialogs"},[s("EncyclopediaPopup"),s("ResetProgressPopup"),s("BasePopup",{staticClass:"settings modal any",attrs:{name:t.POPUPS.SETTINGS},scopedSlots:t._u([{key:"default",fn:function(t){var e=t.isVisible;return[s("SettingsPopup",{attrs:{"is-visible":e}})]}}])}),s("BasePopup",{staticClass:"modal small",attrs:{name:t.POPUPS.LOGIN}},[t.shouldRenderLogin?s("LoginPopup"):t._e()],1),s("BasePopup",{staticClass:"modal any",attrs:{name:t.POPUPS.SYNC}},[t.shouldRenderSync?s("SyncPopup"):t._e()],1),s("NewsPopup"),s("div",{staticClass:"overlay",class:t.overlayClasses,on:{click:t.hide}})],1)},i=[],n=s("6e95"),o=s("5c57"),r=s("2de2"),c=s("b2eb"),l=s("437d"),u=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("BasePopup",{staticClass:"encyclopedia modal any",attrs:{name:t.name,alwaysRender:!0}},[s("CloseButton"),s("div",{staticClass:"popup-header hide-in-drawer"},[t._v("Encyclopedia")]),s("div",{staticClass:"encyclopedia-container"},[s("iframe",{ref:"iframe",staticClass:"encyclopedia",attrs:{id:t.ENCYCLOPEDIA_ID,title:"Encyclopedia"}})])],1)},p=[],d=s("d257"),h=s("c55c"),v=s("e879"),m=n["a"].extend({name:"encyclopedia-popup",components:{BasePopup:l["a"],CloseButton:v["a"]},computed:{name(){return c["ENCYCLOPEDIA"]},ENCYCLOPEDIA_ID(){return h["a"]},isLibraryRendered(){return this.$store.getters.isLibraryRendered}},mounted(){if(this.isLibraryRendered)this.loadEncyclopedia();else{const t=this.$watch(()=>this.isLibraryRendered,e=>{e&&(this.loadEncyclopedia(),t())})}},methods:{loadEncyclopedia(){"requestIdleCallback"in window?window.requestIdleCallback(this.setUrl,{timeout:300}):Object(d["b"])(this.setUrl)},setUrl(){const t="/encyclopedia/";this.$refs.iframe.src=`${t}#${r["j"]}`}}}),b=m,f=s("2877"),g=Object(f["a"])(b,u,p,!1,null,null,null),y=g.exports,O=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("BasePopup",{staticClass:"modal small",attrs:{name:t.name}},[s("CloseButton",{attrs:{"is-back":!0},on:{click:t.hide}}),s("div",{staticClass:"popup-header"},[t._v("Reset Progress")]),s("div",{staticClass:"content"},[s("div",{staticClass:"group text-center"},[t._v(" Are you sure? ")]),s("div",{staticClass:"button-group"},[s("div",{staticClass:"popup-button",on:{click:t.reset}},[s("div",{staticClass:"label"},[t._v("Reset!")])]),s("div",{staticClass:"popup-button",on:{click:t.hide}},[s("div",{staticClass:"label"},[t._v("Actually... no")])])])])],1)},C=[],w=n["a"].extend({name:"reset-progress-popup",components:{BasePopup:l["a"],CloseButton:v["a"]},computed:{name(){return c["PROGRESS_RESET"]}},methods:{reset(){this.$store.dispatch("resetProgress"),this.$store.dispatch("popupHide",void 0)},hide(){this.$store.dispatch("popupShowNext",{name:c["SETTINGS"]})}}}),P=w,j=Object(f["a"])(P,O,C,!1,null,null,null),_=j.exports,S=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("CloseButton"),s("div",{staticClass:"popup-header"},[t._v(" Settings ")]),s("div",{staticClass:"content"},[s("div",{staticClass:"group audio-controls-container"},[s("div",{staticClass:"audio-controls-switch"},[s("input",{staticClass:"menuCheckbox mute-music",attrs:{id:"mute-music",type:"checkbox"},domProps:{checked:!t.playMusic},on:{change:t.onMuteMusicChange}}),s("label",{attrs:{for:"mute-music"}},[s("div",{staticClass:"switch-button"},[s("div",{staticClass:"label"},[t.playMusic?s("IconMusicOn",{staticClass:"icon"}):s("IconMusicOff",{staticClass:"icon"})],1)]),s("div",{staticClass:"switch-label"},[t._v(" music ")])])]),s("div",{staticClass:"audio-controls-switch"},[s("input",{staticClass:"menuCheckbox mute-sfx",attrs:{id:"mute-sfx",type:"checkbox"},domProps:{checked:!t.playSfx},on:{change:t.onMuteSfxChange}}),s("label",{attrs:{for:"mute-sfx"}},[s("div",{staticClass:"switch-button"},[s("div",{staticClass:"label"},[t.playSfx?s("IconAudioOn",{staticClass:"icon"}):s("IconAudioOff",{staticClass:"icon"})],1)]),s("div",{staticClass:"switch-label"},[t._v(" sounds ")])])])]),s("div",{staticClass:"group"},[s("Button",{on:{click:t.onClearRevert}},[t.workspaceRevertable?s("div",[t._v("revert")]):s("div",[t._v("clean up")])]),t.isLoggedIn?s("Button",{class:t.logoutClasses,on:{click:t.logout}},[t._v(" logout ")]):s("Button",{class:t.disabledClasses,on:{click:t.login}},[t._v(" login ")])],1),s("div",{staticClass:"group"},[s("Button",{attrs:{disabled:!t.areTutorialsFinished},on:{click:t.showResetProgress}},[t._v(" Reset"),s("span",{staticClass:"hide-small"},[t._v(" progress")])]),s("Button",{on:{click:t.contact}},[t._v(" Contact"),s("span",{staticClass:"hide-small"},[t._v(" us")])])],1),s("div",{staticClass:"build-id"},[t._v("build id: "+t._s(t.buildId))])])],1)},x=[],k=s("da33"),E=["class","staticClass","style","staticStyle","attrs"];function A(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),s.push.apply(s,a)}return s}function M(t){for(var e=1;e=0||Object.prototype.propertyIsEnumerable.call(t,s)&&(i[s]=t[s])}return i}function R(t,e){if(null==t)return{};var s,a,i={},n=Object.keys(t);for(a=0;a=0||(i[s]=t[s]);return i}var L={functional:!0,render:function(t,e){var s=e._c,a=(e._v,e.data),i=e.children,n=void 0===i?[]:i,o=a["class"],r=a.staticClass,c=a.style,l=a.staticStyle,u=a.attrs,p=void 0===u?{}:u,d=D(a,E);return s("svg",M({class:[o,r],style:[c,l],attrs:Object.assign({id:"icon-audio-on",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 64"},p)},d),n.concat([s("path",{attrs:{d:"M52 40.1a1.5 1.5 0 01-1.15-2.46A14.37 14.37 0 0052 32a14.13 14.13 0 00-1.18-5.67 1.48 1.48 0 01.2-2.1 1.52 1.52 0 012.13.21C54 25.49 55 28.94 55 32s-1 6.51-1.85 7.56a1.5 1.5 0 01-1.15.54z"}}),s("path",{attrs:{d:"M60 44.5a1.5 1.5 0 01-1.2-2.4C60 40.51 61 35.88 61 32s-1-8.51-2.2-10.1a1.5 1.5 0 012.4-1.8C63 22.52 64 28 64 32s-1 9.48-2.8 11.9a1.5 1.5 0 01-1.2.6z"}}),s("path",{attrs:{d:"M41.5 8.54a4.42 4.42 0 00-4.69.46L23.93 19l-7.22.66a5.15 5.15 0 00-4.71 5.2v14.28a5.15 5.15 0 004.71 5.16l7.22.66L36.81 55A4.45 4.45 0 0044 51.46V12.54a4.42 4.42 0 00-2.5-4zM15 39.14V24.86a2.17 2.17 0 012-2.17l6-.55v19.72l-6-.55a2.17 2.17 0 01-2-2.17zm26 12.32a1.45 1.45 0 01-2.34 1.15L26 42.77V21.23l12.66-9.84A1.45 1.45 0 0141 12.54z"}})]))}},I=["class","staticClass","style","staticStyle","attrs"];function $(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),s.push.apply(s,a)}return s}function z(t){for(var e=1;e=0||Object.prototype.propertyIsEnumerable.call(t,s)&&(i[s]=t[s])}return i}function V(t,e){if(null==t)return{};var s,a,i={},n=Object.keys(t);for(a=0;a=0||(i[s]=t[s]);return i}var H={functional:!0,render:function(t,e){var s=e._c,a=(e._v,e.data),i=e.children,n=void 0===i?[]:i,o=a["class"],r=a.staticClass,c=a.style,l=a.staticStyle,u=a.attrs,p=void 0===u?{}:u,d=N(a,I);return s("svg",z({class:[o,r],style:[c,l],attrs:Object.assign({id:"icon-audio-off",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 64"},p)},d),n.concat([s("path",{attrs:{d:"M3 62.5a1.5 1.5 0 01-1.06-2.56l58-58a1.5 1.5 0 012.12 2.12l-58 58A1.5 1.5 0 013 62.5z"}}),s("path",{attrs:{d:"M41 29.36v22.1a1.45 1.45 0 01-2.34 1.15L26.9 43.47l-2.14 2.13L36.81 55A4.45 4.45 0 0044 51.46v-25.1z"}}),s("path",{attrs:{d:"M16.71 44.3l4.69.43 4.6-4.6v-18.9l12.66-9.84A1.45 1.45 0 0141 12.54v12.58l3-3v-9.58A4.45 4.45 0 0036.81 9L23.93 19l-7.22.66a5.15 5.15 0 00-4.71 5.2v14.28a5.15 5.15 0 004.71 5.16zM15 24.86a2.17 2.17 0 012-2.17l6-.55v19.72l-6-.55a2.17 2.17 0 01-2-2.17z"}})]))}},G=["class","staticClass","style","staticStyle","attrs"];function U(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),s.push.apply(s,a)}return s}function W(t){for(var e=1;e=0||Object.prototype.propertyIsEnumerable.call(t,s)&&(i[s]=t[s])}return i}function F(t,e){if(null==t)return{};var s,a,i={},n=Object.keys(t);for(a=0;a=0||(i[s]=t[s]);return i}var K={functional:!0,render:function(t,e){var s=e._c,a=(e._v,e.data),i=e.children,n=void 0===i?[]:i,o=a["class"],r=a.staticClass,c=a.style,l=a.staticStyle,u=a.attrs,p=void 0===u?{}:u,d=q(a,G);return s("svg",W({class:[o,r],style:[c,l],attrs:Object.assign({id:"icon-music-on",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 64"},p)},d),n.concat([s("path",{attrs:{d:"M8 35.5A1.5 1.5 0 016.5 34v-4a1.5 1.5 0 013 0v4A1.5 1.5 0 018 35.5z"}}),s("path",{attrs:{d:"M14 40a1.5 1.5 0 01-1.5-1.5v-13a1.5 1.5 0 013 0v13A1.5 1.5 0 0114 40z"}}),s("path",{attrs:{d:"M20 48.5a1.5 1.5 0 01-1.5-1.5V17a1.5 1.5 0 013 0v30a1.5 1.5 0 01-1.5 1.5z"}}),s("path",{attrs:{d:"M26 43a1.5 1.5 0 01-1.5-1.5v-19a1.5 1.5 0 013 0v19A1.5 1.5 0 0126 43z"}}),s("path",{attrs:{d:"M32 45.5a1.5 1.5 0 01-1.5-1.5V20a1.5 1.5 0 013 0v24a1.5 1.5 0 01-1.5 1.5z"}}),s("path",{attrs:{d:"M38 36.5a1.5 1.5 0 01-1.5-1.5v-6a1.5 1.5 0 013 0v6a1.5 1.5 0 01-1.5 1.5z"}}),s("path",{attrs:{d:"M44 40.5a1.5 1.5 0 01-1.5-1.5V25a1.5 1.5 0 013 0v14a1.5 1.5 0 01-1.5 1.5z"}}),s("path",{attrs:{d:"M50 43a1.5 1.5 0 01-1.5-1.5v-19a1.5 1.5 0 013 0v19A1.5 1.5 0 0150 43z"}}),s("path",{attrs:{d:"M56 35a1.5 1.5 0 01-1.5-1.5v-3a1.5 1.5 0 013 0v3A1.5 1.5 0 0156 35z"}})]))}},J=["class","staticClass","style","staticStyle","attrs"];function Q(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),s.push.apply(s,a)}return s}function X(t){for(var e=1;e=0||Object.prototype.propertyIsEnumerable.call(t,s)&&(i[s]=t[s])}return i}function et(t,e){if(null==t)return{};var s,a,i={},n=Object.keys(t);for(a=0;a=0||(i[s]=t[s]);return i}var st={functional:!0,render:function(t,e){var s=e._c,a=(e._v,e.data),i=e.children,n=void 0===i?[]:i,o=a["class"],r=a.staticClass,c=a.style,l=a.staticStyle,u=a.attrs,p=void 0===u?{}:u,d=tt(a,J);return s("svg",X({class:[o,r],style:[c,l],attrs:Object.assign({id:"icon-music-off",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 64"},p)},d),n.concat([s("path",{attrs:{d:"M8 35a1.5 1.5 0 01-1.5-1.5v-3a1.5 1.5 0 013 0v3A1.5 1.5 0 018 35z"}}),s("path",{attrs:{d:"M14 37.5a1.5 1.5 0 01-1.5-1.5v-8a1.5 1.5 0 013 0v8a1.5 1.5 0 01-1.5 1.5z"}}),s("path",{attrs:{d:"M20 40.5a1.5 1.5 0 01-1.5-1.5V25a1.5 1.5 0 013 0v14a1.5 1.5 0 01-1.5 1.5z"}}),s("path",{attrs:{d:"M26 38a1.5 1.5 0 01-1.5-1.5v-9a1.5 1.5 0 013 0v9A1.5 1.5 0 0126 38z"}}),s("path",{attrs:{d:"M44 37a1.5 1.5 0 01-1.5-1.5v-7a1.5 1.5 0 013 0v7A1.5 1.5 0 0144 37z"}}),s("path",{attrs:{d:"M50 39a1.5 1.5 0 01-1.5-1.5v-11a1.5 1.5 0 013 0v11A1.5 1.5 0 0150 39z"}}),s("path",{attrs:{d:"M56 35a1.5 1.5 0 01-1.5-1.5v-3a1.5 1.5 0 013 0v3A1.5 1.5 0 0156 35z"}}),s("path",{attrs:{d:"M3 62.5a1.5 1.5 0 01-1.06-2.56l58-58a1.5 1.5 0 012.12 2.12l-58 58A1.5 1.5 0 013 62.5z"}}),s("path",{attrs:{d:"M36.5 33.86V34a1.5 1.5 0 003 0v-3.14z"}}),s("path",{attrs:{d:"M30.88 39.49a1.49 1.49 0 002.62-1v-1.63z"}}),s("path",{attrs:{d:"M33.5 32.62V25.5a1.5 1.5 0 00-3 0v10.12z"}})]))}},at=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",t._g({staticClass:"popup-button"},t.$listeners),[s("div",{staticClass:"label"},[t._t("default")],2)])},it=[],nt=n["a"].extend({name:"popup-common-button"}),ot=nt,rt=Object(f["a"])(ot,at,it,!1,null,null,null),ct=rt.exports,lt=n["a"].extend({name:"settings-popup",components:{BasePopup:l["a"],CloseButton:v["a"],Button:ct,IconAudioOn:L,IconAudioOff:H,IconMusicOn:K,IconMusicOff:st},props:{isVisible:{type:Boolean,default:!1}},computed:{...Object(o["b"])(["isAudioEnabled","isLoggedIn","playMusic","playSfx","online","workspaceRevertable","areTutorialsFinished","canLogout"]),name(){return c["SETTINGS"]},disabledClasses(){return{"js-disabled":!this.online}},logoutClasses(){return{"js-disabled":!this.canLogout}},buildId(){return window.__COMMIT_HASH()}},beforeDestroy(){this.handleGameClass(!1)},watch:{async isVisible(t,e){t!==e&&this.handleGameClass(t)}},methods:{onMuteMusicChange({target:{checked:t}}){const e=!t;this.$store.dispatch("settingsMusic",e)},onMuteSfxChange({target:{checked:t}}){const e=!t;this.$store.dispatch("settingsSfx",e)},onClearRevert(){this.$store.dispatch("workspaceClearRevertStart")},showResetProgress(){this.areTutorialsFinished&&this.$store.dispatch("popupShowNext",{name:c["PROGRESS_RESET"]})},login(){this.online&&this.$store.dispatch("popupShowNext",{name:c["LOGIN"]})},logout(){this.canLogout&&k["a"].logout()},contact(){window.open(r["d"],"_blank")},hide(){this.$store.dispatch("popupHide",void 0)},handleGameClass(t){const e="js-settings-shown",s=t?"add":"remove",a=document.getElementById("js-game");a&&a.classList[s](e)}}}),ut=lt,pt=Object(f["a"])(ut,S,x,!1,null,null,null),dt=pt.exports,ht=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("div",{staticClass:"popup-header"},[t._v(" Progress Conflict ")]),s("div",{staticClass:"content"},[t._m(0),s("div",{staticClass:"popup-2-buttons-sync"},[s("div",{staticClass:"group"},[s("div",{staticClass:"bold"},[t._v("Keep the local save ("+t._s(t.isLocalNewer?"newer":"older")+")")]),s("div",{staticClass:"collapse-to-inline"},[t._v(t._s(t.localCount)+" items,")]),s("div",{staticClass:"collapse-to-inline"},[t._v("saved "+t._s(t.formatSince(t.lastLocal)))]),s("Button",{on:{click:t.local}},[t._v(" local ")])],1),s("div",{staticClass:"group"},[s("div",{staticClass:"bold"},[t._v("Keep the cloud save ("+t._s(t.isRemoteNewer?"newer":"older")+")")]),s("div",{staticClass:"collapse-to-inline"},[t._v(t._s(t.remoteCountTotal)+" items,")]),s("div",{staticClass:"collapse-to-inline"},[t._v("saved "+t._s(t.formatSince(t.syncData.timestamp)))]),s("Button",{on:{click:t.remote}},[t._v(" cloud ")])],1)]),s("div",{staticClass:"group"},[s("div",{staticClass:"bold text-center"},[t._v(" Keep all progress from both saves ")]),s("Button",{on:{click:t.merge}},[t._v(" merge ")])],1)])])},vt=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"group text-center"},[s("div",[t._v("Local and cloud progress contain conflicting information. Sometimes it can happen if you reset your game.")])])}],mt=s("f2ce"),bt=n["a"].extend({name:"sync-popup",components:{BasePopup:l["a"],Button:ct},data:()=>({isHiding:!1}),computed:{...Object(o["b"])(["isPopupWithNameActive","history","historyLastTimestamp","resetTimestamp","popupData","base","prime","totalProgress"]),name(){return c["SYNC"]},isActive(){return this.isPopupWithNameActive(this.name)||this.isHiding},lastLocal(){return this.history.length?this.historyLastTimestamp:this.resetTimestamp},localCount(){return this.totalProgress-this.base.length},showCaution(){return-1!==this.resetTimestamp||this.syncData.reseted},isRemoteNewer(){return this.syncData.timestamp>this.lastLocal},isLocalNewer(){return!this.isRemoteNewer},syncData(){const t=this.popupData;return t||{timestamp:Date.now(),reseted:!1,count:0}},remoteCountTotal(){return this.syncData.count+this.prime.length}},methods:{formatSince(t){return t<=0?"":Object(d["i"])(t)},local(){this.syncData.onSuccess&&this.syncData.onSuccess(mt["a"].LOCAL),this.hide()},merge(){this.syncData.onSuccess&&this.syncData.onSuccess(mt["a"].MERGE),this.hide()},remote(){this.syncData.onSuccess&&this.syncData.onSuccess(mt["a"].REMOTE),this.hide()},hide(){this.isHiding=!0,this.$store.dispatch("popupHide",void 0),window.setTimeout(()=>{this.isHiding=!1},c["HIDE_DURATION"])}}}),ft=bt,gt=Object(f["a"])(ft,ht,vt,!1,null,null,null),yt=gt.exports,Ot=function(){var t=this,e=t.$createElement,s=t._self._c||e;return t.shouldShow?s("BasePopup",{staticClass:"modal small",attrs:{name:t.name}},[s("CloseButton"),s("div",{staticClass:"popup-header"},[t._v(t._s(t.title))]),s("div",{staticClass:"content"},["url"===t.action.type?s("a",{attrs:{href:t.actionData,target:"_blank"},on:{click:t.onActionClick}},[s("div",{staticClass:"news-image"},[s("img",{attrs:{src:t.img}})])]):s("div",{staticClass:"news-image"},[s("img",{attrs:{src:t.img},on:{click:t.onActionClick}})]),s("div",{staticClass:"group text-center",domProps:{innerHTML:t._s(t.text)}}),t.action?s("div",[s("Button",{on:{click:t.onActionClick}},[t._v(" "+t._s(t.actionText)+" ")])],1):t._e()])],1):t._e()},Ct=[],wt=s("1663"),Pt=n["a"].extend({name:"news-popup",components:{BasePopup:l["a"],CloseButton:v["a"],Button:ct},computed:{name(){return c["NEWS"]},news(){return this.$store.getters.popupData||{}},isActive(){return this.$store.getters.isPopupWithNameActive(this.name)},shouldShow(){return!!this.title.length&&!!this.text.length},title(){return this.news.title||""},text(){return this.news.text||""},img(){return this.news.img||""},action(){return this.news.action||null},actionData(){return this.action?this.action.data:""},actionText(){return this.action?this.action.text:""}},methods:{onActionClick(){if(!this.action)return;const{type:t}=this.action;"url"===t&&window.open(this.actionData,"_blank"),"event"===t&&wt["a"].emit(this.actionData,this.action.data||{}),this.hide()},hide(){this.$store.dispatch("popupHide",void 0)}}}),jt=Pt,_t=Object(f["a"])(jt,Ot,Ct,!1,null,null,null),St=_t.exports,xt=n["a"].extend({name:"popups",components:{BasePopup:l["a"],EncyclopediaPopup:y,ResetProgressPopup:_,SettingsPopup:dt,SyncPopup:yt,NewsPopup:St,LoginPopup:()=>s.e("login").then(s.bind(null,"a167"))},computed:{...Object(o["b"])(["isPopupClosable","isPopupOverlayActive","isPlaying","isLoggedIn"]),overlayClasses(){return{"js-active":this.isPopupOverlayActive}},shouldRenderLogin(){return r["h"]||this.isPlaying&&this.isPopupOverlayActive},shouldRenderSync(){return r["h"]||this.isLoggedIn},POPUPS(){return c}},methods:{hide(){this.isPopupClosable&&this.$store.dispatch("popupHide",void 0)}}}),kt=xt,Et=Object(f["a"])(kt,a,i,!1,null,null,null);e["default"]=Et.exports},a11e:function(t,e,s){t.exports=s.p+"img/back.3e60f39c.svg"},da33:function(t,e,s){"use strict";var a=s("6eeb");class i{login(t){return a["a"].auth.login(t)}logout(){return a["a"].auth.logout()}mailLogin(t){return a["a"].auth.mail.login(t)}mailSignup(t){return a["a"].auth.mail.signup(t)}mailReset(t){return a["a"].auth.mail.sendResetEmail(t)}async mailCheckProviders(t){const e=await a["a"].auth.mail.checkProviders(t);return"google.com"===e?(this.login("google"),null):"facebook.com"===e?(this.login("facebook"),null):e}}e["a"]=new i},e879:function(t,e,s){"use strict";var a=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"close border",on:{click:t.onClick}},[t.isBack?a("img",{staticClass:"label",attrs:{src:s("a11e"),alt:"back"}}):a("img",{staticClass:"label",attrs:{src:s("2260"),alt:"close"}})])},i=[],n=s("6e95"),o=n["a"].extend({name:"popup-close-button",props:{isBack:{type:Boolean,required:!1,default:!1}},methods:{onClick(){this.$emit("click"),this.isBack||this.$store.dispatch("popupHide",void 0)}}}),r=o,c=s("2877"),l=Object(c["a"])(r,a,i,!1,null,null,null);e["a"]=l.exports},f2ce:function(t,e,s){"use strict";var a;s.d(e,"a",(function(){return a})),function(t){t["MERGE"]="merge",t["LOCAL"]="local",t["REMOTE"]="remote"}(a||(a={}));a.MERGE}}]); +//# sourceMappingURL=popups.7ff1f250.js.map \ No newline at end of file diff --git a/semag/al2/js/tags.2b188878.js b/semag/al2/js/tags.2b188878.js new file mode 100644 index 00000000..8d2250e2 --- /dev/null +++ b/semag/al2/js/tags.2b188878.js @@ -0,0 +1,2 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["tags"],{b9f0:function(e,n){e.exports=JSON.parse('[{"id":"1","name":"People","elements":["48","51","60","71","96","105","106","118","121","157","158","162","174","178","184","186","196","204","207","211","222","232","241","243","244","251","283","302","311","338","339","349","350","364","371","388","422","444","452","470","472","494","495","505","524","529","577","587","657","658","673","676","685","706","716","735","743","744","753","756","1_84","1_93","1_98","876","881","886","895"]},{"id":"2","name":"Animals","elements":["73","74","76","140","165","169","181","198","219","224","226","231","238","242","243","264","265","283","285","289","303","310","335","340","350","372","381","408","410","418","419","420","423","468","472","481","509","531","554","560","561","565","583","669","727","738"]},{"id":"3","name":"Pressure","elements":["5","7","8","17","20","21","38","54"]},{"id":"4","name":"Weapons","elements":["39","55","57","94","149","164","168","193","240","288","379","391","405","435","443","486","487","515","665","666","679","1_46","1_54","1_92"]},{"id":"5","name":"Plants","elements":["24","42","58","70","75","80","84","88","102","103","109","116","124","154","187","188","192","261","352","367","401","415","416","431","457","458","467","559","562","567","571","641","642","670","745"]},{"id":"8","name":"Temperature","elements":["2","5","6","8","11","21","26","63","143","148","171","213","379","397","436","630","631"]},{"id":"9","name":"Tools","elements":["33","53","57","81","82","115","119","120","128","133","135","138","139","161","185","189","205","206","208","212","221","233","236","258","288","315","316","333","336","337","353","359","362","366","369","398","402","404","430","438","441","445","448","455","459","466","477","478","488","490","493","501","506","510","522","537","539","544","552","564","568","572","578","579","582","585","590","592","648","663","675","678","686","718","719","720","721","722","734","747","750","751","880","882","883","884"]},{"id":"10","name":"Vehicles","elements":["61","62","83","100","113","153","175","205","206","249","334","345","346","373","380","383","386","391","403","411","421","425","439","480","491","499","503","508","525","528","748","878","882","888"]},{"id":"11","name":"Protection","elements":["161","178","282","391","489","588","595","723","879"]},{"id":"12","name":"Weather","elements":["13","15","16","20","23","110","111","134","144","152","171","191","194","214","253","632","640"]},{"id":"13","name":"Space","elements":["22","79","108","126","129","163","177","228","248","291","305","308","309","341","392","440","474","499","530","573","609","650","651","652","677"]},{"id":"14","name":"Machine","elements":["54","179","216","230","249","338","406","429","556","574","586","656","688","890","891","892"]},{"id":"15","name":"Geology","elements":["3","6","8","9","10","12","17","18","19","21","27","28","31","43","58","101","107","131","160","183","190","201","202","224","248","266","268","308","347","395","523","548","573","580","581","610","611","617","618","619","620","621","622","623","624","627","682","700","713"]},{"id":"16","name":"Air","elements":["4","15","22","23","92","317","355","363","393","517","591","596","629"]},{"id":"17","name":"Construction","elements":["35","51","72","132","146","151","167","170","199","213","218","247","282","284","286","287","301","318","320","344","345","356","357","365","376","400","424","434","455","463","470","474","476","482","496","497","507","527","536","538","571","584","694","696","698","701","704","705","709","711"]},{"id":"18","name":"Birds","elements":["46","47","150","173","179","182","255","269","332","382","396","414","417","426","437","485","513","549","550"]},{"id":"19","name":"Water","elements":["1","5","9","10","13","15","17","112","131","152","190","203","266","268","360","399","511","516","548","610","611","732","1_39"]},{"id":"20","name":"Forces","elements":["11","19","23","26","114","130","239","600","672"]},{"id":"21","name":"Entropy","elements":["14","37","497"]},{"id":"22","name":"Electricity","elements":["16","114","123","406","644","686"]},{"id":"23","name":"Events","elements":["8","19","21","23","26","110","111","134","190","214","252","309","347","386","413","566","640","644"]},{"id":"24","name":"Minerals","elements":["25","29","30","32","37","152","176","387","475","625","646"]},{"id":"25","name":"Containers","elements":["34","35","38","52","97","98","99","260","261","284","314","342","378","407","463","568","588","594","671","683","684","690","691","693","694","695","697","699","702","703","707","708","710","712","723","726","887","894"]},{"id":"26","name":"Materials","elements":["36","40","50","56","85","86","119","172","208","263","270","328","348","351","355","361","363","397","431","432","433","453","465","479","510","517","519","551","570","590","597","682","689"]},{"id":"28","name":"Biology","elements":["45","49","64","142","145","155","166","526","563","617","626","641","642","643","667","713"]},{"id":"29","name":"Legends","elements":["47","51","96","104","118","158","180","211","219","226","240","241","243","244","259","283","339","341","349","350","371","386","388","400","422","435","438","452","456","470","472","491","513","520","531","532","534","535","547","554","558","565","569","577","587","672","1_62"]},{"id":"30","name":"Food","elements":["65","66","78","85","86","87","88","89","90","91","93","125","147","195","200","217","220","229","237","261","263","267","290","313","322","328","354","374","394","409","413","436","442","447","450","457","458","464","479","483","484","492","498","512","535","536","538","540","541","543","545","553","555","557","562","664","680","714","715","724","728","729","742","752","757","1_4"]},{"id":"31","name":"Fish","elements":["68","123","223","227","234","250","339","384","385","390"]},{"id":"32","name":"Death","elements":["95","96","97","98","99","136","224","244","270","388","453","456","645","1_3","1_41"]},{"id":"33","name":"Place","elements":["18","43","70","98","99","107","136","159","192","197","215","257","331","360","428","496","516","608","639","681","692","698","700","732","746","1_34","1_35","1_81","885","889","893"]},{"id":"34","name":"Light","elements":["110","115","122","134","189","301","306","312","315","398","466","551","566","674","675"]},{"id":"35","name":"Time","elements":["33","41","117","126","127","133","137","179","333","353","389","404","668"]},{"id":"36","name":"Information","elements":["136","230","233","252","259","260","304","314","342","345","428","446","520","524","540","542","591","649","736","890","891","892"]},{"id":"37","name":"Furniture","elements":["34","116","117","132","179","306","307","320","362","368","369","493","521","690"]},{"id":"38","name":"Decorations","elements":["34","136","312","317","318","375","377","393","415","416","451","459","460","471","473","476","482","501","514","519","567","569","589","596","687"]},{"id":"39","name":"Valuables","elements":["31","225","351","389","407","521","532"]},{"id":"40","name":"States","elements":["599","601","602","607","633","647"]},{"id":"41","name":"Insects","elements":["370","454","461","462","518","593"]},{"id":"42","name":"Drinks","elements":["77","203","235","254","256","262","327","412","427","502","546","575"]},{"id":"43","name":"Reptiles","elements":["67","69","104","141","156","180","504","513","534","547"]},{"id":"44","name":"Monsters","elements":["1_5","1_8","1_14","1_21","1_23","1_25","1_27","1_29","1_32","1_33","1_36","1_40","1_42","1_43","1_47","1_50","1_53","1_55","1_58","1_59","1_68","1_69","1_75","1_79","1_80","1_82","1_83","1_86","1_87","1_90","1_99","1_100","1_106"]},{"id":"45","name":"Deities","elements":["1_2","1_7","1_10","1_11","1_13","1_19","1_26","1_37","1_44","1_51","1_57","1_65","1_66","1_72","1_74","1_78","1_89","1_107","1_110"]}]')}}]); +//# sourceMappingURL=tags.2b188878.js.map \ No newline at end of file diff --git a/semag/al2/js/tutorials.a8e0f146.js b/semag/al2/js/tutorials.a8e0f146.js new file mode 100644 index 00000000..0cc5809b --- /dev/null +++ b/semag/al2/js/tutorials.a8e0f146.js @@ -0,0 +1,2 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["tutorials"],{"735f":function(t,s,i){"use strict";i.r(s);var a=function(){var t=this,s=t.$createElement,i=t._self._c||s;return t.areTutorialsFinished?t._e():i("div",{staticClass:"tutorials",class:t.wrapperClasses},[i("div",{directives:[{name:"animation-end",rawName:"v-animation-end",value:t.restart,expression:"restart"}],ref:"window",staticClass:"tutorial-window",class:t.classes},[t._m(0),t._m(1),t._m(2),i("div",{staticClass:"cursor"},[i("div",{staticClass:"y-offset"},[i("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 600 600"}},[i("polygon",{attrs:{points:"594 7 191.82 424.92 430.04 412.82 592.99 587 594 7"}})])])]),i("div",{staticClass:"hand"},[i("div",{staticClass:"y-offset"},[i("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 600 600"}},[i("path",{staticClass:"hand-background",attrs:{d:"M553.13 0a46.88 46.88 0 0 0-46.88 46.88v318.75a46.88 46.88 0 1 0-93.75 0v18.75a46.88 46.88 0 1 0-93.75 0v37.5a46.88 46.88 0 1 0-93.75 0V525a75 75 0 0 0 75 75h225a75 75 0 0 0 75-75V46.88A46.88 46.88 0 0 0 553.13 0z"}}),i("rect",{attrs:{x:"515.63",y:"9.38",width:"75",height:"84.38",rx:"35.16"}}),i("path",{staticClass:"hand-lines",attrs:{d:"M591.88 226.56c0-13.47-15.75-24.38-35.16-24.38H552c-19.41 0-35.16 10.91-35.16 24.38M516.88 251.4c0 13.46 15.75 24.38 35.16 24.38h4.68c19.41 0 35.16-10.92 35.16-24.38"}}),i("path",{staticClass:"hand-lines",attrs:{d:"M571.26 233.4c0-4.14-7.09-7.5-15.83-7.5h-2.12c-8.73 0-15.82 3.36-15.82 7.5M537.51 248c0 4.15 7.08 7.5 15.82 7.5h2.12c8.74 0 15.83-3.35 15.83-7.5"}})])])])])])},e=[function(){var t=this,s=t.$createElement,i=t._self._c||s;return i("div",{staticClass:"icon-container"},[i("div",{staticClass:"y-offset"},[i("div",{staticClass:"icon"})])])},function(){var t=this,s=t.$createElement,i=t._self._c||s;return i("div",{staticClass:"icon-container"},[i("div",{staticClass:"y-offset"},[i("div",{staticClass:"icon"})])])},function(){var t=this,s=t.$createElement,i=t._self._c||s;return i("div",{staticClass:"click-container"},[i("div",{staticClass:"y-offset"},[i("div",{staticClass:"click"},[i("div"),i("div"),i("div"),i("div"),i("div"),i("div")])])])}],c=i("6e95"),r=i("d257"),n=i("5c57"),l=i("85eb");const o="timer";var d=c["a"].extend({name:"tutorials",data:()=>({isTouch:!1,last:null}),computed:{...Object(n["b"])(["tutorial","isTutorialActive","areTutorialsFinished"]),isIntroActive(){return this.isTutorialActive(l["a"].Intro)},isMixActive(){return this.isTutorialActive(l["a"].Mix)},isGuideActive(){return this.isTutorialActive(l["a"].Guide)},classes(){return{"js-touch":this.isTouch,"step-intro":this.isIntroActive||this.last===l["a"].Intro,"step-mix":this.isMixActive||this.last===l["a"].Mix,"step-guide":this.isGuideActive||this.last===l["a"].Guide}},wrapperClasses(){return{"js-active":null!==this.tutorial}}},created(){this.detectInputMethod()},watch:{tutorial:"reload"},methods:{detectInputMethod(){const t=()=>{this.isTouch=!0,document.removeEventListener("touchstart",t)};document.addEventListener("touchstart",t)},reload(t,s){null!==s&&(this.last=s),Object(r["v"])(this.$el,()=>{this.last=null})},restart(t=null){(null===t||t.animationName.includes(o))&&Object(r["y"])(this.$refs.window)}}}),u=d,v=i("2877"),h=Object(v["a"])(u,a,e,!1,null,null,null);s["default"]=h.exports}}]); +//# sourceMappingURL=tutorials.a8e0f146.js.map \ No newline at end of file