{"version":3,"sources":["webpack:///./src/views/Components/Customer/Actions/PaymentPlanPreview.vue","webpack:///src/views/Components/Customer/Actions/PaymentPlanPreview.vue","webpack:///./src/views/Components/Customer/Actions/PaymentPlanPreview.vue?1010","webpack:///./src/views/Components/Customer/Actions/PaymentPlanPreview.vue?60b2","webpack:///./src/views/Components/Customer/Actions/PaymentPlanPreview.vue?1961"],"names":["render","_vm","this","_c","_self","staticClass","_v","hasSurcharge","_e","_s","_f","paymentPlanTotal","staticStyle","directives","name","rawName","modifiers","attrs","surchargeGrandTotal","grandTotal","paymentPlan","scheduleItems","filter","f","isDownPayment","length","form","cycleType","isToday","startDate","surcharge","processingToday","isDown","isFirstPayment","processingTodaySurcharge","paymentType","cashAmount","methodSelected","description","cardType","_l","item","index","key","class","billingDate","cycle","isEdit","Date","model","value","callback","$$v","$set","expression","ref","refInFor","scopedSlots","_u","fn","_ref","handleSubmit","on","$event","preventDefault","save","proxy","amountDueConverted","amountDue","surchargeAmount","total","approved","edit","staticRenderFns","components","props","customer","inject","data","effectivePercentage","myPaymentPlan","selectedItem","todayDate","getMonth","getDate","getFullYear","created","_created","_asyncToGenerator","regeneratorRuntime","mark","_callee","wrap","_context","prev","next","_objectSpread","map","n","setSurcharge","emitPaymentPlan","stop","apply","arguments","watch","newVal","computed","t","forEach","e","parseFloat","Number","toFixed","_this","isSameDay","_this2","processingTodayCount","_this3","getTime","methods","_setSurcharge","_callee2","amount","r","_context2","$client","post","noProgress","customerSavedCardId","id","sent","surchargeLoading","isSuccess","transactionAmount","getSurchargeAmount","effectiveSurchargePercentage","surchargeRate","Math","round","d1","d2","d11","d22","date","_save","_callee3","_context3","$moment","format","Vue","set","_x","_x2","$emit","nextTick","document","getElementById","focus","select","component"],"mappings":"kLAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACA,EAAG,QAAQ,CAACE,YAAY,OAAO,CAACF,EAAG,QAAQ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oBAEAtC,EAAA6B,OACA,KAAAyC,OAAAtE,EAAA2B,WAAA2C,OAAAtE,EAAA4B,mBAAA2C,QACA,GACA,IACAvE,EAAAM,QAAA,EAGAsG,aAAAC,IAAA,KAAAtE,cAAA3D,cAAAqB,EAAAD,GAEA,KAAA2D,kBAAA,wBAAA8C,EAAA7C,UAAA4C,EAAA,mBAfAhF,EAAAsF,EAAAC,GAAA,OAAAR,EAAA1C,MAAA,KAAAC,WAAA,OAAAtC,EAAA,GAiBAmC,gBAAA,WACA,KAAApB,cAAAhD,OAAA,KAAAA,OACA,KAAAgD,cAAA/C,eAAA,KAAAA,eACA,KAAA+C,cAAAjD,gBAAA,KAAAA,gBACA,KAAAiD,cAAAlD,UAAA,KAAAV,YAAAU,UAEA,KAAA2H,MAAA,0BAAAzE,gBAEAR,KAAA,SAAA/B,GACAA,EAAAM,OACAN,EAAAM,QAAA,GAIAN,EAAAI,YAAA,IAAAG,KAAAP,EAAAI,aAEA,KAAAmC,cAAA3D,cAAAuF,SAAA,SAAAC,GACAA,EAAA9D,QAAA,KAGAN,EAAAM,QAAAN,EAAAM,OAEAsG,aAAAK,UAAA,WACAC,SAAAC,eAAA,cAAAnH,EAAAK,OAAA+G,QACAF,SAAAC,eAAA,cAAAnH,EAAAK,OAAAgH,gBChjBwY,I,wBCQpYC,EAAY,eACd,EACA/J,EACAyE,GACA,EACA,KACA,WACA,MAIa,aAAAsF,E,6CCnBf","file":"js/Components-Customer-Actions-PaymentPlanPreview-vue.368c8bc0.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('b-row',{staticClass:\"m-0\"},[_c('b-col',{staticClass:\"modal-hero\"},[_c('b-card',{staticClass:\"p-0 m-0 shadow-none\"},[_c('b-row',[_c('b-col',{staticClass:\"pr-0 panel-divider panel-first\"},[_c('div',{staticClass:\"card-panel\"},[_c('div',{staticClass:\"stat-box-title\"},[_vm._v(\"Payment Plan Total\")]),(!_vm.hasSurcharge())?[_c('div',{staticClass:\"stat-box-body\"},[_vm._v(\"\\n \"+_vm._s(_vm._f(\"currency\")(_vm.paymentPlanTotal))+\"\\n \")])]:_vm._e(),(_vm.hasSurcharge())?[_c('div',{staticClass:\"stat-box-body\"},[_vm._v(\"\\n \"+_vm._s(_vm._f(\"currency\")(_vm.paymentPlanTotal))),_c('br'),_c('div',{staticStyle:{\"white-space\":\"nowrap\"}},[_c('div',{staticClass:\"surcharge-frame mt-2\"},[_c('span',{staticClass:\"surcharge-icon\"},[_c('i',{directives:[{name:\"b-tooltip\",rawName:\"v-b-tooltip.hover\",modifiers:{\"hover\":true}}],staticClass:\"fa-solid fa-bolt text-warning\",attrs:{\"title\":\"Surcharge Amount\"}})]),_c('span',{staticClass:\"surcharge-dollar\"},[_vm._v(_vm._s(_vm._f(\"currency\")(_vm.surchargeGrandTotal)))])]),_c('div',{staticClass:\"surcharge-frame mt-2\"},[_c('span',{staticClass:\"surcharge-icon\"},[_c('i',{directives:[{name:\"b-tooltip\",rawName:\"v-b-tooltip.hover\",modifiers:{\"hover\":true}}],staticClass:\"fa-solid fa-credit-card\",attrs:{\"title\":\"Credit Card Total\"}})]),_c('span',{staticClass:\"surcharge-dollar\"},[_vm._v(_vm._s(_vm._f(\"currency\")(_vm.grandTotal)))])])])])]:_vm._e()],2)]),_c('b-col',{staticClass:\"pl-0 pr-0 panel-divider\"},[_c('div',{staticClass:\"card-panel\"},[_c('div',{staticClass:\"stat-box-title\"},[_vm._v(\"Schedule\")]),_c('div',{staticClass:\"stat-box-body\"},[_vm._v(\"\\n \"+_vm._s(_vm.paymentPlan.scheduleItems.filter((f) => {\n return !f.isDownPayment;\n }).length)+\"\\n \"+_vm._s(_vm._f(\"title\")((_vm.form.cycleType + \"ly payments\")))+\"\\n \")])])]),_c('b-col',{staticClass:\"pl-0 pr-0 panel-divider\"},[_c('div',{staticClass:\"card-panel\"},[_c('div',{staticClass:\"stat-box-title\"},[_vm._v(\"Date of First Payment\")]),_c('div',{staticClass:\"stat-box-body\"},[_vm._v(\"\\n \"+_vm._s(_vm._f(\"moment\")(_vm.isToday(_vm.form.startDate)\n ? \"Today\"\n : _vm.form.startDate,\"MM/DD/YYYY\"))+\"\\n \")])])]),_c('b-col',{staticClass:\"pl-0 pr-0 panel-divider\"},[_c('div',{staticClass:\"card-panel\"},[_c('div',{staticClass:\"stat-box-title\"},[_vm._v(\"Due Today\")]),_c('div',{staticClass:\"stat-box-body\"},[_c('div',{staticStyle:{\"display\":\"flex\"}},[(!_vm.paymentPlan.surcharge)?_c('div',[_c('b-row',[_c('b-col',{staticClass:\"mr-0 pr-1\"},[_vm._v(\"\\n \"+_vm._s(_vm._f(\"currency\")(_vm.processingToday))+\"\\n \")]),_c('b-col',{staticClass:\"m-0 p-0\",attrs:{\"md\":\"auto\"}},[_c('i',{staticClass:\"fas fa-info-circle\",attrs:{\"id\":\"tooltip-target-1\"}}),_c('b-tooltip',{attrs:{\"target\":\"tooltip-target-1\",\"triggers\":\"hover\"}},[(_vm.isDown && _vm.isFirstPayment)?_c('div',[_vm._v(\"\\n Down + First Payment\\n \")]):(_vm.isDown)?_c('div',[_vm._v(\"\\n Down Payment\\n \")]):(_vm.isFirstPayment)?_c('div',[_vm._v(\"\\n First Payment\\n \")]):_vm._e()])],1)],1)],1):_vm._e()]),(_vm.paymentPlan.surcharge)?_c('div',[_c('div',{staticStyle:{\"display\":\"flex\"}},[_c('b-row',[_c('b-col',{staticClass:\"mr-0 pr-1\"},[_vm._v(\"\\n \"+_vm._s(_vm._f(\"currency\")(_vm.processingToday))+\"\\n \")]),_c('b-col',{staticClass:\"m-0 p-0\",attrs:{\"md\":\"auto\"}},[_c('i',{staticClass:\"fas fa-info-circle\",attrs:{\"id\":\"tooltip-target-1\"}}),_c('b-tooltip',{attrs:{\"target\":\"tooltip-target-1\",\"triggers\":\"hover\"}},[(_vm.isDown && _vm.isFirstPayment)?_c('div',[_vm._v(\"\\n Down + First Payment\\n \")]):(_vm.isDown)?_c('div',[_vm._v(\"\\n Down Payment\\n \")]):(_vm.isFirstPayment)?_c('div',[_vm._v(\"\\n First Payment\\n \")]):_vm._e()])],1)],1)],1),_c('div',{staticStyle:{\"white-space\":\"nowrap\"}},[_c('div',{staticClass:\"surcharge-frame mt-2\"},[_c('span',{staticClass:\"surcharge-icon\"},[_c('i',{directives:[{name:\"b-tooltip\",rawName:\"v-b-tooltip.hover\",modifiers:{\"hover\":true}}],staticClass:\"fa-solid fa-bolt text-warning\",attrs:{\"title\":\"Surcharge Amount\"}})]),_c('span',{staticClass:\"surcharge-dollar\"},[_vm._v(_vm._s(_vm._f(\"currency\")(_vm.processingTodaySurcharge)))])]),_c('div',{staticClass:\"surcharge-frame mt-2\"},[_c('span',{staticClass:\"surcharge-icon\"},[_c('i',{directives:[{name:\"b-tooltip\",rawName:\"v-b-tooltip.hover\",modifiers:{\"hover\":true}}],staticClass:\"fa-solid fa-credit-card\",attrs:{\"title\":\"Credit Card Total\"}})]),_c('span',{staticClass:\"surcharge-dollar\"},[_vm._v(_vm._s(_vm._f(\"currency\")((_vm.processingToday + _vm.processingTodaySurcharge))))])])])]):_vm._e()])])]),(_vm.form.paymentType != 'card')?_c('b-col',{staticClass:\"pl-0 pr-0 panel-divider\"},[_c('div',{staticClass:\"card-panel\"},[_c('div',{staticClass:\"stat-box-title\"},[_vm._v(\"\\n \"+_vm._s(_vm._f(\"title\")(_vm.form.paymentType))+\" Collected Today\\n \")]),_c('div',{staticClass:\"stat-box-body\"},[_vm._v(\"\\n \"+_vm._s(_vm._f(\"currency\")(_vm.form.cashAmount))+\"\\n \")])])]):_vm._e(),(_vm.form.paymentType == 'card')?_c('b-col',{staticClass:\"pl-0 panel-divider\",attrs:{\"md\":\"auto\"}},[_c('div',{staticClass:\"card-panel text-right\"},[_c('div',{staticStyle:{\"float\":\"left\"}},[_c('div',{staticClass:\"stat-box-title\"},[_vm._v(\"Card Number\")]),_c('div',{staticClass:\"stat-box-body\"},[_vm._v(\"\\n \"+_vm._s(_vm.methodSelected.description)+\"\\n \")])]),_c('div',{staticClass:\"fixed\",staticStyle:{\"float\":\"left\"}},[_c('card-svg-large',{attrs:{\"height\":\"40px\",\"cardType\":_vm.methodSelected.cardType}})],1)])]):_vm._e()],1)],1)],1)],1),_c('b-row',{staticClass:\"m-0\"},[_c('b-col',{staticClass:\"body-modal\"},[_c('h5',{staticClass:\"h3 mb-4\"},[_vm._v(\"Payment Schedule\")]),_c('table',{staticClass:\"table\"},[_c('thead',[_c('tr',[_c('th',{staticClass:\"pl-0\"},[_vm._v(\"Cycle\")]),_c('th',[_vm._v(\"Billing Date\")]),(!_vm.hasSurcharge())?[_c('th',{staticStyle:{\"text-align\":\"right\"}},[_vm._v(\"Amount\")])]:_vm._e(),(_vm.hasSurcharge())?[_c('th',{staticStyle:{\"text-align\":\"right\"}},[_vm._v(\"Amount\")]),_c('th',{staticStyle:{\"text-align\":\"right\"}},[_vm._v(\"Surcharge\")]),_c('th',{staticStyle:{\"text-align\":\"right\"}},[_vm._v(\"Total\")])]:_vm._e(),_c('th',{staticClass:\"text-right pr-0\"},[_vm._v(\"Action\")])],2)]),_vm._l((_vm.paymentPlan.scheduleItems),function(item,index){return _c('tr',{key:index},[_c('td',{staticClass:\"pl-0\",class:{\n 'text-success font-weight-bold': _vm.isToday(item.billingDate),\n }},[(item.isDownPayment)?[_c('b',[_vm._v(\"Down Payment\")])]:[_vm._v(\"\\n \"+_vm._s(item.cycle)+\"\\n \")]],2),_c('td',[(!item.isEdit)?_c('div',{class:{\n 'text-success font-weight-bold': _vm.isToday(item.billingDate),\n }},[_vm._v(\"\\n \"+_vm._s(_vm._f(\"moment\")(_vm.isToday(item.billingDate)\n ? \"Today\"\n : item.billingDate,\"utc\", \"MM/DD/YYYY\"))+\"\\n \")]):_c('div',[_c('b-form-datepicker',{attrs:{\"value-as-date\":false,\"min\":index - 1 <= 0\n ? new Date()\n : new Date(\n _vm.paymentPlan.scheduleItems[index - 1].billingDate\n ),\"max\":index + 1 == _vm.paymentPlan.scheduleItems.length\n ? null\n : new Date(\n _vm.paymentPlan.scheduleItems[index + 1].billingDate\n )},model:{value:(item.billingDate),callback:function ($$v) {_vm.$set(item, \"billingDate\", $$v)},expression:\"item.billingDate\"}})],1)]),_c('td',{staticClass:\"text-right\"},[(!item.isEdit)?[_c('div',{class:{\n 'text-success font-weight-bold': _vm.isToday(item.billingDate),\n }},[_vm._v(\"\\n \"+_vm._s(_vm._f(\"currency\")((item.amountDue / 100)))+\"\\n \")])]:[_c('b-row',{staticClass:\"row\",attrs:{\"align-h\":\"end\"}},[_c('b-col',{staticStyle:{\"text-align\":\"right\"},attrs:{\"cols\":\"12\"}},[_c('div',{staticClass:\"input-group-sm\"},[_c('validation-observer',{ref:'formValidator' + item.cycle,refInFor:true,scopedSlots:_vm._u([{key:\"default\",fn:function({ handleSubmit }){return [_c('form',{attrs:{\"method\":\"post\"},on:{\"submit\":function($event){$event.preventDefault();handleSubmit(_vm.save(index, item))}}},[_c('base-input-currency',{attrs:{\"inputId\":'amountInput' + item.cycle,\"setFocus\":\"true\",\"name\":'Cycle Amount ' + item.cycle},scopedSlots:_vm._u([{key:\"appendButton\",fn:function(){return [_c('button',{staticClass:\"btn btn-primary\",attrs:{\"type\":\"submit\"}},[_c('i',{staticClass:\"fas fa-save\"})])]},proxy:true}],null,true),model:{value:(item.amountDueConverted),callback:function ($$v) {_vm.$set(item, \"amountDueConverted\", $$v)},expression:\"item.amountDueConverted\"}})],1)]}}],null,true)})],1)])],1)]],2),(_vm.hasSurcharge())?[_c('td',{staticClass:\"text-right\"},[_vm._v(\"\\n \"+_vm._s(_vm._f(\"currency\")((item.surchargeAmount / 100)))+\"\\n \")]),_c('td',{staticClass:\"text-right\"},[_vm._v(\"\\n \"+_vm._s(_vm._f(\"currency\")((item.total / 100)))+\"\\n \")])]:_vm._e(),_c('td',{staticClass:\"text-right\",staticStyle:{\"width\":\"100px\"}},[(!_vm.approved)?_c('b-button',{staticClass:\"text-decoration-none p-0 m-0 shadow-none\",attrs:{\"dropup\":\"\",\"dropleft\":\"\",\"variant\":\"link\",\"no-caret\":\"\",\"size\":\"lg\",\"id\":\"dropdown-1\"},on:{\"click\":function($event){$event.preventDefault();return _vm.edit(item)}}},[_c('i',{staticClass:\"fa-solid fa-ellipsis\"})]):_vm._e()],1)],2)})],2)])],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\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!./PaymentPlanPreview.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!./PaymentPlanPreview.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./PaymentPlanPreview.vue?vue&type=template&id=6704de74&scoped=true\"\nimport script from \"./PaymentPlanPreview.vue?vue&type=script&lang=js\"\nexport * from \"./PaymentPlanPreview.vue?vue&type=script&lang=js\"\nimport style0 from \"./PaymentPlanPreview.vue?vue&type=style&index=0&id=6704de74&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 \"6704de74\",\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!./PaymentPlanPreview.vue?vue&type=style&index=0&id=6704de74&prod&scoped=true&lang=css\""],"sourceRoot":""}