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UAAW,CACPC,EACIC,CAAY,EAEhBC,EACIpB,GACAqB,EAAsBC,CAAa,CAAC,EAGxC,CAAE/E,QAASgF,EAAUxE,SAAU6B,EAAY4C,WAAW,EACtD,CAAEjF,QAASkF,EAAcC,SAAUvE,EAAkB,EAGrD,CAAEZ,QAAS,yBAA0BQ,SAAU,6CAA6C,EAC5F,CAAER,QAAS,sBAAuBQ,SAAU,qCAAqC,EACjF,CAAER,QAAS,yBAA0BQ,SAAU,wCAAwC,EACvF,CAAER,QAAS,uBAAwBQ,SAAU,sCAAsC,EACnF,CAAER,QAAS,kBAAmBQ,SAAU,kDAAkD,EAC1F,CAAER,QAAS,mBAAoBQ,SAAU6B,EAAY+C,cAAc,EACnE,CAAEpF,QAAS0D,GAAoBlD,SAAU6B,EAAYgD,OAAO,EAC5D,CAAErF,QAASsF,EAAe9E,SAAUqC,GAAqB0C,IAAI,CAAC,CAACzC,OAAM1F,OAAM4F,MAAI,IAAM,GAAIwC,GAAS1C,EAAM1F,EAAM4F,CAAI,CAAC,CAAC,EACpH,CACEhD,QAASyF,EACTvF,WAAY0D,GACZzD,KAAM,CAACuF,CAAS,EAChBC,MAAO,IAET/F,GAAsB,EACtBgG,EAAuBC,EAAe,CAAE,EACxCC,EAAkBC,EAAS,EAAIC,EAAsB,CAAE,EACvDC,EACAC,EAAe,UAAAC,EAAA,IAAAC,CAAA,CAAAC,EAAA,IAAAC,CAAA","names":["AppRoutes","path","loadChildren","then","m","CompaniesModule","data","roles","UserRolesEnum","admin","canLoad","NewsManagerModule","NewsletterManagerModule","WikisManagerModule","LogViewerModule","OpenidLoginModule","hideToolbar","RequestsManagerModule","CategoriesManagerModule","UsersManagerModule","KeyPIModule","PreRegisterModule","UserRegisterModule","UserLoginModule","RegistrationCompleteModule","UserAccountModule","ProfileEditorModule","basic","canActivate","HomeModule","isCacheable","preload","toolbarMode","ToolbarMode","both","NewsModule","ProductsPageModule","solid","PortalEventsModule","EditPortalEventsModule","SearchResultsModule","HistoryModule","ContactsModule","TeamModule","CareersModule","TestimonialsModule","CompaniesListModule","MetalWorkingBasicsModule","NewsletterViewerModule","StandModule","breadcrumb","matcher","url","length","regex","match","reduce","acc","v","consumed","slice","filter","i","arr","splice","posParams","category","UrlSegment","subcategory","companySlug","StandAdministrationModule","StandFreeModule","HallModule","transparent","JoinNowModule","OnlineFairHallModule","SustainabilityModule","SolidarityModule","PlaceOrderModule","PrivacyModule","TermsModule","SponsorModule","NewsletterCompleteModule","redirectTo","pathMatch","ErrorPageModule","loadComponent","mod","EditorPreviewComponent","ANIMATION_PREFIX","AsyncAnimationRendererFactory","_AsyncAnimationRendererFactory","constructor","doc","delegate","zone","animationType","moduleImpl","_rendererFactoryPromise","scheduler","inject","ChangeDetectionScheduler","optional","ngOnDestroy","_engine","flush","loadImpl","catch","e","RuntimeError","ɵcreateEngine","ɵAnimationRendererFactory","rendererFactory","createRenderer","hostElement","rendererType","renderer","ɵtype","throwOnSyntheticProps","dynamicRenderer","DynamicDelegationRenderer","animation","animationRendererFactory","animationRenderer","use","notify","begin","end","whenRenderingDone","Promise","resolve","ɵfac","t","ɵɵinvalidFactory","ɵprov","ɵɵdefineInjectable","token","factory","replay","impl","fn","destroy","createElement","name","namespace","createComment","value","createText","destroyNode","appendChild","parent","newChild","insertBefore","refChild","isMove","removeChild","oldChild","isHostElement","selectRootElement","selectorOrNode","preserveContent","parentNode","node","nextSibling","setAttribute","el","removeAttribute","addClass","removeClass","setStyle","style","flags","removeStyle","setProperty","shouldReplay","push","setValue","listen","target","eventName","callback","propOrEventName","startsWith","provideAnimationsAsync","type","performanceMarkFeature","makeEnvironmentProviders","provide","RendererFactory2","useFactory","deps","DOCUMENT","DomRendererFactory2","NgZone","ANIMATION_MODULE_TYPE","useValue","import_i18n_iso_countries","ne","le","GlobalErrorHandler","injector","offlineMessage","$localize","serverErrorMsg","unauthorizedErrorMsg","handleError","error","errorService","get","ErrorService","platform","Platform","notifier","NotificationService","isBrowser","navigator","onLine","showErrorMessage","HttpErrorResponse","ApolloNetworkError","ApolloError","graphQLErrors","err","message","environment","debugOn","console","o","ɵɵinject","Injector","p","_GlobalErrorHandler","PORTAL_LANGUAGES_EXT","code","iso","flag","pe","g","../assets/iso-countries/langs/de.js","../assets/iso-countries/langs/en.js","../assets/iso-countries/langs/es.js","../assets/iso-countries/langs/fr.js","../assets/iso-countries/langs/it.js","../assets/iso-countries/langs/ru.js","routes","TINYMCE_SCRIPT_SRC","InjectionToken","appLocalesLoadFactory","localeId","countriesLocale","reject","globImport_assets_iso_countries_langs_js","lang","i18nIsoCountries","registerLocale","default","angularGlobalLocale","module","registerLocaleData","all","appConfig","providers","importProvidersFrom","ApolloModule","provideRouter","withInMemoryScrolling","RouterOptions","HOST_URL","frontendUrl","ErrorHandler","useClass","googleClientID","tinyMce","APP_LANGUAGES","map","Language","APP_INITIALIZER","LOCALE_ID","multi","provideClientHydration","withI18nSupport","provideHttpClient","withFetch","withInterceptorsFromDi","LanguagesService","MetadataService","me","a","Xe","b"],"ignoreList":[1],"sources":["src/app/app.routes.ts","node_modules/@angular/platform-browser/fesm2022/animations/async.mjs","src/app/app.config.ts","src/app/error-handler/global-error-handler.ts","src/portal-language-ext.ts"],"sourcesContent":["import { UserRolesEnum } from '@collections/users/enums/user-roles.enums';\r\nimport { Routes, UrlSegment } from '@angular/router';\r\nimport { ToolbarMode } from '@fuse/types/fuse-config';\r\n// libs\r\n\r\n// import { AuthGuard } from '@shared/auth/auth.guard';\r\n// import { RoleGuard } from '@shared/auth/role.guard';\r\n\r\n// nota: in canactivate, a differenza della documentazioen ufficiale, metto una stringa e uso UseClass nel provider\r\n// questo perché lato server registro le routes, già localizzate con il localize-router, nello statetransfer\r\n// così da averle già pronte lato client,\r\n// ma inserendo la classe direttamente non verrebbe salvata come stringa nello stateTransfer ma come null\r\n// da valutare in seguito se è una strada percorribile o se bisogna trovarne un'altra.\r\n\r\nexport const AppRoutes: Routes = [\r\n {\r\n path: 'administration/companies',\r\n loadChildren: () => import('./main/administration/companies-manager/companies-manager.module').then(m => m.CompaniesModule),\r\n data: { roles: [UserRolesEnum.admin] },\r\n canLoad: ['RoleGuard']\r\n }, {\r\n path: 'administration/news-manager',\r\n loadChildren: () => import('./main/administration/news-manager/news-manager.module').then(m => m.NewsManagerModule),\r\n data: { roles: [UserRolesEnum.admin] },\r\n canLoad: ['RoleGuard']\r\n }, {\r\n path: 'administration/newsletter-manager',\r\n loadChildren: () => import('./main/administration/newsletter-manager/newsletter-manager.module').then(m => m.NewsletterManagerModule),\r\n data: { roles: [UserRolesEnum.admin] },\r\n canLoad: ['RoleGuard']\r\n },{\r\n path: 'administration/wikis-manager',\r\n loadChildren: () => import('./main/administration/wikis-manager/wikis-manager.module').then(m => m.WikisManagerModule),\r\n data: { roles: [UserRolesEnum.admin] },\r\n canLoad: ['RoleGuard']\r\n }, {\r\n path: 'administration/log-viewer',\r\n loadChildren: () => import('./main/administration/log-viewer/log-viewer.module').then(m => m.LogViewerModule),\r\n data: { roles: [UserRolesEnum.admin] },\r\n canLoad: ['RoleGuard']\r\n }, {\r\n path: 'openid-login',\r\n loadChildren: () => import('./shared/auth/auth-components/openid-login/openid-login.module').then(m => m.OpenidLoginModule),\r\n data: { hideToolbar: true }\r\n }, {\r\n path: 'administration/requests-manager',\r\n loadChildren: () => import('./main/administration/requests-manager/requests-manager.module').then(m => m.RequestsManagerModule),\r\n data: { roles: [UserRolesEnum.admin] },\r\n canLoad: ['RoleGuard']\r\n }, {\r\n path: 'administration/categories-manager',\r\n loadChildren: () => import('./main/administration/categories-manager/categories-manager.module').then(m => m.CategoriesManagerModule),\r\n data: { roles: [UserRolesEnum.admin] },\r\n canLoad: ['RoleGuard']\r\n }, {\r\n path: 'administration/users-manager',\r\n loadChildren: () => import('./main/administration/users-manager/users-manager.module').then(m => m.UsersManagerModule),\r\n data: { roles: [UserRolesEnum.admin] },\r\n canLoad: ['RoleGuard']\r\n }, {\r\n path: 'administration/keyPI',\r\n loadChildren: () => import('./main/administration/keyPI/keyPI.module').then(m => m.KeyPIModule),\r\n data: { roles: [UserRolesEnum.admin] },\r\n canLoad: ['RoleGuard']\r\n },\r\n {\r\n path: 'pre-register',\r\n loadChildren: () => import('./main/authentication/pre-register/pre-register.module').then(m => m.PreRegisterModule),\r\n data: { hideToolbar: true }\r\n },\r\n {\r\n path: 'register',\r\n loadChildren: () => import('./main/authentication/register/register.module').then(m => m.UserRegisterModule),\r\n data: { hideToolbar: true }\r\n }, {\r\n path: 'login',\r\n loadChildren: () => import('./main/authentication/login/login.module').then(m => m.UserLoginModule),\r\n data: { hideToolbar: true }\r\n }, {\r\n path: 'registration-complete',\r\n loadChildren: () => import('./main/authentication/registration-complete/registration-complete.module').then(m => m.RegistrationCompleteModule),\r\n }, {\r\n path: 'reset-password/:token',\r\n loadChildren: () => import('./main/authentication/login/login.module').then(m => m.UserLoginModule),\r\n data: { hideToolbar: true },\r\n }, {\r\n path: 'account',\r\n loadChildren: () => import('./main/administration/users/user-account/user-account.module').then(m => m.UserAccountModule),\r\n // canActivate: ['AuthGuard']\r\n }, {\r\n path: 'account/:userSlug/edit/:lang',\r\n loadChildren: () => import('./main/administration/users/user-account/profile-editor/profile-editor.module').then(m => m.ProfileEditorModule),\r\n data: { roles: [UserRolesEnum.basic] },\r\n canActivate: ['UserGuard']\r\n }, {\r\n path: 'online-fair',\r\n loadChildren: () => import('./main/pages/home/home.module').then(m => m.HomeModule),\r\n data: {\r\n isCacheable: true,\r\n preload: true,\r\n toolbarMode: ToolbarMode.both\r\n }\r\n }, {\r\n path: 'news',\r\n loadChildren: () => import('./main/pages/news/news.module').then(m => m.NewsModule),\r\n data: {\r\n isCacheable: true,\r\n preload: false,\r\n toolbarMode: ToolbarMode.both\r\n }\r\n }, {\r\n path: 'products',\r\n loadChildren: () => import('./main/pages/products/products-page.module').then(m => m.ProductsPageModule),\r\n data: {\r\n isCacheable: true,\r\n preload: true,\r\n toolbarMode: ToolbarMode.solid //change to both when 'ready' with headers\r\n }\r\n }, {\r\n path: 'events',\r\n loadChildren: () => import('./main/pages/portal-events/portal-events.module').then(m => m.PortalEventsModule),\r\n data: {\r\n isCacheable: true,\r\n preload: false,\r\n toolbarMode: ToolbarMode.both\r\n }\r\n }, {\r\n path: 'events/edit',\r\n loadChildren: () => import('./portal-events/edit-portal-events/edit-portal-events.module').then(m => m.EditPortalEventsModule),\r\n data: { roles: [UserRolesEnum.admin] },\r\n canLoad: ['RoleGuard']\r\n }, {\r\n path: 'search',\r\n loadChildren: () => import('./main/pages/search-results/search-results.module').then(m => m.SearchResultsModule),\r\n data: {\r\n isCacheable: true,\r\n preload: false\r\n }\r\n }, {\r\n path: 'history',\r\n loadChildren: () => import('./main/pages/history/history.module').then(m => m.HistoryModule),\r\n data: {\r\n isCacheable: true,\r\n preload: false\r\n }\r\n }, {\r\n path: 'contacts',\r\n loadChildren: () => import('./main/pages/contacts/contacts.module').then(m => m.ContactsModule),\r\n data: {\r\n isCacheable: true,\r\n preload: false\r\n }\r\n }, {\r\n path: 'team',\r\n loadChildren: () => import('./main/pages/team/team.module').then(m => m.TeamModule),\r\n data: {\r\n isCacheable: true,\r\n preload: false\r\n }\r\n }, {\r\n path: 'careers',\r\n loadChildren: () => import('./main/pages/careers/careers.module').then(m => m.CareersModule),\r\n data: {\r\n isCacheable: true,\r\n preload: false\r\n }\r\n }, {\r\n path: 'testimonials',\r\n loadChildren: () => import('./main/pages/testimonials/testimonials.module').then(m => m.TestimonialsModule),\r\n data: {\r\n isCacheable: true,\r\n preload: false\r\n },\r\n }, {\r\n path: 'companies-list',\r\n loadChildren: () => import('./main/pages/companies-list/companies-list.module').then(m => m.CompaniesListModule),\r\n data: {\r\n isCacheable: true,\r\n preload: false\r\n },\r\n }, {\r\n path: 'metal-working-basics',\r\n loadChildren: () => import('./main/pages/metal-working-basics/metal-working-basics.module').then(m => m.MetalWorkingBasicsModule),\r\n data: {\r\n isCacheable: true,\r\n preload: false\r\n },\r\n }, {\r\n path: 'newsletter-viewer',\r\n loadChildren: () => import('./main/pages/newsletter-viewer/newsletter-viewer.module').then(m => m.NewsletterViewerModule),\r\n data: {\r\n isCacheable: true,\r\n preload: false\r\n },\r\n }, {\r\n path: 'hall/:category/:subcategory/stand',\r\n loadChildren: () => import('./stand/stand.module').then(m => m.StandModule),\r\n data: {\r\n isCacheable: true,\r\n preload: false,\r\n breadcrumb: 'hall'\r\n }\r\n }, {\r\n path: 'hall/:category/stand',\r\n loadChildren: () => import('./stand/stand.module').then(m => m.StandModule),\r\n data: {\r\n isCacheable: true,\r\n preload: false,\r\n breadcrumb: 'hall'\r\n }\r\n }, {\r\n matcher: (url) => {\r\n if (url.length < 5) {\r\n return null;\r\n }\r\n const regex = /\\/hall(?:\\/([a-z0-9-]*))?\\/([a-z0-9-]*)\\/(?:stand-free|stand)\\/([a-z0-9-]*)\\/edit/;\r\n const path: string = url.reduce((acc, v) => acc + '/' + v.path, '');\r\n const match: string[] = path.match(regex);\r\n const segments = match && match.length > 0 ?\r\n {\r\n consumed: url.slice(0).filter((v,i,arr) => v.path === 'edit' ? arr.splice(i) && true : true),\r\n posParams: {\r\n category: new UrlSegment(match[1] ? match[1] : match[2], {}),\r\n subcategory: new UrlSegment(match[1] ? match[2]: null, {}),\r\n companySlug: new UrlSegment(match[3], {})\r\n }\r\n } : null;\r\n return segments\r\n },\r\n loadChildren: () => import('./stand-administration/stand-administration.module').then(m => m.StandAdministrationModule)\r\n },\r\n {\r\n path: 'hall/:category/stand-free',\r\n loadChildren: () => import('./stand-free/stand-free.module').then(m => m.StandFreeModule),\r\n data: {\r\n isCacheable: true,\r\n preload: false,\r\n breadcrumb: 'hall'\r\n }\r\n }, {\r\n path: 'hall/:category/:subcategory/stand-free',\r\n loadChildren: () => import('./stand-free/stand-free.module').then(m => m.StandFreeModule),\r\n data: {\r\n isCacheable: true,\r\n preload: false,\r\n breadcrumb: 'hall'\r\n }\r\n },\r\n {\r\n path: 'hall',\r\n loadChildren: () => import('./main/pages/hall/hall.module').then(m => m.HallModule),\r\n data: {\r\n toolbarMode: ToolbarMode.transparent\r\n }\r\n }\r\n // , {\r\n // path: 'orders-board',\r\n // loadChildren: () => import('./main/orders/orders-board/orders-board.module').then(m => m.OrdersBoardModule),\r\n // data: {\r\n // isCacheable: true,\r\n // preload: false\r\n // }\r\n // }\r\n , {\r\n path: 'join-now',\r\n loadChildren: () => import('./main/pages/join-now/join-now.module').then(m => m.JoinNowModule),\r\n data: {\r\n isCacheable: true,\r\n preload: false\r\n }\r\n }, {\r\n path: 'online-fair-hall',\r\n loadChildren: () => import('./main/pages/online-fair-hall/online-fair-hall.module').then(m => m.OnlineFairHallModule),\r\n data: {\r\n isCacheable: true,\r\n preload: false\r\n }\r\n }, {\r\n path: 'sustainability',\r\n loadChildren: () => import('./main/pages/sustainability/sustainability.module').then(m => m.SustainabilityModule),\r\n data: {\r\n isCacheable: true,\r\n preload: false\r\n }\r\n },\r\n {\r\n path: 'solidarity',\r\n loadChildren: () => import('./main/pages/solidarity/solidarity.module').then(m => m.SolidarityModule),\r\n data: {\r\n isCacheable: true,\r\n preload: false\r\n }\r\n },\r\n {\r\n path: 'place-order',\r\n loadChildren: () => import('./main/orders/place-order/place-order.module').then(m => m.PlaceOrderModule),\r\n data: {\r\n isCacheable: true,\r\n preload: false\r\n }\r\n }, {\r\n path: 'privacy',\r\n loadChildren: () => import('./main/pages/privacy/privacy.module').then(m => m.PrivacyModule),\r\n data: {\r\n isCacheable: true,\r\n preload: false\r\n }\r\n }, {\r\n path: 'terms',\r\n loadChildren: () => import('./main/pages/terms/terms.module').then(m => m.TermsModule),\r\n data: {\r\n isCacheable: true,\r\n preload: false\r\n }\r\n },\r\n {\r\n path: 'sponsor',\r\n loadChildren: () => import('./main/pages/sponsor/sponsor.module').then(m => m.SponsorModule),\r\n data: {\r\n isCacheable: true,\r\n preload: false\r\n }\r\n }, {\r\n path: 'newsletter-complete',\r\n loadChildren: () => import('./main/pages/newsletter-complete/newsletter-complete.module').then(m => m.NewsletterCompleteModule),\r\n }\r\n // , {\r\n // path: 'test',\r\n // loadChildren: () => import('./main/pages/test/test.module').then(m => m.TestModule),\r\n // data: {\r\n // isCacheable: false\r\n // }\r\n // }\r\n , {\r\n path: '', redirectTo: '/online-fair', pathMatch: 'full'\r\n }, {\r\n path: 'error',\r\n loadChildren: () => import('./error-handler/error-page/error-page.module').then(m => m.ErrorPageModule)\r\n }, {\r\n path: 'editor/preview',\r\n loadComponent: () => import('./shared/mat-editor/preview-dialog/editor-preview/editor-preview.component').then(mod => mod.EditorPreviewComponent),\r\n data: { hideToolbar: true },\r\n }, {\r\n path: '**', redirectTo: '/error/404', pathMatch: 'full'\r\n }\r\n];\r\n","/**\n * @license Angular v18.0.0\n * (c) 2010-2024 Google LLC. https://angular.io/\n * License: MIT\n */\n\nimport { DOCUMENT } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { inject, ɵChangeDetectionScheduler, ɵRuntimeError, Injectable, ɵperformanceMarkFeature, makeEnvironmentProviders, RendererFactory2, NgZone, ANIMATION_MODULE_TYPE } from '@angular/core';\nimport { ɵDomRendererFactory2 } from '@angular/platform-browser';\nconst ANIMATION_PREFIX = '@';\nlet AsyncAnimationRendererFactory = /*#__PURE__*/(() => {\n class AsyncAnimationRendererFactory {\n /**\n *\n * @param moduleImpl allows to provide a mock implmentation (or will load the animation module)\n */\n constructor(doc, delegate, zone, animationType, moduleImpl) {\n this.doc = doc;\n this.delegate = delegate;\n this.zone = zone;\n this.animationType = animationType;\n this.moduleImpl = moduleImpl;\n this._rendererFactoryPromise = null;\n this.scheduler = inject(ɵChangeDetectionScheduler, {\n optional: true\n });\n }\n /** @nodoc */\n ngOnDestroy() {\n // When the root view is removed, the renderer defers the actual work to the\n // `TransitionAnimationEngine` to do this, and the `TransitionAnimationEngine` doesn't actually\n // remove the DOM node, but just calls `markElementAsRemoved()`. The actual DOM node is not\n // removed until `TransitionAnimationEngine` \"flushes\".\n // Note: we already flush on destroy within the `InjectableAnimationEngine`. The injectable\n // engine is not provided when async animations are used.\n this._engine?.flush();\n }\n /**\n * @internal\n */\n loadImpl() {\n // Note on the `.then(m => m)` part below: Closure compiler optimizations in g3 require\n // `.then` to be present for a dynamic import (or an import should be `await`ed) to detect\n // the set of imported symbols.\n const moduleImpl = this.moduleImpl ?? import('@angular/animations/browser').then(m => m);\n return moduleImpl.catch(e => {\n throw new ɵRuntimeError(5300 /* RuntimeErrorCode.ANIMATION_RENDERER_ASYNC_LOADING_FAILURE */, (typeof ngDevMode === 'undefined' || ngDevMode) && 'Async loading for animations package was ' + 'enabled, but loading failed. Angular falls back to using regular rendering. ' + \"No animations will be displayed and their styles won't be applied.\");\n }).then(({\n ɵcreateEngine,\n ɵAnimationRendererFactory\n }) => {\n // We can't create the renderer yet because we might need the hostElement and the type\n // Both are provided in createRenderer().\n this._engine = ɵcreateEngine(this.animationType, this.doc);\n const rendererFactory = new ɵAnimationRendererFactory(this.delegate, this._engine, this.zone);\n this.delegate = rendererFactory;\n return rendererFactory;\n });\n }\n /**\n * This method is delegating the renderer creation to the factories.\n * It uses default factory while the animation factory isn't loaded\n * and will rely on the animation factory once it is loaded.\n *\n * Calling this method will trigger as side effect the loading of the animation module\n * if the renderered component uses animations.\n */\n createRenderer(hostElement, rendererType) {\n const renderer = this.delegate.createRenderer(hostElement, rendererType);\n if (renderer.ɵtype === 0 /* AnimationRendererType.Regular */) {\n // The factory is already loaded, this is an animation renderer\n return renderer;\n }\n // We need to prevent the DomRenderer to throw an error because of synthetic properties\n if (typeof renderer.throwOnSyntheticProps === 'boolean') {\n renderer.throwOnSyntheticProps = false;\n }\n // Using a dynamic renderer to switch the renderer implementation once the module is loaded.\n const dynamicRenderer = new DynamicDelegationRenderer(renderer);\n // Kick off the module loading if the component uses animations but the module hasn't been\n // loaded yet.\n if (rendererType?.data?.['animation'] && !this._rendererFactoryPromise) {\n this._rendererFactoryPromise = this.loadImpl();\n }\n this._rendererFactoryPromise?.then(animationRendererFactory => {\n const animationRenderer = animationRendererFactory.createRenderer(hostElement, rendererType);\n dynamicRenderer.use(animationRenderer);\n this.scheduler?.notify(9 /* NotificationSource.AsyncAnimationsLoaded */);\n }).catch(e => {\n // Permanently use regular renderer when loading fails.\n dynamicRenderer.use(renderer);\n });\n return dynamicRenderer;\n }\n begin() {\n this.delegate.begin?.();\n }\n end() {\n this.delegate.end?.();\n }\n whenRenderingDone() {\n return this.delegate.whenRenderingDone?.() ?? Promise.resolve();\n }\n static {\n this.ɵfac = function AsyncAnimationRendererFactory_Factory(t) {\n i0.ɵɵinvalidFactory();\n };\n }\n static {\n this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: AsyncAnimationRendererFactory,\n factory: AsyncAnimationRendererFactory.ɵfac\n });\n }\n }\n return AsyncAnimationRendererFactory;\n})();\n/*#__PURE__*/(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * The class allows to dynamicly switch between different renderer implementations\n * by changing the delegate renderer.\n */\nclass DynamicDelegationRenderer {\n constructor(delegate) {\n this.delegate = delegate;\n // List of callbacks that need to be replayed on the animation renderer once its loaded\n this.replay = [];\n this.ɵtype = 1 /* AnimationRendererType.Delegated */;\n }\n use(impl) {\n this.delegate = impl;\n if (this.replay !== null) {\n // Replay queued actions using the animation renderer to apply\n // all events and properties collected while loading was in progress.\n for (const fn of this.replay) {\n fn(impl);\n }\n // Set to `null` to indicate that the queue was processed\n // and we no longer need to collect events and properties.\n this.replay = null;\n }\n }\n get data() {\n return this.delegate.data;\n }\n destroy() {\n this.replay = null;\n this.delegate.destroy();\n }\n createElement(name, namespace) {\n return this.delegate.createElement(name, namespace);\n }\n createComment(value) {\n return this.delegate.createComment(value);\n }\n createText(value) {\n return this.delegate.createText(value);\n }\n get destroyNode() {\n return this.delegate.destroyNode;\n }\n appendChild(parent, newChild) {\n this.delegate.appendChild(parent, newChild);\n }\n insertBefore(parent, newChild, refChild, isMove) {\n this.delegate.insertBefore(parent, newChild, refChild, isMove);\n }\n removeChild(parent, oldChild, isHostElement) {\n this.delegate.removeChild(parent, oldChild, isHostElement);\n }\n selectRootElement(selectorOrNode, preserveContent) {\n return this.delegate.selectRootElement(selectorOrNode, preserveContent);\n }\n parentNode(node) {\n return this.delegate.parentNode(node);\n }\n nextSibling(node) {\n return this.delegate.nextSibling(node);\n }\n setAttribute(el, name, value, namespace) {\n this.delegate.setAttribute(el, name, value, namespace);\n }\n removeAttribute(el, name, namespace) {\n this.delegate.removeAttribute(el, name, namespace);\n }\n addClass(el, name) {\n this.delegate.addClass(el, name);\n }\n removeClass(el, name) {\n this.delegate.removeClass(el, name);\n }\n setStyle(el, style, value, flags) {\n this.delegate.setStyle(el, style, value, flags);\n }\n removeStyle(el, style, flags) {\n this.delegate.removeStyle(el, style, flags);\n }\n setProperty(el, name, value) {\n // We need to keep track of animation properties set on default renderer\n // So we can also set them also on the animation renderer\n if (this.shouldReplay(name)) {\n this.replay.push(renderer => renderer.setProperty(el, name, value));\n }\n this.delegate.setProperty(el, name, value);\n }\n setValue(node, value) {\n this.delegate.setValue(node, value);\n }\n listen(target, eventName, callback) {\n // We need to keep track of animation events registred by the default renderer\n // So we can also register them against the animation renderer\n if (this.shouldReplay(eventName)) {\n this.replay.push(renderer => renderer.listen(target, eventName, callback));\n }\n return this.delegate.listen(target, eventName, callback);\n }\n shouldReplay(propOrEventName) {\n //`null` indicates that we no longer need to collect events and properties\n return this.replay !== null && propOrEventName.startsWith(ANIMATION_PREFIX);\n }\n}\n\n/**\n * Returns the set of dependency-injection providers\n * to enable animations in an application. See [animations guide](guide/animations)\n * to learn more about animations in Angular.\n *\n * When you use this function instead of the eager `provideAnimations()`, animations won't be\n * rendered until the renderer is loaded.\n *\n * @usageNotes\n *\n * The function is useful when you want to enable animations in an application\n * bootstrapped using the `bootstrapApplication` function. In this scenario there\n * is no need to import the `BrowserAnimationsModule` NgModule at all, just add\n * providers returned by this function to the `providers` list as show below.\n *\n * ```typescript\n * bootstrapApplication(RootComponent, {\n * providers: [\n * provideAnimationsAsync()\n * ]\n * });\n * ```\n *\n * @param type pass `'noop'` as argument to disable animations.\n *\n * @publicApi\n */\nfunction provideAnimationsAsync(type = 'animations') {\n ɵperformanceMarkFeature('NgAsyncAnimations');\n return makeEnvironmentProviders([{\n provide: RendererFactory2,\n useFactory: (doc, renderer, zone) => {\n return new AsyncAnimationRendererFactory(doc, renderer, zone, type);\n },\n deps: [DOCUMENT, ɵDomRendererFactory2, NgZone]\n }, {\n provide: ANIMATION_MODULE_TYPE,\n useValue: type === 'noop' ? 'NoopAnimations' : 'BrowserAnimations'\n }]);\n}\n\n/**\n * @module\n * @description\n * Entry point for all animation APIs of the animation browser package.\n */\n\n/**\n * @module\n * @description\n * Entry point for all public APIs of this package.\n */\n\n// This file is not used to build this module. It is only used during editing\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { provideAnimationsAsync, AsyncAnimationRendererFactory as ɵAsyncAnimationRendererFactory };\n","import { Routes, provideRouter, withInMemoryScrolling, withPreloading } from '@angular/router';\r\nimport { AppRoutes } from './app.routes';\r\nimport { APP_INITIALIZER, LOCALE_ID, ErrorHandler, InjectionToken, ApplicationConfig, importProvidersFrom } from '@angular/core';\r\nimport { registerLocaleData } from '@angular/common';\r\nimport { provideClientHydration, withI18nSupport } from '@angular/platform-browser';\r\nimport { CustomPreloader, RouterOptions, environment } from '@env/environment';\r\nimport { provideHttpClient, withFetch, withInterceptorsFromDi } from '@angular/common/http';\r\nimport { Language, LanguagesService } from '@shared/services/languages/languages.service';\r\nimport {provideAnimationsAsync} from '@angular/platform-browser/animations/async';\r\nimport { HOST_URL } from '@shared/tokens/host-url';\r\nimport i18nIsoCountries, { LocaleData } from 'i18n-iso-countries';\r\n// import { WindowToken, windowProvider } from '@shared/tokens/window';\r\nimport { APP_LANGUAGES } from './shared/tokens/app-languages';\r\n\r\nimport { GlobalErrorHandler } from './error-handler/global-error-handler';\r\n\r\nimport { PORTAL_LANGUAGES_EXT } from 'src/portal-language-ext';\r\n\r\nimport { MetadataService } from '@shared/services/meta-data-service/meta-data.service';\r\nimport { ApolloModule } from 'apollo-angular';\r\n\r\nconst routes: Routes = AppRoutes;\r\n\r\nexport const TINYMCE_SCRIPT_SRC = new InjectionToken('TINYMCE_SCRIPT_SRC');\r\n\r\n\r\n// Importa durante il bootstrap i file di localizzazione di angular e i18n-iso-country\r\n// https://github.com/angular/angular-cli/issues/26409\r\n// https://github.com/angular/angular-cli/issues/26904\r\n// https://github.com/angular/angular/issues/23279\r\n// { with: { type: 'json' } } non supportato da BABEL (Angular), ci vorrebbe anche module: esnext nel tsconfig\r\n// https://dev.to/fkrasnowski/esnext-features-in-typescript-with-babel-36io\r\n// Al momento ho copiato i json i18n-iso-country in file .js e li esporto come default.\r\n\r\nexport function appLocalesLoadFactory(localeId: string): () => Promise {\r\n return (): Promise => {\r\n const countriesLocale = new Promise((resolve, reject) => {\r\n import(\r\n // `i18n-iso-countries/langs/${localeId}.json`, { with: { type: 'json' } }\r\n `../assets/iso-countries/langs/${localeId}.js`\r\n )\r\n .then((lang) => {\r\n i18nIsoCountries.registerLocale(lang.default);\r\n resolve(lang);\r\n }, reject);\r\n });\r\n const angularGlobalLocale = new Promise((resolve, reject) => {\r\n if (localeId === 'en') {\r\n resolve(localeId);\r\n } else {\r\n const getLocale = (lang) => {\r\n switch(lang) { // work around ESBUILD, Stanno studiando se utilizzare API Intl\r\n case 'it':\r\n return import('@angular/common/locales/it');\r\n case 'fr':\r\n return import('@angular/common/locales/fr');\r\n case 'de':\r\n return import('@angular/common/locales/de');\r\n case 'es':\r\n return import('@angular/common/locales/es');\r\n case 'ru':\r\n return import('@angular/common/locales/ru');\r\n }\r\n }\r\n // import(`${environment.production ? '../../../' : ''}node_modules/@angular/common/locales/${localeId}.mjs`) // non funziona\r\n\r\n getLocale(localeId)\r\n .then(module => {\r\n registerLocaleData(module.default);\r\n resolve(localeId);\r\n }, reject);\r\n }\r\n });\r\n return Promise.all([countriesLocale, angularGlobalLocale]);\r\n };\r\n}\r\n\r\nexport function tokenGetter(): string | null {\r\n return localStorage.getItem('token');\r\n}\r\n\r\nexport const appConfig: ApplicationConfig = {\r\n providers: [\r\n importProvidersFrom(\r\n ApolloModule\r\n ),\r\n provideRouter(\r\n routes,\r\n withInMemoryScrolling(RouterOptions),\r\n // withPreloading(CustomPreloader)\r\n ),\r\n { provide: HOST_URL, useValue: environment.frontendUrl },\r\n { provide: ErrorHandler, useClass: GlobalErrorHandler },\r\n \r\n // { provide: WindowToken, useFactory: windowProvider }, // questo è nuovo, da vedere...\r\n { provide: 'FALLBACK_COMPANY_IMAGE', useValue: 'v1687436485/assets/generic-company-grey.svg' },\r\n { provide: 'FALLBACK_NEWS_IMAGE', useValue: 'v1649509226/assets/generic-news.jpg' },\r\n { provide: 'FALLBACK_PRODUCT_IMAGE', useValue: 'v1649509201/assets/generic-product.jpg' },\r\n { provide: 'FALLBACK_EVENT_IMAGE', useValue: 'v1649578160/assets/generic-event.png' },\r\n { provide: 'TINYMCE_API_KEY', useValue: '7otrhv6k3p3tj1uuo2baqj41quik1ycnjbxl7ojsa5weffb8' },\r\n { provide: 'GOOGLE_CLIENT_ID', useValue: environment.googleClientID },\r\n { provide: TINYMCE_SCRIPT_SRC, useValue: environment.tinyMce },\r\n { provide: APP_LANGUAGES, useValue: PORTAL_LANGUAGES_EXT.map(({code, name, flag}) => new Language(code, name, flag))},\r\n {\r\n provide: APP_INITIALIZER,\r\n useFactory: appLocalesLoadFactory,\r\n deps: [LOCALE_ID],\r\n multi: true\r\n }, \r\n provideAnimationsAsync(),\r\n provideClientHydration(withI18nSupport()),\r\n provideHttpClient(withFetch(), withInterceptorsFromDi()),\r\n LanguagesService,\r\n MetadataService\r\n ]\r\n};\r\n\r\n\r\n","import { Platform } from '@angular/cdk/platform';\r\nimport { ErrorHandler, Injectable, Injector } from '@angular/core';\r\nimport { HttpErrorResponse } from '@angular/common/http';\r\nimport { ErrorService } from './services/error.service';\r\nimport { NotificationService } from '../shared/services/notification/notification.service';\r\nimport { ApolloError } from '@apollo/client/errors';\r\nimport { environment } from '@env/environment';\r\nimport { ApolloNetworkError } from './custom-errors/apollo-network-error';\r\n\r\n@Injectable()\r\nexport class GlobalErrorHandler implements ErrorHandler {\r\n\r\n // Error handling is important and needs to be loaded first.\r\n // Because of this we should manually inject the services with Injector.\r\n private offlineMessage = $localize`No internet connection.`;\r\n private serverErrorMsg = $localize`Connection to server failed.`;\r\n private unauthorizedErrorMsg = $localize`You are not authorized for this action.`;\r\n constructor(\r\n private injector: Injector,\r\n ) { }\r\n\r\n handleError(error: Error | HttpErrorResponse) {\r\n\r\n const errorService = this.injector.get(ErrorService);\r\n const platform = this.injector.get(Platform);\r\n const notifier = this.injector.get(NotificationService);\r\n\r\n if (platform.isBrowser && !navigator.onLine) {\r\n notifier.showErrorMessage(this.offlineMessage);\r\n return;\r\n }\r\n if (error instanceof HttpErrorResponse) {\r\n // Server Error\r\n notifier.showErrorMessage(this.serverErrorMsg);\r\n } else if (error instanceof ApolloNetworkError) {\r\n notifier.showErrorMessage(this.serverErrorMsg);\r\n // const response: any = error.graphQLErrors[0]?.extensions?.response;\r\n // if (networkError) {\r\n // // Server Error\r\n // notifier.showErrorMessage(this.serverErrorMsg);\r\n // } else if(response && response['statusCode'] === 401) {\r\n // notifier.showErrorMessage(this.unauthorizedErrorMsg);\r\n // }\r\n\r\n errorService.handleError(error);\r\n\r\n } else if (error instanceof ApolloError) {\r\n const { graphQLErrors } = error;\r\n for (let err of graphQLErrors) {\r\n errorService.handleError(err);\r\n }\r\n } else {\r\n // Client Error\r\n errorService.handleError(error);\r\n notifier.showErrorMessage(error.message);\r\n }\r\n\r\n if (environment.debugOn) {\r\n console.error(error);\r\n }\r\n }\r\n}\r\n","import { PortalLang, PortalLangISO } from \"portal-languages\";\r\n\r\ntype PortalLanguageObj = {\r\n code: PortalLang;\r\n name: string;\r\n iso: PortalLangISO;\r\n flag: string;\r\n}\r\n\r\nexport const PORTAL_LANGUAGES_EXT: PortalLanguageObj[] = [\r\n {code: 'en', name: $localize`English`, iso: 'en-US', flag: 'us' },\r\n {code: 'it', name: $localize`Italian`, iso: 'it-IT', flag: 'it' },\r\n {code: 'de', name: $localize`German`, iso: 'de-DE', flag: 'de' },\r\n {code: 'fr', name: $localize`French`, iso: 'fr-FR', flag: 'fr' },\r\n {code: 'es', name: $localize`Spanish`, iso: 'es-ES', flag: 'es' },\r\n {code: 'ru', name: $localize`Russian`, iso: 'ru-RU', flag: 'ru' },\r\n]\r\n"]}