1"use strict";(()=>{(self.webpackChunkapp_fininbox=self.webpackChunkapp_fininbox||[]).push([["@forbis-page/settings-change-password"],{"../../pages/settings-stack/change-password/dist/index.js"(le,Le,d){(function($,l){le.exports=l()})(self,function(){return(function(){var Z={604(o,g,a){(function(E,S){o.exports=S()})(self,function(){return(function(){"use strict";var f={};(function(){f.n=function(s){var r=s&&s.__esModule?(function(){return s.default}):(function(){return s});return f.d(r,{a:r}),r}})(),(function(){f.d=function(s,r){for(var i in r)f.o(r,i)&&!f.o(s,i)&&Object.defineProperty(s,i,{enumerable:!0,get:r[i]})}})(),(function(){f.o=function(s,r){return Object.prototype.hasOwnProperty.call(s,r)}})(),(function(){f.r=function(s){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})}})();var E={};f.r(E),f.d(E,{STOMP_TOPIC_MESSAGES_MAP:function(){return I},paymentActions:function(){return ee},sharedActions:function(){return F},stompApi:function(){return _},uiActions:function(){return X},useFormatterUtilsConfigOptions:function(){return k},utilityPaymentActions:function(){return z}});var S=a(428);const I={USER_TOPIC_ANY:{destination:"/user/topic/any",messages:["account/balance","operation-state-change/sepa","operation-state-change/international","operation-state-change/between-own-accounts","operation-state-change/exchange","operation-state-change/public-utilities","outgoing-operations-import/file-state-change","sb/account-statement/operation","operation-state-change/bank-link","conversations/unread-messages-count","document-state-change/agreement","document-state-change/cancel-agreement","document-state-change/recurring-payment","document-state-change/cancel-recurring-payment","document-state-change/reject-operation","document-state-change/block-card","document-state-change/card-limits-update","document-state-change/card-security-program","document-state-change/3d-secure","document-state-change/deposit-agreement","document-state-change/deposit-replenishment","document-state-change/deposit-terminate"]}},u=(s,r)=>{const i=r.replace(/-/g,"_").replace(/\//g,"__").toUpperCase(),p=s.replace("/","").replace(/\//g,"_").toUpperCase();return(0,S.createAction)(`@@STOMP_RECEIVE/TOPIC_${p}__TYPE_${i}`)},_={userTopicAny:{accountBalance:u("/user/topic/any","account/balance"),operationStateChangeSepa:u("/user/topic/any","operation-state-change/sepa"),operationStateChangeInternational:u("/user/topic/any","operation-state-change/international"),operationStateChangeBetweenOwnAccounts:u("/user/topic/any","operation-state-change/between-own-accounts"),operationStateChangeExchange:u("/user/topic/any","operation-state-change/exchange"),operationStateChangePublicUtilities:u("/user/topic/any","operation-state-change/public-utilities"),outgoingOperationsImportFileStateChange:u("/user/topic/any","outgoing-operations-import/file-state-change"),sbAccountStatementOperation:u("/user/topic/any","sb/account-statement/operation"),operationStateChangeBankLink:u("/user/topic/any","operation-state-change/bank-link"),conversationsUnreadMessagesCount:u("/user/topic/any","conversations/unread-messages-count"),documentStateChangeAgreement:u("/user/topic/any","document-state-change/agreement"),documentStateChangeCancelAgreement:u("/user/topic/any","document-state-change/cancel-agreement"),documentStateChangeRecurringPayment:u("/user/topic/any","document-state-change/recurring-payment"),documentStateChangeCancelRecurringPayment:u("/user/topic/any","document-state-change/cancel-recurring-payment"),documentStateChangeRejectOperation:u("/user/topic/any","document-state-change/reject-operation"),documentStateChangeBlockCard:u("/user/topic/any","document-state-change/block-card"),documentStateChangeCardLimitsUpdate:u("/user/topic/any","document-state-change/card-limits-update"),documentStateChangeCardSecurityProgram:u("/user/topic/any","document-state-change/card-security-program"),documentStateChange3dSecure:u("/user/topic/any","document-state-change/3d-secure"),documentStateChangeDepositAgreement:u("/user/topic/any","document-state-change/deposit-agreement"),documentStateChangeDepositReplenishment:u("/user/topic/any","document-state-change/deposit-replenishment"),documentStateChangeDepositTerminate:u("/user/topic/any","document-state-change/deposit-terminate")}},X={openDialog:(0,S.createAction)("CONFIRMATION_DIALOG__OPEN"),showSnackbar:(0,S.createAction)("SNACKBAR__SHOW")};var A=a(462);const h={PAYMENT:"payments.new",EXCHANGE:"exchange.new",BETWEEN_ACCOUNTS:"payments.new.between.accounts",IMPORT:"file.imports.payment",DEFINED_PAYMENT_NEW:"payments.defined.new",DEFINED_PAYMENT_EDIT:"payments.defined.edit",PERIODIC_PAYMENTS_NEW:"periodic.payments.new",CREDITS_PAYMENT:"credits.payment",SALARY_PAYMENT:"salary.payment.common"},O=s=>{const{redirectType:r="PUSH",searchData:i,state:p,mode:y="PAYMENT"}=s,w=(0,A.generatePathLocation)(h[y],void 0,{searchData:i,state:p});return r==="REPLACE"?A.routerActions.replace(w):A.routerActions.push(w)},R=s=>{const{redirectType:r="PUSH",mode:i="PAYMENT",halLinkHref:p,data:y}=s;return O({redirectType:r,searchData:{halLinkHref:p},mode:i,state:{outgoing:y}})},x=(s,r="PUSH")=>O({redirectType:r,state:s?{exchange:s}:void 0,mode:"EXCHANGE"}),D=(s,r="PUSH",i="BETWEEN_ACCOUNTS")=>O({redirectType:r,state:s?{betweenAccounts:s}:void 0,mode:i}),ee={startOutgoingPayment:R,startExchangePayment:x,startBetweenAccountsPayment:D,startPayment:s=>{const{type:r,data:i,redirectType:p="PUSH",mode:y="PAYMENT",halLinkHref:w}=s;return r==="OUTGOING"?R({data:i,redirectType:p,mode:y,halLinkHref:w}):r==="EXCHANGE"?x(i,p):r==="BETWEEN_ACCOUNTS"?D(i,p,y):O({})}},L={PAYMENT:"utility.payment",NEW_TEMPLATE:"utility.template.new",EDIT_TEMPLATE:"utility.template.edit"},N=(s,r,i)=>{const p=(0,A.url)(L[i]);return s==="REPLACE"?A.routerActions.replace(p,r!=null?r:{}):A.routerActions.push(p,r!=null?r:{})},z={routeToUtilityTransfer:(s,r="PUSH")=>N(r,s,"PAYMENT"),routeToUtilityTemplate:(s,r,i="PUSH")=>N(i,s,r)},F={accountsStatementsOrderCreated:(0,S.createAction)("SHARED_ACTIONS_ACCOUNTS_STATEMENT_ORDER_CREATED")};var W=a(15),M=f.n(W),v=a(178);const k=()=>{const[s,r]=M().useState((0,v.getOptions)());return M().useEffect(()=>{const i=p=>{r(p.detail)};
1return window.addEventListener(v.FORMATTER_UTILS_CONFIG_CHANGED_EVENT_TYPE,i),()=>{window.removeEventListener(v.FORMATTER_UTILS_CONFIG_CHANGED_EVENT_TYPE,i)}},[]),s};return E})()})},178(o){"use strict";o.exports=d("../../../node_modules/@forbis/formatter-utils/dist/index.js")},462(o){"use strict";o.exports=d("../../../node_modules/@forbis/navigation-utils/dist/index.js")},15(o){"use strict";o.exports=d("../../../node_modules/react/index.js")},428(o){"use strict";o.exports=d("../../../node_modules/redux-actions/dist/redux-actions.js")}},$={};function l(o){var g=$[o];if(g!==void 0)return g.exports;var a=$[o]={exports:{}};return Z[o](a,a.exports,l),a.exports}(function(){l.n=function(o){var g=o&&o.__esModule?(function(){return o.default}):(function(){return o});return l.d(g,{a:g}),g}})(),(function(){l.d=function(o,g){for(var a in g)l.o(g,a)&&!l.o(o,a)&&Object.defineProperty(o,a,{enumerable:!0,get:g[a]})}})(),(function(){l.o=function(o,g){return Object.prototype.hasOwnProperty.call(o,g)}})(),(function(){l.r=function(o){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})}})();var J={};return(function(){"use strict";l.r(J),l.d(J,{default:function(){return Ne}});var o={};l.r(o),l.d(o,{onInit:function(){return te},onSubmit:function(){return ae},setMessages:function(){return ne}});var g=l(15),a=l.n(g),f=d("../../../node_modules/redux/dist/cjs/redux.cjs"),E=d("../../../node_modules/@forbis/redux-utils/dist/index.js"),S=d("../../../node_modules/@forbis/i18n/dist/index.js"),I=d("../../ui/shared-ui/dist/index.js"),u=d("../../../node_modules/@forbis/effects-middleware/dist/index.js"),_=d("../../ui/material/dist/index.js"),X=d("../../../node_modules/react-redux/dist/cjs/index.js"),A=d("../../../node_modules/@forbis/common-ui/dist/index.js"),h=d("../../../node_modules/redux-form/es/index.js"),O=d("../../../node_modules/@forbis/form-utils/dist/index.js"),R=d("../../ui/material-redux-forms/dist/index.js"),x=d("../../ui/icons/dist/index.js"),D=d("../../../node_modules/@forbis/common-utils/dist/index.js");const q=(t,e)=>{if(t!==e.password)return"[labels]validation.notSamePassword"};var ee=null;const L="CHANGE_PASSWORD",N="change-password",U="CHANGE_PASSWORD",G="change-password-form";var z=Object.defineProperty,j=Object.getOwnPropertySymbols,F=Object.prototype.hasOwnProperty,W=Object.prototype.propertyIsEnumerable,M=(t,e,n)=>e in t?z(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,v=(t,e)=>{for(var n in e||(e={}))F.call(e,n)&&M(t,n,e[n]);if(j)for(var n of j(e))W.call(e,n)&&M(t,n,e[n]);return t},k=(t,e)=>{var n={};for(var c in t)F.call(t,c)&&e.indexOf(c)<0&&(n[c]=t[c]);if(t!=null&&j)for(var c of j(t))e.indexOf(c)<0&&W.call(t,c)&&(n[c]=t[c]);return n};const{betweenLengthField:s}=O.validations,r={password:[s(6,35)],repeatPassword:[q]};class i extends a().Component{constructor(e){super(e),this.state={passwordIsShown:!1}}render(){const e=this.props,{input:n,meta:c,trans:m}=e,b=k(e,["input","meta","trans"]),{passwordIsShown:T}=this.state;return a().createElement(R.InputFormControlField,v({label:n.name==="password"?m.password:m.repeatPassword,name:n.name,value:n.value,onChange:n.onChange,type:T?"text":"password",InputProps:{endAdornment:a().createElement(_.IconButton,{size:"small",onClick:()=>this.setState({passwordIsShown:!T})},T?a().createElement(x.EyeOff,{fontSize:"small"}):a().createElement(x.Eye,{fontSize:"small"}))}},b))}}const p=(0,_.styled)(_.Box)(()=>({marginLeft:0,inlineSize:"310px"}));class y extends a().Component{render(){const{handleSubmit:e,onSubmit:n,trans:c,values:m}=this.props;return a().createElement(h.Form,{onSubmit:e(n)},a().createElement(p,null,a().createElement(_.Stack,{direction:"column"},a().createElement(h.Field,{name:"oldPassword",id:"oldPassword",label:c.oldPassword,trans:c,component:i}),a().createElement(h.Field,{name:"password",id:"password",label:c.newPassword,trans:c,component:i,validate:r.password}),a().createElement(I.PasswordSecurity,{value:m.password,security:D.FunctionUtils.calculatePasswordStrength(m.password)}),a().createElement(h.Field,{name:"repeatPassword",id:"repeatPassword",label:c.repeatPassword,trans:c,component:i,validate:r.repeatPassword}),a().createElement(I.ButtonsGroup,{justifyContent:"flex-start"},a().createElement(_.Button,{type:"submit",disabled:!m.password||!m.repeatPassword,variant:"contained"},c.change)))))}}const w=t=>({values:(0,h.getFormValues)(G)(t)||{}}),pe=t=>{const e=(0,E.useDeepSelector)(w);return a().createElement(y,v(v({},e),t))};var me=(0,f.compose)((0,h.reduxForm)({form:G}))(pe),H=l(428);const te=(0,H.createAction)(`${U}__ON_INIT`),ne=(0,H.createAction)(`${U}__ON_SET_MESSAGES`),ae=(0,H.createAction)(`${U}__ON_SUBMIT`);var P=d("../../../node_modules/@forbis/webapi-utils/dist/index.js"),ge=l(604),K={deleteMobileDevicesDevice:(0,P.createWebApiActionTypes)("API_DELETE_MOBILE_DEVICES__DEVICE",{url:"/mobile-devices/device",method:"DELETE",signature:"-1966970270"}),deleteSessionSession:(0,P.createWebApiActionTypes)("API_DELETE_SESSION__SESSION",{url:"/session/session",method:"DELETE",signature:"-535140356"}),getMobileDevicesList:(0,P.createWebApiActionTypes)("API_GET_MOBILE_DEVICES__LIST",{url:"/mobile-devices/list",method:"GET",signature:"794443008"}),getPricingPlansList:(0,P.createWebApiActionTypes)("API_GET_PRICING_PLANS__LIST",{url:"/pricing-plans/list",method:"GET",signature:"-1924840151"}),getPricingPlansPrimaryAccountNumber:(0,P.createWebApiActionTypes)("API_GET_PRICING_PLANS__PRIMARY_ACCOUNT_NUMBER",{url:"/pricing-plans/primary-account-number",method:"GET",signature:"-182969222"}),getProfilesCustomerDetails:(0,P.createWebApiActionTypes)("API_GET_PROFILES__CUSTOMER_DETAILS",{url:"/profiles/customer-details",method:"GET",signature:"-2139671303123123"}
1),getProfilesSettings:(0,P.createWebApiActionTypes)("API_GET_PROFILES__SETTINGS",{url:"/profiles/settings",method:"GET",signature:"-2139671303"}),getSessionList:(0,P.createWebApiActionTypes)("API_GET_SESSION__LIST",{url:"/session/list",method:"GET",signature:"-915364017"}),postPricingPlansPlanChangeCancel:(0,P.createWebApiActionTypes)("API_POST_PRICING_PLANS__PLAN_CHANGE_CANCEL",{url:"/pricing-plans/plan-change-cancel",method:"POST",signature:"-209633994"}),postPricingPlansPlanChangeOrder:(0,P.createWebApiActionTypes)("API_POST_PRICING_PLANS__PLAN_CHANGE_ORDER",{url:"/pricing-plans/plan-change-order",method:"POST",signature:"-994073901"}),putProfilesSettings:(0,P.createWebApiActionTypes)("API_PUT_PROFILES__SETTINGS",{url:"/profiles/settings",method:"PUT",signature:"-21036745"}),putSecurityPassword:(0,P.createWebApiActionTypes)("API_PUT_SECURITY__PASSWORD",{url:"/security/password",method:"PUT",signature:"293847327432"})},Pe=Object.defineProperty,fe=Object.defineProperties,_e=Object.getOwnPropertyDescriptors,re=Object.getOwnPropertySymbols,Ee=Object.prototype.hasOwnProperty,Se=Object.prototype.propertyIsEnumerable,se=(t,e,n)=>e in t?Pe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,he=(t,e)=>{for(var n in e||(e={}))Ee.call(e,n)&&se(t,n,e[n]);if(re)for(var n of re(e))Se.call(e,n)&&se(t,n,e[n]);return t},Ae=(t,e)=>fe(t,_e(e));const oe="USER_SETTINGS_API",C=Ae(he({},K),{putProfilesSettings:(0,P.withPrefixActionTypes)(K.putProfilesSettings,oe),getProfilesSettings:(0,P.withPrefixActionTypes)(K.getProfilesSettings,oe)}),ie=t=>t[N],Q=[];Q.push({matcher:[ae.toString()],description:"onSubmit",onEffect:(t,e)=>(n,c)=>{var m,b;n(c);const{profileSettings:T}=ie(e()),V=(b=(m=T==null?void 0:T._links)==null?void 0:m["change-password"])==null?void 0:b.href;if(V){const{password:je,oldPassword:Me}=c.payload,Re={password:je,oldPassword:Me},De=(0,P.createWebApiActionTypes)(C.putSecurityPassword.creationData.actionType,{url:V,method:C.putSecurityPassword.creationData.meta.method,signature:C.putSecurityPassword.creationData.meta.signature});t(De.execute({data:Re}))}}}),Q.push({matcher:[C.putSecurityPassword.success],description:"onPasswordChanged",onEffect:t=>(e,n)=>{e(n),t((0,h.reset)(G));const c=(0,S.getI18n)().getFixedT(null,L);t(ge.uiActions.showSnackbar({text:c("[labels]passwordChanged")}))}});var ye=Q,be=Object.defineProperty,Te=Object.defineProperties,Oe=Object.getOwnPropertyDescriptors,ce=Object.getOwnPropertySymbols,ve=Object.prototype.hasOwnProperty,we=Object.prototype.propertyIsEnumerable,ue=(t,e,n)=>e in t?be(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,B=(t,e)=>{for(var n in e||(e={}))ve.call(e,n)&&ue(t,n,e[n]);if(ce)for(var n of ce(e))we.call(e,n)&&ue(t,n,e[n]);return t},Y=(t,e)=>Te(t,Oe(e));const de={loading:!0,messages:[]},Ce=(t,{payload:e})=>{const{allErrors:n,allWarnings:c}=(0,O.toConvertedMessages)(e.status.messages);return Y(B({},t),{loading:!1,messages:[...n.map(m=>({severity:"error",text:m})),...c.map(m=>({severity:"warning",text:m}))]})};var Ie=(0,H.handleActions)({[`${te}`]:(t,{payload:{profileSettings:e}})=>Y(B({},t),{loading:!1,profileSettings:e}),[`${ne}`]:(t,{payload:e})=>Y(B({},t),{messages:e}),[`${C.putSecurityPassword.loading}`]:t=>Y(B({},t),{messages:[]}),[`${C.putSecurityPassword.failure}`]:Ce,[E.registryActionsTypes.reset]:()=>de},de);const xe=({profileSettings:t,t:e})=>{(0,u.useWithEffects)(ye);const{onSubmit:n,onInit:c}=(0,E.useActions)(o),{messages:m}=(0,X.useSelector)(ie),b={title:e("[labels]title"),instructions:e("[labels]instructions"),change:e("[labels]button.change"),back:e("[labels]button.back"),oldPassword:e("[labels]oldPassword"),newPassword:e("[labels]newPassword"),repeatPassword:e("[labels]repeatPassword")};a().useEffect(()=>{c({profileSettings:t})},[]);const T=a().useCallback(V=>n(V),[n]);return a().createElement(_.CardContent,null,a().createElement(_.Box,{maxWidth:587},a().createElement(I.AlertMessages,{messages:m,pb:4}),a().createElement(_.Typography,{variant:"h7",fontWeight:600,mb:4,component:"h4"},b.title),a().createElement(_.Typography,{variant:"body2",mb:5},a().createElement(A.TextAsHtml,{text:b.instructions})),a().createElement(me,{onSubmit:T,trans:b})))};var Ne=(0,f.compose)((0,S.withTranslation)(L),(0,E.dynamic)(N,Ie,{destroyOnUnmount:!0}))(xe)})(),J})()})}}]);})();
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.