{"version":3,"sources":["webpack:///./src/components/dashboard-tile/KPIMobileTile.vue?86c6","webpack:///./src/components/dashboard-tile/KPIBigMobileTile.vue?59c8","webpack:///./src/shared/sharedFunctionsForHome.ts","webpack:///./src/views/HomeMobile.vue?ab2c","webpack:///./src/views/HomeMobile.vue?6501","webpack:///./src/components/dashboard-tile/KPIMobileTile.vue?b702","webpack:///./src/components/dashboard-tile/KPIMobileTile.vue","webpack:///./src/components/dashboard-tile/KPIMobileTile.vue?1612","webpack:///./src/components/dashboard-tile/KPIMobileTile.vue?ba1e","webpack:///./src/components/dashboard-tile/KPIBigMobileTile.vue?3c99","webpack:///./src/components/dashboard-tile/KPIBigMobileTile.vue","webpack:///./src/components/dashboard-tile/KPIBigMobileTile.vue?8c23","webpack:///./src/components/dashboard-tile/KPIBigMobileTile.vue?77a5","webpack:///./src/views/HomeMobile.vue","webpack:///./src/views/HomeMobile.vue?b032","webpack:///./src/views/HomeMobile.vue?c5ae"],"names":["mobileDesktopSharedFunctionsHome","vm","getOccupancies","occupancy","axios","get","endpoint","params","filter","date","res","data","getCount","additionalFilters","$skip","$top","$count","count","getReservationsAdditionalInfo","render","_vm","this","_h","$createElement","_c","_self","staticClass","isMaintenanceTeam","attrs","maintenance","arrivals","on","$event","moveTo","source","departures","general","allowedReservationsKPI","_e","percentage","reservations","isDarkTheme","stays","total","staticRenderFns","color","$emit","columnWidth","class","sm","$vuetify","breakpoint","smAndDown","_v","_s","$t","title","countIsPercentage","_t","moveIconUp","icon","default","component","VAvatar","VCard","VCardText","VCol","VIcon","VProgressLinear","VRow","headerColor","totalCountText","newAdditionalInfo","workingCurrency","allowedPrices","$n","totalPrice","style","currency","isoCode","currencyDisplay","totalPriceOfConfirmed","isReservation","modifiedOrInProgress","modifiedOrInProgressCount","modifiedAdditionalInfo","canceledOrCompleted","canceledOrCompletedCount","canceledAdditionalInfo","theme","dark","claims","countOfReservations","modifiedTotal","reservationsTotalUpcoming","totalUpcoming","canceledTotal","reservationsTotalCompleted","totalCompleted","reservationsTotal","location","endpointTitle","endsWith","slice","$router","push","name","VSpacer","dialog","settings","Today","newEndpoint","modifiedEndpoint","canceledEndpoint","fresh","updateFilters","OnDate","Date","toISODate","currencies","length","refreshCurrencies","queryParams","query","getData","getMaintenance","then","x","Math","round","Number","EPSILON","getAdditionalInfo","countOfReservationUnits","getCountCompleted","old","type","totalReservationsUnits","completedReservationsUnits","upcomingReservationsUnits","totalReservations","completedReservations","upcomingReservations","sharedFunctions","currentDay","immediate","components","KPIMobileTile","KPIBigMobileTile","RequireRole","mixins","GlobalFilterSensitiveMixin"],"mappings":"8GAAA,W,2DCAA,W,gICEM,SAAUA,EAAiCC,GAE/C,MAAO,CAELC,eAAgB,WAAF,8CAAE,WAAOC,GAAP,uGACIF,EAAGG,MAAMC,IAAYF,EAAUG,SAAW,UAAW,CAACC,OAAQ,CAC9EC,OAAQL,EAAUK,OAAOA,OACzBC,KAAMN,EAAUK,OAAOC,QAHX,cACRC,EADQ,yBAMPA,EAAIC,MANG,2CAAF,sDAAE,GAShBC,SAAU,WAAF,8CAAE,WAAON,EAAkBE,GAAzB,kGACFK,EADE,OACkBL,QADlB,IACkBA,IAAU,GAD5B,SAEUP,EAAGG,MAAMC,IAAoBC,EAAU,CACvDC,OAAQ,gBACNO,MAAO,EACPC,KAAM,EACNC,QAAQ,GACLH,KAPC,cAEFH,EAFE,mCAWDA,EAAIC,KAAKM,aAXR,QAWiB,GAXjB,2CAAF,wDAAE,GAcVC,8BAA+B,WAAF,8CAAE,WAAOZ,EAAkBE,GAAzB,yGACXP,EAAGG,MAAMC,IAASC,EAAU,CAC5CC,OAAQ,gBACNO,MAAO,EACPC,KAAM,EACNC,QAAQ,GACLR,KANsB,cACvBE,EADuB,mCAStBA,EAAIC,YATkB,QASV,MATU,2CAAF,wDAAE,M,qCC7BnC,W,wFCAA,IAAIQ,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF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F,EAAIC,KAAKiI,kBAClCJ,EAAKvC,2BAA6BvF,EAAIC,KAAKkI,sBAC3CL,EAAK1C,0BAA4BpF,EAAIC,KAAKmI,qBAjB5C,2CAxMa,yIA4Nb,WAAexI,EAAkBE,GAAjC,iGACea,KAAK0H,gBAAgBnI,SAASN,EAAUE,GADvD,wFA5Na,iJAgOb,8GACea,KAAK0H,gBAAgB7I,eAAemB,KAAKlB,WADxD,wFAhOa,iJAoOb,WAAwBG,EAAkBE,GAA1C,iGACea,KAAK0H,gBAAgB7H,8BAChCZ,EACAE,GAHJ,wFApOa,iJA2Ob,sHACe,OAAIJ,MAAMC,IACrB,+BACA,CACEE,OAAQ,CACNC,OAAQ,OAAoB4G,OAC5B3G,KAAM,IAAI4G,KAAJ,oBAAShG,KAAK2H,kBAAd,aAAS,EAAiB1B,mBAA1B,QAAyC,OANvD,wFA3Oa,8DAAyB,QACP,gBAA9B,eAAO,wB,iCAGR,gBADC,eAAM,aAAc,CAAE2B,WAAW,K,6BAQjC,MAEsB,gBAAtB,eAAO,gB,6BAUR,gBADC,eAAO,gC,wCAEwB,gBAA/B,eAAO,yB,iCAC6B,gBAApC,eAAO,8B,sCAyKR,gBADC,eAAM,iB,kCAKN,MAtMkB,EAAU,gBAR9B,eAAU,CACTC,WAAY,CACVC,cAAA,EACAC,iBAAA,EACAC,cAAA,MAEFC,OAAQ,CAACC,EAAA,SAEU,WCjJgX,ICQjY,G,WAAY,eACd,EACApI,EACAyB,GACA,EACA,KACA,WACA,OAIa,eAAiB,QAMhC,IAAkB,EAAW,CAACsB,OAAA,KAAKG,OAAA","file":"js/HomeMobile.47867754.js","sourcesContent":["export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./KPIMobileTile.vue?vue&type=style&index=0&id=8c72d9d6&scoped=true&lang=css&\"","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./KPIBigMobileTile.vue?vue&type=style&index=0&id=67f4345a&scoped=true&lang=scss&\"","import { ListModel } from \"./models/listModel\";\n\nexport function mobileDesktopSharedFunctionsHome(vm: Vue) { \n \n return {\n\n getOccupancies: async (occupancy: any) => {\n const res = await vm.axios.get(occupancy.endpoint + \"Summary\", {params: {\n filter: occupancy.filter.filter,\n date: occupancy.filter.date,\n }});\n\n return res.data;\n },\n\n getCount: async (endpoint: string, filter?: any) => {\n const additionalFilters = filter ?? {};\n const res = await vm.axios.get>(endpoint, {\n params: {\n $skip: 0,\n $top: 0,\n $count: true,\n ...additionalFilters,\n },\n });\n \n return res.data.count ?? 0;\n },\n\n getReservationsAdditionalInfo: async (endpoint: string, filter?: any) => {\n const res = await vm.axios.get(endpoint, {\n params: {\n $skip: 0,\n $top: 0,\n $count: true,\n ...filter\n }\n });\n return res.data ?? null;\n }\n };\n}","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./HomeMobile.vue?vue&type=style&index=0&id=2696e9d9&lang=scss&scoped=true&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"dashboard\"},[(!_vm.isMaintenanceTeam)?_c('v-row',{staticClass:\"custom-gutters\"},[_c('v-col',{staticClass:\"pa-0 custom-gutters\",attrs:{\"cols\":\"6\"}},[(!_vm.allowedReservationsKPI)?_c('RequireRole',{attrs:{\"policy\":\"ARRIVALS_KPI\"}},[_c('KPIBigMobileTile',{attrs:{\"title\":\"AllArrivals\",\"endpointTitle\":\"Dashboard.Arrivals.\",\"data\":_vm.arrivals,\"color\":'gray-1',\"headerColor\":'secondary',\"icon\":'fas fa-plane-arrival'}})],1):_vm._e(),_c('RequireRole',{attrs:{\"policy\":\"OCCUPANCY_KPI\"}},[_c('KPIMobileTile',{attrs:{\"title\":\"Dashboard.Occupancy\",\"count\":_vm.occupancy.percentage,\"countIsPercentage\":true,\"moveIconUp\":false,\"color\":'primary'},on:{\"click\":function($event){return _vm.moveTo('Dashboard.Occupancy')}}})],1),_c('RequireRole',{attrs:{\"policy\":\"RESERVATIONS_KPI\"}},[_c('KPIBigMobileTile',{attrs:{\"title\":\"Dashboard.Reservations.New\",\"data\":_vm.reservations,\"color\":_vm.isDarkTheme ? 'black' : 'white'}})],1),_c('RequireRole',{attrs:{\"policy\":\"CURRENT_STAYS_KPI\"}},[_c('KPIMobileTile',{attrs:{\"title\":\"Dashboard.CurrentStays\",\"count\":_vm.stays.total,\"countIsPercentage\":false,\"moveIconUp\":true,\"color\":'secondary',\"icon\":'far fa-building'},on:{\"click\":function($event){return _vm.moveTo('Dashboard.CurrentStays')}}})],1)],1),_c('v-col',{staticClass:\"pa-0 custom-gutters\",attrs:{\"cols\":\"6\"}},[(_vm.allowedReservationsKPI)?_c('RequireRole',{attrs:{\"policy\":\"ARRIVALS_KPI\"}},[_c('KPIBigMobileTile',{attrs:{\"title\":\"AllArrivals\",\"endpointTitle\":\"Dashboard.Arrivals.\",\"data\":_vm.arrivals,\"color\":'gray-1',\"headerColor\":'secondary',\"icon\":'fas fa-plane-arrival'}})],1):_vm._e(),_c('RequireRole',{attrs:{\"policy\":\"DEPARTURES_KPI\"}},[_c('KPIBigMobileTile',{attrs:{\"title\":\"AllDepartures\",\"endpointTitle\":\"Dashboard.Departures.\",\"data\":_vm.departures,\"color\":'gray-1',\"headerColor\":'primary',\"icon\":'fas fa-plane-departure'}})],1)],1)],1):_c('v-row',{staticClass:\"custom-gutters\"},[_c('v-col',{staticClass:\"pa-0 custom-gutters\",attrs:{\"cols\":\"12\"}},[_c('KPIMobileTile',{attrs:{\"title\":\"Dashboard.MaintenanceArrivals\",\"count\":_vm.maintenance.arrivals,\"countIsPercentage\":false,\"moveIconUp\":true,\"color\":'primary',\"icon\":'far fa-building'},on:{\"click\":function($event){return _vm.moveTo('Maintenance', { source: 'arrivals' })}}}),_c('KPIMobileTile',{attrs:{\"title\":\"Dashboard.MaintenanceDepartures\",\"count\":_vm.maintenance.departures,\"countIsPercentage\":false,\"moveIconUp\":true,\"color\":'secondary',\"icon\":'far fa-building'},on:{\"click\":function($event){return _vm.moveTo('Maintenance', { source: 'departures' })}}}),_c('KPIMobileTile',{attrs:{\"title\":\"Dashboard.MaintenanceGeneral\",\"count\":_vm.maintenance.general,\"countIsPercentage\":false,\"moveIconUp\":true,\"color\":'primary',\"icon\":'far fa-building'},on:{\"click\":function($event){return _vm.moveTo('Maintenance', { source: 'general' })}}})],1)],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('v-card',{attrs:{\"color\":_vm.color},on:{\"click\":function($event){return _vm.$emit('click')}}},[_c('v-card-text',{staticClass:\"content-wrapper white--text justify-space-between\"},[_c('v-row',[_c('v-col',{attrs:{\"cols\":_vm.columnWidth}},[_c('div',{staticClass:\"title-wrapper vertical\",class:{\n sm: _vm.$vuetify.breakpoint.smAndDown\n }},[_vm._v(\" \"+_vm._s(_vm.$t(_vm.title))+\" \")]),_c('div',{staticClass:\"value-wrapper\",class:{\n percentage: _vm.countIsPercentage,\n }},[_vm._v(\" \"+_vm._s(_vm.count)+_vm._s(_vm.countIsPercentage ? \"%\" : \"\")+\" \")]),(_vm.countIsPercentage)?_c('v-progress-linear',{staticClass:\"progress-bar\",attrs:{\"height\":\"10\",\"value\":_vm.count,\"color\":\"secondary\"}}):_vm._e(),_vm._t(\"default\")],2),(!_vm.countIsPercentage)?_c('v-col',{staticClass:\"d-flex align-center justify-end\",attrs:{\"cols\":_vm.columnWidth - 4}},[_c('v-avatar',{attrs:{\"size\":\"40\",\"color\":\"white\"}},[(_vm.icon)?_c('v-icon',{staticClass:\"icon\",class:{'icon-up': _vm.moveIconUp},attrs:{\"size\":\"20\",\"color\":_vm.color}},[_vm._v(_vm._s(_vm.icon))]):_vm._e()],1)],1):_vm._e()],1)],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\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Prop, Vue } from \"vue-property-decorator\";\n\n@Component\nexport default class KPIMobileTile extends Vue {\n @Prop() title?: string;\n @Prop({ default: null }) color?: string;\n\n @Prop({ default: null }) icon?: string;\n @Prop({ default: false }) moveIconUp?: boolean;\n @Prop({ default: false }) removeIconOnSmallScreen?: boolean;\n\n @Prop() count?: number;\n @Prop() countIsPercentage?: boolean;\n\n get columnWidth() {\n return this.countIsPercentage ? 12 : 8;\n }\n}\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./KPIMobileTile.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./KPIMobileTile.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./KPIMobileTile.vue?vue&type=template&id=8c72d9d6&scoped=true&\"\nimport script from \"./KPIMobileTile.vue?vue&type=script&lang=ts&\"\nexport * from \"./KPIMobileTile.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./KPIMobileTile.vue?vue&type=style&index=0&id=8c72d9d6&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"8c72d9d6\",\n null\n \n)\n\nexport default component.exports\n\n/* vuetify-loader */\nimport installComponents from \"!../../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VAvatar } from 'vuetify/lib/components/VAvatar';\nimport { VCard } from 'vuetify/lib/components/VCard';\nimport { VCardText } from 'vuetify/lib/components/VCard';\nimport { VCol } from 'vuetify/lib/components/VGrid';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VProgressLinear } from 'vuetify/lib/components/VProgressLinear';\nimport { VRow } from 'vuetify/lib/components/VGrid';\ninstallComponents(component, {VAvatar,VCard,VCardText,VCol,VIcon,VProgressLinear,VRow})\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-card',{attrs:{\"color\":_vm.color},on:{\"click\":function($event){return _vm.$emit('click')}}},[(_vm.icon !== null)?_c('div',{class:_vm.headerColor},[_c('v-row',{staticClass:\"right-tile-title\",attrs:{\"no-gutters\":\"\"},on:{\"click\":function($event){return _vm.moveTo(_vm.title)}}},[_c('v-col',{staticClass:\"pr-0\",attrs:{\"cols\":\"8\"}},[_c('div',{staticClass:\"title-wrapper vertical white--text\"},[_vm._v(\" \"+_vm._s(_vm.$t(_vm.title))+\" \")]),_c('div',{staticClass:\"value-wrapper white--text\"},[_vm._v(\" \"+_vm._s(_vm.totalCountText)+\" \")])]),_c('v-col',{staticClass:\"pl-0\",attrs:{\"cols\":\"4\"}},[_c('v-avatar',{attrs:{\"size\":\"40\",\"color\":\"white\"}},[_c('v-icon',{staticClass:\"icon\",attrs:{\"size\":\"16\",\"color\":_vm.headerColor}},[_vm._v(_vm._s(_vm.icon)+\" \")])],1)],1)],1)],1):_c('div',{staticClass:\"primary--text\"},[_c('div',{staticClass:\"wrapper pb-0\",on:{\"click\":function($event){return _vm.moveTo(_vm.title)}}},[_c('div',{staticClass:\"title-wrapper vertical\"},[_vm._v(\" \"+_vm._s(_vm.$t(_vm.title))+\" \")]),_c('div',{staticClass:\"value-wrapper sm\"},[_vm._v(\" \"+_vm._s(_vm.totalCountText)+\" \")]),(_vm.data.newAdditionalInfo && _vm.workingCurrency && _vm.allowedPrices)?_c('div',{staticClass:\"price-text\"},[_c('div',[_vm._v(\" \"+_vm._s(_vm.$n(_vm.data.newAdditionalInfo.totalPrice, { style: \"currency\", currency: _vm.workingCurrency.isoCode, currencyDisplay: \"code\", }))+\" \")]),_c('div',[_vm._v(\" (\"+_vm._s(_vm.$n(_vm.data.newAdditionalInfo.totalPriceOfConfirmed, { style: \"currency\", currency: _vm.workingCurrency.isoCode, currencyDisplay: \"code\", }))+\") \")])]):_vm._e()])]),_c('v-row',[_c('v-col',[_c('div',{staticClass:\"wrapper\",class:_vm.isReservation ? 'pb-0' : '',on:{\"click\":function($event){return _vm.moveTo(_vm.modifiedOrInProgress)}}},[_c('div',{staticClass:\"title-wrapper vertical warning--text\"},[_vm._v(\" \"+_vm._s(_vm.$t(_vm.modifiedOrInProgress))+\" \")]),_c('div',{staticClass:\"value-wrapper warning--text\",class:_vm.isReservation ? 'sm' : ''},[_vm._v(\" \"+_vm._s(_vm.modifiedOrInProgressCount)+\" \")]),(\n _vm.isReservation && _vm.data.modifiedAdditionalInfo && _vm.workingCurrency && _vm.allowedPrices\n )?_c('div',{staticClass:\"price-text warning--text\"},[_c('div',[_vm._v(\" \"+_vm._s(_vm.$n(_vm.data.modifiedAdditionalInfo.totalPrice, { style: \"currency\", currency: _vm.workingCurrency.isoCode, currencyDisplay: \"code\", }))+\" \")]),_c('div',[_vm._v(\" (\"+_vm._s(_vm.$n(_vm.data.modifiedAdditionalInfo.totalPriceOfConfirmed, { style: \"currency\", currency: _vm.workingCurrency.isoCode, currencyDisplay: \"code\", }))+\") \")])]):_vm._e()]),_c('v-spacer'),_c('div',{staticClass:\"wrapper\",on:{\"click\":function($event){return _vm.moveTo(_vm.canceledOrCompleted)}}},[_c('div',{class:{\n 'title-wrapper primary--text': !this.isReservation,\n 'title-wrapper secondary--text':\n this.isReservation && !_vm.isDarkTheme,\n 'title-wrapper white--text': this.isReservation && _vm.isDarkTheme,\n }},[_vm._v(\" \"+_vm._s(_vm.$t(_vm.canceledOrCompleted))+\" \")]),_c('div',{class:{\n 'value-wrapper primary--text': !this.isReservation,\n 'value-wrapper secondary--text':\n this.isReservation && !_vm.isDarkTheme,\n 'value-wrapper white--text': this.isReservation && _vm.isDarkTheme,\n sm: _vm.isReservation,\n }},[_vm._v(\" \"+_vm._s(_vm.canceledOrCompletedCount)+\" \")]),(\n _vm.isReservation && _vm.data.canceledAdditionalInfo && _vm.workingCurrency && _vm.allowedPrices\n )?_c('div',{staticClass:\"price-text\",class:!_vm.isDarkTheme ? 'secondary--text' : 'white--text'},[_c('div',[_vm._v(\" \"+_vm._s(_vm.$n(_vm.data.canceledAdditionalInfo.totalPrice, { style: \"currency\", currency: _vm.workingCurrency.isoCode, currencyDisplay: \"code\", }))+\" \")]),_c('div',[_vm._v(\" (\"+_vm._s(_vm.$n(_vm.data.canceledAdditionalInfo.totalPriceOfConfirmed, { style: \"currency\", currency: _vm.workingCurrency.isoCode, currencyDisplay: \"code\", }))+\") \")])]):_vm._e()])],1)],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\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 { Component, Prop, Vue } from \"vue-property-decorator\";\nimport { Getter } from \"vuex-class\";\nimport { Currency } from \"@/shared/models/currency\";\nimport { policyChecker } from \"@/shared/roles\";\nimport { JwtClaims } from \"@/store/modules/auth\";\n\n@Component\nexport default class KPIBigMobileTile extends Vue {\n @Prop() data?: any;\n @Prop({ default: null }) color?: string;\n @Prop() headerColor?: string;\n\n @Prop({ default: null }) icon?: string;\n @Prop() title?: string;\n @Prop() endpointTitle?: string;\n\n @Getter(\"appParams/workingCurrency\") workingCurrency?: Currency;\n\n @Getter(\"auth/claims\") claims?: JwtClaims;\n\n get isDarkTheme() {\n return this.$vuetify.theme.dark;\n }\n\n get isReservation() {\n return this.title === \"Dashboard.Reservations.New\";\n }\n\n get columnWidth() {\n return this.icon === null ? 12 : 8;\n }\n\n get modifiedOrInProgress() {\n return this.isReservation\n ? \"Dashboard.Reservations.Modified.Short\"\n : \"Pending\";\n }\n\n get canceledOrCompleted() {\n return this.isReservation\n ? \"Dashboard.Reservations.Canceled.Short\"\n : \"Done\";\n }\n\n get allowedPrices() {\n return policyChecker(\"ACTUAL_PRICES\")(this.claims) ||\n policyChecker(\"MODIFIED_PRICES\")(this.claims);\n }\n\n get modifiedOrInProgressCount() {\n if (!this.isReservation) {\n if (\n this.data.reservationsTotalUpcoming != null &&\n this.data.reservationsTotalUpcoming != this.data.totalUpcoming\n ) {\n return (\n this.data.reservationsTotalUpcoming +\n ` (${this.data.totalUpcoming})`\n );\n } else {\n return this.data.totalUpcoming;\n }\n }\n\n if (\n !this.data.modifiedAdditionalInfo ||\n this.data.modifiedAdditionalInfo.countOfReservations ===\n this.data.modifiedTotal\n ) {\n return this.data.modifiedTotal;\n }\n\n return (\n this.data.modifiedAdditionalInfo.countOfReservations +\n \" (\" +\n this.data.modifiedTotal +\n \")\"\n );\n }\n\n get canceledOrCompletedCount() {\n if (!this.isReservation) {\n if (\n this.data.reservationsTotalCompleted != null &&\n this.data.reservationsTotalCompleted != this.data.totalCompleted\n ) {\n return (\n this.data.reservationsTotalCompleted +\n ` (${this.data.totalCompleted})`\n );\n } else {\n return this.data.totalCompleted;\n }\n }\n\n if (\n !this.data.canceledAdditionalInfo ||\n this.data.canceledAdditionalInfo.countOfReservations ===\n this.data.canceledTotal\n ) {\n return this.data.canceledTotal;\n }\n\n return (\n this.data.canceledAdditionalInfo.countOfReservations +\n \" (\" +\n this.data.canceledTotal +\n \")\"\n );\n }\n\n get totalCountText() {\n if (!this.isReservation) {\n if (\n this.data.reservationsTotal != null &&\n this.data.reservationsTotal != this.data.total\n ) {\n return this.data.reservationsTotal + ` (${this.data.total})`;\n } else {\n return this.data.total;\n }\n }\n\n if (\n !this.data.newAdditionalInfo ||\n this.data.newAdditionalInfo.countOfReservations === this.data.total\n ) {\n return this.data.total;\n }\n\n return (\n this.data.newAdditionalInfo.countOfReservations +\n \" (\" +\n this.data.total +\n \")\"\n );\n }\n\n moveTo(location: string) {\n if (location === \"Pending\" || location === \"Done\") {\n location = this.endpointTitle + location;\n }\n if (location.endsWith(\".Short\")) {\n location = location.slice(0, -6);\n }\n this.$router.push({ name: location });\n }\n}\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./KPIBigMobileTile.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./KPIBigMobileTile.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./KPIBigMobileTile.vue?vue&type=template&id=67f4345a&scoped=true&\"\nimport script from \"./KPIBigMobileTile.vue?vue&type=script&lang=ts&\"\nexport * from \"./KPIBigMobileTile.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./KPIBigMobileTile.vue?vue&type=style&index=0&id=67f4345a&scoped=true&lang=scss&\"\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 \"67f4345a\",\n null\n \n)\n\nexport default component.exports\n\n/* vuetify-loader */\nimport installComponents from \"!../../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VAvatar } from 'vuetify/lib/components/VAvatar';\nimport { VCard } from 'vuetify/lib/components/VCard';\nimport { VCol } from 'vuetify/lib/components/VGrid';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VRow } from 'vuetify/lib/components/VGrid';\nimport { VSpacer } from 'vuetify/lib/components/VGrid';\ninstallComponents(component, {VAvatar,VCard,VCol,VIcon,VRow,VSpacer})\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 { Component, Vue, Watch } from \"vue-property-decorator\";\nimport GlobalFilterSensitiveMixin from \"@/mixins/GlobalFilterSensitiveMixin\";\nimport KPIMobileTile from \"@/components/dashboard-tile/KPIMobileTile.vue\";\nimport KPIBigMobileTile from \"@/components/dashboard-tile/KPIBigMobileTile.vue\";\nimport { DashboardPeriodEnum } from \"@/shared/models/enums.type\";\nimport { Getter, Action } from \"vuex-class\";\nimport { DateTime } from \"luxon\";\nimport { mobileDesktopSharedFunctionsHome } from \"@/shared/sharedFunctionsForHome\";\nimport {\n DashboardReservationsAdditionalInfo,\n DashboardArrivalsDeparturesKPISummaryViewModel,\n} from \"@/shared/models/vReservation\";\nimport { Currency } from \"@/shared/models/currency\";\nimport { JwtClaims } from \"@/store/modules/auth\";\nimport { policyChecker } from \"@/shared/roles\";\nimport { userIsPartOfMaintenanceTeam } from \"@/shared/roles\";\nimport { DashboardMaintenanceSummaryViewModel } from \"@/shared/maintenance\";\nimport { Dictionary } from \"vue-router/types/router\";\nimport RequireRole from \"@/components/misc/RequireRole.vue\";\n\n\n@Component({\n components: {\n KPIMobileTile,\n KPIBigMobileTile,\n RequireRole,\n },\n mixins: [GlobalFilterSensitiveMixin],\n})\nexport default class HomeMobile extends Vue {\n @Getter(\"calendar/currentDay\") currentDay?: DateTime;\n\n @Watch(\"currentDay\", { immediate: true })\n currentChanged(fresh: DateTime) {\n if (fresh) {\n this.updateFilters(\n DashboardPeriodEnum.OnDate,\n new Date(fresh.toISODate() ?? \"\")\n );\n }\n }\n\n @Getter(\"auth/claims\") claims?: JwtClaims;\n get isMaintenanceTeam() {\n return userIsPartOfMaintenanceTeam()(this.claims);\n }\n\n get isDarkTheme() {\n return this.$vuetify.theme.dark;\n }\n\n @Action(\"codebooks/refreshCurrencies\")\n refreshCurrencies?: () => Promise;\n @Getter(\"codebooks/currencies\") currencies?: Currency[];\n @Getter(\"appParams/workingCurrency\") workingCurrency?: Currency;\n async created() {\n if ((this.currencies?.length ?? 0) === 0 && this.refreshCurrencies) {\n this.refreshCurrencies();\n }\n }\n\n get allowedReservationsKPI() {\n return policyChecker(\"RESERVATIONS_KPI\")(this.claims);\n }\n\n sharedFunctions = mobileDesktopSharedFunctionsHome(this);\n\n moveTo(\n location: string,\n queryParams?: Dictionary\n ) {\n this.$router.push({ name: location, query: queryParams });\n }\n\n occupancy = {\n percentage: null as number | null,\n endpoint: \"dashboard/occupancy\",\n dialog: false,\n settings: false,\n filter: {\n filter: DashboardPeriodEnum.Today,\n date: null as Date | null,\n },\n };\n\n stays = {\n total: null as number | null,\n endpoint: \"dashboard/CurrentStays\",\n filter: {\n filter: DashboardPeriodEnum.Today,\n date: null as Date | null,\n },\n };\n\n maintenance = {\n arrivals: null as number | null,\n departures: null as number | null,\n general: null as number | null,\n } as DashboardMaintenanceSummaryViewModel;\n\n reservations = {\n total: null as number | null,\n newEndpoint: \"dashboard/NewReservations\",\n newAdditionalInfo: null as DashboardReservationsAdditionalInfo | null,\n modifiedTotal: null as number | null,\n modifiedEndpoint: \"dashboard/ModifiedReservations\",\n modifiedAdditionalInfo: null as DashboardReservationsAdditionalInfo | null,\n canceledTotal: null as number | null,\n canceledEndpoint: \"dashboard/CanceledReservations\",\n canceledAdditionalInfo: null as DashboardReservationsAdditionalInfo | null,\n filter: {\n filter: DashboardPeriodEnum.Today,\n date: null as Date | null,\n },\n };\n\n arrivals = {\n total: null as number | null,\n reservationsTotal: null as number | null,\n totalCompleted: null as number | null,\n reservationsTotalCompleted: null as number | null,\n totalUpcoming: null as number | null,\n reservationsTotalUpcoming: null as number | null,\n endpoint: \"dashboard/Arrivals\",\n filter: {\n filter: DashboardPeriodEnum.Today,\n date: null as Date | null,\n },\n };\n\n departures = {\n total: null as number | null,\n reservationsTotal: null as number | null,\n totalCompleted: null as number | null,\n reservationsTotalCompleted: null as number | null,\n totalUpcoming: null as number | null,\n reservationsTotalUpcoming: null as number | null,\n endpoint: \"dashboard/Departures\",\n filter: {\n filter: DashboardPeriodEnum.Today,\n date: null as Date | null,\n },\n };\n\n updateFilters(filter: DashboardPeriodEnum, date: Date) {\n this.occupancy.filter.filter = filter;\n this.occupancy.filter.date = date;\n\n this.reservations.filter.filter = filter;\n this.reservations.filter.date = date;\n\n this.arrivals.filter.filter = filter;\n this.arrivals.filter.date = date;\n\n this.departures.filter.filter = filter;\n this.departures.filter.date = date;\n\n this.stays.filter.filter = filter;\n this.stays.filter.date = date;\n\n this.getData();\n }\n\n getData() {\n if (this.isMaintenanceTeam) {\n this.getMaintenance().then((x) => {\n this.maintenance = x.data;\n });\n } else {\n this.getOccupancies().then(\n (x) =>\n (this.occupancy.percentage =\n Math.round((x * 100 + Number.EPSILON) * 100) / 100)\n );\n\n this.getCount(this.stays.endpoint, this.stays.filter).then(\n (x) => (this.stays.total = x)\n );\n\n this.getAdditionalInfo(\n this.reservations.newEndpoint + \"AdditionalInfo\",\n this.reservations.filter\n ).then((x) => {\n this.reservations.total = x.countOfReservationUnits;\n this.reservations.newAdditionalInfo = {\n countOfReservations: x.countOfReservations,\n totalPrice: x.totalPrice,\n totalPriceOfConfirmed: x.totalPriceOfConfirmed,\n } as DashboardReservationsAdditionalInfo;\n this.reservations.newAdditionalInfo = x;\n });\n\n this.getAdditionalInfo(\n this.reservations.modifiedEndpoint + \"AdditionalInfo\",\n this.reservations.filter\n ).then((x) => {\n this.reservations.modifiedTotal = x.countOfReservationUnits;\n this.reservations.modifiedAdditionalInfo = {\n countOfReservations: x.countOfReservations,\n totalPrice: x.totalPrice,\n totalPriceOfConfirmed: x.totalPriceOfConfirmed,\n } as DashboardReservationsAdditionalInfo;\n });\n\n this.getAdditionalInfo(\n this.reservations.canceledEndpoint + \"AdditionalInfo\",\n this.reservations.filter\n ).then((x) => {\n this.reservations.canceledTotal = x.countOfReservationUnits;\n this.reservations.canceledAdditionalInfo = {\n countOfReservations: x.countOfReservations,\n totalPrice: x.totalPrice,\n totalPriceOfConfirmed: x.totalPriceOfConfirmed,\n } as DashboardReservationsAdditionalInfo;\n });\n\n this.getCountCompleted(this.arrivals);\n\n this.getCountCompleted(this.departures);\n }\n }\n\n @Watch(\"sensitiveKey\")\n sensitiveKeyChanged(fresh: string, old: string) {\n if (fresh !== old) {\n this.getData();\n }\n }\n\n async getCountCompleted(type: any) {\n const res =\n await Vue.axios.get(\n type.endpoint + \"KPISummary\",\n {\n params: {\n filter: type.filter.filter,\n date: type.filter.date,\n },\n }\n );\n\n type.total = res.data.totalReservationsUnits;\n type.totalCompleted = res.data.completedReservationsUnits;\n type.totalUpcoming = res.data.upcomingReservationsUnits;\n type.reservationsTotal = res.data.totalReservations;\n type.reservationsTotalCompleted = res.data.completedReservations;\n type.reservationsTotalUpcoming = res.data.upcomingReservations;\n }\n\n async getCount(endpoint: string, filter?: any): Promise {\n return await this.sharedFunctions.getCount(endpoint, filter);\n }\n\n async getOccupancies(): Promise {\n return await this.sharedFunctions.getOccupancies(this.occupancy);\n }\n\n async getAdditionalInfo(endpoint: string, filter?: any): Promise {\n return await this.sharedFunctions.getReservationsAdditionalInfo(\n endpoint,\n filter\n );\n }\n\n async getMaintenance() {\n return await Vue.axios.get(\n \"dashboard/MaintenanceSummary\",\n {\n params: {\n filter: DashboardPeriodEnum.OnDate,\n date: new Date(this.currentDay?.toISODate() ?? \"\"),\n },\n }\n );\n }\n}\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./HomeMobile.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./HomeMobile.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./HomeMobile.vue?vue&type=template&id=2696e9d9&scoped=true&\"\nimport script from \"./HomeMobile.vue?vue&type=script&lang=ts&\"\nexport * from \"./HomeMobile.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./HomeMobile.vue?vue&type=style&index=0&id=2696e9d9&lang=scss&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 \"2696e9d9\",\n null\n \n)\n\nexport default component.exports\n\n/* vuetify-loader */\nimport installComponents from \"!../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VCol } from 'vuetify/lib/components/VGrid';\nimport { VRow } from 'vuetify/lib/components/VGrid';\ninstallComponents(component, {VCol,VRow})\n"],"sourceRoot":""}