{"version":3,"sources":["webpack:///./src/mixins/modal.mixin.ts","webpack:///./src/mixins/table.mixin.ts","webpack:///./src/pages/operations/confirmation-tracking/confirmation-tracking.shell.vue?1910","webpack:///./src/pages/operations/confirmation-tracking/post-to-integration.modal.vue?b3ba","webpack:///./src/pages/operations/confirmation-tracking/post-to-integration.modal.vue","webpack:///./src/pages/operations/confirmation-tracking/post-to-integration.modal.vue?92b1","webpack:///./src/pages/operations/confirmation-tracking/post-to-integration.modal.vue?67a3","webpack:///./src/pages/operations/confirmation-tracking/confirmation-tracking.shell.vue","webpack:///./src/pages/operations/confirmation-tracking/confirmation-tracking.shell.vue?d3f5","webpack:///./src/pages/operations/confirmation-tracking/confirmation-tracking.shell.vue?df42"],"names":["ModalMixin","_Vue","_inherits","_super","_createSuper","_this","_classCallCheck","loading","_createClass","key","value","form","fields","Promise","resolve","data","_this$form","_this2","this","mode","getForm","then","_ref","$emit","setFields","finally","reset","_onSubmit","_asyncToGenerator","_regeneratorRuntime","mark","_callee","params","options","_this3","wrap","_context","prev","next","preSubmit","submit","lang","res","openSync","stop","onSubmit","_x","_x2","apply","arguments","get","id","Vue","__decorate","PropSync","Prop","type","String","Watch","immediate","Component","TableMixin","modal","open","length","undefined","$refs","table","refresh","render","_vm","_h","$createElement","_c","_self","attrs","on","$event","$set","onUpdateData","ref","staticClass","columns","filters","query","scopedSlots","_u","fn","cleanFilters","exportData","proxy","props","row","tracking","isActive","_e","_v","_s","$t","getTypeColor","orderNumber","_l","product","staticStyle","$tc","getProductName","agent","payment","isCanceled","getPaymentColor","status","amount","currency","toFixed","confirmationStatus","statusOptions","onStatusChange","sendEmail","openModal","posted","includes","getNotPosted","hasPostedTo","staticRenderFns","orderId","slot","order","integration","i","providerOptions","model","callback","$$v","expression","OrderCancellationModal","_Mixins","$crsForm","providers","selectedProvider","label","isOpen","compass","do","select","ALLOWED_INTEGRATION_PROVIDERS_FOR_CONFIORMATION","map","charAt","toUpperCase","slice","Mixins","Getter","component","ConfirmationTrackingShell","$i18n","t","fieldName","useChips","multiple","start","Date","end","optionName","optionValue","namespace","action","toLowerCase","$q","notify","message","i18n","color","catch","_product$property","PROPERTY_TYPES","property","name","_this4","$nextTick","filter","val","translatedColumns","c","_objectSpread","exportTable","f","_this5","sortable","align","field","_row$customer","_row$customer2","concat","customer","surname","_row$products","products","_product$property2","_row$agent","_row$agent2","isOnlineBooking","style","bookingDate","moment","format","find","productCategory","checkInDate","_ref2","checkOutDate","_row$company","company","_row$buyer","buyer","_row$calculations","_row$calculations$tot","_row$calculations2","_row$calculations2$to","calculations","total","$formatMoney","_row$totalCost","totalCost","_row$calculations3","_row$calculations3$to","cost","percent","populate","path","sort","components","PostToIntegrationModal"],"mappings":"+nFAMA,IAAqBA,EAAU,SAAAC,GAAAC,EAAAF,EAAAC,GAAA,IAAAE,EAAAC,EAAAJ,GAA/B,SAAAA,IAAA,IAAAK,EAGkB,OAHlBC,EAAA,KAAAN,G,0BAGEK,EAAAE,SAAU,EAAMF,EAKf,OAgDFG,EAAAR,EAAA,EAAAS,IAAA,OAAAC,MAAA,WA7CG,MAAO,CACLC,KAAM,CAAEC,OAAQ,OAEnB,CAAAH,IAAA,UAAAC,MAAA,WAGC,OAAO,IAAIG,SAAQ,SAACC,GAAO,OAAKA,EAAQ,CAAEC,KAAM,UACjD,CAAAN,IAAA,SAAAC,MAAA,SAGMA,GAAc,IAYZM,EAZYC,EAAA,KACfP,GAAuB,WAAdQ,KAAKC,MAA6C,oBAAjBD,KAAKE,SACjDF,KAAKX,SAAU,EACfW,KAAKE,UACFC,MAAK,SAAAC,GAA4B,IAAzBP,EAAIO,EAAJP,KACPE,EAAKM,MAAM,uBAAwBR,GACnCE,EAAKN,KAAKa,UAAUT,GACpBE,EAAKM,MAAM,sBAAuBR,MAEnCU,SAAQ,WACPR,EAAKV,SAAU,OAGV,QAATS,EAAAE,KAAKP,YAAI,IAAAK,OAAA,EAATA,EAAWU,QAASR,KAAKP,KAAKe,UAEjC,CAAAjB,IAAA,WA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O,CACL,CACEyF,MAAO8B,OAAKf,EAAE,oBACdhJ,MAAO,WAET,CACEiI,MAAO8B,OAAKf,EAAE,gBACdhJ,MAAO,QAET,CACEiI,MAAO8B,OAAKf,EAAE,oBACdhJ,MAAO,YAET,CACEiI,MAAO8B,OAAKf,EAAE,qBACdhJ,MAAO,aAET,CACEiI,MAAO8B,OAAKf,EAAE,yBACdhJ,MAAO,iBAET,CACEiI,MAAO8B,OAAKf,EAAE,0BACdhJ,MAAO,uBAGZ8I,EA/S2C,CAASH,eAAOxF,SAC5BR,eAAA,CAA/BiG,eAAO,yB,+BACyBjG,eAAA,CAAhCiG,eAAO,0B,kCAqYRjG,eAAA,CADCK,eAAM,mB,qCAtYY8F,EAAyBnG,eAAA,CAL7CO,eAAU,CACTyK,WAAY,CACVC,6BAGiB9E,WCpLqqB,KCOtrB,GAAY,eACd,GACAnF,EACAsD,GACA,EACA,KACA,WACA,MAIa,gB","file":"js/chunk-47388244.86286b1d.js","sourcesContent":["import { CrsAction, CrsForm } from '@resclick/crs-ui';\nimport { API } from '@resclick/compass';\nimport Vue from 'vue';\nimport { Component, Prop, PropSync, Watch } from 'vue-property-decorator';\n\n@Component\nexport default class ModalMixin extends Vue {\n @PropSync('open') openSync!: boolean;\n @Prop({ type: String }) id!: string;\n loading = false;\n form!: CrsForm;\n\n get mode(): unknown {\n return this.id ? 'update' : 'create';\n }\n\n data() {\n return {\n form: { fields: {} },\n };\n }\n\n getForm(): Promise<{ data: any }> {\n return new Promise((resolve) => resolve({ data: {} }));\n }\n\n @Watch('open', { immediate: true })\n onOpen(value: boolean) {\n if (value && this.mode === 'update' && typeof this.getForm === 'function') {\n this.loading = true;\n this.getForm()\n .then(({ data }: { data: any }) => {\n this.$emit('beforeFormPopulation', data);\n this.form.setFields(data);\n this.$emit('afterFormPopulation', data);\n })\n .finally(() => {\n this.loading = false;\n });\n } else {\n this.form?.reset && this.form.reset();\n }\n }\n\n async onSubmit(\n params?: CrsAction extends { params: any }\n ? { [K in CrsAction['params'][number]]: unknown }\n : undefined,\n options?: { lang?: string /* currency?: string*/ },\n ) {\n if ((this as any).preSubmit) {\n await (this as any).preSubmit();\n }\n this.loading = true;\n this.form\n .submit({ params, lang: options?.lang /* currency: options?.currency */ })\n .then((res: any) => {\n this.$emit('update-data', res.data);\n this.openSync = false;\n })\n .finally(() => (this.loading = false));\n }\n}\n","import Vue from 'vue';\nimport { Component } from 'vue-property-decorator';\n\n@Component\nexport default class TableMixin extends Vue {\n $refs!: {\n table: Vue & {\n refresh: () => void;\n };\n };\n\n modal = {\n open: false,\n id: '',\n };\n\n openModal(id = '') {\n this.modal.id = id;\n this.modal.open = true;\n }\n\n onUpdateData() {\n this.modal.open = false;\n this.$refs.table.refresh();\n }\n}\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('layout',{attrs:{\"name\":\"default\"}},[_c('PostToIntegrationModal',{attrs:{\"id\":_vm.modal.id,\"open\":_vm.modal.open},on:{\"update:open\":function($event){return _vm.$set(_vm.modal, \"open\", $event)},\"update-data\":function($event){return _vm.onUpdateData()}}}),_c('toolbar'),_c('q-data-table',{ref:\"table\",staticClass:\"q-px-md\",attrs:{\"columns\":_vm.columns,\"filters\":_vm.filters,\"query\":_vm.query,\"action\":\"find\",\"namespace\":\"orders\"},scopedSlots:_vm._u([{key:\"top-right\",fn:function(){return [_c('q-btn',{attrs:{\"color\":\"blue\",\"icon\":\"mdi-cancel\",\"label\":\"Clean Filters\",\"flat\":\"\",\"no-caps\":\"\"},on:{\"click\":_vm.cleanFilters}}),_c('q-btn',{attrs:{\"color\":\"green\",\"icon-right\":\"mdi-file-excel\",\"label\":\"Excel\",\"no-caps\":\"\"},on:{\"click\":_vm.exportData}})]},proxy:true},{key:\"body-cell-tracking\",fn:function(props){return [_c('q-td',{attrs:{\"auto-width\":true,\"props\":props}},[(props.row.tracking && props.row.tracking.isActive)?[_c('q-icon',{attrs:{\"size\":\"24px\",\"color\":\"pink\",\"name\":\"mdi-alert-circle-check\"}})]:_vm._e()],2)]}},{key:\"body-cell-type\",fn:function(props){return [_c('q-td',{attrs:{\"auto-width\":true,\"props\":props}},[(props.row.type === 'NEW')?_c('div',{staticClass:\"text-positive\"},[_vm._v(\" \"+_vm._s(_vm.$t('GENERAL.NEW'))+\" \")]):(props.row.type === 'CHANGE')?_c('div',{staticClass:\"text-orange\"},[_vm._v(\" \"+_vm._s(_vm.$t('GENERAL.CHANGED'))+\" \")]):(props.row.type === 'CANCEL')?_c('div',{staticClass:\"text-negative\"},[_vm._v(\" \"+_vm._s(_vm.$t('GENERAL.CANCELLED'))+\" \")]):_vm._e()])]}},{key:\"body-cell-orderNumber\",fn:function(props){return [_c('q-td',{attrs:{\"auto-width\":true,\"props\":props}},[_c('q-badge',{attrs:{\"color\":_vm.getTypeColor(props.row.type)}},[_vm._v(\" \"+_vm._s(props.row.orderNumber)+\" \")])],1)]}},{key:\"body-cell-products\",fn:function(props){return [_c('q-td',{attrs:{\"auto-width\":true,\"props\":props}},_vm._l((props.row.products),function(product){return _c('div',{key:product.id},[_c('q-badge',{staticStyle:{\"font-size\":\"10px\"}},[_vm._v(\" \"+_vm._s(_vm.$tc('GENERAL.' + product.type))+\" : \"+_vm._s(_vm.getProductName(product))+\" \")])],1)}),0)]}},{key:\"body-cell-agent\",fn:function(props){return [_c('q-td',{attrs:{\"auto-width\":true,\"props\":props}},[(props.row.isOnlineBooking)?_c('q-badge',{attrs:{\"color\":\"green\"}},[_vm._v(\"Online\")]):(props.row.agent)?_c('div',{attrs:{\"color\":\"green\"}},[_vm._v(\" \"+_vm._s(((props.row.agent.name) + \" \" + (props.row.agent.surname)))+\" \")]):_vm._e()],1)]}},{key:\"body-cell-payments\",fn:function(props){return [_c('q-td',{attrs:{\"auto-width\":true,\"props\":props}},[_vm._l((props.row.payments),function(payment){return [(!payment.isCanceled)?_c('div',{key:payment.id},[_c('q-badge',{staticStyle:{\"font-size\":\"10px\"},attrs:{\"color\":_vm.getPaymentColor(payment.status)}},[_vm._v(\" \"+_vm._s(_vm.$tc('GENERAL.' + payment.type))+\" : \"+_vm._s(payment.amount)+_vm._s(payment.currency)+\" \")])],1):_vm._e()]}),_vm._l((props.row.balancePayments),function(payment){return [_c('div',{key:payment.id,staticStyle:{\"cursor\":\"pointer\"}},[_c('q-badge',{staticStyle:{\"font-size\":\"10px\"},attrs:{\"color\":\"primary\"}},[_vm._v(\" \"+_vm._s(_vm.$t('GENERAL.BALANCE_PAYMENT') /* TODO: Change translate with payment promise */)+\" : \"+_vm._s(payment.amount.toFixed(1))+_vm._s(payment.currency)+\" \")])],1)]}),_vm._l((props.row.specialDiscounts),function(payment){return [_c('div',{key:payment.id},[_c('q-badge',{staticStyle:{\"font-size\":\"10px\"},attrs:{\"color\":\"blue\"}},[_vm._v(\" \"+_vm._s(_vm.$t('GENERAL.SPECIAL_DISCOUNT'))+\" : \"+_vm._s(payment.amount.toFixed(1))+_vm._s(payment.currency)+\" \")])],1)]})],2)]}},{key:\"body-cell-confirmationStatus\",fn:function(props){return [_c('q-td',{attrs:{\"auto-width\":true}},[_c('q-select',{staticStyle:{\"font-size\":\"12px\"},attrs:{\"map-options\":\"\",\"emit-value\":\"\",\"outlined\":\"\",\"dense\":\"\",\"value\":props.row.confirmationStatus,\"options\":_vm.statusOptions},on:{\"input\":function($event){return _vm.onStatusChange(props.row.id, $event)}}})],1)]}},{key:\"body-cell-actions\",fn:function(props){return [_c('q-td',{attrs:{\"auto-width\":true,\"props\":props}},[_c('q-btn-group',[_c('q-btn',{attrs:{\"icon\":\"mdi-mail\",\"color\":\"blue-6\",\"label\":_vm.$t('GENERAL.EMAIL'),\"size\":\"12px\",\"no-wrap\":\"\",\"no-caps\":\"\"},on:{\"click\":function($event){return _vm.sendEmail(props.row.id)}}}),_c('q-btn',{attrs:{\"outline\":\"\",\"icon\":\"mdi-mail\",\"color\":\"blue-8\",\"label\":\"API\",\"size\":\"12px\",\"no-wrap\":\"\",\"no-caps\":\"\"},on:{\"click\":function($event){return _vm.openModal(props.row.id)}}})],1)],1)]}},{key:\"body-cell-hasPostedTo\",fn:function(props){return [_c('q-td',{attrs:{\"auto-width\":true,\"props\":props}},[_vm._l((props.row.hasPostedTo),function(posted){return [_c('div',{key:posted},[_c('q-badge',{staticStyle:{\"font-size\":\"10px\"},attrs:{\"color\":posted.includes('CANCEL') ? 'red' : 'green'}},[_vm._v(\" \"+_vm._s(posted)+\" \")])],1)]}),_vm._l((_vm.getNotPosted(props.row.hasPostedTo)),function(posted){return [_c('div',{key:posted},[_c('q-badge',{staticStyle:{\"font-size\":\"10px\"},attrs:{\"color\":\"grey\"}},[_vm._v(\" \"+_vm._s(posted)+\" \")])],1)]})],2)]}}])}),_c('q-inner-loading',{attrs:{\"dark\":\"\",\"showing\":_vm.loading}},[_c('q-spinner-gears',{attrs:{\"color\":\"primary\",\"size\":\"50px\"}})],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('entity-modal',{attrs:{\"loading\":_vm.loading,\"open\":_vm.openSync,\"content-style\":\"max-width: 600px; width: 100%;\"},on:{\"update:open\":function($event){_vm.openSync=$event},\"submit\":function($event){return _vm.onSubmit({ orderId: _vm.id })},\"open:update\":function($event){_vm.openSync = $event}}},[_c('div',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(_vm._s(_vm.$t('GENERAL.INTEGRATIONS')))]),_c('q-form',{attrs:{\"autocapitalize\":\"off\",\"autocomplete\":\"off\",\"autocorrect\":\"off\",\"spellcheck\":\"false\"}},[_c('div',{staticClass:\"row q-col-gutter-x-md\"},[(_vm.order && _vm.order.hasPostedTo && _vm.order.hasPostedTo.length)?_c('div',{staticClass:\"col-12\"},_vm._l((_vm.order.hasPostedTo),function(integration,i){return _c('div',{key:i,staticClass:\"col-12\"},[_c('q-badge',{staticClass:\"col-12\",attrs:{\"color\":\"green\"}},[_vm._v(\" \"+_vm._s(integration)+\" \")])],1)}),0):_vm._e(),_c('q-select',{staticClass:\"col\",attrs:{\"loading\":_vm.loading,\"dense\":\"\",\"emit-value\":\"\",\"map-options\":\"\",\"multiple\":\"\",\"options\":_vm.providerOptions},model:{value:(_vm.form.fields.providers),callback:function ($$v) {_vm.$set(_vm.form.fields, \"providers\", $$v)},expression:\"form.fields.providers\"}})],1)])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport ModalMixin from '@/mixins/modal.mixin';\nimport { CrsForm } from '@resclick/crs-ui';\nimport { compass } from '@resclick/compass';\nimport { Component, Mixins, Watch } from 'vue-property-decorator';\nimport { IOrder } from '@resclick/data-access';\nimport { ALLOWED_INTEGRATION_PROVIDERS_FOR_CONFIORMATION } from '@resclick/data-access';\nimport { Getter } from 'vuex-class';\n\n@Component\nexport default class OrderCancellationModal extends Mixins(ModalMixin) {\n @Getter('user/defaultCurrency') currency!: string;\n form: CrsForm<'integrations', 'postToIntegration'> = this.$crsForm('integrations', 'postToIntegration', {\n providers: [],\n });\n order: IOrder = {} as IOrder;\n\n selectedProvider = {\n label: '',\n value: '',\n };\n\n get providerOptions() {\n return ALLOWED_INTEGRATION_PROVIDERS_FOR_CONFIORMATION.map((value: string) => {\n return {\n value,\n label: value.charAt(0).toUpperCase() + value.slice(1),\n };\n });\n }\n\n @Watch('open')\n onInit(isOpen: boolean) {\n if (isOpen) {\n compass\n .do('orders', 'findOne', {\n params: { orderId: this.id },\n select: ['hasPostedTo'],\n })\n .then((res) => {\n this.order = res.data;\n });\n } else {\n this.order = {} as IOrder;\n }\n }\n}\n","import mod from \"-!../../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/babel-loader/lib/index.js!../../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/ts-loader/index.js??ref--15-3!../../../../../../node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./post-to-integration.modal.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/babel-loader/lib/index.js!../../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/ts-loader/index.js??ref--15-3!../../../../../../node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./post-to-integration.modal.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./post-to-integration.modal.vue?vue&type=template&id=561573b9&\"\nimport script from \"./post-to-integration.modal.vue?vue&type=script&lang=ts&\"\nexport * from \"./post-to-integration.modal.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/cli-service/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","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { IProductType, PROPERTY_TYPES } from '@resclick/data-access';\nimport { Component, Mixins, Watch } from 'vue-property-decorator';\nimport TableMixin from '@/mixins/table.mixin';\nimport { Getter } from 'vuex-class';\nimport moment from 'moment';\nimport { i18n } from '@/i18n';\nimport { ALLOWED_INTEGRATION_PROVIDERS_FOR_CONFIORMATION } from '@resclick/data-access';\nimport PostToIntegrationModal from './post-to-integration.modal.vue';\nimport { compass } from '@resclick/compass';\n\n@Component({\n components: {\n PostToIntegrationModal,\n },\n})\nexport default class ConfirmationTrackingShell extends Mixins(TableMixin) {\n @Getter('user/defaultCurrency') currency!: string;\n @Getter('user/ownedPermissions') permissions!: string;\n\n loading = false;\n\n providers = ALLOWED_INTEGRATION_PROVIDERS_FOR_CONFIORMATION;\n\n get columns() {\n return [\n { label: '#', name: 'orderNumber', sortable: true, align: 'center' },\n {\n label: 'GENERAL.CUSTOMER',\n name: 'customer',\n sortable: true,\n field: (row: any) => `${row.customer?.name || ''} ${row.customer?.surname || ''}`,\n },\n {\n label: 'GENERAL.PRODUCTS',\n name: 'products',\n sortable: true,\n field: (row: any) =>\n row.products?.map((product: IProductType) => {\n if (PROPERTY_TYPES.includes(product.type as any)) {\n return (product as any).property?.name;\n }\n }),\n },\n {\n label: 'GENERAL.AGENT',\n name: 'agent',\n sortable: true,\n field: (row: any) => (row.isOnlineBooking ? 'ONLINE' : `${row.agent?.name} ${row.agent?.surname}`),\n },\n {\n label: 'GENERAL.BOOKING_DATE',\n name: 'bookingDate',\n sortable: true,\n style: 'width:1px',\n align: 'center',\n field: (row: any) => row.bookingDate && moment(row.bookingDate).format('DD/MM/YYYY HH:mm'),\n },\n {\n label: 'GENERAL.CHECK_IN',\n name: 'checkInDate',\n sortable: true,\n style: 'width:1px',\n align: 'center',\n field: (row: any) => {\n const { checkInDate } = row.products.find((product: any) => product.productCategory === 'PROPERTY') || {};\n return checkInDate ? moment(checkInDate).format('DD/MM/YYYY') : '';\n },\n },\n {\n label: 'GENERAL.CHECK_OUT',\n name: 'checkOutDate',\n sortable: true,\n style: 'width:1px',\n align: 'center',\n field: (row: any) => {\n const { checkOutDate } = row.products.find((product: any) => product.productCategory === 'PROPERTY') || {};\n return checkOutDate ? moment(checkOutDate).format('DD/MM/YYYY') : '';\n },\n },\n {\n label: 'GENERAL.COMPANY',\n name: 'company',\n sortable: true,\n field: (row: any) => row.company?.name,\n },\n {\n label: 'Buyer',\n name: 'buyer',\n sortable: true,\n field: (row: any) => row.buyer?.name,\n },\n {\n label: 'GENERAL.SALES_AMOUNT',\n name: 'total',\n sortable: true,\n align: 'center',\n style: 'width:1px',\n field: (row: any) => {\n let value = row.calculations?.total?.value || 0;\n return `${this.$formatMoney(value)} ${row.calculations?.total?.currency || ''}`;\n },\n },\n {\n label: 'GENERAL.COST',\n name: 'totalCost',\n style: 'width:1px',\n sortable: true,\n field: (row: any) => `${this.$formatMoney(row.totalCost.value || 0)} ${row.totalCost?.currency || ''}`,\n },\n {\n label: 'GENERAL.PROFIT',\n name: 'profit',\n style: 'width:1px; text-align: center',\n sortable: true,\n field: (row: any) => {\n const cost = row.totalCost.value;\n const total = row.calculations?.total?.value;\n\n // const percent = ((total - cost) / cost) * 100;\n const percent = (cost / total - 1) * -100;\n\n return `${percent.toFixed(2)} %`;\n },\n },\n { label: 'Tracking', name: 'tracking', sortable: true, align: 'center' },\n { label: 'GENERAL.PAYMENTS', name: 'payments', sortable: true },\n\n {\n label: 'GENERAL.TYPE',\n name: 'type',\n sortable: true,\n align: 'center',\n },\n\n {\n label: 'GENERAL.STATUS',\n name: 'confirmationStatus',\n sortable: true,\n align: 'center',\n },\n { label: 'GENERAL.PAYMENTS', name: 'hasPostedTo', sortable: true },\n { label: 'GENERAL.ACTIONS', name: 'actions', align: 'center' },\n ];\n }\n\n filters = [\n { label: this.$i18n.t('GENERAL.VOUCHER'), type: 'number', fieldName: 'orderNumber' },\n {\n label: this.$i18n.t('GENERAL.TYPE'),\n type: 'select',\n value: [],\n useChips: true,\n multiple: true,\n fieldName: 'type',\n options: [\n { label: 'New', value: 'NEW' },\n { label: 'Cancel', value: 'CANCEL' },\n { label: 'Change', value: 'CHANGE' },\n ],\n },\n\n {\n label: this.$i18n.t('GENERAL.BOOKING_DATE'),\n type: 'date-range',\n value: { start: new Date(), end: new Date() },\n fieldName: 'bookingDate',\n },\n { label: this.$i18n.t('GENERAL.CUSTOMER'), type: 'text', value: '', fieldName: 'customerName' },\n { label: this.$i18n.t('GENERAL.HOTEL'), type: 'text', value: '', fieldName: 'hotelName' },\n {\n label: this.$i18n.t('GENERAL.CHECK_IN'),\n type: 'date-range',\n value: { start: '', end: '' },\n fieldName: 'products.checkInDate',\n },\n {\n label: this.$i18n.t('GENERAL.CHECK_OUT'),\n type: 'date-range',\n value: { start: '', end: '' },\n fieldName: 'products.checkOutDate',\n },\n // { label: this.$i18n.t('GENERAL.AGENT'), type: 'text', value: '', fieldName: 'agentName' },\n\n /*\n {\n label: this.$i18n.t('GENERAL.ACCOMMODATION_DATE'),\n type: 'date-range',\n value: { start: new Date(), end: new Date('20.12.1987') },\n },\n */\n {\n label: this.$i18n.t('GENERAL.COMPANY'),\n type: 'selectDynamic',\n value: [],\n optionName: 'name',\n optionValue: 'id',\n useChips: true,\n multiple: true,\n fieldName: 'company',\n namespace: 'companies',\n action: 'find',\n },\n {\n label: this.$i18n.t('Buyer'),\n type: 'selectDynamic',\n value: [],\n optionName: 'name',\n optionValue: 'id',\n useChips: true,\n multiple: true,\n fieldName: 'buyer',\n namespace: 'companies',\n action: 'find',\n },\n\n {\n label: this.$i18n.t('GENERAL.STATUS'),\n type: 'select',\n value: [],\n useChips: true,\n multiple: true,\n options: this.statusOptions,\n fieldName: 'confirmationStatus',\n },\n {\n label: this.$i18n.t('GENERAL.SENT'),\n type: 'select',\n value: [],\n useChips: true,\n multiple: true,\n options: this.providers.map((value: string) => {\n return {\n label: value.charAt(0).toUpperCase() + value.slice(1).toLowerCase(),\n value,\n };\n }),\n fieldName: 'hasPostedTo',\n },\n\n {\n label: 'Tracking Status',\n type: 'select',\n fieldName: 'tracking.isActive',\n value: [],\n options: [\n { label: 'All', value: [] },\n { label: 'Not Tracking', value: false },\n { label: 'Only Tracking', value: true },\n ],\n },\n\n /*\n {\n label: this.$i18n.t('GENERAL.ACCOMMODATION_DATE'),\n type: 'date-range',\n value: { start: new Date(), end: new Date('20.12.1987') },\n },\n {\n label: this.$i18n.t('GENERAL.STATUS'),\n type: 'select',\n value: [],\n useChips: true,\n multiple: true,\n options: [\n { label: 'Ödeme Bekleniyor', value: 'Booking' },\n { label: 'Sipariş', value: 'Siparis' },\n { label: 'İptal', value: 'ipatal' },\n ],\n },\n */\n ];\n\n get query() {\n return {\n populate: [\n { path: 'customer', select: ['name', 'surname'] },\n { path: 'agent', select: ['name', 'surname'] },\n { path: 'products.property', select: ['name'] },\n { path: 'payments' },\n { path: 'company', select: ['name'] },\n { path: 'buyer', select: ['name'] },\n { path: 'payments' },\n { path: 'balancePayments' },\n { path: 'specialDiscounts' },\n ],\n select: ['+calculations'],\n sort: { orderNumber: 'desc' },\n //currency: this.currency,\n };\n }\n\n get statusOptions() {\n return [\n {\n label: i18n.t('GENERAL.NOT_SENT'),\n value: 'PENDING',\n },\n {\n label: i18n.t('GENERAL.SENT'),\n value: 'SENT',\n },\n {\n label: i18n.t('GENERAL.WAITLIST'),\n value: 'WAITLIST',\n },\n {\n label: i18n.t('GENERAL.CONFIRMED'),\n value: 'CONFIRMED',\n },\n {\n label: i18n.t('GENERAL.NOT_CONFIRMED'),\n value: 'NOT_CONFIRMED',\n },\n {\n label: i18n.t('GENERAL.RIGHT_RESERVED'),\n value: 'RIGHT_RESERVED',\n },\n ];\n }\n\n onStatusChange(orderId: string, status: string) {\n this.loading = true;\n compass\n .do('orders', 'update', {\n params: {\n orderId,\n },\n data: {\n confirmationStatus: status,\n },\n })\n .then(() => {\n this.$q.notify({\n message: i18n.t('MESSAGE.OPERATION_SUCCESSFUL') as string,\n color: 'positive',\n });\n })\n .catch(() => {\n this.$q.notify({\n message: i18n.t('MESSAGE.OPERATION_FAIL') as string,\n color: 'negative',\n });\n })\n .finally(() => {\n this.$refs.table.refresh();\n this.loading = false;\n });\n }\n\n getTypeColor(type: string) {\n switch (type) {\n case 'NEW': {\n return 'positive';\n }\n case 'CHANGE': {\n return 'orange';\n }\n case 'CANCEL': {\n return 'negative';\n }\n }\n }\n\n getPaymentColor(status: string) {\n if (status === 'PENDING') {\n return 'orange';\n } else if (status === 'ACCEPTED') {\n return 'positive';\n } else if (status === 'REJECTED') {\n return 'negative';\n } else {\n return 'primary';\n }\n }\n\n getProductName(product: IProductType) {\n if (PROPERTY_TYPES.includes(product.type as any)) {\n return (product as any).property?.name;\n }\n }\n\n sendEmail(orderId: string) {\n this.loading = true;\n compass\n .do('orders', 'sendConfirmation', {\n params: { orderId },\n })\n .then(() => {\n this.$q.notify({\n message: i18n.t('MESSAGE.OPERATION_SUCCESSFUL') as string,\n color: 'positive',\n });\n })\n .catch(() => {\n this.$q.notify({\n message: i18n.t('MESSAGE.OPERATION_FAIL') as string,\n color: 'negative',\n });\n })\n .finally(() => {\n this.$refs.table.refresh();\n this.loading = false;\n });\n }\n\n @Watch('query.currency')\n onCurrencyChange() {\n this.$nextTick(() => {\n this.$refs.table.refresh();\n });\n }\n\n getNotPosted(posted: string[]) {\n return this.providers.filter((val: string) => !posted.includes(val));\n }\n\n exportData() {\n const translatedColumns = this.columns.map((c) => {\n return {\n ...c,\n label: i18n.t(c.label),\n };\n });\n // @ts-ignore\n this.$refs.table.exportTable(translatedColumns);\n }\n\n cleanFilters() {\n this.filters = this.filters.map((f: any) => {\n switch (f.type) {\n case 'number':\n f.value = null;\n return f;\n case 'string':\n f.value = '';\n return f;\n case 'date-range':\n f.value = { start: '', end: '' };\n return f;\n case 'date':\n f.value = { start: '', end: '' };\n return f;\n default:\n return f;\n }\n });\n }\n}\n","import mod from \"-!../../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/babel-loader/lib/index.js!../../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/ts-loader/index.js??ref--15-3!../../../../../../node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./confirmation-tracking.shell.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/babel-loader/lib/index.js!../../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/ts-loader/index.js??ref--15-3!../../../../../../node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./confirmation-tracking.shell.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./confirmation-tracking.shell.vue?vue&type=template&id=8f29d904&scoped=true&\"\nimport script from \"./confirmation-tracking.shell.vue?vue&type=script&lang=ts&\"\nexport * from \"./confirmation-tracking.shell.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"8f29d904\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}