{"version":3,"sources":["webpack:///./src/views/Components/Reminder/notificationSettings.vue","webpack:///src/views/Components/Reminder/notificationSettings.vue","webpack:///./src/views/Components/Reminder/notificationSettings.vue?4ef1","webpack:///./src/views/Components/Reminder/notificationSettings.vue?8040","webpack:///./src/views/Components/UserTemplate.vue","webpack:///src/views/Components/UserTemplate.vue","webpack:///./src/views/Components/UserTemplate.vue?f3c8","webpack:///./src/views/Components/UserTemplate.vue?ee53","webpack:///./src/views/Components/Company/PaymentPlanSettings.vue","webpack:///src/views/Components/Company/PaymentPlanSettings.vue","webpack:///./src/views/Components/Company/PaymentPlanSettings.vue?1fa1","webpack:///./src/views/Components/Company/PaymentPlanSettings.vue?d6ec","webpack:///./src/views/Components/Reminder/Index.vue?9a95","webpack:///./src/views/Components/Company/PaymentPlanSettings.vue?5efe","webpack:///./src/views/Components/Company/TermsDisclosure.vue","webpack:///src/views/Components/Company/TermsDisclosure.vue","webpack:///./src/views/Components/Company/TermsDisclosure.vue?8f11","webpack:///./src/views/Components/Company/TermsDisclosure.vue?0d9a","webpack:///./src/views/Components/Reminder/Index.vue","webpack:///src/views/Components/Reminder/Index.vue","webpack:///./src/views/Components/Reminder/Index.vue?4315","webpack:///./src/views/Components/Reminder/Index.vue?4eb8"],"names":["render","_vm","this","_c","_self","staticClass","_v","attrs","scopedSlots","_u","key","fn","_ref","ariaDescribedby","model","value","paymentPlanPastDueNotificationPaymentAction","callback","$$v","expression","on","$emit","_objectSpread","paymentPlanSettings","staticRenderFns","props","bindPaymentPlanSettings","data","created","_created","_asyncToGenerator","regeneratorRuntime","mark","_callee","settings","wrap","_context","prev","next","sent","stop","apply","arguments","component","ref","staticStyle","_s","previewText","showSideBar","_l","keyItems","$event","preventDefault","copy","directives","name","rawName","modifiers","domProps","template","preview","$set","_name","mounted","watch","immediate","handler","val","methods","_this","t","navigator","clipboard","writeText","then","$emitter","emit","message","_preview","r","$client","post","isSuccess","$refs","previewModal","show","agreed","dontAgree","handleSubmit","submitSettings","bindPaymentPlanReminders","upsertReminderNotificationDetail","deleteReminderNotificationDetail","e","paymentPlanReminders","membershipPaymentPlanReminderDaysOptions","paymentPlanReminderDays","_e","paymentPlanDontProcessPastDue","setDefaultPaymentPlan","hasPaymentPlanLegal","paymentPlanLegal","paymentPlanKeyItems","updateTemplate","components","Reminder","UserTemplate","TermsDisclosure","company","paymentPlanTemplateLegal","_mounted","i","push","text","_setDefaultPaymentPlan","_callee2","_context2","termsDisclosureModal","hide","defaultPaymentPlanLegal","m","_submitSettings","_callee3","_context3","abrupt","_m","selected","k","handleDelete","notifications","n","id","class","concat","notification","style","isDefault","day","handleNotificationClick","onGoingDay","creatingNotification","createNotification","showNotificationSettings","startDay","defaultTemplate","defaultTemplatesReminders","handlePageDimmed","handleDefaultTemplateUpdated","notificationToDelete","modalDelete","handleUpserted","Edit","NotificationSettings","isPageDimmed","reminderId","getReminders","beforeDestroy","_getReminders","index","_handleDelete","filter","f","_handleDefaultTemplateUpdated","_callee4","_context4","upsertNotification","_x","_handleUpserted","_callee5","_context5","_x2","_upsertNotification","_callee6","_this2","_context6","$nextTick","find","_x3","Number","length","lastNotification","subject","isRetryPayment","isEmailNotification","isTextNotification"],"mappings":"m6BAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACA,EAAG,KAAK,CAACE,YAAY,QAAQ,CAACJ,EAAIK,GAAG,2BAA2BH,EAAG,MAAM,CAACE,YAAY,+BAA+B,CAACF,EAAG,IAAI,CAACF,EAAIK,GAAG,qBAAqBH,EAAG,MAAMF,EAAIK,GAAG,6EAA6EH,EAAG,eAAe,CAACE,YAAY,OAAOE,MAAM,CAAC,MAAQ,IAAIC,YAAYP,EAAIQ,GAAG,CAAC,CAACC,IAAI,UAAUC,GAAG,SAADC,GAA8B,IAAlBC,EAAeD,EAAfC,gBAAmB,MAAO,CAACV,EAAG,eAAe,CAACI,MAAM,CAAC,mBAAmBM,EAAgB,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C,SAAAC,KAAA,WACAC,QAAA,sCAGA,KAAAyD,aAAAH,GAAApD,EAAApD,KAAAZ,MAAAoH,GAAA2C,EAAAxI,KAAA,EAEA,KAAAqH,eAAA,OAGA,KAAAf,sBAAA,EAEA,KAAAmC,WAAA,WACAF,EAAAvC,aAAAuC,EAAA5C,cAAA+C,MACA,SAAAf,GAAA,OAAAA,EAAA9B,KAAA0C,EAAAvC,aAAAH,SAEA,yBAAA2C,EAAAtI,UAAAoI,EAAA,mBAnBAP,EAAAY,GAAA,OAAAN,EAAAlI,MAAA,KAAAC,WAAA,OAAA2H,EAAA,GAsBAxB,mBAAA,WACA,KAAAD,sBAAA,EACA,KAAAE,0BAAA,EACA,IAAAC,EACAmC,OAAA,KAAAjD,cAAA,KAAAA,cAAAkD,OAAA,GAAA1C,KAAA,EAGA,GAAAM,EAAA,GACA,KAAApE,SAAAC,KAAA,sDADA,CAKA,IAAAwG,EAAA,KAAAnD,cACA,KAAAA,cAAAkD,OAAA,GAGA,KAAA7C,aAAA,CACAH,IAAA,QAAAF,cAAAkD,OAAA,GACA1C,IAAA,KACAD,WAAA,EACAkB,WAAA,KAAAA,WACA2B,QAAAD,EAAAC,QACAxG,QAAAuG,EAAAvG,QACAyG,gBAAA,EACAC,qBAAA,EACAC,oBAAA,GAGA,KAAAzC,eChR4W,I,wBCQxWpG,EAAY,eACd,EACA3C,EACAwB,GACA,EACA,KACA,KACA,MAIa,aAAAmB,E","file":"js/Components-Company-PaymentPlanSettings-vue.21096043.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('h2',{staticClass:\"pb-4\"},[_vm._v(\"Notification Settings\")]),_c('div',{staticClass:\"card shadow-none border p-4\"},[_c('b',[_vm._v(\"Payment Options\")]),_c('br'),_vm._v(\"\\n Payment options for patients paying their past due balance.\\n\\n \"),_c('b-form-group',{staticClass:\"pt-4\",attrs:{\"label\":\"\"},scopedSlots:_vm._u([{key:\"default\",fn:function({ ariaDescribedby }){return [_c('b-form-radio',{attrs:{\"aria-describedby\":ariaDescribedby,\"name\":\"some-radios\",\"value\":0},model:{value:(_vm.paymentPlanPastDueNotificationPaymentAction),callback:function ($$v) {_vm.paymentPlanPastDueNotificationPaymentAction=$$v},expression:\"paymentPlanPastDueNotificationPaymentAction\"}},[_vm._v(\"Total Past Due\")]),_c('b-form-radio',{attrs:{\"aria-describedby\":ariaDescribedby,\"name\":\"some-radios\",\"value\":1},model:{value:(_vm.paymentPlanPastDueNotificationPaymentAction),callback:function ($$v) {_vm.paymentPlanPastDueNotificationPaymentAction=$$v},expression:\"paymentPlanPastDueNotificationPaymentAction\"}},[_vm._v(\"Current Past Due and Total Past Due\")]),_c('b-form-radio',{attrs:{\"aria-describedby\":ariaDescribedby,\"name\":\"some-radios\",\"value\":2},model:{value:(_vm.paymentPlanPastDueNotificationPaymentAction),callback:function ($$v) {_vm.paymentPlanPastDueNotificationPaymentAction=$$v},expression:\"paymentPlanPastDueNotificationPaymentAction\"}},[_vm._v(\"Any Amount, Current Past Due and Total Past Due\")])]}}])}),_c('b-button',{attrs:{\"block\":\"\"},on:{\"click\":() => {\n _vm.$emit('payment-plan-payment-options-updated', {\n ..._vm.paymentPlanSettings,\n paymentPlanPastDueNotificationPaymentAction: _vm.paymentPlanPastDueNotificationPaymentAction,\n });\n }}},[_vm._v(\"Update Payment Options\")])],1)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <div>\n <h2 class=\"pb-4\">Notification Settings</h2>\n\n <div class=\"card shadow-none border p-4\">\n <b>Payment Options</b><br />\n Payment options for patients paying their past due balance.\n\n <b-form-group label=\"\" class=\"pt-4\" v-slot=\"{ ariaDescribedby }\">\n <b-form-radio\n v-model=\"paymentPlanPastDueNotificationPaymentAction\"\n :aria-describedby=\"ariaDescribedby\"\n name=\"some-radios\"\n :value=\"0\"\n >Total Past Due</b-form-radio\n >\n <b-form-radio\n v-model=\"paymentPlanPastDueNotificationPaymentAction\"\n :aria-describedby=\"ariaDescribedby\"\n name=\"some-radios\"\n :value=\"1\"\n >Current Past Due and Total Past Due</b-form-radio\n >\n <b-form-radio\n v-model=\"paymentPlanPastDueNotificationPaymentAction\"\n :aria-describedby=\"ariaDescribedby\"\n name=\"some-radios\"\n :value=\"2\"\n >Any Amount, Current Past Due and Total Past Due</b-form-radio\n >\n </b-form-group>\n <b-button\n block\n @click=\"\n () => {\n $emit('payment-plan-payment-options-updated', {\n ...paymentPlanSettings,\n paymentPlanPastDueNotificationPaymentAction: paymentPlanPastDueNotificationPaymentAction,\n });\n }\n \"\n >Update Payment Options</b-button\n >\n </div>\n </div>\n</template>\n\n<script>\nexport default {\n props: { bindPaymentPlanSettings: null },\n data() {\n return {\n paymentPlanSettings: null,\n paymentPlanPastDueNotificationPaymentAction: null,\n };\n },\n async created() {\n let settings = await this.bindPaymentPlanSettings();\n\n this.paymentPlanSettings = settings;\n this.paymentPlanPastDueNotificationPaymentAction =\n settings.paymentPlanPastDueNotificationPaymentAction;\n },\n};\n</script>\n\n<style></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!./notificationSettings.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!./notificationSettings.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./notificationSettings.vue?vue&type=template&id=e39c2622\"\nimport script from \"./notificationSettings.vue?vue&type=script&lang=js\"\nexport * from \"./notificationSettings.vue?vue&type=script&lang=js\"\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 null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"pt-4\"},[_c('b-modal',{ref:\"previewModal\",attrs:{\"hide-footer\":\"\",\"size\":\"sm\"}},[_c('h2',{staticClass:\"mt--5 pb-3\"},[_vm._v(\"Terms & Conditions\")]),_c('div',{staticStyle:{\"white-space\":\"pre-wrap\"}},[_vm._v(_vm._s(_vm.previewText))])]),_c('b-sidebar',{attrs:{\"backdrop\":\"\",\"lazy\":\"\",\"id\":\"sidebar-1\",\"title\":\"Key Fields\",\"bg-variant\":\"white\"},model:{value:(_vm.showSideBar),callback:function ($$v) {_vm.showSideBar=$$v},expression:\"showSideBar\"}},[_c('div',{staticClass:\"px-3 py-2\"},[_vm._v(\"\\n Click to copy the key field, and then paste it into your template.\\n \"),_c('hr'),_vm._l((_vm.model.keyItems),function(key){return _c('div',{key:key.key,staticClass:\"pb-3\"},[_c('div',{staticClass:\"d-flex\"},[_c('a',{attrs:{\"href\":\"#\"},on:{\"click\":function($event){$event.preventDefault();return _vm.copy(key.key)}}},[_c('div',{directives:[{name:\"b-tooltip\",rawName:\"v-b-tooltip.hover.right\",modifiers:{\"hover\":true,\"right\":true}}],attrs:{\"title\":key.value},domProps:{\"innerHTML\":_vm._s('{{ ' + key.key + ' }}')}})])])])})],2)]),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col\"},[_c('h3',[_vm._v(\"Template\")]),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-8\"},[_c('p',{staticClass:\"text-muted\"},[_vm._v(\"\\n Please adjust based on the practice's unique terms and conditions.\\n This template accepts these\\n \"),_c('a',{attrs:{\"href\":\"#\"},on:{\"click\":function($event){$event.preventDefault();_vm.showSideBar = true}}},[_vm._v(\"key fields\")]),_vm._v(\".\\n \")])]),_c('div',{staticClass:\"col-4 text-right mb-5\"},[_c('b-button',{staticClass:\"btn-outline-primary\",attrs:{\"variant\":\"primary\",\"disabled\":!_vm.model.template},on:{\"click\":_vm.preview}},[_c('i',{staticClass:\"fa-solid fa-eye\"}),_vm._v(\" Preview\")])],1)]),_c('b-textarea',{staticClass:\"form-control p-4\",attrs:{\"rules\":\"required\",\"rows\":\"16\"},on:{\"input\":function($event){return _vm.$emit('templateUpdate', _vm.model.template)}},model:{value:(_vm.model.template),callback:function ($$v) {_vm.$set(_vm.model, \"template\", $$v)},expression:\"model.template\"}})],1)])],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <div class=\"pt-4\">\n <b-modal ref=\"previewModal\" hide-footer size=\"sm\">\n <h2 class=\"mt--5 pb-3\">Terms & Conditions</h2>\n <div style=\"white-space:pre-wrap\">{{ previewText }}</div>\n </b-modal>\n\n <b-sidebar\n backdrop\n lazy\n id=\"sidebar-1\"\n title=\"Key Fields\"\n bg-variant=\"white\"\n v-model=\"showSideBar\"\n >\n <div class=\"px-3 py-2\">\n Click to copy the key field, and then paste it into your template.\n <hr />\n\n <div v-for=\"key in model.keyItems\" v-bind:key=\"key.key\" class=\"pb-3\">\n <div class=\"d-flex\">\n <a href=\"#\" @click.prevent=\"copy(key.key)\">\n <div\n v-b-tooltip.hover.right\n :title=\"key.value\"\n v-html=\"'{{ ' + key.key + ' }}'\"\n ></div>\n </a>\n </div>\n </div>\n </div>\n </b-sidebar>\n <div class=\"row\">\n <div class=\"col\">\n <h3>Template</h3>\n <div class=\"row\">\n <div class=\"col-8\">\n <p class=\"text-muted\">\n Please adjust based on the practice's unique terms and conditions.\n This template accepts these\n <a href=\"#\" @click.prevent=\"showSideBar = true\">key fields</a>.\n </p>\n </div>\n\n <div class=\"col-4 text-right mb-5\">\n <b-button\n variant=\"primary\"\n class=\"btn-outline-primary\"\n @click=\"preview\"\n :disabled=\"!model.template\"\n ><i class=\"fa-solid fa-eye\"></i> Preview</b-button\n >\n </div>\n </div>\n\n <b-textarea\n rules=\"required\"\n class=\"form-control p-4\"\n @input=\"$emit('templateUpdate', model.template)\"\n v-model=\"model.template\"\n rows=\"16\"\n >\n </b-textarea>\n </div>\n </div>\n </div>\n</template>\n\n<script>\nexport default {\n name: \"user-template\",\n props: { template: null, keyItems: null, _name: null },\n data() {\n return {\n model: { template: null, keyItems: null },\n previewText: null,\n showSideBar: false,\n };\n },\n mounted() {\n this.model.keyItems = this.keyItems;\n },\n watch: {\n template: {\n immediate: true,\n handler(val) {\n this.model.template = val;\n },\n },\n },\n\n methods: {\n copy(key) {\n let t = \"{{\" + key + \"}}\";\n\n navigator.clipboard.writeText(t).then(() => {\n this.$emitter.emit(\"success\", { message: t + \" copied to clipboard.\" });\n this.showSideBar = false;\n });\n },\n async preview() {\n let r = await this.$client.post(\"/api/usertemplate/preview\", this.model);\n\n if (r.data.isSuccess) {\n this.previewText = r.data.value.previewText;\n this.$refs.previewModal.show();\n }\n },\n },\n};\n</script>\n\n<style></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!./UserTemplate.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!./UserTemplate.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./UserTemplate.vue?vue&type=template&id=88845006\"\nimport script from \"./UserTemplate.vue?vue&type=script&lang=js\"\nexport * from \"./UserTemplate.vue?vue&type=script&lang=js\"\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 null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('b-modal',{ref:\"termsDisclosureModal\",attrs:{\"hide-footer\":\"\",\"body-class\":\"p-0\"}},[_c('terms-disclosure',{on:{\"agreed\":_vm.agreed,\"dontAgree\":_vm.dontAgree}})],1),_c('validation-observer',{ref:\"formValidator\",scopedSlots:_vm._u([{key:\"default\",fn:function({ handleSubmit }){return [_c('b-form',{attrs:{\"role\":\"form\"},on:{\"submit\":function($event){$event.preventDefault();return handleSubmit(_vm.submitSettings)}}},[_c('b-row',[_c('b-col',{staticClass:\"col\"},[_c('b-card',{staticClass:\"shadow-sm border mb-0 side-nav\",attrs:{\"no-body\":\"\"}},[_c('b-tabs',{attrs:{\"pills\":\"\",\"card\":\"\",\"vertical\":\"\"}},[_c('b-tab',{attrs:{\"title\":\"Past Due Notifications\",\"active\":\"\"}},[_c('Reminder',{attrs:{\"bindPaymentPlanSettings\":_vm.bindPaymentPlanSettings,\"bindPaymentPlanReminders\":_vm.bindPaymentPlanReminders,\"upsertReminderNotificationDetail\":_vm.upsertReminderNotificationDetail,\"deleteReminderNotificationDetail\":_vm.deleteReminderNotificationDetail},on:{\"payment-plan-payment-options-updated\":(e) => {\n _vm.$emit('updatePaymentPlanSettings', e);\n }}})],1),_c('b-tab',{attrs:{\"title\":\"Payment Reminders\"}},[_c('b-card-text',[_c('h3',[_vm._v(\"Payment Reminders\")]),_c('p',{staticClass:\"text-muted\"},[_vm._v(\"\\n Send payment plan reminders for upcoming payments.\\n \")]),_c('b-form-checkbox',{staticClass:\"pb-3\",attrs:{\"switch\":\"\",\"size\":\"lg\"},model:{value:(_vm.paymentPlanSettings.paymentPlanReminders),callback:function ($$v) {_vm.$set(_vm.paymentPlanSettings, \"paymentPlanReminders\", $$v)},expression:\"paymentPlanSettings.paymentPlanReminders\"}}),(_vm.paymentPlanSettings.paymentPlanReminders)?_c('div',[_c('b-row',{staticClass:\"pt-2 pb-3\",staticStyle:{\"max-width\":\"300px\"}},[_c('b-col',[_c('label',{staticClass:\"small\"},[_vm._v(\"\\n How many days prior?\\n \")]),_c('b-form-select',{attrs:{\"options\":_vm.membershipPaymentPlanReminderDaysOptions},model:{value:(\n _vm.paymentPlanSettings.paymentPlanReminderDays\n ),callback:function ($$v) {_vm.$set(_vm.paymentPlanSettings, \"paymentPlanReminderDays\", $$v)},expression:\"\\n paymentPlanSettings.paymentPlanReminderDays\\n \"}}),_c('br')],1)],1)],1):_vm._e(),_c('h3',{staticClass:\"pt-3\"},[_vm._v(\"Past Due Balances\")]),_c('p',{staticClass:\"text-muted\"},[_vm._v(\"\\n Include past-due amounts when processing upcoming\\n payments.\\n \")]),_c('b-form-checkbox',{staticClass:\"pb-3\",attrs:{\"switch\":\"\",\"size\":\"lg\"},model:{value:(\n _vm.paymentPlanSettings.paymentPlanDontProcessPastDue\n ),callback:function ($$v) {_vm.$set(_vm.paymentPlanSettings, \"paymentPlanDontProcessPastDue\", $$v)},expression:\"\\n paymentPlanSettings.paymentPlanDontProcessPastDue\\n \"}})],1),_c('b-button',{attrs:{\"type\":\"submit\",\"block\":\"\"}},[_vm._v(\"Save Reminder Settings\")])],1),_c('b-tab',{attrs:{\"title\":\"Agreement\"}},[_c('b-card-text',[_c('h3',[_vm._v(\"Payment Plan Agreement\")]),_c('p',{staticClass:\"text-muted\"},[_vm._v(\"\\n Set terms and conditions for payment plan authorizations\\n and approvals.\\n \")]),_c('b-form-checkbox',{attrs:{\"switch\":\"\",\"size\":\"lg\"},on:{\"change\":_vm.setDefaultPaymentPlan},model:{value:(_vm.hasPaymentPlanLegal),callback:function ($$v) {_vm.hasPaymentPlanLegal=$$v},expression:\"hasPaymentPlanLegal\"}}),(_vm.hasPaymentPlanLegal)?_c('div',[_c('user-template',{attrs:{\"template\":_vm.paymentPlanSettings.paymentPlanLegal,\"keyItems\":_vm.paymentPlanSettings.paymentPlanKeyItems},on:{\"templateUpdate\":_vm.updateTemplate}})],1):_vm._e()],1),_c('b-button',{attrs:{\"type\":\"submit\",\"block\":\"\"}},[_vm._v(\"Save Agreement Settings\")])],1)],1)],1)],1)],1)],1)]}}])})],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <div>\n <b-modal ref=\"termsDisclosureModal\" hide-footer body-class=\"p-0\">\n <terms-disclosure\n @agreed=\"agreed\"\n @dontAgree=\"dontAgree\"\n ></terms-disclosure>\n </b-modal>\n <validation-observer ref=\"formValidator\" v-slot=\"{ handleSubmit }\">\n <b-form role=\"form\" @submit.prevent=\"handleSubmit(submitSettings)\">\n <b-row>\n <b-col class=\"col\">\n <b-card no-body class=\"shadow-sm border mb-0 side-nav\">\n <b-tabs pills card vertical>\n <b-tab title=\"Past Due Notifications\" active>\n <Reminder\n :bindPaymentPlanSettings=\"bindPaymentPlanSettings\"\n :bindPaymentPlanReminders=\"bindPaymentPlanReminders\"\n :upsertReminderNotificationDetail=\"\n upsertReminderNotificationDetail\n \"\n :deleteReminderNotificationDetail=\"\n deleteReminderNotificationDetail\n \"\n @payment-plan-payment-options-updated=\"\n (e) => {\n $emit('updatePaymentPlanSettings', e);\n }\n \"\n ></Reminder>\n </b-tab>\n <b-tab title=\"Payment Reminders\">\n <b-card-text>\n <h3>Payment Reminders</h3>\n <p class=\"text-muted\">\n Send payment plan reminders for upcoming payments.\n </p>\n <b-form-checkbox\n v-model=\"paymentPlanSettings.paymentPlanReminders\"\n switch\n size=\"lg\"\n class=\"pb-3\"\n ></b-form-checkbox>\n <div v-if=\"paymentPlanSettings.paymentPlanReminders\">\n <b-row style=\"max-width:300px\" class=\"pt-2 pb-3\">\n <b-col>\n <label class=\"small\">\n How many days prior?\n </label>\n <b-form-select\n v-model=\"\n paymentPlanSettings.paymentPlanReminderDays\n \"\n :options=\"membershipPaymentPlanReminderDaysOptions\"\n ></b-form-select\n ><br />\n </b-col>\n </b-row>\n </div>\n\n <h3 class=\"pt-3\">Past Due Balances</h3>\n <p class=\"text-muted\">\n Include past-due amounts when processing upcoming\n payments.\n </p>\n <b-form-checkbox\n v-model=\"\n paymentPlanSettings.paymentPlanDontProcessPastDue\n \"\n switch\n size=\"lg\"\n class=\"pb-3\"\n ></b-form-checkbox>\n </b-card-text>\n <b-button type=\"submit\" block\n >Save Reminder Settings</b-button\n >\n </b-tab>\n <b-tab title=\"Agreement\">\n <b-card-text>\n <h3>Payment Plan Agreement</h3>\n <p class=\"text-muted\">\n Set terms and conditions for payment plan authorizations\n and approvals.\n </p>\n <b-form-checkbox\n v-model=\"hasPaymentPlanLegal\"\n @change=\"setDefaultPaymentPlan\"\n switch\n size=\"lg\"\n ></b-form-checkbox>\n\n <div v-if=\"hasPaymentPlanLegal\">\n <user-template\n :template=\"paymentPlanSettings.paymentPlanLegal\"\n :keyItems=\"paymentPlanSettings.paymentPlanKeyItems\"\n @templateUpdate=\"updateTemplate\"\n ></user-template>\n </div>\n </b-card-text>\n\n <b-button type=\"submit\" block\n >Save Agreement Settings</b-button\n >\n </b-tab>\n </b-tabs>\n </b-card>\n </b-col>\n </b-row>\n </b-form>\n </validation-observer>\n </div>\n</template>\n\n<script>\nimport TermsDisclosure from \"./TermsDisclosure.vue\";\nimport UserTemplate from \"@/views/Components/UserTemplate\";\nimport Reminder from \"@/views/Components/Reminder/Index.vue\";\n\nexport default {\n components: {\n Reminder,\n \"user-template\": UserTemplate,\n \"terms-disclosure\": TermsDisclosure,\n },\n props: {\n company: null,\n bindPaymentPlanSettings: null,\n bindPaymentPlanReminders: null,\n deleteReminderNotificationDetail: null,\n upsertReminderNotificationDetail: null,\n },\n data() {\n return {\n paymentPlanSettings: {\n paymentPlanReminders: null,\n paymentPlanReminderDays: null,\n paymentPlanTemplateLegal: null,\n paymentPlanKeyItems: [],\n },\n membershipPaymentPlanReminderDaysOptions: [],\n hasPaymentPlanLegal: false,\n };\n },\n async mounted() {\n this.paymentPlanSettings = await this.bindPaymentPlanSettings();\n\n for (let i = 1; i <= 6; i++) {\n this.membershipPaymentPlanReminderDaysOptions.push({ value: i, text: i });\n }\n\n this.hasPaymentPlanLegal =\n this.paymentPlanSettings.paymentPlanLegal != null;\n },\n methods: {\n async setDefaultPaymentPlan() {\n if (this.hasPaymentPlanLegal) {\n this.hasPaymentPlanLegal = false;\n this.$refs.termsDisclosureModal.show();\n }\n },\n agreed() {\n this.$refs.termsDisclosureModal.hide();\n this.paymentPlanSettings.paymentPlanLegal = this.paymentPlanSettings.defaultPaymentPlanLegal;\n this.hasPaymentPlanLegal = true;\n },\n dontAgree() {\n this.$refs.termsDisclosureModal.hide();\n\n this.paymentPlanSettings.paymentPlanLegal = \"\";\n this.hasPaymentPlanLegal = true;\n },\n updateTemplate(m) {\n this.paymentPlanSettings.paymentPlanLegal = m;\n },\n\n async submitSettings() {\n if (\n this.hasPaymentPlanLegal &&\n !this.paymentPlanSettings.paymentPlanLegal\n ) {\n this.$emitter.emit(\"error\", \"The payment plan template must be set.\");\n\n return;\n }\n\n if (!this.hasPaymentPlanLegal) {\n this.paymentPlanSettings.paymentPlanLegal = null;\n }\n\n this.$emit(\"updatePaymentPlanSettings\", this.paymentPlanSettings);\n },\n },\n};\n</script>\n\n<style>\n.side-nav .nav-item {\n display: block !important;\n padding-right: 0 !important;\n}\n.side-nav .nav-item .nav-link {\n background: transparent;\n width: 220px !important;\n box-shadow: none;\n -webkit-box-shadow: none;\n color: #666;\n padding: 10px 12px !important;\n border-radius: 4px !important;\n}\n.side-nav .nav-item .nav-link:hover {\n color: #4693ce;\n}\n.side-nav .nav-item .nav-link.active {\n background: #4693ce !important;\n color: #fff;\n}\n\nul.pdc-menu {\n padding: 0;\n margin: 0;\n}\n\nul.pdc-menu li {\n font-size: 0.9em;\n list-style-type: none;\n margin: 0;\n padding: 2px 0;\n}\n\nul.pdc-menu li a,\n.pdc-settings a {\n color: #8898aa;\n}\n\nul.pdc-menu li a {\n padding: 5px 10px;\n display: block;\n border-radius: 3px;\n}\n\nul.pdc-menu li.active a,\nul.pdc-menu li:hover a,\n.pdc-settings a:hover {\n color: #4693ce;\n background: #f6f9fc;\n}\n\nul.pdc-menu li.active a {\n font-weight: 700;\n background: #4693ce;\n color: #fff;\n}\n\nul.pdc-menu li a span {\n color: #ff9900;\n}\n\n.label {\n font-size: 0.9em;\n font-weight: 700;\n margin: 0;\n padding-bottom: 5px;\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!./PaymentPlanSettings.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!./PaymentPlanSettings.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./PaymentPlanSettings.vue?vue&type=template&id=81e20aac\"\nimport script from \"./PaymentPlanSettings.vue?vue&type=script&lang=js\"\nexport * from \"./PaymentPlanSettings.vue?vue&type=script&lang=js\"\nimport style0 from \"./PaymentPlanSettings.vue?vue&type=style&index=0&id=81e20aac&prod&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 null,\n null\n \n)\n\nexport default component.exports","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../node_modules/css-loader/index.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!./Index.vue?vue&type=style&index=0&id=3b8c856e&prod&lang=css\"","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../node_modules/css-loader/index.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!./PaymentPlanSettings.vue?vue&type=style&index=0&id=81e20aac&prod&lang=css\"","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"mt--4 pl-5 pr-5 pb-5\"},[_c('h1',{staticClass:\"pb-4\"},[_vm._v(\"\\n Disclosure\\n \")]),_vm._m(0),_c('h3',{staticClass:\"strong pb-3\"},[_vm._v(\"\\n Do you want to use our default terms and conditions template?\\n \")]),_c('b-form-group',[_c('b-button',{attrs:{\"variant\":\"danger\"},on:{\"click\":function($event){return _vm.$emit('dontAgree')}}},[_vm._v(\"No. I will use my own template\")]),_c('b-button',{attrs:{\"variant\":\"success\"},on:{\"click\":function($event){return _vm.$emit('agreed')}}},[_vm._v(\"Yes\")])],1)],1)\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('p',[_vm._v(\"\\n These sample templates are not legal advice and by using them you agree to\\n this disclaimer. The materials below are for informational purposes only\\n and do not constitute advertising, a solicitation or legal advice. You\\n should consult independent legal advice before publishing these\\n agreements. You should read the generated information with care and\\n modify, delete or add all and any areas as necessary. Use of, access to or\\n transmission of such materials and information or any of the links\\n contained herein is not intended to create, and receipt thereof does not\\n constitute formation of, an attorney-client relationship between Moolah\\n and the user or browser. You should not rely upon this information for any\\n purpose without seeking legal advice from a licensed attorney in your\\n state or province. The information contained is provided only as general\\n information and may or may not reflect the most current legal\\n developments; accordingly, information is not promised or guaranteed to be\\n correct or complete. Moolah expressly disclaims all liability in respect\\n to any actions taken or not taken based on any or all of the contents of\\n the provided template.\"),_c('br'),_c('br')])\n}]\n\nexport { render, staticRenderFns }","<template>\n <div class=\"mt--4 pl-5 pr-5 pb-5\">\n <h1 class=\"pb-4\">\n Disclosure\n </h1>\n <p>\n These sample templates are not legal advice and by using them you agree to\n this disclaimer. The materials below are for informational purposes only\n and do not constitute advertising, a solicitation or legal advice. You\n should consult independent legal advice before publishing these\n agreements. You should read the generated information with care and\n modify, delete or add all and any areas as necessary. Use of, access to or\n transmission of such materials and information or any of the links\n contained herein is not intended to create, and receipt thereof does not\n constitute formation of, an attorney-client relationship between Moolah\n and the user or browser. You should not rely upon this information for any\n purpose without seeking legal advice from a licensed attorney in your\n state or province. The information contained is provided only as general\n information and may or may not reflect the most current legal\n developments; accordingly, information is not promised or guaranteed to be\n correct or complete. Moolah expressly disclaims all liability in respect\n to any actions taken or not taken based on any or all of the contents of\n the provided template.<br />\n <br />\n \n </p>\n <h3 class=\"strong pb-3\">\n Do you want to use our default terms and conditions template?\n </h3>\n <b-form-group>\n \n <b-button variant=\"danger\" @click=\"$emit('dontAgree')\"\n >No. I will use my own template</b-button\n >\n <b-button variant=\"success\" @click=\"$emit('agreed')\">Yes</b-button>\n </b-form-group>\n </div>\n</template>\n\n<script>\nexport default {\n data() {\n return {\n selected: null,\n };\n },\n methods: {\n k() {\n if (this.selected == \"AGREED\") this.$emit(\"agreed\");\n else this.$emit(\"dontAgree\");\n },\n },\n};\n</script>\n\n<style></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!./TermsDisclosure.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!./TermsDisclosure.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./TermsDisclosure.vue?vue&type=template&id=0e1df04f\"\nimport script from \"./TermsDisclosure.vue?vue&type=script&lang=js\"\nexport * from \"./TermsDisclosure.vue?vue&type=script&lang=js\"\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 null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('b-modal',{ref:\"modalDelete\",attrs:{\"title\":\"Delete Notification\"},on:{\"ok\":_vm.handleDelete}},[_vm._v(\"\\n Are you sure you want to delete this notification?\\n \")]),_c('b-card-text',[_c('b-row',[_c('b-col',{staticClass:\"pr-5\",attrs:{\"md\":\"auto\"}},[_c('h3',{staticClass:\"pb-2\"},[_vm._v(\"\\n Notifications\\n \"),_c('i',{directives:[{name:\"b-popover\",rawName:\"v-b-popover.hover.right\",value:(\n 'Notifications will repeat each cycle upon a past due payment until the payment plan is canceled or the past due balance has been satisfied.'\n ),expression:\"\\n 'Notifications will repeat each cycle upon a past due payment until the payment plan is canceled or the past due balance has been satisfied.'\\n \",modifiers:{\"hover\":true,\"right\":true}}],staticClass:\"title-icon fa-solid fa-circle-info\",staticStyle:{\"font-size\":\"0.7em\"}})]),_vm._l((_vm.notifications),function(n,i){return _c('ul',{key:n.id,staticClass:\"pdc-menu\"},[_c('li',{class:`${\n _vm.notification && n.id == _vm.notification.id ? 'active' : ''\n } rounded-sm`,style:(`${\n n.isDefault\n ? 'z-index: 1000;position:relative;background:white;'\n : ''\n }`)},[(n.day == 0)?_c('a',{attrs:{\"href\":\"#\"},on:{\"click\":function($event){$event.preventDefault();return _vm.handleNotificationClick(n, i)}}},[_vm._v(\"Day 0\\n \")]):(n.day > 0)?_c('a',{attrs:{\"href\":\"#\"},on:{\"click\":function($event){$event.preventDefault();return _vm.handleNotificationClick(n, i)}}},[_vm._v(\"Day \"+_vm._s(n.day)+\"\\n \")]):(n.onGoingDay)?_c('a',{attrs:{\"href\":\"#\"},on:{\"click\":function($event){$event.preventDefault();return _vm.handleNotificationClick(n, i)}}},[_vm._v(\"Ongoing\\n \")]):_vm._e()])])}),_c('div',{staticClass:\"pt-3\"},[_c('b-button',{attrs:{\"variant\":`${_vm.creatingNotification ? 'success' : 'outline-primary'}`,\"block\":\"\",\"size\":\"sm\"},on:{\"click\":() => {\n _vm.createNotification();\n }}},[_vm._v(\"New Notification\")])],1),_c('div',{staticClass:\"pt-3\"},[_c('div',[_c('small',[_c('a',{attrs:{\"href\":\"#\"},on:{\"click\":function($event){$event.preventDefault();return (() => {\n _vm.creatingNotification = false;\n _vm.notification = null;\n _vm.showNotificationSettings = true;\n }).apply(null, arguments)}}},[_c('i',{staticClass:\"fa-regular fa-gear\"}),_vm._v(\" Notification Settings\")])])])]),_c('div',{staticClass:\"text-muted pdc-settings pt-5\"})],2),_c('b-col',{staticClass:\"border-left pl-5\",staticStyle:{\"max-width\":\"800px\"}},[(\n _vm.notification !== null &&\n _vm.startDay !== null &&\n !_vm.showNotificationSettings\n )?_c('Edit',{attrs:{\"defaultTemplate\":_vm.defaultTemplate,\"keyItems\":_vm.keyItems,\"notification\":_vm.notification,\"startDay\":_vm.startDay,\"defaultTemplatesReminders\":_vm.defaultTemplatesReminders},on:{\"onDimPage\":_vm.handlePageDimmed,\"onDefaultTemplateUpdated\":_vm.handleDefaultTemplateUpdated,\"onDelete\":(n) => {\n this.notificationToDelete = n;\n _vm.$refs.modalDelete.show();\n },\"onUpserted\":_vm.handleUpserted}}):_vm._e(),(_vm.showNotificationSettings && !_vm.notification)?_c('NotificationSettings',{attrs:{\"bindPaymentPlanSettings\":_vm.bindPaymentPlanSettings},on:{\"payment-plan-payment-options-updated\":(e) => {\n _vm.$emit('payment-plan-payment-options-updated', e);\n }}}):_vm._e()],1)],1)],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <div>\n <b-modal ref=\"modalDelete\" @ok=\"handleDelete\" title=\"Delete Notification\">\n Are you sure you want to delete this notification?\n </b-modal>\n <b-card-text>\n <b-row>\n <b-col md=\"auto\" class=\"pr-5\">\n <h3 class=\"pb-2\">\n Notifications\n <i\n class=\"title-icon fa-solid fa-circle-info\"\n style=\"font-size: 0.7em;\"\n v-b-popover.hover.right=\"\n 'Notifications will repeat each cycle upon a past due payment until the payment plan is canceled or the past due balance has been satisfied.'\n \"\n ></i>\n </h3>\n\n <ul class=\"pdc-menu\" v-for=\"(n, i) in notifications\" :key=\"n.id\">\n <li\n :style=\"\n `${\n n.isDefault\n ? 'z-index: 1000;position:relative;background:white;'\n : ''\n }`\n \"\n :class=\"\n `${\n notification && n.id == notification.id ? 'active' : ''\n } rounded-sm`\n \"\n >\n <a\n v-if=\"n.day == 0\"\n href=\"#\"\n @click.prevent=\"handleNotificationClick(n, i)\"\n >Day 0\n </a>\n <a\n v-else-if=\"n.day > 0\"\n href=\"#\"\n @click.prevent=\"handleNotificationClick(n, i)\"\n >Day {{ n.day }}\n </a>\n\n <a\n v-else-if=\"n.onGoingDay\"\n href=\"#\"\n @click.prevent=\"handleNotificationClick(n, i)\"\n >Ongoing\n </a>\n </li>\n </ul>\n\n <div class=\"pt-3\">\n <b-button\n :variant=\"\n `${creatingNotification ? 'success' : 'outline-primary'}`\n \"\n block\n size=\"sm\"\n @click=\"\n () => {\n createNotification();\n }\n \"\n >New Notification</b-button\n >\n </div>\n\n <div class=\"pt-3\">\n <div>\n <small\n ><a\n href=\"#\"\n @click.prevent=\"\n () => {\n creatingNotification = false;\n notification = null;\n showNotificationSettings = true;\n }\n \"\n ><i class=\"fa-regular fa-gear\"></i> Notification Settings</a\n ></small\n >\n </div>\n </div>\n\n <div class=\"text-muted pdc-settings pt-5\"></div>\n </b-col>\n <b-col class=\"border-left pl-5\" style=\"max-width: 800px;\">\n <Edit\n @onDimPage=\"handlePageDimmed\"\n @onDefaultTemplateUpdated=\"handleDefaultTemplateUpdated\"\n :defaultTemplate=\"defaultTemplate\"\n :keyItems=\"keyItems\"\n @onDelete=\"\n (n) => {\n this.notificationToDelete = n;\n $refs.modalDelete.show();\n }\n \"\n @onUpserted=\"handleUpserted\"\n :notification=\"notification\"\n :startDay=\"startDay\"\n :defaultTemplatesReminders=\"defaultTemplatesReminders\"\n v-if=\"\n notification !== null &&\n startDay !== null &&\n !showNotificationSettings\n \"\n />\n <NotificationSettings\n :bindPaymentPlanSettings=\"bindPaymentPlanSettings\"\n @payment-plan-payment-options-updated=\"\n (e) => {\n $emit('payment-plan-payment-options-updated', e);\n }\n \"\n v-if=\"showNotificationSettings && !notification\"\n />\n </b-col>\n </b-row>\n </b-card-text>\n </div>\n</template>\n\n<script>\nimport Edit from \"./edit\";\nimport NotificationSettings from \"./notificationSettings\";\n\nexport default {\n components: { Edit, NotificationSettings },\n props: {\n bindPaymentPlanReminders: null,\n bindPaymentPlanSettings: null,\n deleteReminderNotificationDetail: null,\n upsertReminderNotificationDetail: null,\n },\n data() {\n return {\n isPageDimmed: false,\n keyItems: null,\n notifications: null,\n showNotificationSettings: null,\n defaultTemplatesReminders: null,\n notificationToDelete: null,\n notification: null,\n creatingNotification: false,\n reminderId: null,\n startDay: null,\n defaultTemplate: null,\n };\n },\n\n async mounted() {\n await this.getReminders();\n this.notification = this.notifications[0];\n\n this.paymentPlanSettings = await this.bindPaymentPlanSettings();\n },\n beforeDestroy() {},\n methods: {\n async getReminders() {\n let r = await this.bindPaymentPlanReminders();\n\n if (r.data.isSuccess) {\n this.keyItems = r.data.value.keyItems;\n this.defaultTemplate = r.data.value.defaultTemplate;\n this.notifications = r.data.value.notifications;\n this.reminderId = r.data.value.reminderId;\n\n this.startDay = 0;\n }\n },\n handlePageDimmed() {\n this.isPageDimmed = true;\n this.$emitter.emit(\"dim-page\", {});\n },\n handleNotificationClick(notification, index) {\n this.creatingNotification = false;\n this.showNotificationSettings = false;\n if (index == 0) {\n this.notification = notification;\n this.startDay = 0;\n } else {\n this.notification = notification;\n this.startDay = this.notifications[index - 1].day + 1;\n }\n },\n\n async handleDelete() {\n if (this.notificationToDelete.id <= 0) {\n this.notifications = this.notifications.filter(\n (f) => f.id != this.notificationToDelete.id\n );\n return;\n }\n\n let r = await this.deleteReminderNotificationDetail(\n this.notificationToDelete\n );\n\n if (r.data.isSuccess) {\n this.$emitter.emit(\"success\", {\n message: \"Notification removed successfully\",\n });\n\n this.notification = this.notifications[0];\n\n await this.getReminders();\n }\n },\n async handleDefaultTemplateUpdated(e) {\n this.upsertNotification(e);\n },\n async handleUpserted(notification) {\n this.upsertNotification(notification);\n },\n\n async upsertNotification(notification) {\n let r = await this.upsertReminderNotificationDetail(notification);\n\n if (r.data.isSuccess) {\n this.$emitter.emit(\"success\", {\n message: \"Notification updated successfully\",\n });\n\n this.notification.id = r.data.value.id;\n\n await this.getReminders();\n\n // do next tick vue\n this.creatingNotification = false;\n\n this.$nextTick(() => {\n this.notification = this.notifications.find(\n (f) => f.id === this.notification.id\n );\n });\n }\n },\n createNotification() {\n this.creatingNotification = true;\n this.showNotificationSettings = false;\n const startDay =\n Number(this.notifications[this.notifications.length - 1].day) + 1;\n\n // error if its over 31 days\n if (startDay > 31) {\n this.$emitter.emit(\"error\", \"You cannot have schedules over 31 days\");\n return;\n }\n\n const lastNotification = this.notifications[\n this.notifications.length - 2\n ];\n\n this.notification = {\n id: (this.notifications.length + 1) * -1,\n day: null,\n isDefault: false,\n reminderId: this.reminderId,\n subject: lastNotification.subject,\n message: lastNotification.message,\n isRetryPayment: false,\n isEmailNotification: false,\n isTextNotification: false,\n };\n\n this.startDay = startDay;\n },\n },\n};\n</script>\n\n<style>\nul.pdc-menu li a,\n.pdc-settings a {\n font-weight: 600;\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!./Index.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!./Index.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=3b8c856e\"\nimport script from \"./Index.vue?vue&type=script&lang=js\"\nexport * from \"./Index.vue?vue&type=script&lang=js\"\nimport style0 from \"./Index.vue?vue&type=style&index=0&id=3b8c856e&prod&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 null,\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}