1import{a as j}from"./chunk-CCKOI4AJ.js";import{a}from"./chunk-COLH7QI4.js";import"./chunk-GUBCWVU7.js";import{e as I,k as A,m as h,n as v}from"./chunk-UUNO5GDV.js";import"./chunk-PO5J34ZD.js";import"./chunk-HNE27PEK.js";import"./chunk-ZPQWRLR2.js";import"./chunk-FVUU4L5U.js";import"./chunk-7O7TK5WI.js";import"./chunk-JXSELCIT.js";import{ca as k}from"./chunk-XNSPEJTL.js";import{d as S}from"./chunk-KDRXFQ76.js";import"./chunk-O45SUNNM.js";import{r as C}from"./chunk-32H7SGOY.js";import"./chunk-EZQWKGWO.js";import{Q as f,i as l,qa as i,ua as n,va as p,w as d}from"./chunk-PSAQVZ5Y.js";var u=(()=>{let e=class e{constructor(r,o){this.navigationService=r,this.authService=o,this.jwtHelper=new I}canActivate(r){let o=r.paramMap.get("token")||this.authService.getToken();return!(o&&o.split(".").length===3)||this.jwtHelper.isTokenExpired(o)?(this.navigationService.navigation(["/home"]),!1):this.authService.decodePayloadJWT()?.IsAgencyOwner==="True"?(this.navigationService.navigation(["/home"]),!1):!0}};e.\u0275fac=function(o){return new(o||e)(n(v),n(h))},e.\u0275prov=i({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var w=(()=>{let e=class e{constructor(r,o){this.navigationService=r,this.authService=o}canActivate(r,o){return l(this,null,function*(){return this.validateAccess(r)})}canActivateChild(r,o){return l(this,null,function*(){return this.validateAccess(r)})}validateAccess(r){return l(this,null,function*(){let o=r.paramMap.get("token"),s=r.paramMap.get("checkout"),c=r.paramMap.get("cartId");if(o||(o=this.authService.getToken()),this.authService.hasValidToken(o)){let m={token:o};return localStorage.setItem("userSessionToken",JSON.stringify(m)),!0}return s?((yield this.authService.requireLogin("/home",!0))&&this.navigationService.navigation([`/user-area/personal/${s}/${c}`]),!1):(this.navigationService.navigation(["/home"],!0),!1)})}};e.\u0275fac=function(o){return new(o||e)(n(v),n(h))},e.\u0275prov=i({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var g=(t,e)=>{let T=p(j),r=p(k),o=p(C),s=p(S),c=t.paramMap.get("bookingId");return c?T.getBookingById(c).pipe(f(m=>{console.error("Erro no Resolver de Carrinho:",m);let P=o.instant("agent-cart.detail.load-error")||"Erro ao carregar detalhes do carrinho.";return r.snackError(P),d(null)})):(r.snackError("ID do booking n\xE3o informado na URL."),s.navigate(["/"]),d(null))};var y=(()=>{let e=class e{constructor(r){this.stateOrProvinceService=r}resolve(r,o){return this.stateOrProvinceService.getStateOrProvince()}};e.\u0275fac=function(o){return new(o||e)(n(A))},e.\u0275prov=i({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Q=[{path:"",canActivateChild:[w],children:[{path:"",redirectTo:"personal",pathMatch:"full"},{path:"personal",loadComponent:()=>import("./chunk-NHCB3NBM.js").then(t=>t.PersonalComponent),resolve:{countries:a},canActivate:[u]},{path:"personal/:checkout/:cartId",loadComponent:()=>import("./chunk-NHCB3NBM.js").then(t=>t.PersonalComponent),resolve:{countries:a},canActivate:[u]},{path:"personal/:checkout/:cartId/:token",loadComponent:()=>import("./chunk-NHCB3NBM.js").then(t=>t.PersonalComponent),resolve:{countries:a},canActivate:[u]},{path:"settings",loadComponent:()=>import("./chunk-ZH6MBQEB.js").then(t=>t.StoreSettingsComponent)},{path:"settings/:checkout/:cartId",loadComponent:()=>import("./chunk-ZH6MBQEB.js").then(t=>t.StoreSettingsComponent)},{path:"settings/:checkout/:cartId/:token",loadComponent:()=>import("./chunk-ZH6MBQEB.js").then(t=>t.StoreSettingsComponent)},{path:"contracts",loadComponent:()=>import("./chunk-EA3XLCSA.js").then(t=>t.ContractsComponent)},{path:"registration",loadComponent:()=>import("./chunk-DHJKMHRV.js").then(t=>t.RegistrationComponent),resolve:{countries:a,stateOrProvince:y}},{path:"coupons",loadComponent:()=>import("./chunk-CCW2OBXU.js").then(t=>t.CouponsComponent)},{path:"personalization",loadComponent:()=>import("./chunk-IQROXJOD.js").then(t=>t.PersonalizationComponent),resolve:{countries:a}},{path:"commission",loadComponent:()=>import("./chunk-O7XNIGV4.js").then(t=>t.CommissionComponent)},{path:"shopping-cart",loadComponent:()=>import("./chunk-TJCDKFOD.js").then(t=>t.ShoppingCartComponent)},{path:"shopping-cart-detail/:bookingId",loadComponent:()=>import("./chunk-RVZF7TUX.js").then(t=>t.ShoppingCartDetailComponent),resolve:{cartData:g}},{path:"sales",loadComponent:()=>import("./chunk-YSVLKIOQ.js").then(t=>t.SalesComponent)},{path:"sales-detail/:bookingId",loadComponent:()=>import("./chunk-YYUUQ4OX.js").then(t=>t.SalesDetailComponent),resolve:{cartData:g}},{path:"**",redirectTo:"personal",pathMatch:"full"}]}];export{Q as USER_AREA_ROUTES};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.