{"version":3,"sources":["webpack:///./src/components/documents/DocumentGroup2.vue?f001","webpack:///./src/server/scheduleEvents.js","webpack:///./src/components/documents/DocumentGroup2.vue?da93","webpack:///./src/server/scheduledMedication.js","webpack:///./src/components/documents/DocumentGroup2.vue?958a","webpack:///./src/components/documents/DocumentGroup2.vue","webpack:///src/components/documents/DocumentGroup2.vue","webpack:///./src/components/documents/DocumentGroup2.vue?1017","webpack:///./src/components/documents/DocumentGroup2.vue?e86a","webpack:///./src/server/documentGroup.js","webpack:///./src/server/eoc.js","webpack:///./src/helpers/layout.js"],"names":["filter","result","http","post","data","id","patch","scheduleEventId","get","eocId","api","render","_vm","this","_c","_self","staticClass","ready","_e","staticStyle","attrs","_v","on","$event","$router","back","_s","formComputed","name","current","createdBy","fullName","_f","createdAt","isActionRequired","formGroup","_l","forms","form","key","class","formId","prevSetCurrentFormItem","getFormDocumentColor","getFormDocumentIcon","currentForm","modalTitle","document","status","ref","version","content","layout","validationErrorMessage","prevSubmitForm","directives","rawName","value","documentRendered","expression","staticRenderFns","getFormSubmitId","results","components","Layout","sharedDocumentId","sharedDocument","submitId","submit","effectiveDateTime","effectiveDateTimeErrors","refetchDocuments","initialEffectiveDate","initialEffectiveTime","client","documentStatus","eoc","formGroupId","clientId","formIds","documentId","methods","episodeOfCareIds","types","cL","mrn","firstName","middleName","lastName","dateOfBirth","email","phone","ssn","ssnUnmasked","gender","race","ethnicity","language","city","state","maritalStatus","occupation","zipcode","addressLine1","addressLine2","episodeOfCare","eocn","location","startDate","endDate","additionalsReportResults","referralSource","primaryProvider","credentials","eocCares","day","levelOfCare","eocC","medicationScheduledList","insurances","allergies","contacts","guarantors","formName","showType","moment","withoutErrors","confirm","title","view","then","catch","mode","effectiveDate","documentGroupId","bakedLayout","callbackConfirm","topPos","firstErrorElement","formatDatePretty","documentGroup","computed","hasUnsavedChanges","editorShown","set","modalSize","modalSubtitle","statusClass","statusIcon","watch","component","basePath","delete","query","put","viewUrl","defaults","baseURL","SessionService","session","token","upload","file","formData","FormData","append","config","headers","hasClass","ele","cls","className","match","RegExp"],"mappings":"yIAAA,W,2DCAA,gBAEe,QACb,YAAYA,GACV,MAAMC,QAAeC,OAAKC,KAAM,4BAA4BH,GAC5D,OAAOC,EAAOG,MAEhB,mBAAmBC,EAAID,GACrB,MAAMH,QAAeC,OAAKI,MACvB,0CAAyCD,EAC1CD,GAEF,OAAOH,EAAOG,MAEhB,wBAAwBC,EAAIE,GAC1B,MAAMN,QAAeC,OAAKI,MACvB,+CAA8CD,KAAME,KAEvD,OAAON,EAAOG,MAEhB,kCAAkCC,GAChC,MAAMJ,QAAeC,OAAKM,IACvB,yDAAwDH,GAE3D,OAAOJ,EAAOG,MAEhB,qBAAqBK,GACnB,aAAaP,OAAKM,IAAK,4CAA2CC,M,oCC3BtE,W,2DCAA,gBAEe,QACb,YAAYA,GACV,OAAOC,OAAIP,KAAM,kCAAiCM,M,oCCJtD,W,yCCAA,IAAIE,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,SAAS,CAACA,EAAG,MAAM,CAACE,YAAY,kBAAkB,CAACF,EAAG,MAAM,CAACE,YAAY,OAAO,CAACF,EAAG,MAAM,CAACE,YAAY,aAAa,CAACF,EAAG,SAAS,CAAGF,EAAIK,MAAmML,EAAIM,KAAhMJ,EAAG,MAAM,CAACE,YAAY,mDAAmD,CAACF,EAAG,YAAY,CAACK,YAAY,CAAC,MAAQ,OAAO,OAAS,QAAQC,MAAM,CAAC,QAAU,UAAU,MAAQ,eAAe,GAAYR,EAAIS,GAAG,KAAMT,EAAIK,MAAOH,EAAG,MAAM,CAACE,YAAY,yBAAyB,CAACF,EAAG,MAAM,CAACA,EAAG,WAAW,CAACE,YAAY,mBAAmBI,MAAM,CAAC,QAAU,OAAO,KAAO,MAAME,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOX,EAAIY,QAAQC,UAAU,CAACX,EAAG,IAAI,CAACE,YAAY,qBAAq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QAAQ,CAACyC,WAAW,CAAC,CAAC3B,KAAK,gBAAgB4B,QAAQ,kBAAkBC,MAAO7C,EAAI8C,iBAAkBC,WAAW,qBAAqB3C,YAAY,6BAA6B,CAACJ,EAAIS,GAAG,uCAAuCT,EAAIM,MAAM,IAAI,UAEpkE0C,EAAkB,G,qKCiLtB,MAAMC,EAAkB,CAACC,EAASrB,KAClC,4BACA,aACA,mCAEA,aAGe,OACfb,iCACAmC,YACAC,eAEA5D,OACA,OACAa,SACAgD,qDACAC,kBACAR,oBACAjD,SACA0D,cACAhC,eACAiC,YACA3B,UACAM,cACAM,0BACAgB,uBACAC,2BACAC,oBACAC,0BACAC,0BACAC,UACAC,yBACAC,WAGA,sBAEA,iBACA,yCACA,4CACA,iDAEA,0BACA,mDACA,6BAEA,uBACA,mFACA,2CACA,kCAEA,gBACA,oEAEA,gCACAT,uBACAU,8BACAC,6BACAhB,6CACAiB,+BACAtE,4CAEA,qEACA,yDAEA,WACA,cACAuE,qCAEA,kCACA,qBAAA1C,OAAAY,YACA,eAEA+B,YACA,qCACA,4BACA,sBAEA,gCACA,mBACA,6CAEA,+DACA,gCACA,8BACA,uBACA,wBACA,iCAEA,4CACA,gCACA,oBACA,wBACA,WACA,uCACA,YACA,IACAb,kCACAlB,yDAEA,gBACA,yCACA,oDACA,wDACA,WAEA,4BACAgC,wBACAC,gBAEA,mBACAC,uCAEAR,6DACA,KACA,qBACAA,MAEA,GACAvE,QACAgF,UACAC,sBACAC,wBACAC,oBACAC,0BACAC,cACAC,cACAC,UACAC,0BACAC,iCACAC,2BACAC,0CACAC,uCACAC,YACAC,8BACAC,sDACAC,wBACAC,kBACAC,4BACAC,4BACAC,eACApG,QACAqG,YACA1D,gBACA2D,uCACAC,sBACAC,kBACAC,oDACAC,gCACAC,kBACA,CACA3G,QACAiF,sBACAE,oBACAD,wBACA0B,2BAEA,KACAC,oBACAC,oCACAC,YACAC,qDAEAC,2BAEAC,wBACAC,sBACAC,oBACAC,+BAEA,kCACAjF,SACAkF,gBACAzE,UACAwB,SACAE,MACA7B,iBACA6E,4BAEA,cACA,qBACAC,0CACA,0BACA,qBACAA,qCACA,2BAEA,2BACA,6CAeA,OAbA,gCACA,yCACA,4DACAC,MAGA,kEACA,kCACA,4CAEAA,MAGA,GAEAxE,uBAEA,eACA,mCACA,0CAEA,aACAyE,QACA,CACAC,MACA,2EAEA,CACAC,iBAGAC,eACA,qBAEAC,sBAEA,oBAGA,oBACA,+BACA,SAKA,GAJA,+BACAlI,mCAGA,GACA,+CACA,mBACA,uCAAAmI,iBACA,mBA0BA,GAvBA,aACAvE,sDAEA,4BACAM,+BACAiE,eACApF,2BACAqF,qDACAC,8BACAC,uBAGA,2BACAtE,wCACAqE,8BACAtF,2BACAqF,qDACAE,gBAEA,6CACA,8CAEA,yBACA,EAEA,YADAC,IAGA,qDACA,0BACA,iCACA,0CACA,6BAEA,2CACAlG,cAGA,WACA,cACA0C,+BAEA,mEACA,kCACA,qBAAA1C,OAAAY,gBACA,CACA,4CACA,IACA,mCACAuF,eACAC,iBAEA3F,sEACA0F,KACA,+DAEA,cACA,qBACA,mDACA,6BAEA,uBACA,eAEA/F,0BACA,uBACA,aACAqF,QACA,CACAC,2CAEA,CACAC,iCAGAC,YAAA9H,WACA,eACA,8BACA,6DACA,6BAGA,6BAGA+H,sBAEA,4BAGA,4BACA,0BACA,6CACA,yDAEA,WACA,cACAnD,qCAEA,kCACA,qBAAA1C,OAAAY,aAEAP,wBACA,eACA,8CACA,+BACA,eACA,sCACA,2BACA,UAIA,UAEAC,uBACA,eACA,8CACA,+BACA,eACA,iDACA,wCACA,uBAIA,UAEA+F,oBACA,0BAEA,8BACA,gEACAC,OACAjI,6CACAuH,SACA,+BAEAC,uBAIAU,aACA,qCACAhG,6BACAkC,0CAEA,gCACA+D,mDAEA,yDACA,mEACA,oDACA,8BACA,yBACA,qCAEA,mCAGAC,aACAvI,MACA,2BAEAwI,OACA,wBAGAC,YACA,yBACA,sDACA,sDACA,MAEAnG,aAC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IAAoBkG,EAAUG,M,kCCzCvE,gBAEA,MAAMf,EAAW,2BAEF,QACb,UAAUlJ,GACR,MAAMJ,QAAeS,OAAIF,IAAK,GAAE+I,KAAYlJ,KAC5C,OAAOJ,EAAOG,Q,kCCPlB,kCAAO,MAAMoK,EAAW,CAACC,EAAKC,IAE1BD,GACAA,EAAIE,aACFF,EAAIE,UAAUC,MAAM,IAAIC,OAAO,UAAYH,EAAM","file":"chunk-3c049a9a.27451e80.js","sourcesContent":["export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DocumentGroup2.vue?vue&type=style&index=1&id=b7157912&prod&lang=css&\"","import http from \"./core\";\n\nexport default {\n  async query(filter) {\n    const result = await http.post(`api/portal/ScheduleEvents`, filter);\n    return result.data;\n  },\n  async setCheckedIn(id, data) {\n    const result = await http.patch(\n      `api/portal/ScheduleEvents/SetCheckedIn/${id}`,\n      data\n    );\n    return result.data;\n  },\n  async cancelAppointment(id, scheduleEventId) {\n    const result = await http.patch(\n      `api/portal/ScheduleEvents/CancelAppointment/${id}/${scheduleEventId}`\n    );\n    return result.data;\n  },\n  async isPatientOutstandingBalance(id) {\n    const result = await http.get(\n      `api/portal/ScheduleEvents/IsPatientOutstandingBalance/${id}`\n    );\n    return result.data;\n  },\n  async getEventsByEoc(eocId) {\n    return await http.get(`api/portal/ScheduleEvents/GetEventsByEoc/${eocId}`);\n  }\n};\n","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DocumentGroup2.vue?vue&type=style&index=0&id=b7157912&prod&scoped=true&lang=css&\"","import api from \"./core\";\n\nexport default {\n  async query(eocId) {\n    return api.post(`api/portal/ScheduledMedication/${eocId}`);\n  }\n};\n","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DocumentGroup2.vue?vue&type=style&index=2&id=b7157912&prod&scoped=true&lang=css&\"","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('layout',[_c('div',{staticClass:\"container my-4\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-12\"},[_c('b-card',[(!_vm.ready)?_c('div',{staticClass:\"d-flex flex-column align-items-center mt-4 mb-4\"},[_c('b-spinner',{staticStyle:{\"width\":\"4rem\",\"height\":\"4rem\"},attrs:{\"variant\":\"primary\",\"label\":\"Spinning\"}})],1):_vm._e(),_vm._v(\" \"),(_vm.ready)?_c('div',{staticClass:\"document-toolbar mb-4\"},[_c('div',[_c('b-button',{staticClass:\"font-weight-bold\",attrs:{\"variant\":\"link\",\"size\":\"sm\"},on:{\"click\":function($event){return _vm.$router.back()}}},[_c('i',{staticClass:\"fa fa-arrow-left\"}),_vm._v(\"\\n                Back\\n              \")])],1),_vm._v(\" \"),_c('div',[_vm._v(\"\\n              \"+_vm._s(_vm.formComputed.name)+\"\\n              Sent by \"+_vm._s(_vm.formComputed.current.createdBy.fullName)+\" On\\n              \"+_vm._s(_vm._f(\"formatDate\")(_vm.formComputed.current.createdAt))+\"\\n            \")])]):_vm._e(),_vm._v(\" \"),(_vm.isActionRequired && _vm.ready)?_c('div',{staticClass:\"d-flex w-100 h-100 pb-3\"},[_c('div',{staticClass:\"sidebar-forms-container bg-extra-light-gray d-flex flex-column justify-content-between\"},[(_vm.formGroup)?_c('div',{staticClass:\"sidebar-forms\"},_vm._l((_vm.formGroup.forms),function(form){return _c('div',{key:form.id},[_c('div',{staticClass:\"sidebar-menu-form-item d-flex flex-row align-items-center justify-content-between rounded-right\",class:form.id == _vm.formId ? 'bg-primary' : 'hover-bg-light-blue',on:{\"click\":function($event){return _vm.prevSetCurrentFormItem(form.id)}}},[_c('div',{staticClass:\"d-flex flex-row align-items-center\",staticStyle:{\"width\":\"85%\"}},[_c('span',{staticClass:\"ml-2 no-wrap-text\",class:_vm.getFormDocumentColor(form.id)\n                            ? 'text-' +\n                              _vm.getFormDocumentColor(form.id) +\n                              (form.id == _vm.formId ? ' text-shadow' : '')\n                            : form.id == _vm.formId\n                            ? 'text-white'\n                            : '',attrs:{\"id\":'form-group-tooltip-' + form.id}},[_vm._v(\"\\n                        \"+_vm._s(form.name)+\"\\n                      \")])]),_vm._v(\" \"),(_vm.getFormDocumentIcon(form.id))?_c('i',{staticClass:\"fa mr-3\",class:'fa-' + _vm.getFormDocumentIcon(form.id)}):(form.id == _vm.formId)?_c('div',{staticClass:\"little-circle bg-white rounded-circle mr-3\"}):_vm._e()])])}),0):_vm._e()]),_vm._v(\" \"),(_vm.currentForm)?_c('div',{staticClass:\"text-center border-left current-form-container w-100 h-100\"},[_c('div',{staticClass:\"d-flex flex-column justify-content-between align-items-center border-bottom px-3 bg-extra-light-gray p-2\"},[_c('div',{staticClass:\"w-100 d-flex flex-row justify-content-between align-items-center\"},[_c('h5',{staticClass:\"modal-title font-weight-bold\",attrs:{\"align\":\"center\"}},[_vm._v(\"\\n                    \"+_vm._s(_vm.modalTitle)+\"\\n                  \")])])]),_vm._v(\" \"),_c('div',{staticClass:\"builder w-100 p-2 position-relative\"},[_c('div',{staticClass:\"position-relative\"},[(_vm.document && _vm.document.status == 'Completed')?_c('div',{staticClass:\"disable-form bg-med-light-gray\"}):_vm._e(),_vm._v(\" \"),_c('fb-form-viewer',{ref:\"formViewer\",attrs:{\"json\":_vm.currentForm.version.content.layout,\"showType\":\"form-submitter\"}})],1)]),_vm._v(\" \"),_c('div',{staticClass:\"d-flex justify-content-between align-items-center p-2 border-top bg-extra-light-gray\"},[_c('div',{staticClass:\"text-danger text-left\"},[_vm._v(\"\\n                  \"+_vm._s(_vm.validationErrorMessage)+\"\\n                \")]),_vm._v(\" \"),_c('div',{staticClass:\"mt-1\"},[_c('b-button',{staticClass:\"mr-2\",attrs:{\"variant\":\"primary\",\"size\":\"sm\"},on:{\"click\":function($event){return _vm.prevSubmitForm(null)}}},[_vm._v(\"\\n                    Complete and Submit\\n                  \")])],1)])]):_vm._e()]):_vm._e(),_vm._v(\" \"),(!_vm.isActionRequired && _vm.ready)?_c('b-row',{directives:[{name:\"html-sanitize\",rawName:\"v-html-sanitize\",value:(_vm.documentRendered),expression:\"documentRendered\"}],staticClass:\"document-render-container\"},[_vm._v(\"\\n            Hello\\n            \")]):_vm._e()],1)],1)])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n  <layout>\n    <div class=\"container my-4\">\n      <div class=\"row\">\n        <div class=\"col-md-12\">\n          <b-card>\n            <div\n              v-if=\"!ready\"\n              class=\"d-flex flex-column align-items-center mt-4 mb-4\"\n            >\n              <b-spinner\n                style=\"width: 4rem; height: 4rem\"\n                variant=\"primary\"\n                label=\"Spinning\"\n              />\n            </div>\n\n            <div class=\"document-toolbar mb-4\" v-if=\"ready\">\n              <div>\n                <b-button\n                  @click=\"$router.back()\"\n                  variant=\"link\"\n                  size=\"sm\"\n                  class=\"font-weight-bold\"\n                >\n                  <i class=\"fa fa-arrow-left\" />\n                  Back\n                </b-button>\n              </div>\n\n              <div>\n                {{ formComputed.name }}\n                Sent by {{ formComputed.current.createdBy.fullName }} On\n                {{ formComputed.current.createdAt | formatDate }}\n              </div>\n            </div>\n\n            <div\n              class=\"d-flex w-100 h-100 pb-3\"\n              v-if=\"isActionRequired && ready\"\n            >\n              <div\n                class=\"sidebar-forms-container bg-extra-light-gray d-flex flex-column justify-content-between\"\n              >\n                <div v-if=\"formGroup\" class=\"sidebar-forms\">\n                  <div v-for=\"form in formGroup.forms\" :key=\"form.id\">\n                    <div\n                      @click=\"prevSetCurrentFormItem(form.id)\"\n                      class=\"sidebar-menu-form-item d-flex flex-row align-items-center justify-content-between rounded-right\"\n                      :class=\"\n                        form.id == formId ? 'bg-primary' : 'hover-bg-light-blue'\n                      \"\n                    >\n                      <div\n                        class=\"d-flex flex-row align-items-center\"\n                        style=\"width: 85%\"\n                      >\n                        <span\n                          class=\"ml-2 no-wrap-text\"\n                          :class=\"\n                            getFormDocumentColor(form.id)\n                              ? 'text-' +\n                                getFormDocumentColor(form.id) +\n                                (form.id == formId ? ' text-shadow' : '')\n                              : form.id == formId\n                              ? 'text-white'\n                              : ''\n                          \"\n                          :id=\"'form-group-tooltip-' + form.id\"\n                        >\n                          {{ form.name }}\n                        </span>\n                      </div>\n                      <i\n                        v-if=\"getFormDocumentIcon(form.id)\"\n                        class=\"fa mr-3\"\n                        :class=\"'fa-' + getFormDocumentIcon(form.id)\"\n                      ></i>\n                      <div\n                        v-else-if=\"form.id == formId\"\n                        class=\"little-circle bg-white rounded-circle mr-3\"\n                      ></div>\n                    </div>\n                  </div>\n                </div>\n              </div>\n\n              <div\n                class=\" text-center border-left current-form-container w-100 h-100\"\n                v-if=\"currentForm\"\n              >\n                <div\n                  class=\"d-flex flex-column justify-content-between align-items-center border-bottom px-3 bg-extra-light-gray p-2\"\n                >\n                  <div\n                    class=\"w-100 d-flex flex-row justify-content-between align-items-center\"\n                  >\n                    <h5 class=\"modal-title font-weight-bold\" align=\"center\">\n                      {{ modalTitle }}\n                    </h5>\n                    <!-- <div class=\"modal-subtitle\">{{ modalSubtitle }}</div> -->\n                  </div>\n                </div>\n\n                <div class=\"builder w-100 p-2 position-relative\">\n                  <div class=\"position-relative\">\n                    <div\n                      class=\"disable-form bg-med-light-gray\"\n                      v-if=\"document && document.status == 'Completed'\"\n                    ></div>\n                    <fb-form-viewer\n                      :json=\"currentForm.version.content.layout\"\n                      showType=\"form-submitter\"\n                      ref=\"formViewer\"\n                    ></fb-form-viewer>\n                  </div>\n                </div>\n\n                <div\n                  class=\"d-flex justify-content-between align-items-center p-2 border-top bg-extra-light-gray\"\n                >\n                  <!-- <div\n                    class=\"d-flex align-items-center mr-2 color-custom-dark-grey mt-1\"\n                    v-if=\"document && document.lastUpdated\"\n                  >\n                    <i class=\"fa fa-save mr-2 text-primary\"></i>\n                    <span style=\"font-size: 12px\">\n                      Last saved: {{ formatDate(document.lastUpdated) }}\n                      <span class=\"text-primary\">\n                        ({{ formatTimeAgo(document.lastUpdated) }})\n                      </span>\n                    </span>\n                  </div> -->\n\n                  <div class=\"text-danger text-left\">\n                    {{ validationErrorMessage }}\n                  </div>\n\n                  <div class=\"mt-1\">\n                    <b-button\n                      class=\"mr-2\"\n                      variant=\"primary\"\n                      size=\"sm\"\n                      @click=\"prevSubmitForm(null)\"\n                    >\n                      Complete and Submit\n                    </b-button>\n                  </div>\n                </div>\n              </div>\n            </div>\n\n            <b-row\n              v-if=\"!isActionRequired && ready\"\n              v-html-sanitize=\"documentRendered\"\n              class=\"document-render-container\"\n            >\n              Hello\n              <!-- This Document is complete and submitted. -->\n            </b-row>\n          </b-card>\n        </div>\n      </div>\n    </div>\n  </layout>\n</template>\n\n<script>\nimport { mapGetters, mapMutations, mapState, mapActions } from \"vuex\";\nimport moment from \"moment\";\nimport documentServer from \"../../server/document\";\nimport Layout from \"../workspace/Layout.vue\";\nimport serverCatalog from \"../../server/catalog\";\nimport serverEoc from \"../../server/eoc\";\nimport {\n  formatDateOnlyMysql,\n  formatDateTimeSql,\n  formatDatePretty,\n  formatDateTimeMysql\n} from \"../../helpers/date\";\nimport { hasClass } from \"../../helpers/layout\";\nimport { validateRequired, validateDateTime } from \"../../helpers/validation\";\nimport documentGroup from \"../../server/documentGroup\";\nimport scheduleEventServer from \"../../server/scheduleEvents\";\nimport scheduledMedicationServer from \"../../server/scheduledMedication\";\nconst getFormSubmitId = (results, formId) => {\n  for (let index = 0; index < results.length; index++) {\n    const result = results[index];\n    if (result.formId == formId) return result.documentId;\n  }\n  return null;\n};\n\nexport default {\n  name: \"DocumentGroupAddEditModal\",\n  components: {\n    Layout\n  },\n  data() {\n    return {\n      ready: false,\n      sharedDocumentId: this.$route.params.sharedDocumentId,\n      sharedDocument: {},\n      documentRendered: \"\",\n      eocId: \"\",\n      submitId: null,\n      formGroup: null,\n      submit: null,\n      formId: \"\",\n      document: null,\n      validationErrorMessage: \"\",\n      effectiveDateTime: null,\n      effectiveDateTimeErrors: [],\n      refetchDocuments: false,\n      initialEffectiveDate: null,\n      initialEffectiveTime: null,\n      client: {},\n      documentStatus: \"Pending\",\n      eoc: null\n    };\n  },\n  async mounted() {\n    // const currentAdjustedDateTime = this.getCurrentAdjustedDateTime();\n    const currentAdjustedDateTime = new Date();\n    this.effectiveDateTime = formatDateTimeMysql(currentAdjustedDateTime);\n    this.initialEffectiveDate = formatDateOnlyMysql(currentAdjustedDateTime);\n    this.initialEffectiveTime = moment(currentAdjustedDateTime).format(\"HH:mm\");\n\n    this.setCurrentForm(null);\n    this.sharedDocument = await documentServer.getSharedDocument(\n      this.sharedDocumentId\n    );\n    await this.renderDocuments();\n    this.submitId = this.sharedDocument.documentGroup?.id;\n    this.formGroup = await this.getFormGroupById(\n      this.sharedDocument.formGroup.id\n    );\n    if (this.submitId) {\n      this.submit = await this.getFormGroupSubmitById(this.submitId);\n    }\n    await this.initializeFormGroupSubmit({\n      submitId: this.submitId,\n      formGroupId: this.formGroup.id,\n      clientId: this.user.PatientId,\n      results: this.submit ? this.submit.results : null,\n      formIds: this.formGroup.formIds,\n      eocId: this.sharedDocument.episodeOfCareId\n    });\n    const form = await this.getFormBuilderFormById(this.formGroup.formIds[0]);\n    const version = await this.getFormBuilderFormVersionById(form.current.id);\n\n    let documentId = null;\n    if (this.submit) {\n      documentId = getFormSubmitId(this.submit.results, form.id);\n    }\n    await this.initializeFormSubmit(form.id, documentId);\n    this.setCurrentForm({ form, version });\n    this.ready = true;\n  },\n  methods: {\n    ...mapMutations(\"formGroupSubmitter\", [\n      \"initializeFormGroupSubmit\",\n      \"setCurrentForm\"\n    ]),\n    ...mapMutations(\"formSubmitter\", [\n      \"setInitialValues\",\n      \"setFormSubmitterFormHasUnsavedChanges\"\n    ]),\n    ...mapActions(\"formGroupSubmitter\", [\"addFormGroupSubmit\"]),\n    ...mapActions(\"formSubmitter\", [\n      \"initializeFormSubmitterForm\",\n      \"addFormSubmitterForm\",\n      \"editFormSubmitterForm\",\n      \"validateFormSubmitterForm\"\n    ]),\n    ...mapActions(\"session\", [\"loadDocuments\"]),\n    async initializeFormSubmit(formId, submitId) {\n      this.formId = formId;\n      await this.setInitialValues();\n      let submit = null;\n      let form = await this.getFormBuilderFormById(formId);\n      let version = form.current;\n      if (submitId) {\n        submit = await this.getFormSubmitById(submitId);\n        version = await this.getFormBuilderFormVersionById(submit.versionId);\n      }\n      this.document = submit;\n      this.documentStatus = submit ? submit.status : \"Pending\";\n      const client = await serverCatalog.getClient(this.user.PatientId);\n      const eoc = await serverEoc.get(this.sharedDocument.episodeOfCareId);\n      this.eoc = eoc;\n\n      const eocCares = await scheduleEventServer.query({\n        episodeOfCareIds: [eoc.id],\n        types: [\"LOC\"]\n      });\n      const primaryProvider = eoc.caseLoads.find(\n        cL => cL.caseRole.type == \"PrimaryProvider\"\n      )\n        ? eoc.caseLoads.find(cL => cL.caseRole.type == \"PrimaryProvider\").user\n        : null;\n      const medicationScheduledList = await scheduledMedicationServer.query(\n        eoc.id\n      );\n      const clientFiltered = {\n        id: client.id,\n        mrn: client.mrn,\n        firstName: client.firstName,\n        middleName: client.middleName,\n        lastName: client.lastName,\n        dateOfBirth: client.dateOfBirth,\n        email: client.email,\n        phone: client.phone,\n        ssn: client.ssn,\n        ssnUnmasked: client.ssnUnmasked,\n        gender: client.gender ? client.gender.name : \"\",\n        race: client.race ? client.race.name : \"\",\n        ethnicity: client.ethnicity ? client.ethnicity.name : \"\",\n        language: client.language ? client.language.name : \"\",\n        city: client.city,\n        state: client.state ? client.state.name : \"\",\n        maritalStatus: client.maritalStatus ? client.maritalStatus.name : \"\",\n        occupation: client.occupation,\n        zipcode: client.zipcode,\n        addressLine1: client.addressLine1,\n        addressLine2: client.addressLine2,\n        episodeOfCare: {\n          id: eoc.id,\n          eocn: eoc.eocn,\n          status: eoc.status,\n          location: eoc.location ? eoc.location.name : \"\",\n          startDate: eoc.startDate,\n          endDate: eoc.endDate,\n          additionalsReportResults: eoc.additionalsReportResults,\n          referralSource: eoc.referralSource,\n          primaryProvider: primaryProvider\n            ? {\n                id: primaryProvider.id,\n                firstName: primaryProvider.firstName,\n                lastName: primaryProvider.lastName,\n                middleName: primaryProvider.middleName,\n                credentials: primaryProvider.credentials\n              }\n            : null,\n          eocCares: eocCares.map(eocC => ({\n            day: formatDateOnlyMysql(eocC.startDateTime),\n            levelOfCare:\n              eocC.services.length > 0 ? eocC.services[0].service.name : \"\"\n          })),\n          medicationScheduledList: medicationScheduledList\n        },\n        insurances: client.insurances,\n        allergies: client.allergies,\n        contacts: client.contacts,\n        guarantors: client.guarantors\n      };\n      await this.initializeFormSubmitterForm({\n        formId: formId,\n        formName: form.name,\n        version: version,\n        client: clientFiltered,\n        eoc: eoc,\n        document: submit ? submit : null,\n        showType: \"form-submitter\"\n      });\n      this.client = clientFiltered;\n      this.effectiveDate = submit\n        ? moment(submit.effectiveDate).format(\"YYYY-MM-DD\")\n        : this.initialEffectiveDate;\n      this.effectiveTime = submit\n        ? moment(submit.effectiveDate).format(\"HH:mm\")\n        : this.initialEffectiveTime;\n    },\n    async validateFormSubmit() {\n      let withoutErrors = await this.validateFormSubmitterForm();\n\n      this.effectiveDateTimeErrors = [];\n      if (!validateRequired(this.effectiveDateTime)) {\n        this.effectiveDateTimeErrors.push(\"This field is required\");\n        withoutErrors = false;\n      }\n\n      if (this.effectiveDateTime && !validateDateTime(this.effectiveDateTime)) {\n        this.effectiveDateTimeErrors.push(\n          \"This field must have a valid date format\"\n        );\n        withoutErrors = false;\n      }\n\n      return withoutErrors;\n    },\n    prevSubmitForm(callbackConfirm = null) {\n      if (\n        this.document &&\n        this.document.status == \"Completed\" &&\n        this.documentStatus != this.document.status\n      ) {\n        this.$dialog\n          .confirm(\n            {\n              title:\n                'This will set the document status to \"PENDING\" do you want to continue?'\n            },\n            {\n              view: \"confirm\"\n            }\n          )\n          .then(async () => {\n            this.submitForm(callbackConfirm);\n          })\n          .catch(function() {});\n      } else {\n        this.submitForm(callbackConfirm);\n      }\n    },\n    async submitForm(callbackConfirm) {\n      this.validationErrorMessage = \"\";\n      let result = true;\n      if (this.documentStatus != \"Draft\") {\n        result = await this.validateFormSubmit();\n      }\n\n      if (result) {\n        const bakedLayout = this.$refs.formViewer.getBakedLayout();\n        if (!this.submitId) {\n          const submit = await this.addFormGroupSubmit({ mode: \"Results\" });\n          this.submitId = submit.id;\n        }\n        if (\n          this.submit &&\n          getFormSubmitId(this.submit.results, this.currentForm.form.id)\n        ) {\n          await this.editFormSubmitterForm({\n            submitId: this.sharedDocumentId,\n            mode: \"Results\",\n            status: this.documentStatus,\n            effectiveDate: formatDateTimeSql(this.effectiveDateTime),\n            documentGroupId: this.submitId,\n            bakedLayout\n          });\n        } else {\n          await this.addFormSubmitterForm({\n            sharedDocumentId: this.sharedDocument.id,\n            documentGroupId: this.submitId,\n            status: this.documentStatus,\n            effectiveDate: formatDateTimeSql(this.effectiveDateTime),\n            bakedLayout\n          });\n          this.initialEffectiveDate = this.effectiveDate;\n          this.initialEffectiveTime = this.effectiveTime;\n        }\n        this.refetchDocuments = true;\n        if (callbackConfirm) {\n          callbackConfirm();\n          return;\n        }\n        let formIndex = this.formIds.indexOf(this.currentForm.form.id);\n        this.setCurrentForm(null);\n        if (formIndex >= this.formIds.length - 1) formIndex = -1;\n        const form = await this.getFormBuilderFormById(\n          this.formGroup.formIds[formIndex + 1]\n        );\n        const version = await this.getFormBuilderFormVersionById(\n          form.current.id\n        );\n\n        let documentId = null;\n        if (this.submit) {\n          documentId = getFormSubmitId(this.submit.results, form.id);\n        }\n        this.submit = await this.getFormGroupSubmitById(this.submitId);\n        await this.initializeFormSubmit(form.id, documentId);\n        this.setCurrentForm({ form, version });\n      } else {\n        let firstErrorElement = document.querySelector(\".is-invalid\");\n        let topPos = 0;\n        while (!hasClass(firstErrorElement, \"builder\")) {\n          topPos += firstErrorElement.offsetTop;\n          firstErrorElement = firstErrorElement.offsetParent;\n        }\n        document.querySelector(\".form-group-submit-modal .builder\").scrollTop =\n          topPos - 10;\n        this.validationErrorMessage = \"Please fix errors and try again.\";\n      }\n      this.ready = false;\n      this.loadDocuments();\n      this.sharedDocument = await documentServer.getSharedDocument(\n        this.sharedDocumentId\n      );\n      await this.renderDocuments();\n      this.ready = true;\n    },\n    prevSetCurrentFormItem(formId) {\n      if (this.hasUnsavedChanges) {\n        this.$dialog\n          .confirm(\n            {\n              title: \"Do you want to save your changes?\"\n            },\n            {\n              view: \"confirm-unsaved-changes\"\n            }\n          )\n          .then(async ({ data }) => {\n            if (data.confirmValue) {\n              this.prevSubmitForm(async () => {\n                this.submit = await this.getFormGroupSubmitById(this.submitId);\n                this.setCurrentFormItem(formId);\n              });\n            } else {\n              this.setCurrentFormItem(formId);\n            }\n          })\n          .catch(function() {});\n      } else {\n        this.setCurrentFormItem(formId);\n      }\n    },\n    async setCurrentFormItem(formId) {\n      this.setCurrentForm(null);\n      const form = await this.getFormBuilderFormById(formId);\n      const version = await this.getFormBuilderFormVersionById(form.current.id);\n\n      let documentId = null;\n      if (this.submit) {\n        documentId = getFormSubmitId(this.submit.results, form.id);\n      }\n      await this.initializeFormSubmit(form.id, documentId);\n      this.setCurrentForm({ form, version });\n    },\n    getFormDocumentColor(formId) {\n      if (this.submit) {\n        for (let index = 0; index < this.submit.results.length; index++) {\n          const result = this.submit.results[index];\n          if (result.formId == formId) {\n            if (result.status == \"Completed\") return \"success\";\n            if (result.status == \"Draft\") return \"danger\";\n            return \"warning\";\n          }\n        }\n      }\n      return \"\";\n    },\n    getFormDocumentIcon(formId) {\n      if (this.submit) {\n        for (let index = 0; index < this.submit.results.length; index++) {\n          const result = this.submit.results[index];\n          if (result.formId == formId) {\n            if (result.status == \"Completed\") return \"check text-success\";\n            if (result.status == \"Draft\") return \"clock-o text-danger\";\n            return \"clock-o text-warning\";\n          }\n        }\n      }\n      return \"\";\n    },\n    formatDatePretty(dateTime) {\n      return formatDatePretty(dateTime);\n    },\n    async renderDocuments() {\n      if (this.sharedDocument.documentGroup?.id) {\n        documentGroup\n          .render(this.sharedDocument.documentGroup.id)\n          .then(res => {\n            this.documentRendered = res.data;\n          })\n          .catch(console.error);\n      }\n    }\n  },\n  computed: {\n    ...mapState(\"formGroupSubmitter\", {\n      currentForm: state => state.currentForm,\n      formIds: state => state.formGroupSubmit.formIds\n    }),\n    ...mapState(\"formSubmitter\", {\n      hasUnsavedChanges: state => state.form.hasUnsavedChanges\n    }),\n    ...mapGetters(\"formSubmitter\", [\"getFormSubmitById\"]),\n    ...mapGetters(\"formGroupSubmitter\", [\"getFormGroupSubmitById\"]),\n    ...mapGetters(\"formGroup\", [\"getFormGroupById\"]),\n    ...mapGetters(\"formBuilder\", [\n      \"getFormBuilderFormById\",\n      \"getFormBuilderFormVersionById\"\n    ]),\n    ...mapGetters(\"session\", [\"user\"]),\n    // ...mapGetters(\"layout\", [\"hasCurrentUserDocumentPermission\"]),\n    // ...mapGetters(\"layout\", [\"getCurrentAdjustedDateTime\"]),\n    editorShown: {\n      get() {\n        return !!this.$attrs.value;\n      },\n      set(value) {\n        this.$emit(\"input\", value);\n      }\n    },\n    modalSize() {\n      return this.currentForm &&\n        this.currentForm.version.content.properties.modalSize\n        ? this.currentForm.version.content.properties.modalSize\n        : \"lg\";\n    },\n    modalTitle() {\n      let title = this.formGroup ? this.formGroup.name : \"\";\n      return title;\n    },\n    modalSubtitle() {\n      let title = \"\";\n      if (this.eoc) {\n        title = this.formatEoc(\n          \" | \" + this.eoc.patient.firstName,\n          this.eoc.patient.lastName,\n          this.eoc.patient.mrn,\n          this.eoc.eocn\n        );\n      }\n      return title;\n    },\n    statusClass() {\n      if (this.documentStatus) {\n        switch (this.documentStatus) {\n          case \"Pending\":\n            return \"badge-warning text-white\";\n          case \"Completed\":\n            return \"badge-success text-white\";\n          case \"Draft\":\n            return \"badge-danger\";\n          default:\n            break;\n        }\n      }\n      return \"light\";\n    },\n    statusIcon() {\n      if (this.documentStatus) {\n        switch (this.documentStatus) {\n          case \"Pending\":\n            return \"fa-clock\";\n          case \"Completed\":\n            return \"fa-check-circle\";\n          case \"Draft\":\n            return \"fa-clock\";\n          default:\n            break;\n        }\n      }\n      return \"light\";\n    },\n    formComputed() {\n      return {\n        ...this.sharedDocument,\n        name: this.sharedDocument.formGroup?.name || \"Untitled\",\n        current: {\n          createdAt: this.sharedDocument.sentAt || \"\",\n          createdBy: {\n            firstName: this.sharedDocument.sentBy?.firstName || \"N/A\",\n            lastName: this.sharedDocument.sentBy?.lastName || \"N/A\",\n            fullName: this.sharedDocument.sentBy?.fullName || \"N/A\"\n          }\n        }\n      };\n    },\n    isActionRequired() {\n      return !this.sharedDocument.readOnly;\n    }\n  },\n  watch: {\n    effectiveDateTime() {\n      this.setFormSubmitterFormHasUnsavedChanges({ hasUnsavedChanges: true });\n    }\n  }\n};\n</script>\n\n<style scoped>\n.sidebar-menu-form-item {\n  margin-top: 5px;\n  padding-left: 20px;\n  height: 44px;\n  width: 96%;\n  font-size: 16px;\n}\n.little-circle {\n  width: 10px;\n  height: 10px;\n}\n.sidebar-menu-form-item:hover {\n  cursor: pointer;\n}\n.builder {\n  overflow-y: auto;\n  overflow-x: hidden;\n  height: calc(100% - 89px);\n}\n.sidebar-forms-container {\n  width: 300px;\n  margin-left: -16px;\n  margin-top: -16px;\n  margin-bottom: -30px;\n  overflow-y: auto;\n  overflow-x: hidden;\n  height: calc(100% + 32px);\n  z-index: 2;\n}\n.current-form-container {\n  margin-top: -16px;\n  margin-right: -16px;\n  margin-bottom: -30px;\n}\n.no-wrap-text {\n  text-overflow: ellipsis;\n  white-space: nowrap;\n  overflow: hidden;\n}\n.disable-form {\n  position: absolute;\n  top: 0;\n  left: 0;\n  bottom: 0;\n  right: 0;\n  z-index: 99;\n  opacity: 0.3;\n}\n.effective-date-container {\n  height: 70px;\n  max-height: 70px;\n}\n.form-title-container {\n  max-width: calc(100% - 595px);\n}\n.text-shadow {\n  text-shadow: 2px 2px 4px #000000;\n}\n.modal-subtitle {\n  font-size: 14px;\n  margin-top: -4px;\n}\n.status-badge {\n  font-size: 16px;\n  padding: 10px 18px !important;\n}\n</style>\n\n<style>\n.effective-date-container .input-group-prepend,\n.input-group-append {\n  display: initial;\n}\n.shadow-form {\n  box-shadow: 0px 0px 14px -2px rgba(0, 0, 0, 0.5);\n}\n</style>\n\n<style scoped>\n.document-render-container >>> .general-container {\n  background: transparent !important;\n}\n.document-render-container >>> .general-container .document-view {\n  padding: 0;\n  margin: 0 15px;\n  max-width: 100% !important;\n}\n</style>\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DocumentGroup2.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DocumentGroup2.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./DocumentGroup2.vue?vue&type=template&id=b7157912&scoped=true&\"\nimport script from \"./DocumentGroup2.vue?vue&type=script&lang=js&\"\nexport * from \"./DocumentGroup2.vue?vue&type=script&lang=js&\"\nimport style0 from \"./DocumentGroup2.vue?vue&type=style&index=0&id=b7157912&prod&scoped=true&lang=css&\"\nimport style1 from \"./DocumentGroup2.vue?vue&type=style&index=1&id=b7157912&prod&lang=css&\"\nimport style2 from \"./DocumentGroup2.vue?vue&type=style&index=2&id=b7157912&prod&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n  script,\n  render,\n  staticRenderFns,\n  false,\n  null,\n  \"b7157912\",\n  null\n  \n)\n\nexport default component.exports","import api from \"./core\";\nimport SessionService from \"./session\";\n\nconst basePath = \"api/portal/DocumentGroups\";\n\nexport default {\n  async get(id) {\n    const { data } = await api.get(`${basePath}/${id}`);\n    return data;\n  },\n  async update(id, data) {\n    const { data: result } = await api.patch(`${basePath}/${id}`, data);\n    return result;\n  },\n  delete(id) {\n    return api.delete(`${basePath}/${id}`);\n  },\n  query(formId, clientId, eocId) {\n    return api.post(`${basePath}/ByEoc/${formId}/${eocId}`);\n  },\n  async create(data) {\n    const { data: result } = await api.put(`${basePath}`, data);\n    return result;\n  },\n  render(documentGroupId) {\n    return api.get(`${basePath}/RenderDocumentGroup/${documentGroupId}`);\n  },\n  viewUrl(id) {\n    return `${api.defaults.baseURL}${basePath}/Download/${\n      SessionService.session().token\n    }/${id}`;\n  },\n  upload(sharedDocumentId, data) {\n    const { file } = data;\n    const formData = new FormData();\n    if (file) formData.append(\"File\", file);\n    const config = {\n      headers: {\n        \"content-type\": \"multipart/form-data\"\n      }\n    };\n    return api.put(`${basePath}/Upload/${sharedDocumentId}`, formData, config);\n  }\n};\n","import api from \"./core\";\n\nconst basePath = \"api/portal/EpisodeOfCare\";\n\nexport default {\n  async get(id) {\n    const result = await api.get(`${basePath}/${id}`);\n    return result.data;\n  }\n};\n","export const hasClass = (ele, cls) => {\n  return (\n    ele &&\n    ele.className &&\n    !!ele.className.match(new RegExp(\"(\\\\s|^)\" + cls + \"(\\\\s|$)\"))\n  );\n};\n\nexport const addClass = (ele, cls) => {\n  if (!hasClass(ele, cls)) ele.className += \" \" + cls;\n};\n\nexport const removeClass = (ele, cls) => {\n  if (hasClass(ele, cls)) {\n    var reg = new RegExp(\"(\\\\s|^)\" + cls + \"(\\\\s|$)\");\n    ele.className = ele.className.replace(reg, \" \");\n  }\n};\n\nexport const hasParentClass = (child, classname) => {\n  if (\n    child.className &&\n    typeof child.className == \"string\" &&\n    child.className.split(\" \").indexOf(classname) >= 0\n  )\n    return child;\n  try {\n    //Throws TypeError if child doesn't have parent any more\n    if (child.parentNode) return hasParentClass(child.parentNode, classname);\n    return false;\n  } catch (TypeError) {\n    return false;\n  }\n};\n\nexport const on = (fromElement, eventType, selector, callback) => {\n  fromElement.addEventListener(eventType, function(event) {\n    if (event.target.matches(selector)) {\n      callback(event.target, event);\n    }\n  });\n};\n"],"sourceRoot":""}