(window.webpackJsonp=window.webpackJsonp||[]).push([["store-developmentProgram"],{"0366":function(t,e,r){"use strict";var n=r("4625"),o=r("59ed"),i=r("40d5"),a=n(n.bind);t.exports=function(t,e){return o(t),void 0===e?t:i?a(t,e):function(){return t.apply(e,arguments)}}},"1be4":function(t,e,r){"use strict";r=r("d066"),t.exports=r("document","documentElement")},"2fe8":function(t,e,r){"use strict";r.d(e,"r",(function(){return i})),r.d(e,"o",(function(){return a})),r.d(e,"q",(function(){return s})),r.d(e,"h",(function(){return u})),r.d(e,"e",(function(){return c})),r.d(e,"n",(function(){return d})),r.d(e,"i",(function(){return l})),r.d(e,"g",(function(){return f})),r.d(e,"s",(function(){return m})),r.d(e,"d",(function(){return g})),r.d(e,"j",(function(){return p})),r.d(e,"m",(function(){return v})),r.d(e,"b",(function(){return S})),r.d(e,"k",(function(){return w})),r.d(e,"l",(function(){return h})),r.d(e,"a",(function(){return k})),r.d(e,"t",(function(){return P})),r.d(e,"f",(function(){return _})),r.d(e,"u",(function(){return b})),r.d(e,"p",(function(){return y})),r.d(e,"c",(function(){return I}));e=r("bc3a");var n=r.n(e);const o="dp/programs";async function i(t,e={}){return n.a.get(o+"/"+t,e)}async function a(t){return n.a.get(o+`/${t}/stats`)}async function s(t){return n.a.get(o+`/${t}/information `)}async function u(t,e){return n.a.get("dp/program-section-module-assessments",{params:{dp_program_section_module_id:t,...e}})}async function c(t){return n.a.post("dp/assessment-homework-finisheds",{dp_program_section_module_assessment_id:t})}async function d(t){return n.a.get(o+`/${t}/preworks`)}async function l(t){return n.a.get(o+`/${t}/files`)}async function f(t){return n.a.get(o+`/${t}/homeworks`)}async function m(t){return n.a.get(o+`/${t}/user-homeworks`)}async function g(t){return n.a.delete(o+"/user-homework/"+t)}async function p(t){return n.a.get(o+`/${t}/murals`)}async function v(){return n.a.get(o+"/1/precertificates/persons")}async function S(t){return n.a.post(`dp/murals/${t}/copy`)}async function w(t){return n.a.get(`dp/murals/${t}/templates `)}async function h(){return n.a.get("dp/modal")}async function k(){return n.a.get("dp/modal/close")}async function P(t){var e,r=new FormData;for(e of Object.keys(t))r.append(e,t[e]);return n.a.post(o+"/user-homework",r)}async function _(t){return n.a.get(o+"/reflections/data",{params:t})}async function b(t){return n.a.post(o+"/reflection",t)}async function y(t,e){return n.a.get(o+"/reflections/questions/"+t,{params:e})}async function I(t){return n.a.delete("dp/murals/"+t)}},"37e8":function(t,e,r){"use strict";var n=r("83ab"),o=r("aed9"),i=r("9bf2"),a=r("825a"),s=r("fc6a"),u=r("df75");e.f=n&&!o?Object.defineProperties:function(t,e){a(t);for(var r,n=s(e),o=u(e),c=o.length,d=0;dt.program,getSections:t=>{let e=1;return null==(t=t.program)?void 0:t.sections.map(t=>(t.moduleNumbers=[],t.modules.forEach(r=>{r.moduleNumber=e,t.moduleNumbers.push(e),e++}),t))},getSectionsLength:(t,e)=>(null==(e=e.getSections)?void 0:e.length)||0,getSection:t=>e=>{var r;return null==(r=t.program)?void 0:r.sections.find(t=>t.slug==e)},currentSection:t=>{var e;return null==(e=t.program)?void 0:e.sections.find(e=>t.currentSectionSlug==e.slug)},allModules:t=>{const e=[];return null!=(t=t.program)&&t.sections.forEach(t=>{e.push(...t.modules)}),e},livewebinarModule:(t,e)=>(e=e.allModules.find(t=>{if(0a(t)),t))return t}),e||null),currentLivewebinar:(t,e)=>{var r;return null!=(r=e.livewebinarModule)&&null!=(r=r.livewebinar)&&r.length?null==(r=e.livewebinarModule)?void 0:r.livewebinar.find(t=>a(t)):null},currentSectionPaths:(t,e)=>{let r=[];return e=e.currentSection,e&&e.modules&&e.modules.forEach(t=>{t.preworks&&t.preworks.forEach(t=>{t.path&&(r=r.concat(t.path))})}),r},currentSectionSeries:(t,e)=>{let r=[];return e=e.currentSection,e&&e.modules&&e.modules.forEach(t=>{t.preworks&&t.preworks.forEach(t=>{t.path&&t.path.series&&(r=r.concat(t.path.series))})}),r},getModuleById:t=>e=>t.preworks[e],getPreworkById:t=>e=>t.preworks[e],getSectionInformationById:t=>e=>e?t.sectionInformation[e]:null,firstActiveSection:t=>null==(t=t.program)?void 0:t.sections.find(t=>t.is_active),lastActiveSection:t=>null==(t=t.program)||null==(t=t.sections.findLast(t=>t.is_active))?void 0:t.slug,firstActiveModule:(t,e)=>{var r;let n;return(n=null==(r=e.firstActiveSection)?void 0:r.modules.find(t=>!(null!=(t=t.preworks[0])&&null!=(t=t.path)&&t.is_user_finished_path)))||(null==(r=e.firstActiveSection)?void 0:r.modules.findLast(t=>null==(t=t.preworks[0])||null==(t=t.path)?void 0:t.is_user_finished_path))},firstActiveModuleId:(t,e)=>e.firstActiveModule?e.firstActiveModule.id:null,firstActivePrework:(t,e)=>t.preworks[e.firstActiveModuleId],firstActiveSerie:(t,e)=>null==(e=e.firstActivePrework)||null==(e=e.path)?void 0:e.series.find(t=>"N"===t.is_user_finished_series),preworksArray:t=>Object.keys(t.preworks).map(e=>t.preworks[e]),firstSerieWithQuiz:(t,e)=>e.currentSectionSeries.find(t=>"N"===t.is_user_finished_series||"Y"===t.is_user_finished_series&&"PASSED"!==(null==(t=t.quizes)?void 0:t.quiz_status)),firstNotPassedPathExam:(e,r)=>r.currentSectionPaths.find(e=>{var r=null==e?void 0:e.is_user_finished_path,n=(e=null==e?void 0:e.exam,"PASSED"!==(null==e?void 0:e.status));if(r&&!e||e&&n)return t}),allQuizesPassed:(t,e)=>null==(e=e.firstNotPassedPathExam)||!e.series.find(t=>"PASSED"!==(null==t||null==(t=t.quizes)?void 0:t.quiz_status)),firstNotPassedExam:(t,e)=>null==(e=e.firstNotPassedPathExam)?void 0:e.exam,lastUnlockedSection:t=>{var e=null==(t=t.program)?void 0:t.sections;let r=null;if(e)for(let o=e.length-1;0<=o;o--){var n=e[o];if(n.modules.find(t=>!0===(null==(t=t.dp_group_program_section_module)?void 0:t.is_unlocked))){r=n;break}}return r},lastUnlockedModule:(t,e)=>{var r=null==(e=e.lastUnlockedSection)?void 0:e.modules;let n=null;if(r)for(let a=r.length-1;0<=a;a--){var o,i=r[a];if(!0===(null==(o=i.dp_group_program_section_module)?void 0:o.is_unlocked)){n=i;break}}return n}},actions:{async initiateSingleProgramData({commit:t},e){t("programIsLoading"),t("setProgram",(await Object(n.r)(e,{headers:{"X-Should-Cache":"true"}})).data.data),t("programNotLoading")},async getSingleProgramData({commit:t},e){return t("programIsLoading"),e=await Object(n.r)(e,{headers:{"X-Should-Cache":"true"}}),t("setProgram",e.data.data),t("programNotLoading"),e},async getPrework({commit:t},{dpModuleId:e,module:r}){t("addloadingPrework",e);var o=await Object(n.n)(e);return t("setPrework",{prework:o.data.data[0],module:r}),t("removeloadingPrework",e),o},async getSingleProgramStats({commit:t,state:e}){t("programStatsIsLoading"),t("setProgramStats",(await Object(n.o)(e.program.id)).data),t("programStatsNotLoading")},async getSectionInformation({state:t,commit:e},r){t.sectionInformation[r]||(e("sectionInformationIsLoading"),e("setSectionInformation",{data:(await Object(n.q)(r)).data,dpProgramSection:r}),e("sectionInformationNotLoading"))},saveQuizResult({commit:t,dispatch:e},r){t("updatePreworkQuiz",r),"PASSED"===r.quiz_status&&e("getSingleProgramStats")},saveExamResult({commit:t,dispatch:e},r){t("updatePreworkExam",r),"PASSED"===r.quiz_status&&e("getSingleProgramStats")}},mutations:{programIsLoading(t){t.loadingProgram=!0},programNotLoading(t){t.loadingProgram=!1},programStatsIsLoading(t){t.loadingProgramStats=!0},programStatsNotLoading(t){t.loadingProgramStats=!1},setToolbarModal(t,e){t.toolbarModal=e},setProgram(t,e){t.program=e},setProgramStats(t,e){t.programStats=e},setCurrentSectionSlug(t,e){t.currentSectionSlug=e},addloadingPrework(t,e){t.loadingPreworks.push(e)},removeloadingPrework(t,e){e=t.loadingPreworks.indexOf(e),t.loadingPreworks.splice(e,1)},sectionInformationIsLoading(t){t.loadingSectionInformation=!0},sectionInformationNotLoading(t){t.loadingSectionInformation=!1},setSectionInformation(t,e){e&&i.a.set(t.sectionInformation,e.dpProgramSection,e.data)},setPrework(t,e){var r;e&&(r=e.prework,e=e.module.preworks[0])&&(Object.assign(e,r),i.a.set(t.preworks,r.dp_program_section_module_id,e))},updatePreworkQuiz(t,e){e&&(e.serieObject.quizes=e.data)},updatePreworkExam(t,e){e&&(e.pathObject.exam.status=e.data.status)},clearProgram(t){t.program=null,t.programStats=null,t.preworks={},t.currentSectionSlug=null,t.sectionInformation={},t.loadingProgram=!0,t.loadingPreworks=[],t.loadingSectionInformation=!0,t.loadingProgramStats=!0},updateHomework(t,{sectionId:e,moduleId:r,homeworkId:n,homework:o}){var i=[...t.program.sections],a=i.findIndex(t=>t.id===e),s=i[a],u=s.modules.findIndex(t=>t.id===r),c=s.modules[u].homeworks.findIndex(t=>t.id===n);s.modules[u].homeworks[c].reflections_data.is_finished=o.reflections_data.is_finished,t.program={...t.program,sections:[...i.slice(0,a),s,...i.slice(a+1)]}}}}}.call(this,r("dd40")(t))},"7c73":function(t,e,r){"use strict";function n(){}function o(t){t.write(p("")),t.close();var e=t.parentWindow.Object;return t=null,e}var i,a=r("825a"),s=r("37e8"),u=r("7839"),c=r("d012"),d=r("1be4"),l=r("cc12"),f=(r=r("f772"),"prototype"),m="script",g=r("IE_PROTO"),p=function(t){return"<"+m+">"+t+""},v=function(){try{i=new ActiveXObject("htmlfile")}catch(t){}v="undefined"==typeof document||document.domain&&i?o(i):(t=l("iframe"),e="java"+m+":",t.style.display="none",d.appendChild(t),t.src=String(e),(e=t.contentWindow.document).open(),e.write(p("document.F=Object")),e.close(),e.F);for(var t,e,r=u.length;r--;)delete v[f][u[r]];return v()};c[g]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(n[f]=a(t),r=new n,n[f]=null,r[g]=t):r=v(),void 0===e?r:s.f(r,e)}},"8bd5":function(t,e,r){"use strict";var n=r("23e7"),o=r("a258").findLast;r=r("44d2");n({target:"Array",proto:!0},{findLast:function(t){return o(this,t,1