(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5dcd678e"],{"0075":function(t,e,s){"use strict";s("59c6")},"399a":function(t,e,s){t.exports=s.p+"img/iframe.f982a181.png"},"4a1b":function(t,e,s){"use strict";s.r(e);var i=function(){var t=this,e=t._self._c;return"v2"===t.clubVersion?e("div",{staticClass:"createLessons"},[e("div",{staticClass:"container",attrs:{"data-anima":"top"}},[e("modal-upload",{attrs:{data:t.data,typeLesson:t.typeContentSelected}}),e("b-row",{staticClass:"spaceWizzard"},[e("b-col",{staticClass:"pt-5",attrs:{cols:"12",md:"3"}},[e("div",{staticClass:"navigate"},[e("div",{staticClass:"title title-v2 animationOpacity"},[t._v(" "+t._s(t.nameCourse)+" "),e("button",{staticClass:"viewModuleLesson",attrs:{id:"viewModuleLesson"},on:{click:function(e){return t.viewCourse()}}},[t._v(" Ver Curso "),e("svg",{attrs:{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M9.375 8.75L12.5 5.625L9.375 2.5",stroke:"#C4C4C4","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round"}}),e("path",{attrs:{d:"M2.5 12.5V8.125C2.5 7.46194 2.76339 6.82606 3.23223 6.35725C3.70107 5.88839 4.33696 5.625 5 5.625H12.5",stroke:"#C4C4C4","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round"}})])])]),e("div",{staticClass:"lineDiv"}),e("router-link",{staticClass:"removeLink",attrs:{to:"/config_curso/"+t.cursoAtual}},[e("div",{staticClass:"spaceNav"},[e("div",{staticClass:"text"},[e("svg",{attrs:{width:"20",height:"18",viewBox:"0 0 20 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M17 0H3C2.20435 0 1.44129 0.316071 0.87868 0.87868C0.316071 1.44129 0 2.20435 0 3V11C0 11.7956 0.316071 12.5587 0.87868 13.1213C1.44129 13.6839 2.20435 14 3 14H9V16H5C4.73478 16 4.48043 16.1054 4.29289 16.2929C4.10536 16.4804 4 16.7348 4 17C4 17.2652 4.10536 17.5196 4.29289 17.7071C4.48043 17.8946 4.73478 18 5 18H15C15.2652 18 15.5196 17.8946 15.7071 17.7071C15.8946 17.5196 16 17.2652 16 17C16 16.7348 15.8946 16.4804 15.7071 16.2929C15.5196 16.1054 15.2652 16 15 16H11V14H17C17.7956 14 18.5587 13.6839 19.1213 13.1213C19.6839 12.5587 20 11.7956 20 11V3C20 2.20435 19.6839 1.44129 19.1213 0.87868C18.5587 0.316071 17.7956 0 17 0ZM18 11C18 11.2652 17.8946 11.5196 17.7071 11.7071C17.5196 11.8946 17.2652 12 17 12H3C2.73478 12 2.48043 11.8946 2.29289 11.7071C2.10536 11.5196 2 11.2652 2 11V3C2 2.73478 2.10536 2.48043 2.29289 2.29289C2.48043 2.10536 2.73478 2 3 2H17C17.2652 2 17.5196 2.10536 17.7071 2.29289C17.8946 2.48043 18 2.73478 18 3V11Z",fill:"#333333"}})]),t._v(" Dados do Curso ")]),e("img",{attrs:{src:s("a7ef")}})])]),e("div",{staticClass:"lineDiv"}),e("router-link",{staticClass:"removeLink",class:{disableLink:t.existParans},attrs:{to:"/config_curso/"+t.cursoAtual+"/module"}},[e("div",{staticClass:"spaceNav"},[e("div",{staticClass:"text"},[e("svg",{attrs:{width:"22",height:"20",viewBox:"0 0 22 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M21.47 16.82L20.47 12.96L17.32 1.37003C17.2519 1.11437 17.0853 0.896104 16.8567 0.76303C16.628 0.629955 16.3559 0.592918 16.1 0.66003L12.23 1.66003C12.1376 1.55767 12.0251 1.47552 11.8995 1.41873C11.7739 1.36194 11.6379 1.33174 11.5 1.33003H1.5C1.23478 1.33003 0.98043 1.43539 0.792893 1.62292C0.605357 1.81046 0.5 2.06481 0.5 2.33003V18.33C0.5 18.5952 0.605357 18.8496 0.792893 19.0371C0.98043 19.2247 1.23478 19.33 1.5 19.33H11.5C11.7652 19.33 12.0196 19.2247 12.2071 19.0371C12.3946 18.8496 12.5 18.5952 12.5 18.33V10.33L14.7 18.55C14.7586 18.7682 14.8893 18.9601 15.0709 19.0945C15.2525 19.2288 15.4742 19.2978 15.7 19.29C15.7864 19.2999 15.8736 19.2999 15.96 19.29L20.79 18C20.9177 17.9659 21.0374 17.9068 21.1421 17.8261C21.2468 17.7454 21.3344 17.6448 21.4 17.53C21.5055 17.3088 21.5302 17.0576 21.47 16.82ZM5.47 17.37H2.47V15.37H5.47V17.37ZM5.47 13.37H2.47V7.37003H5.47V13.37ZM5.47 5.37003H2.47V3.37003H5.47V5.37003ZM10.47 17.37H7.47V15.37H10.47V17.37ZM10.47 13.37H7.47V7.37003H10.47V13.37ZM10.47 5.37003H7.47V3.37003H10.47V5.37003ZM12.72 3.63003L15.62 2.85003L16.14 4.78003L13.24 5.56003L12.72 3.63003ZM15.31 13.29L13.76 7.49003L16.66 6.71003L18.21 12.51L15.31 13.29ZM16.31 17.15L15.79 15.22L18.69 14.44L19.21 16.37L16.31 17.15Z",fill:"#333333"}})]),t._v(" Módulos e Aulas ")]),e("img",{attrs:{src:s("a7ef")}})])]),e("div",{staticClass:"lineDiv"}),e("router-link",{staticClass:"removeLink",class:{disableLink:t.existParans},attrs:{to:"/config_curso/class/"+t.cursoAtual}},[e("div",{staticClass:"spaceNav"},[e("div",{staticClass:"text"},[e("svg",{attrs:{width:"26",height:"22",viewBox:"0 0 26 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M24 20V18C23.9993 17.1137 23.7044 16.2528 23.1614 15.5523C22.6184 14.8519 21.8581 14.3516 21 14.13M18 20V18C18 16.9391 17.5786 15.9217 16.8284 15.1716C16.0783 14.4214 15.0609 14 14 14H6C4.93913 14 3.92172 14.4214 3.17157 15.1716C2.42143 15.9217 2 16.9391 2 18V20M17 2.13C17.8604 2.3503 18.623 2.8507 19.1676 3.55231C19.7122 4.25392 20.0078 5.11683 20.0078 6.005C20.0078 6.89317 19.7122 7.75608 19.1676 8.45769C18.623 9.1593 17.8604 9.6597 17 9.88M14 6C14 8.20914 12.2091 10 10 10C7.79086 10 6 8.20914 6 6C6 3.79086 7.79086 2 10 2C12.2091 2 14 3.79086 14 6Z",stroke:"#333333","stroke-width":"2.3","stroke-linecap":"round","stroke-linejoin":"round"}})]),t._v(" Turmas ")]),e("img",{attrs:{src:s("a7ef")}})])]),e("div",{staticClass:"lineDiv"}),e("router-link",{staticClass:"removeLink",class:{disableLink:t.existParans},attrs:{to:"/create-certificates/"+t.cursoAtual}},[e("div",{staticClass:"spaceNav"},[e("div",{staticClass:"text"},[e("svg",{attrs:{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M8.43496 22.9609H16.6119H8.43496ZM12.5234 22.9609V16.4194V22.9609ZM19.065 10.6955C19.065 8.10753 19.0609 3.81517 19.0588 2.51862C19.0588 2.30175 18.9727 2.09377 18.8193 1.94042C18.666 1.78708 18.458 1.70093 18.2411 1.70093L6.80417 1.71422C6.58775 1.71421 6.38016 1.80001 6.22688 1.95281C6.07361 2.1056 5.98716 2.31293 5.98648 2.52935C5.98648 4.09216 5.97984 9.13067 5.97984 10.6955C5.97984 13.9806 10.2216 16.4194 12.5214 16.4194C14.8211 16.4194 19.065 13.9806 19.065 10.6955ZM19.065 10.6955C21.4388 10.6955 23.1534 7.79374 23.1534 4.97169V4.154H19.065V10.6955ZM5.98188 4.154H1.89343V4.97169C1.89343 7.79374 3.60803 10.6955 5.98188 10.6955V4.154Z",stroke:"#333333","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round"}})]),t._v(" Certificado ")]),e("img",{attrs:{src:s("a7ef")}})])]),e("div",{staticClass:"lineDiv"}),e("router-link",{staticClass:"removeLink",class:{disableLink:t.existParans},attrs:{to:"/config_curso/vendas/"+t.cursoAtual}},[e("div",{staticClass:"spaceNav"},[e("div",{staticClass:"text"},[e("svg",{attrs:{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M6 2L3 6V20C3 20.5304 3.21071 21.0391 3.58579 21.4142C3.96086 21.7893 4.46957 22 5 22H19C19.5304 22 20.0391 21.7893 20.4142 21.4142C20.7893 21.0391 21 20.5304 21 20V6L18 2H6Z",stroke:"#333333","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}}),e("path",{attrs:{d:"M16 10C16 11.0609 15.5786 12.0783 14.8284 12.8284C14.0783 13.5786 13.0609 14 12 14C10.9391 14 9.92172 13.5786 9.17157 12.8284C8.42143 12.0783 8 11.0609 8 10",stroke:"#333333","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}}),e("path",{attrs:{d:"M3 6H21",stroke:"#333333","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}})]),t._v(" Vendas ")]),e("img",{attrs:{src:s("a7ef")}})])]),e("div",{staticClass:"lineDiv"}),e("div",{staticClass:"spaceBtn"},[e("toggle-button",{attrs:{sync:!0,labels:{checked:"Ativo",unchecked:"Inativo"}},on:{change:t.enventSwitchStatus},model:{value:t.myDataVariable,callback:function(e){t.myDataVariable=e},expression:"myDataVariable"}})],1)],1)]),e("b-col",{staticClass:"pt-5",attrs:{cols:"12",md:"9"}},[e("div",{staticClass:"containerWizzard"},[e("div",{staticClass:"title title-v2"},[t._v(t._s(t.ModuleLessons.title))])]),t.loading?t._e():e("div",{staticClass:"containerWizzardInputs"},[e("div",{staticClass:"spaceModuleCard",attrs:{id:"step12"}},[e("div",{staticClass:"actionModule"},[e("div",{staticClass:"titleModule title-v2"},[t._v("Gerenciamento de Aulas")])]),e("div",[e("draggable",{staticClass:"list-group",attrs:{list:t.AllAulas,disabled:!t.enabled,"ghost-class":"ghost"},on:{end:t.onEnd}},t._l(t.AllAulas,(function(s,i){return e("div",{key:s.id,staticClass:"spaceInputs removemb viewAulas",attrs:{"data-id":s.id}},[!1===t.editLesson&&!1===t.addAula?e("span",[void 0===t.AllAulas[i-1]&&void 0!==s.small_category||t.AllAulas[i-1].small_category!==s.small_category?e("span",{staticClass:"textSubcategory"},[t._v(t._s(s.small_category))]):t._e()]):t._e(),!1===t.editLesson&&!1===t.addAula?e("div",{staticClass:"flexAula",class:{marginSubCategory:s.small_category}},[e("div",{staticClass:"flex"},[e("svg",{staticClass:"play",attrs:{width:"10",height:"12",viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M0.538086 1.04162C0.538086 0.250458 1.41333 -0.227381 2.07884 0.200448L9.17349 4.76129C9.78582 5.15493 9.78581 6.05001 9.17349 6.44365L2.07884 11.0045C1.41333 11.4323 0.538086 10.9545 0.538086 10.1633V1.04162Z",fill:"#C4C4C4"}})]),"draft"===s.status?e("div",{staticClass:"textAula title-v2",on:{click:function(e){return t.editLessonFuntion(s)}}},[t._v(" "+t._s(s.title)+" "),e("span",{staticClass:"textAula2 title-v2"},[t._v("(Rascunho)")])]):e("div",{staticClass:"textAula title-v2",on:{click:function(e){return t.editLessonFuntion(s)}}},[t._v(" "+t._s(s.title)+" ")])]),e("div",{staticClass:"flex"},[e("div",{staticClass:"timeAula"},[t._v(" "+t._s(t.converteDuration(s.duration))+" ")]),e("div",{staticClass:"actions actionAula"},[e("svg",{staticClass:"action",attrs:{width:"19",height:"5",viewBox:"0 0 19 5",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M9.83667 3.83643C10.389 3.83643 10.8367 3.38871 10.8367 2.83643C10.8367 2.28414 10.389 1.83643 9.83667 1.83643C9.28439 1.83643 8.83667 2.28414 8.83667 2.83643C8.83667 3.38871 9.28439 3.83643 9.83667 3.83643Z",stroke:"#C4C4C4","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}}),e("path",{attrs:{d:"M16.8367 3.83643C17.389 3.83643 17.8367 3.38871 17.8367 2.83643C17.8367 2.28414 17.389 1.83643 16.8367 1.83643C16.2844 1.83643 15.8367 2.28414 15.8367 2.83643C15.8367 3.38871 16.2844 3.83643 16.8367 3.83643Z",stroke:"#C4C4C4","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}}),e("path",{attrs:{d:"M2.83667 3.83643C3.38895 3.83643 3.83667 3.38871 3.83667 2.83643C3.83667 2.28414 3.38895 1.83643 2.83667 1.83643C2.28439 1.83643 1.83667 2.28414 1.83667 2.83643C1.83667 3.38871 2.28439 3.83643 2.83667 3.83643Z",stroke:"#C4C4C4","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}})]),e("b-dropdown",{staticClass:"m-2",attrs:{id:"dropdown-dropright",dropright:"",text:""}},[e("b-dropdown-item",{on:{click:function(e){return t.editLessonFuntion(s)}}},[t._v("Editar Aula")]),e("b-dropdown-item",{on:{click:function(e){return t.viewLesson(s.id)}}},[t._v("Ver Aula")]),e("b-dropdown-item",{on:{click:function(e){return t.deleteLesson(s.id)}}},[t._v("Deletar Aula")])],1),e("button",{staticClass:"viewModuleLesson",attrs:{id:"viewModuleLesson2"},on:{click:function(e){return t.viewLesson(s.id)}}},[t._v(" Ver Aula "),e("svg",{attrs:{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M9.375 8.75L12.5 5.625L9.375 2.5",stroke:"#C4C4C4","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round"}}),e("path",{attrs:{d:"M2.5 12.5V8.125C2.5 7.46194 2.76339 6.82606 3.23223 6.35725C3.70107 5.88839 4.33696 5.625 5 5.625H12.5",stroke:"#C4C4C4","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round"}})])])],1)])]):t._e()])})),0),!1===t.addAula||""===t.addAula?e("div",{staticClass:"spaceInputs removemb animationOpacity"},[e("b-form-group",{attrs:{id:"step13"}},[e("div",{staticClass:"btn-openModal",on:{click:function(e){return t.openCreateAula()}}},[e("p",{staticClass:"text"},[t._v("Clique e adicione uma Aula")])])])],1):t._e()],1),!0===t.addAula?e("div",{staticClass:"animationOpacity"},[e("div",{staticClass:"spaceInputs"},[e("b-form-group",{attrs:{label:"Nome da Aula","label-for":"name-aula",id:"step14"}},[e("b-form-input",{attrs:{placeholder:"Nome da Aula"},model:{value:t.nameAula,callback:function(e){t.nameAula=e},expression:"nameAula"}})],1)],1),"quiz"===t.mediaTypeLesson&&t.editLesson?t._e():e("div",{staticClass:"spaceInputs removemb"},[e("b-form-group",{attrs:{label:"Tipo de conteúdo","label-for":"name-aula"}},[e("b-form-select",{attrs:{options:t.optionsTypeContent,placeholder:"Nome da Aula"},on:{change:t.verifyIfIsQuiz},model:{value:t.typeContentSelected,callback:function(e){t.typeContentSelected=e},expression:"typeContentSelected"}})],1)],1),"QUIZ"===t.typeContentSelected?e("Qiz",{attrs:{questions:this.questions,inEdit:this.editLesson},on:{addedQuestion:t.addedQuestion,removedQuestion:t.removedQuestion,closeModalOptions:t.closeModalOptions}}):t._e(),e("div",["VIDEO"===t.typeContentSelected||"PDF"===t.typeContentSelected||"AUDIO"===t.typeContentSelected?e("div",{staticClass:"spaceInputs removemb"},[e("b-form-group",{attrs:{label:"Arquivo da Aula","label-for":"name-aula",id:"step15"}},[null===t.midialessonpreview?e("div",{staticClass:"btn-openModal",attrs:{disabled:t.mediaTypeLesson},on:{click:function(e){"PDF"===t.typeContentSelected?t.showModalUploadDocument():t.showModalUpload(t.ModuleLessons.id)}}},[e("p",{staticClass:"text"},[t._v(" Clique e adicione um "+t._s("AUDIO"===t.typeContentSelected?"Audio":"PDF"===t.typeContentSelected?"PDF":"Vídeo")+" ")])]):"pdf"===t.mediaTypeLesson?e("b-form-group",{attrs:{label:"","label-for":"complement"}},[e("div",{staticClass:"btn-openModalPreview"},["pdf"===t.mediaTypeLesson&&"pdf"!==t.midialesson&&t.midiaPdfUrl?e("iframe",{staticClass:"imagePreviewCapa animationOpacity",attrs:{height:"100%",width:"100%",src:t.midiaPdfUrl}}):e("img",{staticClass:"imagePreviewCapa animationOpacity",attrs:{src:t.midiaPdfUrl,alt:t.midiaPdfUrl}}),t.midiaLessonTitle?e("p",{staticClass:"title-file title-v2"},[t._v(t._s(t.midiaLessonTitle)+"1")]):t._e(),e("div",{staticClass:"removeAttr",on:{click:t.removeCourse}},[e("svg",{attrs:{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M18 6L6 18",stroke:"black","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}}),e("path",{attrs:{d:"M6 6L18 18",stroke:"black","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}})])])])]):"audio"===t.mediaTypeLesson?e("div",{},["audio"===t.mediaTypeLesson&&null!==t.midialessonpreview?e("div",{staticClass:"btn-openModal mt-2 mb-3",on:{click:function(e){return t.showModalUpload(t.ModuleLessons.id)}}},[e("p",{staticClass:"text"},[t._v("Clique e adicione um Audio")])]):t._e(),t._l(t.AllAudios,(function(i){return e("div",{key:i.id},[e("div",{staticClass:"btn-openModalPreview mb-2"},[e("div",[e("img",{staticClass:"imgAudio",attrs:{src:s("e904"),alt:"audio"}})]),t.midiaLessonTitle?e("p",{staticClass:"title-file title-v2"},[t._v(t._s(t.midiaLessonTitle)+"2")]):t._e(),e("div",{staticClass:"removeAttr",on:{click:function(e){return t.removeAudio(i.id)}}},[e("svg",{attrs:{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M18 6L6 18",stroke:"black","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}}),e("path",{attrs:{d:"M6 6L18 18",stroke:"black","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}})])])])])}))],2):e("div",{staticClass:"btn-openModalPreview"},["panda"===t.mediaTypeLesson&&"panda"!==t.midialesson?e("iframe",{staticClass:"imagePreviewYt animationOpacity",staticStyle:{border:"0","pointer-events":"all"},attrs:{height:"100%",width:"50%",src:t.midialesson+"&controls=play-larg"}}):"panda"===t.mediaTypeLesson&&"panda"===t.midialesson?e("div",[e("img",{staticClass:"imgAudio",attrs:{src:s("399a"),alt:"audio"}})]):"audio"===t.mediaTypeLesson?e("div",[e("img",{staticClass:"imgAudio",attrs:{src:s("e904"),alt:"audio"}})]):e("img",{staticClass:"imagePreviewYt animationOpacity",attrs:{src:t.midialessonpreview,alt:t.midialessonpreview},on:{click:function(e){return t.showModalUploadItem(t.ModuleLessons.id)}}}),t.midiaLessonTitle?e("p",{staticClass:"title-file title-v2"},[t._v(t._s(t.midiaLessonTitle)+"3")]):t._e(),e("div",{staticClass:"removeLessonVideo",on:{click:function(e){return t.removeCourse()}}},[e("svg",{attrs:{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M18 6L6 18",stroke:"black","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}}),e("path",{attrs:{d:"M6 6L18 18",stroke:"black","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}})])])])],1)],1):t._e(),e("div",{staticClass:"lineDivAtt"}),e("div",{staticClass:"spaceInputs2"},[e("b-form-group",{attrs:{label:"Categoria (Opcional)","label-for":"name-aula"}},[e("div",[e("multiselect",{attrs:{noOptions:"Sem Categoria, Escreva uma!","tag-placeholder":"Adicionar nova Categoria",placeholder:"Selecione uma Categoria",selectedLabel:"",deselectLabel:"Pressione Enter","close-on-select":!0,selectLabel:"Pressione Enter","track-by":"id",multiple:!1,taggable:!0,options:t.optionsLessonCategory},on:{tag:t.addTag},model:{value:t.categoryLesson,callback:function(e){t.categoryLesson=e},expression:"categoryLesson"}})],1)])],1),"v2"===t.clubVersion||"VIDEO"!==t.typeContentSelected&&"AUDIO"!==t.typeContentSelected?t._e():e("div",{staticClass:"spaceInputs removemb"},[e("b-form-group",{attrs:{label:"Thumb Customizada (Opcional)","label-for":"name-aula"}},[null===t.midialessonthumb?e("div",{staticClass:"btn-openModal",on:{click:function(e){return t.showModalUploadThumb(t.ModuleLessons.id)}}},[e("p",{staticClass:"text"},[t._v("Clique e adicione uma Thumb")])]):e("div",{staticClass:"btn-openModalPreview",on:{click:function(e){return t.showModalUploadThumb(t.ModuleLessons.id)}}},[e("img",{staticClass:"imagePreviewYt animationOpacity",attrs:{src:t.midialessonthumb.url,alt:t.midialessonthumb.url}})])])],1),"VIDEO"===t.typeContentSelected||"AUDIO"===t.typeContentSelected||"PDF"===t.typeContentSelected||"TEXT"===t.typeContentSelected?e("div",{staticClass:"spaceInputs"},[e("b-form-group",{staticClass:"description-container",attrs:{label:"Descrição","label-for":"description"}},[t.descriptionLessonLength?e("div",{staticClass:"description-length",class:{ok:t.descriptionLessonLength>=200}},[t._v(" "+t._s(t.descriptionLessonLength)+" ")]):t._e(),e("b-form-textarea",{staticClass:"description-textarea",staticStyle:{"overflow-y":"scroll !important"},attrs:{id:"description",name:"description",placeholder:"Descrição da aula"},model:{value:t.descricaoAula,callback:function(e){t.descricaoAula=e},expression:"descricaoAula"}}),e("div",{staticClass:"mark-down d-flex justify-content-between mt-2"},[e("p",{staticClass:"info-mark"},[t._v("Descrição formatada em MarkDown")]),e("div",{staticClass:"open-mark",on:{click:function(e){return t.openModal("editor-markdown")}}},[t._v(" Formatar descrição ")])])],1),e("EditorMarkDown",{attrs:{text_parent:t.descricaoAula,from:"new"},on:{created:function(e){t.descricaoAula=e},updated:function(e){t.descricaoAula=e}}})],1):t._e(),"VIDEO"===t.typeContentSelected||"AUDIO"===t.typeContentSelected||"PDF"===t.typeContentSelected||"TEXT"===t.typeContentSelected?e("div",{staticClass:"spaceInputs removemb"},[e("div",[e("div",{staticClass:"lineDivAtt"}),e("b-form-group",{attrs:{label:"Arquivos Adicionais","label-for":"complement"}},[e("div",{staticClass:"totalAtt"},[t._v(" Total de Arquivos: "+t._s(t.quantidadeAtt)+" ")]),e("div",t._l(t.AllAttachments,(function(i){return e("div",{key:i.id,staticClass:"btn-openModalPreview spaceAttList"},["application/pdf"===i.mime?e("iframe",{staticClass:"imagePreviewCapa animationOpacity",attrs:{height:"100%",width:"100%",src:i.cdn_url}}):"audio/mpeg"===i.mime?e("div",[e("img",{staticClass:"imgAudio",attrs:{src:s("e904"),alt:"audio"}})]):"application/zip"===i.mime?e("img",{staticClass:"imagePreviewCapa animationOpacity",attrs:{loading:"lazy",src:"https://app.greenn.club/zip.png",alt:i.title}}):"application/msword"===i.mime||"application/vnd.openxmlformats-officedocument.wordprocessingml.document"===i.mime?e("img",{staticClass:"imagePreviewCapa animationOpacity",attrs:{loading:"lazy",src:"https://app.greenn.club/doc.png",alt:i.title}}):"application/vnd.ms-excel"===i.mime||"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"===i.mime?e("img",{staticClass:"imagePreviewCapa animationOpacity",attrs:{loading:"lazy",src:"https://app.greenn.club/xls.png",alt:i.title}}):e("img",{staticClass:"imagePreviewCapa animationOpacity",attrs:{src:i.cdn_url,alt:i.title}}),i.title?e("p",{staticClass:"title-file title-v2"},[t._v(t._s(i.title))]):t._e(),e("div",{staticClass:"removeAttr",on:{click:function(e){return t.removeAttr(i.id)}}},[e("svg",{attrs:{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M18 6L6 18",stroke:"black","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}}),e("path",{attrs:{d:"M6 6L18 18",stroke:"black","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}})])])])})),0)])],1),e("div",[e("b-form-group",{attrs:{label:"","label-for":"complement"}},[""===t.midiaaditionalurl||null===t.midiaaditionalurl?e("div",{staticClass:"btn-openModal",on:{click:function(e){return t.showModalUploadAditional()}}},[e("p",{staticClass:"text"},[t._v("Faça o Upload dos Complementos")])]):e("div",{staticClass:"btn-openModalPreview",on:{click:function(e){return t.showModalUploadAditional()}}},["application/pdf"===t.midiaaditionalurltype?e("iframe",{staticClass:"imagePreviewCapa animationOpacity",attrs:{height:"100%",width:"100%",src:t.midiaaditionalurl}}):e("img",{staticClass:"imagePreviewCapa animationOpacity",attrs:{src:t.midiaaditionalurl,alt:t.midiaaditionalurl}})])]),""===t.midiaaditionalurl||null===t.midiaaditionalurl?e("div"):t._e(),e("div",{staticClass:"lineDivAtt"})],1)]):t._e(),!1===t.editLesson?e("div",{staticClass:"spaceInputs"},[e("div",{staticClass:"flexBtn"},[e("button",{staticClass:"btn-cancela",on:{click:function(e){return e.preventDefault(),t.notSaveLesson()}}},[t._v(" Cancelar ")]),e("button",{staticClass:"btn-rascunho",on:{click:function(e){return e.preventDefault(),t.createAula(t.ModuleLessons.id,"draft")}}},[t._v(" Salvar Rascunho ")])]),e("button",{staticClass:"btn-criar",attrs:{id:"step17"},on:{click:function(e){return e.preventDefault(),t.createAula(t.ModuleLessons.id,"published")}}},[t._v(" Publicar Aula ")])]):e("div",{staticClass:"spaceInputs"},[e("div",{staticClass:"flexBtn"},[e("button",{staticClass:"btn-cancela",on:{click:function(e){return e.preventDefault(),t.notSaveLesson()}}},[t._v(" Cancelar ")]),e("button",{staticClass:"btn-rascunho",on:{click:function(e){return e.preventDefault(),t.saveEditLesson("draft")}}},[t._v(" Salvar Rascunho ")])]),e("button",{staticClass:"btn-criar",on:{click:function(e){return e.preventDefault(),t.saveEditLesson("published")}}},[t._v(" Publicar Aula ")])])])],1):t._e()])]),t.loading?e("div",{staticClass:"d-flex justify-content-center mt-5"},[e("b-spinner",{attrs:{label:"Loading..."}})],1):t._e()])],1)],1)]):e("div",{staticClass:"createLessons"},[e("div",{staticClass:"container",attrs:{"data-anima":"top"}},[e("modal-upload",{attrs:{data:t.data,typeLesson:t.typeContentSelected}}),e("b-row",{staticClass:"spaceWizzard"},[e("b-col",{staticClass:"pt-5",attrs:{cols:"12",md:"3"}},[e("div",{staticClass:"navigate"},[e("div",{staticClass:"title animationOpacity"},[t._v(" "+t._s(t.nameCourse)+" "),e("button",{staticClass:"viewModuleLesson",attrs:{id:"viewModuleLesson"},on:{click:function(e){return t.viewCourse()}}},[t._v(" Ver Curso "),e("svg",{attrs:{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M9.375 8.75L12.5 5.625L9.375 2.5",stroke:"#C4C4C4","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round"}}),e("path",{attrs:{d:"M2.5 12.5V8.125C2.5 7.46194 2.76339 6.82606 3.23223 6.35725C3.70107 5.88839 4.33696 5.625 5 5.625H12.5",stroke:"#C4C4C4","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round"}})])])]),e("div",{staticClass:"lineDiv"}),e("router-link",{staticClass:"removeLink",attrs:{to:"/config_curso/"+t.cursoAtual}},[e("div",{staticClass:"spaceNav"},[e("div",{staticClass:"text"},[e("svg",{attrs:{width:"20",height:"18",viewBox:"0 0 20 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M17 0H3C2.20435 0 1.44129 0.316071 0.87868 0.87868C0.316071 1.44129 0 2.20435 0 3V11C0 11.7956 0.316071 12.5587 0.87868 13.1213C1.44129 13.6839 2.20435 14 3 14H9V16H5C4.73478 16 4.48043 16.1054 4.29289 16.2929C4.10536 16.4804 4 16.7348 4 17C4 17.2652 4.10536 17.5196 4.29289 17.7071C4.48043 17.8946 4.73478 18 5 18H15C15.2652 18 15.5196 17.8946 15.7071 17.7071C15.8946 17.5196 16 17.2652 16 17C16 16.7348 15.8946 16.4804 15.7071 16.2929C15.5196 16.1054 15.2652 16 15 16H11V14H17C17.7956 14 18.5587 13.6839 19.1213 13.1213C19.6839 12.5587 20 11.7956 20 11V3C20 2.20435 19.6839 1.44129 19.1213 0.87868C18.5587 0.316071 17.7956 0 17 0ZM18 11C18 11.2652 17.8946 11.5196 17.7071 11.7071C17.5196 11.8946 17.2652 12 17 12H3C2.73478 12 2.48043 11.8946 2.29289 11.7071C2.10536 11.5196 2 11.2652 2 11V3C2 2.73478 2.10536 2.48043 2.29289 2.29289C2.48043 2.10536 2.73478 2 3 2H17C17.2652 2 17.5196 2.10536 17.7071 2.29289C17.8946 2.48043 18 2.73478 18 3V11Z",fill:"#333333"}})]),t._v(" Dados do Curso ")]),e("img",{attrs:{src:s("a7ef")}})])]),e("div",{staticClass:"lineDiv"}),e("router-link",{staticClass:"removeLink",class:{disableLink:t.existParans},attrs:{to:"/config_curso/"+t.cursoAtual+"/module"}},[e("div",{staticClass:"spaceNav"},[e("div",{staticClass:"text"},[e("svg",{attrs:{width:"22",height:"20",viewBox:"0 0 22 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M21.47 16.82L20.47 12.96L17.32 1.37003C17.2519 1.11437 17.0853 0.896104 16.8567 0.76303C16.628 0.629955 16.3559 0.592918 16.1 0.66003L12.23 1.66003C12.1376 1.55767 12.0251 1.47552 11.8995 1.41873C11.7739 1.36194 11.6379 1.33174 11.5 1.33003H1.5C1.23478 1.33003 0.98043 1.43539 0.792893 1.62292C0.605357 1.81046 0.5 2.06481 0.5 2.33003V18.33C0.5 18.5952 0.605357 18.8496 0.792893 19.0371C0.98043 19.2247 1.23478 19.33 1.5 19.33H11.5C11.7652 19.33 12.0196 19.2247 12.2071 19.0371C12.3946 18.8496 12.5 18.5952 12.5 18.33V10.33L14.7 18.55C14.7586 18.7682 14.8893 18.9601 15.0709 19.0945C15.2525 19.2288 15.4742 19.2978 15.7 19.29C15.7864 19.2999 15.8736 19.2999 15.96 19.29L20.79 18C20.9177 17.9659 21.0374 17.9068 21.1421 17.8261C21.2468 17.7454 21.3344 17.6448 21.4 17.53C21.5055 17.3088 21.5302 17.0576 21.47 16.82ZM5.47 17.37H2.47V15.37H5.47V17.37ZM5.47 13.37H2.47V7.37003H5.47V13.37ZM5.47 5.37003H2.47V3.37003H5.47V5.37003ZM10.47 17.37H7.47V15.37H10.47V17.37ZM10.47 13.37H7.47V7.37003H10.47V13.37ZM10.47 5.37003H7.47V3.37003H10.47V5.37003ZM12.72 3.63003L15.62 2.85003L16.14 4.78003L13.24 5.56003L12.72 3.63003ZM15.31 13.29L13.76 7.49003L16.66 6.71003L18.21 12.51L15.31 13.29ZM16.31 17.15L15.79 15.22L18.69 14.44L19.21 16.37L16.31 17.15Z",fill:"#333333"}})]),t._v(" Módulos e Aulas ")]),e("img",{attrs:{src:s("a7ef")}})])]),e("div",{staticClass:"lineDiv"}),e("router-link",{staticClass:"removeLink",class:{disableLink:t.existParans},attrs:{to:"/config_curso/class/"+t.cursoAtual}},[e("div",{staticClass:"spaceNav"},[e("div",{staticClass:"text"},[e("svg",{attrs:{width:"26",height:"22",viewBox:"0 0 26 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M24 20V18C23.9993 17.1137 23.7044 16.2528 23.1614 15.5523C22.6184 14.8519 21.8581 14.3516 21 14.13M18 20V18C18 16.9391 17.5786 15.9217 16.8284 15.1716C16.0783 14.4214 15.0609 14 14 14H6C4.93913 14 3.92172 14.4214 3.17157 15.1716C2.42143 15.9217 2 16.9391 2 18V20M17 2.13C17.8604 2.3503 18.623 2.8507 19.1676 3.55231C19.7122 4.25392 20.0078 5.11683 20.0078 6.005C20.0078 6.89317 19.7122 7.75608 19.1676 8.45769C18.623 9.1593 17.8604 9.6597 17 9.88M14 6C14 8.20914 12.2091 10 10 10C7.79086 10 6 8.20914 6 6C6 3.79086 7.79086 2 10 2C12.2091 2 14 3.79086 14 6Z",stroke:"#333333","stroke-width":"2.3","stroke-linecap":"round","stroke-linejoin":"round"}})]),t._v(" Turmas ")]),e("img",{attrs:{src:s("a7ef")}})])]),e("div",{staticClass:"lineDiv"}),e("router-link",{staticClass:"removeLink",class:{disableLink:t.existParans},attrs:{to:"/create-certificates/"+t.cursoAtual}},[e("div",{staticClass:"spaceNav"},[e("div",{staticClass:"text"},[e("svg",{attrs:{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M8.43496 22.9609H16.6119H8.43496ZM12.5234 22.9609V16.4194V22.9609ZM19.065 10.6955C19.065 8.10753 19.0609 3.81517 19.0588 2.51862C19.0588 2.30175 18.9727 2.09377 18.8193 1.94042C18.666 1.78708 18.458 1.70093 18.2411 1.70093L6.80417 1.71422C6.58775 1.71421 6.38016 1.80001 6.22688 1.95281C6.07361 2.1056 5.98716 2.31293 5.98648 2.52935C5.98648 4.09216 5.97984 9.13067 5.97984 10.6955C5.97984 13.9806 10.2216 16.4194 12.5214 16.4194C14.8211 16.4194 19.065 13.9806 19.065 10.6955ZM19.065 10.6955C21.4388 10.6955 23.1534 7.79374 23.1534 4.97169V4.154H19.065V10.6955ZM5.98188 4.154H1.89343V4.97169C1.89343 7.79374 3.60803 10.6955 5.98188 10.6955V4.154Z",stroke:"#333333","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round"}})]),t._v(" Certificado ")]),e("img",{attrs:{src:s("a7ef")}})])]),e("div",{staticClass:"lineDiv"}),e("router-link",{staticClass:"removeLink",class:{disableLink:t.existParans},attrs:{to:"/config_curso/vendas/"+t.cursoAtual}},[e("div",{staticClass:"spaceNav"},[e("div",{staticClass:"text"},[e("svg",{attrs:{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M6 2L3 6V20C3 20.5304 3.21071 21.0391 3.58579 21.4142C3.96086 21.7893 4.46957 22 5 22H19C19.5304 22 20.0391 21.7893 20.4142 21.4142C20.7893 21.0391 21 20.5304 21 20V6L18 2H6Z",stroke:"#333333","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}}),e("path",{attrs:{d:"M16 10C16 11.0609 15.5786 12.0783 14.8284 12.8284C14.0783 13.5786 13.0609 14 12 14C10.9391 14 9.92172 13.5786 9.17157 12.8284C8.42143 12.0783 8 11.0609 8 10",stroke:"#333333","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}}),e("path",{attrs:{d:"M3 6H21",stroke:"#333333","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}})]),t._v(" Vendas ")]),e("img",{attrs:{src:s("a7ef")}})])]),e("div",{staticClass:"lineDiv"}),e("div",{staticClass:"spaceBtn"},[e("toggle-button",{attrs:{sync:!0,labels:{checked:"Ativo",unchecked:"Inativo"}},on:{change:t.enventSwitchStatus},model:{value:t.myDataVariable,callback:function(e){t.myDataVariable=e},expression:"myDataVariable"}})],1)],1)]),e("b-col",{staticClass:"pt-5",attrs:{cols:"12",md:"9"}},[e("div",{staticClass:"containerWizzard"},[e("div",{staticClass:"title"},[t._v(t._s(t.ModuleLessons.title))])]),t.loading?t._e():e("div",{staticClass:"containerWizzardInputs"},[e("div",{staticClass:"spaceModuleCard",attrs:{id:"step12"}},[e("div",{staticClass:"actionModule"},[e("div",{staticClass:"titleModule"},[t._v("Gerenciamento de Aulas")])]),e("div",[e("draggable",{staticClass:"list-group",attrs:{list:t.AllAulas,disabled:!t.enabled,"ghost-class":"ghost"},on:{end:t.onEnd}},t._l(t.AllAulas,(function(s,i){return e("div",{key:s.id,staticClass:"spaceInputs removemb viewAulas",attrs:{"data-id":s.id}},[!1===t.editLesson&&!1===t.addAula?e("span",[void 0===t.AllAulas[i-1]&&void 0!==s.small_category||t.AllAulas[i-1].small_category!==s.small_category?e("span",{staticClass:"textSubcategory"},[t._v(t._s(s.small_category))]):t._e()]):t._e(),!1===t.editLesson&&!1===t.addAula?e("div",{staticClass:"flexAula",class:{marginSubCategory:s.small_category}},[e("div",{staticClass:"flex"},[e("svg",{staticClass:"play",attrs:{width:"10",height:"12",viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M0.538086 1.04162C0.538086 0.250458 1.41333 -0.227381 2.07884 0.200448L9.17349 4.76129C9.78582 5.15493 9.78581 6.05001 9.17349 6.44365L2.07884 11.0045C1.41333 11.4323 0.538086 10.9545 0.538086 10.1633V1.04162Z",fill:"#C4C4C4"}})]),"draft"===s.status?e("div",{staticClass:"textAula",on:{click:function(e){return t.editLessonFuntion(s)}}},[t._v(" "+t._s(s.title)+" "),e("span",{staticClass:"textAula2"},[t._v("(Rascunho)")])]):e("div",{staticClass:"textAula",on:{click:function(e){return t.editLessonFuntion(s)}}},[t._v(" "+t._s(s.title)+" ")])]),e("div",{staticClass:"flex"},[e("div",{staticClass:"timeAula"},[t._v(" "+t._s(t.converteDuration(s.duration))+" ")]),e("div",{staticClass:"actions actionAula"},[e("svg",{staticClass:"action",attrs:{width:"19",height:"5",viewBox:"0 0 19 5",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M9.83667 3.83643C10.389 3.83643 10.8367 3.38871 10.8367 2.83643C10.8367 2.28414 10.389 1.83643 9.83667 1.83643C9.28439 1.83643 8.83667 2.28414 8.83667 2.83643C8.83667 3.38871 9.28439 3.83643 9.83667 3.83643Z",stroke:"#C4C4C4","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}}),e("path",{attrs:{d:"M16.8367 3.83643C17.389 3.83643 17.8367 3.38871 17.8367 2.83643C17.8367 2.28414 17.389 1.83643 16.8367 1.83643C16.2844 1.83643 15.8367 2.28414 15.8367 2.83643C15.8367 3.38871 16.2844 3.83643 16.8367 3.83643Z",stroke:"#C4C4C4","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}}),e("path",{attrs:{d:"M2.83667 3.83643C3.38895 3.83643 3.83667 3.38871 3.83667 2.83643C3.83667 2.28414 3.38895 1.83643 2.83667 1.83643C2.28439 1.83643 1.83667 2.28414 1.83667 2.83643C1.83667 3.38871 2.28439 3.83643 2.83667 3.83643Z",stroke:"#C4C4C4","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}})]),e("b-dropdown",{staticClass:"m-2",attrs:{id:"dropdown-dropright",dropright:"",text:""}},[e("b-dropdown-item",{on:{click:function(e){return t.editLessonFuntion(s)}}},[t._v("Editar Aula")]),e("b-dropdown-item",{on:{click:function(e){return t.viewLesson(s.id)}}},[t._v("Ver Aula")]),e("b-dropdown-item",{on:{click:function(e){return t.deleteLesson(s.id)}}},[t._v("Deletar Aula")])],1),e("button",{staticClass:"viewModuleLesson",attrs:{id:"viewModuleLesson2"},on:{click:function(e){return t.viewLesson(s.id)}}},[t._v(" Ver Aula "),e("svg",{attrs:{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M9.375 8.75L12.5 5.625L9.375 2.5",stroke:"#C4C4C4","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round"}}),e("path",{attrs:{d:"M2.5 12.5V8.125C2.5 7.46194 2.76339 6.82606 3.23223 6.35725C3.70107 5.88839 4.33696 5.625 5 5.625H12.5",stroke:"#C4C4C4","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round"}})])])],1)])]):t._e()])})),0),!1===t.addAula||""===t.addAula?e("div",{staticClass:"spaceInputs removemb animationOpacity"},[e("b-form-group",{attrs:{id:"step13"}},[e("div",{staticClass:"btn-openModal",on:{click:function(e){return t.openCreateAula()}}},[e("p",{staticClass:"text"},[t._v("Clique e adicione uma Aula")])])])],1):t._e()],1),!0===t.addAula?e("div",{staticClass:"animationOpacity"},[e("div",{staticClass:"spaceInputs"},[e("b-form-group",{attrs:{label:"Nome da Aula","label-for":"name-aula",id:"step14"}},[e("b-form-input",{attrs:{placeholder:"Nome da Aula"},model:{value:t.nameAula,callback:function(e){t.nameAula=e},expression:"nameAula"}})],1)],1),"quiz"===t.mediaTypeLesson&&t.editLesson?t._e():e("div",{staticClass:"spaceInputs removemb"},[e("b-form-group",{attrs:{label:"Tipo de conteúdo","label-for":"name-aula"}},[e("b-form-select",{attrs:{options:t.optionsTypeContent,placeholder:"Nome da Aula"},on:{change:t.clearMidiaLesson},model:{value:t.typeContentSelected,callback:function(e){t.typeContentSelected=e},expression:"typeContentSelected"}})],1)],1),"QUIZ"===t.typeContentSelected?e("Qiz",{attrs:{questions:this.questions,inEdit:this.editLesson},on:{addedQuestion:t.addedQuestion,removedQuestion:t.removedQuestion,closeModalOptions:t.closeModalOptions}}):t._e(),e("div",["VIDEO"===t.typeContentSelected||"AUDIO"===t.typeContentSelected?e("div",{staticClass:"spaceInputs removemb"},[e("b-form-group",{attrs:{label:"Arquivo da Aula","label-for":"name-aula",id:"step15"}},[null===t.midialessonpreview?e("div",{staticClass:"btn-openModal",on:{click:function(e){return t.showModalUpload(t.ModuleLessons.id)}}},[e("p",{staticClass:"text"},[t._v(" Clique e adicione um "+t._s("AUDIO"===t.typeContentSelected?"Audio":"Vídeo")+" ")])]):"audio"===t.mediaTypeLesson?e("div",{},["audio"===t.mediaTypeLesson&&null!==t.midialessonpreview?e("div",{staticClass:"btn-openModal mt-2 mb-3",on:{click:function(e){return t.showModalUpload(t.ModuleLessons.id)}}},[e("p",{staticClass:"text"},[t._v("Clique e adicione um Audio")])]):t._e(),t._l(t.AllAudios,(function(i){return e("div",{key:i.id},[e("div",{staticClass:"btn-openModalPreview mb-2"},[e("div",[e("img",{staticClass:"imgAudio",attrs:{src:s("e904"),alt:"audio"}}),e("p",[t._v(t._s(i.title))])]),e("div",{staticClass:"removeAttr",on:{click:function(e){return t.removeAudio(i.id)}}},[e("svg",{attrs:{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M18 6L6 18",stroke:"black","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}}),e("path",{attrs:{d:"M6 6L18 18",stroke:"black","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}})])])])])}))],2):e("div",{staticClass:"btn-openModalPreview"},["panda"===t.mediaTypeLesson&&"panda"!==t.midialesson?e("iframe",{staticClass:"imagePreviewYt animationOpacity",staticStyle:{border:"0","pointer-events":"all"},attrs:{height:"100%",width:"50%",src:t.midialesson+"&controls=play-larg"}}):"panda"===t.mediaTypeLesson&&"panda"===t.midialesson?e("div",[e("img",{staticClass:"imgAudio",attrs:{src:s("399a"),alt:"audio"}})]):"audio"===t.mediaTypeLesson?e("div",[e("img",{staticClass:"imgAudio",attrs:{src:s("e904"),alt:"audio"}}),e("p",[t._v(t._s(t.midiaLessonTitle)+"5")])]):e("img",{staticClass:"imagePreviewYt animationOpacity",attrs:{src:t.midialessonpreview,alt:t.midialessonpreview},on:{click:function(e){return t.showModalUploadItem(t.ModuleLessons.id)}}}),e("div",{staticClass:"removeLessonVideo",on:{click:function(e){return t.removeCourse()}}},[e("svg",{attrs:{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M18 6L6 18",stroke:"black","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}}),e("path",{attrs:{d:"M6 6L18 18",stroke:"black","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}})])])])])],1):t._e(),e("div",{staticClass:"lineDivAtt"}),e("div",{staticClass:"spaceInputs2"},[e("b-form-group",{attrs:{label:"Categoria (Opcional)","label-for":"name-aula"}},[e("div",[e("multiselect",{attrs:{noOptions:"Sem Categoria, Escreva uma!","tag-placeholder":"Adicionar nova Categoria",placeholder:"Selecione uma Categoria",selectedLabel:"",deselectLabel:"Pressione Enter","close-on-select":!0,selectLabel:"Pressione Enter","track-by":"id",multiple:!1,taggable:!0,options:t.optionsLessonCategory},on:{tag:t.addTag},model:{value:t.categoryLesson,callback:function(e){t.categoryLesson=e},expression:"categoryLesson"}})],1)])],1),"v2"===t.clubVersion||"VIDEO"!==t.typeContentSelected&&"AUDIO"!==t.typeContentSelected?t._e():e("div",{staticClass:"spaceInputs removemb"},[e("b-form-group",{attrs:{label:"Thumb Customizada (Opcional)","label-for":"name-aula"}},[null===t.midialessonthumb?e("div",{staticClass:"btn-openModal",on:{click:function(e){return t.showModalUploadThumb(t.ModuleLessons.id)}}},[e("p",{staticClass:"text"},[t._v("Clique e adicione uma Thumb")])]):e("div",{staticClass:"btn-openModalPreview",on:{click:function(e){return t.showModalUploadThumb(t.ModuleLessons.id)}}},[e("img",{staticClass:"imagePreviewYt animationOpacity",attrs:{src:t.midialessonthumb.url,alt:t.midialessonthumb.url}})])])],1),"VIDEO"===t.typeContentSelected||"AUDIO"===t.typeContentSelected||"TEXT"===t.typeContentSelected?e("div",{staticClass:"spaceInputs"},[e("b-form-group",{staticClass:"description-container",attrs:{label:"Descrição","label-for":"description"}},[t.descriptionLessonLength?e("div",{staticClass:"description-length",class:{ok:t.descriptionLessonLength>=200}},[t._v(" "+t._s(t.descriptionLessonLength)+" ")]):t._e(),e("b-form-textarea",{staticClass:"description-textarea",staticStyle:{"overflow-y":"scroll !important"},attrs:{id:"description",name:"description",placeholder:"Descrição da aula"},model:{value:t.descricaoAula,callback:function(e){t.descricaoAula=e},expression:"descricaoAula"}}),e("div",{staticClass:"mark-down d-flex justify-content-between mt-2"},[e("p",{staticClass:"info-mark"},[t._v("Descrição formatada em MarkDown")]),e("div",{staticClass:"open-mark",on:{click:function(e){return t.openModal("editor-markdown")}}},[t._v(" Formatar descrição ")])])],1),e("EditorMarkDown",{attrs:{text_parent:t.descricaoAula,from:"new"},on:{created:function(e){t.descricaoAula=e},updated:function(e){t.descricaoAula=e}}})],1):t._e(),"VIDEO"===t.typeContentSelected||"AUDIO"===t.typeContentSelected||"TEXT"===t.typeContentSelected?e("div",{staticClass:"spaceInputs removemb"},[e("div",[e("div",{staticClass:"lineDivAtt"}),e("b-form-group",{attrs:{label:"Arquivos Adicionais","label-for":"complement"}},[e("div",{staticClass:"totalAtt"},[t._v(" Total de Arquivos: "+t._s(t.quantidadeAtt)+" ")]),e("div",t._l(t.AllAttachments,(function(i){return e("div",{key:i.id,staticClass:"btn-openModalPreview spaceAttList"},["application/pdf"===i.mime?e("iframe",{staticClass:"imagePreviewCapa animationOpacity",attrs:{height:"100%",width:"100%",src:i.cdn_url}}):"audio/mpeg"===i.mime?e("div",[e("img",{staticClass:"imgAudio",attrs:{src:s("e904"),alt:"audio"}}),e("p",[t._v(t._s(i.title))])]):"application/zip"===i.mime?e("img",{staticClass:"imagePreviewCapa animationOpacity",attrs:{loading:"lazy",src:"https://app.greenn.club/zip.png",alt:i.title}}):"application/msword"===i.mime||"application/vnd.openxmlformats-officedocument.wordprocessingml.document"===i.mime?e("img",{staticClass:"imagePreviewCapa animationOpacity",attrs:{loading:"lazy",src:"https://app.greenn.club/doc.png",alt:i.title}}):"application/vnd.ms-excel"===i.mime||"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"===i.mime?e("img",{staticClass:"imagePreviewCapa animationOpacity",attrs:{loading:"lazy",src:"https://app.greenn.club/xls.png",alt:i.title}}):e("img",{staticClass:"imagePreviewCapa animationOpacity",attrs:{src:i.cdn_url,alt:i.title}}),e("div",{staticClass:"removeAttr",on:{click:function(e){return t.removeAttr(i.id)}}},[e("svg",{attrs:{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M18 6L6 18",stroke:"black","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}}),e("path",{attrs:{d:"M6 6L18 18",stroke:"black","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}})])])])})),0)])],1),e("div",[e("b-form-group",{attrs:{label:"","label-for":"complement"}},[""===t.midiaaditionalurl||null===t.midiaaditionalurl?e("div",{staticClass:"btn-openModal",on:{click:function(e){return t.showModalUploadAditional()}}},[e("p",{staticClass:"text"},[t._v("Faça o Upload dos Complementos")])]):e("div",{staticClass:"btn-openModalPreview",on:{click:function(e){return t.showModalUploadAditional()}}},["application/pdf"===t.midiaaditionalurltype?e("iframe",{staticClass:"imagePreviewCapa animationOpacity",attrs:{height:"100%",width:"100%",src:t.midiaaditionalurl}}):e("img",{staticClass:"imagePreviewCapa animationOpacity",attrs:{src:t.midiaaditionalurl,alt:t.midiaaditionalurl}})])]),""===t.midiaaditionalurl||null===t.midiaaditionalurl?e("div"):t._e(),e("div",{staticClass:"lineDivAtt"})],1)]):t._e(),!1===t.editLesson?e("div",{staticClass:"spaceInputs"},[e("div",{staticClass:"flexBtn"},[e("button",{staticClass:"btn-cancela",on:{click:function(e){return e.preventDefault(),t.notSaveLesson()}}},[t._v(" Cancelar ")]),e("button",{staticClass:"btn-rascunho",on:{click:function(e){return e.preventDefault(),t.createAula(t.ModuleLessons.id,"draft")}}},[t._v(" Salvar Rascunho ")])]),e("button",{staticClass:"btn-criar",attrs:{id:"step17"},on:{click:function(e){return e.preventDefault(),t.createAula(t.ModuleLessons.id,"published")}}},[t._v(" Publicar Aula ")])]):e("div",{staticClass:"spaceInputs"},[e("div",{staticClass:"flexBtn"},[e("button",{staticClass:"btn-cancela",on:{click:function(e){return e.preventDefault(),t.notSaveLesson()}}},[t._v(" Cancelar ")]),e("button",{staticClass:"btn-rascunho",on:{click:function(e){return e.preventDefault(),t.saveEditLesson("draft")}}},[t._v(" Salvar Rascunho ")])]),e("button",{staticClass:"btn-criar",on:{click:function(e){return e.preventDefault(),t.saveEditLesson("published")}}},[t._v(" Publicar Aula ")])])])],1):t._e()])]),t.loading?e("div",{staticClass:"d-flex justify-content-center mt-5"},[e("b-spinner",{attrs:{label:"Loading..."}})],1):t._e()])],1)],1)])},a=[],o=s("c7eb"),n=s("1da1");s("a4d3"),s("e01a"),s("d3b7"),s("b636"),s("d28b"),s("3ca3"),s("ddb0"),s("d9e2");function l(t){var e,s,i,a=2;for("undefined"!=typeof Symbol&&(s=Symbol.asyncIterator,i=Symbol.iterator);a--;){if(s&&null!=(e=t[s]))return e.call(t);if(i&&null!=(e=t[i]))return new r(e.call(t));s="@@asyncIterator",i="@@iterator"}throw new TypeError("Object is not async iterable")}function r(t){function e(t){if(Object(t)!==t)return Promise.reject(new TypeError(t+" is not an object."));var e=t.done;return Promise.resolve(t.value).then((function(t){return{value:t,done:e}}))}return r=function(t){this.s=t,this.n=t.next},r.prototype={s:null,n:null,next:function(){return e(this.n.apply(this.s,arguments))},return:function(t){var s=this.s["return"];return void 0===s?Promise.resolve({value:t,done:!0}):e(s.apply(this.s,arguments))},throw:function(t){var s=this.s["return"];return void 0===s?Promise.reject(t):e(s.apply(this.s,arguments))}},new r(t)}s("4de4"),s("ac1f"),s("1276"),s("7db0"),s("a434"),s("d81d"),s("99af"),s("9911"),s("466d");var d=s("f26f"),u=(s("a753"),s("8096"),s("14e1"),s("953d")),c=s("7756"),m=(s("e607"),s("b76a")),p=s.n(m),h=s("8e5f"),v=s.n(h),C=d["a"].build(),f=[["bold","italic","underline","strike","link"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}]],b={components:{quillEditor:u["quillEditor"],draggable:p.a,Multiselect:v.a,ModalUpload:function(){return Promise.all([s.e("chunk-4c61c1d8"),s.e("chunk-1649279b"),s.e("chunk-011e8064")]).then(s.bind(null,"8d74"))},Qiz:function(){return s.e("chunk-6c29ad3c").then(s.bind(null,"c54d"))},EditorMarkDown:function(){return Promise.all([s.e("chunk-4c61c1d8"),s.e("chunk-1649279b"),s.e("chunk-53dc0ada")]).then(s.bind(null,"e2c3"))}},data:function(){return{midiaPdfId:"",midiaPdfUrl:"",midiapdfurltype:"",nameCourse:"",nameModulo:"",resumoCourse:"",descricaoCourse:"",categoryCourse:"",step:0,AllCategory:1,data:"introducao",midiaintroducao:"",midiacapa:"",midiaaulas:"",module_id_edit:"",ModuleLessons:"",totalModules:"",nameAula:"",descricaoAula:"",AllAulas:[],editNameModule:"",editModuleModal:!1,editActualModule:"",cursoAtual:"",moduleAtual:"",addAula:!1,myDataVariable:!0,existParans:!0,midialessonpreview:null,midialesson:"",editLesson:!1,idEditLesson:"",mediaTypeLesson:"text",midiaLessonTitle:"",midiaaditionalurl:"",midiaaditional:"",attatchments:!1,nameLesson:"",quantidadeAtt:0,AllAttachments:"",durationToEdit:"",editorOption:{modules:{toolbar:f}},enabled:!0,dragging:!1,midialessonthumb:null,midialessonthumbid:null,categoryLesson:null,optionsLessonCategory:[],midiaaditionalurltype:"",mediaPandaId:"",typeContentSelected:"VIDEO",optionsTypeContent:[],quiz:{},questions:{},AllAudios:[],loading:!1}},computed:{descriptionLessonLength:function(){var t;return(null===(t=this.descricaoAula)||void 0===t?void 0:t.length)||0},draggingInfo:function(){return this.dragging?"under drag":""},theme:function(){return this.$store.state.globalSettings.theme},clubVersion:function(){return this.$store.state.globalSettings.clubVersion}},methods:{openModal:function(t){this.$root.$emit("bv::show::modal",t,"#btnShow")},verifyIfIsQuiz:function(){var t=this;setTimeout((function(){"QUIZ"!=t.typeContentSelected||t.editLesson?t.clearMidiaLesson():t.createAula(t.ModuleLessons.id,"draft",!0)}),300)},clearMidiaLesson:function(){this.midialessonpreview=null,this.mediaTypeLesson="",this.mediaType="",this.midialesson=""},converteDuration:function(t){if(!t)return"";var e=Math.floor(t/3600),s=Math.floor((t-3600*e)/60);t=t-3600*e-60*s;var i="";return e>0&&(e<10&&(i+="0"),i+=e+":"),s<10&&(i+="0"),i+=s+":",t<10&&(i+="0"),i+=t,i},removeCourse:function(){var t=this,e=this.editLesson;if(!0===e){var s={id:{id:this.cursoAtual+"/module/"+this.moduleAtual+"/lesson/"+this.idEditLesson},data:{course_id:this.cursoAtual,midia_id:null,mediaType:"text",source:null,duration:null,thumb:null,status:"draft"}};this.loading=!0,C.postID2(s).then((function(){t.midialessonpreview=null,t.mediaTypeLesson="text",t.midialesson=""})).finally((function(){t.loading=!1}))}else this.midialessonpreview=null,this.mediaTypeLesson="text",this.midialesson=""},addTag:function(t){this.optionsLessonCategory.push(t)},getLessonCategory:function(){var t=this;C.read(this.cursoAtual+"/module/"+this.moduleAtual+"/small-category").then((function(e){var s=[];e.filter((function(t){s.push(t.small_category)})),t.optionsLessonCategory=s}))},viewCourse:function(){var t=this;C.read(this.cursoAtual+"/module").then((function(e){if(0===e.length)return Object(c["a"])("erro","Nenhum Módulo Configurado!"),!1;var s=t.$router.resolve("/curso/"+t.cursoAtual);window.open(s.href,"_blank")}))},viewLesson:function(t){var e=this.$router.resolve("/curso/"+this.cursoAtual+"/modulo/"+this.moduleAtual+"/aula/"+t);window.open(e.href,"_blank")},onEnd:function(){for(var t=this,e=[],s=document.querySelectorAll(".viewAulas"),i=0;i<s.length;i++){var a=s[i].getAttribute("data-id");e.push(parseInt(a))}var o={id:this.cursoAtual+"/module/"+this.moduleAtual+"/lesson/order",array:e};this.loading=!0,C.postIDArray(o).then((function(){t.getLesson()})).finally((function(){t.loading=!1}))},saveAtt:function(){var t=this;return Object(n["a"])(Object(o["a"])().mark((function e(){var s;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(""!==t.idEditLesson&&null!==t.idEditLesson){e.next=5;break}return e.next=3,t.createAulaToAtt();case 3:e.next=8;break;case 5:s={id:{id:t.cursoAtual+"/module/"+t.moduleAtual+"/lesson/"+t.idEditLesson+"/attachment"},data:{media_id:t.midiaaditional}},t.loading=!0,C.postID2(s).then((function(){t.midiaaditional="",t.midiaaditionalurl="",t.getAttatchments(t.idEditLesson),Object(c["a"])("sucesso","Arquivo Adicional salvo com Sucesso!"),t.loading=!1})).catch((function(e){var s=JSON.parse(e.response.data),i="";for(var a in s)i+=s[a][0]+"<br>","O valor informado para o campo id da mídia já está em uso.<br>"===i&&(t.getAttatchments(t.idEditLesson),t.midiaaditional="",t.midiaaditionalurl="");""!==i&&Object(c["a"])("erro",i),t.loading=!1}));case 8:case"end":return e.stop()}}),e)})))()},createAulaToAtt:function(){var t=this;if(""===this.idEditLesson||null===this.idEditLesson){var e=!1;try{e="https://www.youtube.com/watch"===this.midialesson.split("?")[0]}catch(n){e=!1}var s="";"youtube"!==this.mediaTypeLesson||e?"youtube"===this.mediaTypeLesson&&e||"vimeo"===this.mediaTypeLesson||"iframe"===this.mediaTypeLesson||"panda"===this.mediaTypeLesson||"pdf"===this.mediaTypeLesson||"audio"===this.mediaTypeLesson?s="":(s="",this.mediaTypeLesson="text"):s="https://www.youtube.com/watch?v=";var i="";null!==this.midialessonthumb&&(i=this.midialessonthumbid);var a=s+this.midialesson;""!==this.midialesson&&null!==this.midialesson&&void 0!==this.midialesson||(a="");var o={id:{id:this.cursoAtual+"/module/"+this.moduleAtual+"/lesson"},data:{course_id:this.cursoAtual,title:this.nameAula,duration:this.vimeoduration,mediaType:this.mediaTypeLesson,source:a,content:this.descricaoAula,thumb:this.midialessonpreview,custom_thumb:i,small_category:this.categoryLesson,status:"draft"}};if(""===o.data.title)return void(o.data.title=this.nameAula);"panda"===this.mediaTypeLesson&&(o.data.media_id=this.mediaPandaId,o.data.source=""),"pdf"===this.mediaTypeLesson&&(o.data.mediaType="pdf",o.data.source=this.midiaPdfUrl,o.data.media_id=this.midiaPdfId),this.loading=!0,C.postID2(o).then((function(e){if(t.idEditLesson=e.id,"audio"===t.mediaTypeLesson)for(var s=t.AllAudios,i=0;i<s.length;i++){var a=s[i],o={id:{id:t.cursoAtual+"/module/"+t.moduleAtual+"/lesson/"+t.idEditLesson+"/audio"},data:{media_id:a.id}};C.postID2(o)}t.getModules(),t.editLesson=!0,t.saveAtt(),t.loading=!1})).catch((function(e){var s=JSON.parse(e.response.data);for(var i in s)s[i][0]+"<br>";t.openCreateAula(),t.loading=!1}))}else this.getModules(),this.editLesson=!0,this.saveAtt()},removeAudio:function(t){var e=this;this.AllAudios.find((function(s,i){if(s.id===t)return e.AllAudios.splice(i,1),s})),this.loading=!0,C.destroy(this.cursoAtual+"/module/"+this.moduleAtual+"/lesson/"+this.idEditLesson+"/audio/"+t).then((function(){e.getAudios(e.idEditLesson)})).finally((function(){e.loading=!1}))},removeAttr:function(t){var e=this;this.loading=!0,C.destroy(this.cursoAtual+"/module/"+this.moduleAtual+"/lesson/"+this.idEditLesson+"/attachment/"+t).then((function(){e.getAttatchments(e.idEditLesson)})).finally((function(){e.loading=!1}))},getAudios:function(t){var e=this;void 0!==t.id&&(this.nameLesson=t.title),C.read(this.cursoAtual+"/module/"+this.moduleAtual+"/lesson/"+this.idEditLesson+"/audio").then((function(t){e.AllAudios=t})).finally((function(){e.loading=!1}))},getAttatchments:function(){var t=this;this.loading=!0,C.read(this.cursoAtual+"/module/"+this.moduleAtual+"/lesson/"+this.idEditLesson+"/attachment").then((function(e){t.AllAttachments=e,t.quantidadeAtt=e.length})).finally((function(){t.loading=!1}))},enventSwitchStatus:function(){var t=this,e="";e=!0===this.myDataVariable?"published":"draft",this.loading=!0,C.postID({id:this.cursoAtual,status:e}).then((function(){t.getCourse()})).finally((function(){t.loading=!1}))},notSaveLesson:function(){this.nameAula="",this.descricaoAula="",this.descricaoAula="",this.addAula=!1,this.editLesson=!1,this.idEditLesson="",this.midialessonthumbid=null,this.midialessonthumb=null,this.typeContentSelected=null,this.quiz={},this.questions={},this.getLesson(),this.$route.query.lesson_id&&this.$router.push("/config_curso/"+this.$route.params.curso+"/module/"+this.$route.params.module+"/lesson")},saveEditLesson:function(t){var e=this,s={};if("QUIZ"===this.typeContentSelected)s={id:{id:this.cursoAtual+"/module/"+this.moduleAtual+"/lesson/"+this.idEditLesson},data:{course_id:this.cursoAtual,title:this.nameAula,status:t,mediaType:"quiz",source:"quiz",content:this.descricaoAula,small_category:this.categoryLesson}};else{var i=!1;try{i="https://www.youtube.com/watch"===this.midialesson.split("?")[0]}catch(r){i=!1}var a="";"youtube"!==this.mediaTypeLesson||i?"youtube"===this.mediaTypeLesson&&i||"vimeo"===this.mediaTypeLesson||"iframe"===this.mediaTypeLesson||"panda"===this.mediaTypeLesson||"pdf"===this.mediaTypeLesson||"audio"===this.mediaTypeLesson?a="":(a="",this.mediaTypeLesson="text"):a="https://www.youtube.com/watch?v=";var o="";null!==this.midialessonthumb&&(o=this.midialessonthumbid);var n=a+this.midialesson;""!==this.midialesson&&null!==this.midialesson&&void 0!==this.midialesson||(n="");var l=this.durationToEdit;(null===this.durationToEdit||""===this.durationToEdit&&"vimeo"===this.mediaTypeLesson)&&(l=this.vimeoduration),s={id:{id:this.cursoAtual+"/module/"+this.moduleAtual+"/lesson/"+this.idEditLesson},data:{course_id:this.cursoAtual,title:this.nameAula,mediaType:this.mediaTypeLesson,source:n,content:this.descricaoAula,duration:l,thumb:this.midialessonpreview,custom_thumb:o,status:t,small_category:this.categoryLesson}},"panda"===this.mediaTypeLesson&&(s.data.media_id=this.mediaPandaId,s.data.source=""),"pdf"===this.mediaTypeLesson&&(s.data.mediaType="pdf",s.data.source=this.midiaPdfUrl,s.data.media_id=this.midiaPdfId)}this.loading=!0,C.postID2(s).then((function(){if(e.getLesson(),Object(c["a"])("sucesso","Aula Salva com Sucesso!"),"audio"===e.mediaTypeLesson)for(var t=e.AllAudios,s=0;s<t.length;s++){var i=t[s],a={id:{id:e.cursoAtual+"/module/"+e.moduleAtual+"/lesson/"+e.idEditLesson+"/audio"},data:{media_id:i.id}};C.postID2(a)}e.nameAula="",e.descricaoAula="",e.addAula=!1,e.editLesson=!1,e.midialessonthumbid=null,e.midialessonthumb=null,e.quiz={},e.getModules(),e.$route.query.lesson_id&&e.$router.push("/config_curso/"+e.$route.params.curso+"/module/"+e.$route.params.module+"/lesson"),e.loading=!1})).catch((function(t){var s=JSON.parse(t.response.data),i="";for(var a in s)i+=s[a][0]+"<br>";""!==i&&Object(c["a"])("erro",i),e.loading=!1}))},deleteLesson:function(t){var e=this,s={id:this.cursoAtual+"/module/"+this.moduleAtual+"/lesson/"+t};this.loading=!0,C.destroy(s).then((function(){Object(c["a"])("sucesso","Aula excluída com Sucesso!"),e.getLesson()})).catch((function(){Object(c["a"])("erro","Erro ao deletar Aula com Sucesso!")})).finally((function(){e.loading=!1}))},addedQuestion:function(t){var e=this;return Object(n["a"])(Object(o["a"])().mark((function s(){var i,a,l;return Object(o["a"])().wrap((function(s){while(1)switch(s.prev=s.next){case 0:if(e.quiz=t,i=t.questions,!e.editLesson){s.next=8;break}return i.map(function(){var t=Object(n["a"])(Object(o["a"])().mark((function t(s){return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(s.text){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,e.saveOneQuestion(e.idEditLesson,e.$route.params.module,s);case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),a=e.$route.params.curso,l=e.$route.params.module,s.next=8,C.get(a+"/module/"+l+"/lesson/"+e.idEditLesson);case 8:case"end":return s.stop()}}),s)})))()},createAula:function(t,e,s){var i=this;return Object(n["a"])(Object(o["a"])().mark((function a(){var l,r,d,u;return Object(o["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(l={},"QUIZ"===i.typeContentSelected)l={id:{id:i.cursoAtual+"/module/"+t+"/lesson"},data:{course_id:i.cursoAtual,title:i.nameAula,status:e,mediaType:"quiz",source:"quiz",content:i.descricaoAula,small_category:i.categoryLesson}};else{r=!1;try{r="https://www.youtube.com/watch"===i.midialesson.split("?")[0]}catch(m){r=!1}d="","youtube"!==i.mediaTypeLesson||r?"youtube"===i.mediaTypeLesson&&r||"vimeo"===i.mediaTypeLesson||"iframe"===i.mediaTypeLesson||"panda"===i.mediaTypeLesson||"pdf"===i.mediaTypeLesson||"audio"===i.mediaTypeLesson?d="":(d="",i.mediaTypeLesson="text"):d="https://www.youtube.com/watch?v=",u="",null!==i.midialessonthumb&&(u=i.midialessonthumbid),d+i.midialesson,""!==i.midialesson&&null!==i.midialesson&&void 0!==i.midialesson||"",i.durationToEdit,(null===i.durationToEdit||""===i.durationToEdit&&"vimeo"===i.mediaTypeLesson)&&i.vimeoduration,l={id:{id:i.cursoAtual+"/module/"+t+"/lesson"},data:{course_id:i.cursoAtual,title:i.nameAula,duration:i.vimeoduration,mediaType:i.mediaTypeLesson,source:d+i.midialesson,content:i.descricaoAula,order:i.AllAulas.length,thumb:i.midialessonpreview,custom_thumb:u,status:e,small_category:i.categoryLesson}},"panda"===i.mediaTypeLesson&&(l.data.media_id=i.mediaPandaId,l.data.source=""),"audio"===i.mediaTypeLesson&&(l.data.mediaType="audio"),"pdf"===i.mediaTypeLesson&&(l.data.mediaType="pdf",l.data.source=i.midiaPdfUrl,l.data.media_id=i.midiaPdfId)}return i.loading=!0,a.next=5,C.postID2(l).then(function(){var e=Object(n["a"])(Object(o["a"])().mark((function e(a){var n,l,r,d;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i.module_id="","QUIZ"!==i.typeContentSelected||!s){e.next=5;break}i.editLessonFuntion(a),e.next=16;break;case 5:if("QUIZ"!==i.typeContentSelected||s){e.next=10;break}return e.next=8,i.saveQuestion(a.id,t);case 8:e.next=16;break;case 10:if(setTimeout((function(){i.onEnd()}),1e3),"audio"===i.mediaTypeLesson)for(n=i.AllAudios,l=0;l<n.length;l++)r=n[l],d={id:{id:i.cursoAtual+"/module/"+t+"/lesson/"+a.id+"/audio"},data:{media_id:r.id}},C.postID2(d);i.getModules(),i.addAula=!1,Object(c["a"])("sucesso","Aula Criada com Sucesso!"),i.loading=!1;case 16:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(t){var e=JSON.parse(t.response.data),s="";for(var a in e)s+=e[a][0]+"<br>";""!==s&&Object(c["a"])("erro",s),i.loading=!1}));case 5:case"end":return a.stop()}}),a)})))()},saveQuestion_old:function(t,e){var s=this;return Object(n["a"])(Object(o["a"])().mark((function i(){var a,r,d,u,m,p,h,v,f,b;return Object(o["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:a=0,s.loading=!0,r=!1,d=!1,i.prev=4,m=Object(o["a"])().mark((function i(){var r,d,u,m;return Object(o["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(d=h.value,d.text){i.next=3;break}return i.abrupt("return","continue");case 3:return u={id:{id:"".concat(s.cursoAtual,"/module/").concat(e,"/lesson/").concat(t,"/question/").concat(null!==(r=d.id)&&void 0!==r?r:"")},data:{text:d.text}},m=d.answers,i.next=7,C.postID2(u).then(function(){var i=Object(n["a"])(Object(o["a"])().mark((function i(n){var r,d,u,p,h,v,f,b;return Object(o["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:r=!1,d=!1,i.prev=2,p=l(m);case 4:return i.next=6,p.next();case 6:if(!(r=!(h=i.sent).done)){i.next=14;break}return f=h.value,b={id:{id:"".concat(s.cursoAtual,"/module/").concat(e,"/lesson/").concat(t,"/question/").concat(n.id,"/answer/").concat(null!==(v=f.id)&&void 0!==v?v:"")},data:{text:f.text,is_correct:f.is_correct}},i.next=11,C.postID2(b).then((function(){})).catch((function(t){console.error(t.message),Object(c["a"])("erro","Falha ao adicionar a Alternativa!")}));case 11:r=!1,i.next=4;break;case 14:i.next=20;break;case 16:i.prev=16,i.t0=i["catch"](2),d=!0,u=i.t0;case 20:if(i.prev=20,i.prev=21,!r||null==p.return){i.next=25;break}return i.next=25,p.return();case 25:if(i.prev=25,!d){i.next=28;break}throw u;case 28:return i.finish(25);case 29:return i.finish(20);case 30:delete s.quiz.questions[a],a++;case 32:case"end":return i.stop()}}),i,null,[[2,16,20,30],[21,,25,29]])})));return function(t){return i.apply(this,arguments)}}()).catch((function(t){return s.loading=!1,console.error(t.message),Object(c["a"])("erro","Falha ao adicionar a Questão!"),!1}));case 7:case"end":return i.stop()}}),i)})),p=l(s.quiz.questions);case 7:return i.next=9,p.next();case 9:if(!(r=!(h=i.sent).done)){i.next=17;break}return i.delegateYield(m(),"t0",11);case 11:if(v=i.t0,"continue"!==v){i.next=14;break}return i.abrupt("continue",14);case 14:r=!1,i.next=7;break;case 17:i.next=23;break;case 19:i.prev=19,i.t1=i["catch"](4),d=!0,u=i.t1;case 23:if(i.prev=23,i.prev=24,!r||null==p.return){i.next=28;break}return i.next=28,p.return();case 28:if(i.prev=28,!d){i.next=31;break}throw u;case 31:return i.finish(28);case 32:return i.finish(23);case 33:if(!s.editLesson){i.next=41;break}return f=s.$route.params.curso,b=s.$route.params.module,i.next=38,C.get(f+"/module/"+b+"/lesson/"+t).then((function(t){s.questions=t.questions}));case 38:return Object(c["a"])("sucesso","Questão editada com Sucesso!"),s.loading=!1,i.abrupt("return",!0);case 41:setTimeout((function(){s.onEnd()}),1e3),s.addAula=!1,Object(c["a"])("sucesso","Aula Criada com Sucesso!"),s.loading=!1;case 45:case"end":return i.stop()}}),i,null,[[4,19,23,33],[24,,28,32]])})))()},mountDataQuestion:function(t,e,s,i){var a=this;return Object(n["a"])(Object(o["a"])().mark((function n(){var l;return Object(o["a"])().wrap((function(o){while(1)switch(o.prev=o.next){case 0:return o.abrupt("return",{id:{id:"".concat(a.cursoAtual,"/module/").concat(e,"/lesson/").concat(t,"/question/").concat(null!==(l=s.id)&&void 0!==l?l:"")},data:{text:s.text,order:i}});case 1:case"end":return o.stop()}}),n)})))()},mountDataAnswer:function(t,e,s,i,a){var l=this;return Object(n["a"])(Object(o["a"])().mark((function n(){var r,d;return Object(o["a"])().wrap((function(o){while(1)switch(o.prev=o.next){case 0:return o.abrupt("return",{id:{id:"".concat(l.cursoAtual,"/module/").concat(e,"/lesson/").concat(t,"/question/").concat(null!==(r=s.id)&&void 0!==r?r:"","/answer/").concat(null!==(d=i.id)&&void 0!==d?d:"")},data:{text:i.text,is_correct:i.is_correct,order:a}});case 1:case"end":return o.stop()}}),n)})))()},saveOneAnswer:function(t,e,s,i,a){var l=this;return Object(n["a"])(Object(o["a"])().mark((function n(){var r;return Object(o["a"])().wrap((function(o){while(1)switch(o.prev=o.next){case 0:return o.next=2,l.mountDataAnswer(t,e,s,i,a);case 2:return r=o.sent,o.next=5,C.postID2(r);case 5:return o.abrupt("return");case 6:case"end":return o.stop()}}),n)})))()},saveOneQuestion:function(t,e,s){var i=this;return Object(n["a"])(Object(o["a"])().mark((function a(){var l,r,d,u;return Object(o["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return l=i.questions.length?i.questions.length+1:1,a.next=3,i.mountDataQuestion(t,e,s,l);case 3:return r=a.sent,a.next=6,C.postID2(r);case 6:return d=a.sent,i.questions=i.quiz.questions,u=s.answers,u.map(function(){var s=Object(n["a"])(Object(o["a"])().mark((function s(a,n){var l;return Object(o["a"])().wrap((function(s){while(1)switch(s.prev=s.next){case 0:return l=n+1,s.next=3,i.saveOneAnswer(t,e,d,a,l);case 3:case"end":return s.stop()}}),s)})));return function(t,e){return s.apply(this,arguments)}}()),a.abrupt("return");case 11:case"end":return a.stop()}}),a)})))()},saveQuestion:function(t,e){var s=this;return Object(n["a"])(Object(o["a"])().mark((function i(){var a,l,r;return Object(o["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(s.loading=!0,a=s.quiz.questions.reverse(),a.map(function(){var i=Object(n["a"])(Object(o["a"])().mark((function i(a){return Object(o["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(a.text){i.next=2;break}return i.abrupt("return");case 2:return i.next=4,s.saveOneQuestion(t,e,a);case 4:case"end":return i.stop()}}),i)})));return function(t){return i.apply(this,arguments)}}()),!s.editLesson){i.next=10;break}return l=s.$route.params.curso,r=s.$route.params.module,i.next=8,C.get(l+"/module/"+r+"/lesson/"+t).then((function(t){s.questions=t.questions}));case 8:Object(c["a"])("sucesso","Questão editada com Sucesso!"),s.loading=!1;case 10:return setTimeout((function(){s.onEnd()}),1e3),s.addAula=!1,Object(c["a"])("sucesso","Aula Criada com Sucesso!"),s.loading=!1,i.abrupt("return");case 15:case"end":return i.stop()}}),i)})))()},closeModalOptions:function(t){var e=this;return Object(n["a"])(Object(o["a"])().mark((function s(){var i,a;return Object(o["a"])().wrap((function(s){while(1)switch(s.prev=s.next){case 0:if(!e.editLesson){s.next=5;break}return i=e.$route.params.curso,a=e.$route.params.module,s.next=5,C.get(i+"/module/"+a+"/lesson/"+t).then((function(t){e.questions=t.questions}));case 5:case"end":return s.stop()}}),s)})))()},removedQuestion:function(t){this.questions=t},openCreateAula:function(){this.nameAula="",this.descricaoAula="",this.midialesson="",this.midialessonpreview=null,this.addAula=!0,this.midiaaditional="",this.midiaaditionalurl="",this.quantidadeAtt=0,this.AllAttachments="",this.midialessonthumbid=null,this.midialessonthumb=null,this.categoryLesson=null,this.AllAudios=[],this.idEditLesson=null},editLessonFuntion:function(t){var e,s;if(this.midiaPdfUrl=t.source,this.AllAudios=t.audios,this.nameAula=t.title,this.descricaoAula=null!==(e=t.description)&&void 0!==e?e:"",this.midialesson=t.source,this.addAula=!0,t.source&&(this.midialessonpreview=t.thumb),null===t.custom_thumb)this.midialessonthumbid=null,this.midialessonthumb=null;else{this.midialessonthumbid=t.custom_thumb.id;var i={url:t.custom_thumb.cdn_url,id:t.custom_thumb.id};this.midialessonthumb=i}this.mediaTypeLesson=t.mediaType,this.midiaaditional="",this.midiaaditionalurl="",this.editLesson=!0,this.idEditLesson=t.id,this.AllAttachments=t.attachments,this.quantidadeAtt=t.attachments.length,this.durationToEdit=t.duration,this.descricaoAula=null!==(s=t.content)&&void 0!==s?s:"",this.categoryLesson=t.small_category,this.questions={},this.quiz={},"quiz"===t.mediaType?(this.typeContentSelected="QUIZ",this.questions=t.questions||[]):"audio"===t.mediaType?this.typeContentSelected="AUDIO":"panda"===t.mediaType?this.mediaPandaId=t.media.id:"text"===t.mediaType?this.typeContentSelected="TEXT":"pdf"===t.mediaType?(this.typeContentSelected="PDF",this.midiaPdfId=t.media.id):this.typeContentSelected="VIDEO",this.AllAudios=t.audios,this.getAudios(this.idEditLesson)},deleteModule:function(t){var e=this;1!==this.totalModules&&(this.loading=!0,C.destroy(this.cursoAtual+"/module/"+t).then((function(){e.getModules()})).finally((function(){e.loading=!1})))},showModalUploadThumb:function(){this.$root.$emit("uploadlessonthumb"),this.$root.$emit("bv::show::modal","modal-upload","#btnShow")},showModalUpload:function(){this.$root.$emit("uploadlesson",this.mediaTypeLesson),this.$root.$emit("bv::show::modal","modal-upload","#btnShow")},showModalUploadAditional:function(){""!==this.nameAula&&null!==this.nameAula?(this.$root.$emit("uploadlessonadditional"),this.$root.$emit("bv::show::modal","modal-upload","#btnShow")):Object(c["a"])("erro","Necessario inserir o nome da aula!")},showModalUploadDocument:function(){this.$root.$emit("uploadlessonPdf"),this.$root.$emit("bv::show::modal","modal-upload","#btnSh ow")},showModalUploadItem:function(){var t={type:this.mediaTypeLesson,link:this.midialesson};this.$root.$emit("uploadlessonitem",t),this.$root.$emit("bv::show::modal","modal-upload","#btnShow")},hideModalUpload:function(){this.$root.$emit("bv::hide::modal","modal-upload","#btnShow")},getModules:function(){var t=this;this.loading=!0,C.read(this.cursoAtual+"/module/"+this.moduleAtual).then((function(e){t.ModuleLessons=e})).finally((function(){t.loading=!1}))},getCourse:function(){var t=this;this.loading=!0;var e={id:this.cursoAtual};C.read(e).then((function(e){t.nameCourse=e.title})).finally((function(){t.loading=!1}))},getLesson:function(){var t=this,e=this.$route.params.curso,s=this.$route.params.module,i=this;null===e||void 0===e||""===e||null===s||void 0===s||""===s?this.$router.push("/course"):(this.loading=!0,C.read(i.cursoAtual+"/module/"+s+"/lesson").then((function(e){t.AllAulas=e;var s=t.AllAulas;if(t.getCourse(),t.$route.query.lesson_id)for(var i=0;i<s.length;i++){var a=s[i];a.id===parseInt(t.$route.query.lesson_id,10)&&a&&t.editLessonFuntion(a)}})).finally((function(){t.loading=!1})))}},mounted:function(){var t=this;"v1"==this.clubVersion?this.optionsTypeContent=[{value:"TEXT",text:"Em Texto"},{value:"AUDIO",text:"Em Audio"},{value:"VIDEO",text:"Em Vídeo"},{value:"QUIZ",text:"Questionário"}]:this.optionsTypeContent=[{value:"TEXT",text:"Em Texto"},{value:"AUDIO",text:"Em Audio"},{value:"VIDEO",text:"Em Vídeo"},{value:"PDF",text:"Em PDF"},{value:"QUIZ",text:"Questionário"}],this.cursoAtual=this.$route.params.curso,this.moduleAtual=this.$route.params.module,this.getModules(),this.getLesson(),this.getLessonCategory(),this.$root.$on("midiaaulas",(function(e){t.midiaaulas=parseInt(e)})),this.$root.$on("uploadlessonnew",(function(e){t.AllAudios.push(e),t.midialesson=e.id,t.midialessonpreview=e.url,t.midiaLessonTitle=e.title,t.mediaTypeLesson=e.type,"audio/mpeg"===e.type&&(t.mediaTypeLesson="audio")})),this.$root.$on("midialessonyt",(function(e){t.mediaTypeLesson="youtube",t.midialesson=e.id.videoId,t.midialessonpreview=e.snippet.thumbnails.standard?e.snippet.thumbnails.standard.url:e.snippet.thumbnails.default.url})),this.$root.$on("midialessonpanda",(function(e){t.midiaLessonTitle=e.title,t.mediaTypeLesson="panda",t.mediaPandaId=e.id,t.midialesson=e.cdn_url,t.midialessonpreview=e.cdn_url})),this.$root.$on("midialessonvimeo",(function(e){t.midiaLessonTitle=e.title,t.mediaTypeLesson="vimeo",t.midialesson=e.link,t.vimeoduration=e.duration,"vimeolink"===e.pictures.sizes[0].link?t.midialessonpreview="https://app.greenn.club/vimeo.jpg":t.midialessonpreview=e.pictures.sizes[0].link})),this.$root.$on("midialessoniframe",(function(e){t.midiaLessonTitle=e.title,t.mediaTypeLesson="iframe",t.midialesson=e.link,t.vimeoduration=0,t.midialessonpreview="https://app.greenn.club/iframe.png"})),this.$root.$on("midiaadditional",(function(e){t.midiaaditional=parseInt(e.id),t.midiaaditionalurl=e.url,t.midiaaditionalurltype=e.type,t.saveAtt()})),this.$root.$on("midiapdf",(function(e){var s=e.url.match(/\/([^\/]+\.pdf)$/);t.midiaLessonTitle=decodeURIComponent(s[1]),t.mediaTypeLesson="pdf",t.midiapdfurltype=e.type,t.midialessonpreview=e.url,t.midiaPdfId=e.id,t.midiaPdfUrl=e.url})),this.$root.$on("uploadlessonthumbnew",(function(e){t.midialessonthumbid=parseInt(e.id),t.midialessonthumb=e})),this.$root.$on("stepconcluirinitaula",(function(){t.openCreateAula()})),this.$root.$on("stepconcluiraula",(function(){t.createAula(t.moduleAtual,"published")}))},beforeDestroy:function(){this.$root.$off("midiaadditional")}},g=b,w=(s("0075"),s("2877")),A=Object(w["a"])(g,i,a,!1,null,null,null);e["default"]=A.exports},"59c6":function(t,e,s){},a434:function(t,e,s){"use strict";var i=s("23e7"),a=s("7b0b"),o=s("23cb"),n=s("5926"),l=s("07fa"),r=s("3511"),d=s("65f0"),u=s("8418"),c=s("083a"),m=s("1dde"),p=m("splice"),h=Math.max,v=Math.min;i({target:"Array",proto:!0,forced:!p},{splice:function(t,e){var s,i,m,p,C,f,b=a(this),g=l(b),w=o(t,g),A=arguments.length;for(0===A?s=i=0:1===A?(s=0,i=g-w):(s=A-2,i=v(h(n(e),0),g-w)),r(g+s-i),m=d(b,i),p=0;p<i;p++)C=w+p,C in b&&u(m,p,b[C]);if(m.length=i,s<i){for(p=w;p<g-i;p++)C=p+i,f=p+s,C in b?b[f]=b[C]:c(b,f);for(p=g;p>g-i+s;p--)c(b,p-1)}else if(s>i)for(p=g-i;p>w;p--)C=p+i-1,f=p+s-1,C in b?b[f]=b[C]:c(b,f);for(p=0;p<s;p++)b[p+w]=arguments[p+2];return b.length=g-i+s,m}})},a7ef:function(t,e,s){t.exports=s.p+"img/arrow-navigate.28698cf5.svg"},e607:function(t,e,s){},e904:function(t,e,s){t.exports=s.p+"img/audio.f8442356.png"}}]);
//# sourceMappingURL=chunk-5dcd678e.d9bbe987.js.map