{"version":3,"sources":["webpack:///./src/components/PaymentSelect.vue","webpack:///./src/components/PaymentSelect.vue?987d","webpack:///./src/components/PaymentSelect.vue?7f63","webpack:///./src/components/PaymentSelect.vue?e46a","webpack:///./src/components/OrderInvoiceDialog.vue?c234","webpack:///./src/components/PaymentTerms.vue","webpack:///./src/components/PaymentAdd.vue","webpack:///./src/components/PaymentAdd.vue?c0ce","webpack:///./src/components/PaymentAdd.vue?798b","webpack:///./src/components/PaymentAdd.vue?7989","webpack:///./src/components/PaymentTerms.vue?7ab9","webpack:///./src/components/PaymentTerms.vue?af89","webpack:///./src/components/PaymentTerms.vue?5754","webpack:///./src/components/OrderPacklistDialog.vue?66be","webpack:///./src/components/PayInvoiceDialog.vue","webpack:///./src/components/PayInvoiceDialog.vue?bea4","webpack:///./src/components/PayInvoiceDialog.vue?11c3","webpack:///./src/components/PayInvoiceDialog.vue?538e","webpack:///./src/components/OrderSummaryBreakdown.vue","webpack:///./src/components/OrderSummaryBreakdown.vue?7a5c","webpack:///./src/components/OrderSummaryBreakdown.vue?edf3","webpack:///./src/components/OrderSummaryBreakdown.vue?d00f","webpack:///./src/components/OrderPacklistDialog.vue","webpack:///./src/components/OrderPacklistDialog.vue?f734","webpack:///./src/components/OrderPacklistDialog.vue?a1c9","webpack:///./src/components/OrderPacklistDialog.vue?4d0c","webpack:///./src/components/PaymentTerms.vue?a1a6","webpack:///./src/components/OrderInvoiceDialog.vue","webpack:///./src/components/OrderInvoiceDialog.vue?615f","webpack:///./src/components/OrderInvoiceDialog.vue?1145","webpack:///./src/components/OrderInvoiceDialog.vue?fc8c"],"names":["staticClass","_c","attrs","scopedSlots","_vm","_ref","staticStyle","profile","IsLoading","click","$event","staticRenderFns","PaymentSelect","_Vue","_this","_classCallCheck","selectedProfile","PaymentProfile","paymentOptions","_inherits","_createClass","key","value","this","Id","paymentProfiles","find","p","IsDefault","_deletePaymentProfile","_asyncToGenerator","_regeneratorRuntime","mark","_callee","_yield$PaymentService","data","e","wrap","_context","prev","next","PaymentService","CanDeletePaymentProfile","PaymentProfileId","sent","Value","CustomerService","DeletePaymentProfile","SetSnackBar","$emit","Message","t0","response","stop","deletePaymentProfile","_x","apply","arguments","_updatePaymentMethodDefault","_callee2","_context2","UpdatePaymentMethodDefault","updatePaymentMethodDefault","_x2","option","_this2","Confirm","_callee3","_context3","CardType","Vue","__decorate","Prop","Watch","Component","components","PaymentSelectCard","component","_v","defaultPaymentProfile","fn","on","_b","directives","rawName","expression","name","isAddingNewPayment","ref","callback","shouldOpenNewPaymentDialog","newPaymentException","saveStripePaymentMethod","PaymentAdd","isNewPaymentFormValid","isSameAsPrimaryAddress","isLoading","isAddingPaymentMethod","hasNotFoundPaymentProfile","newPaymentModel","CustomerPaymentModel","billingAddresses","states","countries","expiryDateMenu","dateFormatted","paymentTypes","Name","type","formatDate","ExpirationDate","get","BankAccountTypes","GetBillingAddressesCondensed","GetStates","GetCountries","DisableFieldAutofill","_saveNewPaymentMethod","IsBankAccount","IsABankAccount","Address","ConversionHelper","convertAddressToAddressModel","AddressToEdit","SaveNewPaymentMethod","ConvertToRequestModel","abrupt","closeNewPaymentDialog","saveNewPaymentMethod","_saveStripePaymentMethod","$refs","StripeCard","submitCard","date","includes","_date$split","split","_date$split2","_slicedToArray","year","month","_year$split","_year$split2","yearFormatted","concat","_date$split3","_date$split4","console","log","_date$split5","_date$split6","_date$split7","_date$split8","todaysDate","Date","getFullYear","toString","parseInt","getMonth","Clone","Customer","BillingAddress","stateValue","s","id","State","$nextTick","ConstValues","CreditCardNumber","regex","RegExp","isAmex","test","_GetBillingAddressesCondensed","addressId","_args3","length","undefined","GetBillingAddresses","BillingAddressId","_GetStates","_callee4","_context4","Object","keys","map","_GetCountries","_callee5","_context5","Country","PaymentType","Getter","namespace","deep","StripePaymentComponent","PaymentTerms","shouldOpenPaymentDialog","shouldShowPaymentOptions","isSavingBillingAddress","isAlreadyDefault","isFormValid","shouldShowNewBillingAddressDialog","addressToEdit","selectedPaymentProfileIndex","isLinkingCardToInvoice","isSelectingPayment","UpdateCustomerDefaultCCForTerms","GetCustomerPaymentProfiles","SelectPaymentDialog","closeDialog","_removeCustomerDefaultCCForTerms","_this3","removeCustomerDefaultCCForTerms","isLinkingToInvoice","openDialog","_GetCustomerPaymentProfiles","_callee6","_context6","d","HandlePaymentProfileOptions","_this4","shouldNotShowTerms","index","findIndex","splice","forEach","CardName","getCardName","Avatar","require","alternativePaymentProfileId","isInvoice","defaultProfile","IsDefaultPaymentMethodForInvoices","filter","_saveNewBillingAddress","_callee7","model","_context7","AddNewBillingAddress","saveNewBillingAddress","_callee8","_args8","_context8","openNewPaymentDialog","_openNewAddressDialog","_callee9","_context9","setTimeout","openNewAddressDialog","substring","_profile$NameOnCard","NameOnCard","replace","_mounted","_callee10","_context10","mounted","default","DefaultLayout","dialog","$$v","shouldShowResult","paymentProfile","proxy","invoiceBreakdown","InvoiceNumber","_s","render","default_1","isTextInputValid","isPaying","OrderBreakdown","transactionInfo","ResponseCode","ResponseMessage","Result","TransactionDateTime","TransactionId","WasSuccessful","_openDialog","document","getElementsByClassName","style","cssText","setOrderBreakdown","breakdown","invoice","Breakdown","CCFee","Subtotal","payInvoice","_this$$refs$paymentTe","paymentTerms","getDefaultPaymentProfile","IsExpired","_payInvoice","PayInvoice","refreshInvoice","Action","DialogLayout","OrderSummaryBreakdown","_callSuper","returnValue","MathHelper","Truncate","ExtendedPrice","total","DiscountValue","IsInvoice","SetUpFee","RushFee","ExtraRollFee","ShippingFee","_this$PaymentMethodPr","PaymentMethodProfile","IsNet","ShouldIncludeProcessingFee","processingFee","VariableDataFee","required","packlist","Status","paymentDialog","packlists","plnumber","isDownloadingInvoice","val","_this$orderlineGroup","po","orderlineGroup","GroupByValue","OrdersService","GetPacklistByPo","_downloadPacklist","DownloadPacklist","PlNumber","downloadPacklist","item","route","$router","resolve","params","window","open","href","push","TrackingNumber","fontcolor","ColorHelpers","getPacklistStatus","J1lImg","CustomerPaymentDialog","class","paymentProfileId","orderlines","invoices","invoicesInfo","header","subheader","description","_response","invoiceId","InvoiceService","GetInvoiceById","StringHelper","GetOrderStatusForInvoicing","Orderlines","GetInvoiceByPO","_downloadInvoicePdf","GenerateInvoice","downloadInvoicePdf","_downloadInvoice","DownloadInvoice","downloadInvoice","PackingList","getInvoiceStatus"],"mappings":"yPAAgM,W,MAAC,K,EAAe,WAAO,EAAK,MAAC,Y,OAACA,QAAY,KAAM,+B,OAAI,U,IAAC,EAAQ,G,MAAiB,CAA0C,kBAAI,CAACC,EAAG,OAAqBC,YAAM,O,GAAC,CAAkB,kBAACC,OAAW,EAACC,uBAAQ,M,GAA+B,oBAAqB,C,MAAUD,C,QAAyB,G,YAAsC,EAAV,GAAAE,E,qCAA6CL,SAAW,EAAC,Q,YAAsCM,EAAW,GAAC,E,mBAAmB,SAAC,G,IAACJ,EAAM,K,EAAO,EAAG,M,MAAC,UAAUK,KAAQC,MAAS,kDAAE,YAASN,CAAsC,oBAAoB,MAAQ,CAAuDD,KAAG,GAAoB,sBAAK,QAAQ,GAAAQ,GAASC,GAAO,uBAAkD,U,CAAC,8CAAC,OAAM,UAAoD,IAAI,EAAQ,IAAO,kBAAY,OAAI,gCAC1+B,kCACGC,IAAe,IAAK,K,sOCWHC,EAAa,SAAAC,GAAlC,SAAAD,IAAA,IAAAE,EA8EE,OA9EFC,eAAA,KAAAH,G,mCAYEE,EAAAE,gBAAkC,IAAIC,OACtCH,EAAAI,eAA2B,CAAC,iBAAkB,UAiE9CJ,EA1EA,OAAAK,eAAAP,EAAAC,GAAAO,eAAAR,EAAA,EAAAS,IAAA,0BAAAC,MAEA,WACMC,KAAKP,gBAAgBQ,KACvBD,KAAKP,gBAAkBO,KAAKE,gBAAgBC,MAAK,SAAAC,GAAC,OAAIA,EAAEC,gBAO5D,CAAAP,IAAA,uBAAAC,MAAA,eAAAO,EAAAC,eAAAC,iBAAAC,MACA,SAAAC,EAA2B1B,GAAuB,IAAA2B,EAAAC,EAAAC,EAAA,OAAAL,iBAAAM,MAAA,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IAAI6D,EAAYC,OAAa2B,iBAAiBzF,EAAQmC,QACtD,OAAO0B,KAKX,CAAAvU,IAAA,UAAAC,MACA,gBAlGF,CAA6BgD,QAU3BC,eAAA,CADCC,kB,qCAGDD,eAAA,CADCC,kB,gCAIDD,eAAA,CADCE,eAAM,W,mCAdToM,EAAAtM,eAAA,CAHCG,eAAU,CACTC,WAAY,CAAEoR,cAAQC,iC,WCZoX,I,wBCQxYnR,EAAY,eACd,EACA,EACAlE,GACA,EACA,KACA,KACA,MAIa,OAAAkE,E","file":"js/InvoiceManagement~82d9bdfe.b1820f6c.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',_vm._l((_vm.paymentProfiles),function(profile){return _c('v-row',{key:profile.Id,attrs:{\"no-gutters\":\"\"}},[_c('div',{staticClass:\"pb-1\",on:{\"click\":function($event){return _vm.onPaymentProfileChange(profile)}}},[_c('PaymentSelectCard',{attrs:{\"profile\":profile},scopedSlots:_vm._u([{key:\"actionBtn\",fn:function(){return [_c('div',[_c('v-menu',{scopedSlots:_vm._u([{key:\"activator\",fn:function({ on, attrs }){return [_c('v-btn',_vm._g(_vm._b({staticClass:\"bold-blue v-btn__no-text-decoration\",staticStyle:{\"max-width\":\"100%\"},attrs:{\"text\":\"\",\"loading\":profile.IsLoading}},'v-btn',attrs,false),on),[_vm._v(\"options\")])]}}],null,true)},[_c('v-list',_vm._l((_vm.paymentOptions),function(option,i){return _c('v-list-item',{key:i,on:{\"click\":function($event){return _vm.handleOptionSelection(option, profile)}}},[_c('v-list-item-title',[_vm._v(_vm._s(option))])],1)}),1)],1)],1)]},proxy:true}],null,true)})],1)])}),1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\nimport { Confirm } from '@/helpers/AuthHelper';\r\nimport { SetSnackBar } from '@/helpers/SnackbarHelper';\r\nimport { CustomerService } from '@/services/customer-service';\r\nimport { PaymentProfile } from '@/store/models/PaymentModel';\r\nimport { Vue, Component, Watch, Prop } from 'vue-property-decorator';\r\nimport PaymentSelectCard from '@/components/cardComponents/PaymentSelectCard.vue';\r\nimport { PaymentService } from '@/services/payment-service';\r\n@Component({\r\n components: {\r\n PaymentSelectCard\r\n }\r\n})\r\nexport default class PaymentSelect extends Vue {\r\n /* Properties */\r\n @Prop() paymentProfiles!: PaymentProfile[];\r\n /* Store Actions */\r\n /* Watchers */\r\n @Watch('paymentProfiles')\r\n onPaymentProfilesChange() {\r\n if (this.selectedProfile.Id) {\r\n this.selectedProfile = this.paymentProfiles.find(p => p.IsDefault);\r\n }\r\n }\r\n /* Data */\r\n selectedProfile: PaymentProfile = new PaymentProfile();\r\n paymentOptions: string[] = ['Set as Default', 'Delete'];\r\n /* Computed */\r\n /* Async Functions */\r\n async deletePaymentProfile(profile: PaymentProfile) {\r\n profile.IsLoading = true;\r\n try {\r\n const { data } = await PaymentService.CanDeletePaymentProfile(\r\n profile.PaymentProfileId\r\n );\r\n if (data && data.Value) {\r\n await CustomerService.DeletePaymentProfile(profile.PaymentProfileId);\r\n SetSnackBar('Deleted Payment Method successfully');\r\n this.$emit('refreshProfiles');\r\n }\r\n if (data && !data.Value) {\r\n SetSnackBar(data.Message);\r\n }\r\n } catch (err) {\r\n let e = err as any;\r\n SetSnackBar(e.response.data.Message);\r\n }\r\n profile.IsLoading = false;\r\n }\r\n async updatePaymentMethodDefault(profile: PaymentProfile) {\r\n profile.IsLoading = true;\r\n try {\r\n await CustomerService.UpdatePaymentMethodDefault(profile);\r\n this.$emit('refreshProfiles');\r\n SetSnackBar('Updated Payment Method successfully');\r\n } catch (err) {\r\n this.$emit(\r\n 'snackbar',\r\n 'There was an error updating your payment method. Please contact technical support'\r\n );\r\n }\r\n profile.IsLoading = false;\r\n }\r\n /* Utility Functions */\r\n onPaymentProfileChange(profile: PaymentProfile) {\r\n this.$emit('paymentSelected', profile);\r\n }\r\n handleOptionSelection(option: string, profile: PaymentProfile) {\r\n switch (option) {\r\n case 'Set as Default':\r\n if (this.selectedProfile !== profile) this.updatePaymentMethodDefault(profile);\r\n return;\r\n case 'Delete':\r\n Confirm(\r\n async () => {\r\n await this.deletePaymentProfile(profile);\r\n },\r\n 'Delete Payment Method',\r\n 'This will delete your payment method. Do you want to proceed?',\r\n \"don't delete\",\r\n 'delete'\r\n );\r\n return;\r\n }\r\n }\r\n isTerms(CardType: number) {\r\n return CardType === 7;\r\n }\r\n /* Loaders */\r\n /* Mounted */\r\n /* Created */\r\n /* Emmited Functions */\r\n}\r\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--15-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PaymentSelect.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--15-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PaymentSelect.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./PaymentSelect.vue?vue&type=template&id=f97a9d72\"\nimport script from \"./PaymentSelect.vue?vue&type=script&lang=ts\"\nexport * from \"./PaymentSelect.vue?vue&type=script&lang=ts\"\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--12-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--12-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--12-oneOf-1-2!../../node_modules/stylus-loader/index.js??ref--12-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./OrderInvoiceDialog.vue?vue&type=style&index=0&id=6531f532&prod&lang=stylus\"","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticStyle:{\"max-width\":\"100%\"}},[(_vm.shouldShowBreakdown)?_c('v-card',{attrs:{\"flat\":\"\"}},[_c('v-container',[_c('v-row',{attrs:{\"no-gutters\":\"\"}},[_c('v-icon',[_vm._v(\"mdi-credit-card-outline\")]),_c('h2',{staticClass:\"roboto-black\"},[_vm._v(\" Wallet \")])],1),_c('v-row',{staticClass:\"mt-4 mb-1\",attrs:{\"no-gutters\":\"\"}},[_c('h2',[_vm._v(\"Your Default Payment Method\")])]),_c('v-row',{attrs:{\"no-gutters\":\"\",\"align\":\"center\"}},[_c('PaymentSelectCard',{attrs:{\"profile\":_vm.defaultPaymentProfile,\"should-hover\":false}}),(_vm.defaultPaymentProfile && _vm.defaultPaymentProfile.CardType === 7)?_c('v-tooltip',{attrs:{\"bottom\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function({ on, attrs }){return [_c('v-btn',_vm._g(_vm._b({attrs:{\"icon\":\"\"},on:{\"click\":function($event){return _vm.openPaymentMethodDialog(true)}}},'v-btn',attrs,false),on),[_c('v-icon',{attrs:{\"size\":\"30\"}},[_vm._v(\"mdi-credit-card-refresh\")])],1)]}}],null,false,2031866759)},[_vm._v(\" Link an account to automatically pay your invoice the day it is due \")]):_vm._e()],1),_c('v-row',{staticClass:\"mt-4 mb-1\",attrs:{\"no-gutters\":\"\"}},[_c('h2',[_vm._v(\"Your Payment Methods \"),_c('a',{on:{\"click\":_vm.openNewPaymentDialog}},[_vm._v(\"Add\")])])]),_c('div',{staticClass:\"disable-inter-row-margin\"},[_c('v-row',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.isAddingNewPayment),expression:\"isAddingNewPayment\"}],staticStyle:{\"width\":\"500px\"},attrs:{\"no-gutters\":\"\",\"justify\":\"center\"}},[_c('v-progress-circular',{attrs:{\"indeterminate\":true,\"color\":\"red\"}})],1),_c('PaymentSelect',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.isAddingNewPayment),expression:\"!isAddingNewPayment\"}],ref:\"PaymentSelect\",attrs:{\"should-hover\":false,\"payment-profiles\":_vm.paymentProfiles.filter(p => p.CardType !== 7)},on:{\"refreshProfiles\":_vm.GetCustomerPaymentProfiles,\"paymentSelected\":_vm.onPaymentProfileChange}})],1)],1)],1):_vm._e(),(_vm.hasNotFoundPaymentProfile)?_c('v-card',{staticClass:\"rounded ma-2 disable-inter-row-margin\",attrs:{\"width\":\"520px\",\"flat\":\"\"}},[_c('v-card-text',[_vm._v(\"We couldn't find a payment method for this account.\")]),_c('v-row',{staticClass:\"mt-3\",staticStyle:{\"font-size\":\"12px\"},attrs:{\"no-gutters\":\"\",\"justify\":\"center\"}},[_c('a',{staticClass:\"mr-1\",on:{\"click\":function($event){return _vm.openNewPaymentDialog()}}},[_vm._v(\"Add a Payment Method\")])])],1):_vm._e(),(_vm.defaultPaymentProfile && !_vm.shouldShowBreakdown)?_vm._t(\"payment-display\",function(){return [_c('PaymentSelectCard',{attrs:{\"profile\":_vm.defaultPaymentProfile}})]},{\"paymentProfile\":_vm.defaultPaymentProfile}):_vm._t(\"no-card-found\"),_c('PaymentAdd',{ref:\"PaymentAdd\",on:{\"paymentAdded\":_vm.GetCustomerPaymentProfiles}}),_c('SelectPaymentDialog',{ref:\"SelectPaymentDialog\",attrs:{\"payment-profiles\":_vm.paymentProfiles},on:{\"refreshProfiles\":_vm.GetCustomerPaymentProfiles,\"paymentSelected\":_vm.onPaymentProfileChange,\"newPaymentSelected\":_vm.openNewPaymentDialog}})],2)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return (_vm.shouldOpenNewPaymentDialog)?_c('v-dialog',{attrs:{\"width\":\"490px\"},model:{value:(_vm.shouldOpenNewPaymentDialog),callback:function ($$v) {_vm.shouldOpenNewPaymentDialog=$$v},expression:\"shouldOpenNewPaymentDialog\"}},[_c('v-card',[_c('v-card-title',[_vm._v(\"Add New Payment Method\")]),_c('v-row',{attrs:{\"no-gutters\":\"\",\"justify\":\"center\"}},[(_vm.newPaymentException)?_c('v-alert',{attrs:{\"outlined\":\"\",\"type\":\"error\",\"prominent\":\"\",\"border\":\"left\"}},[_vm._v(_vm._s(_vm.newPaymentException))]):_vm._e()],1),_c('v-card-text',{staticClass:\"disable-inter-row-margin\"},[_c('StripePaymentComponent',{ref:\"StripeCard\",attrs:{\"can-use-bank-account\":_vm.Customer.Term.Days > 0}})],1),_c('v-card-actions',[_c('v-spacer'),_c('v-btn',{attrs:{\"text\":\"\"},on:{\"click\":function($event){return _vm.closeNewPaymentDialog()}}},[_vm._v(\" Cancel \")]),_c('v-btn',{attrs:{\"text\":\"\",\"loading\":_vm.isAddingPaymentMethod},on:{\"click\":function($event){return _vm.saveStripePaymentMethod()}}},[_vm._v(\"Add Payment Method\")])],1)],1)],1):_vm._e()\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\nimport { Vue, Component, Watch, Prop } from 'vue-property-decorator';\r\nimport { CustomerService } from '@/services/customer-service';\r\nimport { CustomerPaymentModel } from '@/store/models/PaymentModel';\r\nimport { BankAccountTypes, ConstValues } from '@/ConstValues';\r\nimport { DisableFieldAutofill } from '@/helpers/WebHelper';\r\nimport { PaymentService } from '@/services/payment-service';\r\nimport { ConversionHelper } from '@/helpers/ConversionHelper';\r\nimport { SetSnackBar } from '@/helpers/SnackbarHelper';\r\nimport { Getter } from 'vuex-class';\r\nimport { Customer } from '@/store/models/CustomerModel';\r\nimport { Clone } from '@/helpers/ObjectHelper';\r\nimport { Address } from '@/store/models/AddressModel';\r\nimport { StripeService } from '@/services/stripe-service';\r\nimport StripePaymentComponent from './StripePaymentComponent.vue';\r\n@Component({ components: { StripePaymentComponent } })\r\nexport default class PaymentAdd extends Vue {\r\n $refs!: {\r\n Form: HTMLFormElement;\r\n StripeCard: HTMLFormElement;\r\n };\r\n /* Properties */\r\n /* Store Actions */\r\n @Getter('getCustomer', { namespace: 'customer' }) Customer: Customer;\r\n /* Watchers */\r\n @Watch('newPaymentModel.ExpirationDate', { deep: true })\r\n onDateChanged() {\r\n this.dateFormatted = this.formatDate(this.newPaymentModel.ExpirationDate);\r\n }\r\n /* Data */\r\n shouldOpenNewPaymentDialog: boolean = false;\r\n isNewPaymentFormValid: boolean = false;\r\n isSameAsPrimaryAddress: boolean = false;\r\n isLoading: boolean = false;\r\n isAddingPaymentMethod: boolean = false;\r\n hasNotFoundPaymentProfile: boolean = false;\r\n newPaymentModel: CustomerPaymentModel = new CustomerPaymentModel();\r\n newPaymentException: string = '';\r\n billingAddresses: any[] = [];\r\n states: { id: string; name: string }[] = [];\r\n countries: any[] = [];\r\n expiryDateMenu: boolean = false;\r\n dateFormatted: string = '';\r\n paymentTypes: Array<{ Name: string; type: string }> = [\r\n { Name: 'Credit Card', type: 'Card' }\r\n // { Name: 'ACH Transfer', type: 'Bank Account' }\r\n ];\r\n /* Methods */\r\n get bankAccountTypes() {\r\n return BankAccountTypes;\r\n }\r\n openNewPaymentDialog() {\r\n this.GetBillingAddressesCondensed();\r\n this.GetStates();\r\n this.GetCountries();\r\n this.shouldOpenNewPaymentDialog = true;\r\n DisableFieldAutofill('state');\r\n DisableFieldAutofill('country');\r\n }\r\n closeNewPaymentDialog() {\r\n this.newPaymentModel = new CustomerPaymentModel();\r\n this.shouldOpenNewPaymentDialog = false;\r\n }\r\n async saveNewPaymentMethod() {\r\n this.isLoading = true;\r\n try {\r\n this.newPaymentModel.IsBankAccount = this.newPaymentModel.IsABankAccount();\r\n if (!this.newPaymentModel.IsBankAccount) {\r\n this.newPaymentModel.Address = ConversionHelper.convertAddressToAddressModel(\r\n this.newPaymentModel.AddressToEdit,\r\n true,\r\n true,\r\n false\r\n );\r\n this.newPaymentModel.ExpirationDate = this.dateFormatted;\r\n }\r\n\r\n const response = await PaymentService.SaveNewPaymentMethod(\r\n this.newPaymentModel.ConvertToRequestModel()\r\n );\r\n if (response.data) {\r\n this.newPaymentException = response.data;\r\n this.isLoading = false;\r\n return;\r\n }\r\n this.closeNewPaymentDialog();\r\n this.$emit('paymentAdded');\r\n SetSnackBar('Added new payment successfully');\r\n } catch (err) {\r\n SetSnackBar(\r\n 'There was an error adding your payment. Please contact techsupport@just1label.com'\r\n );\r\n }\r\n this.isLoading = false;\r\n }\r\n async saveStripePaymentMethod() {\r\n this.isAddingPaymentMethod = true;\r\n try {\r\n await this.$refs.StripeCard.submitCard();\r\n } catch (error) {\r\n SetSnackBar(\r\n 'There was an error adding your payment. Please contact techsupport@just1label.com or try again later'\r\n );\r\n }\r\n this.isAddingPaymentMethod = false;\r\n }\r\n\r\n formatDate(date: string) {\r\n if (!date) return '';\r\n\r\n if (date.includes('-')) {\r\n const [year, month] = date.split('-');\r\n const [century, yearFormatted] = year.split('20');\r\n return `${month}/${yearFormatted}`;\r\n }\r\n const [month, year] = date.split('/');\r\n console.log(`${month}/${year}`);\r\n return `${month}/${year}`;\r\n }\r\n parseDate(date: string) {\r\n if (!date) return '';\r\n\r\n const [month, year] = date.split('/');\r\n return `20${year}-${month}`;\r\n }\r\n isValidDate(date: string) {\r\n const [month, year] = date.split('/');\r\n const todaysDate = new Date();\r\n if (`20${year}` === todaysDate.getFullYear().toString())\r\n return parseInt(month) >= todaysDate.getMonth() + 1;\r\n if (`20${year}` > todaysDate.getFullYear().toString()) return true;\r\n return false;\r\n }\r\n updateBillingAddressFromPrimary() {\r\n if (this.isSameAsPrimaryAddress) {\r\n this.newPaymentModel.AddressToEdit = Clone(this.Customer.BillingAddress);\r\n let stateValue = this.states.find(\r\n s => s.id == this.newPaymentModel.AddressToEdit.State\r\n );\r\n if (stateValue) this.newPaymentModel.AddressToEdit.State = stateValue.name;\r\n this.$nextTick();\r\n } else {\r\n this.newPaymentModel.AddressToEdit = new Address();\r\n }\r\n }\r\n /* Computed */\r\n get ConstValues() {\r\n return ConstValues;\r\n }\r\n get ccvMaxLength() {\r\n if (this.newPaymentModel.CreditCardNumber) {\r\n let regex = new RegExp('^3[4,7]\\\\d{13}$', 'g');\r\n let isAmex = regex.test(this.newPaymentModel.CreditCardNumber);\r\n if (isAmex) return 4;\r\n }\r\n return 3;\r\n }\r\n /* Loaders */\r\n async GetBillingAddressesCondensed(addressId: string = '') {\r\n const response = await CustomerService.GetBillingAddresses();\r\n this.billingAddresses = response.data;\r\n if (addressId) this.newPaymentModel.BillingAddressId = addressId;\r\n }\r\n async GetStates() {\r\n const response = await CustomerService.GetStates();\r\n this.states = Object.keys(response.data).map(key => ({\r\n id: key,\r\n name: response.data[key]\r\n }));\r\n }\r\n async GetCountries() {\r\n const response = await CustomerService.GetCountries();\r\n this.countries = response.data;\r\n if (this.newPaymentModel.AddressToEdit.Country.Id === 0) {\r\n this.newPaymentModel.AddressToEdit.Country = this.countries[0];\r\n }\r\n }\r\n /* Mounted */\r\n mounted() {\r\n this.newPaymentModel.PaymentType = this.paymentTypes[0].type;\r\n }\r\n /* Created */\r\n}\r\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--15-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PaymentAdd.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--15-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PaymentAdd.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./PaymentAdd.vue?vue&type=template&id=dd8e9e2c\"\nimport script from \"./PaymentAdd.vue?vue&type=script&lang=ts\"\nexport * from \"./PaymentAdd.vue?vue&type=script&lang=ts\"\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","\r\nimport { ConversionHelper } from '@/helpers/ConversionHelper';\r\nimport { SetSnackBar } from '@/helpers/SnackbarHelper';\r\nimport { DisableFieldAutofill, DisableFormAutofill } from '@/helpers/WebHelper';\r\nimport { CustomerService } from '@/services/customer-service';\r\nimport { Address } from '@/store/models/AddressModel';\r\nimport { CustomerPaymentModel, PaymentProfile } from '@/store/models/PaymentModel';\r\nimport { Vue, Component, Watch, Prop } from 'vue-property-decorator';\r\nimport DefaultLayout from '@/components/DefaultLayout.vue';\r\nimport PaymentAdd from '@/components/PaymentAdd.vue';\r\nimport PaymentSelect from '@/components/PaymentSelect.vue';\r\nimport PaymentSelectCard from '@/components/cardComponents/PaymentSelectCard.vue';\r\nimport { ConstValues } from '@/ConstValues';\r\nimport { Confirm } from '@/helpers/AuthHelper';\r\nimport SelectPaymentDialog from './SelectPaymentDialog.vue';\r\nimport { PaymentService } from '@/services/payment-service';\r\n@Component({\r\n components: {\r\n DefaultLayout,\r\n PaymentAdd,\r\n SelectPaymentDialog,\r\n PaymentSelect,\r\n PaymentSelectCard\r\n }\r\n})\r\nexport default class PaymentTerms extends Vue {\r\n $refs!: {\r\n PaymentAdd: HTMLFormElement;\r\n SelectPaymentDialog: HTMLFormElement;\r\n };\r\n /* Properties */\r\n @Prop() isSelectingPayment!: boolean;\r\n @Prop({ default: 520 }) cardWidth!: number;\r\n @Prop({ default: true }) isFlat!: boolean;\r\n @Prop({ default: true }) canChangePaymentMethod!: boolean;\r\n @Prop() alternativePaymentProfileId!: string;\r\n @Prop() shouldShowBreakdown!: boolean;\r\n @Prop() shouldNotShowTerms!: boolean;\r\n @Prop() isInvoice!: boolean;\r\n /* Store Actions */\r\n /* Watchers */\r\n @Watch('defaultPaymentProfile')\r\n onDefaultPaymentProfileChange() {\r\n if (this.defaultPaymentProfile)\r\n this.$emit('paymentProfile', this.defaultPaymentProfile);\r\n }\r\n /* Data */\r\n shouldOpenPaymentDialog: boolean = false;\r\n shouldShowPaymentOptions: boolean = false;\r\n isNewPaymentFormValid: boolean = false;\r\n hasNotFoundPaymentProfile: boolean = false;\r\n isLoading: boolean = false;\r\n isAddingNewPayment: boolean = false;\r\n isSavingBillingAddress: boolean = false;\r\n paymentProfiles: PaymentProfile[] = [];\r\n defaultPaymentProfile: PaymentProfile = null;\r\n billingAddresses: any[] = [];\r\n newPaymentModel: CustomerPaymentModel = new CustomerPaymentModel();\r\n newPaymentException: string = '';\r\n paymentOptions: string[] = ['Set as Default', 'Delete'];\r\n isAlreadyDefault: boolean = false;\r\n isFormValid: boolean = false;\r\n shouldShowNewBillingAddressDialog: boolean = false;\r\n addressToEdit: Address = new Address();\r\n states: { id: string; name: string }[] = [];\r\n countries: any[] = [];\r\n selectedPaymentProfileIndex: number | null = null;\r\n isLinkingCardToInvoice: boolean = false;\r\n /* Utility Functions */\r\n onPaymentProfileChange(profile: PaymentProfile) {\r\n if (this.isSelectingPayment) {\r\n this.defaultPaymentProfile = profile;\r\n }\r\n if (this.isLinkingCardToInvoice) {\r\n Confirm(\r\n async () => {\r\n try {\r\n await CustomerService.UpdateCustomerDefaultCCForTerms(\r\n profile.PaymentProfileId\r\n );\r\n this.GetCustomerPaymentProfiles();\r\n SetSnackBar('Successfully updated your default payment method');\r\n } catch (err) {\r\n SetSnackBar(\r\n 'Error has occured, please contact techsupport@just1label.com if you are experiencing any issues'\r\n );\r\n }\r\n },\r\n 'Confirm Default Invoice Payment',\r\n 'Linking this card will automatically charge your account on the day your Invoice is due. Are you sure you would like to continue?',\r\n 'Never mind',\r\n 'I am sure'\r\n );\r\n this.isLinkingCardToInvoice = false;\r\n }\r\n this.$refs.SelectPaymentDialog.closeDialog();\r\n }\r\n async removeCustomerDefaultCCForTerms() {\r\n Confirm(\r\n async () => {\r\n try {\r\n await CustomerService.UpdateCustomerDefaultCCForTerms('');\r\n SetSnackBar('Default credit card unlinked');\r\n this.GetCustomerPaymentProfiles();\r\n } catch (err) {\r\n SetSnackBar(\r\n 'Error has occured, please contact techsupport@just1label.com if you are experiencing any issues'\r\n );\r\n }\r\n },\r\n 'Unlink Default Invoice Payment Removal',\r\n \"This card will no longer be used to automatically pay invoices upon it's designated due date. Are you sure you would like to continue?\",\r\n 'Never mind',\r\n 'I am sure'\r\n );\r\n }\r\n\r\n closeNewPaymentDialog() {\r\n this.newPaymentModel = new CustomerPaymentModel();\r\n this.$refs.PaymentAdd.closeDialog();\r\n }\r\n openPaymentMethodDialog(isLinkingToInvoice: boolean = false) {\r\n this.isLinkingCardToInvoice = isLinkingToInvoice;\r\n this.$refs.SelectPaymentDialog.openDialog(!isLinkingToInvoice);\r\n this.isAlreadyDefault = false;\r\n }\r\n onDefaultPaymentUpdated(profile: PaymentProfile) {\r\n this.defaultPaymentProfile = profile;\r\n this.GetCustomerPaymentProfiles();\r\n }\r\n /* Loaders */\r\n async GetStates() {\r\n const response = await CustomerService.GetStates();\r\n this.states = Object.keys(response.data).map(key => ({\r\n id: key,\r\n name: response.data[key]\r\n }));\r\n }\r\n async GetCountries() {\r\n const response = await CustomerService.GetCountries();\r\n this.countries = response.data;\r\n this.addressToEdit.Country = this.countries[0];\r\n }\r\n async GetCustomerPaymentProfiles() {\r\n this.hasNotFoundPaymentProfile = false;\r\n const response = await PaymentService.GetCustomerPaymentProfiles();\r\n if (response.data && response.data.length > 0) {\r\n this.paymentProfiles = response.data.map((d: any) => new PaymentProfile(d));\r\n } else {\r\n this.paymentProfiles = [];\r\n this.defaultPaymentProfile = null;\r\n this.$refs.SelectPaymentDialog.closeDialog();\r\n }\r\n if (this.paymentProfiles.length == 0) this.hasNotFoundPaymentProfile = true;\r\n this.HandlePaymentProfileOptions();\r\n }\r\n HandlePaymentProfileOptions() {\r\n if (this.shouldNotShowTerms) {\r\n const index = this.paymentProfiles.findIndex(p => p.CardType === 7);\r\n if (index > -1) {\r\n this.paymentProfiles.splice(index, 1);\r\n }\r\n }\r\n this.paymentProfiles.forEach(p => {\r\n p.CardName = this.getCardName(p);\r\n if (p.CardType == 8 || p.CardType == -1)\r\n p.Avatar = require('@/assets/Payment/bank.png');\r\n else p.Avatar = require(`@/assets/Payment/${p.CardName}.png`);\r\n });\r\n if (this.alternativePaymentProfileId) {\r\n this.defaultPaymentProfile = this.paymentProfiles.find(\r\n p => p.PaymentProfileId == this.alternativePaymentProfileId\r\n );\r\n this.defaultPaymentProfile.Avatar = require(`@/assets/Payment/${this.getCardName(\r\n this.defaultPaymentProfile\r\n )}.png`);\r\n } else if (this.isInvoice) {\r\n const defaultProfile = this.paymentProfiles.find(\r\n p => p.IsDefaultPaymentMethodForInvoices\r\n );\r\n this.defaultPaymentProfile = defaultProfile || this.paymentProfiles[0];\r\n if (this.defaultPaymentProfile) this.defaultPaymentProfile.IsDefault = true;\r\n } else {\r\n this.defaultPaymentProfile =\r\n this.paymentProfiles.find(p => p.IsDefault) || this.paymentProfiles[0];\r\n }\r\n if (\r\n this.isInvoice &&\r\n this.paymentProfiles.filter(p => p.CardType !== 7).length == 0\r\n ) {\r\n this.hasNotFoundPaymentProfile = true;\r\n }\r\n }\r\n async saveNewBillingAddress() {\r\n this.isSavingBillingAddress = true;\r\n try {\r\n let model = ConversionHelper.convertAddressToAddressModel(this.addressToEdit, true);\r\n const response = await CustomerService.AddNewBillingAddress(model);\r\n SetSnackBar('Address added successfully');\r\n this.GetBillingAddressesCondensed(response.data.Id);\r\n this.shouldShowNewBillingAddressDialog = false;\r\n } catch (err) {\r\n SetSnackBar('There was an error saving your billing address');\r\n }\r\n this.isSavingBillingAddress = false;\r\n }\r\n async GetBillingAddressesCondensed(addressId: string = '') {\r\n const response = await CustomerService.GetBillingAddresses();\r\n this.billingAddresses = response.data;\r\n if (addressId) this.newPaymentModel.BillingAddressId = addressId;\r\n }\r\n openNewPaymentDialog() {\r\n this.GetBillingAddressesCondensed();\r\n this.$refs.PaymentAdd.openNewPaymentDialog();\r\n }\r\n async openNewAddressDialog() {\r\n this.addressToEdit = new Address();\r\n await this.GetStates();\r\n await this.GetCountries();\r\n this.shouldShowNewBillingAddressDialog = true;\r\n setTimeout(() => {\r\n DisableFieldAutofill('state');\r\n }, 500);\r\n }\r\n isValidDate(date: string) {\r\n if (!date) return false;\r\n let [month, year] = date.split('/');\r\n const todaysDate = new Date();\r\n if (year.length > 2) year = year.substring(2);\r\n if (`20${year}` === todaysDate.getFullYear().toString())\r\n return parseInt(month) >= todaysDate.getMonth() + 1;\r\n if (`20${year}` > todaysDate.getFullYear().toString()) return true;\r\n return false;\r\n }\r\n getCreditCardImage(d: any) {\r\n switch (d.CardType) {\r\n case -1:\r\n return 'unverified bank icon.svg';\r\n case 1:\r\n return 'Visa.png';\r\n case 2:\r\n return 'MasterCard.png';\r\n case 3:\r\n return 'American Express.png';\r\n case 4:\r\n return 'diners.png';\r\n case 5:\r\n return 'Discover.png';\r\n case 6:\r\n return 'jcb-logo.jpg';\r\n case 8:\r\n return 'bank icon.svg';\r\n }\r\n return 'blank.gif';\r\n }\r\n getCardName(profile: any) {\r\n switch (profile.CardType) {\r\n case 1:\r\n return 'Visa';\r\n case 2:\r\n return 'MasterCard';\r\n case 3:\r\n return 'American Express';\r\n case 4:\r\n return 'diners';\r\n case 5:\r\n return 'Discover';\r\n case 6:\r\n return 'jcb-logo';\r\n case 7:\r\n return profile.NameOnCard?.replace(/\\s/g, '');\r\n }\r\n return 'Unknown Card.';\r\n }\r\n getCardType(profile: PaymentProfile) {\r\n switch (profile.CardType) {\r\n case -1:\r\n case 8:\r\n return 'Account';\r\n default:\r\n return 'Card';\r\n }\r\n }\r\n getDefaultPaymentProfile() {\r\n return this.defaultPaymentProfile;\r\n }\r\n get ConstValues() {\r\n return ConstValues;\r\n }\r\n get ccvMaxLength() {\r\n if (this.newPaymentModel.CreditCardNumber) {\r\n let regex = new RegExp('^3[4,7]\\\\d{13}$', 'g');\r\n let isAmex = regex.test(this.newPaymentModel.CreditCardNumber);\r\n if (isAmex) return 4;\r\n }\r\n return 3;\r\n }\r\n /* Mounted */\r\n async mounted() {\r\n this.isAddingNewPayment = true;\r\n await this.GetCustomerPaymentProfiles();\r\n this.isAddingNewPayment = false;\r\n }\r\n /* Created */\r\n}\r\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--15-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PaymentTerms.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--15-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PaymentTerms.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./PaymentTerms.vue?vue&type=template&id=2d36a33d\"\nimport script from \"./PaymentTerms.vue?vue&type=script&lang=ts\"\nexport * from \"./PaymentTerms.vue?vue&type=script&lang=ts\"\nimport style0 from \"./PaymentTerms.vue?vue&type=style&index=0&id=2d36a33d&prod&lang=stylus\"\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--12-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--12-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--12-oneOf-1-2!../../node_modules/stylus-loader/index.js??ref--12-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./OrderPacklistDialog.vue?vue&type=style&index=0&id=64a499d2&prod&lang=stylus&scoped=true\"","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return (_vm.dialog)?_c('v-dialog',{staticStyle:{\"border-radius\":\"20px\"},attrs:{\"width\":\"500px\"},model:{value:(_vm.dialog),callback:function ($$v) {_vm.dialog=$$v},expression:\"dialog\"}},[_c('v-card',{staticClass:\"default-dialog border-radius-15\"},[_c('v-card-title',[_c('v-icon',[_vm._v(\"payment\")]),_vm._v(\"Pay online now\")],1),_c('v-divider',{staticStyle:{\"border-color\":\"rgba(0, 0, 0, 0.3)\"}}),_c('v-container',[_c('span',{staticClass:\"roboto-bold pl-9\"},[_vm._v(\"Selected payment method\")]),_c('v-row',{staticStyle:{\"max-width\":\"100%\"},attrs:{\"no-gutters\":\"\",\"justify\":\"center\"}},[(!_vm.shouldShowResult)?_c('payment-terms',{ref:\"paymentTerms\",staticStyle:{\"width\":\"418px\"},attrs:{\"is-selecting-payment\":true,\"should-not-show-terms\":true,\"is-invoice\":true},scopedSlots:_vm._u([{key:\"payment-display\",fn:function({ paymentProfile }){return [_c('PaymentSelectCard',{attrs:{\"profile\":paymentProfile,\"should-hover\":false,\"is-flat\":true},scopedSlots:_vm._u([{key:\"actionBtn\",fn:function(){return [_c('v-btn',{staticClass:\"bold-blue v-btn__no-text-decoration pa-0\",attrs:{\"text\":\"\"},on:{\"click\":function($event){return _vm.$refs.paymentTerms.openPaymentMethodDialog(false)}}},[_vm._v(\"Change \")])]},proxy:true}],null,true)})]}}],null,false,1308551548)}):_vm._e()],1),_c('div',{staticClass:\"my-4 mt-7\"},[_c('v-row',{staticStyle:{\"width\":\"100%\",\"font-size\":\"13px\",\"line-height\":\"0.5\"},attrs:{\"no-gutters\":\"\",\"justify\":\"center\"}},[_vm._v(\"Invoice to be paid\")]),_c('v-row',{staticClass:\"mb-2\",staticStyle:{\"width\":\"100%\",\"font-size\":\"24px\"},attrs:{\"no-gutters\":\"\",\"justify\":\"center\"}},[_c('span',{staticClass:\"roboto-black\"},[_vm._v(\"INV\"+_vm._s(_vm.invoice.InvoiceNumber))])])],1),_c('v-row',{attrs:{\"no-gutters\":\"\",\"justify\":\"center\"}},[_c('v-col',{attrs:{\"cols\":\"8\"}},[(_vm.invoiceBreakdown.TotalItems > 0)?_c('OrderSummaryBreakdown',{attrs:{\"order-summary-breakdown\":_vm.invoiceBreakdown,\"is-invoice\":true,\"should-include-processing-fee\":true}}):_vm._e()],1)],1),(_vm.shouldShowResult)?_c('v-card',{attrs:{\"flat\":\"\"}},[_c('v-card-title',[_vm._v(\"Invoice \"+_vm._s(_vm.invoice.InvoiceNumber))]),_c('v-row',[_c('v-col',{staticStyle:{\"padding-left\":\"28px\"},attrs:{\"cols\":\"12\"}},[_vm._v(\" This invoice has successfully been paid. The transaction Id is \"),_c('span',{staticStyle:{\"font-weight\":\"bold\"}},[_vm._v(_vm._s(_vm.transactionInfo.TransactionId))]),_vm._v(\" please write it down for your records. \")])],1)],1):_vm._e(),(!_vm.shouldShowResult)?_c('v-row',{staticClass:\"mt-7\",attrs:{\"no-gutters\":\"\",\"justify\":\"center\"}},[_c('v-col',{attrs:{\"cols\":\"6\"}},[_c('v-row',{attrs:{\"no-gutters\":\"\",\"justify\":\"center\"}},[_c('v-btn',{staticClass:\"bold-blue-background background-color-white v-btn__regular-text text-none\",attrs:{\"light\":\"\",\"loading\":_vm.isPaying,\"disabled\":!_vm.canPayInvoice,\"block\":\"\",\"x-large\":\"\"},on:{\"click\":_vm.confirmPayment}},[_vm._v(\"Pay now\")])],1)],1)],1):_vm._e(),_c('v-row',{attrs:{\"no-gutters\":\"\",\"justify\":\"center\"}},[_c('v-btn',{staticClass:\"bold-blue v-btn__no-text-decoration\",attrs:{\"text\":\"\"},on:{\"click\":function($event){_vm.dialog = false}}},[_vm._v(_vm._s(_vm.shouldShowResult ? 'Close' : 'Cancel'))])],1)],1)],1)],1):_vm._e()\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\nimport { Vue, Component, Watch, Prop } from 'vue-property-decorator';\r\nimport { State, Action } from 'vuex-class';\r\nimport DialogLayout from '@/components/DialogLayout.vue';\r\nimport PaymentTerms from '@/components/PaymentTerms.vue';\r\nimport PaymentSelectCard from '@/components/cardComponents/PaymentSelectCard.vue';\r\nimport { QuickDialog } from '@/store/models/DialogModel';\r\nimport OrderSummaryBreakdown from '@/components/OrderSummaryBreakdown.vue';\r\nimport { Invoice } from '@/store/models/InvoiceModel';\r\nimport { PaymentService } from '@/services/payment-service';\r\nimport { SetSnackBar } from '@/helpers/SnackbarHelper';\r\nimport { OrderBreakdown } from '@/store/models/OrderlineModel';\r\nimport { Clone, getDistinctOccurences } from '@/helpers/ObjectHelper';\r\nimport { Confirm } from '@/helpers/AuthHelper';\r\n\r\n@Component({\r\n components: {\r\n DialogLayout,\r\n PaymentTerms,\r\n OrderSummaryBreakdown,\r\n PaymentSelectCard\r\n }\r\n})\r\nexport default class extends Vue {\r\n $refs!: {\r\n invoiceDialog: HTMLFormElement;\r\n paymentTerms: HTMLFormElement;\r\n };\r\n /* Properties */\r\n @Prop()\r\n invoice!: Invoice;\r\n @Prop()\r\n paymentProfileId!: string;\r\n /* Store Actions */\r\n @Action('refreshInvoice', { namespace: 'invoices' })\r\n refreshInvoice!: any;\r\n /* Watchers */\r\n @Watch('dialog')\r\n onDialogChange() {}\r\n /* Data */\r\n dialog: boolean = false;\r\n dialogLayoutData!: QuickDialog;\r\n isTextInputValid: boolean = false;\r\n isPaying: boolean = false;\r\n shouldShowResult: boolean = false;\r\n invoiceBreakdown: OrderBreakdown = new OrderBreakdown();\r\n transactionInfo = {\r\n ResponseCode: '0',\r\n ResponseMessage: '0',\r\n Result: '',\r\n TransactionDateTime: '',\r\n TransactionId: '',\r\n WasSuccessful: ''\r\n };\r\n /* Methods */\r\n async openDialog() {\r\n this.dialog = true;\r\n this.isPaying = false;\r\n this.shouldShowResult = false;\r\n setTimeout(() => {\r\n let dialog = document.getElementsByClassName('v-dialog');\r\n (dialog[0] as HTMLElement).style.cssText += 'border-radius: 15px';\r\n this.setOrderBreakdown();\r\n }, 100);\r\n }\r\n setOrderBreakdown() {\r\n let breakdown = Clone(this.invoice.Breakdown);\r\n if (this.invoice.CCFee > 0) {\r\n breakdown.Subtotal -= this.invoice.CCFee;\r\n }\r\n this.invoiceBreakdown = breakdown;\r\n }\r\n onButtonClick() {}\r\n closeDialog() {\r\n this.dialog = false;\r\n this.isPaying = false;\r\n this.shouldShowResult = false;\r\n }\r\n confirmPayment() {\r\n Confirm(\r\n () => {\r\n this.payInvoice();\r\n },\r\n 'Pay Invoice',\r\n 'Are you sure you want to pay this invoice?'\r\n );\r\n }\r\n canPayInvoice() {\r\n let paymentProfile = this.$refs.paymentTerms?.getDefaultPaymentProfile();\r\n return this.$refs.paymentTerms && !!paymentProfile && !paymentProfile.IsExpired;\r\n }\r\n async payInvoice() {\r\n this.isPaying = true;\r\n try {\r\n console.log('paying invoice.');\r\n let response = await PaymentService.PayInvoice(\r\n this.$refs.paymentTerms.defaultPaymentProfile.PaymentProfileId,\r\n this.invoice.Id\r\n );\r\n if (response.data.WasSuccessful) {\r\n SetSnackBar(\r\n `We successfully charged your card, the transaction Id is ${response.data.TransactionId}`\r\n );\r\n await this.refreshInvoice(this.invoice.Id);\r\n this.transactionInfo.TransactionId = response.data.TransactionId;\r\n this.shouldShowResult = true;\r\n // invalidate store for invoice and reload it.\r\n } else {\r\n SetSnackBar(\r\n `There was a problem trying to process your card: ${response.data.Result}, please contact your bank or select a different card to try.`\r\n );\r\n }\r\n } catch (err) {\r\n SetSnackBar(\r\n 'There was a problem trying to process your card, please contact your bank or select a different card to try.'\r\n );\r\n }\r\n this.isPaying = false;\r\n }\r\n /* Utility Functions */\r\n /* Loaders */\r\n /* Mounted */\r\n mounted() {}\r\n /* Created */\r\n /* Emmited Functions */\r\n}\r\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--15-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PayInvoiceDialog.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--15-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PayInvoiceDialog.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./PayInvoiceDialog.vue?vue&type=template&id=373e7826\"\nimport script from \"./PayInvoiceDialog.vue?vue&type=script&lang=ts\"\nexport * from \"./PayInvoiceDialog.vue?vue&type=script&lang=ts\"\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,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"order-breakdown mb-4\"},[_c('v-row',{attrs:{\"no-gutters\":\"\",\"justify\":\"start\"}},[_c('v-col',{attrs:{\"cols\":\"12\"}},[_c('v-col',{staticClass:\"no-margin no-padding\",attrs:{\"cols\":\"12\"}},[_c('v-row',{attrs:{\"no-gutters\":\"\",\"justify\":\"start\"}},[_c('span',{staticClass:\"roboto-bold\",staticStyle:{\"font-size\":\"20px\"}},[_vm._v(\" \"+_vm._s(_vm.OrderBreakdownTitle)+\" Summary\")])])],1),_c('v-row',{attrs:{\"no-gutters\":\"\"}},[_c('v-col',{attrs:{\"cols\":\"7\"}},[_c('v-row',{attrs:{\"no-gutters\":\"\",\"justify\":\"start\"}},[_c('ul',{staticClass:\"roboto-regular list-style list-style--justify-start font-size-12 pl-0\"},[_c('li',[_vm._v(\"Total items\")]),_c('li',[_vm._v(\"Expedited items\")]),_c('li',[_vm._v(\"Templates\")]),_c('li',[_vm._v(\"Materials\")]),_c('li',[_vm._v(\"Finishes\")])])])],1),_c('v-col',{attrs:{\"cols\":\"5\"}},[_c('v-row',{attrs:{\"no-gutters\":\"\",\"justify\":\"end\"}},[_c('ul',{staticClass:\"roboto-bold list-style list-style--justify-end font-size-12\"},[_c('li',[_vm._v(_vm._s(_vm.OrderSummaryBreakdown.TotalItems))]),_c('li',[_vm._v(_vm._s(_vm.OrderSummaryBreakdown.ExpeditedItems))]),_c('li',[_vm._v(_vm._s(_vm.OrderSummaryBreakdown.DieTemplates))]),_c('li',[_vm._v(_vm._s(_vm.OrderSummaryBreakdown.Materials))]),_c('li',[_vm._v(_vm._s(_vm.OrderSummaryBreakdown.Finishes))])])])],1)],1),_c('v-divider',{staticClass:\"my-1\",staticStyle:{\"border-color\":\"rgba(0,0,0, 0.5)\"}})],1)],1),_c('v-row',{attrs:{\"no-gutters\":\"\",\"justify\":\"start\"}},[_c('v-col',{attrs:{\"cols\":\"12\"}},[_c('v-row',{attrs:{\"no-gutters\":\"\"}},[_c('v-col',{attrs:{\"cols\":\"7\"}},[_c('v-row',{attrs:{\"no-gutters\":\"\"}},[_c('ul',{staticClass:\"roboto-regular list-style list-style--justify-start font-size-12 pl-0\"},[_c('li',[_vm._v(\"Extended Price:\")]),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.IsInvoice),expression:\"!IsInvoice\"}]},[_c('li',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.OrderSummaryBreakdown.SetUpFee),expression:\"OrderSummaryBreakdown.SetUpFee\"}]},[_vm._v(\"Calibration and Setup:\")]),_c('li',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.OrderSummaryBreakdown.RushFee),expression:\"OrderSummaryBreakdown.RushFee\"}]},[_vm._v(\"Rush Fee(s):\")]),_c('li',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.OrderSummaryBreakdown.VariableDataFee),expression:\"OrderSummaryBreakdown.VariableDataFee\"}]},[_vm._v(\" Variable Data Fee: \")]),_c('li',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.OrderSummaryBreakdown.ExtraRollFee),expression:\"OrderSummaryBreakdown.ExtraRollFee\"}]},[_vm._v(\"Extra Roll Fee:\")]),_c('li',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.OrderSummaryBreakdown.HandApplyFee),expression:\"OrderSummaryBreakdown.HandApplyFee\"}]},[_vm._v(\"Hand Apply Fee:\")]),_c('li',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.OrderSummaryBreakdown.ShippingFee),expression:\"OrderSummaryBreakdown.ShippingFee\"}]},[_vm._v(\"Shipping & Handling*\")])]),_c('li',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.OrderSummaryBreakdown.DiscountValue),expression:\"OrderSummaryBreakdown.DiscountValue\"}]},[_vm._v(\" Discount \")]),_c('li',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.processingFee > 0),expression:\"processingFee > 0\"}]},[_vm._v(\"CC Process Fee\")])])])],1),_c('v-col',{attrs:{\"cols\":\"5\"}},[_c('v-row',{attrs:{\"no-gutters\":\"\",\"justify\":\"end\"}},[_c('ul',{staticClass:\"roboto-bold list-style list-style--justify-end font-size-12\"},[_c('li',[_vm._v(_vm._s(_vm.extendedTotal.toPrice()))]),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.IsInvoice),expression:\"!IsInvoice\"}]},[_c('li',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.OrderSummaryBreakdown.SetUpFee),expression:\"OrderSummaryBreakdown.SetUpFee\"}]},[_vm._v(\" \"+_vm._s(_vm.OrderSummaryBreakdown.SetUpFee.toPrice())+\" \")]),_c('li',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.OrderSummaryBreakdown.RushFee),expression:\"OrderSummaryBreakdown.RushFee\"}]},[_vm._v(\" \"+_vm._s(_vm.OrderSummaryBreakdown.RushFee.toPrice())+\" \")]),_c('li',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.OrderSummaryBreakdown.VariableDataFee),expression:\"OrderSummaryBreakdown.VariableDataFee\"}]},[_vm._v(\" \"+_vm._s(_vm.OrderSummaryBreakdown.VariableDataFee.toPrice())+\" \")]),_c('li',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.OrderSummaryBreakdown.ExtraRollFee),expression:\"OrderSummaryBreakdown.ExtraRollFee\"}]},[_vm._v(\" \"+_vm._s(_vm.OrderSummaryBreakdown.ExtraRollFee.toPrice())+\" \")]),_c('li',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.OrderSummaryBreakdown.HandApplyFee),expression:\"OrderSummaryBreakdown.HandApplyFee\"}]},[_vm._v(\" \"+_vm._s(_vm.OrderSummaryBreakdown.HandApplyFee.toPrice())+\" \")]),_c('li',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.OrderSummaryBreakdown.ShippingFee),expression:\"OrderSummaryBreakdown.ShippingFee\"}]},[_vm._v(\" \"+_vm._s(_vm.OrderSummaryBreakdown.ShippingFee.toPrice())+\" \")])]),(_vm.OrderSummaryBreakdown.DiscountValue)?_c('li',[_vm._v(\" (\"+_vm._s(_vm.OrderSummaryBreakdown.DiscountValue.toPrice())+\") \")]):_vm._e(),(_vm.processingFee > 0)?_c('li',[_vm._v(_vm._s(_vm.processingFee.toPrice()))]):_vm._e()])])],1)],1),_c('v-divider',{staticClass:\"my-1\",staticStyle:{\"border-color\":\"rgba(0,0,0, 0.5)\"}})],1)],1),_c('v-row',{attrs:{\"no-gutters\":\"\",\"justify\":\"start\"}},[_c('v-col',{attrs:{\"cols\":\"12\"}},[_c('v-row',{attrs:{\"no-gutters\":\"\"}},[_c('v-col',{attrs:{\"cols\":\"7\"}},[_c('v-row',{attrs:{\"no-gutters\":\"\",\"justify\":\"start\"}},[_c('span',{staticClass:\"roboto-bold\"},[_vm._v(_vm._s(_vm.OrderBreakdownTitle)+\" Total\")])])],1),_c('v-col',{attrs:{\"cols\":\"5\"}},[_c('v-row',{attrs:{\"no-gutters\":\"\",\"justify\":\"end\"}},[_c('ul',{staticClass:\"roboto-black list-style list-style--justify-end\"},[(!_vm.IsLoading)?_c('li',{staticClass:\"subtotal-color\"},[_vm._v(\" \"+_vm._s(_vm.subtotal.toPrice())+\" \")]):_c('li',[_c('v-progress-circular',{staticClass:\"subtotal-color\",attrs:{\"size\":\"24\",\"indeterminate\":\"\"}})],1)])])],1)],1)],1)],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\nimport { MathHelper } from '@/helpers/MathHelper';\r\nimport { OrderBreakdown } from '@/store/models/OrderlineModel';\r\nimport { PaymentProfile } from '@/store/models/PaymentModel';\r\nimport { Vue, Component, Watch, Prop } from 'vue-property-decorator';\r\n@Component\r\nexport default class OrderSummaryBreakdown extends Vue {\r\n /* Properties */\r\n @Prop({ required: true, default: new OrderBreakdown() })\r\n OrderSummaryBreakdown!: OrderBreakdown;\r\n @Prop()\r\n PaymentMethodProfile!: PaymentProfile;\r\n @Prop({ default: 'Invoice' }) OrderBreakdownTitle!: string;\r\n @Prop() IsLoading!: boolean;\r\n @Prop() IsInvoice!: boolean;\r\n @Prop({ default: true }) ShouldIncludeProcessingFee!: boolean;\r\n /* Store Actions */\r\n /* Watchers */\r\n /* Data */\r\n /* Utility Functions */\r\n get extendedTotal() {\r\n let returnValue = MathHelper.Truncate(this.OrderSummaryBreakdown.ExtendedPrice, 2);\r\n let total = returnValue - this.OrderSummaryBreakdown.DiscountValue;\r\n if (!this.IsInvoice) {\r\n total +=\r\n this.OrderSummaryBreakdown.SetUpFee +\r\n this.OrderSummaryBreakdown.RushFee +\r\n this.OrderSummaryBreakdown.ExtraRollFee +\r\n this.OrderSummaryBreakdown.ShippingFee;\r\n }\r\n\r\n if (\r\n this.OrderSummaryBreakdown.Subtotal &&\r\n total != this.OrderSummaryBreakdown.Subtotal\r\n ) {\r\n returnValue += this.OrderSummaryBreakdown.Subtotal - total;\r\n this.$emit('subtotalChanged', this.OrderSummaryBreakdown.Subtotal - total);\r\n }\r\n return returnValue;\r\n }\r\n get processingFee() {\r\n return (this.PaymentMethodProfile?.Id && !this.PaymentMethodProfile.IsNet) ||\r\n this.IsInvoice\r\n ? this.OrderSummaryBreakdown.Subtotal * 0.025\r\n : 0;\r\n }\r\n get subtotal() {\r\n return (\r\n this.OrderSummaryBreakdown.Subtotal +\r\n (this.ShouldIncludeProcessingFee ? this.processingFee : 0)\r\n );\r\n }\r\n calculateSubTotal() {\r\n return (\r\n MathHelper.Truncate(this.OrderSummaryBreakdown.ExtendedPrice, 2) +\r\n this.OrderSummaryBreakdown.VariableDataFee +\r\n this.OrderSummaryBreakdown.SetUpFee +\r\n this.OrderSummaryBreakdown.RushFee +\r\n this.OrderSummaryBreakdown.ExtraRollFee +\r\n this.OrderSummaryBreakdown.ShippingFee -\r\n this.OrderSummaryBreakdown.DiscountValue\r\n );\r\n }\r\n /* Loaders */\r\n /* Mounted */\r\n /* Created */\r\n /* Emmited Functions */\r\n}\r\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--15-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./OrderSummaryBreakdown.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--15-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./OrderSummaryBreakdown.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./OrderSummaryBreakdown.vue?vue&type=template&id=0bcec441\"\nimport script from \"./OrderSummaryBreakdown.vue?vue&type=script&lang=ts\"\nexport * from \"./OrderSummaryBreakdown.vue?vue&type=script&lang=ts\"\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,_setup=_vm._self._setupProxy;return _c('div',[(_vm.dialog)?_c('v-dialog',{attrs:{\"width\":\"60vw\"},model:{value:(_vm.dialog),callback:function ($$v) {_vm.dialog=$$v},expression:\"dialog\"}},[_c('v-card',[_c('v-card-title',[_c('v-icon',[_vm._v(\"mdi-pause-circle-outline\")]),_vm._v(\" Pack lists related to this order \")],1),_c('v-card-text',[(!_vm.packlists[0])?_c('v-col',{attrs:{\"cols\":\"12\",\"min-height\":\"70vh\"}},[_c('v-layout',{attrs:{\"row\":\"\",\"wrap\":\"\",\"justify-center\":\"\"}},[_c('v-progress-circular',{attrs:{\"indeterminate\":\"\",\"color\":\"red\"}})],1)],1):_c('v-col',{attrs:{\"cols\":\"12\"}},_vm._l((_vm.packlists),function(packlist,index){return _c('v-row',{key:index,attrs:{\"justify\":\"center\"}},[_c('v-row',{attrs:{\"no-gutters\":\"\",\"justify\":\"center\",\"align\":\"center\"}},[_c('v-col',{attrs:{\"cols\":\"6\"}},[_c('v-card',{staticClass:\"leftSideBorderRadius card-light-grey-background flex-align-center\",attrs:{\"outlined\":\"\",\"tile\":\"\"}},[_c('div',[_c('span',{staticClass:\"mr-2\"},[_vm._v(\"Packlist\")]),_c('span',{staticClass:\"font-size-32 roboto-black\"},[_vm._v(_vm._s(packlist.PlNumber))])]),_c('div',[(packlist.HasBeenShipped)?_c('span',{staticClass:\"mr-1\"},[_vm._v(\"Shipped on\")]):_vm._e(),_vm._v(\" \"+_vm._s(packlist.DateShipped)+\" \")])])],1),_c('v-col',{attrs:{\"cols\":\"3\"}},[_c('v-card',{staticClass:\"leftSideBorderRadius card-light-grey-background flex-align-center\",attrs:{\"outlined\":\"\",\"tile\":\"\"}},[_c('v-row',{attrs:{\"no-gutters\":\"\",\"justify\":\"center\",\"align\":\"center\"}},[_c('ul',{staticClass:\"pa-0 list-style list-style--justify-center\"},[_c('li',{staticClass:\"roboto-bold\"},[_vm._v(\" \"+_vm._s(packlist.ShippingAddress.CompanyName)+\" \")]),_c('li',[_vm._v(_vm._s(packlist.ShippingAddress.Street1))]),_c('li',{directives:[{name:\"show\",rawName:\"v-show\",value:(packlist.ShippingAddress.Street2),expression:\"packlist.ShippingAddress.Street2\"}]},[_vm._v(\" \"+_vm._s(packlist.ShippingAddress.Street2)+\" \")]),_c('li',[_vm._v(\" \"+_vm._s(packlist.ShippingAddress.City)+\", \"+_vm._s(packlist.ShippingAddress.State)+\" \"+_vm._s(packlist.ShippingAddress.ZipCode)+\" \")]),_c('li',[_vm._v(_vm._s(packlist.ShippingAddress.Country))])])])],1)],1),_c('v-col',{attrs:{\"cols\":\"3\"}},[_c('v-card',{staticClass:\"rightSideBorderRadius flex-align-center\",attrs:{\"outlined\":\"\",\"tile\":\"\"}},[_c('div',[_vm._v(\" Status \"),_c('span',{staticClass:\"ml-1 font-size-32 roboto-black\",class:_vm.determineStatusColor(packlist)},[_vm._v(\" \"+_vm._s(packlist.Status))])]),_c('div',[_c('a',{on:{\"click\":function($event){return _vm.downloadPacklist(packlist)}}},[_vm._v(\"Download\")]),_c('span',{staticClass:\"mx-2\"},[_vm._v(\"|\")]),_c('a',{on:{\"click\":function($event){return _vm.trackPackage(packlist)}}},[_vm._v(\"Tracking\")])])])],1)],1)],1)}),1)],1),_c('v-card-actions',[_c('v-spacer'),_c('v-btn',{staticClass:\"bold-blue\",attrs:{\"text\":\"\"},on:{\"click\":function($event){_vm.dialog = false}}},[_vm._v(\"Done\")])],1)],1)],1):_vm._e()],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\nimport { Vue, Component, Watch, Prop } from 'vue-property-decorator';\r\nimport { Item } from '../store/models/ItemModel';\r\nimport { Orderline } from '../store/models/OrderlineModel';\r\nimport { ColorHelpers } from '@/helpers/ColorHelper';\r\nimport J1lImg from '@/components/J1lImg.vue';\r\nimport CustomerPaymentDialog from '@/components/CustomerPaymentDialog.vue';\r\nimport { OrdersService } from '@/services/orders-service';\r\n\r\n@Component({\r\n components: { J1lImg, CustomerPaymentDialog }\r\n})\r\nexport default class extends Vue {\r\n $refs!: {\r\n J1lImg: HTMLFormElement;\r\n };\r\n /* Properties */\r\n\r\n /* Store Actions */\r\n @Prop()\r\n orderlineGroup!: any;\r\n @Prop()\r\n po!: string;\r\n /* Watchers */\r\n @Watch('dialog')\r\n onDialogChange(val: boolean) {\r\n if (!val) {\r\n this.closeDialog();\r\n }\r\n }\r\n\r\n /* Data */\r\n dialog: boolean = false;\r\n paymentDialog: boolean = false;\r\n packlists: any = [];\r\n plnumber: string = '';\r\n isTextInputValid: boolean = false;\r\n\r\n isDownloadingInvoice: boolean = false;\r\n /* Methods */\r\n async openDialog() {\r\n this.dialog = true;\r\n let po = this.po ? this.po : this.orderlineGroup?.GroupByValue;\r\n if (po) {\r\n const response = await OrdersService.GetPacklistByPo(po);\r\n this.packlists = response.data;\r\n }\r\n }\r\n async downloadPacklist(packlist: any) {\r\n OrdersService.DownloadPacklist(packlist.PlNumber);\r\n }\r\n\r\n goToItem(item: Item) {\r\n let route = this.$router.resolve({\r\n name: 'ItemInformation',\r\n params: { id: item.Id }\r\n });\r\n window.open(route.href, '_blank');\r\n }\r\n goToOrderDetail() {\r\n this.$router.push({\r\n name: 'OrderView',\r\n params: { po: this.orderlineGroup.GroupByValue }\r\n });\r\n }\r\n trackPackage(packlist: any) {\r\n window.open(\r\n 'https://www.ups.com/track?loc=en_US&tracknum=' +\r\n packlist.TrackingNumber +\r\n '&requester=WT/trackdetails'\r\n );\r\n }\r\n determineStatusColor(packlist: any) {\r\n if (packlist) {\r\n let fontcolor = ColorHelpers.getPacklistStatus(packlist.Status);\r\n return fontcolor;\r\n }\r\n }\r\n\r\n closeDialog() {\r\n this.dialog = false;\r\n }\r\n\r\n /* Loaders */\r\n /* Mounted */\r\n mounted() {}\r\n /* Created */\r\n}\r\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--15-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./OrderPacklistDialog.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--15-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./OrderPacklistDialog.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./OrderPacklistDialog.vue?vue&type=template&id=64a499d2&scoped=true\"\nimport script from \"./OrderPacklistDialog.vue?vue&type=script&lang=ts\"\nexport * from \"./OrderPacklistDialog.vue?vue&type=script&lang=ts\"\nimport style0 from \"./OrderPacklistDialog.vue?vue&type=style&index=0&id=64a499d2&prod&lang=stylus&scoped=true\"\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 \"64a499d2\",\n null\n \n)\n\nexport default component.exports","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--12-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--12-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--12-oneOf-1-2!../../node_modules/stylus-loader/index.js??ref--12-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PaymentTerms.vue?vue&type=style&index=0&id=2d36a33d&prod&lang=stylus\"","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',[(_vm.dialog)?_c('v-dialog',{attrs:{\"width\":\"50vw\"},model:{value:(_vm.dialog),callback:function ($$v) {_vm.dialog=$$v},expression:\"dialog\"}},[_c('v-card',[_c('v-card-title',[_c('v-icon',[_vm._v(\"mdi-pause-circle-outline\")]),_vm._v(\" Invoice related to this order \")],1),_c('v-card-text',[(!_vm.invoices[0])?_c('v-col',{attrs:{\"cols\":\"12\",\"height\":\"70vh\"}},[_c('v-layout',{attrs:{\"row\":\"\",\"wrap\":\"\",\"justify-center\":\"\"}},[_c('v-progress-circular',{attrs:{\"indeterminate\":\"\",\"color\":\"red\"}})],1)],1):_c('v-col',{attrs:{\"cols\":\"12\"}},_vm._l((_vm.invoices),function(invoice,index){return _c('v-row',{key:index,attrs:{\"justify\":\"center\"}},[_c('v-row',{attrs:{\"no-gutters\":\"\",\"justify\":\"center\",\"align\":\"center\"}},[_c('v-col',{attrs:{\"cols\":\"8\"}},[_c('v-card',{staticClass:\"leftSideBorderRaidus pa-5 card-light-grey-background\",attrs:{\"outlined\":\"\",\"tile\":\"\"}},[_c('v-row',{attrs:{\"no-gutters\":\"\",\"justify\":\"center\",\"align\":\"center\"}},[_c('span',{staticClass:\"mr-2\"},[_vm._v(\"Invoice\")]),_c('span',{staticClass:\"font-size-32 roboto-black\"},[_vm._v(_vm._s(invoice.InvoiceNumber))])]),_c('v-row',{attrs:{\"no-gutters\":\"\",\"justify\":\"center\",\"align\":\"center\"}},[_c('span',{staticClass:\"roboto-black\"},[_vm._v(\"Issued \"+_vm._s(invoice.OrderDate)+\" - Items \"+_vm._s(invoice.InvoiceLines.length))])])],1)],1),_c('v-col',{attrs:{\"cols\":\"4\"}},[_c('v-card',{staticClass:\"rightSideBorderRadius pa-5\",attrs:{\"outlined\":\"\",\"tile\":\"\"}},[_c('v-row',{attrs:{\"no-gutters\":\"\",\"justify\":\"center\",\"align\":\"center\"}},[_vm._v(\"Status \"),_c('span',{staticClass:\"ml-1 font-size-32 roboto-black\",class:_vm.determineStatusColor(invoice)},[_vm._v(_vm._s(invoice.Status))])]),_c('v-row',{attrs:{\"no-gutters\":\"\",\"justify\":\"center\",\"align\":\"center\"}},[_c('a',{on:{\"click\":function($event){return _vm.downloadInvoice(invoice)}}},[_vm._v(\"Download\")]),_c('span',{staticClass:\"mx-2\"},[_vm._v(\"|\")]),_c('a',{on:{\"click\":function($event){return _vm.trackPackage(invoice)}}},[_vm._v(\"Tracking\")])])],1)],1)],1)],1)}),1)],1)],1)],1):_vm._e()],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\nimport { Vue, Component, Watch, Prop } from 'vue-property-decorator';\r\nimport { Item } from '../store/models/ItemModel';\r\nimport { Orderline } from '../store/models/OrderlineModel';\r\nimport { StringHelper } from '@/helpers/StringHelper';\r\nimport { ColorHelpers } from '@/helpers/ColorHelper';\r\nimport { InvoiceService } from '@/services/invoice-service';\r\nimport J1lImg from '@/components/J1lImg.vue';\r\nimport CustomerPaymentDialog from '@/components/CustomerPaymentDialog.vue';\r\nimport { Invoice } from '@/store/models/InvoiceModel';\r\n\r\n@Component({\r\n components: { J1lImg, CustomerPaymentDialog }\r\n})\r\nexport default class extends Vue {\r\n $refs!: {\r\n invoiceDialog: HTMLFormElement;\r\n J1lImg: HTMLFormElement;\r\n CustomerPaymentDialog: HTMLFormElement;\r\n };\r\n /* Properties */\r\n\r\n /* Store Actions */\r\n @Prop()\r\n orderlineGroup!: any;\r\n @Prop()\r\n invoiceId!: string;\r\n /* Watchers */\r\n @Watch('dialog')\r\n onDialogChange(val: boolean) {\r\n if (!val) {\r\n this.closeDialog();\r\n }\r\n }\r\n\r\n /* Data */\r\n dialog: boolean = false;\r\n paymentDialog: boolean = false;\r\n paymentProfileId: string = '';\r\n orderlines: Orderline[] = [];\r\n isTextInputValid: boolean = false;\r\n invoices: any = [];\r\n invoicesInfo: any = [\r\n {\r\n header: '',\r\n subheader: '',\r\n description: ''\r\n }\r\n ];\r\n isDownloadingInvoice: boolean = false;\r\n /* Methods */\r\n async openDialog() {\r\n this.dialog = true;\r\n if (this.invoiceId) {\r\n const response = await InvoiceService.GetInvoiceById(this.invoiceId);\r\n this.invoices = [];\r\n this.invoices.push(response.data);\r\n this.invoicesInfo = StringHelper.GetOrderStatusForInvoicing(this.invoices);\r\n } else if (this.orderlineGroup) {\r\n this.orderlines = this.orderlineGroup.Orderlines;\r\n\r\n const response = await InvoiceService.GetInvoiceByPO(\r\n this.orderlineGroup.GroupByValue\r\n );\r\n this.invoices = response.data;\r\n this.invoicesInfo = StringHelper.GetOrderStatusForInvoicing(this.invoices);\r\n }\r\n }\r\n async downloadInvoicePdf(invoice: any) {\r\n this.isDownloadingInvoice = true;\r\n await InvoiceService.GenerateInvoice(invoice.Id);\r\n this.isDownloadingInvoice = false;\r\n }\r\n\r\n async downloadInvoice(invoice: any) {\r\n this.isDownloadingInvoice = true;\r\n await InvoiceService.DownloadInvoice(invoice.Id, invoice.InvoiceNumber);\r\n this.isDownloadingInvoice = false;\r\n }\r\n trackPackage(invoice: any) {\r\n window.open(\r\n 'https://www.ups.com/track?loc=en_US&tracknum=' +\r\n invoice.PackingList.TrackingNumber +\r\n '&requester=WT/trackdetails'\r\n );\r\n }\r\n goToItem(item: Item) {\r\n let route = this.$router.resolve({\r\n name: 'ItemInformation',\r\n params: { id: item.Id }\r\n });\r\n window.open(route.href, '_blank');\r\n }\r\n goToOrderDetail() {\r\n this.$router.push({\r\n name: 'OrderView',\r\n params: { po: this.orderlineGroup.GroupByValue }\r\n });\r\n }\r\n\r\n closeDialog() {\r\n this.dialog = false;\r\n }\r\n determineStatusColor(invoice: any) {\r\n if (invoice) {\r\n let fontcolor = ColorHelpers.getInvoiceStatus(invoice.Status);\r\n return fontcolor;\r\n }\r\n }\r\n\r\n /* Loaders */\r\n /* Mounted */\r\n mounted() {}\r\n /* Created */\r\n}\r\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--15-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./OrderInvoiceDialog.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--15-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./OrderInvoiceDialog.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./OrderInvoiceDialog.vue?vue&type=template&id=6531f532\"\nimport script from \"./OrderInvoiceDialog.vue?vue&type=script&lang=ts\"\nexport * from \"./OrderInvoiceDialog.vue?vue&type=script&lang=ts\"\nimport style0 from \"./OrderInvoiceDialog.vue?vue&type=style&index=0&id=6531f532&prod&lang=stylus\"\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":""}