1(this["webpackJsonpclient-zone_client"]=this["webpackJsonpclient-zone_client"]||[]).push([[79],{1855:function(e,t,o){"use strict";o.r(t),o.d(t,"default",(function(){return w})),o.d(t,"mapStateToProps",(function(){return y})),o.d(t,"mapDispatchToProps",(function(){return h})),o.d(t,"step4FormInputsScheme",(function(){return g})),o.d(t,"step4FormValidationsScheme",(function(){return k}));var a=o(2),r=o.n(a),n=o(6),l=o(12),s=o(0),i=o.n(s),c=o(15),u=o(275),d=o(19),p=o(5),f=o(1601),m=o(80),_=o(98),v=o(22),b=o(196),y=function(e){return{loading:Object(v.r)(e),userInfo:Object(v.K)(e)}},h={user_UpdateUserInfo:_.b},g=function(e){e.showcustom_field_primarycontactname,e.showcustom_field_industrycode;var t=e.userInfo;return[{id:"custom_field_overthepast2yearswhatwastheextentoftrad",type:u.a.radioButtons,labelT:"common:fields.custom_field_overthepast2yearswhatwastheextentoftrad.label",radioButtonsProps:{defaultValue:t.custom_field_overthepast2yearswhatwastheextentoftrad,options:[{label:"old-kyc-broker-14:step4.custom_field_overthepast2yearswhatwastheextentoftrad.option1",value:m.D.OccasionallyUpTo25TradesPerYear},{label:"old-kyc-broker-14:step4.custom_field_overthepast2yearswhatwastheextentoftrad.option2",value:m.D.RegularlyBetween25To100TradesPerYear},{label:"old-kyc-broker-14:step4.custom_field_overthepast2yearswhatwastheextentoftrad.option3",value:m.D.NeverTraded}]}},{id:"custom_field_plantoleavepositionsopen",type:u.a.select,labelT:"common:fields.custom_field_plantoleavepositionsopen.label",placeholderT:"common:fields.custom_field_plantoleavepositionsopen.placeholder",selectProps:{value:t.custom_field_plantoleavepositionsopen,options:[{label:"old-kyc-broker-14:step4.custom_field_plantoleavepositionsopen.option1",value:m.F.UpTo24Hours},{label:"old-kyc-broker-14:step4.custom_field_plantoleavepositionsopen.option2",value:m.F.UpTo2Weeks},{label:"old-kyc-broker-14:step4.custom_field_plantoleavepositionsopen.option3",value:m.F.UpTo1Month},{label:"old-kyc-broker-14:step4.custom_field_plantoleavepositionsopen.option4",value:m.F.ForSeveralMonths}]}},{id:"custom_field_pastaverageleverageyouusedfortrading",type:u.a.select,labelT:"common:fields.custom_field_pastaverageleverageyouusedfortrading.label",placeholderT:"common:fields.custom_field_pastaverageleverageyouusedfortrading.placeholder",selectProps:{value:t.custom_field_pastaverageleverageyouusedfortrading,options:[{label:"old-kyc-broker-14:step4.custom_field_pastaverageleverageyouusedfortrading.option1",value:m.E.INeverUsedLeverage},{label:"old-kyc-broker-14:step4.custom_field_pastaverageleverageyouusedfortrading.option2",value:m.E.LowerThan150},{label:"old-kyc-broker-14:step4.custom_field_pastaverageleverageyouusedfortrading.option3",value:m.E.Between150To1200}]}}]},k=function(e){return{custom_field_overthepast2yearswhatwastheextentoftrad:b.b.string().required(),custom_field_plantoleavepositionsopen:b.b.string().required(),custom_field_pastaverageleverageyouusedfortrading:b.b.string().required()}},w=Object(c.c)(y,h)(i.a.memo((function(e){var t=e.history,o=e.userInfo,a=e.loading,s=e.user_UpdateUserInfo,c=i.a.useState((function(){return o.custom_field_employmentstatus===m.j.SalariedEmployee})),_=Object(l.a)(c,2),v=_[0],b=_[1],y=i.a.useState((function(){return o.custom_field_employmentstatus===m.j.SalariedEmployee||o.custom_field_employmentstatus===m.j.SelfEmployed})),h=Object(l.a)(y,2),w=h[0],T=h[1],S=Object(f.a)("old-kyc-broker-14").t,j=function(){var e=Object(n.a)(r.a.mark((function e(o){return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s(o);case 2:e.sent?t.replace("/".concat(p.b.KYC,"/").concat(p.b.KYC__4)):console.log("failed to update");case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return i.a.createElement(i.a.Fragment,null,i.a.createElement(d.a,{variant:"h1"},S("step4.title")),i.a.createElement(u.b,{onSubmitClick:j,onFieldChange:function(e,t){if("custom_field_employmentstatus"===e)switch(t){case m.j.SalariedEmployee:b(!0),T(!0);break;case m.j.SelfEmployed:T(!0),v&&b(!1);break;default:v&&b(!1),w&&T(!1)}},submitBtnT:"old-kyc-broker-14:common.next",validationsScheme:k(S),inputs:g({showcustom_field_primarycontactname:v,showcustom_field_industrycode:w,userInfo:o}),cancelBtnT:"old-kyc-broker-14:common.back",onCancelClick:function(){t.replace("/".concat(p.b.KYC,"/").concat(p.b.KYC__2))},loading:a}))})))}}]);
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.