1import{g as w,h as jt,i as Wt,j as k,k as Yt,l as Kt,m as qt,n as Jt,o as Qt,p as et,q as it,s as U,t as ot,u as Zt,v as te,w as ee,x as nt,y as It}from"./chunk-ZRQX6FB3.js";import{d as Ht,e as Pe}from"./chunk-RKUXBIEK.js";import{b as Ut,d as Ge}from"./chunk-DHPBQJXY.js";import{a as m,b as xt,e as wt,g as kt,i as Xt,j as ve}from"./chunk-NNYVCRBG.js";import{a as x,e as Tt}from"./chunk-EXKGI2HL.js";import{e as Gt,f as ye,g as Pt,h as De,i as $t,j as Le}from"./chunk-3YIKXJBA.js";import"./chunk-4YIWZVON.js";import{ra as tt,sa as Vt}from"./chunk-34AQ4RF4.js";import{a as L,b as Q,q as b,u as Z}from"./chunk-4AZ7E375.js";import{a as zt,b as Re}from"./chunk-RMA2HIQT.js";import{i as Dt,j as Nt,k as q,n as bt,r as vt}from"./chunk-2WVVQYB4.js";import{N as Bt,P as be}from"./chunk-H4AV54LV.js";import"./chunk-LJSTVY2I.js";import{Nb as Fe,ra as Rt}from"./chunk-JUMBU524.js";import"./chunk-AAJMGBNN.js";import"./chunk-3P2XXC4G.js";import{b as D,d as J}from"./chunk-R4655YNO.js";import{e as V,wb as he}from"./chunk-E7BPQBRH.js";import"./chunk-AGDP37NI.js";import{E as Lt,J as Me}from"./chunk-BTYWQ7SO.js";import"./chunk-NKXYGIDJ.js";import{b as yt,c as A,f as Ae}from"./chunk-YOA2FHGI.js";import{E as K,r as y}from"./chunk-FILPITJF.js";import"./chunk-72NVTSOJ.js";import"./chunk-3Z7KUK52.js";import{G as Y,I as Ft}from"./chunk-YOUCZKXO.js";import{Ka as W,Ua as ht}from"./chunk-DCKIUH2K.js";import{De as B,Fa as mt,Oc as g,Qa as _,Qc as O,Vc as p,Wc as n,We as E,Xb as f,Xc as r,Ya as S,Yc as c,Za as l,ae as Mt,fd as F,ib as ut,l as dt,md as Ot,nd as Et,od as $,qc as h,sd as At,td as C,vc as gt,vd as N,we as I,za as u}from"./chunk-KXLDY3WT.js";import{a as j,b as Ct,e as T}from"./chunk-OUBPMQVY.js";var ie,$e,Be,oe=T(()=>{ot();ie=(e=[])=>e.reduce((a,t)=>{if(t.allowed){let i=t.subscriptionType;if(i){let o={text:t.text,type:i};Object.values(it).forEach(s=>{$e(t[s])&&(o[s]=Be(t[s]));}),a.push(o);}}return a;},[]),$e=e=>e!=="NA"&&e!==void 0,Be=e=>e==="ACTIVE";});var ne,St,ae,se,re=T(()=>{ne="Dina inst\xE4llningar \xE4r sparade.",St="Klart!",ae="Klart! Nu kan du hantera dina notisinst\xE4llningar under Profil och inst\xE4llningar.",se="F\xF6retagsanv\xE4ndarna m\xE5ste sj\xE4lva st\xE4lla in sina notiser under Profil och inst\xE4llningar i Internetbanken.";});var at,v,ce=T(()=>{E();et();vt();Re();ot();Fe();he();Ae();ve();Pe();K();mt();oe();re();at={isActive:void 0,sections:[],subscriptions:[],loadingStatus:{loading:!1,loaded:!1},isSuccess:void 0,error:!1},v=xt(Xt(at),wt(({loadingStatus:e,error:a})=>({isLoaded:I(()=>e().loaded||a())})),Ht((e,a=_(yt),t=_(y),i=_(zt))=>({deleteFailEffect:a.pipe(A(Qt),u(({error:{errorMessages:o}})=>{m(e,{loadingStatus:{loading:!1,loaded:!0},isActive:!0}),i.appendNotification({message:o.general?.[0]?.message,severity:V.Error});})),deleteSuccessEffect:a.pipe(A(Jt),u(()=>{m(e,j({},at)),t.dispatch(w());})),fetchEffect:a.pipe(A(w,qt),u(()=>{m(e,{isActive:void 0,loadingStatus:{loading:!0,loaded:!1}});})),fetchFailEffect:a.pipe(A(Wt),u(({error:o})=>{m(e,Ct(j({},at),{error:!0})),t.dispatch(Dt({error:o,placement:o.errorMessages.general?.[0]?.code==="FORBIDDEN"?U:q.PageDefault}));})),fetchSuccessEffect:a.pipe(A(jt),u(({payload:{isActive:o,sections:s,availableSubscriptions:G}})=>{m(e,{isActive:o,sections:s||[],subscriptions:ie(G),loadingStatus:{loading:!1,loaded:!0}});})),updateEffect:a.pipe(A(k),u(()=>{m(e,{loadingStatus:{loading:!0,loaded:!1},isSuccess:void 0});})),updateFailEffect:a.pipe(A(Kt),u(({error:{errorMessages:o}})=>{m(e,{loadingStatus:{loading:!1,loaded:!0},isSuccess:!1}),i.appendNotification({message:o.general?.[0]?.message,severity:V.Error});})),updateSuccessEffect:a.pipe(A(Yt),u(()=>{m(e,{loadingStatus:{loading:!1,loaded:!0},isSuccess:!0}),e.isActive()?i.appendNotification({title:St,message:ne,severity:V.Success}):i.appendNotification({title:St,message:t.selectSignal(Rt)()?se:ae,severity:V.Success}
1),t.dispatch(w());}))})),kt({onDestroy(e){m(e,j({},at));}}));});var st=T(()=>{ce();});var _e,Ne,Te,Ie,Se,le,rt=T(()=>{_e="Tillbaka",Ne="Spara",Te="Aktivera",Ie="Om du avslutar kommer alla dina notisinst\xE4llningar f\xF6rsvinna samt alla notisinst\xE4llningar f\xF6r samtliga anst\xE4llda p\xE5 f\xF6retaget. \xC4r du s\xE4ker p\xE5 att du vill forts\xE4tta?",Se="Profil och inst\xE4llningar",le="Hantera notiser f\xF6r ditt f\xF6retag";});var ct,R,H=T(()=>{It();rt();ct=Object.values(ee),R=[{label:Se,link:te.ProfileCorporate},{label:le,link:"/notisinstallningarforetag"}];});var _t,lt=T(()=>{ot();_t=e=>Object.keys(e).map(a=>{let t={subscriptionType:a};return Object.values(it).forEach(i=>{t[i]=e[a][i];}),t;});});function xe(e,a){if(e&1){let t=F();n(0,"fdp-notifications-form",15),C("submitValues",function(o){S(t);let s=N();return l(s.save(o));})("hasChanged",function(o){S(t);let s=N();return l(s.markAsDirty(o));}),r();}if(e&2){let t=N();p("allowNoneTrue",!1)("allowedTypes",t.allowedTypes)("hideHeader",!0)("labelSubmit",t.buttonSaveLabel)("isLoading",t.isLoading())("isCancellable",!1)("sections",t.sections())("subscriptions",t.subscriptions());}}var fe,pe=T(()=>{ht();E();be();Ft();et();Tt();It();st();Z();J();Vt();K();H();rt();lt();E();Q();fe=(()=>{class e{constructor(){this.isDirty=B(),this.allowedTypes=ct,this.breadcrumbs=R,this.buttonSaveLabel=Ne,this.dialog=_(Bt),this.scroller=_(W),this.store=_(y),this.agreementsStore=_(v),this.isLoading=I(()=>!!this.agreementsStore.loadingStatus().loading),this.sections=I(()=>this.agreementsStore.sections()),this.subscriptions=I(()=>this.agreementsStore.subscriptions());}disable(){let t={message:Ie};this.dialog.open(Zt,{data:t});}markAsDirty(t){this.isDirty.emit(t);}save(t){this.store.dispatch(k({payload:{updateList:_t(t)}})),this.scroller.scrollToPosition([0,0]);}static{this.ɵfac=function(i){return new(i||e)();};}static{this.ɵcmp=h({type:e,selectors:[["fdp-edit-notifications"]],outputs:{isDirty:"isDirty"},decls:24,vars:2,consts:()=>{let t;t="Notisinst\xE4llningar";let i;i="V\xE4lj notiser";let o;o="\xC4ndra notiser f\xF6r f\xF6retaget";let s;s="Till administrera beh\xF6righeter";let G;G="St\xE4ng av notiser";let P;P="St\xE4ng av";let X;X="Till v\xE4nster kan du \xE4ndra vilka notiser som ska finnas tillg\xE4ngliga f\xF6r de anv\xE4ndare p\xE5 f\xF6retaget som har obegr\xE4nsad beh\xF6righet.";let z;z="Anv\xE4ndare p\xE5 f\xF6retaget som inte har obegr\xE4nsad beh\xF6righet f\xE5r tillg\xE5ng till notiser genom att beh\xF6righetsadministrat\xF6ren ger dem beh\xF6righeten Bevaka \xE4renden. Om du \xE4r beh\xF6righetsadministrat\xF6r kan du g\xE5 vidare via l\xE4nken nedan f\xF6r att g\xF6ra det.";let d;return d="H\xE4r kan du st\xE4nga av notiser f\xF6r f\xF6retaget. Du kan n\xE4r som helst aktivera notiser igen. V\xE4ljer du att st\xE4nga av s\xE5 kommer notiser f\xF6r alla anst\xE4llda p\xE5 f\xF6retaget att upph\xF6ra.",[X,z,d,[3,"data"],["heading",t],["layout","column-66-33"],["layout-size","2"],["heading",i,"hide",""],[3,"allowNoneTrue","allowedTypes","hideHeader","labelSubmit","isLoading","isCancellable","sections","subscriptions"],["heading",o],[1,"acorn-default-block-margins"],["type","internal","label",s,"routerLink","/behorighet-administration/anvandare"],["heading",G],["layout","horizontal"],["type","button","priority","secondary","label",P,3,"click"],[3,"submitValues","hasChanged","allowNoneTrue","allowedTypes","hideHeader","labelSubmit","isLoading","isCancellable","sections","subscriptions"]];},template:function(i,o){i&1&&(n(0,"acorn-custom-page"),c(1,"acorn-custom-page-breadcrumb-container",3)(2,"acorn-custom-page-header",4),n(3,"acorn-custom-page-body",5)(4,"acorn-section",6),c(5,"acorn-section-header",7),n(6,"acorn-section-body"),g(7,xe,1,8,"fdp-notifications-form",8),r()(),n(8,"acorn-section"),c(9,"acorn-section-header",9),n(10,"acorn-section-body",10)(11,"div")(12,"p"),$(13,0),r(),n(14,"p"),$(15,1),r()(),c(16,"acorn-prominent-link",11),r()(),n(17,"acorn-section"),c(18,"acorn-section-header",12),n(19,"acorn-section-body")(20,"div"),$(21,2),r(),n(22,"acorn-button-container",13)(23,"acorn-button",14),C("click",function(){return o.disable();}),r()()()()()()),i&2&&(f(),p("data",o.breadcrumbs),f(6),O(o.sections().length?7:-1));},dependencies:[tt,L,x,Y,nt,D,b],encapsulation:2,changeDetection:0});}}return e;})();});function we(e,a){e&1&&(n(0,"span"),$(1,1),r());}function ke(e,a){e&1&&(n(0,"span"),$(1,2),r());}var Ce,de=T(()=>{E();Ft();Z();J();Vt();Le();H();E();Q();ye();De();Ce=(()=>{class e{constructor(){this.accept=B(),this.breadcrumbs=R;}onAccept(){this.accept.emit();}static{this.ɵfac=function(i){return new(i||e)();};}
1static{this.ɵcmp=h({type:e,selectors:[["fdp-intro-notifications"]],outputs:{accept:"accept"},decls:21,vars:1,consts:()=>{let t;t="F\xF6retagets Notisinst\xE4llningar";let i;i="Aktivera notiser f\xF6r f\xF6retaget";let o;o="Forts\xE4tt";let s;s="Till administrera beh\xF6righeter";let G;G="Till administrera beh\xF6righeter";let P;P="Alla anv\xE4ndare p\xE5 f\xF6retaget som har obegr\xE4nsad beh\xF6righet har tillg\xE5ng till de utvalda notiserna. Varje anv\xE4ndare m\xE5ste dock sj\xE4lv g\xE5 till sidan Notisinst\xE4llningar f\xF6r att v\xE4lja vilka notiser de vill ta emot."+"[\uFFFD#13\uFFFD\uFFFD/#13\uFFFD|\uFFFD#14\uFFFD\uFFFD/#14\uFFFD]"+""+"[\uFFFD#13\uFFFD\uFFFD/#13\uFFFD|\uFFFD#14\uFFFD\uFFFD/#14\uFFFD]"+" Anv\xE4ndare p\xE5 f\xF6retaget som inte har obegr\xE4nsad beh\xF6righet f\xE5r tillg\xE5ng till notiser genom att beh\xF6righetsadministrat\xF6ren ger dem beh\xF6righeten Bevaka \xE4renden. Som beh\xF6righetsadministrat\xF6r kan du g\xE5 vidare via l\xE4nken till h\xF6ger f\xF6r att g\xF6ra det.",P=At(P);let X;X="Du har f\xF6r tillf\xE4llet inga notiser aktiverade f\xF6r ditt f\xF6retag. V\xE4lj vilka notiser ditt f\xF6retag har tillg\xE5ng till i n\xE4sta steg.";let z;return z="F\xF6r tillf\xE4llet \xE4r inga notiser aktiverade f\xF6r f\xF6retaget. V\xE4lj vilka notiser f\xF6retaget har tillg\xE5ng till i n\xE4sta steg.",[P,X,z,[3,"data"],["heading",t],["layout","column-66-33"],["theme","sky"],["heading",i],[4,"fdpIsNotClerkUser"],[4,"fdpIfClerkUser"],["type","button","priority","secondary","label",o,3,"click"],["hide","","heading",s],["type","internal","label",G,"routerLink","/behorighet-administration/anvandare"]];},template:function(i,o){i&1&&(n(0,"acorn-custom-page"),c(1,"acorn-custom-page-breadcrumb-container",3)(2,"acorn-custom-page-header",4),n(3,"acorn-custom-page-body",5)(4,"acorn-section",6),c(5,"acorn-section-header",7),n(6,"acorn-section-body"),gt(7,we,2,0,"span",8)(8,ke,2,0,"span",9),c(9,"br")(10,"br"),n(11,"span"),Ot(12,0),c(13,"br")(14,"br"),Et(),r(),n(15,"acorn-button-container")(16,"acorn-button",10),C("click",function(){return o.onAccept();}),r()()()(),n(17,"acorn-section"),c(18,"acorn-section-header",11),n(19,"acorn-section-body"),c(20,"acorn-prominent-link",12),r()()()()),i&2&&(f(),p("data",o.breadcrumbs));},dependencies:[tt,L,Y,$t,Gt,Pt,D,b],encapsulation:2,changeDetection:0});}}return e;})();});function Xe(e,a){if(e&1){let t=F();n(0,"fdp-notifications-form",5),C("cancelForm",function(){S(t);let o=N(2);return l(o.onAccept(!1));})("submitValues",function(o){S(t);let s=N(2);return l(s.submit(o));})("hasChanged",function(o){S(t);let s=N(2);return l(s.markAsDirty(o));}),r();}if(e&2){let t=N(2);p("allowNoneTrue",!1)("hideHeader",!1)("isCancellable",!0)("allowedTypes",t.allowedTypes)("labelSubmit",t.buttonBackActivate)("sections",t.sections())("subscriptions",t.subscriptions());}}function ze(e,a){if(e&1&&(n(0,"acorn-custom-page",0),c(1,"acorn-custom-page-breadcrumb-container",1)(2,"acorn-custom-page-header",2),n(3,"acorn-custom-page-body")(4,"acorn-section"),c(5,"acorn-section-header",3),n(6,"acorn-section-body"),g(7,Xe,1,7,"fdp-notifications-form",4),r()()()()),e&2){let t=N();f(),p("data",t.breadcrumbs),f(6),O(t.sections().length?7:-1);}}function Ve(e,a){if(e&1){let t=F();n(0,"fdp-intro-notifications",6),C("accept",function(){S(t);let o=N();return l(o.onAccept(!0));}),r();}}
1var me,ue=T(()=>{ht();E();Me();et();Tt();It();st();Z();J();K();H();rt();lt();de();E();Q();me=(()=>{class e{constructor(){this.isDirty=B(),this.allowedTypes=ct,this.breadcrumbs=R,this.buttonBackActivate=Te,this.buttonBackLabel=_e,this.formBuilder=_(Lt),this.store=_(y),this.scroller=_(W),this.agreementsStore=_(v),this.form=this.formBuilder.group({}),this.sections=I(()=>this.agreementsStore.sections()),this.subscriptions=I(()=>this.agreementsStore.subscriptions()),this.isAccepted=ut(!1);}ngOnDestroy(){this.scroller.scrollToPosition([0,0]);}markAsDirty(t){this.isDirty.emit(t);}onAccept(t){this.isAccepted.set(t);}submit(t){this.store.dispatch(k({payload:{updateList:_t(t)}}));}static{this.ɵfac=function(i){return new(i||e)();};}static{this.ɵcmp=h({type:e,selectors:[["fdp-setup-notifications"]],outputs:{isDirty:"isDirty"},decls:2,vars:1,consts:()=>{let t;t="Aktivera notiser f\xF6r f\xF6retaget";let i;return i="V\xE4lj notiser",[["span","narrow"],[3,"data"],["heading",t],["heading",i],[3,"allowNoneTrue","hideHeader","isCancellable","allowedTypes","labelSubmit","sections","subscriptions"],[3,"cancelForm","submitValues","hasChanged","allowNoneTrue","hideHeader","isCancellable","allowedTypes","labelSubmit","sections","subscriptions"],[3,"accept"]];},template:function(i,o){i&1&&g(0,ze,8,2,"acorn-custom-page",0)(1,Ve,1,0,"fdp-intro-notifications"),i&2&&O(o.isAccepted()?0:1);},dependencies:[x,nt,Ce,D,b,L],encapsulation:2,changeDetection:0});}}return e;})();});function Ue(e,a){if(e&1&&(n(0,"acorn-custom-page",0),c(1,"acorn-custom-page-breadcrumb-container",1)(2,"acorn-custom-page-header",2),r()),e&2){let t=N();f(),p("data",t.breadcrumbs),f(),p("lead",t.message());}}function He(e,a){if(e&1){let t=F();n(0,"fdp-edit-notifications",3),C("isDirty",function(o){S(t);let s=N(3);return l(s.markAsDirty(o));}),r();}}function je(e,a){if(e&1){let t=F();n(0,"fdp-setup-notifications",3),C("isDirty",function(o){S(t);let s=N(3);return l(s.markAsDirty(o));}),r();}}function We(e,a){if(e&1&&g(0,He,1,0,"fdp-edit-notifications")(1,je,1,0,"fdp-setup-notifications"),e&2){let t=N(2);O(t.isActive()?0:1);}}function Ye(e,a){if(e&1&&g(0,We,2,1),e&2){let t=N();O(t.isLoaded()?0:-1);}}var ge,Oe=T(()=>{E();et();Tt();vt();ot();st();Z();J();K();mt();H();pe();ue();E();Q();ge=(()=>{class e{constructor(){this.isDirty$=new dt(!1),this.breadcrumbs=R,this.store=_(y),this.agreementsStore=_(v),this.isActive=I(()=>this.agreementsStore.isActive()),this.isLoaded=I(()=>this.agreementsStore.isLoaded()),this.error=this.store.selectSignal(bt(U)),this.message=I(()=>this.error().length?this.error()[0].message:"");}ngOnInit(){this.agreementsStore.isLoaded()||this.store.dispatch(w());}ngOnDestroy(){this.store.dispatch(Nt({placement:U})),this.store.dispatch(Nt({placement:q.PageDefault}));}markAsDirty(t){this.isDirty$.next(t);}static{this.ɵfac=function(i){return new(i||e)();};}static{this.ɵcmp=h({type:e,selectors:[["fdp-main-notifications"]],features:[Mt([v])],decls:2,vars:1,consts:()=>{let t;return t="F\xF6retagets Notisinst\xE4llningar",[["span","narrow"],[3,"data"],["heading",t,3,"lead"],[3,"isDirty"]];},template:function(i,o){i&1&&g(0,Ue,3,2,"acorn-custom-page",0)(1,Ye,1,1),i&2&&O(o.message()?0:1);},dependencies:[x,fe,me,D,b,L],encapsulation:2,changeDetection:0});}}return e;})();});var Ke,Ee=T(()=>{Ge();Oe();Ke=[{path:"",component:ge,canDeactivate:[Ut]}];});var qe=T(()=>{Ee();});qe();export{Ke as libRoutes};/**i18n:15f074eea0cb327b37975ffd523531729ab0457ff69c56a45bbc17662cbc1391*/
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.