PageSourceSearch

https://www.selbusparebank.no/dist/js/4725.95051352db99387398ff.js

js selbusparebank.no collected 2026-10-02 16:37:12 UTC 15,501 bytes, 2 lines download raw bytes

1"use strict";(window.webpackChunksdc_neos=window.webpackChunksdc_neos||[]).push([[4725],{21284:(e,t,n)=>{n.d(t,{_n:()=>i});var a=n(88767),o=n(79922),c=n(2344);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e){return["custodyAccountV2DK",e]}var i=function(e,t){var n=(0,c.h_)();return(0,a.useQuery)(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),a.forEach(function(t){r(e,t,n[t])})}return e}({},function(e,t){var n={queryFn:function(){return function(e,t){return e.getCustodyAccountV2DK(t)}(e,(0,o.Z)(t,"Expected payload"))},queryKey:l(t),enabled:!!t};return n}(n,e),t))}},49441:(e,t,n)=>{n.d(t,{i:()=>r});var a=n(94184),o=n.n(a),c=n(67294),r=function(e){var t=e.value,n=e.formattedValue,a=e.className,r=e.showIcon,l=e.bold,i=e.coloredFont,u=e.iconPosition,s=void 0===u?"left":u,d=e.isInvestmentSearch,m=o()("delta","delta--icon-".concat(s),a,{"delta--negative":t<0&&!d,"delta--positive":t>0&&!d,"delta--bold":l,"delta--icon":r&&0!==t,"delta--color-font":i,"delta--negative--search":t<0&&d,"delta--positive--search":t>0&&d,"delta--icon delta--neutral--search":0==t&&d});return c.createElement("span",{className:m},n||t)}},16058:(e,t,n)=>{n.d(t,{f:()=>K});var a=n(77106),o=n(65995),c=n(18297),r=n(34242),l=n(67294),i=n(79551),u=n(58868),s=n(71237),d=n(82825),m=n(22092),y=n(18480),v=n(15726),b=n(57709),f=n(14578),h=n(82412),p=n(96770),_=n(11054),g=n(44926),E=n(88767),w=n(45478),C=n(45849),A=n(99373),N=n(90062),I=n(48659);function D(e,t,n,a,o,c,r){try{var l=e[c](r),i=l.value}catch(e){return void n(e)}l.done?t(i):Promise.resolve(i).then(a,o)}function O(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var S,k,T=n(35666);(k=S||(S={})).DEPOSIT="DEPOSIT",k.WITHDRAWAL="WITHDRAWAL";var K=function(e){var t=e.custodyAccount,n=e.onClose,k=e.isDepositOnly,K=(0,b.f)(),P=(0,a.h)(),Z=P.mutateAsync,x=P.isLoading,V=P.error,H=(0,o.$)(),R=H.mutateAsync,L=H.isLoading,W=H.error,B=(0,f.Z)(),j=V||W;j&&B.dismissable(j);var U,F=x||L,M=(0,h.aj)().selectedAccountHolders,Q=(0,I.Z)().data,q=(0,A.Hq)({accountHolders:M,includeDataAboutGuarantees:Q===N.vZ.PRIVATE}),z=q.data,G=void 0===z?[]:z,$=q.isLoading,J=q.refetch,X=(0,p.pt)(t.agreementCombinedKey),Y=null==G?void 0:G.filter(function(e){return X(e)}),ee=Y.length>0&&Y[0]||void 0,te=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),a.forEach(function(t){O(e,t,n[t])})}return e}({accountCombinedKey:null==ee?void 0:ee.accountCombinedKey},k?{transferType:S.DEPOSIT}:{}),ne=(0,E.useQueryClient)(),ae=(U=T.mark(function e(a){return T.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(a.accountCombinedKey&&a.amount){e.next=2;break}throw new v.g("");case 2:if(a.transferType!==S.DEPOSIT){e.next=9;break}return e.next=5,Z({custodyAccountCombinedKey:t.custodyAccountCombinedKey,fromAccountCombinedKey:a.accountCombinedKey,amount:parseFloat(a.amount)});case 5:ne.invalidateQueries(w.d_),ne.invalidateQueries(C.Bn),J(),n();
1case 9:if(a.transferType!==S.WITHDRAWAL){e.next=16;break}return e.next=12,R({custodyAccountCombinedKey:t.custodyAccountCombinedKey,toAccountCombinedKey:a.accountCombinedKey,amount:parseFloat(a.amount)});case 12:ne.invalidateQueries(w.d_),ne.invalidateQueries(C.Bn),J(),n();case 16:case"end":return e.stop()}},e)}),function(){var e=this,t=arguments;return new Promise(function(n,a){var o=U.apply(e,t);function c(e){D(o,n,a,c,r,"next",e)}function r(e){D(o,n,a,c,r,"throw",e)}c(void 0)})});return l.createElement(i.l0,{initialValues:te,onSubmit:ae},function(e){var n,a=e.values,o=e.form,i=e.handleSubmit,v=e.hasValidationErrors,b=a.transferType&&(0,p.IM)(K,function(e){switch(e.transferType){case"DEPOSIT":var n;return null===(n=Y.find(function(t){return t.accountCombinedKey===e.accountCombinedKey}))||void 0===n?void 0:n.accountBalance.balanceDisposable.decimalValue;case"WITHDRAWAL":var a;return null===(a=t.availableBalance)||void 0===a?void 0:a.amount.decimalValue}}(a),!0)||[];return l.createElement(l.Fragment,null,l.createElement("div",{className:"deposit-and-withdrawal"},l.createElement(g.Z,{h1:!0,labels:{title:k?K.global.deposit:K.depositAndWithdrawal}}),$&&l.createElement(_.Z,null),!$&&l.createElement(l.Fragment,null,(0,p.VS)(t),l.createElement(u.Z,{fieldType:{label:K.global.selectBankAccount,validationRules:[]},id:"accountCombinedKey",selectedAccountKey:a.accountCombinedKey,groups:M.map(function(e){var t=(0,c.Q5)(Y,e);return{title:M.length>1?e.name:"",options:(0,s.Mv)(t)}}).filter(function(e){return e.options.length>0}),onOptionSelected:function(e){e?o.change("accountCombinedKey",e.accountCombinedKey):o.change("accountCombinedKey","")},onClearSelected:function(){o.change("accountCombinedKey","")}}),!k&&l.createElement(m.e5,{id:"transferType",type:r.n.Radio,label:K.transferType,validationRules:[],options:[{value:"DEPOSIT",label:K.global.deposit},{value:"WITHDRAWAL",label:K.global.withdrawal}]}),l.createElement(y.Z,{label:K.global.amount,validationRules:b,id:"amount",type:r.n.Number,fractionDigits:2,annotation:null===(n=t.availableBalance)||void 0===n?void 0:n.currencyCode}))),l.createElement(d.O,{actionList:[{iconId:"icon_28_checkmark",label:K.global.approve,onClick:i,disabled:v||!a.accountCombinedKey||!a.transferType||!a.amount||parseFloat(a.amount)<=0,loading:F,color:"default"}]}))})}},58483:(e,t,n)=>{n.d(t,{Z:()=>y});var a=n(67294),o=n(94184),c=n.n(o),r=n(28968),l=n(69832);function i(e,t,n,a,o,c,r){try{var l=e[c](r),i=l.value}catch(e){return void n(e)}l.done?t(i):Promise.resolve(i).then(a,o)}function u(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?t[Symbol.hasInstance](e):e instanceof t}var s=n(35666);const d=function(e){var t,n,o,d,m=(o=(0,a.useState)(!1),d=2,function(e){if(Array.isArray(e))return e}(o)||function(e,t){var n=[],a=!0,o=!1,c=void 0;try{for(var r,l=e[Symbol.iterator]();!(a=(r=l.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){o=!0,c=e}finally{try{a||null==l.return||l.return()}finally{if(o)throw c}}return n}(o,d)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),y=m[0],v=m[1],b=(0,l.t)();return a.createElement("li",{className:e.className},a.createElement(r.Z,{fullWidth:!0,color:null!==(t=e.color)&&void 0!==t?t:"invert",className:c()("action-menu__item",{"action-menu__item--text-only":!e.iconId,"action-menu__item--active":e.active,"action-menu__item--disabled":e.disabled}),type:"button",iconId:e.iconId,loading:y||e.loading,onClick:(n=s.mark(function t(n){var a;return s.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(n.preventDefault(),n.stopPropagation(),!u(a=e.onClick(n),Promise)){t.next=11;break}return v(!0),t.prev=5,t.next=8,a;case 8:return t.prev=8,b.current&&v(!1),t.finish(8);case 11:case"end":return t.stop()}},t,null,[[5,,8,11]])}),function(){var e=this,t=arguments;return new Promise(function(a,o){var c=n.apply(e,t);function r(e){i(c,a,o,r,l,"next",e)}function l(e){i(c,a,o,r,l,"throw",e)}r(void 0)})}),onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||e.stopPropagation()},disabled:e.disabled||y,trailingIcon:e.trailingIcon},a.createElement("span",{className:"action-menu__item-label"},e.label)))};function m(){return m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},m.apply(this,arguments)}const y=function(e){return a.createElement("ul",{className:"action-menu"},e.items.map(function(e,t){return a.createElement(d,m({key:t},e))}),e.children)}},82825:(e,t,n)=>{n.d(t,{O:()=>l});var a=n(94184),o=n.n(a),c=n(67294),r=n(28968),l=function(e){return c.createElement("div",{className:"modal-action-buttons"},e.actionList.map(function(t){var n;return c.createElement(r.Z,{key:t.label,onClick:t.onClick,className:o()("modal-action-buttons__button ".concat(t.className),{"modal-action-buttons__button-small":"small"===e.buttonHeight,"modal-action-buttons__button-medium":"medium"===e.buttonHeight}),color:null!==(n=t.color)&&void 0!==n?n:"invert",disabled:t.disabled,fullWidth:!0,noBorder:t.noBorder,loading:t.loading,iconId:t.iconId,iconCenter:!0,trailingIcon:t.trailingIcon},t.label)}))}},37509:(e,t,n)=>{n.r(t),n.d(t,{default:()=>T});var a=n(67294),o=n(94184),c=n.n(o),r=n(21284),l=n(21135),i=n(33203),u=n(96846),s=n(30738),d=n(49441),m=n(9143),y=n(49836),v=n(16058),b=n(28968),f=n(48491),h=n(96967),p=n(17249),_=n(11054),g=n(56996),E=n(1822),w=n(31354),C=n(57709),A=n(14578),N=n(96770),I=n(95171);function D(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],a=!0,o=!1,c=void 0;try{for(var r,l=e[Symbol.iterator]();!(a=(r=l.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){o=!0,c=e}finally{try{a||null==l.return||l.return()}finally{if(o)throw c}}return n}
1(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var O="custody-account-header",S=function(e){var t,n=(0,C.f)(),o=e.custodyAccountCombinedKey,S=e.custodyAccountDetailsUrl,k=e.investmentAgreementDetailsUrl,T=D((0,w.Z)(),2),K=T[0],P=T[1],Z=null==P?void 0:P.size,x=g.vc.features,V=x.enableInvestmentBuySell,H=x.enableExtendedCustodyCalculations,R=D((0,a.useState)(!1),2),L=R[0],W=R[1],B=D((0,a.useState)(!1),2),j=B[0],U=B[1],F=D((0,a.useState)(!1),2),M=F[0],Q=F[1],q=(0,I.F)(),z=(0,s.i)({custodyAccountDetailsUrl:S,investmentAgreementDetailsUrl:k}),G=z.data,$=z.isLoading,J=(0,r._n)({custodyAccountCombinedKey:o,useExtendedInformation:H},{refetchInterval:q}),X=J.data,Y=J.isLoading,ee=J.error,te=(0,l.dc)(),ne=te.data,ae=te.error,oe=te.isLoading,ce=null==ne?void 0:ne.agreementRoles.find(function(e){return e.agreement===(null==X?void 0:X.agreementCombinedKey)}),re=(0,A.Z)(),le=ee||ae;le&&re.dismissable(le);var ie=(0,a.useMemo)(function(){return(null==X?void 0:X.balance)&&E.H.formatCurrency(X.balance.amount.decimalValue,X.balance.currencyCode,{showCurrencyDisplay:!0})},[X]),ue=(0,a.useMemo)(function(){return(null==X?void 0:X.availableBalance)&&E.H.formatCurrency(X.availableBalance.amount.decimalValue,X.availableBalance.currencyCode,{showCurrencyDisplay:!0})},[X]),se=null==X?void 0:X.marketValue,de=(0,a.useMemo)(function(){return se&&E.H.formatCurrency(se.amount.decimalValue,se.currencyCode,{showCurrencyDisplay:!0})},[se]),me=null==X||null===(t=X.changeToday)||void 0===t?void 0:t.percentage,ye=me&&E.H.formatPercentage(me),ve=c()(O,Z&&"".concat(O,"--").concat(Z));if(Y||oe)return a.createElement("div",{className:ve,ref:K},a.createElement("div",{className:"custody-account-header__content"},a.createElement(_.Z,{currentColor:!0})));var be=V&&(null==ce?void 0:ce.roles.includes(i.u.INVESTMENT_UNIVERSE_FUNDS))&&(0,N.Qy)(X),fe=(null==ce?void 0:ce.roles.includes(i.u.INVESTMENT_UNIVERSE_DEPOSIT_WITHDRAWAL))&&(0,N.a6)(X),he=fe||fe||be;return a.createElement("div",{className:ve,ref:K},a.createElement("div",{className:"custody-account-header__content"},X&&a.createElement(a.Fragment,null,a.createElement("div",{className:"custody-account-header__top-info"},a.createElement("div",{className:"custody-account-header__account-selector"},a.createElement("button",{className:"custody-account-header__button-name",onClick:function(){return W(!0)},"aria-label":"".concat(X.accountName,", ").concat(n.global.selectAccount),"aria-expanded":L},X.accountName,a.createElement("span",{className:"custody-account-header__account-selector-indicator"},L&&a.createElement(h.Z,{iconId:"icon_16_arrow-up",svgAttributes:{"aria-hidden":!0}}),!L&&a.createElement(h.Z,{iconId:"icon_16_arrow-down",svgAttributes:{"aria-hidden":!0}}))),X.accountNumber),de&&a.createElement("div",{className:"custody-account-header__market-value"},a.createElement("div",{className:"custody-account-header__market-value-label"},n.global.marketValue),a.createElement("div",{className:"custody-account-header__market-value-amount"},de),a.createElement("div",{className:"custody-account-header__disclaimer"},a.createElement("span",{id:"weighted-average-disclaimer",className:"sr-only"},n.weightedAverageDisclaimer),a.createElement(b.Z,{className:"custody-account-header__tooltip",iconCenter:!0,small:!0,iconId:"icon_16_info-circle",color:"link",tooltip:n.weightedAverageDisclaimer,"aria-label":n.weightedAverageInformation,"aria-describedby":"weighted-average-disclaimer"})))),a.createElement("div",{className:"custody-account-header__development"},ye&&!H&&a.createElement("div",{className:"custody-account-header__development-label"},n.global.developmentToday),a.createElement("div",{className:c()("custody-account-header__development-percentage",{"custody-account-header__development-percentage--is-extended":H})},ye&&!H&&a.createElement(d.i,{formattedValue:ye,iconPosition:"left",showIcon:!0,value:X.changeToday.percentage.decimalValue}))),a.createElement("div",{className:"custody-account-header__content-container"},a.createElement("div",{className:"custody-account-header__items_container ".concat(c()({"custody-account-header__items_container--flat":!he}))},a.createElement("div",{className:c()({"custody-account-header__items":!he,"custody-account-header__sub-items":he})},ie&&a.createElement("div",{className:"custody-account-header__item"},a.createElement("div",{className:"custody-account-header__item-label"},n.global.balance),a.createElement("div",{className:"custody-account-header__item-value"},a.createElement(f.u,null,ie))),ue&&a.createElement("div",{className:"custody-account-header__item"},a.createElement("div",{className:"custody-account-header__item-label"},n.global.availableBalance),a.createElement("div",{className:"custody-account-header__item-value"},a.createElement(f.u,null,ue)))),a.createElement("div",{className:"custody-account-header__items__buttons"},be&&a.createElement(b.Z,{type:"button",shadow:!0,onClick:function(){U(!0)}},n.fundTrading),fe&&a.createElement(b.Z,{className:c()({"custody-account-header__items__buttons__deposit-and-withdrawal":be}),type:"button",shadow:!0,onClick:function(){Q(!0)}},n.depositAndWithdrawal)))),a.createElement(p.Z,{className:"custody-account-header__account-selector-modal",ariaHideApp:!0,isOpen:L,narrow:!0,onRequestClose:function(){W(!1)}},a.createElement(m.Z,{stopAppOnUncaught:!1},a.createElement(u.Z,{labels:{headline:n.global.custodyAccount,balanceDisposable:n.global.availableBalance},selectedId:X.custodyAccountCombinedKey,sections:G,isLoading:$}))),a.createElement(p.Z,{noInnerOverflowScroll:!0,isOpen:j,onRequestClose:function(){return U(!1)},hasMinHeight:!0},a.createElement(y.S,{custodyAccount:X,custodyAccountIsLoading:Y})),a.createElement(p.Z,{isOpen:M,onRequestClose:function(){return Q(!1)}},a.createElement(v.f,{custodyAccount:X,onClose:function(){return Q(!1)}})))))},k=n(80449);const T=function(e){var t=e.contextModel,n=t.custodyAccountDetailsUrl,o=t.investmentAgreementDetailsUrl,c=e.contextModel.custodyAccountCombinedKey||(0,k.EH)("id");if(!c)throw new Error("No ID available");return a.createElement(S,{custodyAccountCombinedKey:c,custodyAccountDetailsUrl:n,investmentAgreementDetailsUrl:o})}}}]);
2//# sourceMappingURL=4725.95051352db99387398ff.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.