text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7c6a977a"],{"11b2":function(t,e,s){"use strict";var a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("div",{ref:"slotWrapper"},[t._t("default")],2)])},n=[],i={name:"relocator",props:{container:{default:"body"}},computed:{containerElem:function(){return"string"===typeof this.container?document.querySelector(this.container):this.container}},mounted:function(){var t=this;if(this.containerElem){var e=this.$refs.slotWrapper;e.parentNode.removeChild(e),this.containerElem.appendChild(e),this.$once("hook:beforeDestroy",(function(){e&&(e.parentNode.removeChild(e),t.$el.appendChild(e))}))}}},o=i,r=s("2877"),l=Object(r["a"])(o,a,n,!1,null,null,null);e["a"]=l.exports},3905:function(t,e,s){"use strict";var a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{ref:"popupContainer",staticClass:"popup",class:{active:t.isActive,"is-closing":t.isClosing},attrs:{tabindex:"-1"},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])?null:e.target!==e.currentTarget?null:void(!t.closeOnEsc||t.close())}}},[s("div",{staticClass:"popup-overlay",on:{click:function(e){e.preventDefault(),!t.closeOnOverlay||t.close()}}}),s("div",{staticClass:"popup-panel"},[t.closeBtn?s("span",{staticClass:"popup-close-handle popup-close",on:{click:function(e){return e.preventDefault(),t.close()}}}):t._e(),s("div",{staticClass:"popup-header"},[t._t("header")],2),s("div",{staticClass:"popup-content"},[t._t("content")],2),s("div",{staticClass:"popup-footer"},[t._t("footer")],2)])])},n=[],i={name:"popup",props:{closeOnEsc:{type:Boolean,default:!0},closeOnOverlay:{type:Boolean,default:!0},closeBtn:{type:Boolean,default:!0}},data:function(){return{isActive:!1,isClosing:!1}},methods:{open:function(){var t=this;this.isActive=!0,this.isClosing=!1,this.$nextTick((function(){t.$refs.popupContainer.focus()})),document.body.classList.add("popup-active"),this.$nextTick((function(){var e=t.$el.querySelector("form input");e&&e.focus()}))},close:function(){var t=this;this.isActive&&(this.isClosing=!0,document.body.classList.remove("popup-active"),this.closingTimeoutId&&clearTimeout(this.closingTimeoutId),this.closingTimeoutId=setTimeout((function(){t.isActive=!1,t.isClosing=!1}),300))}}},o=i,r=s("2877"),l=Object(r["a"])(o,a,n,!1,null,null,null);e["a"]=l.exports},"438c":function(t,e,s){"use strict";var a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("footer",{staticClass:"app-footer"},[s("div",{staticClass:"info"},[s("a",{staticClass:"info-item",attrs:{href:t.$getAppConfig("VUE_APP_RELEASES_URL"),target:"_blank",rel:"noopener"}},[s("span",{staticClass:"txt"},[t._v("Presentator v2.4.0")])]),s("a",{staticClass:"info-item",attrs:{href:t.$getAppConfig("VUE_APP_REPO_URL"),target:"_blank",rel:"noopener"}},[s("i",{staticClass:"fe fe-github"}),s("span",{staticClass:"txt"},[t._v("Github")])]),t.loggedUser&&t.loggedUser.id?s("div",{staticClass:"info-item handle",on:{click:function(e){return e.preventDefault(),t.openFeedbackPopup()}}},[s("i",{staticClass:"fe fe-life-buoy"}),s("span",{staticClass:"txt"},[t._v(t._s(t.$t("Send feedback")))])]):t._e(),s("div",{staticClass:"info-item"},[s("languages-select")],1)]),!(t.$getAppConfig("VUE_APP_SHOW_CREDITS")<<0)?t._e():s("div",{staticClass:"credits"},[s("i18n",{attrs:{path:"Crafted by {author}"}},[s("a",{attrs:{slot:"author",href:"https://gani.bg",target:"_blank",rel:"noopener"},slot:"author"},[t._v("Gani")])])],1),s("relocator",[s("feedback-popup",{ref:"feedbackPopup"})],1)],1)},n=[],i=(s("8e6e"),s("ac6a"),s("456d"),s("bd86")),o=s("2f62"),r=s("11b2"),l=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("form",{on:{submit:function(e){return e.preventDefault(),t.submitForm()}}},[s("popup",{ref:"popup",staticClass:"popup-sm",scopedSlots:t._u([{key:"header",fn:function(){return[s("h4",{staticClass:"title"},[t._v(t._s(t.$t("Help us improve Presentator")))])]},proxy:!0},{key:"content",fn:function(){return[s("div",{staticClass:"alert alert-light-border txt-center m-b-small"},[s("p",[t._v("\n                    "+t._s(t.$t("Found a bug or have a feature request?"))+" "),s("br"),s("i18n",{attrs:{path:"Fill the form below OR {issuesLink}."}},[s("a",{attrs:{slot:"issuesLink",href:t.$getAppConfig("VUE_APP_ISSUES_URL"),target:"_blank",rel:"noopener"},slot:"issuesLink"},[t._v(t._s(t.$t("create a GitHub issue")))])])],1)]),s("form-field",{staticClass:"required",attrs:{name:"message"}},[s("label",{attrs:{for:"feedback_message"}},[t._v(t._s(t.$t("Message")))]),s("textarea",{directives:[{name:"model",rawName:"v-model.trim",value:t.message,expression:"message",modifiers:{trim:!0}}],attrs:{id:"feedback_message",required:""},domProps:{value:t.message},on:{input:function(e){e.target.composing||(t.message=e.target.value.trim())},blur:function(e){return t.$forceUpdate()}}})])]},proxy:!0},{key:"footer",fn:function(){return[s("button",{staticClass:"btn btn-light-border",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.close()}}},[s("span",{staticClass:"txt"},[t._v(t._s(t.$t("Cancel")))])]),s("button",{staticClass:"btn btn-primary btn-cons btn-loader",class:{"btn-loader-active":t.isProcessing},attrs:{type:"submit"}},[s("span",{staticClass:"txt"},[t._v(t._s(t.$t("Send feedback")))])])]},proxy:!0}])})],1)},c=[],u=s("f744"),p=s("3905"),d={name:"feedback-popup",components:{popup:p["a"]},data:function(){return{isProcessing:!1,message:""}},methods:{open:function(){this.resetForm(),this.$refs.popup.open(),this.$emit("open")},close:function(){this.$refs.popup.close(),this.$emit("close")},resetForm:function(){this.message=""},submitForm:function(){var t=this;this.isProcessing||(this.isProcessing=!0,u["a"].Users.sendFeedback(this.message).then((function(e){t.$toast(t.$t("Thank you for the feedback!")),t.close(),t.resetForm()})).catch((function(e){t.$errResponseHandler(e)})).finally((function(){t.isProcessing=!1})))}}},f=d,g=s("2877"),m=Object(g["a"])(f,l,c,!1,null,null,null),h=m.exports,v=s("f7ef");function b(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 _(t){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?b(s,!0).forEach((function(e){Object(i["a"])(t,e,s[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):b(s).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))}))}return t}var C={name:"app-footer",components:{relocator:r["a"],"feedback-popup":h,"languages-select":v["a"]},computed:_({},Object(o["d"])({loggedUser:function(t){return t.user.user}})),methods:{openFeedbackPopup:function(){this.$refs.feedbackPopup&&this.$refs.feedbackPopup.open()}}},y=C,k=Object(g["a"])(y,a,n,!1,null,null,null);e["a"]=k.exports},5401:function(t,e,s){"use strict";var a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return!t.isLoadingClients&&t.clientsList.length?s("div",{staticClass:"auth-clients-bar"},[t.heading?s("div",{staticClass:"heading"},[t._v(t._s(t.heading))]):t._e(),s("div",{staticClass:"auth-clients-list"},t._l(t.clientsList,(function(e){return s("div",{directives:[{name:"tooltip",rawName:"v-tooltip.bottom",value:e.title,expression:"client.title",modifiers:{bottom:!0}}],staticClass:"auth-client",class:e.name,attrs:{tabindex:"0"},on:{keydown:function(s){return!s.type.indexOf("key")&&t._k(s.keyCode,"enter",13,s.key,"Enter")?null:(s.preventDefault(),t.openClientPopup(e))},click:function(s){return s.preventDefault(),t.openClientPopup(e)}}})})),0)]):t._e()},n=[],i=(s("7f7f"),s("0abc")),o=s("3d48"),r=s("dd93"),l=s("f744"),c=s("d225"),u=s("b0b4"),p=s("308d"),d=s("6bb5"),f=s("2a88"),g=s("4e2b"),m=s("9242"),h=function(t){function e(){return Object(c["a"])(this,e),Object(p["a"])(this,Object(d["a"])(e).apply(this,arguments))}return Object(g["a"])(e,t),Object(u["a"])(e,[{key:"load",value:function(t){t=t||{},Object(f["a"])(Object(d["a"])(e.prototype),"load",this).call(this,t),this.name=r["a"].isEmpty(t.name)?"":t.name,this.title=r["a"].isEmpty(t.title)?"":t.title,this.state=r["a"].isEmpty(t.state)?"":t.state,this.authUrl=r["a"].isEmpty(t.authUrl)?"":t.authUrl}}]),e}(m["a"]),v={name:"auth-clients-bar",props:{heading:{type:String}},data:function(){return{isLoadingClients:!1,clientsList:[]}},mounted:function(){this.loadClients()},methods:{loadClients:function(){var t=this;this.isLoadingClients||(this.isLoadingClients=!0,l["a"].Users.getAuthClients().then((function(e){t.clientsList=h.createInstances(e.data)})).catch((function(t){})).finally((function(){t.isLoadingClients=!1})))},openClientPopup:function(t){o["a"].setItem(i["a"].get("VUE_APP_AUTH_CLIENT_NAME_STORAGE_KEY"),t.name),o["a"].setItem(i["a"].get("VUE_APP_AUTH_CLIENT_STATE_STORAGE_KEY"),t.state),r["a"].openInWindow(t.authUrl)}}},b=v,_=s("2877"),C=Object(_["a"])(b,a,n,!1,null,null,null);e["a"]=C.exports},"81fb":function(t,e,s){t.exports=s.p+"spa-resources/img/logogram.a11cb759.svg"},dbb6:function(t,e,s){"use strict";var a=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("header",{staticClass:"app-logo-wrapper"},[a("router-link",{staticClass:"app-logo",attrs:{to:{name:"home"}}},[a("img",{staticClass:"img",attrs:{src:s("81fb"),alt:"Presentator logo",width:"44"}}),a("span",{staticClass:"txt"},[t._v("Presentator")])])],1)},n=[],i={name:"app-header"},o=i,r=s("2877"),l=Object(r["a"])(o,a,n,!1,null,null,null);e["a"]=l.exports},e0c2: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:"auth-container"},[s("div",{staticClass:"flex-fill-block"}),s("div",{staticClass:"container-wrapper container-wrapper-sm"},[s("app-header"),s("div",{staticClass:"clearfix m-b-large"}),s("div",{staticClass:"panel auth-panel"},[s("h3",{staticClass:"panel-title"},[t._v(t._s(t.$t("Sign up")))]),t.registerSuccess?s("div",{staticClass:"panel-content"},[s("div",{staticClass:"alert alert-transp-primary txt-center"},[s("p",[t._v("\n                        "+t._s(t.$t("Check your email to finish signing up."))),s("br"),t._v("\n                        "+t._s(t.$t("We sent a signup link to you at:"))),s("br"),s("strong",[t._v(t._s(t.email))])])])]):s("div",{staticClass:"panel-content"},[s("form",{staticClass:"register-form disabled",on:{submit:function(e){return e.preventDefault(),t.onSubmit(e)}}},[s("form-field",{staticClass:"form-group-lg",attrs:{name:"email"}},[s("div",{staticClass:"input-group"},[s("label",{staticClass:"input-addon p-r-0",attrs:{for:"sign_up_email"}},[s("i",{staticClass:"fe fe-mail"})]),s("input",{directives:[{name:"model",rawName:"v-model",value:t.email,expression:"email"}],attrs:{type:"email",id:"sign_up_email",placeholder:t.$t("Email"),required:""},domProps:{value:t.email},on:{input:function(e){e.target.composing||(t.email=e.target.value)}}})])]),s("form-field",{staticClass:"form-group-lg",attrs:{name:"password"}},[s("div",{staticClass:"input-group"},[s("label",{staticClass:"input-addon p-r-0",attrs:{for:"sign_up_password"}},[s("i",{staticClass:"fe fe-unlock"})]),s("input",{directives:[{name:"model",rawName:"v-model",value:t.password,expression:"password"}],attrs:{type:"password",id:"sign_up_password",placeholder:t.$t("Password"),required:""},domProps:{value:t.password},on:{input:function(e){e.target.composing||(t.password=e.target.value)}}})])]),s("form-field",{staticClass:"form-group-lg",attrs:{name:"passwordConfirm"}},[s("div",{staticClass:"input-group"},[s("label",{staticClass:"input-addon no-b-r no-bg p-r-0",attrs:{for:"sign_up_password_confirm"}},[s("i",{staticClass:"fe fe-lock"})]),s("input",{directives:[{name:"model",rawName:"v-model",value:t.passwordConfirm,expression:"passwordConfirm"}],attrs:{type:"password",id:"sign_up_password_confirm",placeholder:t.$t("Password confirm"),required:""},domProps:{value:t.passwordConfirm},on:{input:function(e){e.target.composing||(t.passwordConfirm=e.target.value)}}})])]),s("button",{staticClass:"btn btn-primary btn-lg btn-loader block",class:{"btn-loader-active":t.isProcessing}},[s("span",{staticClass:"txt"},[t._v(t._s(t.$t("Sign up")))]),s("i",{staticClass:"fe fe-arrow-right-circle"})]),t.$getAppConfig("VUE_APP_TERMS_URL")?s("div",{staticClass:"block txt-center m-t-small txt-hint"},[s("i18n",{attrs:{path:'By clicking "Sign up" you agree to our {termsLink}.'}},[s("a",{attrs:{slot:"termsLink",href:t.$getAppConfig("VUE_APP_TERMS_URL"),target:"_blank",rel:"noopener"},slot:"termsLink"},[t._v(t._s(t.$t("Terms and Privacy policy")))])])],1):t._e()],1),s("div",{staticClass:"clearfix m-b-base"}),s("auth-clients-bar",{attrs:{heading:t.$t("Or sign up via:")}})],1)]),s("div",{staticClass:"clearfix m-b-base"}),s("div",{staticClass:"auth-meta"},[s("router-link",{attrs:{to:{name:"login"}}},[t._v("\n                "+t._s(t.$t("Already have an account?"))+"\n                "),s("strong",[t._v(t._s(t.$t("Sign in.")))])])],1)],1),s("div",{staticClass:"flex-fill-block m-b-base"}),s("app-footer")],1)},n=[],i=s("f744"),o=s("dbb6"),r=s("438c"),l=s("5401"),c={name:"register",components:{"app-header":o["a"],"app-footer":r["a"],"auth-clients-bar":l["a"]},data:function(){return{email:"",password:"",passwordConfirm:"",isProcessing:!1,registerSuccess:!1}},beforeMount:function(){var t=this;this.$setDocumentTitle((function(){return t.$t("Sign up")}))},methods:{onSubmit:function(){var t=this;this.isProcessing||(this.isProcessing=!0,i["a"].Users.register({email:this.email,password:this.password,passwordConfirm:this.passwordConfirm}).then((function(e){t.registerSuccess=!0})).catch((function(e){t.registerSuccess=!1,t.$errResponseHandler(e)})).finally((function(){t.isProcessing=!1})))}}},u=c,p=s("2877"),d=Object(p["a"])(u,a,n,!1,null,null,null);e["default"]=d.exports},f7ef:function(t,e,s){"use strict";var a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"languages-select",class:{loading:t.isChanging}},[s("div",{staticClass:"selected-language"},[s("span",{staticClass:"txt language-title"},[t._v(t._s(t.activeLanguageTitle))]),t._v("\n        ("),s("span",{staticClass:"txt language-code"},[t._v(t._s(t.activeLanguageCode))]),t._v(")\n    ")]),s("toggler",{staticClass:"dropdown dropdown-sm"},t._l(t.languages,(function(e,a){return s("div",{key:"language_"+a,staticClass:"dropdown-item",class:{active:t.activeLanguageCode==a},on:{click:function(e){return e.preventDefault(),t.changeLanguage(a)}}},[s("small",{staticClass:"label language-code m-r-5",class:t.activeLanguageCode==a?"label-transp-primary":"label-light-border"},[t._v(t._s(a))]),s("span",{staticClass:"txt language-title"},[t._v(t._s(e))])])})),0)],1)},n=[],i=s("9225"),o={name:"languages-select",data:function(){return{isChanging:!1,languages:Object.assign({},i["c"])}},watch:{"$i18n.locale":function(t,e){"function"===typeof document._titleFunc&&this.$setDocumentTitle(document._titleFunc)}},computed:{activeLanguageCode:function(){return this.$i18n.locale},activeLanguageTitle:function(){return this.languages[this.activeLanguageCode]}},methods:{changeLanguage:function(t){var e=this;this.isChanging=!0,Object(i["a"])(t).finally((function(){e.isChanging=!1}))}}},r=o,l=s("2877"),c=Object(l["a"])(r,a,n,!1,null,null,null);e["a"]=c.exports}}]);