{"version":3,"sources":["webpack:///./src/main.ts"],"names":["vue_1","tslib_1","__importDefault","require","App_vue_1","vue_router_1","bootstrap_vue_1","vue_simple_alert_1","Store_1","ChunkUploader_vue_1","ScreenLoader_vue_1","vue_cookie_law_1","vue_browser_detect_plugin_1","AutocompleteCustom_vue_1","vuelidate_1","vue_toastr_1","vue_inline_svg_1","moment_1","vue_simple_context_menu_1","General_1","i18n_setup_1","vue_select_1","vue_sidebar_menu_1","axios_1","vue_axios_1","LazyHome","resolve","module","default","LazyProductsSearch","LazyGaragesSearch","LazyDocumentsSearch","LazyLogin","LazyDocumentsZipUploader","LazyProductSpecsUploader","LazyMaterialsSearch","LazyCqc","LazyGroupsSearch","LazyVehiclesSearch","LazyCommunications","LazyCommunicationsCategories","LazyUserManagement","LazyDocumentationDownload","LazyNet20CustomersSearch","LazyNet20WelcomeKitDeliveryInfoUploader","LazyNet20ReportContractRenewals","LazyMateriaInfoUploader","LazyNet20UsersMatrixManagement","LazyNet20Geolocator","LazyPpePlansSearch","LazyPpeUsersMatrixManagement","LazyMerchandisingReport","LazyCapitolatiSearch","LazyContenitoreGraficheSearch","LazyPesiImballiSearch","LazyPallettizzazioniSearch","LazyEmergencyPolicy","LazyEmergencyContactManagement","LazyLabelRepository","router","mode","routes","path","name","component","props","meta","requiresAuth","plainLayout","originalPush","prototype","push","location","call","this","catch","err","use","BootstrapVue","BootstrapVueIcons","filter","value","string","index","General","truncate","date","undefined","format","config","productionTip","app","store","i18n","mounted","$toastr","defaultPosition","defaultTimeout","render","h","$mount","beforeEach","to","from","next","__awaiter","_regeneratorRuntime","mark","_callee","currentPath","isLogged","wrap","_context","prev","dispatch","matched","some","record","IsLogged","sent","query","stop"],"mappings":"6QAAAA,EAAAC,EAAAC,gBAAAC,EAAA,SACAC,EAAAH,EAAAC,gBAAAC,EAAA,SACAE,EAAAJ,EAAAC,gBAAAC,EAAA,SAEAG,EAAAH,EAAA,QACAA,EAAA,QAEAA,EAAA,QACA,IAAAI,EAAAN,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AI,CACd+B,UACAiC,MAAApF,EAAAoB,QACAiE,KAAAzE,EAAAyE,KACAC,QAAO,WACHpB,KAAKqB,QAAQC,gBAAkB,uBAC/BtB,KAAKqB,QAAQE,eAAiB,KAElCC,OAAQ,SAAAC,GAAC,OAAIA,EAAE/F,EAAAwB,YAChBwE,OAAO,QAIVzC,GAAO0C,YAAW,SAAOC,EAAIC,EAAMC,GAAI,OAAIvG,EAAAwG,eAAA,gBAAAC,IAAAC,MAAA,SAAAC,IAAA,IAAAC,EAAAC,EAAA,OAAAJ,IAAAK,MAAA,SAAAC,GAAA,eAAAA,EAAAC,KAAAD,EAAAR,MAAA,OAEW,GAD9CK,EAAcP,EAAGxC,KACrBtD,EAAAoB,QAAMsF,SAAS,iBAAkB,CAAEL,iBAE/BP,EAAGa,QAAQC,MAAK,SAAAC,GAAM,OAAIA,EAAOnD,KAAKC,gBAAe,CAAF6C,EAAAR,KAAA,QACpC,OADoCQ,EAAAR,KAAA,EAC9BrF,EAAAiE,QAAQkC,SAAS3B,IAAI,OAAtCmB,EAAQE,EAAAO,KAEPT,EAQDN,IAPAA,EAAK,CACD1C,KAAM,SACN0D,MAAO,CAAEjB,KAAMM,KAMtBG,EAAAR,KAAA,gBAEDA,IAAM,yBAAAQ,EAAAS,UAAAb","file":"js/app~f289f234.7311ebbe.js","sourcesContent":["import Vue from 'vue';\r\nimport App from './App.vue';\r\nimport VueRouter from 'vue-router';\r\n//import Home from './components/Pages/HomePage.vue'\r\nimport { BootstrapVue, BootstrapVueIcons } from 'bootstrap-vue';\r\nimport 'bootstrap/dist/css/bootstrap.css';\r\n//import 'bootstrap-vue/src/icons.scss';\r\nimport 'bootstrap-vue/dist/bootstrap-vue.css';\r\nimport VueSimpleAlert from 'vue-simple-alert';\r\nimport store from '@/services/Store';\r\nimport ChunkUploader from '@/components/ChunkUploader/ChunkUploader.vue';\r\nimport ScreenLoader from '@/components/ScreenLoader.vue';\r\nimport CookieLaw from 'vue-cookie-law';\r\nimport browserDetect from 'vue-browser-detect-plugin';\r\nimport AutocompleteCustom from './components/AutocompleteCustom.vue';\r\nimport Vuelidate from 'vuelidate';\r\nimport VueToastr from \"vue-toastr\";\r\nimport InlineSvg from 'vue-inline-svg';\r\nimport moment from 'moment';\r\nimport VueSimpleContextMenu from 'vue-simple-context-menu';\r\nimport { General } from '@/services/General';\r\nimport { i18n } from './i18n/i18n-setup';\r\nimport vSelect from 'vue-select'\r\nimport 'leaflet/dist/leaflet.css';\r\nimport 'vue-select/dist/vue-select.css';\r\n\r\n//main.js\r\nimport VueSidebarMenu from 'vue-sidebar-menu'\r\nimport 'vue-sidebar-menu/dist/vue-sidebar-menu.css'\r\n\r\n\r\nimport 'vue-simple-context-menu/dist/vue-simple-context-menu.css';\r\nrequire('./assets/css/custom.css');\r\n\r\nimport Axios from 'axios'\r\nimport VueAxios from 'vue-axios'\r\n\r\n// c'รจ un bug relativo al typescript per cui il lazyloading non funziona correttamente, quindi al posto dell'import classico ho usato iun workaround\r\n//const LazyLogin = () => import('@/components/Pages/LoginPage.vue');\r\n//diventa\r\n//const LazyLogin = resolve => (require as any)(['@/components/Pages/LoginPage.vue'], module => resolve(module.default));\r\n\r\nconst LazyHome = resolve => (require as any)(['@/components/Pages/HomePage.vue'], module => resolve(module.default));\r\nconst LazyProductsSearch = resolve => (require as any)(['@/components/Pages/ProductsSearchPage.vue'], module => resolve(module.default));\r\nconst LazyGaragesSearch = resolve => (require as any)(['@/components/Pages/GaragesSearchPage.vue'], module => resolve(module.default));\r\nconst LazyDocumentsSearch = resolve => (require as any)(['@/components/Pages/DocumentsSearchPage.vue'], module => resolve(module.default));\r\nconst LazyLogin = resolve => (require as any)(['@/components/Pages/LoginPage.vue'], module => resolve(module.default));\r\nconst LazyDocumentsZipUploader = resolve => (require as any)(['@/components/Pages/DocumentsZipUploaderPage.vue'], module => resolve(module.default));\r\nconst LazyProductSpecsUploader = resolve => (require as any)(['@/components/Pages/ProductSpecsPage.vue'], module => resolve(module.default));\r\nconst LazyMaterialsSearch = resolve => (require as any)(['@/components/Pages/MaterialsSearchPage.vue'], module => resolve(module.default));\r\nconst LazyCqc = resolve => (require as any)(['@/components/Pages/CqcPage.vue'], module => resolve(module.default));\r\nconst LazyGroupsSearch = resolve => (require as any)(['@/components/Pages/GroupsSearchPage.vue'], module => resolve(module.default));\r\nconst LazyVehiclesSearch = resolve => (require as any)(['@/components/Pages/VehiclesSearchPage.vue'], module => resolve(module.default));\r\nconst LazyCommunications = resolve => (require as any)(['@/components/Pages/CommunicationsPage.vue'], module => resolve(module.default));\r\nconst LazyCommunicationsCategories = resolve => (require as any)(['@/components/Pages/CommunicationsCategoriesPage.vue'], module => resolve(module.default));\r\nconst LazyUserManagement = resolve => (require as any)(['@/components/Pages/UserManagement.vue'], module => resolve(module.default));\r\nconst LazyDocumentationDownload = resolve => (require as any)(['@/components/Pages/DocumentationDownloadPage.vue'], module => resolve(module.default));\r\nconst LazyNet20CustomersSearch = resolve => (require as any)(['@/components/Pages/Net20/CustomersSearchPage.vue'], module => resolve(module.default));\r\nconst LazyNet20WelcomeKitDeliveryInfoUploader = resolve => (require as any)(['@/components/Pages/Net20/WelcomeKitDeliveryInfoPage.vue'], module => resolve(module.default));\r\nconst LazyNet20ReportContractRenewals = resolve => (require as any)(['@/components/Pages/Net20/ReportContractRenewalsPage.vue'], module => resolve(module.default));\r\nconst LazyMateriaInfoUploader = resolve => (require as any)(['@/components/Pages/MaterialInfoPage.vue'], module => resolve(module.default));\r\nconst LazyNet20UsersMatrixManagement = resolve => (require as any)(['@/components/Pages/Net20/UsersMatrixManagementPage.vue'], module => resolve(module.default));\r\nconst LazyNet20Geolocator = resolve => (require as any)(['@/components/Pages/Net20/GeolocatorPage.vue'], module => resolve(module.default));\r\nconst LazyPpePlansSearch = resolve => (require as any)(['@/components/Pages/Ppe/PlansSearchPage.vue'], module => resolve(module.default));\r\nconst LazyPpeUsersMatrixManagement = resolve => (require as any)(['@/components/Pages/Ppe/PpeUsersMatrixManagementPage.vue'], module => resolve(module.default));\r\nconst LazyMerchandisingReport = resolve => (require as any)(['@/components/Pages/Ppe/MerchandisingReportPage.vue'], module => resolve(module.default));\r\nconst LazyCapitolatiSearch = resolve => (require as any)(['@/components/Pages/Pk/CapitolatiSearchPage.vue'], module => resolve(module.default));\r\nconst LazyContenitoreGraficheSearch = resolve => (require as any)(['@/components/Pages/Pk/ContenitoreGraficheSearchPage.vue'], module => resolve(module.default));\r\nconst LazyPesiImballiSearch = resolve => (require as any)(['@/components/Pages/Pk/PesiImballiSearchPage.vue'], module => resolve(module.default));\r\nconst LazyPallettizzazioniSearch = resolve => (require as any)(['@/components/Pages/Pk/PallettizzazioniSearchPage.vue'], module => resolve(module.default));\r\nconst LazyEmergencyPolicy = resolve => (require as any)(['@/components/Pages/EmergencyPolicyPage.vue'], module => resolve(module.default));\r\nconst LazyEmergencyContactManagement = resolve => (require as any)(['@/components/Pages/EmergencyContactPage.vue'], module => resolve(module.default));\r\nconst LazyLabelRepository = resolve => (require as any)(['@/components/Pages/MaterialLabel/LabelRepositoryPage.vue'], module => resolve(module.default));\r\nlet router = new VueRouter({\r\n mode: 'history',\r\n routes: [\r\n {\r\n path: '/products',\r\n name: 'Products',\r\n component: LazyProductsSearch,\r\n props: { mode: 2 },\r\n meta: {\r\n requiresAuth: true\r\n }\r\n },\r\n {\r\n path: '/products/:id',\r\n name: 'Productsid',\r\n component: LazyProductsSearch,\r\n props: { mode: 2 },\r\n meta: {\r\n requiresAuth: true\r\n }\r\n },\r\n {\r\n path: '/materials',\r\n name: 'Materials',\r\n component: LazyMaterialsSearch,\r\n meta: {\r\n requiresAuth: true\r\n }\r\n },\r\n {\r\n path: '/document-search',\r\n name: 'DocumentSearch',\r\n component: LazyDocumentsSearch,\r\n meta:{\r\n plainLayout: true\r\n }\r\n },\r\n {\r\n path: '/',\r\n name: 'Home',\r\n component: LazyHome,\r\n meta: {\r\n requiresAuth: true\r\n }\r\n },\r\n {\r\n path: '/communications-view/:id',\r\n name: 'CommunicationId',\r\n component: LazyHome,\r\n props: { mode: 2 },\r\n meta: {\r\n requiresAuth: true\r\n }\r\n },\r\n {\r\n path: '/document-upload',\r\n name: 'DocumentsUpload',\r\n component: LazyDocumentsZipUploader,\r\n meta: {\r\n requiresAuth: true\r\n }\r\n },\r\n {\r\n path: '/product-specs-upload',\r\n name: 'ProductSpecsUpload',\r\n component: LazyProductSpecsUploader,\r\n meta: {\r\n requiresAuth: true\r\n }\r\n },\r\n {\r\n path: '/material-info-upload',\r\n name: 'MaterialInfoUpload',\r\n component: LazyMateriaInfoUploader,\r\n meta: {\r\n requiresAuth: true\r\n }\r\n },\r\n {\r\n path: '/cqc',\r\n name: 'cqc',\r\n component: LazyCqc,\r\n meta: {\r\n requiresAuth: true\r\n }\r\n },\r\n {\r\n path: '/login',\r\n name: 'Login',\r\n component: LazyLogin\r\n },\r\n {\r\n path: '/groups',\r\n name: 'Groups',\r\n component: LazyGroupsSearch,\r\n meta: {\r\n requiresAuth: true\r\n },\r\n },\r\n {\r\n path: '/groups/:id',\r\n name: 'Groupsid',\r\n component: LazyGroupsSearch,\r\n props: { mode: 2 },\r\n meta: {\r\n requiresAuth: true\r\n }\r\n },\r\n {\r\n path: '/vehicles',\r\n name: 'Vehicles',\r\n component: LazyVehiclesSearch,\r\n meta: {\r\n requiresAuth: true\r\n },\r\n },\r\n {\r\n path: '/vehicles/:id',\r\n name: 'Vehiclesid',\r\n component: LazyVehiclesSearch,\r\n props: { mode: 2 },\r\n meta: {\r\n requiresAuth: true\r\n }\r\n },\r\n {\r\n path: '/communications',\r\n name: 'Communications',\r\n component: LazyCommunications,\r\n meta: {\r\n requiresAuth: true\r\n }\r\n },\r\n {\r\n path: '/communications/:id',\r\n name: 'CommunicationsNumericId',\r\n component: LazyCommunications,\r\n meta: {\r\n requiresAuth: true\r\n }\r\n },\r\n {\r\n path: '/usermanagement',\r\n name: 'UserManagement',\r\n component: LazyUserManagement,\r\n meta: {\r\n requiresAuth: true\r\n }\r\n },\r\n {\r\n path: '/communicationsCategories',\r\n name: 'CommunicationsCategories',\r\n component: LazyCommunicationsCategories,\r\n meta: {\r\n requiresAuth: true\r\n }\r\n },\r\n {\r\n path: '/communicationsCategories/:id',\r\n name: 'CommunicationCategoriesId',\r\n component: LazyCommunicationsCategories,\r\n meta: {\r\n requiresAuth: true\r\n }\r\n },\r\n {\r\n path: '/document-download/',\r\n name: 'DocumentationDownload',\r\n component: LazyDocumentationDownload,\r\n meta: {\r\n requiresAuth: true\r\n }\r\n },\r\n {\r\n path: '/signs',\r\n name: 'Sign',\r\n component: LazyGaragesSearch,\r\n props: { mode: 2 },\r\n meta: {\r\n requiresAuth: true\r\n }\r\n },\r\n {\r\n path: '/signs/:id',\r\n name: 'SignId',\r\n component: LazyGaragesSearch,\r\n props: { mode: 2 },\r\n meta: {\r\n requiresAuth: true\r\n }\r\n },\r\n {\r\n path: '/net20s',\r\n name: 'Customer',\r\n component: LazyNet20CustomersSearch,\r\n props: { mode: 2 },\r\n meta: {\r\n requiresAuth: true\r\n }\r\n },\r\n {\r\n path: '/net20s/:id',\r\n name: 'CustomerId',\r\n component: LazyNet20CustomersSearch,\r\n props: { mode: 2 },\r\n meta: {\r\n requiresAuth: true\r\n }\r\n },\r\n {\r\n path: '/welcome-kit-info',\r\n name: 'WelcomeKitDeliveryInfo',\r\n component: LazyNet20WelcomeKitDeliveryInfoUploader,\r\n meta: {\r\n requiresAuth: true\r\n }\r\n },\r\n {\r\n path: '/report-contract-renewals',\r\n name: 'ReportContractRenewals',\r\n component: LazyNet20ReportContractRenewals,\r\n meta: {\r\n requiresAuth: true\r\n }\r\n },\r\n {\r\n path: '/users-net20-management',\r\n name: 'UsersMatrixManagement',\r\n component: LazyNet20UsersMatrixManagement,\r\n meta: {\r\n requiresAuth: true\r\n }\r\n },\r\n {\r\n path: '/geolocator',\r\n name: 'Geolocator',\r\n component: LazyNet20Geolocator,\r\n meta: {\r\n requiresAuth: true\r\n }\r\n },\r\n {\r\n path: '/ppes',\r\n name: 'Plan',\r\n component: LazyPpePlansSearch,\r\n props: { mode: 2 },\r\n meta: {\r\n requiresAuth: true\r\n }\r\n },\r\n {\r\n path: '/ppes/:id',\r\n name: 'PlanId',\r\n component: LazyPpePlansSearch,\r\n props: { mode: 2 },\r\n meta: {\r\n requiresAuth: true\r\n }\r\n },\r\n {\r\n path: '/users-ppe-management',\r\n name: 'PpeUsersMatrixManagement',\r\n component: LazyPpeUsersMatrixManagement,\r\n meta: {\r\n requiresAuth: true\r\n }\r\n },\r\n {\r\n path: '/merchandising-report',\r\n name: 'MerchandisingReport',\r\n component: LazyMerchandisingReport,\r\n meta: {\r\n requiresAuth: true\r\n }\r\n },\r\n {\r\n path: '/capitolati-search',\r\n name: 'CapitolatiSearch',\r\n component: LazyCapitolatiSearch,\r\n meta: {\r\n requiresAuth: true\r\n }\r\n },\r\n {\r\n path: '/contenitore-grafiche-search',\r\n name: 'ContenitoreGraficheSearch',\r\n component: LazyContenitoreGraficheSearch,\r\n meta: {\r\n requiresAuth: true\r\n }\r\n },\r\n {\r\n path: '/pallettizzazioni-search',\r\n name: 'PallettizzazioniSearch',\r\n component: LazyPallettizzazioniSearch,\r\n meta: {\r\n requiresAuth: true\r\n }\r\n },\r\n {\r\n path: '/pesi-imballi-search',\r\n name: 'PesiImballliSearch',\r\n component: LazyPesiImballiSearch,\r\n meta: {\r\n requiresAuth: true\r\n }\r\n },\r\n {\r\n path: '/emergency-policy/:id',\r\n name: 'EmergencyPolicy',\r\n component: LazyEmergencyPolicy,\r\n meta: {\r\n plainLayout: true\r\n }\r\n },\r\n {\r\n path: '/emergency-contact-management',\r\n name: 'EmergencyContactManagement',\r\n component: LazyEmergencyContactManagement\r\n\r\n },\r\n {\r\n path: '/label-repository',\r\n name: 'LabelRepository',\r\n component: LazyLabelRepository,\r\n meta: {\r\n requiresAuth: true\r\n } \r\n },\r\n ]\r\n});\r\nconst originalPush = VueRouter.prototype.push;\r\nVueRouter.prototype.push = function push(location) {\r\n return originalPush.call(this, location).catch(err => err);\r\n}\r\n\r\nVue.use(VueRouter);\r\nVue.use(BootstrapVue);\r\nVue.use(VueAxios, Axios);\r\nVue.use(VueSimpleAlert);\r\nVue.use(BootstrapVueIcons);\r\nVue.use(browserDetect);\r\nVue.use(Vuelidate);\r\nVue.use(VueToastr, {});\r\nVue.use(VueSidebarMenu)\r\n\r\nVue.component('chunk-uploader', ChunkUploader);\r\nVue.component('ScreenLoader', ScreenLoader);\r\nVue.component('CookieLaw', CookieLaw);\r\nVue.component('AutocompleteCustom', AutocompleteCustom);\r\nVue.component('inline-svg', InlineSvg);\r\nVue.component('vue-simple-context-menu', VueSimpleContextMenu);\r\nVue.component('v-select', vSelect)\r\n\r\n\r\nVue.filter('empty', (value: string) => {\r\n if (value == null || value == '') return '-';\r\n return value;\r\n})\r\n\r\nVue.filter('truncate-base', (string: string, index: number) => {\r\n if (string == null || string == '') return '-';\r\n else\r\n return General.truncate(string, index, '');\r\n})\r\nVue.filter('truncate', (string: string, index: number) => {\r\n if (string == null || string == '') return '-';\r\n else\r\n return General.truncate(string, index, '...');\r\n})\r\nVue.filter('dateStandard', (date: Date) => {\r\n if (date == undefined) return null;\r\n return moment(date).format('MM/DD/YYYY');\r\n})\r\nVue.filter('dateStandardIT', (date: Date) => {\r\n if (date == undefined) return null;\r\n return moment(date).format('DD/MM/YYYY');\r\n})\r\n\r\nVue.config.productionTip = true;\r\nlet app = new Vue({\r\n router,\r\n store,\r\n i18n,\r\n mounted() {\r\n this.$toastr.defaultPosition = 'toast-top-full-width';\r\n this.$toastr.defaultTimeout = 5000;\r\n },\r\n render: h => h(App)\r\n}).$mount('#app');\r\n\r\n\r\n\r\nrouter.beforeEach(async (to, from, next) => {\r\n let currentPath = to.path;\r\n store.dispatch('setCurrentPath', { currentPath });\r\n\r\n if (to.matched.some(record => record.meta.requiresAuth)) {\r\n let isLogged = await General.IsLogged(app);\r\n\r\n if (!isLogged) {\r\n next({\r\n path: '/login',\r\n query: { from: currentPath }\r\n })\r\n } else {\r\n //Questo non e' piu necessario dato che ho spostato il caricamento della lingua nella created di App.vue\r\n // await General.loadLanguageFromStoreAsync();\r\n next()\r\n }\r\n } else {\r\n next()\r\n }\r\n})"],"sourceRoot":""}