(function(e){function t(t){for(var i,a,o=t[0],c=t[1],l=t[2],d=0,p=[];d0,expression:"time > 0"}]},[e._v("Gratulacje")]),n("md-dialog-title",{directives:[{name:"show",rawName:"v-show",value:0===e.time,expression:"time === 0"}]},[e._v("Twój czas upłynął")]),n("md-dialog-content",[n("p",[e._v("Twoje wyniki zostały do nas przesłane i wkrótce się z Tobą skontaktujemy.")]),n("p",[e._v("Pozdrawiamy, zespół "),n("a",{attrs:{href:"https://www.smartbees.pl",title:"smartbees.pl"}},[e._v("smartbees")]),e._v(".")])]),n("md-dialog-actions",[n("md-button",{staticClass:"md-primary md-raised",on:{click:e.SET_APPLICANT_FILLED}},[e._v("Ok")])],1)],1),n("div",{staticClass:"timer_box md-elevation-11"},[e._v("\n "+e._s(e.timeLeft)+"\n ")]),n("div",{staticClass:"survey_nav--desktop"},[n("div",{staticClass:"stepper md-elevation-24"},e._l(e.categories,(function(t,i){return n("div",{key:t.id,staticClass:"step_button",class:{step_done:e.currentStep>i}},[n("div",{staticClass:"step_inner",on:{click:function(t){e.currentStep=i}}},[n("span",{staticClass:"step_icon",class:{done_icon:e.categoriesDone[t.id]}},[e.currentStep===i?[n("md-icon",{staticClass:"step_edit"},[e._v("edit")])]:e._e(),e.categoriesDone[t.id]&&e.currentStep!==i?[n("md-icon",[e._v("done")])]:e._e(),e.categoriesDone[t.id]||e.currentStep===i?e._e():[e._v("\n "+e._s(i+1)+"\n ")]],2),n("span",{staticClass:"step_title"},[e._v("\n "+e._s(t.title)+"\n ")])])])})),0)]),n("transition",{attrs:{name:"slide-fade",mode:"out-in"}},[n("category-step",{key:e.categories[e.currentStep].id,attrs:{category:e.categories[e.currentStep],index:e.currentStep}})],1),n("div",{staticClass:"stepper_bottom_nav"},[n("div",{staticClass:"nav_inner"},[e.currentStep>0?n("md-button",{staticClass:"md-raised md-primary",on:{click:function(t){e.currentStep--}}},[e._v("\n Wróć\n ")]):e._e(),e.currentStep0?(this.COUNT_DOWN(),setTimeout(this.countDown,1e3)):0===this.time&&(this.endingWindow=!0,this.sendResults())},getStuff:function(){var e=this;this.ended?this.sendResults().then((function(){e.endingWindow=!0})):(this.setOpenedSurvey(this.$route.params.hash),this.getData(this.$route.params.hash).then((function(){e.dataReady=!0})).catch((function(t){console.log(t),e.dataReady=!1})))},endSurvey:function(){var e=this;this.ended=!0,this.sendResults().then((function(){e.endingWindow=!0}))}}),created:function(){this.getStuff()}},H=J,Z=(n("6527"),Object(f["a"])(H,y,g,!1,null,null,null)),X=Z.exports,ee=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"custom_404"},[n("div",{staticClass:"error_icon"},[n("md-icon",{staticClass:"md-size-5x"},[e._v("error")])],1),e._m(0)])},te=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("h1",{staticClass:"md-display-3"},[e._v("Oops!")]),n("h3",{staticClass:"md-headline"},[e._v("The page you're looking for is not here.")])])}],ne={name:"NotFound"},ie=ne,re=(n("6fb9"),Object(f["a"])(ie,ee,te,!1,null,null,null)),se=re.exports,ae=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"full_window panel_view"},[n("md-app",{staticClass:"full_window"},[n("md-app-toolbar",{staticClass:"md-primary custom_top_header"},["InProgressApplicantsList"===e.currentView?n("span",{staticClass:"md-title"},[e._v("Applicants")]):e._e(),"JobOfferApplicantsList"===e.currentView?n("span",{staticClass:"md-title"},[e._v("Job Offered Applicants")]):e._e(),"RejectedApplicantsList"===e.currentView?n("span",{staticClass:"md-title"},[e._v("Rejected Applicants")]):e._e(),"SurveyList"===e.currentView?n("span",{staticClass:"md-title"},[e._v("Surveys")]):e._e()]),n("md-app-drawer",{staticClass:"custom_navigation",attrs:{"md-permanent":"full"}},[n("md-toolbar",{staticClass:"md-transparent",attrs:{"md-elevation":"0"}},[e._v("\n Navigation\n ")]),n("md-list",{staticClass:"custom_nav-list"},[n("md-list-item",{class:{custom_active:"InProgressApplicantsList"===e.currentView},on:{click:function(t){return e.changeView("InProgressApplicantsList")}}},[n("md-icon",[e._v("folder_shared")]),n("span",{staticClass:"md-list-item-text"},[e._v("Applicants")])],1),n("md-list-item",{class:{custom_active:"JobOfferApplicantsList"===e.currentView},on:{click:function(t){return e.changeView("JobOfferApplicantsList")}}},[n("md-icon",[e._v("folder_shared")]),n("span",{staticClass:"md-list-item-text"},[e._v("Job Offered")])],1),n("md-list-item",{class:{custom_active:"RejectedApplicantsList"===e.currentView},on:{click:function(t){return e.changeView("RejectedApplicantsList")}}},[n("md-icon",[e._v("folder_shared")]),n("span",{staticClass:"md-list-item-text"},[e._v("Rejected")])],1),n("md-list-item",{class:{custom_active:"SurveyList"===e.currentView},on:{click:function(t){return e.changeView("SurveyList")}}},[n("md-icon",[e._v("poll")]),n("span",{staticClass:"md-list-item-text"},[e._v("Surveys")])],1),n("md-list-item",{on:{click:e.SET_LOGGED_OUT}},[n("md-icon",[e._v("exit_to_app")]),n("span",{staticClass:"md-list-item-text"},[e._v("Logout")])],1)],1)],1),n("md-app-content",{staticClass:"custom_content"},[n(e.currentView,{tag:"component"})],1)],1)],1)},oe=[],ce=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("ApplicantsTable",{attrs:{applicants:e.inProgressApplicants,title:"Applicants"}})},le=[],ue=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"component_wrapper"},[e.processing?n("div",{staticClass:"fetching_data"},[n("md-progress-spinner",{attrs:{"md-mode":"indeterminate"}})],1):e._e(),e.processing||e.errored||!e.allowAddNew?e._e():n("md-button",{staticClass:"md-fab md-mini md-primary custom_add",attrs:{title:"add new applicant"},on:{click:e.createApplicant}},[n("md-icon",[e._v("add")])],1),e.errored?n("md-empty-state",{staticClass:"md-primary",attrs:{"md-icon":"cloud_off","md-label":"Network Issue Occurred.","md-description":"Please try again later."}}):e._e(),n("md-dialog",{staticClass:"custom_dialog",attrs:{"md-active":e.createApplicantDialog,"md-close-on-esc":!1,"md-click-outside-to-close":!1},on:{"update:mdActive":function(t){e.createApplicantDialog=t},"update:md-active":function(t){e.createApplicantDialog=t}}},[n("md-dialog-title",{staticClass:"dialog_title"},[e._v("Add New Applicant")]),n("md-dialog-content",{staticClass:"custom_dialog_content"},[n("form",{on:{submit:function(t){return t.preventDefault(),e.addApplicant(t)}}},[n("div",{staticClass:"md-layout md-gutter"},[n("div",{staticClass:"md-layout-item md-small-size-100"},[n("md-field",{staticClass:"md-field md-theme-default md-required"},[n("label",[e._v("Name")]),n("md-input",{attrs:{name:"name",id:"name",type:"text",disabled:e.sending,required:""},model:{value:e.name,callback:function(t){e.name=t},expression:"name"}})],1)],1),n("div",{staticClass:"md-layout-item md-small-size-100"},[n("md-field",{staticClass:"md-field md-theme-default md-required"},[n("label",[e._v("Surname")]),n("md-input",{attrs:{name:"surname",id:"surname",type:"text",disabled:e.sending,required:""},model:{value:e.surname,callback:function(t){e.surname=t},expression:"surname"}})],1)],1)]),n("md-field",{staticClass:"md-field md-theme-default md-required"},[n("label",[e._v("Email")]),n("md-input",{attrs:{name:"email",id:"email",type:"email",disabled:e.sending,required:""},model:{value:e.email,callback:function(t){e.email=t},expression:"email"}})],1),n("md-field",{staticClass:"md-field md-theme-default md-required"},[n("label",[e._v("Survey")]),n("md-select",{attrs:{name:"survey",id:"survey",disabled:e.sending,required:""},model:{value:e.survey,callback:function(t){e.survey=t},expression:"survey"}},e._l(e.surveys,(function(t){return n("md-option",{attrs:{value:t.id}},[e._v(e._s(t.job_office))])})),1)],1),n("md-field",{staticClass:"md-field md-theme-default"},[n("label",[e._v("Source")]),n("md-input",{attrs:{name:"source",id:"source",type:"text",disabled:e.sending},model:{value:e.source,callback:function(t){e.source=t},expression:"source"}})],1),n("md-dialog-actions",{staticClass:"custom_actions"},[n("md-button",{staticClass:"md-raised md-primary",on:{click:function(t){e.createApplicantDialog=!1}}},[e._v("Close")]),n("md-button",{staticClass:"md-raised md-accent",attrs:{type:"submit",disabled:e.sending}},[e._v("Add applicant")])],1)],1)]),e.sending?n("md-progress-bar",{staticClass:"progress_bar",attrs:{"md-mode":"indeterminate"}}):e._e()],1),n("md-dialog",{attrs:{"md-active":e.removeApplicantDialog,"md-close-on-esc":!1,"md-click-outside-to-close":!1},on:{"update:mdActive":function(t){e.removeApplicantDialog=t},"update:md-active":function(t){e.removeApplicantDialog=t}}},[n("md-dialog-title",[e._v("Are you sure you want to remove this applicant?")]),n("md-dialog-content",[n("p",[e._v("This will remove applicant "),n("strong",[e._v("entirely")]),e._v(".")])]),n("md-dialog-actions",[n("md-button",{staticClass:"md-raised md-primary",on:{click:e.cancelApplicant}},[e._v("Cancel")]),n("md-button",{staticClass:"md-raised md-accent",attrs:{disabled:e.sending},on:{click:e.removeApplicant}},[e._v("Agree")])],1)],1),n("md-dialog",{attrs:{"md-active":e.statusApplicantDialog,"md-close-on-esc":!1,"md-click-outside-to-close":!1},on:{"update:mdActive":function(t){e.statusApplicantDialog=t},"update:md-active":function(t){e.statusApplicantDialog=t}}},[n("md-dialog-title",[e._v("Set Applicant Status")]),n("md-dialog-content",[n("div",{staticClass:"status_form"},[n("md-radio",{staticClass:"md-primary",attrs:{value:"New"},model:{value:e.applicantStatus,callback:function(t){e.applicantStatus=t},expression:"applicantStatus"}},[e._v("New")]),n("md-radio",{staticClass:"md-primary",attrs:{value:"Rejected"},model:{value:e.applicantStatus,callback:function(t){e.applicantStatus=t},expression:"applicantStatus"}},[e._v("Rejected")]),n("md-radio",{staticClass:"md-primary",attrs:{value:"Meeting"},model:{value:e.applicantStatus,callback:function(t){e.applicantStatus=t},expression:"applicantStatus"}},[e._v("Meeting")]),n("md-radio",{staticClass:"md-primary",attrs:{value:"Job Offer"},model:{value:e.applicantStatus,callback:function(t){e.applicantStatus=t},expression:"applicantStatus"}},[e._v("Job Offer")])],1)]),n("md-dialog-actions",[n("md-button",{staticClass:"md-raised md-primary",on:{click:e.cancelApplicant}},[e._v("Close")]),n("md-button",{staticClass:"md-raised md-accent",attrs:{disabled:e.sending},on:{click:e.setApplicantStatus}},[e._v("Save")])],1)],1),n("md-dialog",{attrs:{"md-active":e.resultDetailsDialog,"md-close-on-esc":!0,"md-click-outside-to-close":!0},on:{"update:mdActive":function(t){e.resultDetailsDialog=t},"update:md-active":function(t){e.resultDetailsDialog=t}}},[n("md-dialog-title",[e._v(e._s(e.selectedApplicant.name)+" - result details")]),n("md-dialog-content",[n("ul",e._l(e.selectedApplicant.results.perCategory,(function(t){return n("li",[e._v(e._s(t.title)+": "+e._s("?"==e.selectedApplicant.results.total?t.score:Math.round(t.score)+"%"))])})),0)]),n("md-dialog-actions",[n("md-button",{staticClass:"md-raised md-primary",on:{click:function(t){e.resultDetailsDialog=!1}}},[e._v("Close")])],1)],1),e.processing||e.errored?e._e():n("md-table",{staticClass:"custom_table",attrs:{"md-card":"","md-fixed-header":""},scopedSlots:e._u([{key:"md-table-row",fn:function(t){var i=t.item;return n("md-table-row",{},[n("md-table-cell",{attrs:{"md-label":"ID","md-sort-by":"id","md-numeric":""}},[e._v("\n "+e._s(i.id)+"\n ")]),n("md-table-cell",{attrs:{"md-label":"Name","md-sort-by":"name"}},[e._v("\n "+e._s(i.name)+"\n ")]),n("md-table-cell",{attrs:{"md-label":"Email","md-sort-by":"email"}},[e._v("\n "+e._s(i.email)+"\n ")]),n("md-table-cell",{attrs:{"md-label":"Source","md-sort-by":"source"}},[e._v("\n "+e._s(i.source)+"\n ")]),n("md-table-cell",{attrs:{"md-label":"Link"}},[n("label",{staticClass:"copy_link",attrs:{title:"Copy link to clipboard"},on:{click:function(t){return e.copyToClipboard("copy_"+i.id)}}},[e._v("\n Copy\n "),n("input",{ref:"copy_"+i.id,staticClass:"sr-only",attrs:{type:"text"},domProps:{value:e.surveyLink(i.hash)}})])]),n("md-table-cell",{attrs:{"md-label":"Opened"}},[n("md-icon",{style:{color:i.openedSurvey?"#00ad00":"#ff4032"},attrs:{title:i.openedSurvey}},[e._v("\n "+e._s(i.openedSurvey?"check_circle_outline":"highlight_off")+"\n ")])],1),n("md-table-cell",{attrs:{"md-label":"Filled"}},[n("md-icon",{style:{color:i.filled?"#00ad00":"#ff4032"}},[e._v("\n "+e._s(i.filled?"check_circle_outline":"highlight_off")+"\n ")])],1),n("md-table-cell",{attrs:{"md-label":"Status","md-sort-by":"status"}},[e._v("\n "+e._s(i.status)+"\n ")]),n("md-table-cell",{attrs:{"md-label":"Score","md-sort-by":"score"}},[i.filled&&i.results?n("a",{staticClass:"copy_link",on:{click:function(t){return e.showApplicantResultDetails(i)}}},[e._v(e._s(e.getTotalScore(i)))]):n("span",[e._v(e._s(e.getTotalScore(i)))])]),n("md-table-cell",{staticClass:"custom_action_cell",attrs:{"md-label":"Actions"}},[e.allowChangeStatus?n("button",{staticClass:"custom_button button_edit",attrs:{type:"button",title:"Edit applicant status",disabled:e.sending},on:{click:function(t){return e.setApplicantStatusEdit(i)}}},[n("md-icon",[e._v("build")])],1):e._e(),e.allowUnlockSurvey?n("button",{staticClass:"custom_button button_unlock",attrs:{type:"button",title:"Unlock survey",disabled:!i.filled||e.sending},on:{click:function(t){return e.setApplicantSurvey(i)}}},[n("md-icon",[e._v("lock_open")])],1):e._e(),e.allowRemove?n("button",{staticClass:"custom_button button_remove",attrs:{type:"button",title:"Remove applicant",disabled:e.sending},on:{click:function(t){return e.setApplicantToDelete(i)}}},[n("md-icon",[e._v("delete_forever")])],1):e._e()])],1)}}],null,!1,3733565483),model:{value:e.filtered,callback:function(t){e.filtered=t},expression:"filtered"}},[n("md-table-toolbar",{staticClass:"custom_toolbar"},[n("div",{staticClass:"md-toolbar-section-start"},[n("h1",{staticClass:"md-title"},[e._v(e._s(e.title))])]),e.allowSearch?n("md-field",{staticClass:"md-toolbar-section-end",attrs:{"md-clearable":""}},[n("md-input",{attrs:{placeholder:"Search by name..."},model:{value:e.search,callback:function(t){e.search=t},expression:"search"}})],1):e._e()],1),n("md-table-empty-state",{staticClass:"custom_no-results",attrs:{"md-label":"No applicants found","md-description":"No applicant found for this '"+e.search+"' query. Try a different search term or create a new applicant."}},[e.allowAddNew?n("md-button",{staticClass:"md-primary md-raised",on:{click:e.createApplicant}},[e._v("Create New Applicant")]):e._e()],1)],1)],1)},de=[];n("55dd"),n("7f7f"),n("6762"),n("2fdb"),n("386d");function pe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function me(e){for(var t=1;t0&&(t=ut({},t,Object(c["a"])({},o,Object(ot["a"])(v))))}}})),t};function mt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function ft(e){for(var t=1;t0){var i=Math.floor(e.time/60),r=e.time%60;t=i<10?"0"+String(i):String(i),n=r<10?"0"+String(r):String(r)}else t="00",n="00";return"".concat(t,":").concat(n)},categories:function(e){return e.survey.categories?e.survey.categories:[]},questionsLength:function(e,t){var n={};return t.categories.forEach((function(e){n[e.id]=e.questions.length})),n},categoriesDone:function(e,t){var n=Object.values(t.categories),i={};return n.forEach((function(n){var r=Object.values(e.form[n.id]),s=0;r.forEach((function(e){if("string"===typeof e||"number"===typeof e)s++;else if(e){var t=Object.values(e),n=t.some((function(e){return e}));n&&s++}})),i[n.id]=s===t.questionsLength[n.id]})),i}},mutations:{SET_APPLICANT:function(e,t){e.applicant=t},SET_SURVEY:function(e,t){e.survey=t},SET_TIME:function(e,t){e.time=t},SET_FORM:function(e,t){e.form=t},SET_NETWORK_ERROR:function(e){e.request.errored=!0},TOGGLE_REQUEST_PROCESSING:function(e){e.request.processing=!e.request.processing},RESET_REQUEST:function(e){e.request.processing=!1,e.request.errored=!1},SET_CHECKED:function(e,t){e.form[t.catID][t.queID][t.inpID]=!e.form[t.catID][t.queID][t.inpID]},SET_SELECTED:function(e,t){e.form[t.catID][t.queID]=t.inpID},COUNT_DOWN:function(e){e.time--},TOGGLE_PAUSED:function(e){e.paused=!e.paused},SET_APPLICANT_FILLED:function(e){e.applicant.filled=!0}},actions:{setOpenedSurvey:function(e,t){Rt.post("/recruitment/".concat(t,"/openSurvey"))},getData:function(e,t){var n=e.commit;return n("RESET_REQUEST"),n("TOGGLE_REQUEST_PROCESSING"),Rt.get("/recruitment/".concat(t)).then((function(e){var t=e.data,i=dt(t.survey.categories);return n("SET_FORM",i),n("SET_APPLICANT",t.applicant),n("SET_SURVEY",t.survey),n("SET_TIME",t.survey.total_time),e})).catch((function(e){throw n("SET_NETWORK_ERROR"),e})).finally((function(){n("TOGGLE_REQUEST_PROCESSING")}))},sendResults:function(e){var t=e.state,n=e.getters,i=e.commit,r=ft({},t.applicant),s=pt(t.form);return r.filled=!0,r.doneIn=n.startingTime-t.time,i("RESET_REQUEST"),i("TOGGLE_REQUEST_PROCESSING"),i("TOGGLE_PAUSED"),Rt.put("/recruitment/".concat(t.applicant.hash),{applicant:r,results:s}).then((function(e){return i("TOGGLE_PAUSED"),e})).catch((function(e){throw console.log(e),i("SET_NETWORK_ERROR"),e})).finally((function(){i("TOGGLE_REQUEST_PROCESSING")}))}}},vt=n("04e1"),_t=n.n(vt),yt=function(){var e=localStorage.getItem("token");if(!e)return!1;var t=_t()(e),n=Math.floor(Date.now()/1e3);return t.exp>n},gt={namespaced:!0,state:{email:"",password:"",loggedIn:yt(),sending:!1},mutations:{SET_LOGGED_IN:function(e){e.loggedIn=!0},SET_LOGGED_OUT:function(e){localStorage.removeItem("token"),Mt(),e.loggedIn=!1,Fn.push("/")},SET_EMAIL:function(e,t){e.email=t},SET_PASSWORD:function(e,t){e.password=t},TOGGLE_SENDING:function(e){e.sending=!e.sending}},actions:{getToken:function(e){var t=e.state,n=e.commit;n("TOGGLE_SENDING"),Rt.post("/auth/login",{email:t.email,password:t.password}).then((function(e){var t=e.data.token;t?(localStorage.setItem("token",t),Lt(t),n("SET_LOGGED_IN"),Fn.push("/panel"),n("SET_STATUS","Logged in successfully.",{root:!0})):(n("SET_STATUS","Incorrect email or password.",{root:!0}),n("SET_EMAIL",""),n("SET_PASSWORD",""))})).catch((function(e){console.log(e),n("SET_NETWORK_ISSUE",null,{root:!0})})).finally((function(){n("TOGGLE_SENDING")}))}}};function Ot(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}var ht=function(){return"".concat(Ot()).concat(Ot())},St=function(){return"".concat(Ot(),"x").concat(Ot(),"x").concat(Ot())};function Et(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function wt(e){for(var t=1;t-1,Rt=at.a.create({baseURL:qt?"http://localhost:4000":Nt+"/api/v1",headers:{Accept:"application/json","Content-Type":"application/json"},timeout:1e4});Rt.interceptors.response.use((function(e){return e}),(function(e){if(401!==e.response.status)return e.response;localStorage.removeItem("token"),xt.commit("SET_LOGGED_OUT"),xt.commit("SET_STATUS","Token expired, please log in again.",{root:!0}),Fn.go("/")}));var Lt=function(e){Rt.defaults.headers.common["Authorization"]=e},Mt=function(){delete Rt.defaults.headers.common["Authorization"]};function Ut(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Gt(e){for(var t=1;t992?n("div",{staticClass:"survey_nav--desktop"},[n("div",{staticClass:"stepper md-elevation-24"},e._l(e.categories,(function(t,i){return n("div",{key:t.id,staticClass:"step_button",attrs:{title:"go to step"}},[n("div",{staticClass:"step_inner",on:{click:function(t){e.currentStep=i}}},[n("div",{staticClass:"step_title edit_field"},[n("span",{class:{step_active:e.currentStep===i}},[e._v(e._s(t.title))]),n("div",{staticClass:"edit_button"},[n("md-button",{staticClass:"icon_small md-icon-button md-accent md-raised",attrs:{title:"edit step"},on:{click:function(t){return t.stopPropagation(),e.editStep(i)}}},[n("md-icon",[e._v("edit")])],1),i===e.categoriesLength-1&&i<4?n("md-button",{staticClass:"icon_small add_step md-icon-button md-primary md-raised",attrs:{title:"add step"},on:{click:function(t){return t.stopPropagation(),e.ADD_CATEGORY(t)}}},[n("md-icon",[e._v("add")])],1):e._e()],1)])])])})),0)]):e._e(),n("transition",{attrs:{name:"slide-fade",mode:"out-in"}},[n("category-step-edit",{key:e.categories[e.currentStep].id,attrs:{category:e.categories[e.currentStep],index:e.currentStep,"window-size":e.windowSize}})],1),e.windowSize>992?n("div",{staticClass:"stepper_bottom_nav"},[n("div",{staticClass:"nav_inner"},[e.currentStep>0?n("md-button",{staticClass:"md-raised md-primary",on:{click:function(t){e.currentStep--}}},[e._v("\n Back\n ")]):e._e(),e.currentStep