1"use strict";(window.webpackChunksdc_neos=window.webpackChunksdc_neos||[]).push([[4997],{15094:(e,t,r)=>{r.d(t,{nu:()=>a}),r(33203);var n=r(58409),a=function(e,t,r){var a=function(e,t){var r=t?(0,n.DM)(t)?t:[t]:null,a=e.agreementRoles.filter(function(e){return!r||r.includes(e.agreement)}).map(function(e){return e.roles});return a.push(e.userRoles),Array.from(new Set(a.flat()))}(t,r);return Array.isArray(e)?e.some(function(e){return a.includes(e)}):a.includes(e)}},16918:(e,t,r)=>{var n,a;r.d(t,{x:()=>n}),(a=n||(n={})).EBOKS="EBOKS",a.PENSIONSINFO="PENSIONSINFO",a.BGCELIN="BGCELIN",a.BGCAUTOGIRO="BGCAUTOGIRO"},44926:(e,t,r)=>{r.d(t,{Z:()=>l});var n=r(94184),a=r.n(n),i=r(67294);const l=function(e){var t=a()("widget-title",e.className,{"widget-title--h1":e.h1,"widget-title--no-bold":e.noBold}),r=e.labels.title||"",n=function(e){return e.replace(/<[^>]*>/g,"").replace(/&(?:nbsp|#160|#xA0);/gi,"").replace(/\u00a0/g,"").trim().length>0}(r);return i.createElement("div",{className:t},e.childrenAboveTitle&&e.children,n&&e.h1&&i.createElement("h1",{className:"widget-title__label","aria-label":e["aria-label"],tabIndex:e.tabIndex,dangerouslySetInnerHTML:{__html:r}}),n&&!e.h1&&i.createElement("h2",{className:"widget-title__label","aria-label":e["aria-label"],tabIndex:e.tabIndex,dangerouslySetInnerHTML:{__html:r}}),!n&&i.createElement("div",{className:"widget-title__label","aria-hidden":"true",dangerouslySetInnerHTML:{__html:" "}}),!e.childrenAboveTitle&&e.children)}},94997:(e,t,r)=>{r.r(t),r.d(t,{default:()=>y});var n=r(67294),a=r(88767),i=r(2344),l=r(21135),o=r(15094),s=r(33203),c=r(99302),u=r(16918),d=r
1(69189),m=r(44926),f=r(96967),h=r(11054),g=r(14578),v=r(57709),b=r(82412),_=r(29183),p=r(80449);function w(e,t,r,n,a,i,l){try{var o=e[i](l),s=o.value}catch(e){return void r(e)}o.done?t(s):Promise.resolve(s).then(n,a)}function E(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=[],n=!0,a=!1,i=void 0;try{for(var l,o=e[Symbol.iterator]();!(n=(l=o.next()).done)&&(r.push(l.value),!t||r.length!==t);n=!0);}catch(e){a=!0,i=e}finally{try{n||null==o.return||o.return()}finally{if(a)throw i}}return r}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var A=r(35666),N=function(){var e,t=(0,v.f)(),r=(0,b.aj)(),N=r.selectedAccountHolders,y=r.isLoading,I=(e=(0,i.h_)(),(0,a.useMutation)(function(t){return e.autogiroSsoCredentials(t)},void 0)),S=I.mutateAsync,O=I.isLoading,T=(0,l.dc)(),x=T.data,k=T.isLoading,G=(0,g.Z)(),C=E((0,n.useState)(!1),2),B=C[0],L=C[1],R=t.errorNoPermissionToGetThreads,M=t.information,P=(0,n.useMemo)(function(){return N&&x&&N.filter(function(e){return(0,o.nu)(s.u.BGCAUTOGIRO,x,e.selfServiceAgreement)&&e.primaryOwnerType===c.Q.ORGANISATION})},[N,x]);(0,n.useEffect)(function(){!B&&P&&0===P.length&&(G.dismissable(new Error,{message:R,title:M}),L(!0))},[G,R,B,M,x,P]);var U,Z=E((0,n.useState)(!1),2),H=Z[0],F=Z[1],K=(U=A.mark(function e(t){var r,n;return A.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return F(!0),e.prev=1,e.next=4,S({system:u.x.BGCAUTOGIRO,isApp:!1,additionalParameters:{targetUser:t}});case 4:if(r=e.sent,!(n=(0,p.EH)("id",r.uri))){e.next=10;break}(0,_.nv)(r.uri,[{key:"id",value:n}],"_blank","GET"),e.next=11;break;case 10:throw new Error("No id was found from the URI");case 11:e.next=16;break;case 13:e.prev=13,e.t0=e.catch(1),G.dismissable(e.t0);case 16:return e.prev=16,F(!1),e.finish(16);case 19:case"end":return e.stop()}},e,null,[[1,13,16,19]])}),function(){var e=this,t=arguments;return new Promise(function(r,n){var a=U.apply(e,t);function i(e){w(a,r,n,i,l,"next",e)}function l(e){w(a,r,n,i,l,"throw",e)}i(void 0)})}),j=y||k||O||H;return n.createElement("div",{className:"autogiro-se"},n.createElement(m.Z,{labels:{title:t.autogiromottagare},h1:!0}),j?n.createElement(h.Z,null):n.createElement(n.Fragment,null,n.createElement("p",{className:"autogiro-se__description"},P&&P.length>0?t.clickToAccessAutogiro:t.noCompaniesAvailableAutogiro),P&&P.length>0&&n.createElement(d.Z,{shadow:!0,className:"autogiro-se__card"},n.createElement("ul",{className:"autogiro-se__list"},P.map(function(e){return n.createElement("li",{className:"autogiro-se__list-item",key:e.selfServiceAgreement,onClick:function(){return K(e.selfServiceAgreement)}},n.createElement("a",{className:"autogiro-se__list-item-anchor",role:"link"},e.name,n.createElement(f.Z,{iconId:"icon_16_arrow-box",className:"autogiro-se__account-icon"})))})))))};const y=function(){return n.createElement(N,null)}}}]); 2//# sourceMappingURL=4997.6e775fa5a2c3ff9116f6.js.map
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.