"use strict";var __defProp=Object.defineProperty,__name=(target,value)=>__defProp(target,"name",{value,configurable:!0});exports.id=505,exports.ids=[505],exports.modules={57505:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{LogoutModule:()=>LogoutModule,routes:()=>routes});var session_service=__webpack_require__(35287),cart_service=__webpack_require__(62762),wish_service=__webpack_require__(34413),core=__webpack_require__(40305),router=__webpack_require__(14195);class LogoutComponent{constructor(sessionService,cartService,wishService,router2){this.sessionService=sessionService,this.cartService=cartService,this.wishService=wishService,this.router=router2}ngOnInit(){this.sessionService.user=void 0,this.cartService.logout(),this.wishService.logout(),this.router.navigate(["/"]).catch(error=>console.error(error))}}__name(LogoutComponent,"LogoutComponent"),LogoutComponent.\u0275fac=__name(function(t){return new(t||LogoutComponent)(core.Y36(session_service.m),core.Y36(cart_service.N),core.Y36(wish_service.Q),core.Y36(router.F0))},"LogoutComponent_Factory"),LogoutComponent.\u0275cmp=core.Xpm({type:LogoutComponent,selectors:[["ng-component"]],decls:0,vars:0,template:__name(function(rf,ctx){},"LogoutComponent_Template"),encapsulation:2,changeDetection:0});var common=__webpack_require__(89318),shared_module=__webpack_require__(56319);const routes=[{path:"",component:LogoutComponent,pathMatch:"full"}];class LogoutModule{}__name(LogoutModule,"LogoutModule"),LogoutModule.\u0275fac=__name(function(t){return new(t||LogoutModule)},"LogoutModule_Factory"),LogoutModule.\u0275mod=core.oAB({type:LogoutModule}),LogoutModule.\u0275inj=core.cJS({imports:[common.ez,router.Bz.forChild(routes),shared_module.m]})}};