PageSourceSearch

https://www.aasen-sparebank.no/dist/js/548.51597d617d291b2147d4.js

js aasen-sparebank.no collected 2026-10-02 03:39:48 UTC 40,844 bytes, 2 lines download raw bytes

1"use strict";(window.webpackChunksdc_neos=window.webpackChunksdc_neos||[]).push([[548],{82950:(e,t,n)=>{n.d(t,{Mb:()=>d,jA:()=>u,pB:()=>l});var r=n(88767),i=n(2344);function o(e,t,n,r,i,o,a){try{var c=e[o](a),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,i)}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=n(35666),l="userInformation";function u(){return[l]}var s,d=function(e){var t=(0,i.h_)(),n=m(t);return(0,r.useQuery)(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){a(e,t,n[t])})}return e}({},n,e))},m=function(e){return{queryFn:function(){return f(e)},queryKey:u(),select:function(e){return e.mobileNumber&&3===e.mobileNumber.countryPrefix.length&&e.mobileNumber.countryPrefix.startsWith("0")&&(e.mobileNumber.countryPrefix=e.mobileNumber.countryPrefix.substring(1)),e}}},f=(s=c.mark(function e(t){return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",t.getUserInformation());case 1:case"end":return e.stop()}},e)}),function(){var e=this,t=arguments;return new Promise(function(n,r){var i=s.apply(e,t);function a(e){o(i,n,r,a,c,"next",e)}function c(e){o(i,n,r,a,c,"throw",e)}a(void 0)})})},44926:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(94184),i=n.n(r),o=n(67294);const a=function(e){var t=i()("widget-title",e.className,{"widget-title--h1":e.h1,"widget-title--no-bold":e.noBold}),n=e.labels.title||"",r=function(e){return e.replace(/<[^>]*>/g,"").replace(/&(?:nbsp|#160|#xA0);/gi,"").replace(/\u00a0/g,"").trim().length>0}(n);return o.createElement("div",{className:t},e.childrenAboveTitle&&e.children,r&&e.h1&&o.createElement("h1",{className:"widget-title__label","aria-label":e["aria-label"],tabIndex:e.tabIndex,dangerouslySetInnerHTML:{__html:n}}),r&&!e.h1&&o.createElement("h2",{className:"widget-title__label","aria-label":e["aria-label"],tabIndex:e.tabIndex,dangerouslySetInnerHTML:{__html:n}}),!r&&o.createElement("div",{className:"widget-title__label","aria-hidden":"true",dangerouslySetInnerHTML:{__html:"&nbsp;"}}),!e.childrenAboveTitle&&e.children)}},64140:(e,t,n)=>{n.d(t,{x:()=>l});var r=n(67294),i=n(28968),o=n(31231),a=n(17249),c=n(57709);var l=function(e){var t,n,l=e.continueBtnText,u=e.isContinueBtnLoading,s=e.isOpen,d=e.onCancel,m=e.onContinueClick,f=e.termsAndConditionsInnerHTML,p=(0,c.f)(),b=(t=(0,r.useState)(!1),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),h=b[0],v=b[1],E=function(){v(!1),d()};return r.createElement(a.Z,{isOpen:s,shouldCloseOnOverlayClick:!0,narrow:!0,onRequestClose:E,ariaHideApp:!1},r.createElement("div",{"data-testid":"terms-and-conditions-modal-sitecore"},r.createElement("div",{className:"terms-and-conditions-modal-sitecore__title"},p.global.termsAndConditionsLabel),r.createElement("div",{className:"terms-and-conditions-modal-sitecore__terms",dangerouslySetInnerHTML:{__html:f}}),r.createElement("div",{className:"terms-and-conditions-modal-sitecore__bottom"},r.createElement("div",{className:"terms-and-conditions-modal-sitecore__checkbox","data-testid":"terms-and-conditions-checkbox"},r.createElement(o.Z,{label:p.global.agreeTermsAndConditionsLabel,fieldAttributes:{onChange:function(e){return v(e.currentTarget.checked)}}})),r.createElement("div",{className:"terms-and-conditions-modal-sitecore__buttons"},r.createElement(i.Z,{fullWidth:!0,color:"white",large:!0,onClick:E,noBorder:!0},p.global.cancel),r.createElement(i.Z,{fullWidth:!0,large:!0,disabled:!h,onClick:m,noBorder:!0,loading:u},l)))))}},59137:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(94184),i=n.n(r),o=n(67294);const a=function(e){var t=e.className,n=e.border,r=e.children;return o.createElement("div",{className:i()("card__body",t,{"card__body--has-border":n})},r)}}
1,12902:(e,t,n)=>{n.d(t,{c:()=>s});var r=n(94184),i=n.n(r),o=n(67294),a=n(69189),c=n(59137),l=n(82825),u=n(17249),s=function(e){var t=e.labels,n=e.primaryButtonAction,r=e.secondaryButtonAction,s=e.isOpen,d=e.onRequestClose,m=e.className,f=e.loading,p=e.disabled,b=e.children,h=e.narrow,v=e.primaryButtonColor,E=i()("confirmation-modal",m);return o.createElement(u.Z,{isOpen:s,onRequestClose:d,shouldCloseOnOverlayClick:!0,ariaHideApp:!1,narrow:h},o.createElement(a.Z,{shadow:!0},o.createElement(c.Z,{className:"confirmation-modal__card-body"},o.createElement("div",{className:E,"data-testid":"confirmation-modal"},o.createElement("span",{className:"confirmation-modal__headline"},t.headline),t.description&&o.createElement("span",{className:"confirmation-modal__description"},t.description),b)),o.createElement(l.O,{buttonHeight:"medium",actionList:[{label:t.secondaryButton,onClick:r,color:"white",noBorder:!0},{label:t.primaryButton,onClick:n,disabled:p,color:v||"default",noBorder:!0,loading:f}]})))}},44870:(e,t,n)=>{n.d(t,{Z:()=>d});var r=n(94184),i=n.n(r),o=n(67294),a=n(96967);function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}
1function s(e,t){return s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},s(e,t)}const d=function(e){function t(e){var n,r,i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=!(r=u(t).call(this,e))||"object"!=(i=r,i&&"undefined"!=typeof Symbol&&i.constructor===Symbol?"symbol":typeof i)&&"function"!=typeof r?c(this):r).state={inlineBodyCss:{top:n.props.triggerBounding.height,left:0,right:"auto",bottom:"auto"}},n.handleKeyEvent=n.handleKeyEvent.bind(c(n)),n.windowResizeHander=n.windowResizeHander.bind(c(n)),n}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(t,e),n=t,(r=[{key:"componentDidMount",value:function(){this.bodyElement&&(this.bodyBounding=this.bodyElement.getBoundingClientRect()),document.body.classList.add("context-menu-deprecated--isOpen"),document.addEventListener("keyup",this.handleKeyEvent),window.addEventListener("resize",this.windowResizeHander),this.setAlignment(this.props.triggerBounding)}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){this.setAlignment(e.triggerBounding)}},{key:"componentWillUnmount",value:function(){document.body.classList.remove("context-menu-deprecated--isOpen"),document.removeEventListener("keyup",this.handleKeyEvent),window.removeEventListener("resize",this.windowResizeHander)}},{key:"windowResizeHander",value:function(){this.props.closePopup()}},{key:"setAlignment",value:function(e){if(this.bodyBounding){var t=e.left+this.bodyBounding.width,n=e.bottom+this.bodyBounding.height,r={left:window.innerWidth<t?"auto":0,right:window.innerWidth<t?0:"auto",top:window.innerHeight<n?"auto":e.height,bottom:window.innerHeight<n?e.height:"auto"};this.props.placementX&&(r.left="left"===this.props.placementX?"auto":0,r.right="right"===this.props.placementX?"auto":0),this.props.placementY&&(r.top="top"===this.props.placementY?"auto":e.height,r.bottom="bottom"===this.props.placementY?"auto":e.height),this.setState({inlineBodyCss:r})}}},{key:"handleKeyEvent",value:function(e){"Escape"===e.key&&this.props.closePopup(),"Tab"===e.key&&e.target&&this.handleTab(e.target)}},{key:"handleTab",value:function(e){var t=this.wrapperElement;t&&t.contains(e)||this.props.closePopup()}},{key:"render",value:function(){var e=i()(this.props.className,{"context-menu__body-wrapper":!this.props.disableResponsiveBehavior});return o.createElement("div",{className:e,ref:function(e){this.wrapperElement=e}.bind(this)},o.createElement("div",{className:i()("context-menu__body",{"context-menu__body--no-responsive-behavior":this.props.disableResponsiveBehavior}),ref:function(e){this.bodyElement=e}.bind(this),style:this.state.inlineBodyCss},!this.props.hideCloseButton&&o.createElement("div",{className:"context-menu__close-button-wrapper"},o.createElement("button",{type:"button",className:"context-menu__close-button",onClick:function(){this.props.closePopup()}.bind(this)},o.createElement(a.Z,{iconId:"icon_16_close"}))),this.props.children))}}])&&l(n.prototype,r),t}(o.Component)},16748:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(67294);const i=function(e){var t=(0,r.useRef)(null);return(0,r.useEffect)(function(){t.current&&e.setTriggerBounding(t.current.getBoundingClientRect())},[t.current,e.contextMenuIsOpen]),r.createElement("div",{className:"context-menu__trigger",ref:t},e.children)}},18903:(e,t,n)=>{n.d(t,{Z:()=>s});var r=n(94184),i=n.n(r),o=n(67294);function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(e,t)}const s=function(e){function t(e){var n,r,i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=!(r=l(t).call(this,e))||"object"!=(i=r,i&&"undefined"!=typeof Symbol&&i.constructor===Symbol?"symbol":typeof i)&&"function"!=typeof r?a(this):r).state={isPopupOpen:!1,triggerBounding:{top:0,bottom:0,left:0,right:0,width:0,height:0},circleDirection:"bottom"},n.contextMenuBodyRef=o.createRef(),n.handleClickOutside=n.handleClickOutside.bind(a(n)),n}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(t,e),n=t,(r=[{key:"componentDidMount",value:function(){document.addEventListener("click",this.handleClickOutside)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("click",this.handleClickOutside)}},{key:"handleClickOutside",value:function(e){if(this.state.isPopupOpen){var t=this.contextMenuDivElement;(!t||e.target&&!t.contains(e.target))&&this.closePopup()}}},{key:"togglePopup",value:function(){this.state.isPopupOpen?this.closePopup():this.openPopup()}},{key:"openPopup",value:function(){this.setState({isPopupOpen:!0}),this.setBodyDirection()}},{key:"setBodyDirection",value:function(){window.requestAnimationFrame(function(){var e,t="auto"==(null===(e=this.contextMenuBodyRef.current)||void 0===e?void 0:e.state.inlineBodyCss.bottom)?"bottom":"top";this.setState({circleDirection:t})}.bind(this))}},{key:"closePopup",value:function(){this.setState({isPopupOpen:!1})}},{key:"setTriggerBounding",value:function(e){this.setState({triggerBounding:e})}},{key:"getRenderProps",value:function(){return{togglePopup:this.togglePopup.bind(this),closePopup:this.closePopup.bind(this),isPopupOpen:this.state.isPopupOpen,setTriggerBounding:this.setTriggerBounding.bind(this),triggerBounding:this.state.triggerBounding,openPopup:this.openPopup.bind(this),circleDirection:this.state.circleDirection,contextMenuBodyRef:this.contextMenuBodyRef}}},{key:"render",value:function(){var e=this.getRenderProps(),t=i()("context-menu-deprecated",this.props.className,{"context-menu-deprecated--thisPopupOpen":this.state.isPopupOpen,"context-menu-deprecated--hideBoxShadow":!!this.props.hideBoxShadow});return o.createElement("div",{className:t,ref:function(e){this.contextMenuDivElement=e}.bind(this)},this.props.render(e))}}])&&c(n.prototype,r),t}(o.Component)}
1,86599:(e,t,n)=>{n.d(t,{Z:()=>f});var r=n(94184),i=n.n(r),o=n(41206),a=n(33719),c=n(67294),l=n(79551),u=n(79865),s=n(63265);function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){d(e,t,n[t])})}return e}const f=(0,c.forwardRef)(function(e,t){var n,r=(0,o.A)(e.validationRules),d=(0,o.S)(e.validationRules,a.b.Required);return(0,c.useEffect)(function(){return function(){e.onUnmount&&e.onUnmount()}},[]),c.createElement(l.gN,{name:e.id,validate:function(t,i){return r(t,null!==(n=e.formValuesUsedForValidation)&&void 0!==n?n:i)},format:e.format,parse:e.parse,formatOnBlur:e.formatOnBlur},function(n){var r=n.input,l=n.meta,f=Object.assign({},r,{required:d,"aria-required":!!d||void 0,type:e.htmlInputType||"text"},e.fieldAttributes);return c.createElement(u.Z,{meta:l,fieldAttributes:f,className:i()("field-phone-number",e.className,{"field-phone-number__prefix":e.shouldShowPrefixSign}),label:e.label,notice:e.notice,active:e.active},e.shouldShowPrefixSign&&f.value&&c.createElement("span",{className:"field-phone-number__prefix-plus"},"+"),c.createElement(s.Z,{fieldAttributes:m({},f,{value:f.value||"",onChange:function(t){var n;r.onChange(t),(null===(n=e.fieldAttributes)||void 0===n?void 0:n.onChange)&&e.fieldAttributes.onChange(t)}}),className:i()({"field-phone-number__prefix-hasValue":f.value&&e.shouldShowPrefixSign}),maxLenghtNumber:e.hideMaxLengthCounter?void 0:(0,o.S)(e.validationRules,a.b.MaxLength),meta:l,ref:t}))})})},82825:(e,t,n)=>{n.d(t,{O:()=>c});var r=n(94184),i=n.n(r),o=n(67294),a=n(28968),c=function(e){return o.createElement("div",{className:"modal-action-buttons"},e.actionList.map(function(t){var n;return o.createElement(a.Z,{key:t.label,onClick:t.onClick,className:i()("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)}))}},25313:(e,t,n)=>{n.d(t,{$:()=>u});var r=n(88767),i=n(2344);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 a=n(82950),c=n(67294);function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=function(){var e,t,n=(0,a.Mb)(),u=n.data,s=n.isLoading,d=n.error,m=n.isFetching,f=(t=(0,i.h_)(),(0,r.useQuery)(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){o(e,t,n[t])})}return e}({},function(e){var t={queryFn:function(){return function(e){return e.getUserActivity()}(e)},queryKey:["userActivity"]};return t}(t),e))),p=f.data,b=f.isLoading,h=f.isFetching,v=(0,c.useMemo)(function(){return u?function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){l(e,t,n[t])})}return e}({},u,p):void 0},[p,u]);return{data:v,isLoading:s||b,error:d,isFetching:m||h}}},70548:(e,t,n)=>{n.r(t),n.d(t,{default:()=>Ae});var r=n(67294),i=n(88767),o=n(2344);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c,l,u,s,d,m,f="getSwishAgreement";(l=c||(c={})).RECEIVE_ONLY="ReceiveOnly",l.SEND_AND_RECEIVE="SendAndReceive",(s=u||(u={})).VIEW="View",s.EDIT="Edit",s.DELETE="Delete",(m=d||(d={})).ORDERED="Ordered",m.ACTIVE="Active";var p=n(44926),b=n(28968),h=n(69189),v=n(59137),E=n(11054),y=n(57709),g=n(14578),N=n(25313);function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w=n(28839),O=n(37155),T=n(75622),S=n(18903),A=n(44870),C=n(16748),I=function(e){var t=e.children;return r.createElement(S.Z,{render:function(e){var n=e.togglePopup,i=e.closePopup,o=e.isPopupOpen,a=e.setTriggerBounding,c=e.triggerBounding;return r.createElement("div",{className:"swish-context-menu"}
1,r.createElement(C.Z,{setTriggerBounding:a,contextMenuIsOpen:o},r.createElement(b.Z,{onClick:function(e){e.preventDefault(),n()},"aria-expanded":o,color:"white",noPaddingOnSides:!0,noBorder:!0,disableHover:!0,iconId:"icon_16_3-dots-vertical",className:o?"swish-context-menu__action-button-toggled":"swish-context-menu__action-button"})),o&&r.createElement(A.Z,{triggerBounding:c,closePopup:i,placementX:"left"},r.createElement("div",{className:"swish-context-menu__wrapper"},t)))}})},M=n(12902),P=n(78977),B=n(34242),L=n(90062),R=n(33719),x=n(79551),k=n(41206),D=n(1822),U=n(70416),j=function(e){var t=e.account,n=(0,y.f)();return r.createElement("div",{className:"swish-account-select-field-notice"},r.createElement("span",null,D.H.formatAccountAndClearingNumber(t.account.bankAccountNumber.accountNumber,t.account.bankAccountNumber.clearingNumber)),r.createElement("span",null,r.createElement(U.$,{prefix:n.global.disposableAmount,value:t.accountBalance.balanceDisposable.decimalValue,currency:t.accountBalance.currencyCode,showCurrencyDisplay:!0,type:U.x.BALANCE,overdraft:t.accountBalance.balanceDisposable.integerValue<0})))},H=n(79865),F=n(84054),Z=n(30887);function K(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var G=function(e){var t,n,i=(t=(0,r.useState)(""),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),o=i[0],a=i[1],c=(0,r.useMemo)(function(){var t=[];return e.groups.forEach(function(n){n.title&&t.push({value:n.title,label:n.title,isGroupHeader:!0,groupLabel:n.title}),n.options.forEach(function(n){var r,i,o,a=n.swishAccountCombinedKey||n.account.accountName;t.push({value:a,label:n.account.accountName,sublabel:D.H.formatAccountAndClearingNumber(null===(r=n.account.bankAccountNumber)||void 0===r?void 0:r.accountNumber,null===(i=n.account.bankAccountNumber)||void 0===i?void 0:i.clearingNumber),disabled:null===(o=e.disabledItemsList)||void 0===o?void 0:o.includes(a),account:n})})}),t},[e.groups,e.disabledItemsList]),l=(0,r.useMemo)(function(){return e.groups.flatMap(function(e){return e.options}).find(function(t){return t.swishAccountCombinedKey===e.selectedAccountKey})},[e.selectedAccountKey,e.groups]),u=function(e){return a(e),c.filter(function(t){return!!t.isGroupHeader||!(t.isGroupHeader||!t.account)&&((0,Z.ky)(e.toLowerCase(),t.account.account.accountName.toLowerCase())||(0,Z.ky)(e,D.H.formatAccountAndClearingNumber(null===(n=t.account.account.bankAccountNumber)||void 0===n?void 0:n.accountNumber,null===(r=t.account.account.bankAccountNumber)||void 0===r?void 0:r.clearingNumber),!0));var n,r})},s=(0,r.useMemo)(function(){return(0,k.A)(e.fieldType.validationRules)},[e.fieldType.validationRules]),d=(0,k.S)(e.fieldType.validationRules,R.b.Required);return r.createElement(x.gN,{type:B.n.SelectFilter,name:e.id,validate:s},function(t){var n=t.input,i=t.meta,a=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){K(e,t,n[t])})}return e}({},n,{type:B.n.SelectFilter,required:d,disabled:e.disabled});return r.createElement(H.Z,{meta:i,fieldAttributes:a,notice:l&&r.createElement(j,{account:l}),active:i&&i.active||""!==n.value||""!==o&&(0,Z.HD)(o),className:"field-select-filter text-field"},r.createElement(F.Z,{options:c,value:n.value,onChange:function(t){n.onChange(t);var r,i=c.find(function(e){return e.value===t});i?(r=i).account&&e.onOptionSelected(r.account):e.onClearSelected()},onFilter:u,placeholder:"Select a Swish account",disabled:e.disabled,readOnly:!1}))})},Y=n(17249),V=n(94184),q=n.n(V),W=function(e){var t=e.isOpen,n=e.onClose,i=e.headline,o=e.title,a=e.subTitle,c=e.primaryBtnText,l=e.isPrimaryBtnLoading,u=e.onPrimaryButtonClick,s=e.onSecondaryButtonClick,d=e.bodyClassName,m=e.isPrimaryButtonEnabled,f=e.children,p=(0,y.f)();return r.createElement(Y.Z,{isOpen:t,shouldCloseOnOverlayClick:!0,narrow:!0,ariaHideApp:!1,onRequestClose:n,innerContentClassName:"neos-modal__fix--height"},r.createElement("div",null,r.createElement("div",{className:"swish-modal-with-field__headline"},i),r.createElement("div",{className:"swish-modal-with-field__title"},o),r.createElement("div",{className:"swish-modal-with-field__subtitle"},a),r.createElement("div",{className:q()("swish-modal-with-field__body",d)},f),r.createElement("div",{className:"swish-modal-with-field__buttons"},s&&r.createElement(b.Z,{fullWidth:!0,color:"white",large:!0,onClick:s,noBorder:!0},p.global.back),r.createElement(b.Z,{fullWidth:!0,large:!0,disabled:!m,onClick:u,noBorder:!0,loading:l},c))))}
1,X=n(64140),Q=n(22092),z=n(18480),$=n(86599),J=n(15993),ee=n(24632),te=n(10007),ne=function(e){var t=e.match(/between (\d+) and (\d+)/);return{min:t?Number(t[1]):void 0,max:t?Number(t[2]):void 0}},re=n(84337);function ie(e,t,n,r,i,o,a){try{var c=e[o](a),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,i)}function oe(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(e){ie(o,r,i,a,c,"next",e)}function c(e){ie(o,r,i,a,c,"throw",e)}a(void 0)})}}function ae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ce(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?t[Symbol.hasInstance](e):e instanceof t}function le(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){ae(e,t,n[t])})}return e}function ue(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var se,de,me,fe,pe=n(35666),be="";(de=se||(se={})).ACCOUNT="account",de.PAYMENT_SETTINGS="payment_settings",de.AMOUNT_LIMIT="amount_limit",de.MOBILE_NUMBER="mobile_number",de.PREFIX="prefix",de.TERMS="terms",de.FIELD="field";var he=function(e){var t,n=e.isOpen,a=e.onClose,l=e.termsContent,u=e.modalMode,s=e.swishAgreement,d=e.swishAccounts,m=(0,y.f)(),p=(0,r.useRef)(),b=(0,g.Z)(),h=(0,i.useQueryClient)(),v=(t=(0,o.h_)(),(0,i.useMutation)(function(e){return t.createSwishAgreement(e)},void 0)).mutateAsync,E=function(){var e=(0,o.h_)();return(0,i.useMutation)(function(t){return e.updateSwishAgreement(t)},void 0)}(),N=E.mutateAsync,_=function(){var e=(0,o.h_)();return(0,i.useMutation)(function(t){return e.updateSwishAgreementPhoneNumber(t)},void 0)}(),w=_.mutateAsync,S=(0,O.su)(),A=(0,r.useMemo)(function(){return u===_e.CREATE},[u]),C=A?se.TERMS:se.FIELD,I=ue((0,r.useState)(C),2),M=I[0],k=I[1],U=ue((0,r.useState)(),2),j=U[0],H=U[1],F=ue((0,r.useState)(!1),2),Z=F[0],K=F[1],Y=(0,r.useMemo)(function(){return le({},u===_e.CREATE?ae({},se.PREFIX,"46"):{})},[]),V=(0,r.useMemo)(function(){return ae(me={},se.ACCOUNT,null==s?void 0:s.swishAccountCombinedKey),ae(me,se.PAYMENT_SETTINGS,null==s?void 0:s.kind),ae(me,se.AMOUNT_LIMIT,null==s?void 0:s.currentDailyLimit),ae(me,se.PREFIX,null==s?void 0:s.phoneNumber.countryCode),ae(me,se.MOBILE_NUMBER,null==s?void 0:s.phoneNumber.nationalNumber),me},[s]),q=le((ae(fe={},se.ACCOUNT,m.global.account),ae(fe,se.PAYMENT_SETTINGS,m.swishPaymentSettingsStepTitle),fe),(null==s?void 0:s.kind)===c.SEND_AND_RECEIVE?ae({},se.AMOUNT_LIMIT,m.amountLimit):{},ae({},se.MOBILE_NUMBER,m.global.mobileNumber)),ie=function(e){a(),e.reset(),k(C)};(0,r.useEffect)(function(){s&&d&&H(null==d?void 0:d.find(function(e){return e.swishAccountCombinedKey===s.swishAccountCombinedKey}))},[s,d]);var de=(0,r.useMemo)(function(){return{type:R.b.CustomFunction,priority:1,validationErrorLabel:(0,P.Z)(m.swishAmountRangeValidationErrorMessage,{minDailyLimit:(null==j?void 0:j.minDailyLimit.toString())||be,maxDailyLimit:(null==j?void 0:j.maxDailyLimit.toString())||be}),value:function(e){return e>=((null==j?void 0:j.minDailyLimit)||0)&&e<=((null==j?void 0:j.maxDailyLimit)||0)}}},[j,m.swishAmountRangeValidationErrorMessage]),he=(0,r.useMemo)(function(){return{type:R.b.CustomFunction,priority:1,validationErrorLabel:m.swishMobileNumberUsedError,value:function(e){return e!==p.current}}},[m.swishMobileNumberUsedError]),ve=(0,r.useMemo)(function(){return{options:(null==d?void 0:d.map(function(e){return le({},e,{value:e.swishAccountCombinedKey||be,label:e.account.accountName})}))||[]}},[d]),Ee=function(e){return e.replace(/[^0-9 .]/g,"").replace(/(\..*?)\..*/g,"$1")},ye=oe(pe.mark(function e(t,n){var r,i,o,a;return pe.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t[se.ACCOUNT]&&t[se.PAYMENT_SETTINGS]&&t[se.MOBILE_NUMBER]&&t[se.PREFIX])){e.next=17;break}return r=t[se.PAYMENT_SETTINGS]===c.SEND_AND_RECEIVE,e.prev=2,K(!0),e.next=6,v(le({
1swishAccountCombinedKey:t[se.ACCOUNT],phoneNumber:{countryCode:t[se.PREFIX],nationalNumber:t[se.MOBILE_NUMBER].replaceAll(" ","")}},r?{dailyLimit:t[se.AMOUNT_LIMIT]}:{},{swishAgreementKind:t[se.PAYMENT_SETTINGS]}));case 6:i=e.sent,S({signable:i,state:{receiptType:T.p1.SWISH_AGREEMENT_CREATED},onBeforeRedirect:function(e){e.invalidateQueries(f,{refetchActive:!0,refetchInactive:!0})}}),ie(n),e.next=17;break;case 11:e.prev=11,e.t0=e.catch(2),o=ce(e.t0,ee.T)&&e.t0.code===te.K.SWISH_PHONE_NUMBER_USED,a=ce(e.t0,ee.T)&&e.t0.code===te.K.SWISH_PROTECTED_IDENTITY,K(!1),o?(p.current=t[se.MOBILE_NUMBER],n.resetFieldState(se.MOBILE_NUMBER)):a?(b.dismissable(e.t0,{message:m.swishProtectedIdentityError}),ie(n)):(b.dismissable(e.t0),ie(n));case 17:case"end":return e.stop()}},e,null,[[2,11]])})),ge=oe(pe.mark(function e(t){var n,r,i,o,c;return pe.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,K(!0),!t[se.MOBILE_NUMBER]){e.next=9;break}return e.next=6,w({phoneNumber:{countryCode:t[se.PREFIX],nationalNumber:t[se.MOBILE_NUMBER].replaceAll(" ","")}});case 6:n=e.sent,e.next=12;break;case 9:return e.next=11,N(le({},t[se.PAYMENT_SETTINGS]?{swishAgreementKind:t[se.PAYMENT_SETTINGS]}:{},t[se.AMOUNT_LIMIT]?{dailyLimit:t[se.AMOUNT_LIMIT]}:{},t[se.ACCOUNT]?{swishAccountCombinedKey:t[se.ACCOUNT]}:{}));case 11:n=e.sent;case 12:S({signable:n,state:le({receiptType:T.p1.SWISH_AGREEMENT_UPDATED},t[se.MOBILE_NUMBER]?{onClose:function(){h.invalidateQueries(f,{refetchActive:!0,refetchInactive:!0}),a(),K(!1)}}:{}),onBeforeRedirect:function(e){e.invalidateQueries(f,{refetchActive:!0,refetchInactive:!0})}}),e.next=20;break;case 15:e.prev=15,e.t0=e.catch(0),t[se.MOBILE_NUMBER]&&(h.invalidateQueries(f,{refetchActive:!0,refetchInactive:!0}),a()),K(!1),ce(e.t0,ee.T)&&e.t0.code===te.K.SWISH_DAILY_LIMIT&&(r=(0,re.ur)(e.t0),(null==(i=r?ne(r):void 0)?void 0:i.min)&&(null==i?void 0:i.max)&&(o=String(i.min),c=String(i.max),b.dismissable(e.t0,{message:(0,P.Z)(m.dailyLimitMustBeProvided,{min:o,max:c}),hideDetails:!0})));case 20:case"end":return e.stop()}},e,null,[[0,15]])}));return r.createElement(x.l0,{onSubmit:ye,initialValues:Y,render:function(e){var t,i=e.form,o=e.values,a=e.hasValidationErrors;return r.createElement("form",null,A&&r.createElement(X.x,{continueBtnText:m.global.continueText,isContinueBtnLoading:!1,isOpen:n&&M===se.TERMS,onCancel:function(){return ie(i)},onContinueClick:function(){return k(se.ACCOUNT)},termsAndConditionsInnerHTML:l}),!A&&r.createElement(W,{headline:m.swishEditFieldStepHeadline,title:m.swishEditFieldStepTitle,subTitle:m.swishEditFieldStepDescription,isPrimaryButtonEnabled:!!o[se.FIELD],primaryBtnText:m.global.continueText,isOpen:n&&M===se.FIELD,onPrimaryButtonClick:function(){i.reset();var e=o[se.FIELD];e===se.MOBILE_NUMBER?(p.current=V[se.MOBILE_NUMBER],i.change(se.MOBILE_NUMBER,V[se.MOBILE_NUMBER]),i.change(se.PREFIX,V[se.PREFIX])):e&&i.change(e,V[e]),e&&k(e)},onClose:function(){return ie(i)}},r.createElement(x.gN,{name:se.FIELD,render:function(e){var t=e.input,n=e.meta;return r.createElement(J.i,{label:m.global.select,input:t,meta:n},Object.entries(q).map(function(e){var t=ue(e,2),n=t[0],i=t[1];return r.createElement("option",{key:n,value:n},i)}))}})),M===se.ACCOUNT&&r.createElement(W,{headline:A?m.swishActivationHeadline:m.swishAccountEditStepHeadline,title:m.global.account,subTitle:m.swishAccountStepSubtitle,isPrimaryBtnLoading:Z,isPrimaryButtonEnabled:!!o[se.ACCOUNT]&&o[se.ACCOUNT]!==V[se.ACCOUNT],primaryBtnText:A?m.global.continueText:m.global.approve,isOpen:n&&M===se.ACCOUNT,onSecondaryButtonClick:function(){return k(A?se.TERMS:se.FIELD)},onPrimaryButtonClick:function(){return A?k(se.PAYMENT_SETTINGS):ge(o)},onClose:function(){return ie(i)}},r.createElement(x.gN,{name:se.ACCOUNT},function(e){var t=e.input;return r.createElement(G,{id:se.ACCOUNT,fieldType:{label:m.global.account,validationRules:[]},selectedAccountKey:t.value,groups:[ve],onOptionSelected:function(e){e&&(i.change(se.ACCOUNT,e.swishAccountCombinedKey),H(e))},onClearSelected:function(){i.change("account","")}})})),M===se.PAYMENT_SETTINGS&&r.createElement(W,{headline:A?m.swishActivationHeadline:m.swishEditPaymentSettingsStepHeadline,title:m.swishPaymentSettingsStepTitle,subTitle:m.swishPaymentSettingsStepSubtitle,isPrimaryBtnLoading:Z,isPrimaryButtonEnabled:!!o[se.PAYMENT_SETTINGS]&&o[se.PAYMENT_SETTINGS]!==V[se.PAYMENT_SETTINGS],primaryBtnText:A||o[se.PAYMENT_SETTINGS]===c.SEND_AND_RECEIVE?m.global.continueText:m.global.approve,isOpen:n&&M===se.PAYMENT_SETTINGS,onSecondaryButtonClick:function(){return k(A?se.ACCOUNT:se.FIELD)},onPrimaryButtonClick:function(){o[se.PAYMENT_SETTINGS]===c.SEND_AND_RECEIVE?(i.change(se.AMOUNT_LIMIT,null==j?void 0:j.defaultDailyLimit),k(se.AMOUNT_LIMIT)):A?k(se.MOBILE_NUMBER):ge(o)},onClose:function(){return ie(i)}},r.createElement(Q.e5,{type:B.n.Radio,id:se.PAYMENT_SETTINGS,validationRules:[],label:"",options:[{value:c.SEND_AND_RECEIVE,label:m.swishSendAndReceiveRadio},{value:c.RECEIVE_ONLY,label:m.swishReceiveRadio}]})),M===se.AMOUNT_LIMIT&&r.createElement(W,{headline:A?m.swishActivationHeadline:m.swishEditAmou
1ntLimitHeadline,title:m.amountLimit,subTitle:m.swishAmountLimitStepSubtitle,isPrimaryButtonEnabled:!!o[se.AMOUNT_LIMIT]&&!(null===(t=i.getFieldState(se.AMOUNT_LIMIT))||void 0===t?void 0:t.invalid)&&o[se.AMOUNT_LIMIT]!==V[se.AMOUNT_LIMIT],isPrimaryBtnLoading:Z,primaryBtnText:A?m.global.continueText:m.global.approve,isOpen:n&&M===se.AMOUNT_LIMIT,onSecondaryButtonClick:function(){return k(A?se.PAYMENT_SETTINGS:se.FIELD)},onPrimaryButtonClick:function(){return A?k(se.MOBILE_NUMBER):ge(o)},onClose:function(){return ie(i)}},r.createElement(z.Z,{validationRules:[de],label:m.amountLimitPerDay,id:se.AMOUNT_LIMIT,type:B.n.Number,fractionDigits:0,annotation:L.NE.SEK})),M===se.MOBILE_NUMBER&&r.createElement(W,{headline:A?m.swishActivationHeadline:m.swishEditMobileNumberHeadline,title:m.global.mobileNumber,subTitle:m.swishMobileNumberStepSubtitle,isPrimaryButtonEnabled:!!o[se.MOBILE_NUMBER]&&!!o[se.PREFIX]&&!a&&o[se.MOBILE_NUMBER]!==p.current,primaryBtnText:m.swishSendActivationCode,isPrimaryBtnLoading:Z,isOpen:n&&M===se.MOBILE_NUMBER,onSecondaryButtonClick:function(){return k(A?o[se.PAYMENT_SETTINGS]===c.SEND_AND_RECEIVE?se.AMOUNT_LIMIT:se.PAYMENT_SETTINGS:se.FIELD)},onPrimaryButtonClick:function(){return A?ye(o,i):ge(o)},onClose:function(){return ie(i)}},r.createElement("div",{className:"swish-modal__phone-number-field"},r.createElement($.Z,{id:"prefix",label:"",validationRules:[],type:B.n.Number,className:"swish-modal__phone-number-prefix-field",shouldShowPrefixSign:!0,formatOnBlur:!0,format:function(){return Ee(o.prefix||be)}}),r.createElement($.Z,{id:se.MOBILE_NUMBER,type:B.n.Number,label:"",validationRules:[he],format:function(){return o[se.MOBILE_NUMBER]?D.H.formatPhoneNumber({number:Ee(o[se.MOBILE_NUMBER]||be),countryPrefix:Ee(o.prefix||be)}):""},formatOnBlur:!0,className:"swish_modal__phone-number-number-field"})),r.createElement("p",null,m.swishMobileNumberStepDescription)))}})},ve=n(82412),Ee=n(21135),ye=n(33203);function ge(e,t,n,r,i,o,a){try{var c=e[o](a),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,i)}function Ne(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var _e,we,Oe=n(35666);(we=_e||(_e={})).CREATE="create",we.EDIT="edit";var Te=function(e){var t,n=e.swishTermsAndConditions,l=(0,y.f)(),u=(0,Ee.dc)(),s=u.data,m=u.error,S=u.isFetching,A=Ne((0,r.useState)(!1),2),C=A[0],P=A[1],B=Ne((0,r.useState)(_e.CREATE),2),L=B[0],R=B[1],x=Ne((0,r.useState)(!1),2),k=x[0],D=x[1],U=(0,N.$)(),j=U.data,H=U.isLoading,F=U.error,Z=function(e){var t=(0,o.h_)();return(0,i.useQuery)(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){a(e,t,n[t])})}return e}({},function(e){var t={queryFn:function(){return function(e){return e.getSwishAgreement()}(e)},queryKey:[f]};return t}(t),e))}(),K=Z.data,G=Z.isLoading,Y=Z.error,V=function(e){var t=(0,o.h_)();return(0,i.useQuery)(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){_(e,t,n[t])})}return e}({},function(e){var t={queryFn:function(){return function(e){return e.getSwishAccounts()}(e)},queryKey:["getSwishAccounts"]};return t}(t),e))}(),q=V.data,W=V.isLoading,X=V.error,Q=(0,ve.aj)(),z=Q.isLoading,$=Q.error,J=Q.selectedAgreements,ee=(t=(0,o.h_)(),(0,i.useMutation)(function(){return t.deleteSwishAgreement()},void 0)).mutateAsync,te=(0,O.su)(),ne=Ne((0,r.useState)(!1),2),re=ne[0],ie=ne[1],oe=F||Y||X||$||m,ae=H||G||W||z||S,ce=(0,g.Z)(),le=(0,r.useMemo)(function(){if(!s||!J.length)return!1;var e=s.agreementRoles.filter(function(e){return J.includes(e.agreement)});return null==e?void 0:e.some(function(e){return e.roles.includes(ye.u.SWISH_AGREEMENT)})},[s,J]),ue={primaryButton:l.global.yes,secondaryButton:l.global.no,headline:"".concat(l.swishTerminateAgreement,"?"),description:l.swishTerminateAgreementDescription},se=function(){R(_e.EDIT),ie(!0)};oe&&ce.dismissable(oe);var de,me,fe=(de=Oe.mark(function e(){var t;return Oe.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return P(!0),e.prev=1,e.next=4,ee();case 4:t=e.sent,te({signable:t,state:{receiptType:T.p1.SWISH_AGREEMENT_DELETED}
1,onBeforeRedirect:function(e){e.invalidateQueries(f,{refetchActive:!0,refetchInactive:!0})}}),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),ce.dismissable(e.t0);case 11:case"end":return e.stop()}},e,null,[[1,8]])}),function(){var e=this,t=arguments;return new Promise(function(n,r){var i=de.apply(e,t);function o(e){ge(i,n,r,o,a,"next",e)}function a(e){ge(i,n,r,o,a,"throw",e)}o(void 0)})});return le?r.createElement(r.Fragment,null,r.createElement("div",{className:"swish"},r.createElement("div",{className:"swish__top"},r.createElement(p.Z,{labels:{title:l.swish},h1:!0}),r.createElement("p",null,l.swishMobilePaymentServices)),ae?r.createElement(E.Z,null):oe?r.createElement("p",{className:"swish__error"},l.global.unexpectedError):K&&K.agreement?r.createElement(r.Fragment,null,r.createElement("p",{className:"swish__name"},(null==j?void 0:j.fullName)||""),r.createElement(h.Z,{shadow:!0,className:"swish-active__card"},r.createElement(v.Z,{className:"swish-active__card-body"},r.createElement("span",{className:"swish-active__text"},(null==K?void 0:K.agreement.status)===d.ORDERED?l.swishAgreementProcessing:l.swishServiceActivated),(null==K?void 0:K.agreement.status)===d.ACTIVE&&r.createElement("div",{className:"swish__action_container"},r.createElement(b.Z,{small:!0,onClick:se},l.global.change),r.createElement(I,null,r.createElement(b.Z,{color:"secondary",noBorder:!0,disableHover:!0,iconId:"icon_16_trash",onClick:function(){return D(!0)}},l.swishTerminateAgreement))))),r.createElement(h.Z,{shadow:!0,className:"swish-active__info-card"},r.createElement(v.Z,{className:"swish-active__info-card-body"},r.createElement("p",{className:"swish-active__info-title"},l.global.mobileNumber),r.createElement("p",{className:"swish-active__info-data"},"+".concat(K.agreement.phoneNumber.countryCode," ").concat(K.agreement.phoneNumber.nationalNumber)),r.createElement("p",{className:"swish-active__info-title"},l.global.account),r.createElement("p",{className:"swish-active__info-data"},"".concat(K.agreement.account.accountName," (").concat(K.agreement.account.bankAccountNumber.clearingNumber," ").concat(K.agreement.account.bankAccountNumber.accountNumber,")")),r.createElement("p",{className:"swish-active__info-title"},l.paymentSetting),r.createElement("p",{className:"swish-active__info-data"},K.agreement.kind===c.SEND_AND_RECEIVE?l.receiveAndSendSwish:l.receivePaymentsSwish),K.agreement.currentDailyLimit&&r.createElement(r.Fragment,null,r.createElement("p",{className:"swish-active__info-title"},l.amountLimit),r.createElement("p",{className:"swish-active__info-data"},"".concat(function(e){return(0,w.dN)({value:(0,w.kz)({value:e,fractionDigits:0}).toString(),fractionDigits:0})}(K.agreement.currentDailyLimit.toString())," SEK/").concat(l.global.day.toLowerCase())))))):r.createElement(r.Fragment,null,r.createElement("p",{className:"swish__name"},(null==j?void 0:j.fullName)||""),r.createElement(h.Z,{shadow:!0,className:"swish-inactive__card"},r.createElement(v.Z,{className:"swish-inactive__card-body"},r.createElement("span",{className:"swish-inactive__text"},l.activateSwishService),r.createElement(b.Z,{small:!0,onClick:function(){return ie(!0)},disabled:0===(null==q||null===(me=q.accounts)||void 0===me?void 0:me.length)},l.activateBtnTxt))))),re&&r.createElement(he,{termsContent:n,isOpen:re,onClose:function(){ie(!1),R((null==K?void 0:K.agreement)?_e.EDIT:_e.CREATE)},modalMode:L,swishAccounts:null==q?void 0:q.accounts,swishAgreement:null==K?void 0:K.agreement}),r.createElement(M.c,{labels:ue,primaryButtonAction:function(){return fe()},secondaryButtonAction:function(){return D(!1)},onRequestClose:function(){return D(!1)},isOpen:k,loading:C,narrow:!0})):r.createElement("div",{className:"swish__top"},r.createElement(p.Z,{labels:{title:l.swish},h1:!0}),r.createElement("p",null,l.missingPermissionForAction))};function Se(){return Se=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Se.apply(this,arguments)}const Ae=function(e){var t=e.contextModel;return r.createElement(Te,Se({},t))}}}]);
2//# sourceMappingURL=548.51597d617d291b2147d4.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.