PageSourceSearch

https://www.romsoes.no/shop/377.8e89b3f94aa3c556.js

js romsoes.no collected 2026-09-25 23:04:22 UTC 9,132 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkweb_bakery_page=self.webpackChunkweb_bakery_page||[]).push([[377],{28377(X,k,i){i.d(k,{ProfileModule:()=>Y});var h=i(89417),p=i(49769),c=i(14616),v=i(99414),a=i(28487),l=i(78601),P=i(12642),d=i(93049),y=i(67376),m=i(16245),t=i(35547),_=i(42667),g=i(24641),M=i(75114),x=i(43908);const b=()=>["my-account"],s=()=>["active"],O=()=>["orders-history"],A=()=>["delivery-address"],L=()=>["billing-info"],U=()=>["cake-reminders"],R=()=>["/","profile"];function T(n,j){if(1&n&&(t.j41(0,"div",13)(1,"div",14)(2,"a",15),t.nrm(3,"i",16)(4,"span",17),t.k0s()()()),2&n){const e=t.XpG();t.R7$(2),t.Y8G("href",e.homeLink,t.B4B),t.R7$(2),t.Y8G("translate","common.back")}}function S(n,j){if(1&n&&(t.j41(0,"div",18)(1,"a",19),t.nrm(2,"i",20),t.k0s(),t.j41(3,"div",21),t.EFF(4),t.k0s()()),2&n){const e=t.XpG();t.R7$(),t.Y8G("routerLink",t.lJ4(2,R)),t.R7$(3),t.JRh(e.pageHeader)}}let F=(()=>{class n extends l.CustomComponent{_router;_route;_translator;_userStore;_userManager;_uiContext;_context;_analyticTracker;isSharedAccount;showReminderSection;pageHeader="";homeLink="";constructor(e,o,r,C,u,w,H,I){super(),this._router=e,this._route=o,this._translator=r,this._userStore=C,this._userManager=u,this._uiContext=w,this._context=H,this._analyticTracker=I,this._subscribe()}ngOnInit(){this.isProfile()&&this._navigateToDefaultPage(),this._analyticTracker.trackPage("Profile Page"),this.homeLink=this._getHomeLink(),this.showReminderSection=this._context.settings.showReminderSection}_getHomeLink(){const{bakery:{webSiteUrl:e},shopUrl:o}=this._context.settings;return o||e||"/"}logout(){this._analyticTracker.trackLogout(),this._userManager.logout()}isProfile(){const e=this._router.url.split("/");return"profile"===(0,y.last)(e)}_subscribe(){this.addSubscriber(this._router.events.subscribe(e=>{if(e instanceof m.wF){const o=this._route.snapshot.children;let r=o[0]?o[0].data.menuTransKey:"";r&&(this.pageHeader=this._translator.instant(r)),this.isProfile()&&this._navigateToDefaultPage()}})),this.addSubscriber(this._userStore.select(a.getUser).subscribe(e=>{e||this._router.navigate(["/"]),e&&e.accountType===a.USER_ACCOUNT_TYPE.SHARED_BUSINESS_ACCOUNT&&(this.isSharedAccount=!0)}))}_navigateToDefaultPage(){this._uiContext.isMobile()||this._router.navigate(["my-account"],{relativeTo:this._route})}static \u0275fac=function(o){return new(o||n)(t.rXU(m.Ix),t.rXU(m.nX),t.rXU(c.c$),t.rXU(_.il),t.rXU(a.UserManager),t.rXU(l.UiContextService),t.rXU(g.e),t.rXU(M.a))};static \u0275cmp=t.VBU({type:n,selectors:[["profile"]],standalone:!1,features:[t.Vt3],decls:27,vars:34,consts:[[1,"container","mt-md-min-5"],[1,"row"],["class","col-sm-8 col-lg-9",4,"ngIf"],[1,"col-md-4","col-lg-3"],[1,"sidebar-menu"],[1,"sidebar-menu-item",3,"routerLink","hidden","routerLinkActive","translate"],[1,"icon-chevron-right"],[1,"sidebar-menu-item",3,"routerLink","routerLinkActive","translate"],[1,"sidebar-menu-item",3,"hidden","routerLink","routerLinkActive","translate"],[1,"sidebar-menu-item","d-md-none",3,"click","href","translate"],[1,"col-md-8","col-lg-9"],["class","back-to-menu d-block d-md-none",4,"ngIf"],[1,"pb-5"],[1,"col-sm-8","col-lg-9"],[1,"profile-back","d-block","d-md-none"],[1,"text-body","fw-bold","d-flex","align-items-center",3,"href"],[1,"icon-chevron-left","me-1","lh-1"],[1,"font-md","back-button-text","lh-1",3,"translate"],[1,"back-to-menu","d-block","d-md-none"],[3,"routerLink"],[1,"icon-chevron-left"],[1,"font-md","fw-bold"]],template:function(o,r){1&o&&(t.j41(0,"entire-wrapper")(1,"div",0)(2,"div",1),t.DNE(3,T,5,2,"div",2),t.j41(4,"div",3)(5,"div",4)(6,"a",5),t.EFF(7," My Account "),t.nrm(8,"i",6),t.k0s(),t.j41(9,"a",7),t.EFF(10," Orders History "),t.nrm(11,"i",6),t.k0s(),t.j41(12,"a",7),t.EFF(13," Delivery Address "),t.nrm(14,"i",6),t.k0s(),t.j41(15,"a",8),t.EFF(16," Payment Preferences "),t.nrm(17,"i",6),t.k0s(),t.j41(18,"a",8),t.EFF(19," Cake Calendar "),t.nrm(20,"i",6),t.k0s(),t.j41(21,"a",9),t.bIt("click",function(u){return u.preventDefault(),r.logout()}),t.EFF(22," Logout "),t.k0s()()(),t.j41(23,"div",10),t.DNE(24,S,5,3,"div",11),t.j41(25,"div",12),t.nrm(26,"router-outlet"),t.k0s()()()()()),2&o&&(t.R
17$(3),t.Y8G("ngIf",r.isProfile()),t.R7$(),t.AVh("profile-child",!r.isProfile()),t.R7$(2),t.Y8G("routerLink",t.lJ4(24,b))("hidden",r.isSharedAccount)("routerLinkActive",t.lJ4(25,s))("translate","profile.menu.myAccount"),t.R7$(3),t.Y8G("routerLink",t.lJ4(26,O))("routerLinkActive",t.lJ4(27,s))("translate","profile.menu.ordersHistory"),t.R7$(3),t.Y8G("routerLink",t.lJ4(28,A))("routerLinkActive",t.lJ4(29,s))("translate","profile.menu.deliveryAddress"),t.R7$(3),t.Y8G("hidden",r.isSharedAccount)("routerLink",t.lJ4(30,L))("routerLinkActive",t.lJ4(31,s))("translate","profile.menu.paymentPreferences"),t.R7$(3),t.Y8G("hidden",r.isSharedAccount||!r.showReminderSection)("routerLink",t.lJ4(32,U))("routerLinkActive",t.lJ4(33,s))("translate","profile.menu.cakeCalendar"),t.R7$(3),t.Y8G("href","#",t.B4B)("translate","profile.menu.logout"),t.R7$(3),t.Y8G("ngIf",!r.isProfile()))},dependencies:[p.bT,m.n3,d.Wk,d.wQ,c.Mm,x.a],styles:["body[_ngcontent-%COMP%]{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}h1[_ngcontent-%COMP%], h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%], h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%], .h1[_ngcontent-%COMP%], .h2[_ngcontent-%COMP%], .h3[_ngcontent-%COMP%], .h4[_ngcontent-%COMP%], .h5[_ngcontent-%COMP%], .h6[_ngcontent-%COMP%]{font-weight:700}h4[_ngcontent-%COMP%], .h4[_ngcontent-%COMP%]{font-size:1.375rem}b[_ngcontent-%COMP%], strong[_ngcontent-%COMP%]{font-weight:700}.fw-super-bold[_ngcontent-%COMP%]{font-weight:900!important}.font-xxxs[_ngcontent-%COMP%]{font-size:.5625rem!important}.font-xxs[_ngcontent-%COMP%]{font-size:.625rem!important}.font-xs[_ngcontent-%COMP%]{font-size:.75rem!important}.font-sm[_ngcontent-%COMP%]{font-size:.8125rem!important}.font-md[_ngcontent-%COMP%]{font-size:.875rem!important}.font-lg[_ngcontent-%COMP%]{font-size:1rem!important}.font-xl[_ngcontent-%COMP%]{font-size:1.125rem!important}.font-xxl[_ngcontent-%COMP%]{font-size:1.25rem!important}.font-xxxl[_ngcontent-%COMP%]{font-size:1.4375rem!important}.font-2xl[_ngcontent-%COMP%]{font-size:1.5rem!important}.font-3xl[_ngcontent-%COMP%]{font-size:1.75rem!important}.font-4xl[_ngcontent-%COMP%]{font-size:2rem!important}.font-5xl[_ngcontent-%COMP%]{font-size:2.5rem!important}.font-6xl[_ngcontent-%COMP%]{font-size:3.125rem!important}.font-mute[_ngcontent-%COMP%]{color:#828282}[_nghost-%COMP%]{display:block;min-height:750px}@media(max-width:991px){[_nghost-%COMP%]{min-height:450px}}@media(max-width:767px){[_nghost-%COMP%]{min-height:initial}}@media(max-width:767px){.profile-child[_ngcontent-%COMP%]{display:none}}.profile-back[_ngcontent-%COMP%]{position:relative;padding:15px 0;margin-top:5px}.back-to-menu[_ngcontent-%COMP%]{position:relative;min-height:60px;padding:20px 45px;text-align:center;margin:0 -15px}.back-to-menu[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#333;position:absolute;top:0;bottom:0;left:0;padding:20px 15px}"]})}return n})(),$=(()=>{class n{_context;homeLink="";constructor(e){this._context=e}ngOnInit(){this.homeLink=this._getHomeLink()}_getHomeLink(){const{bakery:{webSiteUrl:e},shopUrl:o}=this._context.settings;return o||e||"/"}static \u0275fac=function(o){return new(o||n)(t.rXU(g.e))};static \u0275cmp=t.VBU({type:n,selectors:[["profile-back-button"]],standalone:!1,decls:4,vars:2,consts:[[1,"d-none","d-md-flex","align-items-center","h-100"],[1,"pointer","text-body","d-flex","align-items-center",3,"href"],[1,"icon-chevron-left","me-1","lh-1"],[1,"font-md","back-button-text","lh-1",3,"translate"]],template:function(o,r){1&o&&(t.j41(0,"div",0)(1,"a",1),t.nrm(2,"i",2)(3,"span",3),t.k0s()()),2&o&&(t.R
17$(),t.Y8G("href",r.homeLink,t.B4B),t.R7$(2),t.Y8G("translate","common.back"))},dependencies:[c.Mm],encapsulation:2})}return n})();var f=i(729);const G=d.iI.forChild([{path:"",component:F,children:[{path:"",outlet:"header-left-side",component:$},{path:"my-account",component:a.MyAccountComponent,canActivate:[f.K],data:{meta:{title:"profile.menu.myAccount"},menuTransKey:"profile.menu.myAccount"}},{path:"orders-history",component:a.OrdersHistoryComponent,data:{meta:{title:"profile.menu.ordersHistory"},menuTransKey:"profile.menu.ordersHistory"}},{path:"cake-reminders",component:a.CakeRemindersComponent,canActivate:[f.K],data:{meta:{title:"profile.menu.cakeCalendar"},menuTransKey:"profile.menu.cakeCalendar"}},{path:"delivery-address",component:a.DeliveryAddressComponent,data:{meta:{title:"profile.menu.deliveryAddress"},menuTransKey:"profile.menu.deliveryAddress"}},{path:"billing-info",component:a.BillingInfoComponent,canActivate:[f.K],data:{meta:{title:"profile.menu.paymentPreferences"},menuTransKey:"profile.menu.paymentPreferences"}}]}]);var B=i(74361),E=i(85802);let Y=(()=>{class n{static \u0275fac=function(o){return new(o||n)};static \u0275mod=t.$C({type:n});static \u0275inj=E.G2t({providers:[a.CitiesApiService,l.FileUploadService],imports:[h.YN,h.X1,p.MD,P.CakeItEasyWebUiModule,l.NgCakeItEasyUtilsModule,G,c.h,v.Bn,a.UsersProfileModule,B.R]})}return n})()}}]);

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.