(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f2b9b57e"],{"03da":function(e,t,o){"use strict";o("ce61")},"055c":function(e,t,o){},"06fc":function(e,t,o){e.exports=o.p+"img/searchmenu.14e74ed0.svg"},"10ca":function(e,t,o){"use strict";o("9d58")},"1e7e":function(e,t,o){"use strict";o.d(t,"a",(function(){return l}));var s=o("bee2"),i=o("d4ec"),r=o("262e"),n=o("2caf"),a=o("ade3"),c=o("9d56"),l=function(e){Object(r["a"])(o,e);var t=Object(n["a"])(o);function o(){return Object(i["a"])(this,o),t.apply(this,arguments)}return Object(s["a"])(o)}(c["a"]);Object(a["a"])(l,"resource","custom-fields")},"44b1":function(e,t,o){},5247:function(e,t,o){"use strict";o("aae1")},"57ff":function(e,t,o){e.exports=o.p+"img/subs.967c9bea.svg"},"6a01":function(e,t,o){"use strict";o("44b1")},"6a97":function(e,t,o){e.exports=o.p+"img/hamburguer.f137bd10.svg"},8265:function(e,t,o){e.exports=o.p+"img/ajuda.15ba3a0b.svg"},"857a":function(e,t,o){var s=o("e330"),i=o("1d80"),r=o("577e"),n=/"/g,a=s("".replace);e.exports=function(e,t,o,s){var c=r(i(e)),l="<"+t;return""!==o&&(l+=" "+o+'="'+a(r(s),n,"&quot;")+'"'),l+">"+c+"</"+t+">"}},"8d40":function(e,t,o){e.exports=o.p+"img/courses.8d483e9e.svg"},"918b":function(e,t,o){e.exports=o.p+"img/certificado.0b7be3d3.svg"},9911:function(e,t,o){"use strict";var s=o("23e7"),i=o("857a"),r=o("af03");s({target:"String",proto:!0,forced:r("link")},{link:function(e){return i(this,"a","href",e)}})},"9d58":function(e,t,o){},a434:function(e,t,o){"use strict";var s=o("23e7"),i=o("7b0b"),r=o("23cb"),n=o("5926"),a=o("07fa"),c=o("3511"),l=o("65f0"),u=o("8418"),d=o("083a"),h=o("1dde"),m=h("splice"),C=Math.max,p=Math.min;s({target:"Array",proto:!0,forced:!m},{splice:function(e,t){var o,s,h,m,f,g,v=i(this),b=a(v),w=r(e,b),M=arguments.length;for(0===M?o=s=0:1===M?(o=0,s=b-w):(o=M-2,s=p(C(n(t),0),b-w)),c(b+o-s),h=l(v,s),m=0;m<s;m++)f=w+m,f in v&&u(h,m,v[f]);if(h.length=s,o<s){for(m=w;m<b-s;m++)f=m+s,g=m+o,f in v?v[g]=v[f]:d(v,g);for(m=b;m>b-s+o;m--)d(v,m-1)}else if(o>s)for(m=b-s;m>w;m--)f=m+s-1,g=m+o-1,f in v?v[g]=v[f]:d(v,g);for(m=0;m<o;m++)v[m+w]=arguments[m+2];return v.length=b-s+o,h}})},aae1:function(e,t,o){},ae24:function(e,t,o){"use strict";o("055c")},af03:function(e,t,o){var s=o("d039");e.exports=function(e){return s((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))}},b1ba:function(e,t,o){"use strict";o.r(t);var s=function(){var e=this,t=e._self._c;return"v2"===e.clubVersion?t("div",[t("HighLight",{attrs:{isLoading:e.isLoading,featured:e.featured,isMobile:e.isMobile,showReorder:!e.withoutCategory&&!e.onlyMyCourses,defaultFont:e.default_font}}),e.checkWithoutCategory||e.isLoading?e.checkWithoutCategory&&!e.isLoading?t("div",{staticClass:"container-category",attrs:{"data-anima":"top"}},[t("Category",{attrs:{category:e.modulesKeepWatching,availible:e.availible,ratio:e.coverProportion,showProgress:!0,permission:e.permission,homeVertical:e.homeVertical,withoutCategory:e.withoutCategory,onlyMyCourses:e.onlyMyCourses,ratingHome:e.ratingHome,isMobile:e.isMobile}}),e._l(e.AllHome,(function(o,s){return t("Category",{key:"item-course-home-".concat(s),attrs:{category:o,availible:e.availible,ratio:e.coverProportion,permission:e.permission,homeVertical:e.homeVertical,withoutCategory:e.withoutCategory,onlyMyCourses:e.onlyMyCourses,ratingHome:e.ratingHome,isMobile:e.isMobile}})}))],2):e._e():t("div",{staticClass:"container-category",attrs:{"data-anima":"top"}},[t("Category",{attrs:{category:e.coursesKeepWatching,availible:e.availible,ratio:e.coverProportion,showProgress:!0,permission:e.permission,homeVertical:e.homeVertical,withoutCategory:e.withoutCategory,onlyMyCourses:e.onlyMyCourses,ratingHome:e.ratingHome,isMobile:e.isMobile}}),e._l(e.AllHome,(function(o,s){return t("Category",{key:"item-course-home-".concat(s),attrs:{category:o,availible:e.availible,ratio:e.coverProportion,permission:e.permission,homeVertical:e.homeVertical,withoutCategory:e.withoutCategory,onlyMyCourses:e.onlyMyCourses,ratingHome:e.ratingHome,isMobile:e.isMobile}})}))],2),t("ModalCustomFields")],1):t("div",[e.loading||e.isLoadingInit?t("div",{staticClass:"d-flex justify-content-center mt-5"},[t("b-spinner",{attrs:{label:"Loading..."}})],1):t("div",[t("div",[t("div",{staticClass:"row"},[t("Notifications")],1),0!==e.AllBanners.length?t("div",{staticClass:"row"},[t("div",{class:{spaceHome:!e.isMobile,spaceHomeMobile:e.isMobile},attrs:{"data-anima":"top"}},[t("Carrousel",{attrs:{isMobile:e.isMobile,AllBanners:e.isMobile?e.mobileBanners:e.desktopBanners}})],1)]):e._e(),0!==e.AllCards.length?t("div",{staticClass:"row"},[t("div",{class:{spaceHome:!e.isMobile,spaceHomeMobile:e.isMobile},attrs:{"data-anima":"top"}},[t("CardList",{attrs:{isMobile:e.isMobile,searchCourse:e.searchCourse,AllCards:e.AllCards}})],1)]):t("div",{staticClass:"row"},[t("div",{staticClass:"spaceDivHome"})]),t("span",[!e.isMobile&&e.permission?t("div",{class:{spaceBtnsHome:!e.withoutCategory,spaceBtnsHome2:e.withoutCategory},attrs:{"data-anima":"top"}},[!e.withoutCategory&&e.countCourse>1?t("a",{staticClass:"router-curso",on:{click:e.ordenarCursos}},[t("button",{staticClass:"btnGerenciar"},[e._v(" "+e._s(e.btnGerenciar)+" "),"Re-ordenar"===e.btnGerenciar?t("span",[e._v(" "+e._s(e.$t("home2.course"))+" ")]):e._e(),t("svg",{attrs:{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M21 14H14V21H21V14Z",stroke:"black","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}}),t("path",{attrs:{d:"M10 14H3V21H10V14Z",stroke:"black","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}}),t("path",{attrs:{d:"M21 3H14V10H21V3Z",stroke:"black","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}}),t("path",{attrs:{d:"M10 3H3V10H10V3Z",stroke:"black","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}})])])]):!e.withoutCategory&&e.countCourse<=1?t("div"):e._e(),t("router-link",{staticClass:"router-curso",attrs:{to:"/banners"}},[t("button",{staticClass:"btnGerenciar"},[e._v(" "+e._s(e.$t("home2.gerenciar"))+" "),t("span",[e._v(e._s(e.$t("home2.banners")))]),t("svg",{attrs:{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M19 3H5C3.89543 3 3 3.89543 3 5V19C3 20.1046 3.89543 21 5 21H19C20.1046 21 21 20.1046 21 19V5C21 3.89543 20.1046 3 19 3Z",stroke:"black","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}}),t("path",{attrs:{d:"M21 15L16 10L5 21",stroke:"black","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}}),t("path",{attrs:{d:"M8.5 10C9.32843 10 10 9.32843 10 8.5C10 7.67157 9.32843 7 8.5 7C7.67157 7 7 7.67157 7 8.5C7 9.32843 7.67157 10 8.5 10Z",stroke:"black","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}})])])]),t("router-link",{staticClass:"router-curso",attrs:{to:"/cards"}},[t("button",{staticClass:"btnGerenciar"},[e._v(" "+e._s(e.$t("home2.gerenciar"))+" "),t("span",[e._v(e._s(e.$t("home2.cards")))]),t("svg",{attrs:{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M19 3H5C3.89543 3 3 3.89543 3 5V19C3 20.1046 3.89543 21 5 21H19C20.1046 21 21 20.1046 21 19V5C21 3.89543 20.1046 3 19 3Z",stroke:"black","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}}),t("path",{attrs:{d:"M21 15L16 10L5 21",stroke:"black","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}}),t("path",{attrs:{d:"M8.5 10C9.32843 10 10 9.32843 10 8.5C10 7.67157 9.32843 7 8.5 7C7.67157 7 7 7.67157 7 8.5C7 9.32843 7.67157 10 8.5 10Z",stroke:"black","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}})])])]),t("router-link",{staticClass:"router-curso",attrs:{to:"/config_curso"}},[t("button",{staticClass:"btn-NewCourse",attrs:{id:"step3"}},[e._v(" "+e._s(e.$t("home2.make"))+" "),t("svg",{attrs:{width:"7",height:"9",viewBox:"0 0 7 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M0.604614 8.43047C0.604614 8.85764 1.10567 9.0881 1.43001 8.8101L5.99505 4.89721C6.22785 4.69766 6.22785 4.3375 5.99505 4.13795L1.43001 0.22506C1.10567 -0.0529427 0.604614 0.177512 0.604614 0.604689L0.604614 8.43047Z",fill:"white"}})])])])],1):e._e(),t("CourseList",{attrs:{"data-anima":"top",withoutCategory:e.withoutCategory,permission:e.permission,isMobile:e.isMobile,AllHome:e.AllHome}})],1),0!==e.AllBanners2.length?t("div",{staticClass:"row",attrs:{"data-anima":"top"}},[t("div",{class:{spaceHome:!e.isMobile,spaceHomeMobile:e.isMobile}},[t("Carrousel",{attrs:{isMobile:e.isMobile,AllBanners:e.AllBanners2}})],1)]):e._e(),t("FooterBase",{attrs:{type:"home"}}),t("my-component-intro"),t("modal-buy"),t("modal-ordenar-curso",{attrs:{AllHome:e.AllHome}})],1),t("div",{staticClass:"menu-lateral"},[t("slidebar")],1)])])},i=[],r=o("c7eb"),n=o("1da1"),a=o("2909"),c=(o("d3b7"),o("3ca3"),o("ddb0"),o("4de4"),o("159b"),o("99af"),o("d81d"),o("e9c4"),o("9911"),o("a434"),o("ac1f"),o("841c"),o("3888")),l=o("bee2"),u=o("d4ec"),d=o("262e"),h=o("2caf"),m=o("ade3"),C=o("9d56"),p=function(e){Object(d["a"])(o,e);var t=Object(h["a"])(o);function o(){return Object(u["a"])(this,o),t.apply(this,arguments)}return Object(l["a"])(o)}(C["a"]);Object(m["a"])(p,"resource","home");var f=o("56d7"),g=o("a78e"),v=o.n(g),b=o("4dc8"),w=o("d54e"),M=b["a"].build(),k=c["a"].build(),_=p.build(),y={name:"Home2",components:{Slidebar:w["a"],ModalOrdenarCurso:function(){return Promise.all([o.e("chunk-4a5f46a6"),o.e("chunk-1f4c5fdc")]).then(o.bind(null,"b8cb"))},CardList:function(){return o.e("chunk-4f1d949e").then(o.bind(null,"3162"))},FooterBase:function(){return o.e("chunk-1cfb4b90").then(o.bind(null,"f799"))},CourseList:function(){return Promise.all([o.e("chunk-4a5f46a6"),o.e("chunk-3667440a")]).then(o.bind(null,"a773"))},Carrousel:function(){return o.e("chunk-7b812345").then(o.bind(null,"3cbe"))},ModalBuy:function(){return o.e("chunk-4bfe0304").then(o.bind(null,"1aea"))},Notifications:function(){return o.e("chunk-eb41135e").then(o.bind(null,"34d2"))},HighLight:function(){return Promise.all([o.e("chunk-2d0e97b4"),o.e("chunk-1649279b"),o.e("chunk-0da0b26d")]).then(o.bind(null,"1ee4"))},Category:function(){return Promise.all([o.e("chunk-4a5f46a6"),o.e("chunk-738c6ed0")]).then(o.bind(null,"bf9e"))},ModalCustomFields:function(){return o.e("chunk-2401ffc7").then(o.bind(null,"61133"))}},data:function(){return{onlyMyCourses:!1,isLoading:!0,client:{width:0},availible:{isAvailable:"off",color:{available:"#FFF",notAvailable:"#FFF"}},featured:{id:0,data:{},cover:{cdn_url:"https://images.pexels.com/photos/7822980/pexels-photo-7822980.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1"}},coursesKeepWatching:{},modulesKeepWatching:{},ratingHome:!1,homeVertical:!1,permission:!1,hideCourses:null,AllHome:[],painelName:"",searchCourse:"",AllCards:[],AllBanners:[],AllBanners2:[],withoutCategory:"",btnGerenciar:"Re-ordenar",countCourse:0,loading:!0,coverProportion:{width:236,height:304,value:"59:76"},default_font:""}},computed:{isMobile:function(){return document.body.clientWidth<=576},mobileBanners:function(){return this.AllBanners.filter((function(e){return e.mobile_media}))},desktopBanners:function(){return this.AllBanners.filter((function(e){return e.media}))},theme:function(){return this.$store.state.globalSettings.theme},clubVersion:function(){return this.$store.state.globalSettings.clubVersion},KeepWatchingCourse:function(){var e=this.AllHome.filter((function(e){return e.curso.lessons_completed_count>0&&e.curso.lessons_completed_count<e.curso.lessons_count&&e.curso.lessons_count>0})),t={title:"Continuar assistindo",category:{title:"Continuar assistindo",courses:[]}};return e.forEach((function(e){return t.category.courses.push(e.curso)})),t},KeepWatchingModule:function(){var e=this.AllHome.filter((function(e){return e.lessons_completed_count>0&&e.lessons_completed_count<e.lessons_count&&e.lessons_count>0})),t={title:"Continuar assistindo",category:{title:"Continuar assistindo"},modules:[]};return e.forEach((function(e){return t.modules=[].concat(Object(a["a"])(t.modules),Object(a["a"])(e.modules))})),t},isLoadingInit:function(){return this.$store.state.globalSettings.initLoading}},created:function(){var e=this;return Object(n["a"])(Object(r["a"])().mark((function t(){return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$store.dispatch("getCurrentSiteAndMember");case 2:e.getHomeVertical(),e.getCourse(),e.getMetas(),window.addEventListener("resize",e.handleResize),window.addEventListener("scroll",e.templateScroll),e.handleResize(),f["EventBus"].$on("reloadHome",(function(){e.getHomeVertical(),e.getCourse(),e.getMetas(),e.getPermission(),e.checkMyCourses(),e.checkWithoutCategory(),e.getHome()}));case 9:case"end":return t.stop()}}),t)})))()},methods:{filterKeepWatchingCourses:function(e){return Object(n["a"])(Object(r["a"])().mark((function t(){var o;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.filter((function(e){return e.lessons_completed_count>0&&e.lessons_completed_count<e.lessons_count&&e.lessons_count>0}));case 2:return o=t.sent,t.abrupt("return",{title:"Continue assistindo",courses:o,modules:o});case 4:case"end":return t.stop()}}),t)})))()},filterKeepWatchingModules:function(e){return Object(n["a"])(Object(r["a"])().mark((function t(){var o;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return o=[],t.next=3,e.map((function(e){if(Array.isArray(e.modules)){var t=e.modules.filter((function(e){return e.lessons_completed_count>0&&e.lessons_completed_count<e.lessons_count&&e.lessons_count>0}));o=[].concat(Object(a["a"])(o),Object(a["a"])(t))}else e.lessons_completed_count>0&&e.lessons_completed_count<e.lessons_count&&e.lessons_count>0&&o.push(e)}));case 3:return t.abrupt("return",{title:"Continue assistindo",modules:o,courses:o});case 4:case"end":return t.stop()}}),t)})))()},templateScroll:function(){f["EventBus"].$emit("template-scroll")},verifyCustomFields:function(){var e=this,t={id:"/site/check-custom"};M.read(t).then((function(t){!1===t.filled_data&&e.$root.$emit("bv::show::modal","modal-custom-fields","#btnShow")})).catch((function(e){}))},getMetas:function(){var e=this;return Object(n["a"])(Object(r["a"])().mark((function t(){var o,s,i,n,a;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$store.dispatch("fetchMetas",["rating_home","featured_course","panel_background_image","panel_background_image_mobile","is_available_course","available_color","not_available_color","club_version","cover_proportion"]);case 2:o=t.sent,o&&(o.cover_proportion?(e.coverProportion=JSON.parse(o.cover_proportion),localStorage.setItem("coverProportion",JSON.stringify(e.coverProportion))):localStorage.removeItem("coverProportion"),o.default_font&&(e.default_font=o.default_font),null===o.rating_home||"on"===o.rating_home?e.ratingHome=!0:e.ratingHome=!1,"v2"===o.club_version?(v.a.set("clubVersion","v2",{expires:365}),e.$store.commit("clubVersion","v2")):(v.a.set("clubVersion","v1",{expires:365}),e.$store.commit("clubVersion","v1")),e.availible.isAvailable=o.is_available_course,e.availible.color.available=o.available_color,e.availible.color.notAvailable=o.not_available_color,e.featured.id=o.featured_course,e.featured.cover.cdn_url=null!==(s=null===(i=o.panel_background_image)||void 0===i?void 0:i.cdn_url)&&void 0!==s?s:null,e.featured.cover.cdn_url_mobile=null!==(n=null===(a=o.panel_background_image_mobile)||void 0===a?void 0:a.cdn_url)&&void 0!==n?n:null),e.isLoading=!1;case 5:case"end":return t.stop()}}),t)})))()},getCourse:function(){var e=this;k.read("/featured-course").then((function(t){t&&(e.featured.data=t)})).catch((function(e){return console.log(e)})).finally((function(){e.isLoading=!1}))},ordenarCursos:function(){"Re-ordenar"===this.btnGerenciar?(this.btnGerenciar=this.$t("home2.back_to_list"),this.$root.$emit("orderOn"),setTimeout((function(){for(var e=document.getElementsByClassName("spaceCourcex"),t=function(t){e[t].classList.add("shake"),setTimeout((function(){e[t].classList.remove("shake")}),3e3)},o=0;o<e.length;o++)t(o)}),100)):(this.btnGerenciar="Re-ordenar",this.getHome(),this.$root.$emit("orderOff"))},handleResize:function(){window.matchMedia("(orientation: landscape)").matches&&window.outerWidth<1e3||window.matchMedia("(orientation: portrait)").matches&&window.outerWidth<769&&window.outerHeight<1025?this.client.width=0:this.client.width=window.outerWidth},getPermission:function(){var e=v.a.get("access_level"),t=v.a.get("type_student");if("admin"===e||"owner"===e){if(1===t||"1"===t)return void(this.permission=!1);this.permission=!0}else this.permission=!1},resolveCards:function(e){var t="";e.forEach((function(e){var o=e.id,s=e.link,i=e.media,r=e.size,n='\n          <div class="col-md-'.concat(r,' col-12" data-id-card="').concat(o,'">\n            <a href="').concat(s,'" target="_blank">\n              <div class="cardHome" data-midia="').concat(i.id,'" style="background-image: url(').concat(i.cdn_url,');">\n              </div>\n            </a>\n          </div>\n        ');t+=n})),this.rawHtmlCards=t},resolveHome:function(e){var t=this;return Object(n["a"])(Object(r["a"])().mark((function o(){var s,i,n,a,c,l,u,d,h,m,C,p,f,g,v,b,w,M,k,_,y;return Object(r["a"])().wrap((function(o){while(1)switch(o.prev=o.next){case 0:return t.loading=!0,t.AllCards=e.cards,t.AllBanners=e.banners_top,t.AllBanners2=e.banners_bottom,s=e.hide_courses,i=e.courses,n=e.categories,o.next=9,t.filterKeepWatchingCourses(i);case 9:return t.coursesKeepWatching=o.sent,o.next=12,t.filterKeepWatchingModules(i);case 12:for(t.modulesKeepWatching=o.sent,a=0;a<i.length;a++)if(c=i[a].modules,c)for(l=0;l<c.length;l++)c[l].has_access=i[a].has_access,c[l].curso=i[a];if("on"===e.without_category){t.withoutCategory=!0,u=e.courses,d=u.length;while(d--)h=u[d],m=h.lessons_completed_count,C=h.lessons_count,p=0,0!==m&&(p=m/C*100),u[d].porcentagem=parseInt(p,10),u[d].has_access=h.has_access,u[d].curso=h,f=h.has_access,"on"===s&&!1===f&&!1===t.permission&&u.splice(d,1);t.onlyMyCourses?t.AllHome=u.filter((function(e){return e.has_access})):t.AllHome=u}else if("off"===e.without_category){for(t.withoutCategory=!1,g=0;g<n.length;g++){v=n[g].courses,b=v.length;while(b--)w=v[b],M=w.lessons_completed_count,k=w.lessons_count,_=0,0!==M&&(_=M/k*100),v[b].porcentagem=parseInt(_,10),y=w.has_access,"on"===s&&!1===y&&!1===t.permission&&v.splice(b,1),t.onlyMyCourses&&!1===y&&v.splice(b,1)}t.onlyMyCourses?t.AllHome=n.filter((function(e){return e.courses.some((function(e){return e.has_access}))})):t.AllHome=n}t.hideCourses=e.hide_courses,t.countCourse=e.count_course,t.loading=!1;case 18:case"end":return o.stop()}}),o)})))()},getHome:function(){var e=this;null===localStorage.getItem("home")&&(this.loading=!0),_.search().then((function(t){localStorage.setItem("home",JSON.stringify(t)),e.resolveHome(t)})).catch((function(t){console.error(t),e.$root.$emit("loadOff")}))},getHomeVertical:function(){var e=this;return Object(n["a"])(Object(r["a"])().mark((function t(){var o,s;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$store.dispatch("fetchMetas",["home_vertical"]);case 2:o=t.sent,s=o.home_vertical,e.homeVertical="off"!==s&&null!==s,e.loading=!1;case 6:case"end":return t.stop()}}),t)})))()},checkMyCourses:function(){"meus-cursos"==this.$route.query.filter?this.onlyMyCourses=!0:this.onlyMyCourses=!1},checkWithoutCategory:function(){return this.withoutCategory}},watch:{$route:function(){this.checkMyCourses(),this.checkWithoutCategory(),this.getPermission(),null!==localStorage.getItem("home")&&this.resolveHome(JSON.parse(localStorage.getItem("home"))),this.getHome()}},mounted:function(){this.$route.query.globalToken&&this.$router.push({path:"/configuracoes",query:this.$route.query}),this.verifyCustomFields(),this.getPermission(),null!==localStorage.getItem("home")&&this.resolveHome(JSON.parse(localStorage.getItem("home"))),this.checkMyCourses(),this.checkWithoutCategory(),this.getHome()}},H=y,x=(o("5247"),o("2877")),V=Object(x["a"])(H,s,i,!1,null,"696a259f",null);t["default"]=V.exports},b2a3:function(e,t,o){e.exports=o.p+"img/comunidade.c4dd8f2f.svg"},ce61:function(e,t,o){},d54e:function(e,t,o){"use strict";var s=function(){var e=this,t=e._self._c;return t("div",[t("modal-painel"),e.isStudent?t("modal-termos",{attrs:{siteid:e.currentSiteId}}):e._e(),t("modal-novo-painel"),t("ModalCustomFields"),t("ModalPlanos",{attrs:{percentage:e.valuePercentage}}),t("ModalMyCourses",{attrs:{allpainels:e.allpainels,currentSiteId:e.currentSiteId,courses:e.Allcourses}}),t("SearchModal",{attrs:{isMobile:e.isMobile,permission:e.permission}}),e.isMobile?t("div",[t("div",{staticClass:"headerSlideMobile"},[null===e.logoPainel?t("a",{staticClass:"logoMobileMenu",on:{click:e.openHome}},[t("img",{attrs:{src:o("7d0b")}})]):t("a",{staticClass:"logoMobileMenu",on:{click:e.openHome}},[t("img",{attrs:{src:e.logoPainel}})]),t("img",{staticClass:"closeMenu",attrs:{src:o("6a97")},on:{click:function(t){e.openMobile=!0}}})]),t("div",{staticClass:"fundoMenuMobile animationOpacity",class:{hide:!e.openMobile}},[t("div",{staticClass:"spaceMenuMobile animationOpacity2"},[t("div",{staticClass:"headerMenuMobile"},[null===e.logoPainel?t("a",{staticClass:"logoMobileMenu",on:{click:e.openHome}},[t("img",{attrs:{src:o("7d0b")}})]):t("a",{staticClass:"logoMobileMenu",on:{click:e.openHome}},[t("img",{attrs:{src:e.logoPainel}})]),t("img",{staticClass:"closeMenu",attrs:{src:o("f6bf")},on:{click:function(t){e.openMobile=!1}}})]),t("div",[t("div",{staticClass:"btnsMobile"},[t("router-link",{staticClass:"remove-underline displayRouterMobile animationMenuMobile",attrs:{to:"/home"}},[t("img",{attrs:{src:o("8d40")}}),t("div",{staticClass:"titleRouter"},[e._v("Home")])]),e.existConfigCert?t("router-link",{staticClass:"remove-underline displayRouterMobile animationMenuMobile",attrs:{to:"/certificates"}},[t("img",{attrs:{src:o("918b")}}),t("div",{staticClass:"titleRouter"},[e._v("Certificados")])]):e._e(),e.permission&&e.commentReview?t("router-link",{staticClass:"remove-underline displayRouterMobile animationMenuMobile",attrs:{to:"/comunidade"}},[t("img",{attrs:{src:o("b2a3")}}),t("div",{staticClass:"titleRouter"},[e._v("Comunidade")])]):e._e(),e.permission?t("router-link",{staticClass:"remove-underline displayRouterMobile animationMenuMobile",attrs:{to:"/members"}},[t("img",{attrs:{src:o("e685")}}),t("div",{staticClass:"titleRouter"},[e._v("Membros")])]):e._e(),e.moderationHelper?t("router-link",{staticClass:"remove-underline displayRouterMobile animationMenuMobile",attrs:{to:"/ajuda"}},[t("img",{attrs:{src:o("8265")}}),t("div",{staticClass:"titleRouter"},[e._v("Ajuda")])]):e._e()],1),t("div",{staticClass:"gridSideMobile animationOpacity2"},[null===e.picProfile?t("div",{staticClass:"logado logox animationOpacity2",on:{click:e.openModalProfile}},[t("div",{staticClass:"notPic"},[e.firstName?t("span",[e._v(e._s(e.firstName.substr(0,1)))]):e._e()])]):t("div",{staticClass:"logado logoxpic",on:{click:e.openModalProfile}},[t("img",{attrs:{src:e.picProfile}})]),t("div",{staticClass:"footerItens animationOpacity2 mtSideName"},[t("div",{staticClass:"name"},[e._v(e._s(e.firstName))]),t("div",{staticClass:"painel",on:{click:e.openModalPainel}},[e._v(" "+e._s(e.painelName)+" ")])]),t("div",{staticClass:"footerItens animationOpacity2"},[t("b-dropdown",{ref:"dropdownsidebar",staticClass:"dropDownSidebar",attrs:{dropup:""},scopedSlots:e._u([{key:"button-content",fn:function(){return[t("svg",{staticClass:"iconColor",attrs:{id:"dropslide",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M12 15C13.6569 15 15 13.6569 15 12C15 10.3431 13.6569 9 12 9C10.3431 9 9 10.3431 9 12C9 13.6569 10.3431 15 12 15Z",stroke:"#333333","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}}),t("path",{attrs:{d:"M19.4 15C19.2669 15.3016 19.2272 15.6362 19.286 15.9606C19.3448 16.285 19.4995 16.5843 19.73 16.82L19.79 16.88C19.976 17.0657 20.1235 17.2863 20.2241 17.5291C20.3248 17.7719 20.3766 17.0322 20.3766 18.295C20.3766 18.5578 20.3248 18.8181 20.2241 19.0609C20.1235 19.3037 19.976 19.5243 19.79 19.71C19.6043 19.896 19.3837 20.0435 19.1409 20.1441C18.8981 20.2448 18.6378 20.2966 18.375 20.2966C18.1122 20.2966 17.8519 20.2448 17.6091 20.1441C17.3663 20.0435 17.1457 19.896 16.96 19.71L16.9 19.65C16.6643 19.4195 16.365 19.2648 16.0406 19.206C15.7162 19.1472 15.3816 19.1869 15.08 19.32C14.7842 19.4468 14.532 19.6572 14.3543 19.9255C14.1766 20.1938 14.0813 20.5082 14.08 20.83V21C14.08 21.5304 13.8693 22.0391 13.4942 22.4142C13.1191 22.7893 12.6104 23 12.08 23C11.5496 23 11.0409 22.7893 10.6658 22.4142C10.2907 22.0391 10.08 21.5304 10.08 21V20.91C10.0723 20.579 9.96512 20.258 9.77251 19.9887C9.5799 19.7194 9.31074 19.5143 9 19.4C8.69838 19.2669 8.36381 19.2272 8.03941 19.286C7.71502 19.3448 7.41568 19.4995 7.18 19.73L7.12 19.79C6.93425 19.976 6.71368 20.1235 6.47088 20.2241C6.22808 20.3248 5.96783 20.3766 5.705 20.3766C5.44217 20.3766 5.18192 20.3248 4.93912 20.2241C4.69632 20.1235 4.47575 19.976 4.29 19.79C4.10405 19.6043 3.95653 19.3837 3.85588 19.1409C3.75523 18.8981 3.70343 18.6378 3.70343 18.375C3.70343 18.1122 3.75523 17.8519 3.85588 17.6091C3.95653 17.3663 4.10405 17.1457 4.29 16.96L4.35 16.9C4.58054 16.6643 4.73519 16.365 4.794 16.0406C4.85282 15.7162 4.81312 15.3816 4.68 15.08C4.55324 14.7842 4.34276 14.532 4.07447 14.3543C3.80618 14.1766 3.49179 14.0813 3.17 14.08H3C2.46957 14.08 1.96086 13.8693 1.58579 13.4942C1.21071 13.1191 1 12.6104 1 12.08C1 11.5496 1.21071 11.0409 1.58579 10.6658C1.96086 10.2907 2.46957 10.08 3 10.08H3.09C3.42099 10.0723 3.742 9.96512 4.0113 9.77251C4.28059 9.5799 4.48572 9.31074 4.6 9C4.73312 8.69838 4.77282 8.36381 4.714 8.03941C4.65519 7.71502 4.50054 7.41568 4.27 7.18L4.21 7.12C4.02405 6.93425 3.87653 6.71368 3.77588 6.47088C3.67523 6.22808 3.62343 5.96783 3.62343 5.705C3.62343 5.44217 3.67523 5.18192 3.77588 4.93912C3.87653 4.69632 4.02405 4.47575 4.21 4.29C4.39575 4.10405 4.61632 3.95653 4.85912 3.85588C5.10192 3.75523 5.36217 3.70343 5.625 3.70343C5.88783 3.70343 6.14808 3.75523 6.39088 3.85588C6.63368 3.95653 6.85425 4.10405 7.04 4.29L7.1 4.35C7.33568 4.58054 7.63502 4.73519 7.95941 4.794C8.28381 4.85282 8.61838 4.81312 8.92 4.68H9C9.29577 4.55324 9.54802 4.34276 9.72569 4.07447C9.90337 3.80618 9.99872 3.49179 10 3.17V3C10 2.46957 10.2107 1.96086 10.5858 1.58579C10.9609 1.21071 11.4696 1 12 1C12.5304 1 13.0391 1.21071 13.4142 1.58579C13.7893 1.96086 14 2.46957 14 3V3.09C14.0013 3.41179 14.0966 3.72618 14.2743 3.99447C14.452 4.26276 14.7042 4.47324 15 4.6C15.3016 4.73312 15.6362 4.77282 15.9606 4.714C16.285 4.65519 16.5843 4.50054 16.82 4.27L16.88 4.21C17.0657 4.02405 17.2863 3.87653 17.5291 3.77588C17.7719 3.67523 18.0322 3.62343 18.295 3.62343C18.5578 3.62343 18.8181 3.67523 19.0609 3.77588C19.3037 3.87653 19.5243 4.02405 19.71 4.21C19.896 4.39575 20.0435 4.61632 20.1441 4.85912C20.2448 5.10192 20.2966 5.36217 20.2966 5.625C20.2966 5.88783 20.2448 6.14808 20.1441 6.39088C20.0435 6.63368 19.896 6.85425 19.71 7.04L19.65 7.1C19.4195 7.33568 19.2648 7.63502 19.206 7.95941C19.1472 8.28381 19.1869 8.61838 19.32 8.92V9C19.4468 9.29577 19.6572 9.54802 19.9255 9.72569C20.1938 9.90337 20.5082 9.99872 20.83 10H21C21.5304 10 22.0391 10.2107 22.4142 10.5858C22.7893 10.9609 23 11.4696 23 12C23 12.5304 22.7893 13.0391 22.4142 13.4142C22.0391 13.7893 21.5304 14 21 14H20.91C20.5882 14.0013 20.2738 14.0966 20.0055 14.2743C19.7372 14.452 19.5268 14.7042 19.4 15Z",stroke:"#333333","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}})])]},proxy:!0}])},[e.permission2?t("b-dropdown-item",{staticClass:"subMenu",on:{click:e.updateTypeView}},[t("a",{staticClass:"remove-underline"},[t("svg",{staticClass:"iconColor",attrs:{width:"21",height:"21",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M20 7H4C2.89543 7 2 7.89543 2 9V20C2 21.1046 2.89543 22 4 22H20C21.1046 22 22 21.1046 22 20V9C22 7.89543 21.1046 7 20 7Z",stroke:"#333333","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}}),t("path",{attrs:{d:"M17 2L12 7L7 2",stroke:"#333333","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}})]),e._v(" Ver como "+e._s(e.typeText)+" ")])]):e._e(),t("b-dropdown-item",{staticClass:"subMenu"},[t("router-link",{staticClass:"remove-underline",attrs:{to:"/minha-conta"}},[t("svg",{staticClass:"iconColor",attrs:{width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M17.5 18.375V16.625C17.5 15.6967 17.1313 14.8065 16.4748 14.1502C15.8185 13.4937 14.9283 13.125 14 13.125H7C6.07174 13.125 5.1815 13.4937 4.52512 14.1502C3.86875 14.8065 3.5 15.6967 3.5 16.625V18.375",stroke:"#333333","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}}),t("path",{attrs:{d:"M10.5 9.625C12.433 9.625 14 8.058 14 6.125C14 4.192 12.433 2.625 10.5 2.625C8.567 2.625 7 4.192 7 6.125C7 8.058 8.567 9.625 10.5 9.625Z",stroke:"#333333","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}})]),e._v(" Perfil ")])],1),t("b-dropdown-item",{staticClass:"subMenu"},[t("a",{staticClass:"remove-underline",on:{click:e.openModalProgress}},[t("svg",{staticClass:"iconColor",attrs:{width:"21",height:"21",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",stroke:"#333333","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}}),t("path",{attrs:{d:"M2 12H22",stroke:"#333333","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}}),t("path",{attrs:{d:"M12 2C14.5013 4.73835 15.9228 8.29203 16 12C15.9228 15.708 14.5013 19.2616 12 22C9.49872 19.2616 8.07725 15.708 8 12C8.07725 8.29203 9.49872 4.73835 12 2V2Z",stroke:"#333333","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}})]),e._v(" Meus Cursos ")])]),t("b-dropdown-item",{staticClass:"subMenu"},[e.permission?t("router-link",{staticClass:"remove-underline",attrs:{to:"/configuracoes"}},[t("svg",{staticClass:"iconColor",attrs:{width:"20",height:"17",viewBox:"0 0 20 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M17.3636 5.16667H18.2636V4.26667H17.3636V5.16667ZM17.3636 16V16.9H18.2636V16H17.3636ZM2.63636 16H1.73636V16.9H2.63636V16ZM2.63636 5.16667V4.26667H1.73636V5.16667H2.63636ZM19 1H19.9V0.1H19V1ZM1 1V0.1H0.1V1H1ZM1 5.16667H0.1V6.06667H1V5.16667ZM19 5.16667V6.06667H19.9V5.16667H19ZM8.36364 7.6C7.86658 7.6 7.46364 8.00294 7.46364 8.5C7.46364 8.99706 7.86658 9.4 8.36364 9.4V7.6ZM11.6364 9.4C12.1334 9.4 12.5364 8.99706 12.5364 8.5C12.5364 8.00294 12.1334 7.6 11.6364 7.6V9.4ZM16.4636 5.16667V16H18.2636V5.16667H16.4636ZM17.3636 15.1H2.63636V16.9H17.3636V15.1ZM3.53636 16V5.16667H1.73636V16H3.53636ZM19 0.1H1V1.9H19V0.1ZM0.1 1V5.16667H1.9V1H0.1ZM1 6.06667H19V4.26667H1V6.06667ZM19.9 5.16667V1H18.1V5.16667H19.9ZM2.63636 6.06667H17.3636V4.26667H2.63636V6.06667ZM8.36364 9.4H11.6364V7.6H8.36364V9.4Z",fill:"#404040"}})]),e._v(" Painel ")]):e._e()],1),t("b-dropdown-item",{staticClass:"subMenuClose",on:{click:e.logout}},[t("a",{staticClass:"remove-underline"},[t("svg",{attrs:{width:"16",height:"20",viewBox:"0 0 16 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M16 10C16 9.7348 15.8946 9.4804 15.7071 9.2929C15.5196 9.1054 15.2652 9 15 9H7.41L9.71 6.71C9.8032 6.61676 9.8772 6.50607 9.9277 6.38425C9.9781 6.26243 10.0041 6.13186 10.0041 6C10.0041 5.86814 9.9781 5.73757 9.9277 5.61575C9.8772 5.49393 9.8032 5.38324 9.71 5.29C9.6168 5.19676 9.5061 5.1228 9.3842 5.07234C9.2624 5.02188 9.1319 4.99591 9 4.99591C8.8681 4.99591 8.7376 5.02188 8.6158 5.07234C8.4939 5.1228 8.3832 5.19676 8.29 5.29L4.29 9.29C4.19896 9.3851 4.12759 9.4972 4.08 9.62C3.97998 9.8635 3.97998 10.1365 4.08 10.38C4.12759 10.5028 4.19896 10.6149 4.29 10.71L8.29 14.71C8.383 14.8037 8.4936 14.8781 8.6154 14.9289C8.7373 14.9797 8.868 15.0058 9 15.0058C9.132 15.0058 9.2627 14.9797 9.3846 14.9289C9.5064 14.8781 9.617 14.8037 9.71 14.71C9.8037 14.617 9.8781 14.5064 9.9289 14.3846C9.9797 14.2627 10.0058 14.132 10.0058 14C10.0058 13.868 9.9797 13.7373 9.9289 13.6154C9.8781 13.4936 9.8037 13.383 9.71 13.29L7.41 11H15C15.2652 11 15.5196 10.8946 15.7071 10.7071C15.8946 10.5196 16 10.2652 16 10ZM13 0H3C2.20435 0 1.44129 0.31607 0.87868 0.87868C0.31607 1.44129 0 2.20435 0 3V17C0 17.7956 0.31607 18.5587 0.87868 19.1213C1.44129 19.6839 2.20435 20 3 20H13C13.7956 20 14.5587 19.6839 15.1213 19.1213C15.6839 18.5587 16 17.7956 16 17V14C16 13.7348 15.8946 13.4804 15.7071 13.2929C15.5196 13.1054 15.2652 13 15 13C14.7348 13 14.4804 13.1054 14.2929 13.2929C14.1054 13.4804 14 13.7348 14 14V17C14 17.2652 13.8946 17.5196 13.7071 17.7071C13.5196 17.8946 13.2652 18 13 18H3C2.73478 18 2.48043 17.8946 2.29289 17.7071C2.10536 17.5196 2 17.2652 2 17V3C2 2.73478 2.10536 2.48043 2.29289 2.29289C2.48043 2.10536 2.73478 2 3 2H13C13.2652 2 13.5196 2.10536 13.7071 2.29289C13.8946 2.48043 14 2.73478 14 3V6C14 6.26522 14.1054 6.51957 14.2929 6.70711C14.4804 6.89464 14.7348 7 15 7C15.2652 7 15.5196 6.89464 15.7071 6.70711C15.8946 6.51957 16 6.26522 16 6V3C16 2.20435 15.6839 1.44129 15.1213 0.87868C14.5587 0.31607 13.7956 0 13 0Z",fill:"#FF0C37"}})]),e._v(" Finalizar Sessão ")])])],1)],1)])]),e.existColorFixed?e._e():t("div",{staticClass:"switchTheme animationOpacity2 switchThemeMobile",class:{"ml-3":e.isMobile}},["Claro"===e.themeColor?t("div",{staticClass:"info-footer textLabel textLabelSpace"},[e._v(" Ativar Modo Escuro: ")]):e._e(),"Escuro"===e.themeColor?t("div",{staticClass:"info-footer textLabel lightText textLabelSpace"},[e._v(" Ativar Modo Claro: ")]):e._e(),t("label",{staticClass:"switch spaceMobileSw",attrs:{id:"switch"}},[t("input",{attrs:{type:"checkbox",id:"slider"},on:{click:function(t){return e.setTheme()}}}),t("span",{staticClass:"slider round"})])])])])]):t("div",{staticClass:"slidebar",attrs:{id:"slidebar"}},[t("a",{staticClass:"logox",on:{click:e.openHome}},[null!==e.logoPainel?t("img",{staticClass:"animationOpacity2 menufechado",attrs:{src:e.logoPainel}}):t("img",{staticClass:"animationOpacity2 menufechado",attrs:{src:o("7d0b")}})]),null!==e.logomarcaPainel?t("a",{staticClass:"logox2",on:{click:e.openHome}},[t("img",{staticClass:"animationOpacity2 menuaberto",attrs:{src:e.logomarcaPainel}})]):t("a",{staticClass:"logox3",on:{click:e.openHome}},[null!==e.logoPainel?t("img",{staticClass:"animationOpacity2 menuaberto",attrs:{src:e.logoPainel}}):t("img",{staticClass:"animationOpacity2 menuaberto",attrs:{src:o("7d0b")}})]),t("div",{staticClass:"btns-slidebar"},[t("a",{staticClass:"remove-underline",attrs:{id:"search"},on:{click:e.openSearch}},[e._m(0)]),t("router-link",{staticClass:"remove-underline",attrs:{to:"/home"}},[t("div",{staticClass:"flex"},[t("img",{staticClass:"iconColor",attrs:{src:o("8d40")}}),t("div",{staticClass:"titleSlide animationOpacity2"},[e._v("Home")])])]),e.existConfigCert?t("router-link",{staticClass:"remove-underline",attrs:{to:"/certificates"}},[t("div",{staticClass:"flex"},[t("img",{staticClass:"iconColor",attrs:{src:o("918b")}}),t("div",{staticClass:"titleSlide animationOpacity2"},[e._v("Certificados")])])]):e._e(),e.permission&&e.commentReview?t("router-link",{staticClass:"remove-underline",attrs:{to:"/comunidade"}},[t("div",{staticClass:"flex"},[t("img",{staticClass:"iconColor",attrs:{src:o("b2a3")}}),t("div",{staticClass:"titleSlide animationOpacity2"},[e._v("Comunidade")])])]):e._e(),e.permission?t("router-link",{staticClass:"remove-underline",attrs:{to:"/members"}},[t("div",{staticClass:"flex"},[t("img",{staticClass:"iconColor",attrs:{src:o("e685")}}),t("div",{staticClass:"titleSlide animationOpacity2"},[e._v("Membros")])])]):e._e(),e.permission?t("router-link",{staticClass:"remove-underline",attrs:{to:"/assinatura"}},[t("div",{staticClass:"flex"},[t("img",{staticClass:"iconColor",attrs:{src:o("57ff")}}),t("div",{staticClass:"titleSlide animationOpacity2"},[e._v("Assinatura")])])]):e._e(),e.moderationHelper?t("router-link",{staticClass:"remove-underline",attrs:{to:"/ajuda"}},[t("div",{staticClass:"flex"},[t("img",{staticClass:"iconColor",attrs:{src:o("8265")}}),0!==e.countMessages?t("div",{staticClass:"countMessages"},[e._v(" "+e._s(e.countMessages)+" ")]):e._e(),t("div",{staticClass:"titleSlide animationOpacity2"},[e._v("Ajuda")])])]):e._e()],1),t("div",{staticClass:"footer-sidebar"},[t("div",{staticClass:"lineDivSidebar closeItem animationOpacity2"}),null===e.picProfile?t("div",{staticClass:"logado logoxpic",on:{click:e.openModalProfile}},[t("div",{staticClass:"notPic"},[e.firstName?t("span",[e._v(e._s(e.firstName.substr(0,1)))]):e._e()])]):t("div",{staticClass:"logado logoxpic",on:{click:e.openModalProfile}},[t("img",{attrs:{src:e.picProfile}})]),t("div",{staticClass:"footerItens animationOpacity2"},[t("div",{staticClass:"name"},[e._v(e._s(e.firstName))]),t("div",{staticClass:"painel",on:{click:e.openModalPainel}},[e._v(e._s(e.painelName))])]),t("div",{staticClass:"footerItens animationOpacity2"},[t("b-dropdown",{ref:"dropdownsidebar",staticClass:"dropDownSidebar",attrs:{dropup:""},scopedSlots:e._u([{key:"button-content",fn:function(){return[t("svg",{staticClass:"iconColor",attrs:{id:"dropslide",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M12 15C13.6569 15 15 13.6569 15 12C15 10.3431 13.6569 9 12 9C10.3431 9 9 10.3431 9 12C9 13.6569 10.3431 15 12 15Z",stroke:"#333333","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}}),t("path",{attrs:{d:"M19.4 15C19.2669 15.3016 19.2272 15.6362 19.286 15.9606C19.3448 16.285 19.4995 16.5843 19.73 16.82L19.79 16.88C19.976 17.0657 20.1235 17.2863 20.2241 17.5291C20.3248 17.7719 20.3766 17.0322 20.3766 18.295C20.3766 18.5578 20.3248 18.8181 20.2241 19.0609C20.1235 19.3037 19.976 19.5243 19.79 19.71C19.6043 19.896 19.3837 20.0435 19.1409 20.1441C18.8981 20.2448 18.6378 20.2966 18.375 20.2966C18.1122 20.2966 17.8519 20.2448 17.6091 20.1441C17.3663 20.0435 17.1457 19.896 16.96 19.71L16.9 19.65C16.6643 19.4195 16.365 19.2648 16.0406 19.206C15.7162 19.1472 15.3816 19.1869 15.08 19.32C14.7842 19.4468 14.532 19.6572 14.3543 19.9255C14.1766 20.1938 14.0813 20.5082 14.08 20.83V21C14.08 21.5304 13.8693 22.0391 13.4942 22.4142C13.1191 22.7893 12.6104 23 12.08 23C11.5496 23 11.0409 22.7893 10.6658 22.4142C10.2907 22.0391 10.08 21.5304 10.08 21V20.91C10.0723 20.579 9.96512 20.258 9.77251 19.9887C9.5799 19.7194 9.31074 19.5143 9 19.4C8.69838 19.2669 8.36381 19.2272 8.03941 19.286C7.71502 19.3448 7.41568 19.4995 7.18 19.73L7.12 19.79C6.93425 19.976 6.71368 20.1235 6.47088 20.2241C6.22808 20.3248 5.96783 20.3766 5.705 20.3766C5.44217 20.3766 5.18192 20.3248 4.93912 20.2241C4.69632 20.1235 4.47575 19.976 4.29 19.79C4.10405 19.6043 3.95653 19.3837 3.85588 19.1409C3.75523 18.8981 3.70343 18.6378 3.70343 18.375C3.70343 18.1122 3.75523 17.8519 3.85588 17.6091C3.95653 17.3663 4.10405 17.1457 4.29 16.96L4.35 16.9C4.58054 16.6643 4.73519 16.365 4.794 16.0406C4.85282 15.7162 4.81312 15.3816 4.68 15.08C4.55324 14.7842 4.34276 14.532 4.07447 14.3543C3.80618 14.1766 3.49179 14.0813 3.17 14.08H3C2.46957 14.08 1.96086 13.8693 1.58579 13.4942C1.21071 13.1191 1 12.6104 1 12.08C1 11.5496 1.21071 11.0409 1.58579 10.6658C1.96086 10.2907 2.46957 10.08 3 10.08H3.09C3.42099 10.0723 3.742 9.96512 4.0113 9.77251C4.28059 9.5799 4.48572 9.31074 4.6 9C4.73312 8.69838 4.77282 8.36381 4.714 8.03941C4.65519 7.71502 4.50054 7.41568 4.27 7.18L4.21 7.12C4.02405 6.93425 3.87653 6.71368 3.77588 6.47088C3.67523 6.22808 3.62343 5.96783 3.62343 5.705C3.62343 5.44217 3.67523 5.18192 3.77588 4.93912C3.87653 4.69632 4.02405 4.47575 4.21 4.29C4.39575 4.10405 4.61632 3.95653 4.85912 3.85588C5.10192 3.75523 5.36217 3.70343 5.625 3.70343C5.88783 3.70343 6.14808 3.75523 6.39088 3.85588C6.63368 3.95653 6.85425 4.10405 7.04 4.29L7.1 4.35C7.33568 4.58054 7.63502 4.73519 7.95941 4.794C8.28381 4.85282 8.61838 4.81312 8.92 4.68H9C9.29577 4.55324 9.54802 4.34276 9.72569 4.07447C9.90337 3.80618 9.99872 3.49179 10 3.17V3C10 2.46957 10.2107 1.96086 10.5858 1.58579C10.9609 1.21071 11.4696 1 12 1C12.5304 1 13.0391 1.21071 13.4142 1.58579C13.7893 1.96086 14 2.46957 14 3V3.09C14.0013 3.41179 14.0966 3.72618 14.2743 3.99447C14.452 4.26276 14.7042 4.47324 15 4.6C15.3016 4.73312 15.6362 4.77282 15.9606 4.714C16.285 4.65519 16.5843 4.50054 16.82 4.27L16.88 4.21C17.0657 4.02405 17.2863 3.87653 17.5291 3.77588C17.7719 3.67523 18.0322 3.62343 18.295 3.62343C18.5578 3.62343 18.8181 3.67523 19.0609 3.77588C19.3037 3.87653 19.5243 4.02405 19.71 4.21C19.896 4.39575 20.0435 4.61632 20.1441 4.85912C20.2448 5.10192 20.2966 5.36217 20.2966 5.625C20.2966 5.88783 20.2448 6.14808 20.1441 6.39088C20.0435 6.63368 19.896 6.85425 19.71 7.04L19.65 7.1C19.4195 7.33568 19.2648 7.63502 19.206 7.95941C19.1472 8.28381 19.1869 8.61838 19.32 8.92V9C19.4468 9.29577 19.6572 9.54802 19.9255 9.72569C20.1938 9.90337 20.5082 9.99872 20.83 10H21C21.5304 10 22.0391 10.2107 22.4142 10.5858C22.7893 10.9609 23 11.4696 23 12C23 12.5304 22.7893 13.0391 22.4142 13.4142C22.0391 13.7893 21.5304 14 21 14H20.91C20.5882 14.0013 20.2738 14.0966 20.0055 14.2743C19.7372 14.452 19.5268 14.7042 19.4 15Z",stroke:"#333333","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}})])]},proxy:!0}],null,!1,2905808540)},[e.permission2?t("b-dropdown-item",{staticClass:"subMenu",on:{click:e.updateTypeView}},[t("a",{staticClass:"remove-underline"},[t("svg",{staticClass:"iconColor",attrs:{width:"21",height:"21",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M20 7H4C2.89543 7 2 7.89543 2 9V20C2 21.1046 2.89543 22 4 22H20C21.1046 22 22 21.1046 22 20V9C22 7.89543 21.1046 7 20 7Z",stroke:"#333333","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}}),t("path",{attrs:{d:"M17 2L12 7L7 2",stroke:"#333333","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}})]),e._v(" Ver como "+e._s(e.typeText)+" ")])]):e._e(),t("b-dropdown-item",{staticClass:"subMenu"},[t("router-link",{staticClass:"remove-underline",attrs:{to:"/minha-conta"}},[t("svg",{staticClass:"iconColor",attrs:{width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M17.5 18.375V16.625C17.5 15.6967 17.1313 14.8065 16.4748 14.1502C15.8185 13.4937 14.9283 13.125 14 13.125H7C6.07174 13.125 5.1815 13.4937 4.52512 14.1502C3.86875 14.8065 3.5 15.6967 3.5 16.625V18.375",stroke:"#333333","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}}),t("path",{attrs:{d:"M10.5 9.625C12.433 9.625 14 8.058 14 6.125C14 4.192 12.433 2.625 10.5 2.625C8.567 2.625 7 4.192 7 6.125C7 8.058 8.567 9.625 10.5 9.625Z",stroke:"#333333","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}})]),e._v(" Perfil ")])],1),0!==e.Allcourses.length?t("b-dropdown-item",{staticClass:"subMenu"},[t("a",{staticClass:"remove-underline",on:{click:e.openModalProgress}},[t("svg",{staticClass:"iconColor",attrs:{width:"21",height:"21",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",stroke:"#333333","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}}),t("path",{attrs:{d:"M2 12H22",stroke:"#333333","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}}),t("path",{attrs:{d:"M12 2C14.5013 4.73835 15.9228 8.29203 16 12C15.9228 15.708 14.5013 19.2616 12 22C9.49872 19.2616 8.07725 15.708 8 12C8.07725 8.29203 9.49872 4.73835 12 2V2Z",stroke:"#333333","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}})]),e._v(" Meus Cursos ")])]):e._e(),t("b-dropdown-item",{staticClass:"subMenu"},[e.permission?t("router-link",{staticClass:"remove-underline",attrs:{to:"/configuracoes"}},[t("svg",{staticClass:"iconColor",attrs:{width:"20",height:"17",viewBox:"0 0 20 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M17.3636 5.16667H18.2636V4.26667H17.3636V5.16667ZM17.3636 16V16.9H18.2636V16H17.3636ZM2.63636 16H1.73636V16.9H2.63636V16ZM2.63636 5.16667V4.26667H1.73636V5.16667H2.63636ZM19 1H19.9V0.1H19V1ZM1 1V0.1H0.1V1H1ZM1 5.16667H0.1V6.06667H1V5.16667ZM19 5.16667V6.06667H19.9V5.16667H19ZM8.36364 7.6C7.86658 7.6 7.46364 8.00294 7.46364 8.5C7.46364 8.99706 7.86658 9.4 8.36364 9.4V7.6ZM11.6364 9.4C12.1334 9.4 12.5364 8.99706 12.5364 8.5C12.5364 8.00294 12.1334 7.6 11.6364 7.6V9.4ZM16.4636 5.16667V16H18.2636V5.16667H16.4636ZM17.3636 15.1H2.63636V16.9H17.3636V15.1ZM3.53636 16V5.16667H1.73636V16H3.53636ZM19 0.1H1V1.9H19V0.1ZM0.1 1V5.16667H1.9V1H0.1ZM1 6.06667H19V4.26667H1V6.06667ZM19.9 5.16667V1H18.1V5.16667H19.9ZM2.63636 6.06667H17.3636V4.26667H2.63636V6.06667ZM8.36364 9.4H11.6364V7.6H8.36364V9.4Z",fill:"#404040"}})]),e._v(" Painel ")]):e._e()],1),t("b-dropdown-item",{staticClass:"subMenuClose",on:{click:e.logout}},[t("a",{staticClass:"remove-underline"},[t("svg",{attrs:{width:"16",height:"20",viewBox:"0 0 16 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M16 10C16 9.7348 15.8946 9.4804 15.7071 9.2929C15.5196 9.1054 15.2652 9 15 9H7.41L9.71 6.71C9.8032 6.61676 9.8772 6.50607 9.9277 6.38425C9.9781 6.26243 10.0041 6.13186 10.0041 6C10.0041 5.86814 9.9781 5.73757 9.9277 5.61575C9.8772 5.49393 9.8032 5.38324 9.71 5.29C9.6168 5.19676 9.5061 5.1228 9.3842 5.07234C9.2624 5.02188 9.1319 4.99591 9 4.99591C8.8681 4.99591 8.7376 5.02188 8.6158 5.07234C8.4939 5.1228 8.3832 5.19676 8.29 5.29L4.29 9.29C4.19896 9.3851 4.12759 9.4972 4.08 9.62C3.97998 9.8635 3.97998 10.1365 4.08 10.38C4.12759 10.5028 4.19896 10.6149 4.29 10.71L8.29 14.71C8.383 14.8037 8.4936 14.8781 8.6154 14.9289C8.7373 14.9797 8.868 15.0058 9 15.0058C9.132 15.0058 9.2627 14.9797 9.3846 14.9289C9.5064 14.8781 9.617 14.8037 9.71 14.71C9.8037 14.617 9.8781 14.5064 9.9289 14.3846C9.9797 14.2627 10.0058 14.132 10.0058 14C10.0058 13.868 9.9797 13.7373 9.9289 13.6154C9.8781 13.4936 9.8037 13.383 9.71 13.29L7.41 11H15C15.2652 11 15.5196 10.8946 15.7071 10.7071C15.8946 10.5196 16 10.2652 16 10ZM13 0H3C2.20435 0 1.44129 0.31607 0.87868 0.87868C0.31607 1.44129 0 2.20435 0 3V17C0 17.7956 0.31607 18.5587 0.87868 19.1213C1.44129 19.6839 2.20435 20 3 20H13C13.7956 20 14.5587 19.6839 15.1213 19.1213C15.6839 18.5587 16 17.7956 16 17V14C16 13.7348 15.8946 13.4804 15.7071 13.2929C15.5196 13.1054 15.2652 13 15 13C14.7348 13 14.4804 13.1054 14.2929 13.2929C14.1054 13.4804 14 13.7348 14 14V17C14 17.2652 13.8946 17.5196 13.7071 17.7071C13.5196 17.8946 13.2652 18 13 18H3C2.73478 18 2.48043 17.8946 2.29289 17.7071C2.10536 17.5196 2 17.2652 2 17V3C2 2.73478 2.10536 2.48043 2.29289 2.29289C2.48043 2.10536 2.73478 2 3 2H13C13.2652 2 13.5196 2.10536 13.7071 2.29289C13.8946 2.48043 14 2.73478 14 3V6C14 6.26522 14.1054 6.51957 14.2929 6.70711C14.4804 6.89464 14.7348 7 15 7C15.2652 7 15.5196 6.89464 15.7071 6.70711C15.8946 6.51957 16 6.26522 16 6V3C16 2.20435 15.6839 1.44129 15.1213 0.87868C14.5587 0.31607 13.7956 0 13 0Z",fill:"#FF0C37"}})]),e._v(" Finalizar Sessão ")])])],1)],1)]),e.existColorFixed?e._e():t("div",{staticClass:"switchTheme animationOpacity2"},["Claro"===e.themeColor?t("div",{staticClass:"info-footer textLabel"},[e._v(" Ativar Modo Escuro: ")]):e._e(),"Escuro"===e.themeColor?t("div",{staticClass:"info-footer textLabel lightText"},[e._v(" Ativar Modo Claro: ")]):e._e(),t("label",{staticClass:"switch",attrs:{id:"switch"}},[t("input",{attrs:{type:"checkbox",id:"slider"},on:{click:function(t){return e.setTheme()}}}),t("span",{staticClass:"slider round"})])])])],1)},i=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"flex"},[t("img",{staticClass:"iconColor",attrs:{src:o("06fc")}}),t("div",{staticClass:"titleSlide animationOpacity2"},[e._v("Pesquisar")])])}],r=o("c7eb"),n=o("1da1"),a=(o("b0c0"),o("d3b7"),o("25f0"),o("4de4"),o("2fd1")),c=o("e508"),l=function(){var e=this,t=e._self._c;return t("b-modal",{attrs:{id:"modal-custom-fields","hide-footer":"",size:"lg"}},[t("div",{staticClass:"spaceModal"},[t("div",{staticClass:"header"},[t("div",{staticClass:"title"},[e._v("Preencha os campos abaixo")]),t("div",{staticClass:"subtitle"},[e._v(" É necessario preencher os campos para ter acesso a plataforma. ")])]),t("div",{staticClass:"lineDiv"}),t("div",e._l(e.finds,(function(o,s){return t("div",{key:o.label},[t("b-form-group",{attrs:{label:o.name,"name-for":"name"}},["text"===o.type?t("b-form-input",{key:s,attrs:{placeholder:o.name},model:{value:o.value,callback:function(t){e.$set(o,"value",t)},expression:"find.value"}}):e._e(),"textarea"===o.type?t("b-form-textarea",{attrs:{placeholder:o.name,rows:"3","max-rows":"6"},model:{value:o.value,callback:function(t){e.$set(o,"value",t)},expression:"find.value"}}):e._e()],1)],1)})),0),t("div",{staticClass:"footer"},[t("button",{on:{click:e.salvarDados}},[e._v("Salvar")])])])])},u=[],d=(o("ac1f"),o("841c"),o("1e7e")),h=o("62f0"),m=o("4dc8"),C=o("7756"),p=o("a78e"),f=o.n(p),g=d["a"].build(),v=(h["a"].build(),m["a"].build()),b={data:function(){return{finds:[],memberId:null,siteId:null}},computed:{currentSite:function(){return this.$store.getters.currentSite}},methods:{getCurrentSiteAndMember:function(){this.siteId=this.currentSite.currentSite.id,this.memberId=this.currentSite.currentMember.id},salvarDados:function(){for(var e=this,t=this.finds,o=0;o<t.length;o++){var s=t[o],i={id:"/site/"+this.memberId+"/"+this.siteId+"/"+s.name,value:s.value};this.$root.$emit("loadOn"),v.postID(i).then((function(t){f.a.set("userCustomFields",!0),e.$store.dispatch("updateUserCustomFields"),e.$root.$emit("bv::hide::modal","modal-custom-fields","#btnShow"),e.$root.$emit("loadOff")})).catch((function(t){e.$root.$emit("loadOff")}))}},getCustomFields:function(){var e=this;g.search().then((function(t){e.finds=t})).catch((function(e){}))}},mounted:function(){this.getCurrentSiteAndMember(),this.getCustomFields()}},w=b,M=(o("6a01"),o("10ca"),o("2877")),k=Object(M["a"])(w,l,u,!1,null,"222d164b",null),_=k.exports,y=o("0174"),H=o("ee40"),x=function(){var e=this,t=e._self._c;return t("b-modal",{attrs:{id:"modal-termos","hide-footer":"",size:"lg"}},[t("div",{staticClass:"spaceModal"},[t("div",{staticClass:"header"},[t("div",{staticClass:"title"},[e._v("Termos de Uso")]),t("div",{staticClass:"subtitle"},[e._v("É necessário estar ciente aos termos de uso!")])]),t("div",{staticClass:"lineDiv"}),0===e.step?t("div",{staticClass:"animationOpacity2"},[t("b-form-group",{attrs:{label:"Vídeo de Introdução","label-for":"descricao"}},["panda"===e.techOrder?t("iframe",{staticClass:"imagem",staticStyle:{border:"0","pointer-events":"all",height:"45vh"},attrs:{height:"100%",width:"100%",src:e.midiaTermosUrl}}):"iframe"!==e.techOrder?t("video",{ref:"videoPlayer",staticClass:"video-js widthVideoPlayer",attrs:{"tech-order":e.techOrder,autoplay:e.autoplay,controls:!0},on:{pause:e.onVideoPause,changed:function(t){return e.playerStateChanged(t)}}},[t("source",{attrs:{src:e.src,type:e.type}})]):t("div",{domProps:{innerHTML:e._s(e.src)}})])],1):e._e(),1===e.step?t("div",{staticClass:"animationOpacity2"},[t("b-form-group",{attrs:{label:"Termos de Uso","label-for":"descricao"}},[t("div",{staticClass:"spaceText",attrs:{id:"spaceText"}},[t("span",{domProps:{innerHTML:e._s(e.termosPainel)}})])])],1):e._e(),0===e.step?t("div",{staticClass:"footer animationOpacity"},[t("button",{staticClass:"next",on:{click:e.next}},[e._v("Próxima etapa")])]):e._e(),1===e.step?t("div",{staticClass:"footer animationOpacity"},[e.existVideo?t("button",{staticClass:"prev",on:{click:e.prev}},[e._v("Voltar")]):e._e(),t("button",{staticClass:"next",on:{click:function(t){return e.salvarDados()}}},[e._v("Confirmar")])]):e._e()])])},V=[],O=(o("fda2"),o("f0e2")),$=(o("040c"),o("e3d7"),h["a"].build()),j={components:{},props:["siteid"],data:function(){return{termosPainel:"",midiaTermos:null,midiaTermosUrl:null,mediaTypeLesson:"",step:0,autoplay:!0,player:null,techOrder:"youtube",type:"video/youtube",src:"",statusCheck:!1,toEnd:!1,existVideo:!0}},methods:{scrollFunction:function(){var e=document.getElementById("spaceText");e.scrollHeight-e.scrollTop===e.clientHeight?this.toEnd=!0:this.toEnd=!1},reachedEndOfText:function(e){e&&(this.toEnd=!0)},salvarDados:function(){var e=this;this.$root.$emit("loadOn");var t={id:"/meta/_termos_"+this.siteid,value:"accepted"};$.postID(t).then((function(t){e.$root.$emit("bv::hide::modal","modal-termos","#btnShow"),e.$root.$emit("loadOff")})).catch((function(t){e.$root.$emit("loadOff")}))},prev:function(){this.getMetaTermosVideo(),this.step=this.step-1},next:function(){this.step=this.step+1},getMetaTermosVideo:function(){var e=this;return Object(n["a"])(Object(r["a"])().mark((function t(){var o,s;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.$root.$emit("loadOn"),t.next=3,e.$store.dispatch("fetchMetas",["introductoryVideo"]);case 3:if(o=t.sent,s=JSON.parse(o.introductoryVideo),null!==o.introductoryVideo&&null!==s.url){t.next=10;break}e.step=1,e.existVideo=!1,t.next=24;break;case 10:if(e.midiaTermos=s.thumb,e.midiaTermosUrl=s.url,e.src=s.url,e.techOrder=s.type,"vimeo"!==s.type){t.next=18;break}e.type="video/vimeo",t.next=23;break;case 18:if("youtube"!==s.type){t.next=22;break}e.type="video/youtube",t.next=23;break;case 22:return t.abrupt("return");case 23:setTimeout((function(){e.getPlayer()}),1e3);case 24:e.$root.$emit("loadOff");case 25:case"end":return t.stop()}}),t)})))()},getMetaTermosTxt:function(){var e=this;return Object(n["a"])(Object(r["a"])().mark((function t(){var o;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$store.dispatch("fetchMetas",["termsOfUse"]);case 2:o=t.sent,e.termosPainel=o.termsOfUse;case 4:case"end":return t.stop()}}),t)})))()},showModalUpload:function(){this.$root.$emit("videotermos"),this.$root.$emit("bv::show::modal","modal-upload","#btnShow")},playerDispose:function(){this.player.dispose()},playerGetTime:function(){return this.player.currentTime()},getPlayer:function(){this.player=Object(O["default"])(this.$refs.videoPlayer,this.options,(function(){}))},onVideoPause:function(){},play:function(){this.player.play()},pause:function(){this.player.pause()},playerStateChanged:function(e){}},mounted:function(){var e=this;this.getMetaTermosTxt(),this.$root.$on("bv::modal::show",(function(t,o){"modal-termos"===o&&(e.getMetaTermosTxt(),e.getMetaTermosVideo())}))}},S=j,P=(o("ae24"),Object(M["a"])(S,x,V,!1,null,"46b2ed60",null)),L=P.exports,A=o("c0a8"),T=o("8e27"),Z=o.n(T),I=o("ba0f"),B=o("4440"),E=o("4c92"),R=h["a"].build(),F=H["a"].build(),N=B["a"].build(),D=m["a"].build(),W=E["a"].build(),U="";U=Z()("https://socket-teste./",{extraHeaders:{Authorization:f.a.get("auth_greennCourse")}});var z={name:"custom-slidebar",components:{ModalPlanos:c["a"],ModalPainel:a["a"],ModalCustomFields:_,ModalTermos:L,ModalNovoPainel:A["a"],SearchModal:y["a"],ModalMyCourses:I["a"]},props:{btn:{type:String}},data:function(){return{email_user:"",blogs:[],theme:"light",permission:!1,permission2:!1,client:{width:0},openMobile:!1,picProfile:null,logoPainel:null,subMenu:!1,countMessages:0,firstName:"",painelName:"",moderationHelper:!0,commentReview:!0,logomarcaPainel:null,isOpen:!1,themeColor:"Claro",existColorFixed:!1,socket:U,typeText:"Aluno",allpainels:"",Allcourses:[],existConfigCert:!0,valuePercentage:0}},computed:{allSites:function(){return this.$store.getters.allSites},currentAuth:function(){return this.$store.getters.currentAuth},currentMember:function(){return this.$store.getters.currentMember},isMobile:function(){return this.client.width<=576?document.body.classList.add("modal-openx"):document.body.classList.remove("modal-openx"),this.client.width<=576},isStudent:function(){return!!this.$store.getters.currentSite.currentMember&&(!!this.$store.getters.currentSite.currentMember.role&&"student"===this.$store.getters.currentSite.currentMember.role)},currentSite:function(){return this.$store.getters.currentSite},currentSiteId:function(){return this.currentSite.currentSite.id||null}},created:function(){var e=localStorage.getItem("sessionID");e&&(this.usernameAlreadySelected=!0,this.socket.auth={sessionID:e},this.socket.connect()),window.addEventListener("resize",this.handleResize),this.handleResize()},methods:{getPorcentage:function(){var e=this;W.read("me").then((function(t){if(f.a.set("exceeded_storage",parseInt(t.percentage,10)>=100),e.valuePercentage=parseInt(t.percentage,10),parseInt(t.percentage,10)>=90&&!f.a.get("modalPlans")){var o=f.a.get("access_level");f.a.set("modalPlans",!0,{expires:1}),"admin"!==o&&"owner"!==o||e.$root.$emit("bv::show::modal","modal-plans","#btnShow")}}))},openSearch:function(){this.$root.$emit("openSearch")},getMeRecurses:function(){var e=this;R.read("/me/all-courses").then((function(t){e.Allcourses=t}))},getTypeView:function(){var e=f.a.get("type_student");this.typeText=void 0===e||"0"===e?"Aluno":"Admin"},updateTypeView:function(){var e=f.a.get("type_student");void 0===e||"0"===e?f.a.set("type_student",1):f.a.set("type_student",0),setTimeout((function(){location.reload()}),1e3)},getPermission2:function(){var e=f.a.get("access_level");this.permission2="admin"===e||"owner"===e},addInRoom:function(e){var t=JSON;t.id=e.current.currentMember.id,t.room=e.current.currentSite.id,t.role=e.current.currentMember.role,this.socket.emit("ADD_ROOM",t)},setCrisp:function(){var e=document.getElementById("1WZET722PJibpmL_crisp");null===e&&(window.$crisp=[],window.CRISP_WEBSITE_ID="51f50494-0113-48c7-9b8b-aab7de4dcf92",window.$crisp.push(["set","user:nickname",["".concat(this.currentSite.currentMember.name)]]),window.$crisp.push(["set","user:email",["".concat(this.currentSite.currentMember.email)]]),window.$crisp.push(["set","user:origem",["club"]]),window.$crisp.push(["do","chat:show"]),window.$crisp.push(["set","session:segments",[["greenn"]]]),setTimeout((function(){var e=document.createElement("script");e.setAttribute("src","https://client.crisp.chat/l.js"),e.setAttribute("id","1WZET722PJibpmL_crisp"),document.getElementsByTagName("head")[0].appendChild(e)}),1e3))},getCommentReview:function(){var e=this;return Object(n["a"])(Object(r["a"])().mark((function t(){var o,s;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$store.dispatch("fetchMetas",["comment_review"]);case 2:o=t.sent,s=o.comment_review,e.commentReview="off"!==s;case 5:case"end":return t.stop()}}),t)})))()},getMetaHelper:function(){var e=this;return Object(n["a"])(Object(r["a"])().mark((function t(){var o,s;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$store.dispatch("fetchMetas",["helper_data"]);case 2:o=t.sent,s=o.helper_data,e.moderationHelper="off"!==s;case 5:case"end":return t.stop()}}),t)})))()},getCurrentSiteAndMember:function(){this.addInRoom(this.currentMember),f.a.set("siteMember",this.currentMember),this.painelName=this.currentSite.currentSite.name,this.firstName=this.currentSite.currentMember.name,window.document.title=this.painelName+" - Greenn.Club",this.allpainels=this.allSites,this.verifyCustomFields()},getCountHelp:function(){var e=this;F.read("unread_messages_count").then((function(t){e.countMessages=t}))},getCertificateConfig:function(){var e=this;N.read("check-exist").then((function(t){e.existConfigCert=t}))},openModalProfile:function(){this.$router.push("/minha-conta")},openHome:function(){this.$router.push("/home")},handleResize:function(){window.matchMedia("(orientation: landscape)").matches&&window.outerWidth<1e3||window.matchMedia("(orientation: portrait)").matches&&window.outerWidth<769&&window.outerHeight<1025?this.client.width=0:this.client.width=window.outerWidth},getColor:function(){var e=this;return Object(n["a"])(Object(r["a"])().mark((function t(){var o,s;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$store.dispatch("fetchMetas",["main_color"]);case 2:o=t.sent,e.color=o.main_color,null!==e.color&&(s=document,s.documentElement.setAttribute("data-color",e.color),document.documentElement.style.setProperty("--maincolor",e.color),document.documentElement.style.setProperty("--maincolorn",e.$func.convertColor(e.color,210)),document.documentElement.style.setProperty("--maincolortrans",e.color+"0f"));case 5:case"end":return t.stop()}}),t)})))()},getLogo:function(){var e=this;return Object(n["a"])(Object(r["a"])().mark((function t(){var o,s;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$store.dispatch("fetchMetas",["logo"]);case 2:o=t.sent,e.logoPainel=o.logo,null!==o.logo&&(s=document.querySelector("link[rel~='icon']"),s||(s=document.createElement("link"),s.rel="icon",document.getElementsByTagName("head")[0].appendChild(s)),s.href=o.logo);case 5:case"end":return t.stop()}}),t)})))()},getPicProfile:function(){var e=this;R.read("/meta").then((function(t){e.picProfile=t.picture}))},setTheme:function(){"light"===this.theme?(this.theme="dark",f.a.set("themeClub","dark",{expires:365}),this.themeColor="Escuro"):(this.theme="light",f.a.set("themeClub","light",{expires:365}),this.themeColor="Claro"),this.insertTheme()},insertTheme:function(){var e=document,t=f.a.get("themeClub");void 0===t||null===t?(e.documentElement.setAttribute("data-theme","light"),document.getElementById("slider").checked=!1):(e.documentElement.setAttribute("data-theme",t),document.getElementById("slider").checked="light"!==t),this.$root.$emit("loadTheme"),this.$root.$emit("loadsettheme")},getThemeFixed:function(){var e=this;return Object(n["a"])(Object(r["a"])().mark((function t(){var o;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$store.dispatch("fetchMetas",["theme_fixed_painel"]);case 2:o=t.sent,"on"===o.theme_fixed_painel?e.getThemeFixedColor():e.insertTheme();case 4:case"end":return t.stop()}}),t)})))()},getThemeFixedColor:function(){var e=this;return Object(n["a"])(Object(r["a"])().mark((function t(){var o,s;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$store.dispatch("fetchMetas",["theme_fixed_painel_color"]);case 2:o=t.sent,s=document,"light"===o.theme_fixed_painel_color?(f.a.set("themeClub","light",{expires:365}),e.theme="light",e.themeColor="Claro"):(f.a.set("themeClub","dark",{expires:365}),e.theme="dark",e.themeColor="Escuro"),e.existColorFixed=!0,s.documentElement.setAttribute("data-theme",e.theme),e.$root.$emit("loadTheme"),e.$root.$emit("loadsettheme");case 9:case"end":return t.stop()}}),t)})))()},getPermission:function(){var e=this;return Object(n["a"])(Object(r["a"])().mark((function t(){var o,s,i;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(o=f.a.get("access_level"),s=f.a.get("type_student"),"admin"!==o&&"owner"!==o&&"student_moderator"!==o){t.next=13;break}if(1!==s&&"1"!==s){t.next=6;break}return e.permission=!1,t.abrupt("return");case 6:return t.next=8,e.$store.dispatch("fetchMetas",["crisp_owner"]);case 8:i=t.sent,"on"==i.crisp_owner&&"owner"==o?e.setCrisp():"off"!=i.crisp_owner&&null!=i.crisp_owner||e.setCrisp(),e.permission=!0,t.next=14;break;case 13:e.permission=!1;case 14:case"end":return t.stop()}}),t)})))()},getMetaTermos:function(){var e=this;return Object(n["a"])(Object(r["a"])().mark((function t(){var o,s;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$store.dispatch("fetchMetas",["termsOfUseActivated"]);case 2:o=t.sent,s=o.termsOfUseActivated,"on"===s&&e.verifyAcceptTerms();case 5:case"end":return t.stop()}}),t)})))()},openModalProgress:function(){this.$root.$emit("openmycourses"),this.$root.$emit("bv::show::modal","modal-my-courses","#btnShow")},verifyAcceptTerms:function(){var e=this;return Object(n["a"])(Object(r["a"])().mark((function t(){return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.currentSiteId){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,R.read("/meta?keys[]=_termos_"+e.currentSiteId).then((function(t){var o=("_termos_"+e.currentSiteId).toString();"accepted"!==t[o]&&e.$root.$emit("bv::show::modal","modal-termos","#btnShow")}));case 4:case"end":return t.stop()}}),t)})))()},openModalPainel:function(){this.$root.$emit("bv::show::modal","modal-select-painel","#btnShow"),this.$root.$emit("getAllPainels")},openModalBlogs:function(){this.$bvModal.show("modalSelectBlog")},logout:function(){this.$store.dispatch("logoutRequest").catch((function(){}))},selectBlog:function(e){this.$store.dispatch("blogSelected",e)},getLogomarca:function(){var e=this;return Object(n["a"])(Object(r["a"])().mark((function t(){var o;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$store.dispatch("fetchMetas",["logomarca"]);case 2:o=t.sent,e.logomarcaPainel=o.logomarca;case 4:case"end":return t.stop()}}),t)})))()},rediretTo:function(){var e=this;if("greenn.club"===window.location.host&&(window.location.href="https://app.greenn.club/home"),"app.greenn.club"===window.location.host&&"student"===this.currentSite.currentMember.role){var t=this.allSites.filter((function(t){return t.id===e.currentSiteId})).pop();this.$store.dispatch("blogSelected",t)}},logoutUser:function(){var e=this;Object(C["a"])("erro","Excesso de Usuários Conectados, você será Desconectado!"),setTimeout((function(){e.$store.dispatch("logoutRequest").catch((function(){}))}),5e3)},verifyCustomFields:function(){var e=this,t={id:"/site/check-custom"};D.read(t).then((function(t){!1===t.filled_data&&e.$root.$emit("bv::show::modal","modal-custom-fields","#btnShow")}))}},mounted:function(){var e=this;this.rediretTo(),this.getCountHelp(),this.getThemeFixed(),this.getPermission(),this.getPermission2(),this.getTypeView(),this.getPicProfile(),this.getLogo(),this.getColor(),this.getCertificateConfig(),this.getMetaHelper(),this.getCurrentSiteAndMember(),this.getCommentReview(),this.getMetaTermos(),this.getLogomarca(),this.getMeRecurses(),this.$root.$on("newpicprofile",(function(t){e.getPicProfile()})),this.$root.$on("changedlogo",(function(t){e.getLogo()})),this.$root.$on("changedlogomarca",(function(t){e.getLogomarca()})),this.$root.$on("changedmaincolor",(function(t){e.getColor()})),this.$root.$on("changedmainhelper",(function(t){e.getMetaHelper()})),this.$root.$on("changedcommentreview",(function(t){e.getCommentReview()})),this.$root.$on("stepopendropdown",(function(t){e.$refs.dropdownsidebar.show(),e.$refs.dropdownsidebar.toggle(),e.$refs.dropdownsidebar.visible=!0,e.$refs.dropdownsidebar.showMenu()})),this.$root.$on("bv::modal::hide",(function(t,o){"modal-termos"===o&&e.verifyAcceptTerms()})),this.socket.onAny((function(e){})),this.socket.on("session",(function(t){var o=t.sessionID,s=t.userID;e.socket.auth={sessionID:o},localStorage.setItem("sessionID",o),e.socket.userID=s})),this.socket.on("LOGOUT",(function(t){e.logoutUser()})),this.socket.on("ADDED_ROOM",(function(e){})),this.socket.on("UPDATE_USERS",(function(e){})),this.getPorcentage()}},G=z,K=(o("03da"),Object(M["a"])(G,s,i,!1,null,"024432da",null));t["a"]=K.exports},e685:function(e,t,o){e.exports=o.p+"img/members.14c2df1b.svg"},ee40:function(e,t,o){"use strict";o.d(t,"a",(function(){return l}));var s=o("bee2"),i=o("d4ec"),r=o("262e"),n=o("2caf"),a=o("ade3"),c=o("9d56"),l=function(e){Object(r["a"])(o,e);var t=Object(n["a"])(o);function o(){return Object(i["a"])(this,o),t.apply(this,arguments)}return Object(s["a"])(o)}(c["a"]);Object(a["a"])(l,"resource","ticket")},f6bf:function(e,t,o){e.exports=o.p+"img/fechar2.619b14df.svg"}}]);
//# sourceMappingURL=chunk-f2b9b57e.4e4907c6.js.map